/*
 *             Copyright (c) 2003-2026, 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.              |
 *          |                                                                                 |
 *          |                                                                                 |
 *          +---------------------------------------------------------------------------------+
 *
 *
 *
 *
 */
import{Plugin,Command,ContextPlugin,Editor,PendingActions,Context as Context$1,ElementApiMixin}from'ckeditor5';import{uid,CKEditorError,ObservableMixin,global as _0x1a0b09,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,logWarning,logError,toArray as toArray$1,version as _0x118cb6,EmitterMixin,scrollViewportToShowTarget,insertToPriorityArray,scrollAncestorsToShowTarget,ResizeObserver as _0x1b4a02,_isMotionReduced,getConstrainedViewportRect,DomEmitterMixin,diff as _0x5e3a1d,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env as _0x547887,ElementReplacer,formatHtml,getAncestors}from'ckeditor5';import{ToolbarView,ButtonView,View,SpinnerView,IconView,AutocompleteView,ListView,ListItemGroupView,ListItemView,ButtonLabelView,FocusCycler,createLabeledTextarea,Dialog,createDropdown,addMenuToDropdown,MenuBarMenuView,MenuBarMenuListItemButtonView,DialogViewPosition,MenuBarMenuListView,MenuBarMenuListItemView,DropdownButtonView,isViewWithFocusCycler,BodyCollection,BalloonPanelView,clickOutsideHandler,addListToDropdown,UIModel,submitHandler,LabeledFieldView,createLabeledInputText,FormHeaderView,HighlightedTextView,ViewCollection,FileDialogButtonView,InputTextView,SearchTextView,ListItemButtonView,ButtonLabelWithHighlightView,DropdownMenuPanelPositioningFunctions,BalloonToolbar,FormRowView,TextareaView,EditorUIView,InlineEditableUIView,EditorUI,focusChildOnDropdownOpen,ContextualBalloon,Notification,addKeyboardHandlingForGrid,CollapsibleView,createLabeledInputNumber,SplitButtonView,MenuBarMenuListItemFileDialogButtonView,filterGroupAndItemNames,LabelWithHighlightView,InputNumberView,normalizeColorOptions,ListSeparatorView,CssTransitionDisablerMixin,ToolbarSeparatorView,normalizeToolbarConfig,BoxedEditorUIView,StickyPanelView,LabelView}from'ckeditor5';import{IconCopy,IconCheck,IconError,IconSubmit,IconAIHistory,IconMagicWand,IconRobotPencil,IconMaximize,IconMinimize,IconNotification,IconCancel,IconShowChangesOn,IconShowChangesOff,IconDocument,IconBoxWithCross,IconBoxWithCheck,IconBoxWithMarker,IconInfo,IconWeb,IconSelection,IconFileUpload,IconLink,IconBulb,IconAI,IconPreviousArrow,IconDocumentOutline,IconLoupe,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconStop,IconPlus,IconAIChat,IconPin,IconThreeHorizontalDots,IconAIReview,IconAITranslate,IconAIAskAI,IconThumbUp,IconThumbDown,IconChevronDown,IconChevronUp,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAIOther,IconRefresh,IconNextArrow,IconOutdated,IconEye,IconEyeCrossedOut,IconChevronRight,IconCaseChange,IconUndo,IconPencil,IconRemoveComment,IconThreeVerticalDots,IconAddComment,IconCommentsArchive,IconTableOfContents,IconExportPdf,IconExportWord,IconFootnote,IconListStyleDecimal,IconListStyleDecimalLeadingZero,IconListStyleLowerRoman,IconListStyleUpperRoman,IconListStyleLowerLatin,IconListStyleUpperLatin,IconListStyleArabicIndic,IconPaintRoller,IconImportWord,IconLineHeight,IconMultiLevelList,IconWarning,IconInsertMergeField,IconPreviewMergeFields,IconArrowDown,IconArrowUp,IconTrackChanges,IconHistory,IconUser,IconQuote,IconBulletedList,IconCodeBlock,IconEmoji,IconHeading1,IconHeading2,IconHeading3,IconHeading4,IconHeading5,IconHeading6,IconHorizontalLine,IconHtml,IconIndent,IconTable,IconNumberedList,IconOutdent,IconParagraph,IconTodoList,IconPlay,IconSource,IconTemplateGeneric,IconTemplate,IconOneDrive,IconGooglePhotos,IconGoogleDrive,IconFacebook,IconDropbox,IconUploadcareLink,IconUploadcareImageUpload,IconUploadcareImageEdit}from'ckeditor5';import{setHighlightHandling,toWidget,Widget,isWidget,toWidgetEditable,WidgetToolbarRepository,findOptimalInsertionRange,viewToModelPositionOutsideModelElement}from'ckeditor5';import{ViewDocumentDomEventData,ViewDataTransfer,ViewUpcastWriter,Matcher,InsertOperation,MoveOperation,ModelPosition,ModelRange,MarkerOperation,MergeOperation,SplitOperation,RenameOperation,AttributeOperation,ModelTreeWalker,ModelText,_DetachOperation,_insertIntoModelNodeList,_removeFromModelNodeList,transformOperationSets,ViewDowncastWriter,ModelDocumentFragment,disableViewPlaceholder,enableViewPlaceholder,MouseObserver,StylesMap,addMarginStylesRules,addPaddingStylesRules,PointerObserver,ClickObserver,isPercentageStyleValue,ViewDocument,ViewDomConverter,ModelLiveRange,History,NoOperation,RootAttributeOperation,OperationFactory,ModelElement,ModelLivePosition,ViewContainerElement,ViewAttributeElement,ViewEmptyElement,ViewRawElement,ViewUIElement,ViewDocumentFragment,ViewText,ViewElement}from'ckeditor5';import{ClipboardPipeline,ClipboardMarkersUtils,Clipboard}from'ckeditor5';import{Enter,ShiftEnter}from'ckeditor5';import{SelectAll}from'ckeditor5';import{Typing,Delete,Input}from'ckeditor5';import{Undo}from'ckeditor5';import{Paragraph}from'ckeditor5';import{CloudServices}from'ckeditor5';import{RemoveFormatCommand}from'ckeditor5';import{ListEditing,_isFirstBlockOfListItem}from'ckeditor5';import{ImageUtils,ImageEditing,ImageUploadEditing,ImageUploadProgress,PictureEditing}from'ckeditor5';import{Mention}from'ckeditor5';import{PasteFromOfficeMSWordNormalizer,PasteFromOffice,parsePasteOfficeHtml}from'ckeditor5';import{MarkdownGfmMdToHtmlDefaultPlugins,MarkdownGfmMdToHtml}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x144c41,_0x3ecdf4){const _0x19ed3f=(0x0,_0x3ecdf4['t'])('Other');return _0x144c41['length']?'groupId'in _0x144c41[0x0]?_0x144c41:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x19ed3f,'order':0x1/0x0,'commands':_0x144c41}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x19ed3f,'order':0x1/0x0,'commands':[]}];}const DomDataTransfer$1=globalThis['DataTransfer'],VISUAL_SELECTION_MARKER_NAME='ai-ui';class AIAssistantEditing extends Plugin{static get['pluginName'](){return'AIAssistantEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5387af}=this,_0x35c335=['ck-fake-ai-selection'];_0x5387af['config']['get']('ai.assistant.useTheme')&&_0x35c335['push']('ck-ai-assistant-ui_theme'),_0x5387af['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x35c335,'priority':0xc}}),_0x5387af['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0xfcf591,{writer:_0x3b7ff5})=>{if(!_0xfcf591['markerRange']['isCollapsed'])return null;const _0x596d2a=_0x3b7ff5['createUIElement']('span');return _0x3b7ff5['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x596d2a),_0x596d2a;}});}['afterInit'](){checkLicense$j(this);}['showFakeVisualSelection'](){const _0x474f74=this['editor']['model'];_0x474f74['change'](_0x11ea3c=>{const _0x113221=_0x474f74['document']['selection']['getRanges']();let _0x4ec8a6=0x0;for(const _0x53c54e of _0x113221){const _0x4ffd6e=VISUAL_SELECTION_MARKER_NAME+':'+_0x4ec8a6;if(_0x474f74['markers']['has'](_0x4ffd6e))_0x11ea3c['updateMarker'](_0x4ffd6e,{'range':_0x53c54e});else{if(_0x53c54e['start']['isAtEnd']){const _0x214bdf=_0x53c54e['start']['getLastMatchingPosition'](({item:_0x249bfc})=>!_0x474f74['schema']['isContent'](_0x249bfc),{'boundaries':_0x53c54e});_0x11ea3c['addMarker'](_0x4ffd6e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x11ea3c['createRange'](_0x214bdf,_0x53c54e['end'])});}else _0x11ea3c['addMarker'](_0x4ffd6e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x53c54e});}_0x4ec8a6++;}});}['hideFakeVisualSelection'](){const _0x30d6b7=this['editor']['model'],_0x36a300=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x36a300['length']&&_0x30d6b7['change'](_0x3c0331=>{_0x36a300['forEach'](_0x555e5a=>{_0x3c0331['removeMarker'](_0x555e5a);});});}['insertContent'](_0x3a6c05,_0x1c3a70){const _0x2388e3=this['_getAISelection'](),_0x37102c=_0x1c3a70||_0x2388e3['getFirstRange']();this['editor']['model']['canEditAt'](_0x37102c)&&this['editor']['model']['change'](_0x3f69a5=>{this['hideFakeVisualSelection'](),_0x1c3a70||this['_resetContentOfSelectedTableCells'](_0x3f69a5,_0x2388e3),this['_pasteHTMLUsingClipboard']({'insertAt':_0x37102c,'writer':_0x3f69a5,'html':_0x3a6c05});});}['insertContentBelow'](_0x86539e){const {model:_0x344c89}=this['editor'],_0x299987=this['_getAISelection']();_0x344c89['change'](()=>{const _0x2ce25e=this['_prepareTableInsertBelowPosition'](_0x86539e,_0x299987)||this['_getDefaultInsertBelowPosition'](_0x299987);this['insertContent'](_0x86539e,_0x2ce25e);});}['_getAISelection'](){const _0x40e9d6=this['editor']['model'],_0x24794d=Array['from'](_0x40e9d6['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x2aec40=>_0x2aec40['getRange']());return _0x40e9d6['createSelection'](_0x24794d);}['_pasteHTMLUsingClipboard']({writer:_0x4a9d6a,html:_0x5bca02,insertAt:_0xbbea93}){const {view:_0x55f044}=this['editor']['editing'],_0xcdd78f=this['editor']['plugins']['get'](ClipboardPipeline),_0x3421a2=new DomDataTransfer$1();_0x3421a2['setData']('text/html',_0x5bca02);const _0x12219f=new ClipboardEvent('paste',{'clipboardData':_0x3421a2}),_0x1956a4=new ViewDocumentDomEventData(_0x55f044,_0x12219f,{'dataTransfer':new ViewDataTransfer(_0x3421a2)});_0x4a9d6a['setSelection'](_0xbbea93);const _0xbbc95e=(_0x28e813,_0x4a819c)=>{_0x4a819c['resultRange']&&_0x4a9d6a['setSelection'](_0x4a819c['resultRange']);};_0xcdd78f['once']('contentInsertion',_0xbbc95e,{'priority':'lowest'}),_0x55f044['document']['fire']('paste',_0x1956a4),_0xcdd78f['off']('contentInsertion',_0xbbc95e);}['_getDefaultInsertBelowPosition'](_0x5ab9e5){const {model:_0x1bedf3}=this['editor'],_0x36c5fd=Array['from'](_0x5ab9e5['getSelectedBlocks']());return _0x36c5fd['length']?_0x1bedf3['createPositionAfter'](_0x36c5fd['pop']()):_0x5ab9e5['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0x51d46d,_0x21f78c){const {model:_0x1e36d9,plugins:_0x5c6081}=this['editor'];if(_0x5c6081['has']('TableUtils')){const _0xa33919=_0x5c6081['get']('TableUtils')['getSelectedTableCells'](_0x21f78c);if(_0xa33919['length']){const _0x5d2232=this['_getTableRowCountFromContent'](_0x51d46d),_0x473214=this['_createEmptyTableRows'](_0xa33919,_0x5d2232);return _0x1e36d9['createPositionAt'](_0x473214,0x0);}}return null;}['_getTableRowCountFromContent'](_0x4edced){const _0x5be7b5=this['editor']['plugins']['get']('TableUtils'),_0x58e7f0=this['editor']['data']['parse'](_0x4edced),_0x4cfca4=Array['from'](_0x58e7f0['getChildren']())['filter'](_0x555711=>_0x555711['is']('element','table'));let _0x3d37cc=0x0;return _0x4cfca4['forEach'](_0x3abda5=>{_0x3d37cc+=_0x5be7b5['getRows'](_0x3abda5);}),_0x3d37cc;}['_createEmptyTableRows'](_0x184515,_0x1884e1){const _0x25e6aa=this['editor']['plugins']['get']('TableUtils'),_0xf88625=_0x25e6aa['getRowIndexes'](_0x184515),_0x21f0f6=_0x25e6aa['getColumnIndexes'](_0x184515),_0x389200=_0xf88625['last']+0x1,_0x1afe96=_0x21f0f6['first'],_0xca754=_0x184515[0x0]['findAncestor']('table');for(let _0x229b49=0x0;_0x229b49<_0x1884e1;_0x229b49++)_0x25e6aa['insertRows'](_0xca754,{'at':_0x389200});return _0xca754['getChild'](_0x389200)['getChild'](_0x1afe96);}['_resetContentOfSelectedTableCells'](_0x559c22,_0x153a88){const {plugins:_0x3bfa95}=this['editor'],{model:_0x35c77c}=_0x559c22;if(!_0x3bfa95['has']('TableUtils'))return;_0x3bfa95['get']('TableUtils')['getSelectedTableCells'](_0x153a88)['length']&&_0x35c77c['deleteContent'](_0x153a88);}}async function checkLicense$j(_0x5b7aed){const _0x58ec57=_0x173053([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0xe7eced=window[_0x173053([0x44,0x61,0x74,0x65])][_0x173053([0x6e,0x6f,0x77])](),_0x234117=_0x5b7aed[_0x173053([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58372b=new window[(_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58af78=>{_0x234117[_0x173053([0x6f,0x6e,0x63,0x65])](_0x173053([0x72,0x65,0x61,0x64,0x79]),_0x58af78);}),_0x340a4b={[_0x173053([0x6b,0x74,0x79])]:_0x173053([0x45,0x43]),[_0x173053([0x75,0x73,0x65])]:_0x173053([0x73,0x69,0x67]),[_0x173053([0x63,0x72,0x76])]:_0x173053([0x50,0x2d,0x32,0x35,0x36]),[_0x173053([0x78])]:_0x173053([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x173053([0x79])]:_0x173053([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x173053([0x61,0x6c,0x67])]:_0x173053([0x45,0x53,0x32,0x35,0x36])},_0x1e4714=_0x234117[_0x173053([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x173053([0x67,0x65,0x74])](_0x173053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5a324c=await(async function(){let _0x70770e,_0xf2f5d8=null,_0x3fa887=null;try{if(_0x1e4714==_0x173053([0x47,0x50,0x4c]))return _0x173053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x70770e=(function(){const _0x69e16c=_0x1e4714[_0x173053([0x73,0x70,0x6c,0x69,0x74])](_0x173053([0x2e]));if(0x3!=_0x69e16c[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x740fda=_0x69e16c[0x1];return _0x306dd5(_0x740fda);function _0x306dd5(_0x8a1b2c){const _0x24f76b=_0x21ef1f(_0x8a1b2c);return _0x24f76b&&_0x1daf8d()?_0x24f76b:null;function _0x1daf8d(){const _0x2ae5d4=_0x24f76b[_0x173053([0x6a,0x74,0x69])],_0x3290a9=window[_0x173053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ae5d4[_0x173053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ae5d4[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1deb2f={..._0x24f76b,[_0x173053([0x6a,0x74,0x69])]:_0x2ae5d4[_0x173053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ae5d4[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1deb2f[_0x173053([0x76,0x63])],_0x38ae9b(_0x1deb2f)==_0x3290a9;}}}()),!_0x70770e)return _0x173053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x70770e[_0x173053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fa887=function(_0x4e4e63,_0x5a3363){return new window[(_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567a6e=>{if(_0x4c6ce5())return _0x567a6e(_0x173053([0x56,0x61,0x6c,0x69,0x64]));_0x362fd8(),_0x234117[_0x173053([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x173053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5655e4=!0x1;const _0x3798b3=uid();function _0x20e5bd(_0x21e7b2){return!!_0x21e7b2&&(typeof _0x21e7b2===_0x173053([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21e7b2===_0x173053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21e7b2[_0x173053([0x74,0x68,0x65,0x6e])]===_0x173053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21e7b2[_0x173053([0x63,0x61,0x74,0x63,0x68])]===_0x173053([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2372d8(_0x5ae7ac){_0x175c60(_0x5ae7ac)[_0x173053([0x74,0x68,0x65,0x6e])](_0x78c425=>{if(!_0x78c425||_0x78c425[_0x173053([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x173053([0x6f,0x6b]))return _0x173053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37de55(_0x38ae9b(_0x3798b3+_0x5a3363))!=_0x78c425[_0x173053([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x173053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x173053([0x56,0x61,0x6c,0x69,0x64]);})[_0x173053([0x74,0x68,0x65,0x6e])](_0x1f6a48=>(_0x1ba4a3(),_0x1f6a48),()=>{const _0x17af56=_0x341934();return null==_0x17af56?(_0x1ba4a3(),_0x173053([0x56,0x61,0x6c,0x69,0x64])):_0x173053(_0xe7eced-_0x17af56>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x173053([0x74,0x68,0x65,0x6e])](_0x567a6e)[_0x173053([0x63,0x61,0x74,0x63,0x68])](()=>{_0x567a6e(_0x173053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fa17e=0x36ee80;function _0x1ba4a3(){const _0x201b89=_0x173053([0x6c,0x6c,0x63,0x74,0x2d])+_0x37de55(_0x38ae9b(_0x4e4e63)),_0x2ff57a=_0xcf3598(_0x37de55(window[_0x173053([0x4d,0x61,0x74,0x68])][_0x173053([0x63,0x65,0x69,0x6c])](_0xe7eced/_0x4fa17e)));window[_0x173053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x173053([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x201b89,_0x2ff57a);}function _0x341934(){const _0x4d883e=_0x173053([0x6c,0x6c,0x63,0x74,0x2d])+_0x37de55(_0x38ae9b(_0x4e4e63)),_0x523489=window[_0x173053([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x173053([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d883e);return _0x523489?window[_0x173053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcf3598(_0x523489),0x10)*_0x4fa17e:null;}function _0x175c60(_0x44ce1b){return new window[(_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100491,_0x587cf7)=>{_0x44ce1b[_0x173053([0x74,0x68,0x65,0x6e])](_0x100491,_0x587cf7),window[_0x173053([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x587cf7,0x1d4c0);});}}_0x234117[_0x173053([0x6f,0x6e])](_0x173053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x298ed2,_0x3e4a24)=>{if(_0x3e4a24[0x0]!=_0x4e4e63)return _0x567a6e(_0x173053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e4a24[0x1]={..._0x3e4a24[0x1],[_0x173053([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3798b3};},{[_0x173053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x173053([0x68,0x69,0x67,0x68])}),_0x234117[_0x173053([0x6f,0x6e])](_0x173053([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e5dfd=>{_0x20e5bd(_0x5e5dfd[_0x173053([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5655e4=!0x0,_0x2372d8(_0x5e5dfd[_0x173053([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x173053([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x173053([0x6c,0x6f,0x77])}),_0x58372b[_0x173053([0x74,0x68,0x65,0x6e])](()=>{_0x5655e4||_0x567a6e(_0x173053([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c6ce5(){return _0x234117[_0x173053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x173053([0x76,0x69,0x65,0x77])][_0x173053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x173053([0x61,0x75,0x74,0x6f]);}function _0x362fd8(){_0x234117[_0x173053([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x173053([0x76,0x69,0x65,0x77])][_0x173053([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x173053([0x61,0x75,0x74,0x6f]);}}(_0x70770e[_0x173053([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x70770e[_0x173053([0x6a,0x74,0x69])]));const _0x3b25bc=await(async function(){let _0x4ccbb8=!0x0;try{const _0x3c581b=_0x1e4714[_0x173053([0x73,0x70,0x6c,0x69,0x74])](_0x173053([0x2e])),[_0x230304,_0x1d21a6,_0x4b5466]=_0x3c581b;return _0x9006a9(_0x230304),await _0x337488(_0x230304,_0x1d21a6,_0x4b5466),_0x4ccbb8;}catch{return!0x1;}function _0x9006a9(_0x1c21f1){const _0x14069b=_0x21ef1f(_0x1c21f1);_0x14069b&&_0x14069b[_0x173053([0x61,0x6c,0x67])]==_0x173053([0x45,0x53,0x32,0x35,0x36])||(_0x4ccbb8=!0x1);}async function _0x337488(_0x1c3ff5,_0x1bd931,_0x59250e){const _0x80209c=window[_0x173053([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x173053([0x66,0x72,0x6f,0x6d])](_0x1e8f5d(_0x59250e),_0x1ba425=>_0x1ba425[_0x173053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3062ba=new window[(_0x173053([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x173053([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c3ff5+_0x173053([0x2e])+_0x1bd931),_0x5ef2b0=window[_0x173053([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x173053([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ef2b0)return;const _0x59066f=await _0x5ef2b0[_0x173053([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x173053([0x6a,0x77,0x6b]),_0x340a4b,{[_0x173053([0x6e,0x61,0x6d,0x65])]:_0x173053([0x45,0x43,0x44,0x53,0x41]),[_0x173053([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x173053([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x173053([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ef2b0[_0x173053([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x173053([0x6e,0x61,0x6d,0x65])]:_0x173053([0x45,0x43,0x44,0x53,0x41]),[_0x173053([0x68,0x61,0x73,0x68])]:{[_0x173053([0x6e,0x61,0x6d,0x65])]:_0x173053([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59066f,_0x80209c,_0x3062ba)||(_0x4ccbb8=!0x1);}}());return _0x3b25bc?(function(){const _0x597ed1=_0x70770e[_0x173053([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x597ed1)return!0x1;if(_0x597ed1[_0x173053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173053([0x2a])))return!0x0;if(_0x597ed1[_0x173053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173053([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x279f57=[_0x173053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x173053([0x74,0x72,0x69,0x61,0x6c])][_0x173053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x70770e[_0x173053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe7eced/0x3e8:0x6a03bf00;return _0x70770e[_0x173053([0x65,0x78,0x70])]<_0x279f57;}())?_0x173053([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x56cb1a=_0x70770e[_0x173053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56cb1a||0x0==_0x56cb1a[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d8c2f}=new URL(window[_0x173053([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56cb1a[_0x173053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d8c2f))return!0x0;const _0x23d329=_0x1d8c2f[_0x173053([0x73,0x70,0x6c,0x69,0x74])](_0x173053([0x2e]));return _0x56cb1a[_0x173053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41c0b0=>_0x41c0b0[_0x173053([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173053([0x2a])))[_0x173053([0x6d,0x61,0x70])](_0x5bf662=>_0x5bf662[_0x173053([0x73,0x70,0x6c,0x69,0x74])](_0x173053([0x2e])))[_0x173053([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d80dd=>_0x2d80dd[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23d329[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x173053([0x6d,0x61,0x70])](_0x440e00=>Array(_0x23d329[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x440e00[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x173053([0x66,0x69,0x6c,0x6c])](_0x440e00[0x0]===_0x173053([0x2a])?_0x173053([0x2a]):'')[_0x173053([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x440e00))[_0x173053([0x73,0x6f,0x6d,0x65])](_0x18b36a=>_0x23d329[_0x173053([0x65,0x76,0x65,0x72,0x79])]((_0x1e88f1,_0xa17edb)=>_0x18b36a[_0xa17edb]===_0x1e88f1||_0x18b36a[_0xa17edb]===_0x173053([0x2a])));}())?(_0x70770e[_0x173053([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x173053([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf2f5d8=function(_0x1942f7){const _0x44a18f=new window[(_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32517d=>setTimeout(_0x32517d,0x93ecc)),_0x476b39=_0x58372b[_0x173053([0x74,0x68,0x65,0x6e])](()=>new window[(_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48fd61=>{let _0x1b92cd=0x0;_0x234117[_0x173053([0x6d,0x6f,0x64,0x65,0x6c])][_0x173053([0x6f,0x6e])](_0x173053([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x557a6c,_0x17d106)=>{_0x17d106[0x0][_0x173053([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b92cd++,0x5e8==_0x1b92cd&&(_0x48fd61(),_0x557a6c[_0x173053([0x6f,0x66,0x66])]());});})),_0x4a8cbc=[_0x44a18f,_0x476b39];return window[_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x173053([0x72,0x61,0x63,0x65])](_0x4a8cbc)[_0x173053([0x74,0x68,0x65,0x6e])](()=>_0x1942f7);}(_0x173053([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xf2f5d8&&_0x3fa887)return new window[(_0x173053([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x522746,_0x4fcaf6)=>{_0xf2f5d8[_0x173053([0x74,0x68,0x65,0x6e])](_0x522746,_0x4fcaf6),_0x3fa887[_0x173053([0x74,0x68,0x65,0x6e])](_0x2667ce=>{_0x2667ce!=_0x173053([0x56,0x61,0x6c,0x69,0x64])&&_0x522746(_0x2667ce);},_0x4fcaf6);});return _0xf2f5d8||_0x3fa887||_0x173053([0x56,0x61,0x6c,0x69,0x64]);}())):_0x173053([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x173053([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x173053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x173053([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x21ef1f(_0x52b97b){return _0x52b97b[_0x173053([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x173053([0x65,0x79]))?JSON[_0x173053([0x70,0x61,0x72,0x73,0x65])](_0x1e8f5d(_0x52b97b)):null;}function _0x1e8f5d(_0x1a9e82){return window[_0x173053([0x61,0x74,0x6f,0x62])](_0x1a9e82[_0x173053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x173053([0x2b]))[_0x173053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x173053([0x2f])));}function _0x38ae9b(_0x443c8b){let _0x47d4d3=0x1505;function _0x1f35a9(_0x135224){for(let _0x2dc45e=0x0;_0x2dc45e<_0x135224[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2dc45e++){const _0x40c7dc=_0x135224[_0x173053([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2dc45e);_0x47d4d3=(_0x47d4d3<<0x5)+_0x47d4d3+_0x40c7dc,_0x47d4d3&=_0x47d4d3;}}return function _0x43732c(_0xdef80d){Array[_0x173053([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdef80d)?_0xdef80d[_0x173053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43732c):_0xdef80d&&typeof _0xdef80d==_0x173053([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x173053([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdef80d)[_0x173053([0x73,0x6f,0x72,0x74])]()[_0x173053([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xeb87da,_0x49584c])=>{_0x1f35a9(_0xeb87da),_0x43732c(_0x49584c);}):_0x1f35a9(window[_0x173053([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdef80d));}(_0x443c8b),_0x47d4d3>>>0x0;}function _0x37de55(_0x3cefd5){return _0x3cefd5[_0x173053([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x173053([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x173053([0x30]));}function _0xcf3598(_0xfa657){return _0xfa657[_0x173053([0x73,0x70,0x6c,0x69,0x74])]('')[_0x173053([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x173053([0x6a,0x6f,0x69,0x6e])]('');}function _0x1263df(){}function _0x173053(_0xe01ee9){return _0xe01ee9['map'](_0x1714a0=>String['fromCharCode'](_0x1714a0))['join']('');}!function(_0x44f5d9){const _0x5f382f=(function(){const _0x81cec1=window[_0x173053([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x173053([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x173053([0x6e,0x6f,0x77])]())[_0x173053([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x173053([0x2e]),'');let _0x7cc648=_0x173053([0x6e]);for(let _0xa63310=0x0;_0xa63310<_0x81cec1[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa63310+=0x2){let _0x1fd221=window[_0x173053([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x81cec1[_0x173053([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa63310,_0xa63310+0x2));_0x1fd221>=_0x58ec57[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1fd221-=_0x58ec57[_0x173053([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7cc648+=_0x58ec57[_0x1fd221];}return _0x7cc648;}());_0x234117[_0x5f382f]=_0x173053([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44f5d9,_0x44f5d9!=_0x173053([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x58372b,_0x234117[_0x173053([0x6d,0x6f,0x64,0x65,0x6c])][_0x173053([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1263df,_0x234117[_0x173053([0x6d,0x6f,0x64,0x65,0x6c])][_0x173053([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1263df,_0x234117[_0x173053([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x173053([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5a324c);}class AIAdapter extends Plugin{static get['pluginName'](){return'AIAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){if(!this['textAdapter'])throw new CKEditorError('aiadapter-text-adapter-not-set',null);}}class AIRequestError extends Error{constructor(_0x431d7e){super(_0x431d7e),this['name']='AIRequestError';}}function getTranslation$j(_0x13d885,_0x448bb3,_0x21daec){const t=_0x13d885['t'];switch(_0x448bb3){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x21daec);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x21daec);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x21daec);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x448bb3;}}class ShowAIAssistantCommand extends Command{['_commandDefinitions'];constructor(_0x3ea2e4,_0x2ae78b){super(_0x3ea2e4),this['_commandDefinitions']=_0x2ae78b,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x114c5c,_0x3bec9f,_0x47f38b)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0x47f38b));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x65f2fa,_0x15f9a2,_0x5debe4)=>{this['enabledCommandsIds']=_0x5debe4?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x5c34ee=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x5c34ee);const _0x55da94=_0x5c34ee['document']['selection'],_0x55ef17=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x3f2d97 of _0x55da94['getRanges']())for(const _0x11cdfe of _0x3f2d97['getItems']())if(_0x11cdfe['is']('element')&&_0x55ef17['includes'](_0x11cdfe['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x4e0630='',_0x38f16f='',_0x39d4ba='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0x4e0630,_0x38f16f,_0x39d4ba);}}function _isContextAvailable(_0x504f37){const _0x47c85a=_0x504f37['document']['selection'];return _0x47c85a['isCollapsed']?0x0!==[..._0x47c85a['getSelectedBlocks']()]['length']&&![..._0x47c85a['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x504f37['hasContent'](_0x47c85a['getFirstRange']());}function _getEnabledCommands(_0x3ac158,_0x1be145){const _0x4875e8=new Set();for(const _0x35b1a0 of _0x3ac158['values']())(_0x1be145||!0x1===_0x35b1a0['requiresContent'])&&_0x4875e8['add'](_0x35b1a0['id']);return Array['from'](_0x4875e8);}const MIN_RESPONSE_LENGTH_TO_FIRST_HTML=0x64,ALL_UNTIL_FIRST_HTML_REGEX=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');class AIAssistantController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['editor'];['textAdapter'];['view'];['_sanitizationContainer'];['_domParser'];['_xmlSerializer'];constructor(_0x4f54d6,_0x21c50e,_0x5f4f30){super(),this['editor']=_0x4f54d6,this['textAdapter']=_0x21c50e,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x5f4f30,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x2de9c7,_0x40e87b,_0x51c472)=>{this['view']['value']=this['_sanitizeHTML'](_0x51c472);}),this['listenTo'](this['view'],'submitPrompt',(_0xd4887e,_0x2b6c09)=>{const _0x4270a0=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x2b6c09,_0x4270a0,'custom');}),this['listenTo'](this['view'],'tryAgainEvent',()=>{this['view']['prompt']=this['previousLabel'],this['_handleQuery'](this['previousQuery'],this['previousContext'],this['previousActionId'],this['previousLabel']);}),this['listenTo'](this['view'],'stopProcessing',()=>{this['stopProcessing']();});}['destroy'](){this['stopListening']();}async['updateView']({actionId:_0x1b2267,query:_0x5cc298,htmlContent:_0x3afdbe,label:_0x29f233,mainActionLabel:_0xd977d4}){this['view']['prompt']=_0x29f233,this['view']['mainAction']=_0xd977d4,this['initialContext']=_0x3afdbe,_0x5cc298&&(this['view']['isRendered']?this['_handleQuery'](_0x5cc298,_0x3afdbe,_0x1b2267,_0x29f233):this['view']['once']('render',()=>{this['_handleQuery'](_0x5cc298,_0x3afdbe,_0x1b2267,_0x29f233);}));}['stopProcessing'](){this['isProcessing']&&(this['isProcessing']=!0x1,this['view']['finishProcessing'](),this['textAdapter']['abort']());}['reset'](){this['initialContext']='',this['currentContext']='',this['currentResponse']='',this['previousContext']='',this['previousQuery']='',this['previousLabel']='',this['previousActionId']=void 0x0,this['view']['reset'](),this['stopProcessing']();}async['_handleQuery'](_0x2d1de1,_0x47d762,_0x4998c5,_0x28d30f){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x47d762,this['previousQuery']=_0x2d1de1,this['previousLabel']=_0x28d30f||_0x2d1de1,this['previousActionId']=_0x4998c5,new Promise(_0x21a6b3=>{this['textAdapter']['makeRequest']({'query':_0x2d1de1,'context':_0x47d762,'onData':_0x2b8775=>{this['currentResponse']=_0x2b8775,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x4998c5})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x4d8b56=>{_0x4d8b56 instanceof AIRequestError?this['view']['handleError'](_0x4d8b56['message']):this['view']['handleError'](),_0x21a6b3();})['finally'](()=>{this['stopProcessing'](),_0x21a6b3();});});}['_parseAndNormalizeContent'](_0x5341db,_0x29cef1=!0x1){const _0x6e4e5c=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0x5341db);_0x5341db=_0x6e4e5c?_0x5341db['substring'](_0x6e4e5c[0x1]['length']):_0x5341db['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x29cef1?'':this['_stripMarkdownSyntax'](_0x5341db);const _0x13d070=this['_domParser']['parseFromString'](_0x5341db,'text/html');if(_0x6e4e5c){const _0x5c86d7=Array['from'](_0x13d070['body']['childNodes']);_0x5c86d7['reverse']();for(const _0x41cce7 of _0x5c86d7){if(_0x41cce7['nodeType']==Node['ELEMENT_NODE'])break;_0x41cce7['remove']();}}const _0x1ee889=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x13d070['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x1ee889);const _0x88733a=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x13b016=this['editor']['data']['toModel'](_0x1ee889);return _0x88733a||_0x13b016['markers']['clear'](),this['editor']['data']['stringify'](_0x13b016);}['_normalizeResponseHeadings'](_0x18b4bc){const _0x5a04e4=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0x59662b=new Matcher({'name':/^h[1-5]$/}),_0x2669e9=[];let _0x2ae2b5=!0x1;for(const _0x4c4f2d of _0x18b4bc)_0x4c4f2d['is']('element')&&_0x59662b['match'](_0x4c4f2d)&&(_0x2669e9['push'](_0x4c4f2d),'h1'==_0x4c4f2d['name']&&(_0x2ae2b5=!0x0));if(_0x2ae2b5){for(const _0x4825b8 of _0x2669e9)_0x5a04e4['rename']('h'+(parseInt(_0x4825b8['name'][0x1])+0x1),_0x4825b8);}}['_isH1TagSupportEnabled'](){const {data:_0x9d8b2c,editing:_0x4d5776}=this['editor'],_0x2eb097=_0x9d8b2c['htmlProcessor']['toView']('<h1></h1>'),_0x5d641f=_0x9d8b2c['toView'](_0x9d8b2c['toModel'](_0x2eb097));return!!_0x4d5776['view']['domConverter']['viewToDom'](_0x5d641f)['querySelector']('h1');}['_sanitizeHTML'](_0x1031d2){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0x1031d2),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x1428b5){const _0x171e4a=_0x1428b5['trim']();return _0x171e4a['startsWith']('```html')?_0x171e4a['endsWith']('```')?_0x171e4a['substring'](0x7,_0x171e4a['length']-0x3):_0x171e4a['substring'](0x7):_0x1428b5;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x652992){super(_0x652992),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x1765f2=>getTranslation$j(_0x652992,'AI_'+_0x1765f2['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x652992,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x652992,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x652992,'Stop'));const _0xdaa2dd=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0xdaa2dd['if']('isVisible','ck-hidden',_0x26cb36=>!_0x26cb36)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x17150a,_0x229986){const _0xcd94e2=new ButtonView(this['locale']);return _0xcd94e2['set']({'label':_0x17150a,'class':_0x229986||'','isVisible':!0x0,'withText':!0x0}),_0xcd94e2;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0x473426,_0x2607e6=''){super(_0x473426),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x38bf79=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0x473426,_0x2607e6),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x38bf79['if']('isVisible','ck-hidden',_0x383260=>!_0x383260)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x38bf79['if']('isProcessing','ck-ai-form__content-area--processing')]},'children':[this['contentFieldView'],{'tag':'div','attributes':{'class':['ck','ck-ai-form__copy-button-wrapper']},'children':[this['copyButtonView']]}]}]});}['render'](){super['render'](),this['value']&&this['contentFieldView']['setContent'](this['value']);let _0x57b22d=!0x1;this['on']('change:value',(_0x37ebf7,_0x3f78bd,_0x1ef828)=>{const _0x431ae2=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x1ef828),this['isProcessing']&&_0x431ae2&&!_0x57b22d&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x33b49f,_0x19994a,_0x5321ec)=>{_0x57b22d=!0x1,_0x5321ec?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x57b22d=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x57b22d=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x27b243=this['locale'],_0x5ddb1d=new ButtonView(this['locale']),_0xbf6454='ck-ai-form__copy-button';return _0x5ddb1d['set']({'label':getTranslation$j(_0x27b243,'Copy'),'icon':IconCopy,'class':_0xbf6454,'tooltip':!0x0}),_0x5ddb1d['bind']('isVisible')['to'](this,'value',_0x3229ed=>!!_0x3229ed),_0x5ddb1d['bind']('isEnabled')['to'](this,'isProcessing',_0x3f99ae=>!_0x3f99ae),_0x5ddb1d['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x5ddb1d['icon']=IconCheck,_0x5ddb1d['class']=_0xbf6454+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x5ddb1d['icon']=IconCopy,_0x5ddb1d['class']=_0xbf6454;},0x3e8);}),_0x5ddb1d;}['_copyHTMLToClipboard'](_0x3cd94c){const {window:_0x3b25d5,document:_0x504677}=_0x1a0b09;if(_0x3b25d5['ClipboardItem']){const {Blob:_0x102a33,ClipboardItem:_0xc7ce0f}=_0x3b25d5,_0x3b05cb=[new _0xc7ce0f({'text/html':new _0x102a33([_0x3cd94c['innerHTML']],{'type':'text/html'}),'text/plain':new _0x102a33([_0x3cd94c['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x3b05cb);}else{const _0x1f3cef=_0x504677['createElement']('div');_0x1f3cef['style']['position']='absolute',_0x1f3cef['style']['left']='-9999px',_0x1f3cef['innerHTML']='<span>[</span>'+_0x3cd94c['innerHTML']+'<span>]</span>',_0x504677['body']['appendChild'](_0x1f3cef);const _0x469288=_0x504677['createRange']();_0x469288['setStartAfter'](_0x1f3cef['firstElementChild']),_0x469288['setEndBefore'](_0x1f3cef['lastElementChild']);const _0x1f2b3e=_0x3b25d5['getSelection']();_0x1f2b3e['removeAllRanges'](),_0x1f2b3e['addRange'](_0x469288),_0x504677['execCommand']('copy'),_0x1f3cef['remove']();}}}class ContentFieldView extends View{constructor(_0x56262a,_0x5d569d=''){super(_0x56262a),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x5d569d,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x34242a){this['element']['innerHTML']=_0x34242a;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x34c62e=new View(),_0xd349fa=this['locale'],_0x408500=new SpinnerView();return _0x408500['isVisible']=!0x0,_0x34c62e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x408500,{'text':getTranslation$j(_0xd349fa,'AI\x20is\x20writing...')}]}),_0x34c62e['render'](),_0x34c62e;}}class AIFormErrorView extends View{constructor(_0x1af31d,_0x3362fa=''){super(_0x1af31d);const _0x272f03=new IconView(),_0x27e383=this['bindTemplate'];this['set']('text',_0x3362fa),_0x272f03['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x272f03,{'text':_0x27e383['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0x5f48ca,_0xd10167){super(_0x5f48ca,_0xd10167),this['queryView']['fieldView']['minRows']=0x1,this['queryView']['fieldView']['maxRows']=0x3,this['submitButtonView']=this['_createSubmitButton'](),this['showHistoryButtonView']=this['_createShowHistoryButton'](),this['focusableChildren']['add'](this['showHistoryButtonView'],0x1),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['showHistoryButtonView']),this['children']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x49f7a0,_0x41f21e)=>{_0x49f7a0['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x41f21e());});}['_createSubmitButton'](){const _0xd09091=new ButtonView(this['locale']),_0x159ee3=this['locale'];return _0xd09091['set']({'icon':IconSubmit,'label':getTranslation$j(_0x159ee3,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0xd09091['on']('execute',()=>{this['submit']();}),_0xd09091['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x299617,_0x1173fb)=>!_0x299617&&_0x1173fb),_0xd09091;}['_createShowHistoryButton'](){const _0x58aa3e=new ButtonView(this['locale']),_0x29edb4=this['resultsView'],_0x36fdb9=this['locale'];_0x58aa3e['set']({'label':getTranslation$j(_0x36fdb9,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x58aa3e['bind']('isOn')['to'](_0x29edb4,'isVisible'),_0x58aa3e['bind']('isEnabled')['to'](this,'isEnabled'),_0x58aa3e['on']('execute',()=>{_0x29edb4['isVisible']=!_0x29edb4['isVisible'],_0x29edb4['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x45ea29=()=>{_0x1a0b09['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x51c60a=new Rect(this['queryView']['fieldView']['element']),_0x531317=_0x51c60a['width'],_0x5c2862='rtl'===_0x36fdb9['uiLanguageDirection']?'left':'right';_0x51c60a['excludeScrollbarsAndBorders'](),_0x58aa3e['element']['style'][_0x5c2862]=_0x531317-_0x51c60a['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x45ea29),this['on']('render',_0x45ea29),_0x58aa3e;}['submit'](){const _0x3ef8f3=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x3ef8f3);}['focus'](_0x4ee994){-0x1===_0x4ee994?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x37e26e){super(_0x37e26e),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x37e26e,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x17ea90=0x0;for(const _0x45cb7f of this['items'])_0x17ea90+=_0x45cb7f['items']['length'];return{'resultsCount':_0x17ea90,'totalItemsCount':_0x17ea90};}['_createClearHistoryButton'](){const _0x4bbff0=this['locale'],_0x2b7dbb=new ButtonView(this['locale']);return _0x2b7dbb['set']({'label':'('+getTranslation$j(_0x4bbff0,'Clear')+')','withText':!0x0}),_0x2b7dbb['on']('execute',()=>this['fire']('clearHistory')),_0x2b7dbb;}}function isLength(_0x1a7aa1){return Number['isSafeInteger'](_0x1a7aa1)&&_0x1a7aa1>=0x0;}function isArrayLike(_0x461c92){return null!=_0x461c92&&'function'!=typeof _0x461c92&&isLength(_0x461c92['length']);}function isUnsafeProperty(_0xf6dae5){return'__proto__'===_0xf6dae5;}function isDeepKey(_0x33d8b0){switch(typeof _0x33d8b0){case'number':case'symbol':return!0x1;case'string':return _0x33d8b0['includes']('.')||_0x33d8b0['includes']('[')||_0x33d8b0['includes'](']');}}function toKey(_0x3b7b87){return'string'==typeof _0x3b7b87||'symbol'==typeof _0x3b7b87?_0x3b7b87:Object['is'](_0x3b7b87?.['valueOf']?.(),-0x0)?'-0':String(_0x3b7b87);}function toString$3(_0xa0ae50){if(null==_0xa0ae50)return'';if('string'==typeof _0xa0ae50)return _0xa0ae50;if(Array['isArray'](_0xa0ae50))return _0xa0ae50['map'](toString$3)['join'](',');const _0x5ec482=String(_0xa0ae50);return'0'===_0x5ec482&&Object['is'](Number(_0xa0ae50),-0x0)?'-0':_0x5ec482;}function toPath(_0x54a12c){if(Array['isArray'](_0x54a12c))return _0x54a12c['map'](toKey);if('symbol'==typeof _0x54a12c)return[_0x54a12c];const _0x434d0c=[],_0x2344d7=(_0x54a12c=toString$3(_0x54a12c))['length'];if(0x0===_0x2344d7)return _0x434d0c;let _0x53b19e=0x0,_0x262a99='',_0x2fe79c='',_0x567820=!0x1;for(0x2e===_0x54a12c['charCodeAt'](0x0)&&(_0x434d0c['push'](''),_0x53b19e++);_0x53b19e<_0x2344d7;){const _0x49f9b8=_0x54a12c[_0x53b19e];_0x2fe79c?'\x5c'===_0x49f9b8&&_0x53b19e+0x1<_0x2344d7?(_0x53b19e++,_0x262a99+=_0x54a12c[_0x53b19e]):_0x49f9b8===_0x2fe79c?_0x2fe79c='':_0x262a99+=_0x49f9b8:_0x567820?'\x22'===_0x49f9b8||'\x27'===_0x49f9b8?_0x2fe79c=_0x49f9b8:']'===_0x49f9b8?(_0x567820=!0x1,_0x434d0c['push'](_0x262a99),_0x262a99=''):_0x262a99+=_0x49f9b8:'['===_0x49f9b8?(_0x567820=!0x0,_0x262a99&&(_0x434d0c['push'](_0x262a99),_0x262a99='')):'.'===_0x49f9b8?_0x262a99&&(_0x434d0c['push'](_0x262a99),_0x262a99=''):_0x262a99+=_0x49f9b8,_0x53b19e++;}return _0x262a99&&_0x434d0c['push'](_0x262a99),_0x434d0c;}function get(_0x344705,_0x546bcb,_0x58ee2d){if(null==_0x344705)return _0x58ee2d;switch(typeof _0x546bcb){case'string':{if(isUnsafeProperty(_0x546bcb))return _0x58ee2d;const _0x3ea898=_0x344705[_0x546bcb];return void 0x0===_0x3ea898?isDeepKey(_0x546bcb)?get(_0x344705,toPath(_0x546bcb),_0x58ee2d):_0x58ee2d:_0x3ea898;}case'number':case'symbol':{'number'==typeof _0x546bcb&&(_0x546bcb=toKey(_0x546bcb));const _0x1edd18=_0x344705[_0x546bcb];return void 0x0===_0x1edd18?_0x58ee2d:_0x1edd18;}default:{if(Array['isArray'](_0x546bcb))return getWithPath(_0x344705,_0x546bcb,_0x58ee2d);if(isUnsafeProperty(_0x546bcb=Object['is'](_0x546bcb?.['valueOf'](),-0x0)?'-0':String(_0x546bcb)))return _0x58ee2d;const _0x8573e9=_0x344705[_0x546bcb];return void 0x0===_0x8573e9?_0x58ee2d:_0x8573e9;}}}function getWithPath(_0x163ffb,_0x175703,_0x169110){if(0x0===_0x175703['length'])return _0x169110;let _0x242b7b=_0x163ffb;for(let _0x5ea96b=0x0;_0x5ea96b<_0x175703['length'];_0x5ea96b++){if(null==_0x242b7b)return _0x169110;if(isUnsafeProperty(_0x175703[_0x5ea96b]))return _0x169110;_0x242b7b=_0x242b7b[_0x175703[_0x5ea96b]];}return void 0x0===_0x242b7b?_0x169110:_0x242b7b;}function isObject$2(_0xdfec8a){return null!==_0xdfec8a&&('object'==typeof _0xdfec8a||'function'==typeof _0xdfec8a);}function isPrimitive(_0x1e83c6){return null==_0x1e83c6||'object'!=typeof _0x1e83c6&&'function'!=typeof _0x1e83c6;}function isEqualsSameValueZero(_0x5bb632,_0x2765ca){return _0x5bb632===_0x2765ca||Number['isNaN'](_0x5bb632)&&Number['isNaN'](_0x2765ca);}function getSymbols(_0x239369){return Object['getOwnPropertySymbols'](_0x239369)['filter'](_0x191d64=>Object['prototype']['propertyIsEnumerable']['call'](_0x239369,_0x191d64));}function getTag(_0x132d83){return null==_0x132d83?void 0x0===_0x132d83?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x132d83);}const regexpTag='[object\x20RegExp]',stringTag='[object\x20String]',numberTag='[object\x20Number]',booleanTag='[object\x20Boolean]',argumentsTag='[object\x20Arguments]',symbolTag='[object\x20Symbol]',dateTag='[object\x20Date]',mapTag='[object\x20Map]',setTag='[object\x20Set]',arrayTag='[object\x20Array]',functionTag='[object\x20Function]',arrayBufferTag='[object\x20ArrayBuffer]',objectTag='[object\x20Object]',errorTag='[object\x20Error]',dataViewTag='[object\x20DataView]',uint8ArrayTag='[object\x20Uint8Array]',uint8ClampedArrayTag='[object\x20Uint8ClampedArray]',uint16ArrayTag='[object\x20Uint16Array]',uint32ArrayTag='[object\x20Uint32Array]',bigUint64ArrayTag='[object\x20BigUint64Array]',int8ArrayTag='[object\x20Int8Array]',int16ArrayTag='[object\x20Int16Array]',int32ArrayTag='[object\x20Int32Array]',bigInt64ArrayTag='[object\x20BigInt64Array]',float32ArrayTag='[object\x20Float32Array]',float64ArrayTag='[object\x20Float64Array]';function isTypedArray$1(_0x591a92){return ArrayBuffer['isView'](_0x591a92)&&!(_0x591a92 instanceof DataView);}function cloneDeepWith$1(_0x569dc2,_0x42fe25){return cloneDeepWithImpl(_0x569dc2,void 0x0,_0x569dc2,new Map(),_0x42fe25);}function cloneDeepWithImpl(_0x3e0944,_0x2dbca5,_0x5252a1,_0x201dc6=new Map(),_0x4d0cd7=void 0x0){const _0x32e26f=_0x4d0cd7?.(_0x3e0944,_0x2dbca5,_0x5252a1,_0x201dc6);if(void 0x0!==_0x32e26f)return _0x32e26f;if(isPrimitive(_0x3e0944))return _0x3e0944;if(_0x201dc6['has'](_0x3e0944))return _0x201dc6['get'](_0x3e0944);if(Array['isArray'](_0x3e0944)){const _0x10a283=new Array(_0x3e0944['length']);_0x201dc6['set'](_0x3e0944,_0x10a283);for(let _0xace8ad=0x0;_0xace8ad<_0x3e0944['length'];_0xace8ad++)_0x10a283[_0xace8ad]=cloneDeepWithImpl(_0x3e0944[_0xace8ad],_0xace8ad,_0x5252a1,_0x201dc6,_0x4d0cd7);return Object['hasOwn'](_0x3e0944,'index')&&(_0x10a283['index']=_0x3e0944['index']),Object['hasOwn'](_0x3e0944,'input')&&(_0x10a283['input']=_0x3e0944['input']),_0x10a283;}if(_0x3e0944 instanceof Date)return new Date(_0x3e0944['getTime']());if(_0x3e0944 instanceof RegExp){const _0x234cff=new RegExp(_0x3e0944['source'],_0x3e0944['flags']);return _0x234cff['lastIndex']=_0x3e0944['lastIndex'],_0x234cff;}if(_0x3e0944 instanceof Map){const _0x21fa6d=new Map();_0x201dc6['set'](_0x3e0944,_0x21fa6d);for(const [_0x4d2740,_0x1c55eb]of _0x3e0944)_0x21fa6d['set'](_0x4d2740,cloneDeepWithImpl(_0x1c55eb,_0x4d2740,_0x5252a1,_0x201dc6,_0x4d0cd7));return _0x21fa6d;}if(_0x3e0944 instanceof Set){const _0x31c292=new Set();_0x201dc6['set'](_0x3e0944,_0x31c292);for(const _0x22dd89 of _0x3e0944)_0x31c292['add'](cloneDeepWithImpl(_0x22dd89,void 0x0,_0x5252a1,_0x201dc6,_0x4d0cd7));return _0x31c292;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x3e0944))return _0x3e0944['subarray']();if(isTypedArray$1(_0x3e0944)){const _0x27c6af=new(Object['getPrototypeOf'](_0x3e0944))['constructor'](_0x3e0944['length']);_0x201dc6['set'](_0x3e0944,_0x27c6af);for(let _0x1a1f70=0x0;_0x1a1f70<_0x3e0944['length'];_0x1a1f70++)_0x27c6af[_0x1a1f70]=cloneDeepWithImpl(_0x3e0944[_0x1a1f70],_0x1a1f70,_0x5252a1,_0x201dc6,_0x4d0cd7);return _0x27c6af;}if(_0x3e0944 instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x3e0944 instanceof SharedArrayBuffer)return _0x3e0944['slice'](0x0);if(_0x3e0944 instanceof DataView){const _0x22a3e4=new DataView(_0x3e0944['buffer']['slice'](0x0),_0x3e0944['byteOffset'],_0x3e0944['byteLength']);return _0x201dc6['set'](_0x3e0944,_0x22a3e4),copyProperties(_0x22a3e4,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x22a3e4;}if('undefined'!=typeof File&&_0x3e0944 instanceof File){const _0x34a1c1=new File([_0x3e0944],_0x3e0944['name'],{'type':_0x3e0944['type']});return _0x201dc6['set'](_0x3e0944,_0x34a1c1),copyProperties(_0x34a1c1,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x34a1c1;}if('undefined'!=typeof Blob&&_0x3e0944 instanceof Blob){const _0x22626b=new Blob([_0x3e0944],{'type':_0x3e0944['type']});return _0x201dc6['set'](_0x3e0944,_0x22626b),copyProperties(_0x22626b,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x22626b;}if(_0x3e0944 instanceof Error){const _0x252937=structuredClone(_0x3e0944);return _0x201dc6['set'](_0x3e0944,_0x252937),_0x252937['message']=_0x3e0944['message'],_0x252937['name']=_0x3e0944['name'],_0x252937['stack']=_0x3e0944['stack'],_0x252937['cause']=_0x3e0944['cause'],_0x252937['constructor']=_0x3e0944['constructor'],copyProperties(_0x252937,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x252937;}if(_0x3e0944 instanceof Boolean){const _0x9f5b06=new Boolean(_0x3e0944['valueOf']());return _0x201dc6['set'](_0x3e0944,_0x9f5b06),copyProperties(_0x9f5b06,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x9f5b06;}if(_0x3e0944 instanceof Number){const _0x2c151d=new Number(_0x3e0944['valueOf']());return _0x201dc6['set'](_0x3e0944,_0x2c151d),copyProperties(_0x2c151d,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x2c151d;}if(_0x3e0944 instanceof String){const _0x5d59a0=new String(_0x3e0944['valueOf']());return _0x201dc6['set'](_0x3e0944,_0x5d59a0),copyProperties(_0x5d59a0,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x5d59a0;}if('object'==typeof _0x3e0944&&isCloneableObject(_0x3e0944)){const _0x2e8bb1=Object['create'](Object['getPrototypeOf'](_0x3e0944));return _0x201dc6['set'](_0x3e0944,_0x2e8bb1),copyProperties(_0x2e8bb1,_0x3e0944,_0x5252a1,_0x201dc6,_0x4d0cd7),_0x2e8bb1;}return _0x3e0944;}function copyProperties(_0x5ecfff,_0x5a3296,_0x1dfd99=_0x5ecfff,_0x376c90,_0x34bfec){const _0x4bab6d=[...Object['keys'](_0x5a3296),...getSymbols(_0x5a3296)];for(let _0x5899dc=0x0;_0x5899dc<_0x4bab6d['length'];_0x5899dc++){const _0x5c6c46=_0x4bab6d[_0x5899dc],_0x1d0e6d=Object['getOwnPropertyDescriptor'](_0x5ecfff,_0x5c6c46);(null==_0x1d0e6d||_0x1d0e6d['writable'])&&(_0x5ecfff[_0x5c6c46]=cloneDeepWithImpl(_0x5a3296[_0x5c6c46],_0x5c6c46,_0x1dfd99,_0x376c90,_0x34bfec));}}function isCloneableObject(_0x21ab69){switch(getTag(_0x21ab69)){case argumentsTag:case arrayTag:case arrayBufferTag:case dataViewTag:case booleanTag:case dateTag:case float32ArrayTag:case float64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case mapTag:case numberTag:case objectTag:case regexpTag:case setTag:case stringTag:case symbolTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:return!0x0;default:return!0x1;}}function cloneDeepWith(_0x238c08,_0x1a0490){return cloneDeepWith$1(_0x238c08,(_0x3d6308,_0xd80539,_0x3a8230,_0x340f61)=>{const _0x1b84b4=_0x1a0490?.(_0x3d6308,_0xd80539,_0x3a8230,_0x340f61);if(void 0x0!==_0x1b84b4)return _0x1b84b4;if('object'==typeof _0x238c08){if(getTag(_0x238c08)===objectTag&&'function'!=typeof _0x238c08['constructor']){const _0x26a0e1={};return _0x340f61['set'](_0x238c08,_0x26a0e1),copyProperties(_0x26a0e1,_0x238c08,_0x3a8230,_0x340f61),_0x26a0e1;}switch(Object['prototype']['toString']['call'](_0x238c08)){case numberTag:case stringTag:case booleanTag:{const _0x309454=new _0x238c08['constructor'](_0x238c08?.['valueOf']());return copyProperties(_0x309454,_0x238c08),_0x309454;}case argumentsTag:{const _0x4d9f53={};return copyProperties(_0x4d9f53,_0x238c08),_0x4d9f53['length']=_0x238c08['length'],_0x4d9f53[Symbol['iterator']]=_0x238c08[Symbol['iterator']],_0x4d9f53;}default:return;}}});}function cloneDeep(_0x1833e5){return cloneDeepWith(_0x1833e5);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x501df1,_0x364e30=Number['MAX_SAFE_INTEGER']){switch(typeof _0x501df1){case'number':return Number['isInteger'](_0x501df1)&&_0x501df1>=0x0&&_0x501df1<_0x364e30;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x501df1);}}function isObjectLike(_0x17ea61){return'object'==typeof _0x17ea61&&null!==_0x17ea61;}function isSymbol(_0x3a8025){return'symbol'==typeof _0x3a8025||_0x3a8025 instanceof Symbol;}function toNumber(_0x8fb605){return isSymbol(_0x8fb605)?NaN:Number(_0x8fb605);}function toFinite(_0x1c99b5){if(!_0x1c99b5)return 0x0===_0x1c99b5?_0x1c99b5:0x0;if((_0x1c99b5=toNumber(_0x1c99b5))===0x1/0x0||_0x1c99b5===-0x1/0x0)return(_0x1c99b5<0x0?-0x1:0x1)*Number['MAX_VALUE'];return _0x1c99b5==_0x1c99b5?_0x1c99b5:0x0;}function toInteger(_0x221bb1){const _0x4b2fea=toFinite(_0x221bb1),_0x4007ea=_0x4b2fea%0x1;return _0x4007ea?_0x4b2fea-_0x4007ea:_0x4b2fea;}function flatten$1(_0x2d6652,_0x45d9eb=0x1){const _0x8252e0=[],_0x1a086e=Math['floor'](_0x45d9eb);if(!isArrayLike(_0x2d6652))return _0x8252e0;const _0x2f6848=(_0x42a3d5,_0x25bd00)=>{for(let _0x3a72eb=0x0;_0x3a72eb<_0x42a3d5['length'];_0x3a72eb++){const _0x4a8a9b=_0x42a3d5[_0x3a72eb];_0x25bd00<_0x1a086e&&(Array['isArray'](_0x4a8a9b)||Boolean(_0x4a8a9b?.[Symbol['isConcatSpreadable']])||null!==_0x4a8a9b&&'object'==typeof _0x4a8a9b&&'[object\x20Arguments]'===Object['prototype']['toString']['call'](_0x4a8a9b))?Array['isArray'](_0x4a8a9b)?_0x2f6848(_0x4a8a9b,_0x25bd00+0x1):_0x2f6848(Array['from'](_0x4a8a9b),_0x25bd00+0x1):_0x8252e0['push'](_0x4a8a9b);}};return _0x2f6848(Array['from'](_0x2d6652),0x0),_0x8252e0;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x40a7db,_0x616cdb){return!Array['isArray'](_0x40a7db)&&(!('number'!=typeof _0x40a7db&&'boolean'!=typeof _0x40a7db&&null!=_0x40a7db&&!isSymbol(_0x40a7db))||('string'==typeof _0x40a7db&&(regexIsPlainProp['test'](_0x40a7db)||!regexIsDeepProp['test'](_0x40a7db))||null!=_0x616cdb&&Object['hasOwn'](_0x616cdb,_0x40a7db)));}function unset(_0x585105,_0x3c6ee8){if(null==_0x585105)return!0x0;switch(typeof _0x3c6ee8){case'symbol':case'number':case'object':if(Array['isArray'](_0x3c6ee8))return unsetWithPath(_0x585105,_0x3c6ee8);if('number'==typeof _0x3c6ee8?_0x3c6ee8=toKey(_0x3c6ee8):'object'==typeof _0x3c6ee8&&(_0x3c6ee8=Object['is'](_0x3c6ee8?.['valueOf'](),-0x0)?'-0':String(_0x3c6ee8)),isUnsafeProperty(_0x3c6ee8))return!0x1;if(void 0x0===_0x585105?.[_0x3c6ee8])return!0x0;try{return delete _0x585105[_0x3c6ee8],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x585105?.[_0x3c6ee8]&&isDeepKey(_0x3c6ee8))return unsetWithPath(_0x585105,toPath(_0x3c6ee8));if(isUnsafeProperty(_0x3c6ee8))return!0x1;try{return delete _0x585105[_0x3c6ee8],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x239f28,_0x4b54a2){const _0x483dcd=0x1===_0x4b54a2['length']?_0x239f28:get(_0x239f28,_0x4b54a2['slice'](0x0,-0x1)),_0x5573ef=_0x4b54a2[_0x4b54a2['length']-0x1];if(void 0x0===_0x483dcd?.[_0x5573ef])return!0x0;if(isUnsafeProperty(_0x5573ef))return!0x1;try{return delete _0x483dcd[_0x5573ef],!0x0;}catch{return!0x1;}}const assignValue=(_0x6827c8,_0x5cab0d,_0x3ccd61)=>{const _0x288a00=_0x6827c8[_0x5cab0d];Object['hasOwn'](_0x6827c8,_0x5cab0d)&&isEqualsSameValueZero(_0x288a00,_0x3ccd61)&&(void 0x0!==_0x3ccd61||_0x5cab0d in _0x6827c8)||(_0x6827c8[_0x5cab0d]=_0x3ccd61);};function updateWith(_0x3a6062,_0x306a4b,_0x1d7345,_0x131570){if(null==_0x3a6062&&!isObject$2(_0x3a6062))return _0x3a6062;let _0x34e654;_0x34e654=isKey(_0x306a4b,_0x3a6062)?[_0x306a4b]:Array['isArray'](_0x306a4b)?_0x306a4b:toPath(_0x306a4b);const _0x2cf92d=_0x1d7345(get(_0x3a6062,_0x34e654));let _0x403f40=_0x3a6062;for(let _0x41c740=0x0;_0x41c740<_0x34e654['length']&&null!=_0x403f40;_0x41c740++){const _0xeb4476=toKey(_0x34e654[_0x41c740]);if(isUnsafeProperty(_0xeb4476))continue;let _0x1b0af4;if(_0x41c740===_0x34e654['length']-0x1)_0x1b0af4=_0x2cf92d;else{const _0x3ec9c0=_0x403f40[_0xeb4476],_0x504df8=_0x131570?.(_0x3ec9c0,_0xeb4476,_0x3a6062);_0x1b0af4=void 0x0!==_0x504df8?_0x504df8:isObject$2(_0x3ec9c0)?_0x3ec9c0:isIndex(_0x34e654[_0x41c740+0x1])?[]:{};}assignValue(_0x403f40,_0xeb4476,_0x1b0af4),_0x403f40=_0x403f40[_0xeb4476];}return _0x3a6062;}function set(_0x489da7,_0x4d81f8,_0x40e9c7){return updateWith(_0x489da7,_0x4d81f8,()=>_0x40e9c7,()=>{});}function debounce$1(_0x2bc8c1,_0xf7aa3,{signal:_0xe2e81d,edges:_0x311f1e}={}){let _0x466c82,_0x40006f=null;const _0x1b405c=null!=_0x311f1e&&_0x311f1e['includes']('leading'),_0x12c218=null==_0x311f1e||_0x311f1e['includes']('trailing'),_0x1cb632=()=>{null!==_0x40006f&&(_0x2bc8c1['apply'](_0x466c82,_0x40006f),_0x466c82=void 0x0,_0x40006f=null);};let _0x3f1d1d=null;const _0x49e060=()=>{null!=_0x3f1d1d&&clearTimeout(_0x3f1d1d),_0x3f1d1d=setTimeout(()=>{_0x3f1d1d=null,_0x12c218&&_0x1cb632(),_0x394f7c();},_0xf7aa3);},_0x394f7c=()=>{null!==_0x3f1d1d&&(clearTimeout(_0x3f1d1d),_0x3f1d1d=null),_0x466c82=void 0x0,_0x40006f=null;},_0x19988e=function(..._0x483281){if(_0xe2e81d?.['aborted'])return;_0x466c82=this,_0x40006f=_0x483281;const _0x5aca53=null==_0x3f1d1d;_0x49e060(),_0x1b405c&&_0x5aca53&&_0x1cb632();};return _0x19988e['schedule']=_0x49e060,_0x19988e['cancel']=_0x394f7c,_0x19988e['flush']=()=>{_0x1cb632();},_0xe2e81d?.['addEventListener']('abort',_0x394f7c,{'once':!0x0}),_0x19988e;}function debounce(_0x434464,_0x244c96=0x0,_0x4e26c2={}){'object'!=typeof _0x4e26c2&&(_0x4e26c2={});const {leading:_0x1df3fd=!0x1,trailing:_0x26d1b0=!0x0,maxWait:_0x443e20}=_0x4e26c2,_0x183d94=Array(0x2);let _0x4e5002;_0x1df3fd&&(_0x183d94[0x0]='leading'),_0x26d1b0&&(_0x183d94[0x1]='trailing');let _0x52e5f9=null;const _0x2e0723=debounce$1(function(..._0x556eb3){_0x4e5002=_0x434464['apply'](this,_0x556eb3),_0x52e5f9=null;},_0x244c96,{'edges':_0x183d94}),_0x348210=function(..._0xcafb24){return null!=_0x443e20&&(null===_0x52e5f9&&(_0x52e5f9=Date['now']()),Date['now']()-_0x52e5f9>=_0x443e20)?(_0x4e5002=_0x434464['apply'](this,_0xcafb24),_0x52e5f9=Date['now'](),_0x2e0723['cancel'](),_0x2e0723['schedule'](),_0x4e5002):(_0x2e0723['apply'](this,_0xcafb24),_0x4e5002);};return _0x348210['cancel']=_0x2e0723['cancel'],_0x348210['flush']=()=>(_0x2e0723['flush'](),_0x4e5002),_0x348210;}function throttle(_0x222fb7,_0x5eecab=0x0,_0x21a4e5={}){const {leading:_0x13feab=!0x0,trailing:_0xa1307=!0x0}=_0x21a4e5;return debounce(_0x222fb7,_0x5eecab,{'leading':_0x13feab,'maxWait':_0x5eecab,'trailing':_0xa1307});}function isPlainObject$1(_0x46ffe0){if(!_0x46ffe0||'object'!=typeof _0x46ffe0)return!0x1;const _0x162d3d=Object['getPrototypeOf'](_0x46ffe0);return!(null!==_0x162d3d&&_0x162d3d!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x162d3d))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x46ffe0);}function isEqualWith(_0x163807,_0x9de0c3,_0x3a88cf){return isEqualWithImpl(_0x163807,_0x9de0c3,void 0x0,void 0x0,void 0x0,void 0x0,_0x3a88cf);}function isEqualWithImpl(_0x52838a,_0x219ec7,_0x2c6f88,_0x422fdf,_0x951a9,_0x5bbfa7,_0x41104){const _0x218040=_0x41104(_0x52838a,_0x219ec7,_0x2c6f88,_0x422fdf,_0x951a9,_0x5bbfa7);if(void 0x0!==_0x218040)return _0x218040;if(typeof _0x52838a==typeof _0x219ec7)switch(typeof _0x52838a){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x52838a===_0x219ec7;case'number':return _0x52838a===_0x219ec7||Object['is'](_0x52838a,_0x219ec7);case'object':return areObjectsEqual(_0x52838a,_0x219ec7,_0x5bbfa7,_0x41104);}return areObjectsEqual(_0x52838a,_0x219ec7,_0x5bbfa7,_0x41104);}function areObjectsEqual(_0xfc8881,_0x3c9c55,_0x31ee9a,_0x309886){if(Object['is'](_0xfc8881,_0x3c9c55))return!0x0;let _0x25f7ee=getTag(_0xfc8881),_0x296c55=getTag(_0x3c9c55);if(_0x25f7ee===argumentsTag&&(_0x25f7ee=objectTag),_0x296c55===argumentsTag&&(_0x296c55=objectTag),_0x25f7ee!==_0x296c55)return!0x1;switch(_0x25f7ee){case stringTag:return _0xfc8881['toString']()===_0x3c9c55['toString']();case numberTag:return isEqualsSameValueZero(_0xfc8881['valueOf'](),_0x3c9c55['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0xfc8881['valueOf'](),_0x3c9c55['valueOf']());case regexpTag:return _0xfc8881['source']===_0x3c9c55['source']&&_0xfc8881['flags']===_0x3c9c55['flags'];case functionTag:return _0xfc8881===_0x3c9c55;}const _0x191443=(_0x31ee9a=_0x31ee9a??new Map())['get'](_0xfc8881),_0x3b5bf0=_0x31ee9a['get'](_0x3c9c55);if(null!=_0x191443&&null!=_0x3b5bf0)return _0x191443===_0x3c9c55;_0x31ee9a['set'](_0xfc8881,_0x3c9c55),_0x31ee9a['set'](_0x3c9c55,_0xfc8881);try{switch(_0x25f7ee){case mapTag:if(_0xfc8881['size']!==_0x3c9c55['size'])return!0x1;for(const [_0x2fdc84,_0x19feed]of _0xfc8881['entries']())if(!_0x3c9c55['has'](_0x2fdc84)||!isEqualWithImpl(_0x19feed,_0x3c9c55['get'](_0x2fdc84),_0x2fdc84,_0xfc8881,_0x3c9c55,_0x31ee9a,_0x309886))return!0x1;return!0x0;case setTag:{if(_0xfc8881['size']!==_0x3c9c55['size'])return!0x1;const _0x7970a0=Array['from'](_0xfc8881['values']()),_0x2c8572=Array['from'](_0x3c9c55['values']());for(let _0x311801=0x0;_0x311801<_0x7970a0['length'];_0x311801++){const _0x31fd33=_0x7970a0[_0x311801],_0x30daca=_0x2c8572['findIndex'](_0x3b7477=>isEqualWithImpl(_0x31fd33,_0x3b7477,void 0x0,_0xfc8881,_0x3c9c55,_0x31ee9a,_0x309886));if(-0x1===_0x30daca)return!0x1;_0x2c8572['splice'](_0x30daca,0x1);}return!0x0;}case arrayTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:case bigUint64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case bigInt64ArrayTag:case float32ArrayTag:case float64ArrayTag:if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0xfc8881)!==Buffer['isBuffer'](_0x3c9c55))return!0x1;if(_0xfc8881['length']!==_0x3c9c55['length'])return!0x1;for(let _0x892c59=0x0;_0x892c59<_0xfc8881['length'];_0x892c59++)if(!isEqualWithImpl(_0xfc8881[_0x892c59],_0x3c9c55[_0x892c59],_0x892c59,_0xfc8881,_0x3c9c55,_0x31ee9a,_0x309886))return!0x1;return!0x0;case arrayBufferTag:return _0xfc8881['byteLength']===_0x3c9c55['byteLength']&&areObjectsEqual(new Uint8Array(_0xfc8881),new Uint8Array(_0x3c9c55),_0x31ee9a,_0x309886);case dataViewTag:return _0xfc8881['byteLength']===_0x3c9c55['byteLength']&&_0xfc8881['byteOffset']===_0x3c9c55['byteOffset']&&areObjectsEqual(new Uint8Array(_0xfc8881),new Uint8Array(_0x3c9c55),_0x31ee9a,_0x309886);case errorTag:return _0xfc8881['name']===_0x3c9c55['name']&&_0xfc8881['message']===_0x3c9c55['message'];case objectTag:{if(!(areObjectsEqual(_0xfc8881['constructor'],_0x3c9c55['constructor'],_0x31ee9a,_0x309886)||isPlainObject$1(_0xfc8881)&&isPlainObject$1(_0x3c9c55)))return!0x1;const _0x267bd5=[...Object['keys'](_0xfc8881),...getSymbols(_0xfc8881)],_0x3deeec=[...Object['keys'](_0x3c9c55),...getSymbols(_0x3c9c55)];if(_0x267bd5['length']!==_0x3deeec['length'])return!0x1;for(let _0x5ee810=0x0;_0x5ee810<_0x267bd5['length'];_0x5ee810++){const _0x49ec17=_0x267bd5[_0x5ee810],_0x9b7fc8=_0xfc8881[_0x49ec17];if(!Object['hasOwn'](_0x3c9c55,_0x49ec17))return!0x1;if(!isEqualWithImpl(_0x9b7fc8,_0x3c9c55[_0x49ec17],_0x49ec17,_0xfc8881,_0x3c9c55,_0x31ee9a,_0x309886))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x31ee9a['delete'](_0xfc8881),_0x31ee9a['delete'](_0x3c9c55);}}function noop$2(){}function isEqual(_0x5bafec,_0x376950){return isEqualWith(_0x5bafec,_0x376950,noop$2);}function isBuffer$1(_0x23fb15){return'undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x23fb15);}function isPrototype(_0x44746f){const _0x23fc99=_0x44746f?.['constructor'];return _0x44746f===('function'==typeof _0x23fc99?_0x23fc99['prototype']:Object['prototype']);}function isTypedArray(_0x3e79bd){return isTypedArray$1(_0x3e79bd);}function times(_0xbe9a16,_0x29e490){if((_0xbe9a16=toInteger(_0xbe9a16))<0x1||!Number['isSafeInteger'](_0xbe9a16))return[];const _0x42130b=new Array(_0xbe9a16);for(let _0x5b1e01=0x0;_0x5b1e01<_0xbe9a16;_0x5b1e01++)_0x42130b[_0x5b1e01]='function'==typeof _0x29e490?_0x29e490(_0x5b1e01):_0x5b1e01;return _0x42130b;}function keysIn(_0x504b0a){if(null==_0x504b0a)return[];switch(typeof _0x504b0a){case'object':case'function':return isArrayLike(_0x504b0a)?arrayLikeKeysIn(_0x504b0a):isPrototype(_0x504b0a)?prototypeKeysIn(_0x504b0a):keysInImpl(_0x504b0a);default:return keysInImpl(Object(_0x504b0a));}}function keysInImpl(_0x45b8c4){const _0x38b158=[];for(const _0x23aa74 in _0x45b8c4)_0x38b158['push'](_0x23aa74);return _0x38b158;}function prototypeKeysIn(_0x488397){return keysInImpl(_0x488397)['filter'](_0x4c334f=>'constructor'!==_0x4c334f);}function arrayLikeKeysIn(_0x326b7c){const _0xcbadd7=times(_0x326b7c['length'],_0x17a599=>''+_0x17a599),_0xd9c718=new Set(_0xcbadd7);isBuffer$1(_0x326b7c)&&(_0xd9c718['add']('offset'),_0xd9c718['add']('parent')),isTypedArray(_0x326b7c)&&(_0xd9c718['add']('buffer'),_0xd9c718['add']('byteLength'),_0xd9c718['add']('byteOffset'));const _0x4203ab=keysInImpl(_0x326b7c)['filter'](_0x37b401=>!_0xd9c718['has'](_0x37b401));return Array['isArray'](_0x326b7c)?[..._0xcbadd7,..._0x4203ab]:[..._0xcbadd7['filter'](_0x146f25=>Object['hasOwn'](_0x326b7c,_0x146f25)),..._0x4203ab];}function isPlainObject(_0x284383){if('object'!=typeof _0x284383)return!0x1;if(null==_0x284383)return!0x1;if(null===Object['getPrototypeOf'](_0x284383))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x284383)){const _0x1cdf43=_0x284383[Symbol['toStringTag']];if(null==_0x1cdf43)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x284383,Symbol['toStringTag'])?.['writable']&&_0x284383['toString']()==='[object\x20'+_0x1cdf43+']';}let _0x2d66ad=_0x284383;for(;null!==Object['getPrototypeOf'](_0x2d66ad);)_0x2d66ad=Object['getPrototypeOf'](_0x2d66ad);return Object['getPrototypeOf'](_0x284383)===_0x2d66ad;}function getSymbolsIn(_0x40de0f){const _0x47127d=[];for(;_0x40de0f;)_0x47127d['push'](...getSymbols(_0x40de0f)),_0x40de0f=Object['getPrototypeOf'](_0x40de0f);return _0x47127d;}function omit(_0x3503b6,..._0x6b05de){if(null==_0x3503b6)return{};const _0x5e8018=cloneInOmit(_0x3503b6,_0x6b05de=flatten$1(_0x6b05de));for(let _0xa38c99=0x0;_0xa38c99<_0x6b05de['length'];_0xa38c99++){let _0x131ae8=_0x6b05de[_0xa38c99];switch(typeof _0x131ae8){case'object':Array['isArray'](_0x131ae8)||(_0x131ae8=Array['from'](_0x131ae8));for(let _0x2e1e5f=0x0;_0x2e1e5f<_0x131ae8['length'];_0x2e1e5f++){unset(_0x5e8018,_0x131ae8[_0x2e1e5f]);}break;case'string':case'symbol':case'number':unset(_0x5e8018,_0x131ae8);}}return _0x5e8018;}function cloneInOmit(_0xdd2585,_0x2eef87){return _0x2eef87['some'](_0x2e2024=>Array['isArray'](_0x2e2024)||isDeepKey(_0x2e2024))?deepCloneInOmit(_0xdd2585):shallowCloneInOmit(_0xdd2585);}function shallowCloneInOmit(_0x14c2f5){const _0x4c224f={},_0x5b62d2=[...keysIn(_0x14c2f5),...getSymbolsIn(_0x14c2f5)];for(let _0x16089f=0x0;_0x16089f<_0x5b62d2['length'];_0x16089f++){const _0x30c010=_0x5b62d2[_0x16089f];_0x4c224f[_0x30c010]=_0x14c2f5[_0x30c010];}return _0x4c224f;}function deepCloneInOmit(_0x142f97){const _0x543b78={},_0x22e8cc=[...keysIn(_0x142f97),...getSymbolsIn(_0x142f97)];for(let _0x27f1d7=0x0;_0x27f1d7<_0x22e8cc['length'];_0x27f1d7++){const _0x598a71=_0x22e8cc[_0x27f1d7];_0x543b78[_0x598a71]=cloneDeepWith(_0x142f97[_0x598a71],_0x217f86=>{if(!isPlainObject(_0x217f86))return _0x217f86;});}return _0x543b78;}function isElement$2(_0x44b62a){return isObjectLike(_0x44b62a)&&0x1===_0x44b62a['nodeType']&&!isPlainObject(_0x44b62a);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x5dd8d1){return _0x5dd8d1['replace'](/[&<>"']/g,_0x5f2754=>htmlEscapes[_0x5f2754]);}function escape(_0x2ebf9b){return escape$1(toString$3(_0x2ebf9b));}function escapeRegExp$1(_0xde7e15){return _0xde7e15['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp(_0x1042af){return escapeRegExp$1(toString$3(_0x1042af));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x4744d7){return _0x4744d7['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x407d12=>htmlUnescapes[_0x407d12]||'\x27');}function unescape$1(_0x3f9581){return unescape$2(toString$3(_0x3f9581));}class AIHistoryListItemView extends ListItemView{constructor(_0x178c0a){super();const _0x3a38c1=new ButtonLabelView(),_0x163018=new ButtonView(this['locale'],_0x3a38c1);this['children']['add'](_0x163018),_0x163018['set']({'label':_0x178c0a['prompt'],'withText':!0x0}),_0x163018['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0x178c0a['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x39dcfe,_0x14fad3)=>{const _0x57275a=normalizePromptText(_0x14fad3['prompt']);for(const _0x4b6666 of this)if(_0x4b6666!=_0x14fad3&&normalizePromptText(_0x4b6666['prompt'])===_0x57275a){this['remove'](_0x4b6666);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x8a8e89=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x8a8e89));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x517065=>_0x517065)));}}function normalizePromptText(_0x120ce3){return _0x120ce3['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x3adcc4,_0xb6987e,_0x1818d3=''){super(_0x3adcc4),this['set']('isEnabled',!0x0),this['set']('isProcessing',!0x1),this['set']('prompt',''),this['set']('value',''),this['set']('isError',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['_promptHistory']=new PromptHistory(),this['errorView']=new AIFormErrorView(_0x3adcc4),this['contentArea']=new AIFormContentArea(_0x3adcc4,_0x1818d3),this['contentArea']['bind']('isProcessing')['to'](this),this['contentArea']['bind']('value')['to'](this),this['toolbar']=this['_createToolbar'](),this['toolbar']['bind']('mainAction')['to'](this),this['promptView']=this['_createPromptView'](),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection']([this['contentArea'],this['contentArea']['copyButtonView'],this['toolbar'],this['promptView']]),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['focusCycler']['chain'](this['promptView']['focusCycler']),this['promptView']['queryView']['fieldView']['bind']('value')['to'](this,'prompt');const _0x134c5c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0xb6987e],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x134c5c['if']('isError','ck-hidden',_0x5326a0=>!_0x5326a0)]},'children':[this['errorView']]},this['contentArea'],this['toolbar'],this['promptView']]}]});}['render'](){super['render'](),this['focusTracker']['add'](this['contentArea']['element']),this['focusTracker']['add'](this['contentArea']['copyButtonView']['element']),this['focusTracker']['add'](this['toolbar']['element']),this['focusTracker']['add'](this['promptView']['element']),this['keystrokes']['listenTo'](this['element']);}['focus'](_0x273e8b=0x1){-0x1===_0x273e8b?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['reset'](){this['prompt']='',this['value']='',this['isError']=!0x1,this['promptView']['reset'](),this['contentArea']['isVisible']=!0x1,this['toolbar']['isVisible']=!0x1;}['_createPromptView'](){const _0x350050=this['locale'],_0x39284c=new AIFormPromptView(_0x350050,{'queryView':{'label':getTranslation$j(_0x350050,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x350050,'Empty\x20history'),'secondary':getTranslation$j(_0x350050,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x39284c['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x4ceb75,_0x5d1c1d)=>_0x4ceb75&&!_0x5d1c1d),this['listenTo'](_0x39284c,'submit',(_0x1aa6fb,_0x2d8128)=>{this['prompt']=_0x2d8128;const _0x4644f5=escape(_0x2d8128);this['fire']('submitPrompt',_0x4644f5),_0x2d8128['trim']()&&this['_promptHistory']['add']({'prompt':_0x4644f5},0x0);},{'priority':'high'}),_0x39284c;}['_createHistoryView'](){const _0xd94e5b=new AIHistoryListView(this['locale']);return _0xd94e5b['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0xd94e5b['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0xd94e5b;}['_createToolbar'](){const _0x414b27=new AIFormToolbarView(this['locale']);return _0x414b27['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x18b29f,_0x37799e,_0x48094c)=>_0x18b29f&&!_0x37799e&&!!_0x48094c),_0x414b27['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x414b27['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x7bbbc2,_0x4c5760,_0x21a3d2)=>_0x7bbbc2&&!_0x4c5760&&!!_0x21a3d2),_0x414b27['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x414b27['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x47a187,_0x5539f7)=>_0x47a187&&!_0x5539f7),_0x414b27['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x414b27['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x414b27['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x414b27;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x18ba8a=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x18ba8a,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x7d2034){const _0x28bd59=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x7d2034||getTranslation$j(_0x28bd59,'AI_ERROR_FAILED'),this['value']||(this['contentArea']['isVisible']=!0x1);}}const DomDataTransfer=globalThis['DataTransfer'];class AIAssistantUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_dialog'];['_formView'];['_aiAdapter'];['_aiAssistantController'];['_uiCssClasses']='';static get['pluginName'](){return'AIAssistantUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ClipboardMarkersUtils,AIAssistantEditing,AIAdapter,Dialog];}constructor(_0x5b7094){super(_0x5b7094),_0x5b7094['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x5b7094['config']['define']('ai.assistant.contentAreaCssClass',''),_0x5b7094['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x5b7094['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0x1e5a3d}=this;this['_aiAdapter']=_0x1e5a3d['plugins']['get'](AIAdapter),this['_dialog']=_0x1e5a3d['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0x868bcc=new ShowAIAssistantCommand(_0x1e5a3d,Array['from'](this['_commandDefinitions']['values']()));_0x1e5a3d['commands']['add']('showAIAssistant',_0x868bcc),_0x1e5a3d['ui']['componentFactory']['add']('aiCommands',_0x193207=>{const _0x1c63bf=createDropdown(_0x193207);return _0x1c63bf['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x1c63bf['buttonView']['set']({'label':getTranslation$j(_0x193207,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0x1c63bf['on']('execute',_0x1cc0af=>this['_onExecute'](_0x1cc0af['source']['id'])),addMenuToDropdown(_0x1c63bf,_0x1e5a3d['ui']['view']['body'],getMenuDropdownDefinition(_0x1e5a3d),{'ariaLabel':getTranslation$j(_0x193207,'AI\x20Commands')}),_0x1c63bf['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0x868bcc['on']('change:enabledCommandsIds',_0x2ced3c),_0x1c63bf['menuView']['once']('render',_0x2ced3c),_0x1c63bf;function _0x2ced3c(){_0x1c63bf['isEnabled']=_0x868bcc['enabledCommandsIds']['length']>0x0;for(const _0x3f8324 of _0x1c63bf['menuView']['buttons'])_0x3f8324['isEnabled']=_0x868bcc['enabledCommandsIds']['includes'](_0x3f8324['id']);}}),_0x1e5a3d['ui']['componentFactory']['add']('menuBar:aiCommands',_0x5e4a14=>{const _0x35a1c0=new MenuBarMenuView(_0x5e4a14);_0x35a1c0['buttonView']['set']({'label':getTranslation$j(_0x5e4a14,'AI\x20Commands'),'icon':IconMagicWand}),_0x35a1c0['bind']('isEnabled')['to'](_0x868bcc,'enabledCommandsIds',_0x268de5=>_0x268de5['length']>0x0);const _0x335a00=normalizeCommandsConfig(_0x1e5a3d['config']['get']('ai.assistant.commands'),_0x5e4a14);return this['_populateMenuBarMenu'](_0x868bcc,_0x35a1c0,_0x335a00,_0x39239e=>this['_onExecute'](_0x39239e)),_0x35a1c0;}),_0x1e5a3d['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x3aff5f=this['_createAIAssistantUIButton'](ButtonView);return _0x3aff5f['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x3aff5f;}),_0x1e5a3d['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x2c1a50=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0x2c1a50['set']({'role':'menuitemcheckbox'}),_0x2c1a50;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46b666=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c9d0f;for(const _0x3897e1 in _0x46b666){const _0x4bf7e1=_0x3897e1,_0x31a748=_0x46b666[_0x4bf7e1];if('aiLicenseKeyValid'==_0x31a748||'aiLicenseKeyInvalid'==_0x31a748||'aiLicenseKeyExpired'==_0x31a748||'aiLicenseKeyDomainLimit'==_0x31a748||'aiLicenseKeyNotAllowed'==_0x31a748||'aiLicenseKeyEvaluationLimit'==_0x31a748||'aiLicenseKeyUsageLimit'==_0x31a748){delete _0x46b666[_0x4bf7e1],_0x2c9d0f=_0x31a748,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x2c9d0f&&_0x46b666['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x2c9d0f&&_0x46b666['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x2c9d0f&&_0x46b666['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x2c9d0f&&_0x46b666['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x2c9d0f&&_0x46b666['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x2c9d0f&&_0x46b666['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x325418='',_0x5d7fd7='',_0x2dccde='custom'){const _0x4acea2=this['editor'],_0x418963=_0x4acea2['editing']['view'],_0x3f6c68=_0x4acea2['plugins']['get'](AIAssistantEditing),_0x2a594d=_0x4acea2['plugins']['get'](ClipboardMarkersUtils);_0x3f6c68['showFakeVisualSelection']();const _0x904122=new DomDataTransfer(),_0xcab723=new ClipboardEvent('copy',{'clipboardData':_0x904122}),_0x1482dd=new ViewDataTransfer(_0x904122),_0x3d5d52=new ViewDocumentDomEventData(_0x418963,_0xcab723,{'dataTransfer':_0x1482dd});_0x2a594d['_forceMarkersCopy']('comment',()=>{_0x418963['document']['fire']('copy',_0x3d5d52);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x4acea2,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x5285a0=_0x1482dd['getData']('text/html');const _0xb0c65f=_0x4acea2['model']['document']['selection'],_0x1dc0d5=Array['from'](_0xb0c65f['getRanges']());0x1===_0x1dc0d5['length']&&_0x1dc0d5[0x0]['isFlat']&&!_0xb0c65f['getSelectedElement']()&&''!==_0x5285a0['replace'](/&nbsp;/g,'')['trim']()&&(_0x5285a0='<p>'+_0x5285a0+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x2dccde,'query':_0x325418,'htmlContent':_0x5285a0,'label':_0x5d7fd7,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x4acea2['model']['document']['selection']['isCollapsed']?'INSERT':'REPLACE']}),'aiAssistant'!==this['_dialog']['id']?this['_dialog']['show']({'id':'aiAssistant','icon':IconRobotPencil,'title':getTranslation$j(this['editor']['locale'],'AI\x20Assistant'),'content':this['_formView'],'position':DialogViewPosition['EDITOR_TOP_SIDE'],'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_aiAssistantController']['reset'](),_0x3f6c68['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0x40bba6=new Map(),_0x1295de=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x52d027 of _0x1295de)for(const _0x154dc2 of _0x52d027['commands'])_0x40bba6['set'](_0x154dc2['id'],{..._0x154dc2,'groupId':_0x52d027['groupId'],'groupLabel':_0x52d027['groupLabel']||_0x52d027['groupId']});return _0x40bba6;}['_createAIAssistantUIButton'](_0x50b599){const _0x57c508=this['editor'],_0x5e190d=_0x57c508['commands']['get']('showAIAssistant'),_0x1536f8=new _0x50b599(_0x57c508['locale']);return _0x1536f8['set']({'label':getTranslation$j(_0x57c508['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x1536f8['bind']('isEnabled')['to'](_0x5e190d),_0x1536f8['bind']('isOn')['to'](this['_dialog'],'id',_0x1eddd6=>'aiAssistant'===_0x1eddd6),this['listenTo'](_0x1536f8,'execute',()=>{_0x1536f8['isOn']?this['hideUI']():_0x5e190d['execute']();}),_0x1536f8;}['_initView'](){const _0x2962a8=this['editor']['plugins']['get'](AIAssistantEditing);this['_formView']=new AIFormView(this['editor']['locale'],this['_uiCssClasses'],this['editor']['config']['get']('ai.assistant.contentAreaCssClass')),this['_formView']['on']('change:value',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['_formView']['promptView']['queryView']['fieldView']['on']('update',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['listenTo'](this['_formView'],'replaceContent',()=>{_0x2962a8['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x2962a8['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x351238,ui:{ariaLiveAnnouncer:_0x1da804}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x285c9d,_0x238695,_0x1e2783)=>{const _0x51a8d9=this['_aiAssistantController']['currentContext'];_0x1e2783?_0x1da804['announce'](getTranslation$j(_0x351238,'AI\x20is\x20writing')):_0x51a8d9&&_0x1da804['announce'](getTranslation$j(_0x351238,'Generated\x20content:\x20%0',_0x51a8d9),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x2d5af5,_0x4ff213,_0xed7ca3)=>{if(_0xed7ca3){const _0x15a263=this['_formView']['errorView']['text'];_0x1da804['announce'](getTranslation$j(_0x351238,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x15a263));}});}['_onExecute'](_0x5bfc8a){const _0x2112bd=this['_commandDefinitions']['get'](_0x5bfc8a),_0xbdac10=this['editor'],_0x1aafcf=_0xbdac10['model']['document']['selection'],_0x4336bb=_0xbdac10['commands']['get']('showAIAssistant'),_0xaf86f9=_0xbdac10['plugins']['get'](AIAssistantEditing),_0xaf0d01=''+(_0x2112bd['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0x2112bd['groupLabel']+':\x20':'')+_0x2112bd['label'];if(!0x1!==_0x2112bd['requiresContent']&&_0x1aafcf['isCollapsed']){const _0x32e742=first(_0x1aafcf['getSelectedBlocks']())||_0xbdac10['model']['schema']['getLimitElement'](_0x1aafcf);_0xbdac10['model']['change'](_0x53ec84=>{_0x53ec84['setSelection'](_0x32e742,'in');});}_0xaf86f9['showFakeVisualSelection'](),_0x4336bb['execute'](_0x2112bd['prompt'],_0xaf0d01,'command:'+_0x5bfc8a);}['_populateMenuBarMenu'](_0x33b744,_0x30b97f,_0x310e3b,_0x3e8570){const _0x4c2f5f=this['editor'],_0x2628ad=_0x4c2f5f['locale'],_0x466e86=new MenuBarMenuListView(_0x2628ad),_0x2ab46a=sortDefinitionsByOrder(_0x4c2f5f,_0x310e3b)['filter'](_0x325538=>_0x325538['commands']['length']);0x1===_0x2ab46a['length']?this['_getMenuBarGroupButtons']({'command':_0x33b744,'commands':_0x2ab46a[0x0]['commands'],'parentMenuView':_0x30b97f,'onExecute':_0x3e8570})['forEach'](_0x4948ab=>_0x466e86['items']['add'](_0x4948ab)):_0x2ab46a['forEach'](({groupId:_0x25015f,groupLabel:_0x300c9d,commands:_0x5517b2})=>{const _0x180065=new MenuBarMenuListItemView(_0x2628ad,_0x30b97f),_0x263bc8=new MenuBarMenuView(_0x2628ad),_0x1e56fc=new MenuBarMenuListView(_0x2628ad),_0x5e1501=this['_getMenuBarGroupButtons']({'command':_0x33b744,'commands':_0x5517b2,'parentMenuView':_0x263bc8,'onExecute':_0x3e8570});_0x263bc8['buttonView']['set']({'label':_0x300c9d||_0x25015f}),_0x263bc8['delegate']('execute')['to'](_0x30b97f),_0x1e56fc['items']['addMany'](_0x5e1501),_0x263bc8['panelView']['children']['add'](_0x1e56fc),_0x180065['children']['add'](_0x263bc8),_0x466e86['items']['add'](_0x180065);}),_0x30b97f['panelView']['children']['add'](_0x466e86);}['_getMenuBarGroupButtons']({command:_0x2d1db6,commands:_0x3fc563,parentMenuView:_0x57bd98,onExecute:_0x38dcb7}){const _0x2efe17=this['editor'],_0x1d4224=_0x2efe17['locale'];return sortDefinitionsByOrder(_0x2efe17,_0x3fc563)['map'](_0x54a2ca=>{const _0xc06e27=new MenuBarMenuListItemView(_0x1d4224,_0x57bd98),_0x5d8ec8=new MenuBarMenuListItemButtonView(_0x1d4224);return _0x5d8ec8['set']({'label':_0x54a2ca['label']}),_0x5d8ec8['delegate']('execute')['to'](_0x57bd98),_0x5d8ec8['on']('execute',()=>_0x38dcb7(_0x54a2ca['id'])),_0x5d8ec8['bind']('isEnabled')['to'](_0x2d1db6,'enabledCommandsIds',_0x429de7=>_0x429de7['includes'](_0x54a2ca['id'])),_0xc06e27['children']['add'](_0x5d8ec8),_0xc06e27;});}}function getMenuDropdownDefinition(_0x4d57a6){const _0x4142f8=normalizeCommandsConfig(_0x4d57a6['config']['get']('ai.assistant.commands'),_0x4d57a6['locale']),_0x570260=sortDefinitionsByOrder(_0x4d57a6,_0x4142f8)['filter'](_0x54fe6a=>_0x54fe6a['commands']['length']);return 0x1===_0x570260['length']?sortDefinitionsByOrder(_0x4d57a6,_0x570260[0x0]['commands'])['map'](_0x3ebf84=>({'id':_0x3ebf84['id'],'label':_0x3ebf84['label']})):_0x570260['map'](_0x1acec1=>{const {groupId:_0x2aef87,groupLabel:_0x4f7fa2,commands:_0xb805da}=_0x1acec1,_0x335b35=sortDefinitionsByOrder(_0x4d57a6,_0xb805da)['map'](_0x3291b7=>({'id':_0x3291b7['id'],'label':_0x3291b7['label']}));return{'id':_0x2aef87,'menu':_0x4f7fa2||_0x2aef87,'children':_0x335b35};});}function sortDefinitionsCallback(_0x1f59b7,_0x13ac04){return void 0x0!==_0x1f59b7['order']&&void 0x0===_0x13ac04['order']?0x1:void 0x0===_0x1f59b7['order']&&void 0x0!==_0x13ac04['order']?-0x1:void 0x0!==_0x1f59b7['order']&&void 0x0!==_0x13ac04['order']?_0x1f59b7['order']-_0x13ac04['order']:0x0;}function sortDefinitionsByOrder(_0x13e6a2,_0x15aceb){_0x15aceb['sort'](sortDefinitionsCallback);const _0x4b7312={},_0x2aa211=[];for(const _0x26283a of _0x15aceb)if(void 0x0!==_0x26283a['order']){if(_0x26283a['order']in _0x4b7312)throw new CKEditorError('ai-commands-config-order-collision',_0x13e6a2,{'conflictingDefinitions':[_0x26283a,_0x4b7312[_0x26283a['order']]]});_0x4b7312[_0x26283a['order']]=_0x26283a,_0x2aa211['splice'](_0x26283a['order'],0x0,_0x26283a);}else _0x2aa211['push'](_0x26283a);return _0x2aa211;}class AIAssistant extends Plugin{static get['requires'](){return[AIAssistantUI,AIAssistantEditing];}static get['pluginName'](){return'AIAssistant';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18b9ed){super(_0x18b9ed);const _0x3d6239=_0x18b9ed['config'],_0x2596a1=_0x18b9ed['locale'];_0x3d6239['define']('ai.assistant.preserveComments',!0x0),_0x3d6239['define']('ai.assistant.commands',getDefaultAICommands(_0x2596a1)),_0x3d6239['define']('ai.assistant.extraCommandGroups',[]),_0x3d6239['define']('ai.assistant.removeCommands',[]);let _0x422b8e=normalizeCommandsConfig(_0x3d6239['get']('ai.assistant.commands'),_0x2596a1);const _0x1523ea=_0x3d6239['get']('ai.assistant.extraCommandGroups'),_0x1eb678=_0x3d6239['get']('ai.assistant.removeCommands');_0x1523ea['forEach'](_0x168071=>{const _0x306345=_0x422b8e['find'](_0x4ba09f=>_0x4ba09f['groupId']===_0x168071['groupId']);_0x306345?_0x306345['commands']=_0x306345['commands']['concat'](_0x168071['commands']):_0x422b8e['push'](_0x168071);}),_0x422b8e=_0x422b8e['filter'](_0x4377c4=>!_0x1eb678['includes'](_0x4377c4['groupId'])),_0x422b8e['forEach'](_0x266bc0=>{_0x266bc0['commands']=_0x266bc0['commands']['filter'](_0x1ca75e=>!_0x1eb678['includes'](_0x1ca75e['id']));}),_0x3d6239['set']('ai.assistant.commands',_0x422b8e);}}function getDefaultAICommands(_0xb219dc){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0xb219dc,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0xb219dc,'Improve\x20writing'),'prompt':'Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.'},{'id':'makeShorter','label':getTranslation$j(_0xb219dc,'Make\x20shorter'),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':'makeLonger','label':getTranslation$j(_0xb219dc,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0xb219dc,'Simplify\x20language'),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':'generate','groupLabel':getTranslation$j(_0xb219dc,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0xb219dc,'Summarize'),'prompt':'Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.'},{'id':'continue','label':getTranslation$j(_0xb219dc,'Continue'),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':'changeTone','groupLabel':getTranslation$j(_0xb219dc,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0xb219dc,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0xb219dc,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0xb219dc,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0xb219dc,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0xb219dc,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0xb219dc,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0xb219dc,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0xb219dc,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0xb219dc,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0xb219dc,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0xb219dc,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0xb219dc,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0xb219dc,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0xb219dc,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0xb219dc,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0xb219dc,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0xb219dc,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0xb219dc,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0xb219dc,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x2ff457){super(_0x2ff457),this['abortController']=new AbortController();}['init'](){this['editor']['plugins']['get'](AIAdapter)['textAdapter']=this;}['abort'](){this['abortController']['signal']['aborted']||(this['abortController']['abort'](),this['abortController']=new AbortController());}async['makeRequest'](_0x5a2e05){return this['sendRequest'](_0x5a2e05)['catch'](_0x1c5ab5=>{if(_0x1c5ab5 instanceof AIRequestError)return Promise['reject'](_0x1c5ab5);if('AbortError'==_0x1c5ab5['name'])return Promise['resolve']();throw console['error'](_0x1c5ab5),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x116ef3,_0x1facbb){const _0x249ec7=this['editor']['locale'],_0x3c94ae={'Content-Type':'application/json'};if('object'==typeof _0x116ef3)Object['assign'](_0x3c94ae,_0x116ef3);else{if(_0x116ef3)try{const _0x48820f=await _0x116ef3(_0x1facbb);Object['assign'](_0x3c94ae,_0x48820f);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x249ec7,'AI_ERROR_GET_HEADERS')));}}return _0x3c94ae;}async['_prepareRequestParameters'](_0x2762ac,_0xaef8e0){const _0x21f32f=this['editor']['locale'];if('object'==typeof _0x2762ac)return _0x2762ac;try{return await _0x2762ac(_0xaef8e0);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x21f32f,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x1f4dae){super(_0x1f4dae),_0x1f4dae['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x1f4dae['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x1f4dae['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x1f4dae['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x1f4dae['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x1f4dae['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0xf40405,context:_0x41edc4,onData:_0x20d7c0,actionId:_0x510c2f}){const _0x3b0204=this['editor']['locale'],_0x5e6ea0=await this['prepareMessages'](_0xf40405,_0x41edc4,_0x510c2f),_0x3d06d7=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x510c2f),_0x5cd245=await this['_prepareRequestParameters'](this['_requestParameters'],_0x510c2f),_0x5bfc60={'messages':_0x5e6ea0,..._0x5cd245},_0x4caa9d={'method':'POST','headers':_0x3d06d7,'body':JSON['stringify'](_0x5bfc60),'signal':this['abortController']['signal']},_0xf3e232=await fetch(this['_apiUrl'],_0x4caa9d);if(_0xf3e232['ok'])return _0x5cd245['stream']?await this['_readStreamableResponse'](_0xf3e232,_0x20d7c0):await this['_readStaticResponse'](_0xf3e232,_0x20d7c0),Promise['resolve']();{const _0x2446e3=await _0xf3e232['text']();return _0x2446e3['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x3b0204,'AI_ERROR_CONTEXT_LENGTH'))):_0x2446e3['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x3b0204,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x2446e3));}}async['prepareMessages'](_0x11d249,_0x1b905e,_0x26d07e){let _0x455575,_0x231ec0;return _0x1b905e?(_0x455575='Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x231ec0='Instruction:\x0a'+_0x11d249+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x1b905e):(_0x455575='Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.',_0x231ec0=_0x11d249),[{'role':'system','content':_0x455575},{'role':'user','content':_0x231ec0}];}async['_readStreamableResponse'](_0x542197,_0x194907){const _0x38b323=_0x542197['body']['getReader'](),_0xe794af=new TextDecoder();let _0x3d8ecc='',_0x3fe724='',_0x6ca271='',_0x21221d=!0x1;for(;!_0x21221d;){const {done:_0x470d1e,value:_0x258213}=await _0x38b323['read'](),_0x3e2e5b=_0x3d8ecc+_0xe794af['decode'](_0x258213);let _0x5bbb00='';_0x21221d=_0x470d1e;try{_0x5bbb00=this['_cleanUpData'](_0x3e2e5b),_0x3d8ecc='';}catch{_0x3d8ecc=_0x3e2e5b;continue;}_0x3fe724+=_0x5bbb00,!_0x21221d&&this['_isBufferIncomplete'](_0x3fe724)||_0x3fe724&&(_0x6ca271+=_0x3fe724,_0x3fe724='',_0x194907(_0x6ca271));}return Promise['resolve']();}async['_readStaticResponse'](_0x1a8a5a,_0x3a3bb9){return _0x3a3bb9((await _0x1a8a5a['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x1f18c9){const _0x59fa25=_0x1f18c9['split']('<')['length']!==_0x1f18c9['split']('>')['length'],_0x1c7257=_0x1f18c9['length']<0x1e;return _0x59fa25&&_0x1c7257;}['_cleanUpData'](_0x437ff5){return _0x437ff5['split'](/\n(?![^{]*\})/g)['map'](_0x3abfea=>_0x3abfea['replace']('data:\x20',''))['filter'](_0x5c372a=>_0x5c372a&&_0x5c372a['length']>0x0&&'[DONE]'!==_0x5c372a)['map'](_0x1c11f9=>{const {choices:_0x4019a6}=JSON['parse'](_0x1c11f9);if(_0x4019a6[0x0]?.['delta']?.['content'])return _0x4019a6[0x0]['delta']['content'];})['filter'](_0x4643ca=>_0x4643ca)['join']('');}}class AWSTextAdapter extends AITextAdapter{static get['pluginName'](){return'AWSTextAdapter';}['init'](){super['init'](),logWarning('ai-aws-adapter-not-supported');}async['sendRequest'](_0x185a5c){throw logError('ai-aws-adapter-not-supported'),new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_AWS_NOT_SUPPORTED'));}}class TabButtonView extends ButtonView{constructor(_0x27dae3,_0x1b990a={}){super(_0x27dae3),this['isToggleable']=!0x0,this['set']('side',_0x1b990a['side']||'top');const _0x1529d0=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x1b990a['class']||[]),_0x1529d0['to']('side',_0x16ecc6=>'ck-tab-button_'+_0x16ecc6),_0x1529d0['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0x2709f5,_0x1fdabb={}){super(_0x2709f5);const _0x3d26f4=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-tab-panel',...toArray$1(_0x1fdabb['class']||[]),_0x3d26f4['to']('class'),_0x3d26f4['if']('isVisible','ck-hidden',_0x3a01aa=>!_0x3a01aa)]},'children':this['children']});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class AITabsView extends View{['buttonViews']=this['createCollection']();['panelViews']=this['createCollection']();['_tabs']=new Map();constructor(_0x492cd5,_0x3e518d={}){super(_0x492cd5),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0x3e518d['side']||'top'),this['set']('isMaximized',!0x1),this['set']('collapsible',_0x3e518d['collapsible']||!0x1),this['set']('_isMaximizedActive',!0x1),this['bind']('_isMaximizedActive')['to'](this,'isMaximized',this,'activeTab',(_0x4b7737,_0x12a97a)=>_0x4b7737&&null!==_0x12a97a);const _0x506c42=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0x3e518d['class']||[]),_0x506c42['to']('side',_0x3b36ab=>'ck-tabs_'+_0x3b36ab),_0x506c42['to']('class'),_0x506c42['if']('_isMaximizedActive','ck-ai-tabs_maximized'),_0x506c42['to']('activeTab',_0xe11866=>null===_0xe11866?'ck-ai-tabs_collapsed':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x506c42['to']('side',_0x17db64=>'ck-tabs__buttons-container_'+_0x17db64)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x506c42['to']('side',_0x31dcd5=>'ck-tabs__panels-container_'+_0x31dcd5)]},'children':this['panelViews']},...toArray$1(_0x3e518d['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0x35f585){const _0x3dd7d2=this['_tabs']['get'](_0x35f585);return _0x3dd7d2||null;}['addTab'](_0xa8914e){const _0x221da7=this['_setupButton']({'id':_0xa8914e['id'],'label':_0xa8914e['buttonLabel'],'icon':_0xa8914e['buttonIcon'],'order':_0xa8914e['order']}),_0x33f100=new TabPanelView(this['locale']);return _0x33f100['render'](),_0xa8914e['content']&&_0x33f100['children']['add'](_0xa8914e['content']),this['panelViews']['add'](_0x33f100),this['_tabs']['set'](_0xa8914e['id'],{'button':_0x221da7,'panel':_0x33f100,'order':void 0x0!==_0xa8914e['order']?_0xa8914e['order']:null}),this['fire']('addTab:'+_0xa8914e['id'],{'id':_0xa8914e['id'],'button':_0x221da7,'panel':_0x33f100}),null===this['activeTab']?this['activateTab'](_0xa8914e['id']):this['_hidePanel'](_0xa8914e['id']),{'button':_0x221da7,'panel':_0x33f100};}['activateTab'](_0x2b27b9){if(null!==_0x2b27b9&&!this['getTab'](_0x2b27b9))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x2b27b9});if(this['activeTab']===_0x2b27b9)return;const _0x28c9d2=this['activeTab'];this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x2b27b9,_0x2b27b9&&this['_showPanel'](_0x2b27b9),this['fire']('activateTab:'+_0x2b27b9,{'newTab':_0x2b27b9,'oldTab':_0x28c9d2});}['toggleTabPanel'](_0x11c82c){if(!this['getTab'](_0x11c82c))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x11c82c});this['activeTab']===_0x11c82c?this['collapsible']&&(this['activeTab']=null):this['activateTab'](_0x11c82c);}['showTab'](_0x3365cd){if(!this['getTab'](_0x3365cd))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x3365cd});this['_showPanel'](_0x3365cd),this['_showButton'](_0x3365cd),this['fire']('show:'+_0x3365cd,_0x3365cd);}['hideTab'](_0x3ae3f1){if(!this['getTab'](_0x3ae3f1))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x3ae3f1});const _0x28fe3b=this['activeTab'];this['_hidePanel'](_0x3ae3f1),this['_hideButton'](_0x3ae3f1);const _0x34f685=this['getTabIds']();_0x28fe3b===_0x3ae3f1&&_0x34f685['length']>0x1&&this['activateTab'](_0x34f685['find'](_0x17b2ae=>_0x17b2ae!==_0x3ae3f1)),this['fire']('hide:'+_0x3ae3f1,_0x3ae3f1);}['_getPanel'](_0x559720){const _0x2852ff=this['_tabs']['get'](_0x559720);return _0x2852ff?_0x2852ff['panel']:null;}['_showPanel'](_0x174c83){null!==this['activeTab']&&this['activeTab']!==_0x174c83||this['_getPanel'](_0x174c83)['show']();}['_hidePanel'](_0xa0b1dd){const _0x2afe31=this['_getPanel'](_0xa0b1dd);_0x2afe31['isVisible']&&(this['activeTab']===_0xa0b1dd&&(this['activeTab']=null),_0x2afe31['hide']());}['_getButton'](_0x3ae147){const _0xc64604=this['_tabs']['get'](_0x3ae147);return _0xc64604?_0xc64604['button']:null;}['_showButton'](_0xc30244){this['_getButton'](_0xc30244)['show']();}['_hideButton'](_0x4c6023){this['_getButton'](_0x4c6023)['hide']();}['_setupButton'](_0x50d11b){const _0x501433=new TabButtonView(this['locale'],{'side':this['side']}),_0x491da3=this['buttonViews'];if(_0x501433['set']({'label':_0x50d11b['label'],'icon':_0x50d11b['icon'],'tooltip':!0x0,'withText':!0x0}),_0x501433['bind']('isOn')['to'](this,'activeTab',_0x4cf072=>_0x4cf072===_0x50d11b['id']),_0x501433['bind']('side')['to'](this,'side'),_0x50d11b['order']){const _0x29c1f6=[...this['_tabs']]['reduce']((_0x172b38,_0x274609)=>{const _0x53a010=_0x274609[0x0],{order:_0x591c54}=_0x274609[0x1];return!_0x591c54||_0x591c54>_0x50d11b['order']?_0x172b38:_0x591c54>=_0x172b38['order']?{'id':_0x53a010,'order':_0x591c54}:_0x172b38;},{'id':'','order':0x0}),_0x57eff3=_0x491da3['getIndex'](this['_getButton'](_0x29c1f6['id']));_0x491da3['add'](_0x501433,_0x57eff3+0x1);}else _0x491da3['add'](_0x501433);return _0x501433['on']('execute',()=>{this['toggleTabPanel'](_0x50d11b['id']);}),_0x501433;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x599368,_0x24cedb={}){super(_0x599368,_0x24cedb),this['set']('type',_0x24cedb['type']||'sidebar'),this['set']('side',_0x24cedb['side']||'right'),this['set']('isVisible',_0x24cedb['visibleByDefault']??!0x0);const _0x14f8db=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x14f8db['if']('type','ck-ai-tabs__overlay',_0x8c8d1d=>'overlay'===_0x8c8d1d),_0x14f8db['if']('type','ck-ai-tabs__sidebar',_0x4b0f0e=>'sidebar'===_0x4b0f0e),_0x14f8db['if']('isVisible','ck-hidden',_0x4ffff8=>!_0x4ffff8)]}}),this['buttonViews']['on']('add',(_0x5e5036,_0x2bf6e8)=>{_0x2bf6e8['set']('withText',!0x1);});}}class AITabs extends ContextPlugin{['view'];['container']=null;['showResizeButton']=!0x0;static get['pluginName'](){return'AITabs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44d998){if(super(_0x44d998),!this['context']['config']['get']('ai.container'))throw new CKEditorError('ai-tabs-configuration-not-found');this['context']['config']['define']('ai.container.visibleByDefault',!0x0),this['context']['config']['define']('ai.container.collapsible',!0x1);const _0x376e71=this['context']['config']['get']('ai.container');if(this['set']('side','right'),void 0x0!==_0x376e71['showResizeButton']&&(this['showResizeButton']=_0x376e71['showResizeButton']),'sidebar'!==_0x376e71['type']&&'overlay'!==_0x376e71['type']||_0x376e71['side']&&(this['side']=_0x376e71['side']),'sidebar'===_0x376e71['type']){if(this['container']=_0x376e71['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x376e71['type']?(this['container']=document['body'],this['set']('type','overlay')):(this['container']=null,this['set']('type','custom'));this['view']=new AITabsMainView(this['context']['locale'],{'side':this['side'],'type':this['type'],'visibleByDefault':_0x376e71['visibleByDefault'],'collapsible':_0x376e71['collapsible']}),this['view']['render'](),this['view']['bind']('side')['to'](this,'side'),this['view']['bind']('type')['to'](this,'type'),this['container']&&this['container']['appendChild'](this['view']['element']),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](this['view']['element']),this['listenTo'](this,'resizeTabs',()=>{this['view']['isMaximized']=!this['view']['isMaximized'],this['fire']('resizedTabs',this['view']['isMaximized']);});}['switchType'](_0x28e0d2){if(_0x28e0d2&&this['type']!==_0x28e0d2){if(!AI_TABS_VIEW_TYPES['includes'](_0x28e0d2))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x28e0d2;}}['switchSide'](_0x2b5292){if(_0x2b5292&&this['side']!==_0x2b5292){if(!AI_TABS_VIEW_SIDES['includes'](_0x2b5292))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0x2b5292;}}['destroy'](){super['destroy'](),this['view']['destroy'](),this['view']['element']&&this['view']['element']['remove']();}}class ParseError extends Error{constructor(_0x579de2,_0x14b0bd){super(_0x579de2),this['name']='ParseError',this['type']=_0x14b0bd['type'],this['field']=_0x14b0bd['field'],this['value']=_0x14b0bd['value'],this['line']=_0x14b0bd['line'];}}function noop$1(_0x121a12){}function createParser(_0x1cb472){if('function'==typeof _0x1cb472)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x54f6ba=noop$1,onError:_0x48a8f2=noop$1,onRetry:_0x5e2d6e=noop$1,onComment:_0x2571d2}=_0x1cb472;let _0x310b57,_0x322b41='',_0x41588d=!0x0,_0x414ebf='',_0x3578ae='';function _0x15e70d(_0x5d21f0){if(''===_0x5d21f0)return _0x414ebf['length']>0x0&&_0x54f6ba({'id':_0x310b57,'event':_0x3578ae||void 0x0,'data':_0x414ebf['endsWith']('\x0a')?_0x414ebf['slice'](0x0,-0x1):_0x414ebf}),_0x310b57=void 0x0,_0x414ebf='',void(_0x3578ae='');if(_0x5d21f0['startsWith'](':'))return void(_0x2571d2&&_0x2571d2(_0x5d21f0['slice'](_0x5d21f0['startsWith'](':\x20')?0x2:0x1)));const _0x503815=_0x5d21f0['indexOf'](':');if(-0x1!==_0x503815){const _0x50119a=_0x5d21f0['slice'](0x0,_0x503815),_0x315bfc='\x20'===_0x5d21f0[_0x503815+0x1]?0x2:0x1;return void _0x30a305(_0x50119a,_0x5d21f0['slice'](_0x503815+_0x315bfc),_0x5d21f0);}_0x30a305(_0x5d21f0,'',_0x5d21f0);}function _0x30a305(_0x5cc134,_0xb0ea40,_0x578c6b){switch(_0x5cc134){case'event':_0x3578ae=_0xb0ea40;break;case'data':_0x414ebf=''+_0x414ebf+_0xb0ea40+'\x0a';break;case'id':_0x310b57=_0xb0ea40['includes']('\x00')?void 0x0:_0xb0ea40;break;case'retry':/^\d+$/['test'](_0xb0ea40)?_0x5e2d6e(parseInt(_0xb0ea40,0xa)):_0x48a8f2(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0xb0ea40+'\x22',{'type':'invalid-retry','value':_0xb0ea40,'line':_0x578c6b}));break;default:_0x48a8f2(new ParseError('Unknown\x20field\x20\x22'+(_0x5cc134['length']>0x14?_0x5cc134['slice'](0x0,0x14)+'…':_0x5cc134)+'\x22',{'type':'unknown-field','field':_0x5cc134,'value':_0xb0ea40,'line':_0x578c6b}));}}return{'feed':function(_0x5946dd){const _0x3d6304=_0x41588d?_0x5946dd['replace'](/^\xEF\xBB\xBF/,''):_0x5946dd,[_0x22709c,_0x558077]=splitLines(''+_0x322b41+_0x3d6304);for(const _0x293e10 of _0x22709c)_0x15e70d(_0x293e10);_0x322b41=_0x558077,_0x41588d=!0x1;},'reset':function(_0x386223={}){_0x322b41&&_0x386223['consume']&&_0x15e70d(_0x322b41),_0x41588d=!0x0,_0x310b57=void 0x0,_0x414ebf='',_0x3578ae='',_0x322b41='';}};}function splitLines(_0x3ea4ea){const _0x2b461e=[];let _0x5bdadc='',_0xf47e04=0x0;for(;_0xf47e04<_0x3ea4ea['length'];){const _0x456ee7=_0x3ea4ea['indexOf']('\x0d',_0xf47e04),_0xde20cf=_0x3ea4ea['indexOf']('\x0a',_0xf47e04);let _0x191c17=-0x1;if(-0x1!==_0x456ee7&&-0x1!==_0xde20cf?_0x191c17=Math['min'](_0x456ee7,_0xde20cf):-0x1!==_0x456ee7?_0x191c17=_0x456ee7:-0x1!==_0xde20cf&&(_0x191c17=_0xde20cf),-0x1===_0x191c17){_0x5bdadc=_0x3ea4ea['slice'](_0xf47e04);break;}{const _0x8fe6b9=_0x3ea4ea['slice'](_0xf47e04,_0x191c17);_0x2b461e['push'](_0x8fe6b9),_0xf47e04=_0x191c17+0x1,'\x0d'===_0x3ea4ea[_0xf47e04-0x1]&&'\x0a'===_0x3ea4ea[_0xf47e04]&&_0xf47e04++;}}return[_0x2b461e,_0x5bdadc];}const MODEL_COMPATIBILITY_VERSION='1';class AIConnector extends ContextPlugin{['_apiUrl'];['_token'];['_decoder'];['_responseCache'];static get['requires'](){return[CloudServices];}static get['pluginName'](){return'AIConnector';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2be435){super(_0x2be435),this['context']['config']['define']('ai.serviceUrl','https://ai.cke-cs.com/v1'),this['_apiUrl']=this['context']['config']['get']('ai.serviceUrl'),this['_token']=null,this['_decoder']=new TextDecoder(),this['_responseCache']=new Map();}['init'](){const _0x1f054b=this['context']['plugins']['get'](CloudServices);if(!_0x1f054b['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0x1f054b['token'];}['startConversation'](_0x276186,_0x2d08f5){const _0x3aaa06=this['_sendApiRequest']('/conversations','POST',{'id':_0x276186,'group':_0x2d08f5});return{'getConversation':async()=>(await _0x3aaa06['request'])['json'](),'abortController':_0x3aaa06['abortController']};}['queryAssistant']({message:_0x2567f9,conversationId:_0x157971,parts:_0x3f7255,capabilities:_0x4a069b,model:_0x16ede9,attributes:_0x366a26}){const _0x33150f={'prompt':_0x2567f9,'content':_0x3f7255,'model':_0x16ede9,..._0x4a069b&&{'capabilities':_0x4a069b},..._0x366a26&&{'attributes':_0x366a26}},_0x54e498=this['_sendApiRequest']('/conversations/'+_0x157971+'/messages','POST',_0x33150f);return{'getStream':async()=>{const _0x505361=(await _0x54e498['request'])['body'];return this['_getStreamReader'](_0x505361);},'abortController':_0x54e498['abortController']};}['executeCustomAction']({content:_0x541486,message:_0x25feb2,model:_0x64f0da,outputFormat:_0x7fb5f}){const _0x3e7dbb={'content':[{'type':'text','content':_0x541486}],'prompt':_0x25feb2,'model':_0x64f0da,'outputFormat':_0x7fb5f},_0x5c90c8=this['_sendApiRequest']('/actions/custom/calls','POST',_0x3e7dbb);return{'getStream':async()=>{const _0x55c611=(await _0x5c90c8['request'])['body'];return this['_getStreamReader'](_0x55c611);},'abortController':_0x5c90c8['abortController']};}['executeAction']({actionName:_0x40ab57,content:_0xeff911,args:_0x17f9e1}){const _0x2c2446={'content':[{'type':'text','content':_0xeff911}],'args':_0x17f9e1},_0xc3a0c0=this['_sendApiRequest']('/actions/system/'+_0x40ab57+'/calls','POST',_0x2c2446);return{'getStream':async()=>{const _0x423632=(await _0xc3a0c0['request'])['body'];return this['_getStreamReader'](_0x423632);},'abortController':_0xc3a0c0['abortController']};}['uploadFile'](_0x3bd14f,_0x61b668,_0x1bb856){const _0x5bb5c8=new FormData();_0x5bb5c8['append']('file',_0x61b668,_0x61b668['name']),_0x1bb856&&_0x5bb5c8['append']('attributes',JSON['stringify'](_0x1bb856));const _0x327ffb=this['_sendApiRequest']('/conversations/'+_0x3bd14f+'/files','POST',_0x5bb5c8);return{'getId':async()=>(await _0x327ffb['request'])['json'](),'abortController':_0x327ffb['abortController']};}['fetchDocument'](_0x44db45,_0x3775cb){const _0x1a7d15=this['_sendApiRequest']('/conversations/'+_0x44db45+'/documents/'+_0x3775cb,'GET');return{'getDocument':async()=>(await _0x1a7d15['request'])['json'](),'abortController':_0x1a7d15['abortController']};}['uploadDocument'](_0x3bd3aa,_0xe575ff,_0x11b0f2){const _0xe157e4={'content':_0xe575ff};_0x11b0f2&&(_0xe157e4['attributes']=_0x11b0f2);const _0x1cf5ee=this['_sendApiRequest']('/conversations/'+_0x3bd3aa+'/documents','POST',_0xe157e4);return{'getId':async()=>(await _0x1cf5ee['request'])['json'](),'abortController':_0x1cf5ee['abortController']};}['uploadDocuments'](_0x23557f,_0xcad813){const _0x55739a={'documents':_0xcad813['map'](_0x48cab4=>({'content':_0x48cab4['content'],'attributes':{'version':_0x48cab4['version'],'sessionId':_0x48cab4['sessionId'],'channelId':_0x48cab4['channelId'],'rootName':_0x48cab4['rootName'],'selections':_0x48cab4['selections']},...void 0x0!==_0x48cab4['name']?{'name':_0x48cab4['name']}:{},...void 0x0!==_0x48cab4['description']?{'description':_0x48cab4['description']}:{}}))},_0x4af5fa=this['_sendApiRequest']('/conversations/'+_0x23557f+'/documents/batch','POST',_0x55739a);return{'getIds':async()=>(await _0x4af5fa['request'])['json'](),'abortController':_0x4af5fa['abortController']};}['fetchDocuments'](_0x16d80a,_0xa38dee){const _0x1f3b3a=new URLSearchParams();_0x1f3b3a['append']('documentIds',_0xa38dee['join'](','));const _0x395da7=this['_sendApiRequest']('/conversations/'+_0x16d80a+'/documents/batch?'+_0x1f3b3a['toString'](),'GET');return{'getDocuments':async()=>(await _0x395da7['request'])['json'](),'abortController':_0x395da7['abortController']};}['fetchConversations'](_0x25a7a,_0x20451a={}){const _0xdb1ee6=new URLSearchParams();_0xdb1ee6['append']('group',_0x25a7a),_0xdb1ee6['append']('excludeEmpty',!0x1!==_0x20451a['excludeEmpty']?'true':'false'),_0xdb1ee6['append']('limit',_0x20451a['limit']?_0x20451a['limit']['toString']():'100'),_0xdb1ee6['append']('sortBy',_0x20451a['sortBy']?_0x20451a['sortBy']:'createdAt'),_0xdb1ee6['append']('order',_0x20451a['order']?_0x20451a['order']:'desc');const _0x580e0f=this['_sendApiRequest']('/conversations?'+_0xdb1ee6['toString'](),'GET');return{'getConversations':async()=>{const _0x1ccf69=await _0x580e0f['request'];return(await _0x1ccf69['json']())['items'];},'abortController':_0x580e0f['abortController']};}['deleteConversation'](_0x54cd0a){const _0x557508=this['_sendApiRequest']('/conversations/'+_0x54cd0a,'DELETE');return{'execute':async()=>{await _0x557508['request'];},'abortController':_0x557508['abortController']};}['updateConversation'](_0x22e06a,_0xad56d8){const _0x16a783=this['_sendApiRequest']('/conversations/'+_0x22e06a,'PATCH',_0xad56d8);return{'getResult':async()=>(await _0x16a783['request'],_0xad56d8),'abortController':_0x16a783['abortController']};}['fetchConversation'](_0x26de5b){const _0x4faab5=this['_sendApiRequest']('/conversations/'+_0x26de5b,'GET');return{'getConversation':async()=>(await _0x4faab5['request'])['json'](),'abortController':_0x4faab5['abortController']};}['fetchConversationMessages'](_0xd113ec){const _0x158cc9=this['_sendApiRequest']('/conversations/'+_0xd113ec+'/messages','GET');return{'getMessages':async()=>{const _0x4f588c=await _0x158cc9['request'];return(await _0x4f588c['json']())['items'];},'abortController':_0x158cc9['abortController']};}['uploadUrl'](_0xc1e167,_0x270113,_0x4dd7cb){const _0xc42d2d=this['_sendApiRequest']('/conversations/'+_0xc1e167+'/web-resources','POST',{'url':_0x270113,'attributes':_0x4dd7cb});return{'getId':async()=>(await _0xc42d2d['request'])['json'](),'abortController':_0xc42d2d['abortController']};}['getModels'](_0xa6fdf6='en'){const _0x564c8f=new URLSearchParams();_0x564c8f['append']('language',_0xa6fdf6);const _0x522140='/models/'+MODEL_COMPATIBILITY_VERSION+'?'+_0x564c8f['toString'](),_0x5b5e40=this['_sendApiRequest'](_0x522140,'GET',void 0x0,!0x0);return{'list':async()=>await(await _0x5b5e40['request'])['json'](),'abortController':_0x5b5e40['abortController']};}['deleteFile'](_0x1d3b13,_0x5033f9){const _0x436516=this['_sendApiRequest']('/conversations/'+_0x1d3b13+'/files/'+_0x5033f9,'DELETE');return{'execute':async()=>{await _0x436516['request'];},'abortController':_0x436516['abortController']};}['deleteDocument'](_0xac497d,_0x28a34c){const _0x4b1269=this['_sendApiRequest']('/conversations/'+_0xac497d+'/documents/'+_0x28a34c,'DELETE');return{'execute':async()=>{await _0x4b1269['request'];},'abortController':_0x4b1269['abortController']};}['deleteWebResource'](_0x18d375,_0x5356c2){const _0x1c0309=this['_sendApiRequest']('/conversations/'+_0x18d375+'/web-resources/'+_0x5356c2,'DELETE');return{'execute':async()=>{await _0x1c0309['request'];},'abortController':_0x1c0309['abortController']};}['callSystemReview']({reviewName:_0x2f67ae,content:_0x2251da,args:_0x31765f}){const _0x240b21=this['_sendApiRequest']('/reviews/system/'+_0x2f67ae+'/calls','POST',{'content':[{'type':'text','content':_0x2251da}],'args':_0x31765f});return{'getStream':async()=>{const _0x2408b5=(await _0x240b21['request'])['body'];return this['_getStreamReader'](_0x2408b5);},'abortController':_0x240b21['abortController']};}['callCustomReview']({content:_0x2d734f,prompt:_0x55f78b,model:_0x2e4484}){const _0x4a9bfd=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x2d734f}],'prompt':_0x55f78b,'model':_0x2e4484});return{'getStream':async()=>{const _0x1d231c=(await _0x4a9bfd['request'])['body'];return this['_getStreamReader'](_0x1d231c);},'abortController':_0x4a9bfd['abortController']};}['upsertAIChatRating'](_0xff849,_0x44cf98,_0x481f80){const _0x49cc67=this['_sendApiRequest']('/conversations/'+_0xff849+'/messages/'+_0x44cf98+'/ratings','PUT',{'positiveCount':_0x481f80['positiveCount'],'totalCount':_0x481f80['totalCount'],'modificationId':_0x481f80['modificationId']});return{'execute':async()=>{await _0x49cc67['request'];},'abortController':_0x49cc67['abortController']};}['upsertAIActionRating'](_0x32662e,_0x32d90b,_0x47cd7a){const _0x33c6b5=this['_sendApiRequest']('/actions/system/'+_0x32662e+'/calls/'+_0x32d90b+'/ratings','PUT',{'positiveCount':_0x47cd7a['positiveCount'],'totalCount':_0x47cd7a['totalCount']});return{'execute':async()=>{await _0x33c6b5['request'];},'abortController':_0x33c6b5['abortController']};}['upsertCustomAIActionRating'](_0x1ee12a,_0x2c5ed7){const _0x30d69b=this['_sendApiRequest']('/actions/custom/calls/'+_0x1ee12a+'/ratings','PUT',{'positiveCount':_0x2c5ed7['positiveCount'],'totalCount':_0x2c5ed7['totalCount']});return{'execute':async()=>{await _0x30d69b['request'];},'abortController':_0x30d69b['abortController']};}['upsertAIReviewRating'](_0x586588,_0x2b6f24,_0x3e60dc,_0x8bc4fb){const _0x193b8a=this['_sendApiRequest']('/reviews/system/'+_0x586588+'/calls/'+_0x2b6f24+'/ratings','PUT',{'positiveCount':_0x3e60dc['positiveCount'],'totalCount':_0x3e60dc['totalCount'],'dataId':_0x8bc4fb});return{'execute':async()=>{await _0x193b8a['request'];},'abortController':_0x193b8a['abortController']};}['upsertCustomAIReviewRating'](_0x1d2af3,_0x362888,_0x385e26){const _0x1870ba=this['_sendApiRequest']('/reviews/custom/calls/'+_0x1d2af3+'/ratings','PUT',{'positiveCount':_0x362888['positiveCount'],'totalCount':_0x362888['totalCount'],'dataId':_0x385e26});return{'execute':async()=>{await _0x1870ba['request'];},'abortController':_0x1870ba['abortController']};}['_sendApiRequest'](_0x5f8a3c,_0x48ea3d,_0xe66d92,_0x3cf5ad=!0x1){const _0x469816=new AbortController(),_0x2e41c3=_0x3cf5ad?_0x48ea3d+':'+_0x5f8a3c:null;if(_0x2e41c3){const _0x455886=this['_responseCache']['get'](_0x2e41c3);if(_0x455886)return{'request':_0x455886['then'](_0x101075=>_0x101075['clone']()),'abortController':_0x469816};}const _0x2c3504=_0xe66d92 instanceof FormData,_0x5c0eff={'Authorization':'Bearer\x20'+this['_token']?.['value'],'X-Editor-Version':_0x118cb6};_0xe66d92&&!_0x2c3504&&(_0x5c0eff['Content-Type']='application/json');const _0x5e400a={'method':_0x48ea3d,'headers':_0x5c0eff,'signal':_0x469816['signal']};_0xe66d92&&(_0x5e400a['body']=_0x2c3504?_0xe66d92:JSON['stringify'](_0xe66d92));const _0x51dd5e=fetch(''+this['_apiUrl']+_0x5f8a3c,_0x5e400a)['catch'](_0x4b4976=>{_0x2e41c3&&this['_responseCache']['delete'](_0x2e41c3),this['_handleError'](_0x4b4976);})['then'](_0x3d6f37=>_0x3d6f37['ok']?_0x3d6f37:_0x3d6f37['json']()['then'](_0xfc756a=>{throw _0x2e41c3&&this['_responseCache']['delete'](_0x2e41c3),{'url':this['_apiUrl'],'path':_0x5f8a3c,'method':_0x48ea3d,'body':_0xe66d92,'status':(_0x3d6f37||{})['status'],'statusText':(_0x3d6f37||{})['statusText'],'code':_0xfc756a['code'],'message':_0xfc756a['message'],'traceId':_0xfc756a['traceId']};}));return _0x2e41c3&&this['_responseCache']['set'](_0x2e41c3,_0x51dd5e['then'](_0x1f8546=>_0x1f8546['clone']())),{'request':_0x51dd5e,'abortController':_0x469816};}async*['_getStreamReader'](_0x5cf573){const _0x1c0673=[],_0x1d42ee=_0x5cf573['getReader'](),_0x38fd02=createParser({'onError':_0xe1b61b=>{this['_handleError'](_0xe1b61b);},'onEvent':_0x200b33=>{_0x200b33['data']=JSON['parse'](_0x200b33['data']),_0x1c0673['push'](_0x200b33);}});try{let _0x34e1df=!0x1;for(;!_0x34e1df;){const {done:_0x3bfbdf,value:_0x583661}=await _0x1d42ee['read']();_0x3bfbdf&&(_0x34e1df=!0x0),_0x38fd02['feed'](this['_decoder']['decode'](_0x583661,{'stream':!0x0})),yield*_0x1c0673,_0x1c0673['length']=0x0;}}catch(_0x2d01f5){this['_handleError'](_0x2d01f5);}finally{_0x1d42ee['releaseLock'](),_0x38fd02['reset']();}}['_handleError'](_0x275c65){if(_0x275c65 instanceof CKEditorError)throw _0x275c65;if(_0x275c65 instanceof Error&&'AbortError'===_0x275c65['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0x275c65});throw new CKEditorError('ai-request-failed',this,{'originalError':_0x275c65});}}function getTranslation$i(_0x430944,_0x3c27d0,_0x30b83e){const t=_0x430944['t'];switch(_0x3c27d0){case'AI_SUGGESTION_HEADER_TITLE':return t({'id':'AI_SUGGESTION_HEADER_TITLE','string':'Proposed\x20changes'});case'AI_SUGGESTION_BUTTON_SHOW_CHANGES':return t({'id':'AI_SUGGESTION_BUTTON_SHOW_CHANGES','string':'Show\x20details'});case'AI_MINI_TOOLBAR_LIKE':return t({'id':'AI_MINI_TOOLBAR_LIKE','string':'I\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_DISLIKE':return t({'id':'AI_MINI_TOOLBAR_DISLIKE','string':'I\x20don\x27t\x20like\x20this\x20response'});case'AI_MINI_TOOLBAR_COPY':return t({'id':'AI_MINI_TOOLBAR_COPY','string':'Copy\x20to\x20clipboard'});case'AI_SUGGESTION_CONTENT_PART_TITLE':return t({'id':'AI_SUGGESTION_CONTENT_PART_TITLE','string':'Change\x20%0'},_0x30b83e);case'AI_SUGGESTION_CONTENT_PART_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECTED','string':'Change\x20was\x20rejected'});case'AI_SUGGESTION_CONTENT_PART_OUTDATED':return t({'id':'AI_SUGGESTION_CONTENT_PART_OUTDATED','string':'Change\x20is\x20outdated'});case'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED':return t({'id':'AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','string':'Change\x20is\x20already\x20applied'});case'AI_SUGGESTION_CONTENT_PART_APPLY':return t({'id':'AI_SUGGESTION_CONTENT_PART_APPLY','string':'Apply\x20change'});case'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION':return t({'id':'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION','string':'Add\x20as\x20suggestion'});case'AI_SUGGESTION_CONTENT_PART_REJECT':return t({'id':'AI_SUGGESTION_CONTENT_PART_REJECT','string':'Reject\x20change'});case'AI_SUGGESTION_CONTENT_PART_REMOVED':return t({'id':'AI_SUGGESTION_CONTENT_PART_REMOVED','string':'Removed\x20content.\x20Use\x20\x22Show\x20details\x22\x20to\x20learn\x20more.'});case'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','string':'Approved'});case'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','string':'Rejected'});case'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED':return t({'id':'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','string':'Outdated'});case'AI_DISCLAIMER_TEXT':return t({'id':'AI_DISCLAIMER_TEXT','string':'AI\x20can\x20make\x20mistakes.\x20Please\x20double-check\x20responses.'});case'AI_TABS_LABEL_MAXIMIZE':return t({'id':'AI_TABS_LABEL_MAXIMIZE','string':'Maximize'});case'AI_TABS_LABEL_MINIMIZE':return t({'id':'AI_TABS_LABEL_MINIMIZE','string':'Minimize'});case'AI_CHAT_HEADING':return t({'id':'AI_CHAT_HEADING','string':'Chat'});case'AI_CHAT_SOURCES_HEADER':return t({'id':'AI_CHAT_SOURCES_HEADER','string':'Sources'});case'AI_CHAT_UNTITLED_CONVERSATION':return t({'id':'AI_CHAT_UNTITLED_CONVERSATION','string':'Untitled\x20conversation'});case'AI_CHAT_LABEL_NEW_CHAT':return t({'id':'AI_CHAT_LABEL_NEW_CHAT','string':'New\x20chat'});case'AI_CHAT_STOP_GENERATING':return t({'id':'AI_CHAT_STOP_GENERATING','string':'Stop\x20generating'});case'AI_CHAT_IS_WRITING':return t({'id':'AI_CHAT_IS_WRITING','string':'AI\x20is\x20writing...'});case'AI_CHAT_PROMPT_EMPTY_ERROR':return t({'id':'AI_CHAT_PROMPT_EMPTY_ERROR','string':'This\x20field\x20cannot\x20be\x20empty.'});case'AI_CHAT_LABEL_SUBMIT':return t({'id':'AI_CHAT_LABEL_SUBMIT','string':'Submit'});case'AI_CHAT_WELCOME_MESSAGE':return t({'id':'AI_CHAT_WELCOME_MESSAGE','string':'Hi!\x20I\x20can\x20help\x20you\x20draft,\x20rewrite,\x20and\x20improve\x20your\x20text,\x20explore\x20ideas,\x20research\x20topics,\x20and\x20solve\x20problems.\x20How\x20can\x20I\x20help\x20right\x20now?'});case'AI_CHAT_ABORTED_MESSAGE':return t({'id':'AI_CHAT_ABORTED_MESSAGE','string':'Response\x20stopped.'});case'AI_CHAT_GENERIC_ERROR':return t({'id':'AI_CHAT_GENERIC_ERROR','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_START_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_START_CONVERSATION','string':'Unable\x20to\x20start\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION':return t({'id':'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','string':'Unable\x20to\x20load\x20chosen\x20conversation.\x20Please\x20make\x20sure\x20you\x20are\x20online\x20and\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','string':'Failed\x20to\x20upload\x20files:\x20%0.\x20Please\x20try\x20again.'},_0x30b83e);case'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','string':'Unable\x20to\x20load\x20resources\x20from\x20%0.\x20Please\x20try\x20again.'},_0x30b83e);case'AI_CHAT_RESOURCE_LOAD_FAILED':return t({'id':'AI_CHAT_RESOURCE_LOAD_FAILED','string':'Failed\x20to\x20load\x20resource.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_CURRENT_DOCUMENT':return t({'id':'AI_CHAT_CONTEXT_CURRENT_DOCUMENT','string':'Current\x20document'});case'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','string':'Remove\x20from\x20context'});case'AI_CHAT_CONTEXT_ADD_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_ADD_CONTEXT','string':'Add\x20context'});case'AI_CHAT_CONTEXT_URL_LABEL':return t({'id':'AI_CHAT_CONTEXT_URL_LABEL','string':'URL'});case'AI_CHAT_CONTEXT_FILE_LABEL':return t({'id':'AI_CHAT_CONTEXT_FILE_LABEL','string':'File'});case'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL':return t({'id':'AI_CHAT_CONTEXT_CURRENT_CONTEXT_LABEL','string':'Current\x20context'});case'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL':return t({'id':'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','string':'Selected\x20content'});case'AI_CHAT_SEARCH_WEB':return t({'id':'AI_CHAT_SEARCH_WEB','string':'Web\x20search'});case'AI_CHAT_ENABLE_WEB_SEARCH':return t({'id':'AI_CHAT_ENABLE_WEB_SEARCH','string':'Enable\x20web\x20search'});case'AI_CHAT_DISABLE_WEB_SEARCH':return t({'id':'AI_CHAT_DISABLE_WEB_SEARCH','string':'Disable\x20web\x20search'});case'AI_CHAT_REASONING':return t({'id':'AI_CHAT_REASONING','string':'Reasoning'});case'AI_CHAT_ENABLE_REASONING':return t({'id':'AI_CHAT_ENABLE_REASONING','string':'Enable\x20reasoning'});case'AI_CHAT_DISABLE_REASONING':return t({'id':'AI_CHAT_DISABLE_REASONING','string':'Disable\x20reasoning'});case'AI_CHAT_COMMANDS':return t({'id':'AI_CHAT_COMMANDS','string':'Commands'});case'AI_CHAT_SEARCH_RESOURCES':return t({'id':'AI_CHAT_SEARCH_RESOURCES','string':'Search\x20resources'});case'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT':return t({'id':'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','string':'Back\x20to\x20context\x20options'});case'AI_CHAT_CONTEXT_URL_ADD_URL':return t({'id':'AI_CHAT_CONTEXT_URL_ADD_URL','string':'Add\x20URL'});case'AI_CHAT_CONTEXT_URL_PLACEHOLDER':return t({'id':'AI_CHAT_CONTEXT_URL_PLACEHOLDER','string':'Add\x20URL...'});case'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL':return t({'id':'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','string':'Failed\x20to\x20upload\x20URL:\x20%0.\x20Please\x20try\x20again.'},_0x30b83e);case'AI_CHAT_CONTEXT_INVALID_DATA':return t({'id':'AI_CHAT_CONTEXT_INVALID_DATA','string':'Invalid\x20context\x20data\x20type\x20for\x20the\x20selected\x20resource.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','string':'Unsupported\x20resource\x20type.\x20Only\x20files\x20and\x20URLs\x20are\x20supported.'});case'AI_CHAT_CONTEXT_URL_EMPTY_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_EMPTY_ERROR','string':'URL\x20cannot\x20be\x20empty.'});case'AI_CHAT_CONTEXT_URL_INVALID_ERROR':return t({'id':'AI_CHAT_CONTEXT_URL_INVALID_ERROR','string':'Please\x20enter\x20a\x20valid\x20URL.'});case'AI_CHAT_INVALID_REQUEST':return t({'id':'AI_CHAT_INVALID_REQUEST','string':'Something\x20went\x20wrong\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again.'});case'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE':return t({'id':'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','string':'The\x20file\x20type\x20is\x20not\x20supported.\x20Please\x20upload\x20a\x20different\x20file.'});case'AI_CHAT_CONTEXT_FILE_TOO_LARGE':return t({'id':'AI_CHAT_CONTEXT_FILE_TOO_LARGE','string':'The\x20file\x20is\x20too\x20large.\x20Please\x20upload\x20a\x20smaller\x20file.'});case'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES':return t({'id':'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','string':'The\x20file\x20has\x20too\x20many\x20pages.\x20Please\x20upload\x20a\x20file\x20with\x20fewer\x20pages.'});case'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED':return t({'id':'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','string':'The\x20form\x20data\x20size\x20limits\x20are\x20exceeded.\x20Please\x20upload\x20a\x20smaller\x20file.'});case'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','string':'AI\x20is\x20preparing\x20a\x20response...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','string':'AI\x20is\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_REASONING','string':'AI\x20is\x20using\x20reasoning\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','string':'AI\x20is\x20using\x20reasoning\x20and\x20searching\x20the\x20web\x20to\x20provide\x20the\x20most\x20accurate\x20answer...'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','string':'Scanned\x20the\x20internet\x20for\x20insights'});case'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','string':'AI\x20used\x20reasoning\x20to\x20improve\x20the\x20response'});case'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING':return t({'id':'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','string':'AI\x20used\x20search\x20and\x20reasoning\x20to\x20improve\x20the\x20response'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','string':'Ask\x20AI\x20anything...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','string':'Ask\x20AI\x20anything\x20(web\x20search\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','string':'Ask\x20AI\x20anything\x20(reasoning\x20enabled)...'});case'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING':return t({'id':'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','string':'Ask\x20AI\x20anything\x20(web\x20search\x20and\x20reasoning\x20enabled)...'});case'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','string':'Suggest\x20all'},_0x30b83e);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x30b83e);case'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','string':'Apply\x20all'});case'AI_CHAT_SUGGESTION_ACTION_APPLY':return t({'id':'AI_CHAT_SUGGESTION_ACTION_APPLY','string':'Apply'});case'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP':return t({'id':'AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','string':'More\x20options'},_0x30b83e);case'AI_CHAT_MODEL_SELECTOR_GROUP':return t({'id':'AI_CHAT_MODEL_SELECTOR_GROUP','string':'Models'});case'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','string':'Select\x20a\x20model'});case'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP':return t({'id':'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','string':'Start\x20a\x20new\x20conversation\x20to\x20change\x20the\x20model'});case'AI_CHAT_CAPABILITIES_YES':return t({'id':'AI_CHAT_CAPABILITIES_YES','string':'Yes'});case'AI_CHAT_CAPABILITIES_NO':return t({'id':'AI_CHAT_CAPABILITIES_NO','string':'No'});case'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT':return t({'id':'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','string':'The\x20selected\x20model\x20is\x20no\x20longer\x20available,\x20so\x20you\x20cannot\x20continue\x20this\x20conversation.\x20Please\x20'});case'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON':return t({'id':'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','string':'start\x20a\x20new\x20one.'});case'AI_CHAT_CONTEXT_SOURCES_LABEL':return t({'id':'AI_CHAT_CONTEXT_SOURCES_LABEL','string':'Sources'});case'AI_CHAT_HISTORY_HEADING':return t({'id':'AI_CHAT_HISTORY_HEADING','string':'Chat\x20History'});case'AI_CHAT_HISTORY_SEARCH_LABEL':return t({'id':'AI_CHAT_HISTORY_SEARCH_LABEL','string':'Search\x20history'});case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','string':'No\x20chats\x20were\x20found\x20matching\x20\x22%0\x22.'},_0x30b83e);case'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY':return t({'id':'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','string':'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.'});case'AI_CHAT_HISTORY_EMPTY_MESSAGE':return t({'id':'AI_CHAT_HISTORY_EMPTY_MESSAGE','string':'Your\x20chat\x20history\x20for\x20current\x20document\x20will\x20appear\x20here.'});case'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON':return t({'id':'AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','string':'Go\x20to\x20chat'});case'AI_CHAT_HISTORY_PIN_BUTTON':return t({'id':'AI_CHAT_HISTORY_PIN_BUTTON','string':'Pin'});case'AI_CHAT_HISTORY_SHOW_MORE_ITEMS':return t({'id':'AI_CHAT_HISTORY_SHOW_MORE_ITEMS','string':'Show\x20more\x20items'});case'AI_CHAT_HISTORY_EDIT_NAME':return t({'id':'AI_CHAT_HISTORY_EDIT_NAME','string':'Edit\x20name'});case'AI_CHAT_HISTORY_REMOVE':return t({'id':'AI_CHAT_HISTORY_REMOVE','string':'Remove'});case'AI_CHAT_HISTORY_REMOVE_CONFIRM':return t({'id':'AI_CHAT_HISTORY_REMOVE_CONFIRM','string':'Do\x20you\x20want\x20to\x20remove\x20this\x20chat?'});case'AI_CHAT_HISTORY_ACCEPT':return t({'id':'AI_CHAT_HISTORY_ACCEPT','string':'Accept'});case'AI_CHAT_HISTORY_CANCEL':return t({'id':'AI_CHAT_HISTORY_CANCEL','string':'Cancel'});case'AI_CHAT_HISTORY_LOADING_REMOVING':return t({'id':'AI_CHAT_HISTORY_LOADING_REMOVING','string':'Removing\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_RENAMING':return t({'id':'AI_CHAT_HISTORY_LOADING_RENAMING','string':'Renaming\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_PINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_PINNING','string':'Pinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_LOADING_UNPINNING':return t({'id':'AI_CHAT_HISTORY_LOADING_UNPINNING','string':'Unpinning\x20the\x20chat...'});case'AI_CHAT_HISTORY_CATEGORY_PINNED':return t({'id':'AI_CHAT_HISTORY_CATEGORY_PINNED','string':'Pinned'});case'AI_CHAT_HISTORY_CATEGORY_TODAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_TODAY','string':'Today'});case'AI_CHAT_HISTORY_CATEGORY_YESTERDAY':return t({'id':'AI_CHAT_HISTORY_CATEGORY_YESTERDAY','string':'Yesterday'});case'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','string':'Last\x2014\x20days'});case'AI_CHAT_HISTORY_CATEGORY_LATER':return t({'id':'AI_CHAT_HISTORY_CATEGORY_LATER','string':'Later'});case'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','string':'Failed\x20to\x20change\x20the\x20\x22%0\x22\x20chat\x20name.\x20Please\x20try\x20again\x20later.'},_0x30b83e);case'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED':return t({'id':'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','string':'Failed\x20to\x20%0\x20the\x20\x22%1\x22\x20chat.\x20Please\x20try\x20again\x20later.'},_0x30b83e);case'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM':return t({'id':'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','string':'Failed\x20to\x20delete\x20the\x20\x22%0\x22\x20chat.\x20Please\x20try\x20again\x20later.'},_0x30b83e);case'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS':return t({'id':'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','string':'Failed\x20to\x20load\x20the\x20chat\x20history.\x20Please\x20try\x20again\x20later.'});case'AI_CHAT_HISTORY_ERROR_GENERIC':return t({'id':'AI_CHAT_HISTORY_ERROR_GENERIC','string':'Something\x20went\x20wrong.\x20Please\x20try\x20again\x20later.'});case'AI_CHAT_HISTORY_PIN_ACTION':return t({'id':'AI_CHAT_HISTORY_PIN_ACTION','string':'pin'});case'AI_CHAT_HISTORY_UNPIN_ACTION':return t({'id':'AI_CHAT_HISTORY_UNPIN_ACTION','string':'unpin'});case'AI_BALLOON_HEADER_TITLE':return t({'id':'AI_BALLOON_HEADER_TITLE','string':'Change\x20%0'},_0x30b83e);case'AI_BALLOON_APPLY_BUTTON':return t({'id':'AI_BALLOON_APPLY_BUTTON','string':'Apply'});case'AI_BALLOON_SUGGEST_BUTTON':return t({'id':'AI_BALLOON_SUGGEST_BUTTON','string':'Suggest'});case'AI_BALLOON_NEXT_LABEL':return t({'id':'AI_BALLOON_NEXT_LABEL','string':'Next'});case'AI_BALLOON_PREVIOUS_LABEL':return t({'id':'AI_BALLOON_PREVIOUS_LABEL','string':'Previous'});case'AI_SUGGESTION_NO_PARTS_WARNING':return t({'id':'AI_SUGGESTION_NO_PARTS_WARNING','string':'This\x20change\x20is\x20not\x20supported\x20by\x20the\x20editor\x20and\x20can\x27t\x20be\x20previewed\x20or\x20applied.'});case'AI_SUGGESTION_EMPTY_PART_WARNING':return t({'id':'AI_SUGGESTION_EMPTY_PART_WARNING','string':'Some\x20of\x20the\x20changes\x20are\x20not\x20supported\x20by\x20the\x20editor\x20and\x20can\x27t\x20be\x20previewed\x20or\x20applied.'});case'AI_ACTIONS_TRY_AGAIN':return t({'id':'AI_ACTIONS_TRY_AGAIN','string':'Retry'});case'AI_ACTIONS_PREVIOUS_INTERACTION':return t({'id':'AI_ACTIONS_PREVIOUS_INTERACTION','string':'Previous'});case'AI_ACTIONS_NEXT_INTERACTION':return t({'id':'AI_ACTIONS_NEXT_INTERACTION','string':'Next'});case'AI_MODEL_NAME_AUTO':return t({'id':'AI_MODEL_NAME_AUTO','string':'Auto'});case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_SEARCH':return t({'id':'AI_QUICK_ACTIONS_SEARCH','string':'Search\x20AI\x20commands'});case'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','string':'No\x20AI\x20commands\x20found'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_TRANSLATE_SPANISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_SPANISH','string':'Spanish'});case'AI_QUICK_ACTIONS_TRANSLATE_GERMAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_GERMAN','string':'German'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x30b83e);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});case'AI_ACTIONS_GENERIC_ERROR':return t({'id':'AI_ACTIONS_GENERIC_ERROR','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20response.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_BALLOON_SELECTION_REMOVED_ERROR':return t({'id':'AI_BALLOON_SELECTION_REMOVED_ERROR','string':'Changes\x20cannot\x20be\x20applied.\x20The\x20original\x20content\x20no\x20longer\x20exists.'});case'AI_REVIEW_MODE_STOP_GENERATING':return t({'id':'AI_REVIEW_MODE_STOP_GENERATING','string':'Stop\x20generating'});case'AI_REVIEW_MODE_HIDE_CHANGES':return t({'id':'AI_REVIEW_MODE_HIDE_CHANGES','string':'Hide\x20changes'});case'AI_REVIEW_MODE_SHOW_CHANGES':return t({'id':'AI_REVIEW_MODE_SHOW_CHANGES','string':'Show\x20changes'});case'AI_REVIEW_MODE_ACCEPT_ALL':return t({'id':'AI_REVIEW_MODE_ACCEPT_ALL','string':'Accept\x20all'});case'AI_REVIEW_MODE_EXIT_REVIEW':return t({'id':'AI_REVIEW_MODE_EXIT_REVIEW','string':'Exit\x20review'});case'AI_REVIEW_MODE_ACCEPT_CHANGE':return t({'id':'AI_REVIEW_MODE_ACCEPT_CHANGE','string':'Accept'});case'AI_REVIEW_MODE_DISMISS_CHANGE':return t({'id':'AI_REVIEW_MODE_DISMISS_CHANGE','string':'Dismiss'});case'AI_REVIEW_MODE_LEARN_MORE':return t({'id':'AI_REVIEW_MODE_LEARN_MORE','string':'Learn\x20more'});case'AI_REVIEW_MODE_COMPLETED_TEXT':return t({'id':'AI_REVIEW_MODE_COMPLETED_TEXT','string':'There\x27s\x20nothing\x20left\x20to\x20review.'});case'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT':return t({'id':'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','string':'There\x20are\x20no\x20changes\x20to\x20suggest.'});case'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','string':'Finish\x20Review'});case'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE':return t({'id':'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','string':'Review\x20complete.\x20Finish\x20when\x20ready.'});case'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE':return t({'id':'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE','string':'AI\x20Review\x20initialized\x20with\x20errors.\x20Some\x20features\x20may\x20not\x20be\x20available\x20or\x20work\x20properly.'});case'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20the\x20whole\x20review\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE':return t({'id':'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE','string':'Not\x20everything\x20went\x20through,\x20but\x20the\x20completed\x20items\x20are\x20listed\x20below.'});case'AI_REVIEW_MODE':return t({'id':'AI_REVIEW_MODE','string':'Review'});case'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR':return t({'id':'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR','string':'Prompt\x20must\x20not\x20be\x20empty'});case'AI_REVIEW_CHECK_CUSTOM_TITLE':return t({'id':'AI_REVIEW_CHECK_CUSTOM_TITLE','string':'Custom\x20command'});case'AI_REVIEW_CHECK_CUSTOM_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CUSTOM_DESCRIPTION','string':'Enter\x20a\x20custom\x20command\x20for\x20a\x20specific\x20review.'});case'AI_REVIEW_CHECK_CORRECTNESS_TITLE':return t({'id':'AI_REVIEW_CHECK_CORRECTNESS_TITLE','string':'Proofread'});case'AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION','string':'Check\x20the\x20text\x20for\x20errors\x20in\x20grammar,\x20spelling,\x20and\x20punctuation.'});case'AI_REVIEW_CHECK_CLARITY_TITLE':return t({'id':'AI_REVIEW_CHECK_CLARITY_TITLE','string':'Improve\x20clarity'});case'AI_REVIEW_CHECK_CLARITY_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_CLARITY_DESCRIPTION','string':'Improve\x20the\x20logical\x20structure\x20and\x20precision\x20for\x20clearer\x20message.'});case'AI_REVIEW_CHECK_READABILITY_TITLE':return t({'id':'AI_REVIEW_CHECK_READABILITY_TITLE','string':'Improve\x20readability'});case'AI_REVIEW_CHECK_READABILITY_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_READABILITY_DESCRIPTION','string':'Adjust\x20sentence\x20structure\x20and\x20word\x20choice\x20for\x20an\x20easier\x20read.'});case'AI_REVIEW_CHECK_MAKE_TITLE':return t({'id':'AI_REVIEW_CHECK_MAKE_TITLE','string':'Adjust\x20length'});case'AI_REVIEW_CHECK_MAKE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_MAKE_DESCRIPTION','string':'Shorten\x20or\x20lengthen\x20the\x20text\x20as\x20needed.'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL','string':'Adjust\x20length'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER','string':'Longer'});case'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER':return t({'id':'AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER','string':'Shorter'});case'AI_REVIEW_CHECK_MAKE_TONE_TITLE':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_TITLE','string':'Adjust\x20tone\x20and\x20style'});case'AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION','string':'Modify\x20the\x20text\x20to\x20a\x20desired\x20tone\x20and\x20style.'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL','string':'Adjust\x20tone\x20and\x20style'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL','string':'Casual'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT','string':'Direct'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY','string':'Friendly'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT','string':'Confident'});case'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL':return t({'id':'AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL','string':'Professional'});case'AI_REVIEW_CHECK_TRANSLATE_TITLE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_TITLE','string':'Translate'});case'AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION','string':'Translate\x20the\x20text\x20into\x20another\x20language.'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL','string':'Select\x20language'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH','string':'English'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH','string':'Spanish'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH','string':'French'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN','string':'German'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE','string':'Japanese'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN','string':'Russian'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE','string':'Portuguese'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN','string':'Korean'});case'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN':return t({'id':'AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN','string':'Italian'});case'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED','string':'Accepted'});case'AI_REVIEW_MODE_CHECK_STATUS_REJECTED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_REJECTED','string':'Dismissed'});case'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED':return t({'id':'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED','string':'Outdated'});case'AI_TOGGLE_BUTTON_LABEL':return t({'id':'AI_TOGGLE_BUTTON_LABEL','string':'AI'});case'AI_TRANSLATE_ACCEPT_ALL':return t({'id':'AI_TRANSLATE_ACCEPT_ALL','string':'Accept\x20translation'});case'AI_TRANSLATE_FINISH_HEADER_TITLE':return t({'id':'AI_TRANSLATE_FINISH_HEADER_TITLE','string':'Translation\x20complete.\x20Finish\x20when\x20ready.'});case'AI_TRANSLATE_EMPTY_RESULTS_TEXT':return t({'id':'AI_TRANSLATE_EMPTY_RESULTS_TEXT','string':'There\x20are\x20no\x20translations\x20to\x20review.'});case'AI_TRANSLATE_FINISH_BUTTON_LABEL':return t({'id':'AI_TRANSLATE_FINISH_BUTTON_LABEL','string':'Finish\x20Translation'});case'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE':return t({'id':'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE','string':'Content\x20Translation'});case'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION':return t({'id':'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION','string':'A\x20dedicated\x20mode\x20for\x20translating\x20the\x20entire\x20text.'});case'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE':return t({'id':'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE','string':'Translating\x20to'});case'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE':return t({'id':'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE','string':'Translated\x20to'});case'AI_TRANSLATE_GENERAL_ERROR_MESSAGE':return t({'id':'AI_TRANSLATE_GENERAL_ERROR_MESSAGE','string':'Sorry,\x20we\x20couldn\x27t\x20generate\x20translations\x20properly.\x20Please\x20try\x20again\x20in\x20a\x20moment.'});case'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE':return t({'id':'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','string':'This\x20conversation\x20is\x20loaded\x20from\x20chat\x20history\x20from\x20a\x20previous\x20session,\x20so\x20you\x20can’t\x20apply,\x20reject,\x20or\x20suggest\x20changes.'});case'AI_SUGGESTION_DISABLED_FEED_MESSAGE':return t({'id':'AI_SUGGESTION_DISABLED_FEED_MESSAGE','string':'Actions\x20aren’t\x20available\x20for\x20changes\x20from\x20a\x20previous\x20session.'});default:return _0x3c27d0;}}const AI_BUTTON_CLASSES={'PRIMARY':'ck-ai-button-primary','SECONDARY':'ck-ai-button-secondary','TERTIARY':'ck-ai-button-tertiary'};function createResizeButton(_0x40589e,_0x285bca){const _0xf67148=new ButtonView(_0x40589e),_0x5c83f9=getTranslation$i(_0x40589e,'AI_TABS_LABEL_MINIMIZE'),_0x98e340=getTranslation$i(_0x40589e,'AI_TABS_LABEL_MAXIMIZE');return _0xf67148['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0xf67148['bind']('label')['to'](_0x285bca,'isMaximized',_0x2637d2=>_0x2637d2?_0x5c83f9:_0x98e340),_0xf67148['bind']('icon')['to'](_0x285bca,'isMaximized',_0x3ab9bf=>_0x3ab9bf?IconMinimize:IconMaximize),_0xf67148['bind']('isOn')['to'](_0x285bca,'isMaximized'),_0xf67148['on']('execute',()=>{_0x285bca['fire']('resizeTabs');}),_0xf67148;}const htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\x00\x00\x00\x00\x00\x00ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\x5cbfms\x7f\u0084\u008b\u0090\u0095\u0098¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp\u009d¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\x00\x00\x00͔͂\x00Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\x00\x00ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\x00\x00ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\x00ц\x00ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\x00ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\x00\x00ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\x00\x00֣mallSquare;旼erySmallSquare;斪Ͱֺ\x00ֿ\x00\x00ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\x00ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\x00ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\x00ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\x00ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\x00ࣃbleBracket;柦nǔࣈ\x00࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻\x22䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\x00စbleBracket;柧nǔည\x00နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\x00\x00ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\x00ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀\u205f\u200aSpace;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\x00ጬጱ\x00\x00\x00\x00\x00ጸጽ፷ᎅ\x00᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\x00጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\x00ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\x00ᖰᖶᖿ\x00\x00\x00\x00ᗆᗛᗫᙟ᙭\x00ᚕ᚛ᚲᚹ\x00ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\x00\x00ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\x00\x00ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\x00ᠳƲᠯ\x00ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\x00᧨ᨑᨕᨲ\x00ᨷᩐ\x00\x00᪴\x00\x00᫁\x00\x00ᬡᬮ᭍᭒\x00᯽\x00ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\x00᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\x00\x00᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\x00ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\x00\x00᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\x00ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\x00\x00᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\x00\x00ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\x00\x00ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\x00\x00ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\x00\x00ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\x00ᾞ\x00ᾡᾧ\x00\x00ῆῌ\x00ΐ\x00ῦῪ\u2000\x00\u2008⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\x00\x00᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\x00ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\x00⁐β•‥‧‪‬\x00‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\x00‶;慔;慖ʴ‾⁁\x00\x00⁃耻¾䂾;慗;慜5;慘ƶ⁌\x00⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\x00↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\x00⊪\x00⊸⋅⋎\x00⋕⋳\x00\x00⋸⌢⍧⍢⍿\x00⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\x00⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\x00⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\x00⒪\x00⒱\x00\x00\x00\x00\x00⒵Ⓔ\x00ⓆⓈⓍ\x00⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\x00⧣p肻\u00a0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\x00⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\x00\x00⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ⴭ\x00ⴸⵈⵠⵥ⵲ⶄᬇ\x00\x00ⶍⶫ\x00ⷈⷎ\x00ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\x00\x00⵼\x00ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\x00⹽\x00⺀⺝\x00⺢⺹\x00\x00⻋ຜ\x00⼓\x00\x00⼫⾼\x00⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\x00\x00⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\x00㍺㎤\x00\x00㏬㏰\x00㐨㑈㑚㒭㒱㓊㓱\x00㘖\x00\x00㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\x00㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\x00\x00㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\x00㙾㛂\x00\x00\x00\x00\x00㛛㜃\x00㜉㝬\x00\x00\x00㞇ɲ㙖\x00\x00㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\x00㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\x00㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\x00\x00㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\x00\x00㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\x00㪋\x00㪐㪛\x00\x00㪝㪨㪫㪯\x00\x00㫃㫎\x00㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'['split']('')['map'](_0x38fb57=>_0x38fb57['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x3bad9c=>_0x3bad9c['charCodeAt'](0x0)));var _a$2;const decodeMap=new Map([[0x0,0xfffd],[0x80,0x20ac],[0x82,0x201a],[0x83,0x192],[0x84,0x201e],[0x85,0x2026],[0x86,0x2020],[0x87,0x2021],[0x88,0x2c6],[0x89,0x2030],[0x8a,0x160],[0x8b,0x2039],[0x8c,0x152],[0x8e,0x17d],[0x91,0x2018],[0x92,0x2019],[0x93,0x201c],[0x94,0x201d],[0x95,0x2022],[0x96,0x2013],[0x97,0x2014],[0x98,0x2dc],[0x99,0x2122],[0x9a,0x161],[0x9b,0x203a],[0x9c,0x153],[0x9e,0x17e],[0x9f,0x178]]),fromCodePoint$1=null!==(_a$2=String['fromCodePoint'])&&void 0x0!==_a$2?_a$2:function(_0x544b3f){let _0x473cc1='';return _0x544b3f>0xffff&&(_0x544b3f-=0x10000,_0x473cc1+=String['fromCharCode'](_0x544b3f>>>0xa&0x3ff|0xd800),_0x544b3f=0xdc00|0x3ff&_0x544b3f),_0x473cc1+=String['fromCharCode'](_0x544b3f),_0x473cc1;};function replaceCodePoint(_0x4ee5eb){var _0x2fbe9c;return _0x4ee5eb>=0xd800&&_0x4ee5eb<=0xdfff||_0x4ee5eb>0x10ffff?0xfffd:null!==(_0x2fbe9c=decodeMap['get'](_0x4ee5eb))&&void 0x0!==_0x2fbe9c?_0x2fbe9c:_0x4ee5eb;}var CharCodes$1;!function(_0x2764e7){_0x2764e7[_0x2764e7['NUM']=0x23]='NUM',_0x2764e7[_0x2764e7['SEMI']=0x3b]='SEMI',_0x2764e7[_0x2764e7['EQUALS']=0x3d]='EQUALS',_0x2764e7[_0x2764e7['ZERO']=0x30]='ZERO',_0x2764e7[_0x2764e7['NINE']=0x39]='NINE',_0x2764e7[_0x2764e7['LOWER_A']=0x61]='LOWER_A',_0x2764e7[_0x2764e7['LOWER_F']=0x66]='LOWER_F',_0x2764e7[_0x2764e7['LOWER_X']=0x78]='LOWER_X',_0x2764e7[_0x2764e7['LOWER_Z']=0x7a]='LOWER_Z',_0x2764e7[_0x2764e7['UPPER_A']=0x41]='UPPER_A',_0x2764e7[_0x2764e7['UPPER_F']=0x46]='UPPER_F',_0x2764e7[_0x2764e7['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0x1031a7){return _0x1031a7>=CharCodes$1['ZERO']&&_0x1031a7<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0x1b7cea){return _0x1b7cea>=CharCodes$1['UPPER_A']&&_0x1b7cea<=CharCodes$1['UPPER_F']||_0x1b7cea>=CharCodes$1['LOWER_A']&&_0x1b7cea<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x54c3b0){return _0x54c3b0>=CharCodes$1['UPPER_A']&&_0x54c3b0<=CharCodes$1['UPPER_Z']||_0x54c3b0>=CharCodes$1['LOWER_A']&&_0x54c3b0<=CharCodes$1['LOWER_Z']||isNumber$1(_0x54c3b0);}function isEntityInAttributeInvalidEnd(_0x5f3669){return _0x5f3669===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x5f3669);}!function(_0x249720){_0x249720[_0x249720['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x249720[_0x249720['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x249720[_0x249720['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x3d8840){_0x3d8840[_0x3d8840['EntityStart']=0x0]='EntityStart',_0x3d8840[_0x3d8840['NumericStart']=0x1]='NumericStart',_0x3d8840[_0x3d8840['NumericDecimal']=0x2]='NumericDecimal',_0x3d8840[_0x3d8840['NumericHex']=0x3]='NumericHex',_0x3d8840[_0x3d8840['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0x301fda){_0x301fda[_0x301fda['Legacy']=0x0]='Legacy',_0x301fda[_0x301fda['Strict']=0x1]='Strict',_0x301fda[_0x301fda['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0xef076,_0x2f6521,_0x1d15b3){this['decodeTree']=_0xef076,this['emitCodePoint']=_0x2f6521,this['errors']=_0x1d15b3,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x644665){this['decodeMode']=_0x644665,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x4ae5bf,_0x403544){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x4ae5bf['charCodeAt'](_0x403544)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x4ae5bf,_0x403544+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x4ae5bf,_0x403544));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x4ae5bf,_0x403544);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x4ae5bf,_0x403544);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x4ae5bf,_0x403544);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x4ae5bf,_0x403544);}}['stateNumericStart'](_0x51c562,_0x554a59){return _0x554a59>=_0x51c562['length']?-0x1:(_0x51c562['charCodeAt'](_0x554a59)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x51c562,_0x554a59+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x51c562,_0x554a59));}['addToNumericResult'](_0x2c066a,_0xa33de3,_0x9c5dbc,_0x4e6293){if(_0xa33de3!==_0x9c5dbc){const _0x43cc00=_0x9c5dbc-_0xa33de3;this['result']=this['result']*Math['pow'](_0x4e6293,_0x43cc00)+Number['parseInt'](_0x2c066a['substr'](_0xa33de3,_0x43cc00),_0x4e6293),this['consumed']+=_0x43cc00;}}['stateNumericHex'](_0x2cd4c2,_0x3c78fa){const _0x4bf70f=_0x3c78fa;for(;_0x3c78fa<_0x2cd4c2['length'];){const _0x3ea86a=_0x2cd4c2['charCodeAt'](_0x3c78fa);if(!isNumber$1(_0x3ea86a)&&!isHexadecimalCharacter(_0x3ea86a))return this['addToNumericResult'](_0x2cd4c2,_0x4bf70f,_0x3c78fa,0x10),this['emitNumericEntity'](_0x3ea86a,0x3);_0x3c78fa+=0x1;}return this['addToNumericResult'](_0x2cd4c2,_0x4bf70f,_0x3c78fa,0x10),-0x1;}['stateNumericDecimal'](_0x5558f7,_0x2946d0){const _0xcc7f58=_0x2946d0;for(;_0x2946d0<_0x5558f7['length'];){const _0x3abdf9=_0x5558f7['charCodeAt'](_0x2946d0);if(!isNumber$1(_0x3abdf9))return this['addToNumericResult'](_0x5558f7,_0xcc7f58,_0x2946d0,0xa),this['emitNumericEntity'](_0x3abdf9,0x2);_0x2946d0+=0x1;}return this['addToNumericResult'](_0x5558f7,_0xcc7f58,_0x2946d0,0xa),-0x1;}['emitNumericEntity'](_0x485733,_0x235682){var _0x1afe29;if(this['consumed']<=_0x235682)return null===(_0x1afe29=this['errors'])||void 0x0===_0x1afe29||_0x1afe29['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x485733===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x485733!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0xe56c3c,_0x5b6e01){const {decodeTree:_0x14680b}=this;let _0x42c976=_0x14680b[this['treeIndex']],_0x490552=(_0x42c976&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0x5b6e01<_0xe56c3c['length'];_0x5b6e01++,this['excess']++){const _0x1880a5=_0xe56c3c['charCodeAt'](_0x5b6e01);if(this['treeIndex']=determineBranch(_0x14680b,_0x42c976,this['treeIndex']+Math['max'](0x1,_0x490552),_0x1880a5),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x490552||isEntityInAttributeInvalidEnd(_0x1880a5))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x42c976=_0x14680b[this['treeIndex']],_0x490552=(_0x42c976&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x490552){if(_0x1880a5===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x490552,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x411538;const {result:_0x26da08,decodeTree:_0x21a356}=this,_0x5c65a8=(_0x21a356[_0x26da08]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x26da08,_0x5c65a8,this['consumed']),null===(_0x411538=this['errors'])||void 0x0===_0x411538||_0x411538['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0x4db098,_0xf4c7c5,_0x26ab7a){const {decodeTree:_0x24d261}=this;return this['emitCodePoint'](0x1===_0xf4c7c5?_0x24d261[_0x4db098]&~BinTrieFlags['VALUE_LENGTH']:_0x24d261[_0x4db098+0x1],_0x26ab7a),0x3===_0xf4c7c5&&this['emitCodePoint'](_0x24d261[_0x4db098+0x2],_0x26ab7a),_0x26ab7a;}['end'](){var _0x5237cd;switch(this['state']){case EntityDecoderState['NamedEntity']:return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&this['result']!==this['treeIndex']?0x0:this['emitNotTerminatedNamedEntity']();case EntityDecoderState['NumericDecimal']:return this['emitNumericEntity'](0x0,0x2);case EntityDecoderState['NumericHex']:return this['emitNumericEntity'](0x0,0x3);case EntityDecoderState['NumericStart']:return null===(_0x5237cd=this['errors'])||void 0x0===_0x5237cd||_0x5237cd['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0x29155a,_0x3bb045,_0x4f75d0,_0x27cce0){const _0x222c16=(_0x3bb045&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0x3052e5=_0x3bb045&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x222c16)return 0x0!==_0x3052e5&&_0x27cce0===_0x3052e5?_0x4f75d0:-0x1;if(_0x3052e5){const _0x1f739e=_0x27cce0-_0x3052e5;return _0x1f739e<0x0||_0x1f739e>=_0x222c16?-0x1:_0x29155a[_0x4f75d0+_0x1f739e]-0x1;}let _0x29a20d=_0x4f75d0,_0x37cc78=_0x29a20d+_0x222c16-0x1;for(;_0x29a20d<=_0x37cc78;){const _0x54b987=_0x29a20d+_0x37cc78>>>0x1,_0x598830=_0x29155a[_0x54b987];if(_0x598830<_0x27cce0)_0x29a20d=_0x54b987+0x1;else{if(!(_0x598830>_0x27cce0))return _0x29155a[_0x54b987+_0x222c16];_0x37cc78=_0x54b987-0x1;}}return-0x1;}function isWhitespace(_0x51d696){return _0x51d696===CharCodes['Space']||_0x51d696===CharCodes['NewLine']||_0x51d696===CharCodes['Tab']||_0x51d696===CharCodes['FormFeed']||_0x51d696===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x4ce8cd){return _0x4ce8cd===CharCodes['Slash']||_0x4ce8cd===CharCodes['Gt']||isWhitespace(_0x4ce8cd);}function isASCIIAlpha(_0x5e86f4){return _0x5e86f4>=CharCodes['LowerA']&&_0x5e86f4<=CharCodes['LowerZ']||_0x5e86f4>=CharCodes['UpperA']&&_0x5e86f4<=CharCodes['UpperZ'];}!function(_0x5a7099){_0x5a7099[_0x5a7099['Tab']=0x9]='Tab',_0x5a7099[_0x5a7099['NewLine']=0xa]='NewLine',_0x5a7099[_0x5a7099['FormFeed']=0xc]='FormFeed',_0x5a7099[_0x5a7099['CarriageReturn']=0xd]='CarriageReturn',_0x5a7099[_0x5a7099['Space']=0x20]='Space',_0x5a7099[_0x5a7099['ExclamationMark']=0x21]='ExclamationMark',_0x5a7099[_0x5a7099['Number']=0x23]='Number',_0x5a7099[_0x5a7099['Amp']=0x26]='Amp',_0x5a7099[_0x5a7099['SingleQuote']=0x27]='SingleQuote',_0x5a7099[_0x5a7099['DoubleQuote']=0x22]='DoubleQuote',_0x5a7099[_0x5a7099['Dash']=0x2d]='Dash',_0x5a7099[_0x5a7099['Slash']=0x2f]='Slash',_0x5a7099[_0x5a7099['Zero']=0x30]='Zero',_0x5a7099[_0x5a7099['Nine']=0x39]='Nine',_0x5a7099[_0x5a7099['Semi']=0x3b]='Semi',_0x5a7099[_0x5a7099['Lt']=0x3c]='Lt',_0x5a7099[_0x5a7099['Eq']=0x3d]='Eq',_0x5a7099[_0x5a7099['Gt']=0x3e]='Gt',_0x5a7099[_0x5a7099['Questionmark']=0x3f]='Questionmark',_0x5a7099[_0x5a7099['UpperA']=0x41]='UpperA',_0x5a7099[_0x5a7099['LowerA']=0x61]='LowerA',_0x5a7099[_0x5a7099['UpperF']=0x46]='UpperF',_0x5a7099[_0x5a7099['LowerF']=0x66]='LowerF',_0x5a7099[_0x5a7099['UpperZ']=0x5a]='UpperZ',_0x5a7099[_0x5a7099['LowerZ']=0x7a]='LowerZ',_0x5a7099[_0x5a7099['LowerX']=0x78]='LowerX',_0x5a7099[_0x5a7099['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0x4ddca3){_0x4ddca3[_0x4ddca3['Text']=0x1]='Text',_0x4ddca3[_0x4ddca3['BeforeTagName']=0x2]='BeforeTagName',_0x4ddca3[_0x4ddca3['InTagName']=0x3]='InTagName',_0x4ddca3[_0x4ddca3['InSelfClosingTag']=0x4]='InSelfClosingTag',_0x4ddca3[_0x4ddca3['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0x4ddca3[_0x4ddca3['InClosingTagName']=0x6]='InClosingTagName',_0x4ddca3[_0x4ddca3['AfterClosingTagName']=0x7]='AfterClosingTagName',_0x4ddca3[_0x4ddca3['BeforeAttributeName']=0x8]='BeforeAttributeName',_0x4ddca3[_0x4ddca3['InAttributeName']=0x9]='InAttributeName',_0x4ddca3[_0x4ddca3['AfterAttributeName']=0xa]='AfterAttributeName',_0x4ddca3[_0x4ddca3['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0x4ddca3[_0x4ddca3['InAttributeValueDq']=0xc]='InAttributeValueDq',_0x4ddca3[_0x4ddca3['InAttributeValueSq']=0xd]='InAttributeValueSq',_0x4ddca3[_0x4ddca3['InAttributeValueNq']=0xe]='InAttributeValueNq',_0x4ddca3[_0x4ddca3['BeforeDeclaration']=0xf]='BeforeDeclaration',_0x4ddca3[_0x4ddca3['InDeclaration']=0x10]='InDeclaration',_0x4ddca3[_0x4ddca3['InProcessingInstruction']=0x11]='InProcessingInstruction',_0x4ddca3[_0x4ddca3['BeforeComment']=0x12]='BeforeComment',_0x4ddca3[_0x4ddca3['CDATASequence']=0x13]='CDATASequence',_0x4ddca3[_0x4ddca3['InSpecialComment']=0x14]='InSpecialComment',_0x4ddca3[_0x4ddca3['InCommentLike']=0x15]='InCommentLike',_0x4ddca3[_0x4ddca3['BeforeSpecialS']=0x16]='BeforeSpecialS',_0x4ddca3[_0x4ddca3['BeforeSpecialT']=0x17]='BeforeSpecialT',_0x4ddca3[_0x4ddca3['SpecialStartSequence']=0x18]='SpecialStartSequence',_0x4ddca3[_0x4ddca3['InSpecialTag']=0x19]='InSpecialTag',_0x4ddca3[_0x4ddca3['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x475909){_0x475909[_0x475909['NoValue']=0x0]='NoValue',_0x475909[_0x475909['Unquoted']=0x1]='Unquoted',_0x475909[_0x475909['Single']=0x2]='Single',_0x475909[_0x475909['Double']=0x3]='Double';}(QuoteType||(QuoteType={}));const Sequences={'Cdata':new Uint8Array([0x43,0x44,0x41,0x54,0x41,0x5b]),'CdataEnd':new Uint8Array([0x5d,0x5d,0x3e]),'CommentEnd':new Uint8Array([0x2d,0x2d,0x3e]),'ScriptEnd':new Uint8Array([0x3c,0x2f,0x73,0x63,0x72,0x69,0x70,0x74]),'StyleEnd':new Uint8Array([0x3c,0x2f,0x73,0x74,0x79,0x6c,0x65]),'TitleEnd':new Uint8Array([0x3c,0x2f,0x74,0x69,0x74,0x6c,0x65]),'TextareaEnd':new Uint8Array([0x3c,0x2f,0x74,0x65,0x78,0x74,0x61,0x72,0x65,0x61]),'XmpEnd':new Uint8Array([0x3c,0x2f,0x78,0x6d,0x70])};class Tokenizer{constructor({xmlMode:_0x4ed823=!0x1,decodeEntities:_0x2f7398=!0x0},_0x3ea285){this['cbs']=_0x3ea285,this['state']=State['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['entityStart']=0x0,this['baseState']=State['Text'],this['isSpecial']=!0x1,this['running']=!0x0,this['offset']=0x0,this['currentSequence']=void 0x0,this['sequenceIndex']=0x0,this['xmlMode']=_0x4ed823,this['decodeEntities']=_0x2f7398,this['entityDecoder']=new EntityDecoder(_0x4ed823?xmlDecodeTree:htmlDecodeTree,(_0x2417d6,_0x4c2dbb)=>this['emitCodePoint'](_0x2417d6,_0x4c2dbb));}['reset'](){this['state']=State['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['baseState']=State['Text'],this['currentSequence']=void 0x0,this['running']=!0x0,this['offset']=0x0;}['write'](_0x47d00d){this['offset']+=this['buffer']['length'],this['buffer']=_0x47d00d,this['parse']();}['end'](){this['running']&&this['finish']();}['pause'](){this['running']=!0x1;}['resume'](){this['running']=!0x0,this['index']<this['buffer']['length']+this['offset']&&this['parse']();}['stateText'](_0x3937c9){_0x3937c9===CharCodes['Lt']||!this['decodeEntities']&&this['fastForwardTo'](CharCodes['Lt'])?(this['index']>this['sectionStart']&&this['cbs']['ontext'](this['sectionStart'],this['index']),this['state']=State['BeforeTagName'],this['sectionStart']=this['index']):this['decodeEntities']&&_0x3937c9===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x2c7865){const _0x5694fc=this['sequenceIndex']===this['currentSequence']['length'];if(_0x5694fc?isEndOfTagSection(_0x2c7865):(0x20|_0x2c7865)===this['currentSequence'][this['sequenceIndex']]){if(!_0x5694fc)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x2c7865);}['stateInSpecialTag'](_0x5a8a39){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x5a8a39===CharCodes['Gt']||isWhitespace(_0x5a8a39)){const _0x40a608=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x40a608){const _0x49ca10=this['index'];this['index']=_0x40a608,this['cbs']['ontext'](this['sectionStart'],_0x40a608),this['index']=_0x49ca10;}return this['isSpecial']=!0x1,this['sectionStart']=_0x40a608+0x2,void this['stateInClosingTagName'](_0x5a8a39);}this['sequenceIndex']=0x0;}(0x20|_0x5a8a39)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x5a8a39===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x5a8a39===CharCodes['Lt']);}['stateCDATASequence'](_0x54097f){_0x54097f===Sequences['Cdata'][this['sequenceIndex']]?++this['sequenceIndex']===Sequences['Cdata']['length']&&(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CdataEnd'],this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1):(this['sequenceIndex']=0x0,this['state']=State['InDeclaration'],this['stateInDeclaration'](_0x54097f));}['fastForwardTo'](_0x3f9f11){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x3f9f11)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x5048a5){_0x5048a5===this['currentSequence'][this['sequenceIndex']]?++this['sequenceIndex']===this['currentSequence']['length']&&(this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],this['index'],0x2):this['cbs']['oncomment'](this['sectionStart'],this['index'],0x2),this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1,this['state']=State['Text']):0x0===this['sequenceIndex']?this['fastForwardTo'](this['currentSequence'][0x0])&&(this['sequenceIndex']=0x1):_0x5048a5!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0x14dba2){return this['xmlMode']?!isEndOfTagSection(_0x14dba2):isASCIIAlpha(_0x14dba2);}['startSpecial'](_0x4c358b,_0x318b66){this['isSpecial']=!0x0,this['currentSequence']=_0x4c358b,this['sequenceIndex']=_0x318b66,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x23d6af){if(_0x23d6af===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x23d6af===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x23d6af)){const _0x5830a0=0x20|_0x23d6af;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x5830a0===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x5830a0===Sequences['TitleEnd'][0x2]||_0x5830a0===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x23d6af===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x23d6af));}}}['stateInTagName'](_0x29bfd8){isEndOfTagSection(_0x29bfd8)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x29bfd8));}['stateBeforeClosingTagName'](_0x2484a5){isWhitespace(_0x2484a5)||(_0x2484a5===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x2484a5)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0x21e222){(_0x21e222===CharCodes['Gt']||isWhitespace(_0x21e222))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x21e222));}['stateAfterClosingTagName'](_0x4f9748){(_0x4f9748===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x47fc3e){_0x47fc3e===CharCodes['Gt']?(this['cbs']['onopentagend'](this['index']),this['isSpecial']?(this['state']=State['InSpecialTag'],this['sequenceIndex']=0x0):this['state']=State['Text'],this['sectionStart']=this['index']+0x1):_0x47fc3e===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x47fc3e)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x247757){_0x247757===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x247757)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x247757));}['stateInAttributeName'](_0x1d81de){(_0x1d81de===CharCodes['Eq']||isEndOfTagSection(_0x1d81de))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0x1d81de));}['stateAfterAttributeName'](_0x2b17c0){_0x2b17c0===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x2b17c0===CharCodes['Slash']||_0x2b17c0===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x2b17c0)):isWhitespace(_0x2b17c0)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0x4b2b40){_0x4b2b40===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x4b2b40===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0x4b2b40)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x4b2b40));}['handleInAttributeValue'](_0x4cf58d,_0x264bb6){_0x4cf58d===_0x264bb6||!this['decodeEntities']&&this['fastForwardTo'](_0x264bb6)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x264bb6===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x4cf58d===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0xd0eb75){this['handleInAttributeValue'](_0xd0eb75,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x265bdc){this['handleInAttributeValue'](_0x265bdc,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x2761a0){isWhitespace(_0x2761a0)||_0x2761a0===CharCodes['Gt']?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](QuoteType['Unquoted'],this['index']),this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x2761a0)):this['decodeEntities']&&_0x2761a0===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0xac2871){_0xac2871===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0xac2871===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0x2c838b){(_0x2c838b===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0x5e5d2f){(_0x5e5d2f===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x511eed){_0x511eed===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x2301d5){(_0x2301d5===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0x1039e3){const _0x49b30b=0x20|_0x1039e3;_0x49b30b===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x49b30b===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0x1039e3));}['stateBeforeSpecialT'](_0x4a8ff1){switch(0x20|_0x4a8ff1){case Sequences['TitleEnd'][0x3]:this['startSpecial'](Sequences['TitleEnd'],0x4);break;case Sequences['TextareaEnd'][0x3]:this['startSpecial'](Sequences['TextareaEnd'],0x4);break;case Sequences['XmpEnd'][0x3]:this['startSpecial'](Sequences['XmpEnd'],0x4);break;default:this['state']=State['InTagName'],this['stateInTagName'](_0x4a8ff1);}}['startEntity'](){this['baseState']=this['state'],this['state']=State['InEntity'],this['entityStart']=this['index'],this['entityDecoder']['startEntity'](this['xmlMode']?DecodingMode['Strict']:this['baseState']===State['Text']||this['baseState']===State['InSpecialTag']?DecodingMode['Legacy']:DecodingMode['Attribute']);}['stateInEntity'](){const _0x22d663=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x22d663>=0x0?(this['state']=this['baseState'],0x0===_0x22d663&&(this['index']=this['entityStart'])):this['index']=this['offset']+this['buffer']['length']-0x1;}['cleanup'](){this['running']&&this['sectionStart']!==this['index']&&(this['state']===State['Text']||this['state']===State['InSpecialTag']&&0x0===this['sequenceIndex']?(this['cbs']['ontext'](this['sectionStart'],this['index']),this['sectionStart']=this['index']):this['state']!==State['InAttributeValueDq']&&this['state']!==State['InAttributeValueSq']&&this['state']!==State['InAttributeValueNq']||(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=this['index']));}['shouldContinue'](){return this['index']<this['buffer']['length']+this['offset']&&this['running'];}['parse'](){for(;this['shouldContinue']();){const _0x2f07cf=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0x2f07cf);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x2f07cf);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0x2f07cf);break;case State['CDATASequence']:this['stateCDATASequence'](_0x2f07cf);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x2f07cf);break;case State['InAttributeName']:this['stateInAttributeName'](_0x2f07cf);break;case State['InCommentLike']:this['stateInCommentLike'](_0x2f07cf);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0x2f07cf);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x2f07cf);break;case State['InTagName']:this['stateInTagName'](_0x2f07cf);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0x2f07cf);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0x2f07cf);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0x2f07cf);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x2f07cf);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x2f07cf);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x2f07cf);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x2f07cf);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x2f07cf);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x2f07cf);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x2f07cf);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x2f07cf);break;case State['InDeclaration']:this['stateInDeclaration'](_0x2f07cf);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x2f07cf);break;case State['BeforeComment']:this['stateBeforeComment'](_0x2f07cf);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x2f07cf);break;case State['InEntity']:this['stateInEntity']();}this['index']++;}this['cleanup']();}['finish'](){this['state']===State['InEntity']&&(this['entityDecoder']['end'](),this['state']=this['baseState']),this['handleTrailingData'](),this['cbs']['onend']();}['handleTrailingData'](){const _0x5e54ca=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x5e54ca||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x5e54ca,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x5e54ca,0x0):this['state']===State['InTagName']||this['state']===State['BeforeAttributeName']||this['state']===State['BeforeAttributeValue']||this['state']===State['AfterAttributeName']||this['state']===State['InAttributeName']||this['state']===State['InAttributeValueSq']||this['state']===State['InAttributeValueDq']||this['state']===State['InAttributeValueNq']||this['state']===State['InClosingTagName']||this['cbs']['ontext'](this['sectionStart'],_0x5e54ca));}['emitCodePoint'](_0x3382f1,_0x5ea227){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x5ea227,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0x3382f1)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0x5ea227,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0x3382f1,this['sectionStart']));}}const formTags=new Set(['input','option','optgroup','select','button','datalist','textarea']),pTag=new Set(['p']),tableSectionTags=new Set(['thead','tbody']),ddtTags=new Set(['dd','dt']),rtpTags=new Set(['rt','rp']),openImpliesClose=new Map([['tr',new Set(['tr','th','td'])],['th',new Set(['th'])],['td',new Set(['thead','th','td'])],['body',new Set(['head','link','script'])],['li',new Set(['li'])],['p',pTag],['h1',pTag],['h2',pTag],['h3',pTag],['h4',pTag],['h5',pTag],['h6',pTag],['select',formTags],['input',formTags],['output',formTags],['button',formTags],['datalist',formTags],['textarea',formTags],['option',new Set(['option'])],['optgroup',new Set(['optgroup','option'])],['dd',ddtTags],['dt',ddtTags],['address',pTag],['article',pTag],['aside',pTag],['blockquote',pTag],['details',pTag],['div',pTag],['dl',pTag],['fieldset',pTag],['figcaption',pTag],['figure',pTag],['footer',pTag],['form',pTag],['header',pTag],['hr',pTag],['main',pTag],['nav',pTag],['ol',pTag],['pre',pTag],['section',pTag],['table',pTag],['ul',pTag],['rt',rtpTags],['rp',rtpTags],['tbody',tableSectionTags],['tfoot',tableSectionTags]]),voidElements=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']),foreignContextElements=new Set(['math','svg']),htmlIntegrationElements=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignobject','desc','title']),reNameEnd=/\s|\//;let Parser$1=class{constructor(_0x31064c,_0x57545e={}){var _0x25af73,_0x2588bd,_0x3b1aeb,_0x1a6af3,_0x27880e,_0x161843;this['options']=_0x57545e,this['startIndex']=0x0,this['endIndex']=0x0,this['openTagStart']=0x0,this['tagname']='',this['attribname']='',this['attribvalue']='',this['attribs']=null,this['stack']=[],this['buffers']=[],this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1,this['cbs']=null!=_0x31064c?_0x31064c:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x25af73=_0x57545e['lowerCaseTags'])&&void 0x0!==_0x25af73?_0x25af73:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x2588bd=_0x57545e['lowerCaseAttributeNames'])&&void 0x0!==_0x2588bd?_0x2588bd:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x3b1aeb=_0x57545e['recognizeSelfClosing'])&&void 0x0!==_0x3b1aeb?_0x3b1aeb:!this['htmlMode'],this['tokenizer']=new(null!==(_0x1a6af3=_0x57545e['Tokenizer'])&&void 0x0!==_0x1a6af3?_0x1a6af3:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x161843=(_0x27880e=this['cbs'])['onparserinit'])||void 0x0===_0x161843||_0x161843['call'](_0x27880e,this);}['ontext'](_0xa91b87,_0x1340da){var _0x3dd516,_0x344cb3;const _0x2eec66=this['getSlice'](_0xa91b87,_0x1340da);this['endIndex']=_0x1340da-0x1,null===(_0x344cb3=(_0x3dd516=this['cbs'])['ontext'])||void 0x0===_0x344cb3||_0x344cb3['call'](_0x3dd516,_0x2eec66),this['startIndex']=_0x1340da;}['ontextentity'](_0x5924ad,_0x2a04f1){var _0x305bdc,_0x20734f;this['endIndex']=_0x2a04f1-0x1,null===(_0x20734f=(_0x305bdc=this['cbs'])['ontext'])||void 0x0===_0x20734f||_0x20734f['call'](_0x305bdc,fromCodePoint$1(_0x5924ad)),this['startIndex']=_0x2a04f1;}['isVoidElement'](_0x30afda){return this['htmlMode']&&voidElements['has'](_0x30afda);}['onopentagname'](_0x150b38,_0x217458){this['endIndex']=_0x217458;let _0xc80045=this['getSlice'](_0x150b38,_0x217458);this['lowerCaseTagNames']&&(_0xc80045=_0xc80045['toLowerCase']()),this['emitOpenTag'](_0xc80045);}['emitOpenTag'](_0x39d3bc){var _0x54a2b5,_0xad4ada,_0x2ce5d0,_0x310c6b;this['openTagStart']=this['startIndex'],this['tagname']=_0x39d3bc;const _0x84e280=this['htmlMode']&&openImpliesClose['get'](_0x39d3bc);if(_0x84e280)for(;this['stack']['length']>0x0&&_0x84e280['has'](this['stack'][0x0]);){const _0x526c02=this['stack']['shift']();null===(_0xad4ada=(_0x54a2b5=this['cbs'])['onclosetag'])||void 0x0===_0xad4ada||_0xad4ada['call'](_0x54a2b5,_0x526c02,!0x0);}this['isVoidElement'](_0x39d3bc)||(this['stack']['unshift'](_0x39d3bc),this['htmlMode']&&(foreignContextElements['has'](_0x39d3bc)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x39d3bc)&&this['foreignContext']['unshift'](!0x1))),null===(_0x310c6b=(_0x2ce5d0=this['cbs'])['onopentagname'])||void 0x0===_0x310c6b||_0x310c6b['call'](_0x2ce5d0,_0x39d3bc),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0xb53696){var _0x32ff09,_0x43d893;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x43d893=(_0x32ff09=this['cbs'])['onopentag'])||void 0x0===_0x43d893||_0x43d893['call'](_0x32ff09,this['tagname'],this['attribs'],_0xb53696),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x135e42){this['endIndex']=_0x135e42,this['endOpenTag'](!0x1),this['startIndex']=_0x135e42+0x1;}['onclosetag'](_0x1d93cc,_0x1fdac8){var _0x2f2192,_0xdc6a82,_0x463b3f,_0x34f61,_0x4d8451,_0x573834,_0x50e420,_0x22158e;this['endIndex']=_0x1fdac8;let _0x1b4925=this['getSlice'](_0x1d93cc,_0x1fdac8);if(this['lowerCaseTagNames']&&(_0x1b4925=_0x1b4925['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0x1b4925)||htmlIntegrationElements['has'](_0x1b4925))&&this['foreignContext']['shift'](),this['isVoidElement'](_0x1b4925))this['htmlMode']&&'br'===_0x1b4925&&(null===(_0x34f61=(_0x463b3f=this['cbs'])['onopentagname'])||void 0x0===_0x34f61||_0x34f61['call'](_0x463b3f,'br'),null===(_0x573834=(_0x4d8451=this['cbs'])['onopentag'])||void 0x0===_0x573834||_0x573834['call'](_0x4d8451,'br',{},!0x0),null===(_0x22158e=(_0x50e420=this['cbs'])['onclosetag'])||void 0x0===_0x22158e||_0x22158e['call'](_0x50e420,'br',!0x1));else{const _0x1b4379=this['stack']['indexOf'](_0x1b4925);if(-0x1!==_0x1b4379)for(let _0x109d25=0x0;_0x109d25<=_0x1b4379;_0x109d25++){const _0x2685e3=this['stack']['shift']();null===(_0xdc6a82=(_0x2f2192=this['cbs'])['onclosetag'])||void 0x0===_0xdc6a82||_0xdc6a82['call'](_0x2f2192,_0x2685e3,_0x109d25!==_0x1b4379);}else this['htmlMode']&&'p'===_0x1b4925&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x1fdac8+0x1;}['onselfclosingtag'](_0x7f97ef){this['endIndex']=_0x7f97ef,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x7f97ef+0x1):this['onopentagend'](_0x7f97ef);}['closeCurrentTag'](_0x55c526){var _0x36caea,_0x5b7169;const _0x443de7=this['tagname'];this['endOpenTag'](_0x55c526),this['stack'][0x0]===_0x443de7&&(null===(_0x5b7169=(_0x36caea=this['cbs'])['onclosetag'])||void 0x0===_0x5b7169||_0x5b7169['call'](_0x36caea,_0x443de7,!_0x55c526),this['stack']['shift']());}['onattribname'](_0x1a42a7,_0x2cc92d){this['startIndex']=_0x1a42a7;const _0x588f9f=this['getSlice'](_0x1a42a7,_0x2cc92d);this['attribname']=this['lowerCaseAttributeNames']?_0x588f9f['toLowerCase']():_0x588f9f;}['onattribdata'](_0x38a831,_0x5b0ced){this['attribvalue']+=this['getSlice'](_0x38a831,_0x5b0ced);}['onattribentity'](_0x11710d){this['attribvalue']+=fromCodePoint$1(_0x11710d);}['onattribend'](_0x336229,_0x1276a2){var _0x2cd323,_0x194fe8;this['endIndex']=_0x1276a2,null===(_0x194fe8=(_0x2cd323=this['cbs'])['onattribute'])||void 0x0===_0x194fe8||_0x194fe8['call'](_0x2cd323,this['attribname'],this['attribvalue'],_0x336229===QuoteType['Double']?'\x22':_0x336229===QuoteType['Single']?'\x27':_0x336229===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0x18aa3b){const _0x346e46=_0x18aa3b['search'](reNameEnd);let _0x2fb2cb=_0x346e46<0x0?_0x18aa3b:_0x18aa3b['substr'](0x0,_0x346e46);return this['lowerCaseTagNames']&&(_0x2fb2cb=_0x2fb2cb['toLowerCase']()),_0x2fb2cb;}['ondeclaration'](_0x388069,_0xaaf445){this['endIndex']=_0xaaf445;const _0x4db256=this['getSlice'](_0x388069,_0xaaf445);if(this['cbs']['onprocessinginstruction']){const _0x54acb6=this['getInstructionName'](_0x4db256);this['cbs']['onprocessinginstruction']('!'+_0x54acb6,'!'+_0x4db256);}this['startIndex']=_0xaaf445+0x1;}['onprocessinginstruction'](_0x59d2cd,_0x321c2d){this['endIndex']=_0x321c2d;const _0x3130db=this['getSlice'](_0x59d2cd,_0x321c2d);if(this['cbs']['onprocessinginstruction']){const _0x2219bc=this['getInstructionName'](_0x3130db);this['cbs']['onprocessinginstruction']('?'+_0x2219bc,'?'+_0x3130db);}this['startIndex']=_0x321c2d+0x1;}['oncomment'](_0x2189a3,_0x1bc25e,_0x1798d2){var _0x7aee6a,_0x534ce8,_0x578807,_0x2292d3;this['endIndex']=_0x1bc25e,null===(_0x534ce8=(_0x7aee6a=this['cbs'])['oncomment'])||void 0x0===_0x534ce8||_0x534ce8['call'](_0x7aee6a,this['getSlice'](_0x2189a3,_0x1bc25e-_0x1798d2)),null===(_0x2292d3=(_0x578807=this['cbs'])['oncommentend'])||void 0x0===_0x2292d3||_0x2292d3['call'](_0x578807),this['startIndex']=_0x1bc25e+0x1;}['oncdata'](_0x5bdb17,_0x16be7b,_0x272e51){var _0x3db10e,_0x15a722,_0x130b4f,_0x52e4a3,_0x4d1172,_0xc3ddaf,_0x55039a,_0x3d37e2,_0x21f26a,_0x52b316;this['endIndex']=_0x16be7b;const _0xf2a5d9=this['getSlice'](_0x5bdb17,_0x16be7b-_0x272e51);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x15a722=(_0x3db10e=this['cbs'])['oncdatastart'])||void 0x0===_0x15a722||_0x15a722['call'](_0x3db10e),null===(_0x52e4a3=(_0x130b4f=this['cbs'])['ontext'])||void 0x0===_0x52e4a3||_0x52e4a3['call'](_0x130b4f,_0xf2a5d9),null===(_0xc3ddaf=(_0x4d1172=this['cbs'])['oncdataend'])||void 0x0===_0xc3ddaf||_0xc3ddaf['call'](_0x4d1172)):(null===(_0x3d37e2=(_0x55039a=this['cbs'])['oncomment'])||void 0x0===_0x3d37e2||_0x3d37e2['call'](_0x55039a,'[CDATA['+_0xf2a5d9+']]'),null===(_0x52b316=(_0x21f26a=this['cbs'])['oncommentend'])||void 0x0===_0x52b316||_0x52b316['call'](_0x21f26a)),this['startIndex']=_0x16be7b+0x1;}['onend'](){var _0x289cb7,_0x4087f8;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x5e310a=0x0;_0x5e310a<this['stack']['length'];_0x5e310a++)this['cbs']['onclosetag'](this['stack'][_0x5e310a],!0x0);}null===(_0x4087f8=(_0x289cb7=this['cbs'])['onend'])||void 0x0===_0x4087f8||_0x4087f8['call'](_0x289cb7);}['reset'](){var _0x326fc1,_0x4d0676,_0x882660,_0x148b11;null===(_0x4d0676=(_0x326fc1=this['cbs'])['onreset'])||void 0x0===_0x4d0676||_0x4d0676['call'](_0x326fc1),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x148b11=(_0x882660=this['cbs'])['onparserinit'])||void 0x0===_0x148b11||_0x148b11['call'](_0x882660,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0x50b594){this['reset'](),this['end'](_0x50b594);}['getSlice'](_0x1800b6,_0x60f51b){for(;_0x1800b6-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x328eed=this['buffers'][0x0]['slice'](_0x1800b6-this['bufferOffset'],_0x60f51b-this['bufferOffset']);for(;_0x60f51b-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x328eed+=this['buffers'][0x0]['slice'](0x0,_0x60f51b-this['bufferOffset']);return _0x328eed;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x43413b){var _0x4c3485,_0x550e8f;this['ended']?null===(_0x550e8f=(_0x4c3485=this['cbs'])['onerror'])||void 0x0===_0x550e8f||_0x550e8f['call'](_0x4c3485,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x43413b),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x43413b),this['writeIndex']++));}['end'](_0x38308b){var _0x42a223,_0x256148;this['ended']?null===(_0x256148=(_0x42a223=this['cbs'])['onerror'])||void 0x0===_0x256148||_0x256148['call'](_0x42a223,new Error('.end()\x20after\x20done!')):(_0x38308b&&this['write'](_0x38308b),this['ended']=!0x0,this['tokenizer']['end']());}['pause'](){this['tokenizer']['pause']();}['resume'](){for(this['tokenizer']['resume']();this['tokenizer']['running']&&this['writeIndex']<this['buffers']['length'];)this['tokenizer']['write'](this['buffers'][this['writeIndex']++]);this['ended']&&this['tokenizer']['end']();}['parseChunk'](_0x544fb5){this['write'](_0x544fb5);}['done'](_0x1d8044){this['end'](_0x1d8044);}};var ElementType;function isTag$1(_0x510720){return _0x510720['type']===ElementType['Tag']||_0x510720['type']===ElementType['Script']||_0x510720['type']===ElementType['Style'];}!function(_0x12678b){_0x12678b['Root']='root',_0x12678b['Text']='text',_0x12678b['Directive']='directive',_0x12678b['Comment']='comment',_0x12678b['Script']='script',_0x12678b['Style']='style',_0x12678b['Tag']='tag',_0x12678b['CDATA']='cdata',_0x12678b['Doctype']='doctype';}(ElementType||(ElementType={}));const Root=ElementType['Root'],Text$3=ElementType['Text'],Directive=ElementType['Directive'],Comment$3=ElementType['Comment'],Script=ElementType['Script'],Style=ElementType['Style'],Tag$1=ElementType['Tag'],CDATA$1=ElementType['CDATA'],Doctype=ElementType['Doctype'];let Node$1=class{constructor(){this['parent']=null,this['prev']=null,this['next']=null,this['startIndex']=null,this['endIndex']=null;}get['parentNode'](){return this['parent'];}set['parentNode'](_0x5bf9fc){this['parent']=_0x5bf9fc;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x3e5f75){this['prev']=_0x3e5f75;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x3ae492){this['next']=_0x3ae492;}['cloneNode'](_0x23eb7c=!0x1){return cloneNode(this,_0x23eb7c);}};class DataNode extends Node$1{constructor(_0x84cd6d){super(),this['data']=_0x84cd6d;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x326752){this['data']=_0x326752;}}let Text$2=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Text'];}get['nodeType'](){return 0x3;}},Comment$2=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Comment'];}get['nodeType'](){return 0x8;}};class ProcessingInstruction extends DataNode{constructor(_0x4dd7c5,_0x22e158){super(_0x22e158),this['name']=_0x4dd7c5,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0x19db29){super(),this['children']=_0x19db29;}get['firstChild'](){var _0x4470dc;return null!==(_0x4470dc=this['children'][0x0])&&void 0x0!==_0x4470dc?_0x4470dc:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x4bf0a5){this['children']=_0x4bf0a5;}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['CDATA'];}get['nodeType'](){return 0x4;}}let Document$1=class extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['Root'];}get['nodeType'](){return 0x9;}},Element$3=class extends NodeWithChildren{constructor(_0x1b0135,_0x3c0e06,_0x315851=[],_0x2c7e56='script'===_0x1b0135?ElementType['Script']:'style'===_0x1b0135?ElementType['Style']:ElementType['Tag']){super(_0x315851),this['name']=_0x1b0135,this['attribs']=_0x3c0e06,this['type']=_0x2c7e56;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x7dcfc7){this['name']=_0x7dcfc7;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x210457=>{var _0x1fd3f0,_0x32abd5;return{'name':_0x210457,'value':this['attribs'][_0x210457],'namespace':null===(_0x1fd3f0=this['x-attribsNamespace'])||void 0x0===_0x1fd3f0?void 0x0:_0x1fd3f0[_0x210457],'prefix':null===(_0x32abd5=this['x-attribsPrefix'])||void 0x0===_0x32abd5?void 0x0:_0x32abd5[_0x210457]};});}};function isTag(_0x1654ac){return isTag$1(_0x1654ac);}function isCDATA(_0x28a8d5){return _0x28a8d5['type']===ElementType['CDATA'];}function isText$1(_0x298f26){return _0x298f26['type']===ElementType['Text'];}function isComment(_0xebd424){return _0xebd424['type']===ElementType['Comment'];}function isDirective(_0x18f201){return _0x18f201['type']===ElementType['Directive'];}function isDocument(_0x5df6ec){return _0x5df6ec['type']===ElementType['Root'];}function hasChildren(_0x5bdae2){return Object['prototype']['hasOwnProperty']['call'](_0x5bdae2,'children');}function cloneNode(_0x578694,_0x26bc6b=!0x1){let _0x47b815;if(isText$1(_0x578694))_0x47b815=new Text$2(_0x578694['data']);else{if(isComment(_0x578694))_0x47b815=new Comment$2(_0x578694['data']);else{if(isTag(_0x578694)){const _0x459764=_0x26bc6b?cloneChildren(_0x578694['children']):[],_0x1f175c=new Element$3(_0x578694['name'],{..._0x578694['attribs']},_0x459764);_0x459764['forEach'](_0x18bf11=>_0x18bf11['parent']=_0x1f175c),null!=_0x578694['namespace']&&(_0x1f175c['namespace']=_0x578694['namespace']),_0x578694['x-attribsNamespace']&&(_0x1f175c['x-attribsNamespace']={..._0x578694['x-attribsNamespace']}),_0x578694['x-attribsPrefix']&&(_0x1f175c['x-attribsPrefix']={..._0x578694['x-attribsPrefix']}),_0x47b815=_0x1f175c;}else{if(isCDATA(_0x578694)){const _0x22053a=_0x26bc6b?cloneChildren(_0x578694['children']):[],_0x450b47=new CDATA(_0x22053a);_0x22053a['forEach'](_0x32cab3=>_0x32cab3['parent']=_0x450b47),_0x47b815=_0x450b47;}else{if(isDocument(_0x578694)){const _0x469767=_0x26bc6b?cloneChildren(_0x578694['children']):[],_0x32d220=new Document$1(_0x469767);_0x469767['forEach'](_0x3a9d94=>_0x3a9d94['parent']=_0x32d220),_0x578694['x-mode']&&(_0x32d220['x-mode']=_0x578694['x-mode']),_0x47b815=_0x32d220;}else{if(!isDirective(_0x578694))throw new Error('Not\x20implemented\x20yet:\x20'+_0x578694['type']);{const _0x7d1d87=new ProcessingInstruction(_0x578694['name'],_0x578694['data']);null!=_0x578694['x-name']&&(_0x7d1d87['x-name']=_0x578694['x-name'],_0x7d1d87['x-publicId']=_0x578694['x-publicId'],_0x7d1d87['x-systemId']=_0x578694['x-systemId']),_0x47b815=_0x7d1d87;}}}}}}return _0x47b815['startIndex']=_0x578694['startIndex'],_0x47b815['endIndex']=_0x578694['endIndex'],null!=_0x578694['sourceCodeLocation']&&(_0x47b815['sourceCodeLocation']=_0x578694['sourceCodeLocation']),_0x47b815;}function cloneChildren(_0x7357d6){const _0x5ce0d1=_0x7357d6['map'](_0x287136=>cloneNode(_0x287136,!0x0));for(let _0x1d93d3=0x1;_0x1d93d3<_0x5ce0d1['length'];_0x1d93d3++)_0x5ce0d1[_0x1d93d3]['prev']=_0x5ce0d1[_0x1d93d3-0x1],_0x5ce0d1[_0x1d93d3-0x1]['next']=_0x5ce0d1[_0x1d93d3];return _0x5ce0d1;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x59d04e,_0x2a08a3,_0x395993){this['dom']=[],this['root']=new Document$1(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0x2a08a3&&(_0x395993=_0x2a08a3,_0x2a08a3=defaultOpts),'object'==typeof _0x59d04e&&(_0x2a08a3=_0x59d04e,_0x59d04e=void 0x0),this['callback']=null!=_0x59d04e?_0x59d04e:null,this['options']=null!=_0x2a08a3?_0x2a08a3:defaultOpts,this['elementCB']=null!=_0x395993?_0x395993:null;}['onparserinit'](_0x1931bd){this['parser']=_0x1931bd;}['onreset'](){this['dom']=[],this['root']=new Document$1(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null;}['onend'](){this['done']||(this['done']=!0x0,this['parser']=null,this['handleCallback'](null));}['onerror'](_0x4a5fa2){this['handleCallback'](_0x4a5fa2);}['onclosetag'](){this['lastNode']=null;const _0x72b545=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x72b545['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x72b545);}['onopentag'](_0x129622,_0x16e8e9){const _0x3fbffb=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x5502bf=new Element$3(_0x129622,_0x16e8e9,void 0x0,_0x3fbffb);this['addNode'](_0x5502bf),this['tagStack']['push'](_0x5502bf);}['ontext'](_0x537ed2){const {lastNode:_0x4461d6}=this;if(_0x4461d6&&_0x4461d6['type']===ElementType['Text'])_0x4461d6['data']+=_0x537ed2,this['options']['withEndIndices']&&(_0x4461d6['endIndex']=this['parser']['endIndex']);else{const _0x1a6d92=new Text$2(_0x537ed2);this['addNode'](_0x1a6d92),this['lastNode']=_0x1a6d92;}}['oncomment'](_0x5ef43c){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0x5ef43c);const _0x4b5e5f=new Comment$2(_0x5ef43c);this['addNode'](_0x4b5e5f),this['lastNode']=_0x4b5e5f;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0xf4a5c8=new Text$2(''),_0x392953=new CDATA([_0xf4a5c8]);this['addNode'](_0x392953),_0xf4a5c8['parent']=_0x392953,this['lastNode']=_0xf4a5c8;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x2d8e9f,_0x181795){const _0x1fbbee=new ProcessingInstruction(_0x2d8e9f,_0x181795);this['addNode'](_0x1fbbee);}['handleCallback'](_0x1c60ef){if('function'==typeof this['callback'])this['callback'](_0x1c60ef,this['dom']);else{if(_0x1c60ef)throw _0x1c60ef;}}['addNode'](_0x368d4f){const _0x184762=this['tagStack'][this['tagStack']['length']-0x1],_0x453c6c=_0x184762['children'][_0x184762['children']['length']-0x1];this['options']['withStartIndices']&&(_0x368d4f['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x368d4f['endIndex']=this['parser']['endIndex']),_0x184762['children']['push'](_0x368d4f),_0x453c6c&&(_0x368d4f['prev']=_0x453c6c,_0x453c6c['next']=_0x368d4f),_0x368d4f['parent']=_0x184762,this['lastNode']=null;}}const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0x27,'&apos;'],[0x3c,'&lt;'],[0x3e,'&gt;']]),getCodePoint=null!=String['prototype']['codePointAt']?(_0xbf074a,_0x44f025)=>_0xbf074a['codePointAt'](_0x44f025):(_0x207b6d,_0x51c236)=>0xd800==(0xfc00&_0x207b6d['charCodeAt'](_0x51c236))?0x400*(_0x207b6d['charCodeAt'](_0x51c236)-0xd800)+_0x207b6d['charCodeAt'](_0x51c236+0x1)-0xdc00+0x10000:_0x207b6d['charCodeAt'](_0x51c236);function encodeXML(_0x8a2823){let _0x16f603,_0x51fe6b='',_0xf17cf6=0x0;for(;null!==(_0x16f603=xmlReplacer['exec'](_0x8a2823));){const _0x52515c=_0x16f603['index'],_0x776393=_0x8a2823['charCodeAt'](_0x52515c),_0x1c4bbd=xmlCodeMap['get'](_0x776393);void 0x0!==_0x1c4bbd?(_0x51fe6b+=_0x8a2823['substring'](_0xf17cf6,_0x52515c)+_0x1c4bbd,_0xf17cf6=_0x52515c+0x1):(_0x51fe6b+=_0x8a2823['substring'](_0xf17cf6,_0x52515c)+'&#x'+getCodePoint(_0x8a2823,_0x52515c)['toString'](0x10)+';',_0xf17cf6=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x776393)));}return _0x51fe6b+_0x8a2823['substr'](_0xf17cf6);}function getEscaper(_0x340c4e,_0x2e6268){return function(_0xb3ec9a){let _0x27204f,_0x5b37dc=0x0,_0x175bed='';for(;_0x27204f=_0x340c4e['exec'](_0xb3ec9a);)_0x5b37dc!==_0x27204f['index']&&(_0x175bed+=_0xb3ec9a['substring'](_0x5b37dc,_0x27204f['index'])),_0x175bed+=_0x2e6268['get'](_0x27204f[0x0]['charCodeAt'](0x0)),_0x5b37dc=_0x27204f['index']+0x1;return _0x175bed+_0xb3ec9a['substring'](_0x5b37dc);};}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0xa0,'&nbsp;']])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[0x26,'&amp;'],[0x3c,'&lt;'],[0x3e,'&gt;'],[0xa0,'&nbsp;']])),elementNames=new Map(['altGlyph','altGlyphDef','altGlyphItem','animateColor','animateMotion','animateTransform','clipPath','feBlend','feColorMatrix','feComponentTransfer','feComposite','feConvolveMatrix','feDiffuseLighting','feDisplacementMap','feDistantLight','feDropShadow','feFlood','feFuncA','feFuncB','feFuncG','feFuncR','feGaussianBlur','feImage','feMerge','feMergeNode','feMorphology','feOffset','fePointLight','feSpecularLighting','feSpotLight','feTile','feTurbulence','foreignObject','glyphRef','linearGradient','radialGradient','textPath']['map'](_0x27024f=>[_0x27024f['toLowerCase'](),_0x27024f])),attributeNames=new Map(['definitionURL','attributeName','attributeType','baseFrequency','baseProfile','calcMode','clipPathUnits','diffuseConstant','edgeMode','filterUnits','glyphRef','gradientTransform','gradientUnits','kernelMatrix','kernelUnitLength','keyPoints','keySplines','keyTimes','lengthAdjust','limitingConeAngle','markerHeight','markerUnits','markerWidth','maskContentUnits','maskUnits','numOctaves','pathLength','patternContentUnits','patternTransform','patternUnits','pointsAtX','pointsAtY','pointsAtZ','preserveAlpha','preserveAspectRatio','primitiveUnits','refX','refY','repeatCount','repeatDur','requiredExtensions','requiredFeatures','specularConstant','specularExponent','spreadMethod','startOffset','stdDeviation','stitchTiles','surfaceScale','systemLanguage','tableValues','targetX','targetY','textLength','viewBox','viewTarget','xChannelSelector','yChannelSelector','zoomAndPan']['map'](_0xe14b24=>[_0xe14b24['toLowerCase'](),_0xe14b24])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x434cbf){return _0x434cbf['replace'](/"/g,'&quot;');}function formatAttributes(_0x3e19d7,_0x3f1dcb){var _0x347ddc;if(!_0x3e19d7)return;const _0x3aaded=!0x1===(null!==(_0x347ddc=_0x3f1dcb['encodeEntities'])&&void 0x0!==_0x347ddc?_0x347ddc:_0x3f1dcb['decodeEntities'])?replaceQuotes:_0x3f1dcb['xmlMode']||'utf8'!==_0x3f1dcb['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x3e19d7)['map'](_0x179d5a=>{var _0xc56a3d,_0x3f53eb;const _0x4c5a9a=null!==(_0xc56a3d=_0x3e19d7[_0x179d5a])&&void 0x0!==_0xc56a3d?_0xc56a3d:'';return'foreign'===_0x3f1dcb['xmlMode']&&(_0x179d5a=null!==(_0x3f53eb=attributeNames['get'](_0x179d5a))&&void 0x0!==_0x3f53eb?_0x3f53eb:_0x179d5a),_0x3f1dcb['emptyAttrs']||_0x3f1dcb['xmlMode']||''!==_0x4c5a9a?_0x179d5a+'=\x22'+_0x3aaded(_0x4c5a9a)+'\x22':_0x179d5a;})['join']('\x20');}const singleTag=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']);function render(_0x2d5f5b,_0x3a572b={}){const _0x5279be='length'in _0x2d5f5b?_0x2d5f5b:[_0x2d5f5b];let _0x570179='';for(let _0x4a13e8=0x0;_0x4a13e8<_0x5279be['length'];_0x4a13e8++)_0x570179+=renderNode(_0x5279be[_0x4a13e8],_0x3a572b);return _0x570179;}function renderNode(_0x58e5fb,_0x16978c){switch(_0x58e5fb['type']){case Root:return render(_0x58e5fb['children'],_0x16978c);case Doctype:case Directive:return renderDirective(_0x58e5fb);case Comment$3:return renderComment(_0x58e5fb);case CDATA$1:return renderCdata(_0x58e5fb);case Script:case Style:case Tag$1:return renderTag(_0x58e5fb,_0x16978c);case Text$3:return renderText(_0x58e5fb,_0x16978c);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x3432a1,_0x26ae0e){var _0x130935;'foreign'===_0x26ae0e['xmlMode']&&(_0x3432a1['name']=null!==(_0x130935=elementNames['get'](_0x3432a1['name']))&&void 0x0!==_0x130935?_0x130935:_0x3432a1['name'],_0x3432a1['parent']&&foreignModeIntegrationPoints['has'](_0x3432a1['parent']['name'])&&(_0x26ae0e={..._0x26ae0e,'xmlMode':!0x1})),!_0x26ae0e['xmlMode']&&foreignElements['has'](_0x3432a1['name'])&&(_0x26ae0e={..._0x26ae0e,'xmlMode':'foreign'});let _0x3d7fe1='<'+_0x3432a1['name'];const _0x1f8eb1=formatAttributes(_0x3432a1['attribs'],_0x26ae0e);return _0x1f8eb1&&(_0x3d7fe1+='\x20'+_0x1f8eb1),0x0===_0x3432a1['children']['length']&&(_0x26ae0e['xmlMode']?!0x1!==_0x26ae0e['selfClosingTags']:_0x26ae0e['selfClosingTags']&&singleTag['has'](_0x3432a1['name']))?(_0x26ae0e['xmlMode']||(_0x3d7fe1+='\x20'),_0x3d7fe1+='/>'):(_0x3d7fe1+='>',_0x3432a1['children']['length']>0x0&&(_0x3d7fe1+=render(_0x3432a1['children'],_0x26ae0e)),!_0x26ae0e['xmlMode']&&singleTag['has'](_0x3432a1['name'])||(_0x3d7fe1+='</'+_0x3432a1['name']+'>')),_0x3d7fe1;}function renderDirective(_0x3fa013){return'<'+_0x3fa013['data']+'>';}function renderText(_0x252e5a,_0x45ed27){var _0x52e06a;let _0x2bf265=_0x252e5a['data']||'';return!0x1===(null!==(_0x52e06a=_0x45ed27['encodeEntities'])&&void 0x0!==_0x52e06a?_0x52e06a:_0x45ed27['decodeEntities'])||!_0x45ed27['xmlMode']&&_0x252e5a['parent']&&unencodedElements['has'](_0x252e5a['parent']['name'])||(_0x2bf265=_0x45ed27['xmlMode']||'utf8'!==_0x45ed27['encodeEntities']?encodeXML(_0x2bf265):escapeText(_0x2bf265)),_0x2bf265;}function renderCdata(_0x4aa24f){return'<![CDATA['+_0x4aa24f['children'][0x0]['data']+']]>';}function renderComment(_0x215405){return'<!--'+_0x215405['data']+'-->';}function textContent(_0x30b68e){return Array['isArray'](_0x30b68e)?_0x30b68e['map'](textContent)['join'](''):hasChildren(_0x30b68e)&&!isComment(_0x30b68e)?textContent(_0x30b68e['children']):isText$1(_0x30b68e)?_0x30b68e['data']:'';}function getChildren$1(_0x1b3a32){return hasChildren(_0x1b3a32)?_0x1b3a32['children']:[];}function getParent(_0x49e9b1){return _0x49e9b1['parent']||null;}function removeElement(_0x46c530){if(_0x46c530['prev']&&(_0x46c530['prev']['next']=_0x46c530['next']),_0x46c530['next']&&(_0x46c530['next']['prev']=_0x46c530['prev']),_0x46c530['parent']){const _0x291a32=_0x46c530['parent']['children'],_0x2b56a7=_0x291a32['lastIndexOf'](_0x46c530);_0x2b56a7>=0x0&&_0x291a32['splice'](_0x2b56a7,0x1);}_0x46c530['next']=null,_0x46c530['prev']=null,_0x46c530['parent']=null;}function replaceElement(_0xdb1047,_0x17a051){const _0x5c9bc6=_0x17a051['prev']=_0xdb1047['prev'];_0x5c9bc6&&(_0x5c9bc6['next']=_0x17a051);const _0x2a27ae=_0x17a051['next']=_0xdb1047['next'];_0x2a27ae&&(_0x2a27ae['prev']=_0x17a051);const _0x315b16=_0x17a051['parent']=_0xdb1047['parent'];if(_0x315b16){const _0x30fc3f=_0x315b16['children'];_0x30fc3f[_0x30fc3f['lastIndexOf'](_0xdb1047)]=_0x17a051,_0xdb1047['parent']=null;}}function appendChild(_0x519d13,_0x3b3987){if(removeElement(_0x3b3987),_0x3b3987['next']=null,_0x3b3987['parent']=_0x519d13,_0x519d13['children']['push'](_0x3b3987)>0x1){const _0x101b81=_0x519d13['children'][_0x519d13['children']['length']-0x2];_0x101b81['next']=_0x3b3987,_0x3b3987['prev']=_0x101b81;}else _0x3b3987['prev']=null;}function append(_0x562256,_0x4977e8){removeElement(_0x4977e8);const {parent:_0x34797a}=_0x562256,_0x1501d4=_0x562256['next'];if(_0x4977e8['next']=_0x1501d4,_0x4977e8['prev']=_0x562256,_0x562256['next']=_0x4977e8,_0x4977e8['parent']=_0x34797a,_0x1501d4){if(_0x1501d4['prev']=_0x4977e8,_0x34797a){const _0xe42eda=_0x34797a['children'];_0xe42eda['splice'](_0xe42eda['lastIndexOf'](_0x1501d4),0x0,_0x4977e8);}}else _0x34797a&&_0x34797a['children']['push'](_0x4977e8);}function prependChild(_0x917c26,_0x523990){if(removeElement(_0x523990),_0x523990['parent']=_0x917c26,_0x523990['prev']=null,0x1!==_0x917c26['children']['unshift'](_0x523990)){const _0x48bc1a=_0x917c26['children'][0x1];_0x48bc1a['prev']=_0x523990,_0x523990['next']=_0x48bc1a;}else _0x523990['next']=null;}function prepend(_0x5e242f,_0x4f6c64){removeElement(_0x4f6c64);const {parent:_0x418ea3}=_0x5e242f;if(_0x418ea3){const _0x5c8c04=_0x418ea3['children'];_0x5c8c04['splice'](_0x5c8c04['indexOf'](_0x5e242f),0x0,_0x4f6c64);}_0x5e242f['prev']&&(_0x5e242f['prev']['next']=_0x4f6c64),_0x4f6c64['parent']=_0x418ea3,_0x4f6c64['prev']=_0x5e242f['prev'],_0x4f6c64['next']=_0x5e242f,_0x5e242f['prev']=_0x4f6c64;}function find$1(_0x5b2388,_0x130a1d,_0x297a11,_0x2ddd2b){const _0x34bb7=[],_0x110d7c=[Array['isArray'](_0x130a1d)?_0x130a1d:[_0x130a1d]],_0x149521=[0x0];for(;;){if(_0x149521[0x0]>=_0x110d7c[0x0]['length']){if(0x1===_0x149521['length'])return _0x34bb7;_0x110d7c['shift'](),_0x149521['shift']();continue;}const _0x59e931=_0x110d7c[0x0][_0x149521[0x0]++];if(_0x5b2388(_0x59e931)&&(_0x34bb7['push'](_0x59e931),--_0x2ddd2b<=0x0))return _0x34bb7;hasChildren(_0x59e931)&&_0x59e931['children']['length']>0x0&&(_0x149521['unshift'](0x0),_0x110d7c['unshift'](_0x59e931['children']));}}function findOne(_0x4010cc,_0x57606d,_0x44c14f=!0x0){const _0x2a3059=Array['isArray'](_0x57606d)?_0x57606d:[_0x57606d];for(let _0x444dce=0x0;_0x444dce<_0x2a3059['length'];_0x444dce++){const _0x518176=_0x2a3059[_0x444dce];if(isTag(_0x518176)&&_0x4010cc(_0x518176))return _0x518176;if(_0x44c14f&&hasChildren(_0x518176)&&_0x518176['children']['length']>0x0){const _0x292e34=findOne(_0x4010cc,_0x518176['children'],!0x0);if(_0x292e34)return _0x292e34;}}return null;}function findAll(_0x113a57,_0x45ce4d){const _0x3bc03=[],_0x31ecc8=[Array['isArray'](_0x45ce4d)?_0x45ce4d:[_0x45ce4d]],_0x14761e=[0x0];for(;;){if(_0x14761e[0x0]>=_0x31ecc8[0x0]['length']){if(0x1===_0x31ecc8['length'])return _0x3bc03;_0x31ecc8['shift'](),_0x14761e['shift']();continue;}const _0x33c32d=_0x31ecc8[0x0][_0x14761e[0x0]++];isTag(_0x33c32d)&&_0x113a57(_0x33c32d)&&_0x3bc03['push'](_0x33c32d),hasChildren(_0x33c32d)&&_0x33c32d['children']['length']>0x0&&(_0x14761e['unshift'](0x0),_0x31ecc8['unshift'](_0x33c32d['children']));}}function parseDocument(_0xd36763,_0x74de79){const _0x35a149=new DomHandler(void 0x0,_0x74de79);return new Parser$1(_0x35a149,_0x74de79)['end'](_0xd36763),_0x35a149['root'];}function parse$2(_0x53b032){return parseDocument(_0x53b032);}function serialize$1(_0x3f1bf4){return render(_0x3f1bf4);}function findByAttribute(_0x2e8a0a,_0x592870,_0x14b3d8){const _0x38cd24=null!==_0x592870?_0x30cf8a=>_0x30cf8a['attribs'][_0x2e8a0a]===_0x592870:_0x21ff0=>Boolean(_0x21ff0['attribs'][_0x2e8a0a]);return findOne(_0x1d5561=>isTag(_0x1d5561)&&_0x38cd24(_0x1d5561),_0x14b3d8);}function findAllByAttribute(_0x30cf3f,_0x592767,_0x2e247b){const _0x14ad97=null!==_0x592767?_0x59c804=>_0x59c804['attribs'][_0x30cf3f]===_0x592767:_0x138152=>Boolean(_0x138152['attribs'][_0x30cf3f]);return findAll(_0x553a0e=>isTag(_0x553a0e)&&_0x14ad97(_0x553a0e),_0x2e247b);}function findAllComments(_0xb88701){return find$1(_0x45895f=>isComment(_0x45895f),_0xb88701,!0x0,0x1/0x0);}function getAttribute(_0x11587b,_0xf7874a){return _0x11587b&&isTag(_0x11587b)?_0x11587b['attribs'][_0xf7874a]:null;}function setAttribute(_0x25a3fe,_0x4c7a7d,_0x41a9fa){isTag(_0x25a3fe)&&(null===_0x41a9fa?delete _0x25a3fe['attribs'][_0x4c7a7d]:_0x25a3fe['attribs'][_0x4c7a7d]=_0x41a9fa);}function insertElement(_0x4e42ba,_0x3d8bb2,_0xd155b9){const _0x919a17=_0x3d8bb2['cloneNode'](!0x0);'beforebegin'===_0xd155b9?prepend(_0x4e42ba,_0x919a17):'afterbegin'===_0xd155b9?prependChild(_0x4e42ba,_0x919a17):'beforeend'===_0xd155b9?appendChild(_0x4e42ba,_0x919a17):'afterend'===_0xd155b9&&append(_0x4e42ba,_0x919a17);}function clone$2(_0x2aa2b1){return _0x2aa2b1['cloneNode'](!0x0);}function getParents(_0x341fee){const _0x2f0c4b=[];let _0x510a2a=_0x341fee;for(;_0x510a2a;)_0x510a2a=getParent(_0x510a2a),_0x510a2a&&_0x2f0c4b['push'](_0x510a2a);return _0x2f0c4b;}function normalizeHTML(_0x46d6da){return _0x46d6da['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x2ba4c3,_0x437a70){return normalizeHTML(serialize$1(_0x2ba4c3))===normalizeHTML(serialize$1(_0x437a70));}function getNodeNestingLevel(_0x2aa1eb){let _0x946079=0x0;for(;_0x2aa1eb['parentNode'];)_0x2aa1eb=_0x2aa1eb['parentNode'],_0x946079++;return _0x946079;}function removeElementsAfter(_0x7f7a54){const _0x1a25b8=[];let _0x1017d3=_0x7f7a54['nextSibling'];for(;_0x1017d3;)_0x1a25b8['push'](_0x1017d3),_0x1017d3=_0x1017d3['nextSibling'];_0x1a25b8['forEach'](_0x5afaa3=>{removeElement(_0x5afaa3);});}const VOID=-0x1,PRIMITIVE=0x0,ARRAY=0x1,OBJECT=0x2,DATE=0x3,REGEXP=0x4,MAP=0x5,SET$1=0x6,ERROR=0x7,BIGINT=0x8,env='object'==typeof self?self:globalThis,deserializer=(_0x6ad7df,_0x40b6a3)=>{const _0x2641f3=(_0x1b6ca1,_0x2b9a1b)=>(_0x6ad7df['set'](_0x2b9a1b,_0x1b6ca1),_0x1b6ca1),_0xf659ad=_0x232be3=>{if(_0x6ad7df['has'](_0x232be3))return _0x6ad7df['get'](_0x232be3);const [_0x3ac003,_0x421830]=_0x40b6a3[_0x232be3];switch(_0x3ac003){case PRIMITIVE:case VOID:return _0x2641f3(_0x421830,_0x232be3);case ARRAY:{const _0x3af0f5=_0x2641f3([],_0x232be3);for(const _0x3ef2ec of _0x421830)_0x3af0f5['push'](_0xf659ad(_0x3ef2ec));return _0x3af0f5;}case OBJECT:{const _0xe093ec=_0x2641f3({},_0x232be3);for(const [_0xedbc08,_0x3fa5f9]of _0x421830)_0xe093ec[_0xf659ad(_0xedbc08)]=_0xf659ad(_0x3fa5f9);return _0xe093ec;}case DATE:return _0x2641f3(new Date(_0x421830),_0x232be3);case REGEXP:{const {source:_0x8e70ed,flags:_0x23699b}=_0x421830;return _0x2641f3(new RegExp(_0x8e70ed,_0x23699b),_0x232be3);}case MAP:{const _0x4a1fd6=_0x2641f3(new Map(),_0x232be3);for(const [_0x324023,_0x428dbe]of _0x421830)_0x4a1fd6['set'](_0xf659ad(_0x324023),_0xf659ad(_0x428dbe));return _0x4a1fd6;}case SET$1:{const _0x45bf5b=_0x2641f3(new Set(),_0x232be3);for(const _0x240054 of _0x421830)_0x45bf5b['add'](_0xf659ad(_0x240054));return _0x45bf5b;}case ERROR:{const {name:_0x3bab67,message:_0x5badf6}=_0x421830;return _0x2641f3(new env[_0x3bab67](_0x5badf6),_0x232be3);}case BIGINT:return _0x2641f3(BigInt(_0x421830),_0x232be3);case'BigInt':return _0x2641f3(Object(BigInt(_0x421830)),_0x232be3);case'ArrayBuffer':return _0x2641f3(new Uint8Array(_0x421830)['buffer'],_0x421830);case'DataView':{const {buffer:_0x29c65f}=new Uint8Array(_0x421830);return _0x2641f3(new DataView(_0x29c65f),_0x421830);}}return _0x2641f3(new env[_0x3ac003](_0x421830),_0x232be3);};return _0xf659ad;},deserialize=_0x15db64=>deserializer(new Map(),_0x15db64)(0x0),EMPTY='',{toString:toString$2}={},{keys:keys$1}=Object,typeOf=_0x3698fb=>{const _0x41b9b0=typeof _0x3698fb;if('object'!==_0x41b9b0||!_0x3698fb)return[PRIMITIVE,_0x41b9b0];const _0x3613b8=toString$2['call'](_0x3698fb)['slice'](0x8,-0x1);switch(_0x3613b8){case'Array':return[ARRAY,EMPTY];case'Object':return[OBJECT,EMPTY];case'Date':return[DATE,EMPTY];case'RegExp':return[REGEXP,EMPTY];case'Map':return[MAP,EMPTY];case'Set':return[SET$1,EMPTY];case'DataView':return[ARRAY,_0x3613b8];}return _0x3613b8['includes']('Array')?[ARRAY,_0x3613b8]:_0x3613b8['includes']('Error')?[ERROR,_0x3613b8]:[OBJECT,_0x3613b8];},shouldSkip=([_0x2cb32f,_0xa5657d])=>_0x2cb32f===PRIMITIVE&&('function'===_0xa5657d||'symbol'===_0xa5657d),serializer=(_0x47a2f2,_0x86a50b,_0x59ea1c,_0x11f29b)=>{const _0x20d356=(_0x365668,_0x535b9f)=>{const _0x4a7c13=_0x11f29b['push'](_0x365668)-0x1;return _0x59ea1c['set'](_0x535b9f,_0x4a7c13),_0x4a7c13;},_0x36deda=_0x58899d=>{if(_0x59ea1c['has'](_0x58899d))return _0x59ea1c['get'](_0x58899d);let [_0x2eaacf,_0x12fd69]=typeOf(_0x58899d);switch(_0x2eaacf){case PRIMITIVE:{let _0x525f48=_0x58899d;switch(_0x12fd69){case'bigint':_0x2eaacf=BIGINT,_0x525f48=_0x58899d['toString']();break;case'function':case'symbol':if(_0x47a2f2)throw new TypeError('unable\x20to\x20serialize\x20'+_0x12fd69);_0x525f48=null;break;case'undefined':return _0x20d356([VOID],_0x58899d);}return _0x20d356([_0x2eaacf,_0x525f48],_0x58899d);}case ARRAY:{if(_0x12fd69){let _0x5c6993=_0x58899d;return'DataView'===_0x12fd69?_0x5c6993=new Uint8Array(_0x58899d['buffer']):'ArrayBuffer'===_0x12fd69&&(_0x5c6993=new Uint8Array(_0x58899d)),_0x20d356([_0x12fd69,[..._0x5c6993]],_0x58899d);}const _0x32f818=[],_0x2f40c3=_0x20d356([_0x2eaacf,_0x32f818],_0x58899d);for(const _0x448cad of _0x58899d)_0x32f818['push'](_0x36deda(_0x448cad));return _0x2f40c3;}case OBJECT:{if(_0x12fd69)switch(_0x12fd69){case'BigInt':return _0x20d356([_0x12fd69,_0x58899d['toString']()],_0x58899d);case'Boolean':case'Number':case'String':return _0x20d356([_0x12fd69,_0x58899d['valueOf']()],_0x58899d);}if(_0x86a50b&&'toJSON'in _0x58899d)return _0x36deda(_0x58899d['toJSON']());const _0x38265f=[],_0x4325a3=_0x20d356([_0x2eaacf,_0x38265f],_0x58899d);for(const _0x1f07c5 of keys$1(_0x58899d))!_0x47a2f2&&shouldSkip(typeOf(_0x58899d[_0x1f07c5]))||_0x38265f['push']([_0x36deda(_0x1f07c5),_0x36deda(_0x58899d[_0x1f07c5])]);return _0x4325a3;}case DATE:return _0x20d356([_0x2eaacf,_0x58899d['toISOString']()],_0x58899d);case REGEXP:{const {source:_0x20a63e,flags:_0x56264d}=_0x58899d;return _0x20d356([_0x2eaacf,{'source':_0x20a63e,'flags':_0x56264d}],_0x58899d);}case MAP:{const _0x46b00b=[],_0xf10aa5=_0x20d356([_0x2eaacf,_0x46b00b],_0x58899d);for(const [_0x3868a4,_0x237485]of _0x58899d)(_0x47a2f2||!shouldSkip(typeOf(_0x3868a4))&&!shouldSkip(typeOf(_0x237485)))&&_0x46b00b['push']([_0x36deda(_0x3868a4),_0x36deda(_0x237485)]);return _0xf10aa5;}case SET$1:{const _0x658470=[],_0x1f844a=_0x20d356([_0x2eaacf,_0x658470],_0x58899d);for(const _0x86d3f9 of _0x58899d)!_0x47a2f2&&shouldSkip(typeOf(_0x86d3f9))||_0x658470['push'](_0x36deda(_0x86d3f9));return _0x1f844a;}}const {message:_0x4f6189}=_0x58899d;return _0x20d356([_0x2eaacf,{'name':_0x12fd69,'message':_0x4f6189}],_0x58899d);};return _0x36deda;},serialize=(_0x5e959f,{json:_0x316ceb,lossy:_0x415718}={})=>{const _0x2902ca=[];return serializer(!(_0x316ceb||_0x415718),!!_0x316ceb,new Map(),_0x2902ca)(_0x5e959f),_0x2902ca;};var structuredClone$1='function'==typeof structuredClone?(_0x438fa2,_0x29a6a3)=>_0x29a6a3&&('json'in _0x29a6a3||'lossy'in _0x29a6a3)?deserialize(serialize(_0x438fa2,_0x29a6a3)):structuredClone(_0x438fa2):(_0x4572ac,_0x470e3f)=>deserialize(serialize(_0x4572ac,_0x470e3f));const pointEnd=point('end'),pointStart=point('start');function point(_0x21c01b){return function(_0x35ffdf){const _0x25cbd3=_0x35ffdf&&_0x35ffdf['position']&&_0x35ffdf['position'][_0x21c01b]||{};if('number'==typeof _0x25cbd3['line']&&_0x25cbd3['line']>0x0&&'number'==typeof _0x25cbd3['column']&&_0x25cbd3['column']>0x0)return{'line':_0x25cbd3['line'],'column':_0x25cbd3['column'],'offset':'number'==typeof _0x25cbd3['offset']&&_0x25cbd3['offset']>-0x1?_0x25cbd3['offset']:void 0x0};};}function position(_0x1feeb8){const _0x11e0e6=pointStart(_0x1feeb8),_0x5c8991=pointEnd(_0x1feeb8);if(_0x11e0e6&&_0x5c8991)return{'start':_0x11e0e6,'end':_0x5c8991};}const aria=['ariaDescribedBy','ariaLabel','ariaLabelledBy'],defaultSchema={'ancestors':{'tbody':['table'],'td':['table'],'th':['table'],'thead':['table'],'tfoot':['table'],'tr':['table']},'attributes':{'a':[...aria,'dataFootnoteBackref','dataFootnoteRef',['className','data-footnote-backref'],'href'],'blockquote':['cite'],'code':[['className',/^language-./]],'del':['cite'],'div':['itemScope','itemType'],'dl':[...aria],'h2':[['className','sr-only']],'img':[...aria,'longDesc','src'],'input':[['disabled',!0x0],['type','checkbox']],'ins':['cite'],'li':[['className','task-list-item']],'ol':[...aria,['className','contains-task-list']],'q':['cite'],'section':['dataFootnotes',['className','footnotes']],'source':['srcSet'],'summary':[...aria],'table':[...aria],'ul':[...aria,['className','contains-task-list']],'*':['abbr','accept','acceptCharset','accessKey','action','align','alt','axis','border','cellPadding','cellSpacing','char','charOff','charSet','checked','clear','colSpan','color','cols','compact','coords','dateTime','dir','encType','frame','hSpace','headers','height','hrefLang','htmlFor','id','isMap','itemProp','label','lang','maxLength','media','method','multiple','name','noHref','noShade','noWrap','open','prompt','readOnly','rev','rowSpan','rows','rules','scope','selected','shape','size','span','start','summary','tabIndex','title','useMap','vAlign','value','width']},'clobber':['ariaDescribedBy','ariaLabelledBy','id','name'],'clobberPrefix':'user-content-','protocols':{'cite':['http','https'],'href':['http','https','irc','ircs','mailto','xmpp'],'longDesc':['http','https'],'src':['http','https']},'required':{'input':{'disabled':!0x0,'type':'checkbox'}},'strip':['script'],'tagNames':['a','b','blockquote','br','code','dd','del','details','div','dl','dt','em','h1','h2','h3','h4','h5','h6','hr','i','img','input','ins','kbd','li','ol','p','picture','pre','q','rp','rt','ruby','s','samp','section','source','span','strike','strong','sub','summary','sup','table','tbody','td','tfoot','th','thead','tr','tt','ul','var']},own={}['hasOwnProperty'];function sanitize$1(_0x5741fc,_0x9f397c){let _0xf69ea={'type':'root','children':[]};const _0x314f45=transform({'schema':_0x9f397c?{...defaultSchema,..._0x9f397c}:defaultSchema,'stack':[]},_0x5741fc);return _0x314f45&&(Array['isArray'](_0x314f45)?0x1===_0x314f45['length']?_0xf69ea=_0x314f45[0x0]:_0xf69ea['children']=_0x314f45:_0xf69ea=_0x314f45),_0xf69ea;}function transform(_0x3e7549,_0x210527){if(_0x210527&&'object'==typeof _0x210527){const _0x57b0a3=_0x210527;switch('string'==typeof _0x57b0a3['type']?_0x57b0a3['type']:''){case'comment':return comment$1(_0x3e7549,_0x57b0a3);case'doctype':return doctype(_0x3e7549,_0x57b0a3);case'element':return element(_0x3e7549,_0x57b0a3);case'root':return root(_0x3e7549,_0x57b0a3);case'text':return text(_0x3e7549,_0x57b0a3);}}}function comment$1(_0x9a36b3,_0xa6312f){if(_0x9a36b3['schema']['allowComments']){const _0x502b75='string'==typeof _0xa6312f['value']?_0xa6312f['value']:'',_0x46392b=_0x502b75['indexOf']('-->'),_0xf40d08={'type':'comment','value':_0x46392b<0x0?_0x502b75:_0x502b75['slice'](0x0,_0x46392b)};return patch(_0xf40d08,_0xa6312f),_0xf40d08;}}function doctype(_0x5286aa,_0x4b6fae){if(_0x5286aa['schema']['allowDoctypes']){const _0x2ca629={'type':'doctype'};return patch(_0x2ca629,_0x4b6fae),_0x2ca629;}}function element(_0x3a9012,_0x3f8c7c){const _0x591ec7='string'==typeof _0x3f8c7c['tagName']?_0x3f8c7c['tagName']:'';_0x3a9012['stack']['push'](_0x591ec7);const _0x35d992=children(_0x3a9012,_0x3f8c7c['children']),_0x297115=properties$1(_0x3a9012,_0x3f8c7c['properties']);_0x3a9012['stack']['pop']();let _0x3046ab=!0x1;if(_0x591ec7&&'*'!==_0x591ec7&&(!_0x3a9012['schema']['tagNames']||_0x3a9012['schema']['tagNames']['includes'](_0x591ec7))&&(_0x3046ab=!0x0,_0x3a9012['schema']['ancestors']&&own['call'](_0x3a9012['schema']['ancestors'],_0x591ec7))){const _0x5a2b71=_0x3a9012['schema']['ancestors'][_0x591ec7];let _0x345e14=-0x1;for(_0x3046ab=!0x1;++_0x345e14<_0x5a2b71['length'];)_0x3a9012['stack']['includes'](_0x5a2b71[_0x345e14])&&(_0x3046ab=!0x0);}if(!_0x3046ab)return _0x3a9012['schema']['strip']&&!_0x3a9012['schema']['strip']['includes'](_0x591ec7)?_0x35d992:void 0x0;const _0x5113ef={'type':'element','tagName':_0x591ec7,'properties':_0x297115,'children':_0x35d992};return patch(_0x5113ef,_0x3f8c7c),_0x5113ef;}function root(_0x1eb92f,_0x386e06){const _0x1ded23={'type':'root','children':children(_0x1eb92f,_0x386e06['children'])};return patch(_0x1ded23,_0x386e06),_0x1ded23;}function text(_0x43fee5,_0x3e1432){const _0xec63ee={'type':'text','value':'string'==typeof _0x3e1432['value']?_0x3e1432['value']:''};return patch(_0xec63ee,_0x3e1432),_0xec63ee;}function children(_0x18c82c,_0x27ccfa){const _0x5b9cfc=[];if(Array['isArray'](_0x27ccfa)){const _0x85cb0f=_0x27ccfa;let _0x4dd638=-0x1;for(;++_0x4dd638<_0x85cb0f['length'];){const _0x1f5c89=transform(_0x18c82c,_0x85cb0f[_0x4dd638]);_0x1f5c89&&(Array['isArray'](_0x1f5c89)?_0x5b9cfc['push'](..._0x1f5c89):_0x5b9cfc['push'](_0x1f5c89));}}return _0x5b9cfc;}function properties$1(_0x1ab92e,_0xc26d63){const _0x1832b0=_0x1ab92e['stack'][_0x1ab92e['stack']['length']-0x1],_0x295f32=_0x1ab92e['schema']['attributes'],_0x5ad402=_0x1ab92e['schema']['required'],_0x42fdbd=_0x295f32&&own['call'](_0x295f32,_0x1832b0)?_0x295f32[_0x1832b0]:void 0x0,_0x4dbe81=_0x295f32&&own['call'](_0x295f32,'*')?_0x295f32['*']:void 0x0,_0x550ed1=_0xc26d63&&'object'==typeof _0xc26d63?_0xc26d63:{},_0x224d7e={};let _0x4aba3c;for(_0x4aba3c in _0x550ed1)if(own['call'](_0x550ed1,_0x4aba3c)){const _0x20d457=_0x550ed1[_0x4aba3c];let _0x1d1752=propertyValue(_0x1ab92e,findDefinition(_0x42fdbd,_0x4aba3c),_0x4aba3c,_0x20d457);null==_0x1d1752&&(_0x1d1752=propertyValue(_0x1ab92e,findDefinition(_0x4dbe81,_0x4aba3c),_0x4aba3c,_0x20d457)),null!=_0x1d1752&&(_0x224d7e[_0x4aba3c]=_0x1d1752);}if(_0x5ad402&&own['call'](_0x5ad402,_0x1832b0)){const _0x55624d=_0x5ad402[_0x1832b0];for(_0x4aba3c in _0x55624d)own['call'](_0x55624d,_0x4aba3c)&&!own['call'](_0x224d7e,_0x4aba3c)&&(_0x224d7e[_0x4aba3c]=_0x55624d[_0x4aba3c]);}return _0x224d7e;}function propertyValue(_0x47e653,_0x5e812e,_0x130530,_0x36db35){return _0x5e812e?Array['isArray'](_0x36db35)?propertyValueMany(_0x47e653,_0x5e812e,_0x130530,_0x36db35):propertyValuePrimitive(_0x47e653,_0x5e812e,_0x130530,_0x36db35):void 0x0;}function propertyValueMany(_0x2efb2d,_0x5b1bf,_0x4f7652,_0x4ef7ae){let _0x3e0170=-0x1;const _0x53fe75=[];for(;++_0x3e0170<_0x4ef7ae['length'];){const _0x38c3fc=propertyValuePrimitive(_0x2efb2d,_0x5b1bf,_0x4f7652,_0x4ef7ae[_0x3e0170]);'number'!=typeof _0x38c3fc&&'string'!=typeof _0x38c3fc||_0x53fe75['push'](_0x38c3fc);}return _0x53fe75;}function propertyValuePrimitive(_0x259df3,_0x55911b,_0x23037a,_0x5e945e){if(('boolean'==typeof _0x5e945e||'number'==typeof _0x5e945e||'string'==typeof _0x5e945e)&&safeProtocol(_0x259df3,_0x23037a,_0x5e945e)){if('object'==typeof _0x55911b&&_0x55911b['length']>0x1){let _0x2ff082=!0x1,_0xc13ab1=0x0;for(;++_0xc13ab1<_0x55911b['length'];){const _0x46b63e=_0x55911b[_0xc13ab1];if(_0x46b63e&&'object'==typeof _0x46b63e&&'flags'in _0x46b63e){if(_0x46b63e['test'](String(_0x5e945e))){_0x2ff082=!0x0;break;}}else{if(_0x46b63e===_0x5e945e){_0x2ff082=!0x0;break;}}}if(!_0x2ff082)return;}return _0x259df3['schema']['clobber']&&_0x259df3['schema']['clobberPrefix']&&_0x259df3['schema']['clobber']['includes'](_0x23037a)?_0x259df3['schema']['clobberPrefix']+_0x5e945e:_0x5e945e;}}function safeProtocol(_0x485a24,_0x5f0087,_0x4f4e09){const _0x419437=_0x485a24['schema']['protocols']&&own['call'](_0x485a24['schema']['protocols'],_0x5f0087)?_0x485a24['schema']['protocols'][_0x5f0087]:void 0x0;if(!_0x419437||0x0===_0x419437['length'])return!0x0;const _0x417145=String(_0x4f4e09),_0x39bd20=_0x417145['indexOf'](':'),_0xc3860=_0x417145['indexOf']('?'),_0x13ed13=_0x417145['indexOf']('#'),_0x503fc0=_0x417145['indexOf']('/');if(_0x39bd20<0x0||_0x503fc0>-0x1&&_0x39bd20>_0x503fc0||_0xc3860>-0x1&&_0x39bd20>_0xc3860||_0x13ed13>-0x1&&_0x39bd20>_0x13ed13)return!0x0;let _0x2942f5=-0x1;for(;++_0x2942f5<_0x419437['length'];){const _0x59cf25=_0x419437[_0x2942f5];if(_0x39bd20===_0x59cf25['length']&&_0x417145['slice'](0x0,_0x59cf25['length'])===_0x59cf25)return!0x0;}return!0x1;}function patch(_0x3dad1f,_0x16c156){const _0x2280cb=position(_0x16c156);_0x16c156['data']&&(_0x3dad1f['data']=structuredClone$1(_0x16c156['data'])),_0x2280cb&&(_0x3dad1f['position']=_0x2280cb);}function findDefinition(_0x3b815e,_0x45e356){let _0x8eec22,_0x4b72aa=-0x1;if(_0x3b815e)for(;++_0x4b72aa<_0x3b815e['length'];){const _0x2c2937=_0x3b815e[_0x4b72aa],_0x31aad6='string'==typeof _0x2c2937?_0x2c2937:_0x2c2937[0x0];if(_0x31aad6===_0x45e356)return _0x2c2937;'data*'===_0x31aad6&&(_0x8eec22=_0x2c2937);}if(_0x45e356['length']>0x4&&'data'===_0x45e356['slice'](0x0,0x4)['toLowerCase']())return _0x8eec22;}function rehypeSanitize(_0x1ab2eb){return function(_0x160c7c){return sanitize$1(_0x160c7c,_0x1ab2eb);};}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super();const _0x1ac11d=Object['entries'](MarkdownGfmMdToHtmlDefaultPlugins),_0x3e0b9b=_0x1ac11d['findIndex'](([_0x1639aa])=>'rehypeDomRaw'===_0x1639aa);if(-0x1===_0x3e0b9b)throw new CKEditorError('ai-response-parser-unable-to-set-up-parser');_0x1ac11d['splice'](_0x3e0b9b+0x1,0x0,['rehypeSanitize',rehypeSanitize]),this['_m2html']=new MarkdownGfmMdToHtml({'plugins':Object['fromEntries'](_0x1ac11d)});}['convertMarkdownToHTML'](_0x469bbf){const _0x20af3c=this['_m2html']['parse'](_0x469bbf);return this['parseAndNormalizeHTML'](_0x20af3c);}['parseAndNormalizeHTML'](_0xcaa159){return this['_parseHTML'](_0xcaa159);}['_parseHTML'](_0x2a4405){const _0x5e040e=parse$2('<dummy>'+_0x2a4405['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x5e040e['children']=_0x5e040e['children'][0x0]['children'],_0x5e040e;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_uidCounter']=0x0;['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0xbc1c9e){super(),this['_generateUid']=_0xbc1c9e||(()=>'e'+String(this['_uidCounter']++));}['merge'](_0x355c77,_0x514eec,_0x2cb6d4){this['_uidCounter']=0x0;const _0x2a17b9=clone$2(_0x355c77),_0x1ab950=_0x2a17b9['childNodes'],_0xce5de2=Array['from'](_0x1ab950)['filter'](_0x29181d=>!(0x3===_0x29181d['nodeType']&&''===serialize$1(_0x29181d)['trim']())),_0x1c7595=_0xce5de2['length'],_0x2f3527=new Map();for(const _0xf419cb of _0xce5de2)_0xf419cb&&isTag(_0xf419cb)&&void 0x0===_0xf419cb['attribs']['data-id']&&setAttribute(_0xf419cb,'data-id','new-element');if(0x0===_0x514eec['childNodes']['length']){const _0x575d22=[];return findAllByAttribute('data-id','new-element',_0x2a17b9)['forEach'](_0x517ce9=>{const _0x1ab983=this['_generateUid']();setAttribute(_0x517ce9,'data-id',_0x1ab983),_0x575d22['push'](_0x1ab983);}),this['_removeSpecialComments'](_0x2a17b9),{'parsedContent':_0x2a17b9,'newNodeIds':_0x575d22,'modifiedNodeIds':[],'removedNodeIds':[],'newAnchorIds':_0x2f3527};}_0x2cb6d4&&_0x2cb6d4['markUnstableElements']&&this['_markLastTagElementUnstable'](_0x2a17b9),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x514eec)['map'](_0x171a12=>getAttribute(_0x171a12,'data-id'))['filter'](_0x1f957d=>!!_0x1f957d));let _0x2e47b9=-0x1,_0x1556a5=!0x1;for(let _0x2447f3=0x0;_0x2447f3<_0x1c7595;_0x2447f3++){const _0x1f4632=_0xce5de2[_0x2447f3],_0x114dfe=_0xce5de2[_0x2447f3+0x1];if(this['_isNewNode'](_0x1f4632)){if(-0x1===_0x2e47b9&&(_0x2e47b9=_0x2447f3),this['_markWrappedElements'](_0x1f4632),!this['_isNewNode'](_0x114dfe)){const [_0x1f9df3,_0x5b7e31]=this['_findReferenceNode'](_0x1f4632,_0x1556a5,_0x514eec);if(_0x1f9df3){const _0x153c6b=Array['from'](_0xce5de2)['slice'](_0x2e47b9,_0x2447f3+0x1),_0x2e9599=getAttribute(_0x1f9df3,'data-id');if(this['_insertNodes'](_0x1f9df3,_0x153c6b,_0x5b7e31),_0x2e9599)for(const _0x500a01 of _0x153c6b){const _0x519f14=getAttribute(_0x500a01,'data-id');_0x519f14&&_0x2f3527['set'](_0x519f14,_0x2e9599);}_0x2e47b9=-0x1;}}}else{if(this['_isExistingContentComment'](_0x1f4632))_0x1556a5=!0x0;else{if(this['_isExistingNode'](_0x1f4632)){const _0x5ab3ef=getAttribute(_0x1f4632,'data-id');if(_0x5ab3ef&&this['_existingDataIds']['has'](_0x5ab3ef)){const _0x127cca=findByAttribute('data-id',_0x5ab3ef,_0x514eec);this['_replaceNode'](_0x127cca,_0x1f4632);}}else{if(this['_isDelNode'](_0x1f4632)){const _0x53eb27=this['_getNodeDataId'](_0x1f4632);!!findByAttribute('data-id',_0x53eb27,_0x2a17b9)||this['_touchedNodesState']['removedIds']['push'](_0x53eb27);}}}}}for(const _0x4561f6 of this['_touchedNodesState']['removedIds']){const _0x2735eb=findByAttribute('data-id',_0x4561f6,_0x514eec);_0x2735eb&&this['_removeNode'](_0x2735eb,_0x4561f6,_0x2cb6d4);}if(findAllByAttribute('data-id','new-element',_0x514eec)['forEach'](_0xe16b7d=>{const _0x536430=this['_getUid'](_0xe16b7d);setAttribute(_0xe16b7d,'data-id',_0x536430),this['_touchedNodesState']['newIds']['push'](_0x536430);}),this['_removeSpecialComments'](_0x514eec),_0x2cb6d4&&_0x2cb6d4['markUnstableElements']&&this['_markUnstableElements'](_0x514eec,_0x2cb6d4['markUnstableElementsDepth']||0x0),this['_processWrappedElements'](_0x514eec,_0x2cb6d4),_0x2cb6d4&&_0x2cb6d4['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){const _0x46ba47=findAllByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x514eec);let _0x4a3162=_0x46ba47[_0x46ba47['length']-0x1];for(;_0x4a3162;)removeElementsAfter(_0x4a3162),_0x4a3162=_0x4a3162['parentNode'];}return{'parsedContent':_0x514eec,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds'],'newAnchorIds':_0x2f3527};}['_insertNodes'](_0x31dc19,_0x19e7b8,_0x340f2f){for(const _0xc5bf2e of _0x19e7b8){const _0x59715e=this['_getUid'](_0xc5bf2e);setAttribute(_0xc5bf2e,'data-id',_0x59715e),this['_touchedNodesState']['newIds']['push'](_0x59715e),this['_touchedNodesState']['lastTouchedId']=_0x59715e;}const _0x2e8f7c='afterbegin'===_0x340f2f||'afterend'===_0x340f2f?_0x19e7b8['reverse']():_0x19e7b8;for(const _0x48d5f8 of _0x2e8f7c)insertElement(_0x31dc19,_0x48d5f8,_0x340f2f);}['_replaceNode'](_0x3ef191,_0x490e42){if(!_0x3ef191)return;if(areNodesSame(_0x3ef191,_0x490e42))return;const _0x45abbb=this['_getUid'](_0x3ef191);setAttribute(_0x490e42,'data-id',_0x45abbb),this['_touchedNodesState']['modifiedIds']['push'](_0x45abbb),this['_touchedNodesState']['lastTouchedId']=_0x45abbb,replaceElement(_0x3ef191,_0x490e42['cloneNode'](!0x0));}['_removeNode'](_0x279a28,_0x4429f7,_0x272425){if(_0x272425&&_0x272425['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x4429f7;const _0x233fae=_0x272425['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x233fae,'data-id',_0x4429f7),setAttribute(_0x233fae,'data-removed','true'),replaceElement(_0x279a28,_0x233fae);}else removeElement(_0x279a28);}['_findReferenceNode'](_0x27f70d,_0x188e8a,_0xe8dab8){const _0x2327f3=this['_findPrevElementWithDataId'](_0x27f70d,!0x1);if(_0x2327f3){const _0x3ac4c5=this['_getNodeDataId'](_0x2327f3),_0x5ddb22=findByAttribute('data-id',_0x3ac4c5,_0xe8dab8);if(_0x5ddb22)return[_0x5ddb22,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x3ac4c5);}const _0x145873=this['_findNextElementWithDataId'](_0x27f70d,!0x1);if(_0x145873){const _0x5a31a8=this['_getNodeDataId'](_0x145873),_0x26fcc8=findByAttribute('data-id',_0x5a31a8,_0xe8dab8);if(_0x26fcc8)return[_0x26fcc8,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x5a31a8);}return _0x188e8a?_0x27f70d['nextSibling']?this['_findFallbackReferenceNode'](_0x27f70d,_0xe8dab8):[_0xe8dab8['childNodes'][_0xe8dab8['childNodes']['length']-0x1],'afterend']:[_0xe8dab8['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x3f91d9,_0x2c2bc2){const _0x53f9cf=[],_0x5a3957=this['_findPrevElementWithDataId'](_0x3f91d9,!0x0);if(_0x5a3957){const _0x332019=findByAttribute('data-id',this['_getNodeDataId'](_0x5a3957),_0x2c2bc2);_0x332019&&_0x53f9cf['push']([_0x332019,'afterend']);}const _0x4f28ef=this['_findNextElementWithDataId'](_0x3f91d9,!0x0);if(_0x4f28ef){const _0x5f2d46=findByAttribute('data-id',this['_getNodeDataId'](_0x4f28ef),_0x2c2bc2);_0x5f2d46&&_0x53f9cf['push']([_0x5f2d46,'beforebegin']);}if(_0x53f9cf['length']>0x1)return getNodeNestingLevel(_0x53f9cf[0x0][0x0])<=getNodeNestingLevel(_0x53f9cf[0x1][0x0])?_0x53f9cf[0x0]:_0x53f9cf[0x1];return 0x1===_0x53f9cf['length']?_0x53f9cf[0x0]:[_0x2c2bc2['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x24e4e7,_0x1fcd64){let _0x2d9a7d=_0x24e4e7['nextSibling'],_0x124216=null,_0x4dac4a=!0x1;for(;_0x2d9a7d;){if(isComment(_0x2d9a7d)){if(this['_isDelNode'](_0x2d9a7d)&&(_0x124216=_0x2d9a7d),this['_isExistingContentComment'](_0x2d9a7d)&&_0x1fcd64&&!_0x4dac4a){_0x4dac4a=!0x0,_0x2d9a7d=_0x2d9a7d['nextSibling'];continue;}break;}const _0xb62f73=getAttribute(_0x2d9a7d,'data-id');if(_0xb62f73&&'new-element'!==_0xb62f73&&this['_existingDataIds']['has'](_0xb62f73)){_0x124216=_0x2d9a7d;break;}_0x2d9a7d=_0x2d9a7d['nextSibling'];}return _0x124216;}['_findPrevElementWithDataId'](_0x4b4e45,_0x2b216c){let _0x2faa81=_0x4b4e45['previousSibling'],_0x2cc868=null,_0x1ded77=!0x1;for(;_0x2faa81;){if(isComment(_0x2faa81)){if(this['_isDelNode'](_0x2faa81)&&(_0x2cc868=_0x2faa81),this['_isExistingContentComment'](_0x2faa81)&&_0x2b216c&&!_0x1ded77){_0x1ded77=!0x0,_0x2faa81=_0x2faa81['previousSibling'];continue;}break;}const _0x49164d=getAttribute(_0x2faa81,'data-id');if(_0x49164d&&'new-element'!==_0x49164d&&this['_existingDataIds']['has'](_0x49164d)){_0x2cc868=_0x2faa81;break;}_0x2faa81=_0x2faa81['previousSibling'];}return _0x2cc868;}['_markWrappedElements'](_0x58ac56){isTag(_0x58ac56)&&findAllByAttribute('data-id',null,_0x58ac56)['forEach'](_0x5da4cc=>{this['_isExistingNode'](_0x5da4cc)&&(setAttribute(_0x5da4cc,'data-wrapped-id',getAttribute(_0x5da4cc,'data-id')),setAttribute(_0x5da4cc,'data-id',null));});}['_processWrappedElements'](_0x14f19e,_0x283d0d){findAllByAttribute('data-wrapped-id',null,_0x14f19e)['forEach'](_0x1a8eb1=>{const _0x2c2309=getAttribute(_0x1a8eb1,'data-wrapped-id');if(getAttribute(_0x1a8eb1,'data-unstable')||this['_hasUnstableParent'](_0x1a8eb1))return;const _0x1a1471=findByAttribute('data-id',_0x2c2309,_0x14f19e);setAttribute(_0x1a8eb1,'data-id',_0x2c2309),setAttribute(_0x1a8eb1,'data-wrapped-id',null),_0x1a1471&&(this['_removeNode'](_0x1a1471,_0x2c2309,_0x283d0d),this['_touchedNodesState']['removedIds']['push'](_0x2c2309),this['_touchedNodesState']['lastTouchedId']=_0x2c2309);});}['_hasUnstableParent'](_0x128609){let _0x113557=_0x128609['parentNode'];for(;_0x113557;){if(getAttribute(_0x113557,'data-unstable'))return!0x0;_0x113557=_0x113557['parentNode'];}return!0x1;}['_getNodeDataId'](_0x21f928){if(!_0x21f928)return null;if(isTag(_0x21f928))return getAttribute(_0x21f928,'data-id');if(isComment(_0x21f928)){const _0x48a15f=serialize$1(_0x21f928)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x48a15f&&_0x48a15f[0x1])return _0x48a15f[0x1];}return null;}['_getUid'](_0x4883ce){return this['_isExistingNode'](_0x4883ce)?getAttribute(_0x4883ce,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0x14beaa){findAllComments(_0x14beaa)['filter'](_0x58268e=>this['_isDelNode'](_0x58268e)||this['_isExistingContentComment'](_0x58268e))['forEach'](_0x470818=>{removeElement(_0x470818);});}['_markLastTagElementUnstable'](_0x4b916a){const _0x46f16e=_0x4b916a['childNodes'],_0x36bac1=_0x46f16e[_0x46f16e['length']-0x1];_0x36bac1&&isTag(_0x36bac1)&&setAttribute(_0x36bac1,'data-unstable','true');}['_markUnstableElements'](_0x322e00,_0x2aef43){const _0x41587c=findByAttribute('data-unstable','true',_0x322e00);if(!_0x41587c)return;const _0x2d7b35=getParents(_0x41587c)['slice'](0x0,-0x1),_0x2c938e=_0x2d7b35['length'];let _0x2f8ebe=_0x41587c;if(_0x2c938e>_0x2aef43){let _0x16b21e=_0x2c938e,_0x29b7c6=null;for(;_0x16b21e>_0x2aef43&&_0x16b21e>=0x0;)_0x16b21e--,_0x29b7c6=_0x2d7b35[_0x16b21e];_0x29b7c6&&(_0x2f8ebe=_0x29b7c6,setAttribute(_0x41587c,'data-unstable',null),setAttribute(_0x29b7c6,'data-unstable','true'));}else{if(_0x2c938e<_0x2aef43){let _0x3d7c51=_0x2c938e,_0x566dd3=_0x41587c;for(;_0x3d7c51<_0x2aef43;){const _0x3a163c=_0x566dd3['childNodes']['filter'](_0x375aad=>isTag(_0x375aad));if(0x0===_0x3a163c['length'])break;_0x3d7c51++,_0x566dd3=_0x3a163c[_0x3a163c['length']-0x1];}_0x566dd3&&(_0x2f8ebe=_0x566dd3,setAttribute(_0x41587c,'data-unstable',null),setAttribute(_0x566dd3,'data-unstable','true'));}}let _0x4080bb=_0x2f8ebe;for(;_0x4080bb;){for(;_0x4080bb['nextSibling'];)_0x4080bb=_0x4080bb['nextSibling'],isTag(_0x4080bb)&&setAttribute(_0x4080bb,'data-unstable','true');_0x4080bb=_0x4080bb['parentNode'];}}['_isNewNode'](_0x36c07f){return Boolean('new-element'===getAttribute(_0x36c07f,'data-id'));}['_isExistingNode'](_0x69f513){return Boolean((getAttribute(_0x69f513,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x69f513,'data-id'));}['_isDelNode'](_0x5de389){return!!_0x5de389&&Boolean(isComment(_0x5de389)&&serialize$1(_0x5de389)['match'](/removed[\s*-]data-id="[^"]+"/));}['_isExistingContentComment'](_0x42e4d8){return Boolean(isComment(_0x42e4d8)&&serialize$1(_0x42e4d8)['match'](/\s*existing[\s*-](content|document)\s*/g));}}class Permissions extends ContextPlugin{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x35a9eb,_0x4dbf6f){let _0x4d7095;if(_0x4dbf6f||(_0x4dbf6f=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x4dbf6f?_0x4d7095=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x4d7095=this['context']['editors']['find'](_0x1bffaf=>_0x1bffaf['config']['get']('collaboration.channelId')==_0x4dbf6f)),!_0x4d7095)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0xc5ad02=_0x4d7095['plugins'],_0x2d470e=_0xc5ad02['has']('CommentsRepository')?_0xc5ad02['get']('CommentsRepository'):void 0x0,_0x354d77=_0xc5ad02['has']('CommentsOnly')&&_0xc5ad02['get']('CommentsOnly'),_0x32d401=_0x35a9eb['includes']('document:write'),_0x1ea296=_0x35a9eb['includes']('comment:modify_all'),_0x127d5f=_0x35a9eb['includes']('comment:admin'),_0xb8169f=_0x35a9eb['includes']('comment:write'),_0x459a4a=_0xb8169f||_0x127d5f,_0x263dae=_0x459a4a||_0x1ea296,_0x1802fe=_0x32d401||_0x459a4a;(_0x354d77&&(_0x354d77['isEnabled']=!_0x32d401&&_0x263dae),_0x4d7095 instanceof Editor)&&(!(_0x32d401||_0x263dae&&_0x2d470e)?_0x4d7095['enableReadOnlyMode']('no-permissions'):_0x4d7095['disableReadOnlyMode']('no-permissions'));if(_0x2d470e){_0x2d470e['setPermissions']({'admin':_0x127d5f,'modifyAll':_0x1ea296,'write':_0xb8169f,'resolve':_0x1802fe},_0x4dbf6f);const _0x534c1d=_0x4d7095 instanceof Editor&&_0x4d7095['commands']['get']('addCommentThread');_0x534c1d&&(_0x459a4a?_0x534c1d['clearForceDisabled']('noPermissions'):_0x534c1d['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x25f5d3,_0xfc25c4){const t=_0x25f5d3['t'];switch(_0xfc25c4){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class Users extends ContextPlugin{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Permissions];}constructor(_0x139c2d){super(_0x139c2d),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x139c2d['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x5d5dc8,name:_0x38c623,..._0x7b284e}){if(!_0x5d5dc8||'string'!=typeof _0x5d5dc8)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x5d5dc8))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x5d5dc8});const _0x4d6595=this['context']['config']['get']('users.getInitialsCallback'),_0x590fde={..._0x7b284e,'id':_0x5d5dc8,'name':normalizeName(this['_locale'],_0x38c623),'color':this['_getNextColor']()};_0x590fde['name']=normalizeName(this['_locale'],_0x590fde['name']);const _0xd590fb=new User$1(_0x590fde,_0x4d6595);return this['users']['add'](_0xd590fb),_0xd590fb;}['getUser'](_0x5b7342){return this['users']['get'](_0x5b7342);}['useAnonymousUser'](){const _0x56ed98=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x56ed98);}['defineMe'](_0x494f8b){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0x35d6ff=this['getUser'](_0x494f8b);if(!_0x35d6ff)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x494f8b,_0x35d6ff['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x3bed3d=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x3bed3d&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0xf17c7c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0xf17c7c,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x3e2ea8,_0x1ec963){this['id']=_0x3e2ea8['id'],this['color']=_0x3e2ea8['color'],this['name']=_0x3e2ea8['name'],this['initials']=_0x1ec963?_0x1ec963(this['name']):this['_computeInitials'](),this['avatar']=_0x3e2ea8['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x8032e9=this['name']['split']('\x20')['filter'](_0x4553e4=>/^[\p{Letter}]/u['test'](_0x4553e4));return 0x1===_0x8032e9['length']?this['_getInitial'](_0x8032e9[0x0]):0x0===_0x8032e9['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x8032e9[0x0])+this['_getInitial'](_0x8032e9[_0x8032e9['length']-0x1]);}['_getInitial'](_0x2feadd){return String['fromCodePoint'](_0x2feadd['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x415080,_0xbd89c4=''){return''==(_0xbd89c4=_0xbd89c4['trim']())?getTranslation$h(_0x415080,'Anonymous'):_0xbd89c4;}class CollaborationUserColor{['_id'];constructor(_0x27a4b3){this['_id']=_0x27a4b3;}get['id'](){return this['_id'];}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['id'];}['getSelectionClass'](){return'ck-user__selection--'+this['id'];}['getMarkerClass'](){return'ck-user__marker--'+this['id'];}['getColorVariable'](){return'var(--ck-user-colors--'+this['id']+',\x20var(--ck-user-colors--0))';}['getColorAlphaVariable'](){return'var(--ck-user-colors--'+this['id']+'-alpha,\x20var(--ck-user-colors--0-alpha))';}}class UserView extends View{['name'];['notificationView'];constructor(_0x2d5117,_0x511578,_0x259d3f){super(_0x2d5117),this['name']=_0x511578['name'],this['notificationView']=null;const _0x1978e2=['ck','ck-user'],_0x19eaa1=['ck','ck-user__img'];if(_0x511578['isAnonymous']&&_0x19eaa1['push']('ck-user__anonymous'),!_0x511578['isAnonymous']&&_0x511578['isMe']&&_0x1978e2['push']('ck-user_me'),_0x511578['avatar']&&_0x19eaa1['push']('ck-user__avatar'),_0x259d3f){const _0x767021=new IconView();_0x767021['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x767021['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x259d3f},'children':[_0x767021]};}const _0x367193=[{'tag':'div','attributes':{'class':_0x19eaa1,'style':{'background-image':_0x511578['avatar']?'url(\x27'+_0x511578['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x511578['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x511578['name']},'children':[{'text':_0x511578['initials']}]}];this['notificationView']&&_0x367193['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1978e2,'data-user-id':_0x511578['id']},'children':_0x367193});}}class AriaDescriptionView extends View{['id'];constructor(_0x557d94,_0x50977a){super(_0x557d94),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x50977a}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0xb961ed){_0xb961ed['listenTo'](_0xb961ed['element'],'mousedown',(_0x6c5f4e,_0xb02814)=>{_0xb02814['stopPropagation'](),_0xb02814['preventDefault']();}),_0xb961ed['listenTo'](_0xb961ed['element'],'mouseup',()=>{_0xb961ed['element']['focus']();});}function splitSuggestionMarkerName(_0xd89ced){const _0x7af002=_0xd89ced['split'](':');return{'group':_0x7af002[0x0],'type':_0x7af002[0x1],'subType':_0x7af002['length']>=0x5?_0x7af002[0x2]:null,'id':_0x7af002['length']<0x5?_0x7af002[0x2]:_0x7af002[0x3],'authorId':_0x7af002['length']<0x5?_0x7af002[0x3]:_0x7af002[0x4],'markerCount':0x6==_0x7af002['length']?_0x7af002[0x5]:null};}function fixElementSuggestionRange(_0x39fc01,_0x2e90a3){const _0x9c4132=_0x39fc01['end']['nodeBefore'];if(_0x9c4132&&_0x9c4132['is']('element')&&_0x2e90a3['schema']['isBlock'](_0x9c4132)&&!_0x2e90a3['schema']['isObject'](_0x9c4132)){const _0x8db78=_0x2e90a3['createPositionAt'](_0x9c4132,'end');return _0x2e90a3['createRange'](_0x39fc01['start'],_0x8db78);}return _0x39fc01;}class SuggestionsConversionAlignment extends Plugin{['afterInit'](){const _0x3fe8d1=this['editor'];if(!_0x3fe8d1['plugins']['has']('AlignmentEditing'))return;_0x3fe8d1['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const basicStylesPlugins$1=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends Plugin{['afterInit'](){const _0x3efcdb=this['editor'],_0x309553=_0x3efcdb['plugins']['get']('SuggestionsConversion');for(const _0x39798f of basicStylesPlugins$1){if(!_0x3efcdb['plugins']['has'](_0x39798f))continue;const _0x5e7a20=_0x39798f['slice'](0x0,-0x7)['toLowerCase']();_0x309553['registerInlineAttribute'](_0x5e7a20);}}}class SuggestionsConversionBookmark extends Plugin{['afterInit'](){const _0x3c393a=this['editor'],_0x4f06c6=_0x3c393a['plugins']['get']('SuggestionsConversion');_0x3c393a['plugins']['has']('BookmarkEditing')&&_0x4f06c6['registerBlockAttribute']('bookmarkId');}}const fontPlugins$1=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends Plugin{['afterInit'](){const _0xd0cf7f=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0xafaf95,commandName:_0x5ccb8d}of fontPlugins$1)this['editor']['plugins']['has'](_0xafaf95)&&_0xd0cf7f['registerInlineAttribute'](_0x5ccb8d);}}class SuggestionsConversionFootnotes extends Plugin{['afterInit'](){const {editor:_0x423a9f}=this;if(!_0x423a9f['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x35d40c=_0x423a9f['plugins']['get']('SuggestionsConversion');_0x35d40c['registerBlockAttribute']('footnotesListStyle'),_0x35d40c['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends Plugin{['afterInit'](){const _0x5bed04=this['editor'];if(!_0x5bed04['plugins']['has']('HighlightEditing'))return;_0x5bed04['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends Plugin{['afterInit'](){const _0x44937b=this['editor'];if(!_0x44937b['plugins']['has']('HtmlEmbed'))return;_0x44937b['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends Plugin{['afterInit'](){const _0xda7be2=this['editor'];if(!_0xda7be2['plugins']['has']('ImageEditing'))return;const _0x15caba=_0xda7be2['plugins']['get']('SuggestionsConversion');_0x15caba['registerBlockAttribute']('src'),_0xda7be2['plugins']['has']('ImageResize')&&_0x15caba['registerBlockAttribute']('resizedWidth'),_0xda7be2['plugins']['has']('ImageTextAlternativeEditing')&&_0x15caba['registerBlockAttribute']('alt'),_0xda7be2['plugins']['has']('PictureEditing')&&_0x15caba['registerBlockAttribute']('sources'),_0xda7be2['plugins']['has']('ImageSizeAttributes')&&(_0x15caba['registerBlockAttribute']('width'),_0x15caba['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends Plugin{['afterInit'](){const _0x3428f3=this['editor'],_0x14cf8f=_0x3428f3['plugins']['get']('SuggestionsConversion');_0x3428f3['plugins']['has']('IndentBlock')&&(_0x14cf8f['registerBlockAttribute']('blockIndent'),_0x3428f3['plugins']['has']('ListEditing')&&(_0x14cf8f['registerBlockAttribute']('blockIndentList'),_0x14cf8f['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends Plugin{['afterInit'](){const _0x230d00=this['editor'];if(!_0x230d00['plugins']['has']('LineHeight'))return;_0x230d00['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends Plugin{['afterInit'](){const _0x98356c=this['editor'];if(!_0x98356c['plugins']['has']('LinkEditing'))return;const _0x5ea84c=_0x98356c['plugins']['get']('SuggestionsConversion'),_0x169db1=_0x98356c['commands']['get']('link');_0x5ea84c['registerInlineAttribute']('linkHref');for(const _0x16e661 of _0x169db1['manualDecorators'])_0x5ea84c['registerInlineAttribute'](_0x16e661['id']);}}class SuggestionsConversionList extends Plugin{['afterInit'](){const _0x4785c6=this['editor'];if(!_0x4785c6['plugins']['has']('ListEditing'))return;const _0x501f38=_0x4785c6['plugins']['get']('SuggestionsConversion'),_0x67df21=_0x4785c6['plugins']['has']('TodoListEditing');_0x501f38['registerBlockAttribute']('listItemId'),_0x501f38['registerBlockAttribute']('listType'),_0x501f38['registerBlockAttribute']('listIndent'),_0x67df21&&_0x501f38['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x50a6be=this['editor']['config']['get']('list.properties'),_0x418101=this['editor']['plugins']['get']('SuggestionsConversion');_0x50a6be['styles']&&_0x418101['registerBlockAttribute']('listStyle'),_0x50a6be['reversed']&&_0x418101['registerBlockAttribute']('listReversed'),_0x50a6be['startIndex']&&_0x418101['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends Plugin{['afterInit'](){const _0x5d00f=this['editor'],_0x4ad8fa=_0x5d00f['plugins']['get']('SuggestionsConversion');_0x5d00f['plugins']['has']('MultiLevelList')&&_0x4ad8fa['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends Plugin{['afterInit'](){const _0x50592e=this['editor'];if(!_0x50592e['plugins']['has']('Style')||!_0x50592e['plugins']['has']('DataSchema')||!_0x50592e['config']['get']('style.definitions'))return;const _0x3eccff=_0x50592e['plugins']['get']('SuggestionsConversion'),_0x546f61=_0x50592e['config']['get']('style.definitions'),_0x40b330=_0x50592e['plugins']['get']('GeneralHtmlSupport'),_0x3763b3=_0x50592e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50592e['plugins']['get']('DataSchema'),_0x546f61),_0x92e08a=new Set();for(const _0x33a7ef of _0x3763b3['block']){const _0x37a931=_0x40b330['getGhsAttributeNameForElement'](_0x33a7ef['element']);_0x92e08a['add'](_0x37a931);}const _0x472641=new Set();for(const _0x34537a of _0x3763b3['inline']){const _0x1a70bb=_0x40b330['getGhsAttributeNameForElement'](_0x34537a['element']);_0x472641['add'](_0x1a70bb);for(const _0x4b3328 of _0x34537a['ghsAttributes'])_0x472641['add'](_0x4b3328);}for(const _0x24ef34 of _0x92e08a)_0x3eccff['registerBlockAttribute'](_0x24ef34);for(const _0x3e6447 of _0x472641)_0x3eccff['registerInlineAttribute'](_0x3e6447);}}class SuggestionsConversionTableHeadings extends Plugin{['afterInit'](){const _0x4d79aa=this['editor'];if(!_0x4d79aa['plugins']['has']('TableEditing'))return;const _0x2948f7=_0x4d79aa['plugins']['get']('SuggestionsConversion');_0x2948f7['registerBlockAttribute']('headingRows'),_0x2948f7['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends Plugin{['afterInit'](){const {plugins:_0x2fac43}=this['editor'];if(!_0x2fac43['has']('TablePropertiesEditing'))return;const _0x8ad0e5=_0x2fac43['get']('SuggestionsConversion'),_0x40f154=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x3b3d1d of _0x40f154)_0x8ad0e5['registerBlockAttribute'](_0x3b3d1d);}}class SuggestionsConversionTableLayout extends Plugin{['afterInit'](){const _0x36028b=this['editor'],_0x2f058c=_0x36028b['plugins']['get']('SuggestionsConversion');_0x36028b['plugins']['has']('TableLayout')&&_0x2f058c['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends Plugin{['afterInit'](){const _0x2610ca=this['editor'],_0x3981bc=this['editor']['plugins']['get']('SuggestionsConversion');_0x2610ca['plugins']['has']('Uploadcare')&&_0x2610ca['plugins']['has']('UploadcareImageEdit')&&_0x3981bc['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends Plugin{['afterInit'](){const _0x4166ca=this['editor'];if(!_0x4166ca['plugins']['has']('ShiftEnter'))return;const _0xd6a553=_0x4166ca['plugins']['get']('SuggestionsConversion'),_0x557e5c=(_0x185fc6,_0x1cf40f,_0xfe2163,_0x58d008)=>{if(_0x58d008&&!_0xfe2163['options']['showSuggestionHighlights'])return;if(!_0xfe2163['consumable']['test'](_0x1cf40f['markerRange'],_0x185fc6['name']))return;const _0x29af6f=_0x4166ca['model'];for(const _0x3bdd95 of _0x1cf40f['markerRange']['getItems']()){if(!_0x3bdd95['is']('element','softBreak'))continue;const _0x304eaa='deletion'==_0x1cf40f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x9fc48b,authorId:_0x4a8ca0}=splitSuggestionMarkerName(_0x1cf40f['markerName']),_0xca1220=_0xfe2163['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x304eaa,'data-suggestion':_0x9fc48b,'data-author-id':_0x4a8ca0}),_0x4cba92=_0xfe2163['mapper']['toViewPosition'](_0x29af6f['createPositionBefore'](_0x3bdd95));!_0x58d008&&_0xd6a553['_activeMarkers']['includes'](_0x1cf40f['markerName'])&&_0xfe2163['writer']['addClass']('ck-suggestion-marker--active',_0xca1220),_0xfe2163['writer']['insert'](_0x4cba92,_0xca1220),_0xfe2163['mapper']['bindElementToMarker'](_0xca1220,_0x1cf40f['markerName']);}};_0x4166ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x316082,_0x150903,_0x29085d)=>{_0x557e5c(_0x316082,_0x150903,_0x29085d,!0x1);},{'priority':'high'}),_0x4166ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x204ef0,_0x6a4b94,_0x4fda15)=>{_0x557e5c(_0x204ef0,_0x6a4b94,_0x4fda15,!0x1);},{'priority':'high'}),_0x4166ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2eebfc,_0x263ef3,_0xbefa45)=>{_0x557e5c(_0x2eebfc,_0x263ef3,_0xbefa45,!0x0);},{'priority':'high'}),_0x4166ca['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x40192d,_0x13c0be,_0x5417b9)=>{_0x557e5c(_0x40192d,_0x13c0be,_0x5417b9,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends Plugin{['afterInit'](){const _0x3c703c=this['editor'];_0x3c703c['plugins']['has']('MediaEmbedEditing')&&(_0x3c703c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5ae894,{writer:_0x4d7d75,options:_0x19aabb})=>{if(_0x19aabb['showSuggestionHighlights'])return _0x4d7d75['createEmptyElement']('div');},'converterPriority':'high'}),_0x3c703c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x58afc5,_0x441da5,_0xd8f376)=>{_0xd8f376['options']['showSuggestionHighlights']&&_0x58afc5['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends Plugin{['afterInit'](){const _0x2ae634=this['editor'];if(!_0x2ae634['plugins']['has']('Table'))return;_0x2ae634['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f85b5,_0x33385b,_0x21836e)=>{((_0x4daf28,_0x598c54,_0xcc0379)=>{if(!_0xcc0379['options']['showSuggestionHighlights'])return;const _0x538a03=_0x598c54['item'];if(!_0x538a03||!_0x538a03['is']('element','tableCell'))return;const _0x44bdc3=_0xcc0379['mapper']['toViewElement'](_0x538a03);if(_0x44bdc3){const {id:_0x52a215,authorId:_0x4fa26c}=splitSuggestionMarkerName(_0x598c54['markerName']);setHighlightHandling(_0x44bdc3,_0xcc0379['writer'],(_0x3e0502,_0x53c3d8,_0x33a82a)=>{_0x33a82a['addClass'](toArray$1(_0x53c3d8['classes']),_0x3e0502),_0x33a82a['setAttribute']('data-suggestion',_0x52a215,_0x3e0502),_0x33a82a['setAttribute']('data-author-id',_0x4fa26c,_0x3e0502);});}})(0x0,_0x33385b,_0x21836e);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends Plugin{['afterInit'](){const _0x573a6c=this['editor'];_0x573a6c['plugins']['has']('HorizontalLineEditing')&&_0x573a6c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2bd05d,{writer:_0x26aa5f,options:_0x557634})=>{if(!_0x557634['showSuggestionHighlights'])return null;const _0x6f96c=_0x26aa5f['createContainerElement']('div'),_0x161ce3=_0x26aa5f['createEmptyElement']('hr');return _0x26aa5f['addClass']('ck-horizontal-line',_0x6f96c),_0x26aa5f['insert'](_0x26aa5f['createPositionAt'](_0x6f96c,0x0),_0x161ce3),_0x6f96c;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends Plugin{['afterInit'](){const {plugins:_0x52d78a,model:_0x1dce78}=this['editor'];if(!_0x52d78a['has']('TableCellPropertiesEditing'))return;const _0xa68647=_0x52d78a['get']('SuggestionsConversion'),_0x274631=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x4bf242 of _0x274631)_0xa68647['registerBlockAttribute'](_0x4bf242);_0x1dce78['schema']['checkAttribute']('tableCell','tableCellType')&&_0xa68647['registerBlockAttribute']('tableCellType');}}class SuggestionsConversionTableFooters extends Plugin{['afterInit'](){const _0x52e39f=this['editor'];if(!_0x52e39f['plugins']['has']('TableEditing')||!_0x52e39f['config']['get']('table.enableFooters'))return;_0x52e39f['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('footerRows');}}class SuggestionsConversion extends Plugin{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionStylesDropdown,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableFooters,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a0318=this['editor'],_0x3c746f=(_0x493013,_0x31b1e1,_0x13bbfd)=>{const {id:_0x4b0cc8,authorId:_0x4d8e35,type:_0x3a0c0e,subType:_0x18f8b9}=splitSuggestionMarkerName(_0x493013['markerName']),_0x4397ec=['ck-suggestion-marker',this['_getClassName'](_0x3a0c0e,_0x18f8b9)];let _0x48e1b1=0xbb8;return!_0x13bbfd&&(this['_activeMarkers']['includes'](_0x493013['markerName'])&&(_0x4397ec['push']('ck-suggestion-marker--active'),_0x48e1b1=0xbc2)),('deletion'==_0x3a0c0e&&(_0x48e1b1+=0x5),{'classes':_0x4397ec,'attributes':{'data-suggestion':_0x4b0cc8,'data-author-id':_0x4d8e35},'priority':_0x48e1b1});};_0x4a0318['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x431b42,_0x5cf386)=>_0x3c746f(_0x431b42,0x0,!0x1)}),_0x4a0318['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x94cde9,_0x234624)=>_0x3c746f(_0x94cde9,0x0,!0x0)}),_0x4a0318['conversion']['for']('dataDowncast')['add'](_0x378bbf=>{_0x378bbf['on']('addMarker:suggestion',(_0x5e3343,_0x4d574d,_0x399dc4)=>{if(!_0x399dc4['options']['showSuggestionHighlights'])return;const _0x424d77=_0x4d574d['item'];if(!_0x424d77)return;const _0x34edf8=_0x399dc4['mapper']['toViewElement'](_0x424d77);_0x4a0318['model']['schema']['isObject'](_0x424d77)&&_0x34edf8&&!_0x34edf8['getCustomProperty']('widget')&&_0x34edf8['is']('containerElement')&&toWidget(_0x34edf8,_0x399dc4['writer']);},{'priority':'high'});});const _0xf2d21b=(_0x294332,_0x5cff83,_0x4eb010,_0x137b83,_0xd71040)=>{if(_0x137b83&&!_0x4eb010['options']['showSuggestionHighlights'])return;if(!_0x5cff83['item'])return;const {id:_0x58e76d,authorId:_0x90f32d,subType:_0x306453}=splitSuggestionMarkerName(_0x5cff83['markerName']);if(_0xd71040){const _0x2f51f0=_0x306453['split']('|')[0x0];if(!this['isBlockAttribute'](_0x2f51f0))return;}if(_0x5cff83['item']['is']('selection'))return void _0x4eb010['consumable']['consume'](_0x5cff83['item'],_0x294332['name']);const _0x5136a5=_0x4eb010['mapper']['toViewElement'](_0x5cff83['item']);if(_0x5cff83['item']['is']('element')&&_0x4a0318['model']['schema']['isBlock'](_0x5cff83['item'])&&!_0x5136a5['getCustomProperty']('addHighlight')){_0x4eb010['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5136a5),_0x4eb010['writer']['setAttribute']('data-suggestion',_0x58e76d,_0x5136a5),_0x4eb010['writer']['setAttribute']('data-author-id',_0x90f32d,_0x5136a5),_0x4eb010['mapper']['bindElementToMarker'](_0x5136a5,_0x5cff83['markerName']),_0x137b83||(this['_activeMarkers']['includes'](_0x5cff83['markerName'])?_0x4eb010['writer']['addClass']('ck-suggestion-marker--active',_0x5136a5):_0x4eb010['writer']['removeClass']('ck-suggestion-marker--active',_0x5136a5));for(const _0x4bd805 of _0x4a0318['model']['createRangeIn'](_0x5cff83['item'])['getItems']())_0x4eb010['consumable']['consume'](_0x4bd805,_0x294332['name']);_0x4eb010['consumable']['consume'](_0x5cff83['item'],_0x294332['name']);}},_0x2a9f96=(_0x52e84a,_0x55ba54,_0x517428,_0x3f1e5a)=>{const _0xcf6132=_0x517428['mapper']['markerNameToElements'](_0x55ba54['markerName']);if(_0xcf6132){if(_0x3f1e5a){const {subType:_0x1cacbd}=splitSuggestionMarkerName(_0x55ba54['markerName']),_0x33f5af=_0x1cacbd['split']('|')[0x0];if(!this['isBlockAttribute'](_0x33f5af))return;}for(const _0x5a1537 of _0xcf6132)_0x5a1537['getCustomProperty']('addHighlight')||(_0x517428['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a1537),_0x517428['writer']['removeAttribute']('data-suggestion',_0x5a1537),_0x517428['writer']['removeAttribute']('data-author-id',_0x5a1537),_0x517428['mapper']['unbindElementFromMarkerName'](_0x5a1537,_0x55ba54['markerName']));}};_0x4a0318['conversion']['for']('editingDowncast')['add'](_0xd6b42e=>{_0xd6b42e['on']('addMarker:suggestion:formatBlock',(_0xa906ca,_0x37045a,_0x41b08c)=>{_0xf2d21b(_0xa906ca,_0x37045a,_0x41b08c,!0x1,!0x1);},{'priority':'high'});}),_0x4a0318['conversion']['for']('editingDowncast')['add'](_0x10207a=>{_0x10207a['on']('addMarker:suggestion:attribute',(_0x350854,_0x12302d,_0x2a03e4)=>{_0xf2d21b(_0x350854,_0x12302d,_0x2a03e4,!0x1,!0x0);},{'priority':'high'});}),_0x4a0318['conversion']['for']('editingDowncast')['add'](_0x1bd0c0=>{_0x1bd0c0['on']('removeMarker:suggestion:formatBlock',(_0x162000,_0x44d261,_0x4c1fa5)=>{_0x2a9f96(0x0,_0x44d261,_0x4c1fa5,!0x1);},{'priority':'high'});}),_0x4a0318['conversion']['for']('editingDowncast')['add'](_0x11d126=>{_0x11d126['on']('removeMarker:suggestion:attribute',(_0x25639d,_0x449646,_0x488c76)=>{_0x2a9f96(0x0,_0x449646,_0x488c76,!0x0);},{'priority':'high'});}),_0x4a0318['conversion']['for']('dataDowncast')['add'](_0x45e025=>{_0x45e025['on']('addMarker:suggestion:formatBlock',(_0x2c837a,_0x5245a1,_0x323f5f)=>{_0xf2d21b(_0x2c837a,_0x5245a1,_0x323f5f,!0x0,!0x1);},{'priority':'highest'});}),_0x4a0318['conversion']['for']('dataDowncast')['add'](_0x5d8d7f=>{_0x5d8d7f['on']('addMarker:suggestion:attribute',(_0x388e78,_0x409974,_0x17d8d6)=>{_0xf2d21b(_0x388e78,_0x409974,_0x17d8d6,!0x0,!0x0);},{'priority':'highest'});}),_0x4a0318['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdef1e1,_0x134eab)=>_0x134eab['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdef1e1['substr'](0xb)}});const _0x4ea821=(_0x47447e,_0x45e51b,_0x4d0dd9,_0x1e183a,_0x467543)=>{if(_0x1e183a&&!_0x4d0dd9['options']['showSuggestionHighlights'])return;if(!_0x4d0dd9['consumable']['test'](_0x45e51b['markerRange'],_0x47447e['name']))return;const _0xf8e0a5=this['_activeMarkers'],_0x18f280=_0x45e51b['markerRange']['getWalker'](),_0x4ae432=_0x45e51b['markerRange']['start'],_0x12aec3=_0x4a0318['model']['schema'];let _0x542c53=null,_0x1dc062=null,_0x33eb33=!0x1,_0x12cec7=!0x1;for(const _0x39e5cf of _0x18f280){const _0x13d337=_0x39e5cf['item'];_0x33eb33=_0x33eb33||_0x12aec3['isContent'](_0x13d337);const _0x486434=_0x4d0dd9['mapper']['toViewElement'](_0x13d337);if(_0x486434&&_0x486434['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39e5cf['type']&&(_0x12aec3['isBlock'](_0x13d337)&&!_0x12aec3['isLimit'](_0x13d337)&&(_0x13d337['nextSibling']||_0x4ae432['isAtEnd']?_0x542c53&&_0x542c53['parent']==_0x13d337||(_0x542c53=_0x13d337,_0x3939c3(_0x39e5cf['previousPosition']),_0x12cec7=!0x0):_0x1dc062=_0x1dc062||_0x39e5cf['previousPosition']));}function _0x3939c3(_0x1380c1){const {id:_0x8e30c8,authorId:_0x396d99}=splitSuggestionMarkerName(_0x45e51b['markerName']),_0x4b1234=_0x4d0dd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x467543,'data-suggestion':_0x8e30c8,'data-author-id':_0x396d99}),_0x19185b=_0x4d0dd9['mapper']['toViewPosition'](_0x1380c1);!_0x1e183a&&_0xf8e0a5['includes'](_0x45e51b['markerName'])&&_0x4d0dd9['writer']['addClass']('ck-suggestion-marker--active',_0x4b1234),_0x4d0dd9['writer']['insert'](_0x19185b,_0x4b1234),_0x4d0dd9['mapper']['bindElementToMarker'](_0x4b1234,_0x45e51b['markerName']);}_0x33eb33||_0x12cec7||!_0x1dc062||_0x3939c3(_0x1dc062);};_0x4a0318['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x317026,_0x484af,_0xee0867)=>{_0x4ea821(_0x317026,_0x484af,_0xee0867,!0x1,'merge');},{'priority':'high'}),_0x4a0318['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3859e7,_0x45ce29,_0x5d9db5)=>{_0x4ea821(_0x3859e7,_0x45ce29,_0x5d9db5,!0x0,'merge');},{'priority':'high'}),_0x4a0318['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d3437,_0x3e39d2,_0x290d69)=>{_0x4ea821(_0x5d3437,_0x3e39d2,_0x290d69,!0x1,'split');},{'priority':'high'}),_0x4a0318['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d7dcc,_0x4c697e,_0x38ede1)=>{_0x4ea821(_0x5d7dcc,_0x4c697e,_0x38ede1,!0x0,'split');},{'priority':'high'}),_0x4a0318['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30e96e,_0x4626a8,_0x3ead21)=>{((_0x4a3ca4,_0x136228,_0x1eaf4b)=>{const _0x4514e8=_0x1eaf4b['mapper']['markerNameToElements'](_0x136228['markerName']);if(_0x4514e8){for(const _0x3e4abf of _0x4514e8)(_0x3e4abf['hasClass']('ck-suggestion-marker-split')||_0x3e4abf['hasClass']('ck-suggestion-marker-merge'))&&(_0x1eaf4b['mapper']['unbindElementFromMarkerName'](_0x3e4abf,_0x136228['markerName']),_0x1eaf4b['writer']['remove'](_0x3e4abf));}})(0x0,_0x4626a8,_0x3ead21);},{'priority':'high'});const _0x459dae=(_0x51b79f,_0x450a6e,_0x26e964,_0x3fa6a8)=>{if(_0x3fa6a8&&!_0x26e964['options']['showSuggestionHighlights'])return;const _0x2605dc=_0x450a6e['markerRange']['start'],_0x2f77cb=_0x450a6e['markerRange']['end'],_0x81d91b=_0x4a0318['model']['schema'];if(!_0x2605dc['isTouching'](_0x2f77cb)||!_0x2605dc['nodeAfter'])return;const _0x35ab24=_0x2605dc['nodeAfter'];if(_0x81d91b['isBlock'](_0x35ab24)&&!_0x81d91b['isLimit'](_0x35ab24)&&_0x81d91b['checkChild'](_0x35ab24,'$text')){if(!_0x26e964['consumable']['consume'](_0x450a6e['markerRange'],_0x51b79f['name']))return;const {id:_0x236d48,authorId:_0x16245d}=splitSuggestionMarkerName(_0x450a6e['markerName']),_0x217fa7=_0x26e964['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x236d48,'data-author-id':_0x16245d}),_0x2c1762=_0x26e964['mapper']['toViewPosition'](_0x2f77cb);!_0x3fa6a8&&this['_activeMarkers']['includes'](_0x450a6e['markerName'])&&_0x26e964['writer']['addClass']('ck-suggestion-marker--active',_0x217fa7),_0x26e964['writer']['insert'](_0x2c1762,_0x217fa7),_0x26e964['mapper']['bindElementToMarker'](_0x217fa7,_0x450a6e['markerName']);}};_0x4a0318['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f2084,_0x53957d,_0x52b7fe)=>{_0x459dae(_0x2f2084,_0x53957d,_0x52b7fe,!0x1);},{'priority':'high'}),_0x4a0318['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x346581,_0x49814e,_0x530e27)=>{_0x459dae(_0x346581,_0x49814e,_0x530e27,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x44b63d,_0x592ec3,_0xa6d770)=>{this['_activeMarkers']=_0xa6d770['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x2cb022){this['_blockAttributeKeys']['add'](_0x2cb022);}['registerInlineAttribute'](_0x2acb26){this['_inlineAttributeKeys']['add'](_0x2acb26);}['isBlockAttribute'](_0x11de85){return this['_blockAttributeKeys']['has'](_0x11de85);}['isInlineAttribute'](_0x485612){return this['_inlineAttributeKeys']['has'](_0x485612);}['isRegisteredAttribute'](_0x4478a1){return this['isInlineAttribute'](_0x4478a1)||this['isBlockAttribute'](_0x4478a1);}['_getClassName'](_0x57e45c,_0x593b9a){if('attribute'!=_0x57e45c)return'ck-suggestion-marker-'+_0x57e45c;const _0x5bbdfa=_0x593b9a['split']('|')[0x0];return this['isBlockAttribute'](_0x5bbdfa)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0x1d2fa5){super('Invalid\x20DateTime:\x20'+_0x1d2fa5['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x32fb7c){super('Invalid\x20Interval:\x20'+_0x32fb7c['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0xf529da){super('Invalid\x20Duration:\x20'+_0xf529da['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x272133){super('Invalid\x20unit\x20'+_0x272133);}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super('Zone\x20is\x20an\x20abstract\x20class');}}const n='numeric',s='short',l='long',DATE_SHORT={'year':n,'month':n,'day':n},DATE_MED={'year':n,'month':s,'day':n},DATE_MED_WITH_WEEKDAY={'year':n,'month':s,'day':n,'weekday':s},DATE_FULL={'year':n,'month':l,'day':n},DATE_HUGE={'year':n,'month':l,'day':n,'weekday':l},TIME_SIMPLE={'hour':n,'minute':n},TIME_WITH_SECONDS={'hour':n,'minute':n,'second':n},TIME_WITH_SHORT_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':s},TIME_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':l},TIME_24_SIMPLE={'hour':n,'minute':n,'hourCycle':'h23'},TIME_24_WITH_SECONDS={'hour':n,'minute':n,'second':n,'hourCycle':'h23'},TIME_24_WITH_SHORT_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':s},TIME_24_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':l},DATETIME_SHORT={'year':n,'month':n,'day':n,'hour':n,'minute':n},DATETIME_SHORT_WITH_SECONDS={'year':n,'month':n,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED={'year':n,'month':s,'day':n,'hour':n,'minute':n},DATETIME_MED_WITH_SECONDS={'year':n,'month':s,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED_WITH_WEEKDAY={'year':n,'month':s,'day':n,'weekday':s,'hour':n,'minute':n},DATETIME_FULL={'year':n,'month':l,'day':n,'hour':n,'minute':n,'timeZoneName':s},DATETIME_FULL_WITH_SECONDS={'year':n,'month':l,'day':n,'hour':n,'minute':n,'second':n,'timeZoneName':s},DATETIME_HUGE={'year':n,'month':l,'day':n,'weekday':l,'hour':n,'minute':n,'timeZoneName':l},DATETIME_HUGE_WITH_SECONDS={'year':n,'month':l,'day':n,'weekday':l,'hour':n,'minute':n,'second':n,'timeZoneName':l};class Zone{get['type'](){throw new ZoneIsAbstractError();}get['name'](){throw new ZoneIsAbstractError();}get['ianaName'](){return this['name'];}get['isUniversal'](){throw new ZoneIsAbstractError();}['offsetName'](_0x3b2b22,_0xede4fe){throw new ZoneIsAbstractError();}['formatOffset'](_0x8d490e,_0x28f1e3){throw new ZoneIsAbstractError();}['offset'](_0x465997){throw new ZoneIsAbstractError();}['equals'](_0x3e3b53){throw new ZoneIsAbstractError();}get['isValid'](){throw new ZoneIsAbstractError();}}let singleton$1=null;class SystemZone extends Zone{static get['instance'](){return null===singleton$1&&(singleton$1=new SystemZone()),singleton$1;}get['type'](){return'system';}get['name'](){return new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x115f48,{format:_0x3bebe1,locale:_0x2daf4c}){return parseZoneInfo(_0x115f48,_0x3bebe1,_0x2daf4c);}['formatOffset'](_0x4cea0a,_0x2d312b){return formatOffset(this['offset'](_0x4cea0a),_0x2d312b);}['offset'](_0x350fec){return-new Date(_0x350fec)['getTimezoneOffset']();}['equals'](_0x291740){return'system'===_0x291740['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0x2289f2){let _0x2e78ec=dtfCache['get'](_0x2289f2);return void 0x0===_0x2e78ec&&(_0x2e78ec=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0x2289f2,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0x2289f2,_0x2e78ec)),_0x2e78ec;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x368ec6,_0x3d4eec){const _0x46913b=_0x368ec6['format'](_0x3d4eec)['replace'](/\u200E/g,''),_0x1e30a3=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0x46913b),[,_0x266438,_0x1c43be,_0x25c530,_0x7911ac,_0x5f164b,_0x513fc0,_0x1f6b0e]=_0x1e30a3;return[_0x25c530,_0x266438,_0x1c43be,_0x7911ac,_0x5f164b,_0x513fc0,_0x1f6b0e];}function partsOffset(_0x4afbdb,_0x1ca071){const _0x2d38fe=_0x4afbdb['formatToParts'](_0x1ca071),_0x4fa40f=[];for(let _0x370ba3=0x0;_0x370ba3<_0x2d38fe['length'];_0x370ba3++){const {type:_0x3d8ea8,value:_0x37bd60}=_0x2d38fe[_0x370ba3],_0x4b7fdf=typeToPos[_0x3d8ea8];'era'===_0x3d8ea8?_0x4fa40f[_0x4b7fdf]=_0x37bd60:isUndefined(_0x4b7fdf)||(_0x4fa40f[_0x4b7fdf]=parseInt(_0x37bd60,0xa));}return _0x4fa40f;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x42de40){let _0x2112a8=ianaZoneCache['get'](_0x42de40);return void 0x0===_0x2112a8&&ianaZoneCache['set'](_0x42de40,_0x2112a8=new IANAZone(_0x42de40)),_0x2112a8;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x3bce4c){return this['isValidZone'](_0x3bce4c);}static['isValidZone'](_0x179563){if(!_0x179563)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x179563})['format'](),!0x0;}catch(_0x53fd90){return!0x1;}}constructor(_0x3402c5){super(),this['zoneName']=_0x3402c5,this['valid']=IANAZone['isValidZone'](_0x3402c5);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0xf545ba,{format:_0x1359a2,locale:_0x8568a7}){return parseZoneInfo(_0xf545ba,_0x1359a2,_0x8568a7,this['name']);}['formatOffset'](_0x4d9fb5,_0x36a3dc){return formatOffset(this['offset'](_0x4d9fb5),_0x36a3dc);}['offset'](_0x30fec6){if(!this['valid'])return NaN;const _0x362da6=new Date(_0x30fec6);if(isNaN(_0x362da6))return NaN;const _0x1e22cc=makeDTF(this['name']);let [_0x4632b1,_0x44454a,_0x4e2df4,_0x5869d9,_0x1d994b,_0x4cefcc,_0x220893]=_0x1e22cc['formatToParts']?partsOffset(_0x1e22cc,_0x362da6):hackyOffset(_0x1e22cc,_0x362da6);'BC'===_0x5869d9&&(_0x4632b1=0x1-Math['abs'](_0x4632b1));let _0x151f64=+_0x362da6;const _0x52dd7a=_0x151f64%0x3e8;return _0x151f64-=_0x52dd7a>=0x0?_0x52dd7a:0x3e8+_0x52dd7a,(objToLocalTS({'year':_0x4632b1,'month':_0x44454a,'day':_0x4e2df4,'hour':0x18===_0x1d994b?0x0:_0x1d994b,'minute':_0x4cefcc,'second':_0x220893,'millisecond':0x0})-_0x151f64)/0xea60;}['equals'](_0x464912){return'iana'===_0x464912['type']&&_0x464912['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x5eaf26,_0x110e4c={}){const _0x120654=JSON['stringify']([_0x5eaf26,_0x110e4c]);let _0x548ada=intlLFCache[_0x120654];return _0x548ada||(_0x548ada=new Intl['ListFormat'](_0x5eaf26,_0x110e4c),intlLFCache[_0x120654]=_0x548ada),_0x548ada;}const intlDTCache=new Map();function getCachedDTF(_0x5bd621,_0x3a0a17={}){const _0x2d55c7=JSON['stringify']([_0x5bd621,_0x3a0a17]);let _0x4c72d7=intlDTCache['get'](_0x2d55c7);return void 0x0===_0x4c72d7&&(_0x4c72d7=new Intl['DateTimeFormat'](_0x5bd621,_0x3a0a17),intlDTCache['set'](_0x2d55c7,_0x4c72d7)),_0x4c72d7;}const intlNumCache=new Map();function getCachedINF(_0x1a5c59,_0x20fe56={}){const _0x4346a1=JSON['stringify']([_0x1a5c59,_0x20fe56]);let _0x5339a3=intlNumCache['get'](_0x4346a1);return void 0x0===_0x5339a3&&(_0x5339a3=new Intl['NumberFormat'](_0x1a5c59,_0x20fe56),intlNumCache['set'](_0x4346a1,_0x5339a3)),_0x5339a3;}const intlRelCache=new Map();function getCachedRTF(_0x23bc92,_0x3a00b0={}){const {base:_0x50a017,..._0x2272b8}=_0x3a00b0,_0x34206a=JSON['stringify']([_0x23bc92,_0x2272b8]);let _0x14a065=intlRelCache['get'](_0x34206a);return void 0x0===_0x14a065&&(_0x14a065=new Intl['RelativeTimeFormat'](_0x23bc92,_0x3a00b0),intlRelCache['set'](_0x34206a,_0x14a065)),_0x14a065;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x4dabfc){let _0x1d2a2c=intlResolvedOptionsCache['get'](_0x4dabfc);return void 0x0===_0x1d2a2c&&(_0x1d2a2c=new Intl['DateTimeFormat'](_0x4dabfc)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x4dabfc,_0x1d2a2c)),_0x1d2a2c;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x460f8d){let _0x5a3011=weekInfoCache['get'](_0x460f8d);if(!_0x5a3011){const _0x3433c8=new Intl['Locale'](_0x460f8d);_0x5a3011='getWeekInfo'in _0x3433c8?_0x3433c8['getWeekInfo']():_0x3433c8['weekInfo'],'minimalDays'in _0x5a3011||(_0x5a3011={...fallbackWeekSettings,..._0x5a3011}),weekInfoCache['set'](_0x460f8d,_0x5a3011);}return _0x5a3011;}function parseLocaleString(_0x2b29aa){const _0x291850=_0x2b29aa['indexOf']('-x-');-0x1!==_0x291850&&(_0x2b29aa=_0x2b29aa['substring'](0x0,_0x291850));const _0xc558c9=_0x2b29aa['indexOf']('-u-');if(-0x1===_0xc558c9)return[_0x2b29aa];{let _0x2dfe72,_0x49b88e;try{_0x2dfe72=getCachedDTF(_0x2b29aa)['resolvedOptions'](),_0x49b88e=_0x2b29aa;}catch(_0x363fad){const _0x14a5da=_0x2b29aa['substring'](0x0,_0xc558c9);_0x2dfe72=getCachedDTF(_0x14a5da)['resolvedOptions'](),_0x49b88e=_0x14a5da;}const {numberingSystem:_0x1a616d,calendar:_0x57f490}=_0x2dfe72;return[_0x49b88e,_0x1a616d,_0x57f490];}}function intlConfigString(_0x53ba94,_0x21af0f,_0x246fe8){return _0x246fe8||_0x21af0f?(_0x53ba94['includes']('-u-')||(_0x53ba94+='-u'),_0x246fe8&&(_0x53ba94+='-ca-'+_0x246fe8),_0x21af0f&&(_0x53ba94+='-nu-'+_0x21af0f),_0x53ba94):_0x53ba94;}function mapMonths(_0x237855){const _0x1b5e6b=[];for(let _0x1d3a06=0x1;_0x1d3a06<=0xc;_0x1d3a06++){const _0x33f3b8=DateTime['utc'](0x7d9,_0x1d3a06,0x1);_0x1b5e6b['push'](_0x237855(_0x33f3b8));}return _0x1b5e6b;}function mapWeekdays(_0x5017c7){const _0x66c4d3=[];for(let _0x175217=0x1;_0x175217<=0x7;_0x175217++){const _0x237d56=DateTime['utc'](0x7e0,0xb,0xd+_0x175217);_0x66c4d3['push'](_0x5017c7(_0x237d56));}return _0x66c4d3;}function listStuff(_0x5ec3f7,_0x414bb8,_0x36647e,_0x18533e){const _0x305adc=_0x5ec3f7['listingMode']();return'error'===_0x305adc?null:'en'===_0x305adc?_0x36647e(_0x414bb8):_0x18533e(_0x414bb8);}function supportsFastNumbers(_0x836e9){return(!_0x836e9['numberingSystem']||'latn'===_0x836e9['numberingSystem'])&&('latn'===_0x836e9['numberingSystem']||!_0x836e9['locale']||_0x836e9['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x836e9['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0x5deae8,_0x287696,_0x1c8273){this['padTo']=_0x1c8273['padTo']||0x0,this['floor']=_0x1c8273['floor']||!0x1;const {padTo:_0x16bd97,floor:_0x526f72,..._0x51fb11}=_0x1c8273;if(!_0x287696||Object['keys'](_0x51fb11)['length']>0x0){const _0x496269={'useGrouping':!0x1,..._0x1c8273};_0x1c8273['padTo']>0x0&&(_0x496269['minimumIntegerDigits']=_0x1c8273['padTo']),this['inf']=getCachedINF(_0x5deae8,_0x496269);}}['format'](_0x50d0f5){if(this['inf']){const _0x57ab3f=this['floor']?Math['floor'](_0x50d0f5):_0x50d0f5;return this['inf']['format'](_0x57ab3f);}return padStart(this['floor']?Math['floor'](_0x50d0f5):roundTo(_0x50d0f5,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x3fd913,_0x216b35,_0x2f5ab5){let _0x3ca28f;if(this['opts']=_0x2f5ab5,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x3fd913;else{if('fixed'===_0x3fd913['zone']['type']){const _0x438cf7=_0x3fd913['offset']/0x3c*-0x1,_0xf305ee=_0x438cf7>=0x0?'Etc/GMT+'+_0x438cf7:'Etc/GMT'+_0x438cf7;0x0!==_0x3fd913['offset']&&IANAZone['create'](_0xf305ee)['valid']?(_0x3ca28f=_0xf305ee,this['dt']=_0x3fd913):(_0x3ca28f='UTC',this['dt']=0x0===_0x3fd913['offset']?_0x3fd913:_0x3fd913['setZone']('UTC')['plus']({'minutes':_0x3fd913['offset']}),this['originalZone']=_0x3fd913['zone']);}else'system'===_0x3fd913['zone']['type']?this['dt']=_0x3fd913:'iana'===_0x3fd913['zone']['type']?(this['dt']=_0x3fd913,_0x3ca28f=_0x3fd913['zone']['name']):(_0x3ca28f='UTC',this['dt']=_0x3fd913['setZone']('UTC')['plus']({'minutes':_0x3fd913['offset']}),this['originalZone']=_0x3fd913['zone']);}const _0x15efe9={...this['opts']};_0x15efe9['timeZone']=_0x15efe9['timeZone']||_0x3ca28f,this['dtf']=getCachedDTF(_0x216b35,_0x15efe9);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x1547ed})=>_0x1547ed)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0xc941f=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0xc941f['map'](_0x25aede=>{if('timeZoneName'===_0x25aede['type']){const _0x361a93=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x25aede,'value':_0x361a93};}return _0x25aede;}):_0xc941f;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x89cbc5,_0x24359d,_0x2000ae){this['opts']={'style':'long',..._0x2000ae},!_0x24359d&&hasRelative()&&(this['rtf']=getCachedRTF(_0x89cbc5,_0x2000ae));}['format'](_0x3aa332,_0x56fd80){return this['rtf']?this['rtf']['format'](_0x3aa332,_0x56fd80):formatRelativeTime(_0x56fd80,_0x3aa332,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x3a3c8e,_0x5e48ac){return this['rtf']?this['rtf']['formatToParts'](_0x3a3c8e,_0x5e48ac):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0xfcd98c){return Locale['create'](_0xfcd98c['locale'],_0xfcd98c['numberingSystem'],_0xfcd98c['outputCalendar'],_0xfcd98c['weekSettings'],_0xfcd98c['defaultToEN']);}static['create'](_0x214dcb,_0x11dc54,_0x5e261f,_0x5e4d01,_0x5bbfcd=!0x1){const _0x567009=_0x214dcb||Settings['defaultLocale'],_0x31acd1=_0x567009||(_0x5bbfcd?'en-US':systemLocale()),_0x3e009d=_0x11dc54||Settings['defaultNumberingSystem'],_0x137ea3=_0x5e261f||Settings['defaultOutputCalendar'],_0x1e749d=validateWeekSettings(_0x5e4d01)||Settings['defaultWeekSettings'];return new Locale(_0x31acd1,_0x3e009d,_0x137ea3,_0x1e749d,_0x567009);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x43fbe9,numberingSystem:_0x142b4c,outputCalendar:_0x193b6d,weekSettings:_0x2dcf72}={}){return Locale['create'](_0x43fbe9,_0x142b4c,_0x193b6d,_0x2dcf72);}constructor(_0xee820c,_0x5cf7f7,_0x3f3283,_0x2e8964,_0xfcfeb3){const [_0x1273d0,_0x2eaa60,_0x51f241]=parseLocaleString(_0xee820c);this['locale']=_0x1273d0,this['numberingSystem']=_0x5cf7f7||_0x2eaa60||null,this['outputCalendar']=_0x3f3283||_0x51f241||null,this['weekSettings']=_0x2e8964,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0xfcfeb3,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0xe26c96=this['isEnglish'](),_0x5e8a8e=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0xe26c96&&_0x5e8a8e?'en':'intl';}['clone'](_0x3ef82a){return _0x3ef82a&&0x0!==Object['getOwnPropertyNames'](_0x3ef82a)['length']?Locale['create'](_0x3ef82a['locale']||this['specifiedLocale'],_0x3ef82a['numberingSystem']||this['numberingSystem'],_0x3ef82a['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x3ef82a['weekSettings'])||this['weekSettings'],_0x3ef82a['defaultToEN']||!0x1):this;}['redefaultToEN'](_0x19c374={}){return this['clone']({..._0x19c374,'defaultToEN':!0x0});}['redefaultToSystem'](_0x1c07ee={}){return this['clone']({..._0x1c07ee,'defaultToEN':!0x1});}['months'](_0x70fbb6,_0x2c334d=!0x1){return listStuff(this,_0x70fbb6,months,()=>{const _0x5bb3ba=_0x2c334d?{'month':_0x70fbb6,'day':'numeric'}:{'month':_0x70fbb6},_0x3ae7af=_0x2c334d?'format':'standalone';return this['monthsCache'][_0x3ae7af][_0x70fbb6]||(this['monthsCache'][_0x3ae7af][_0x70fbb6]=mapMonths(_0x163970=>this['extract'](_0x163970,_0x5bb3ba,'month'))),this['monthsCache'][_0x3ae7af][_0x70fbb6];});}['weekdays'](_0x1472fa,_0x2a4dea=!0x1){return listStuff(this,_0x1472fa,weekdays,()=>{const _0x14536b=_0x2a4dea?{'weekday':_0x1472fa,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x1472fa},_0x266dea=_0x2a4dea?'format':'standalone';return this['weekdaysCache'][_0x266dea][_0x1472fa]||(this['weekdaysCache'][_0x266dea][_0x1472fa]=mapWeekdays(_0x593aa5=>this['extract'](_0x593aa5,_0x14536b,'weekday'))),this['weekdaysCache'][_0x266dea][_0x1472fa];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x2e2a8f={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x4e2fc3=>this['extract'](_0x4e2fc3,_0x2e2a8f,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x2e64cf){return listStuff(this,_0x2e64cf,eras,()=>{const _0x592a60={'era':_0x2e64cf};return this['eraCache'][_0x2e64cf]||(this['eraCache'][_0x2e64cf]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0x1f602a=>this['extract'](_0x1f602a,_0x592a60,'era'))),this['eraCache'][_0x2e64cf];});}['extract'](_0x33e793,_0x10dce4,_0x300f64){const _0x4a017a=this['dtFormatter'](_0x33e793,_0x10dce4)['formatToParts']()['find'](_0x391078=>_0x391078['type']['toLowerCase']()===_0x300f64);return _0x4a017a?_0x4a017a['value']:null;}['numberFormatter'](_0xd4695f={}){return new PolyNumberFormatter(this['intl'],_0xd4695f['forceSimple']||this['fastNumbers'],_0xd4695f);}['dtFormatter'](_0x41fbb9,_0x44f137={}){return new PolyDateFormatter(_0x41fbb9,this['intl'],_0x44f137);}['relFormatter'](_0x28231e={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0x28231e);}['listFormatter'](_0x83cd7c={}){return getCachedLF(this['intl'],_0x83cd7c);}['isEnglish'](){return'en'===this['locale']||'en-us'===this['locale']['toLowerCase']()||getCachedIntResolvedOptions(this['intl'])['locale']['startsWith']('en-us');}['getWeekSettings'](){return this['weekSettings']?this['weekSettings']:hasLocaleWeekInfo()?getCachedWeekInfo(this['locale']):fallbackWeekSettings;}['getStartOfWeek'](){return this['getWeekSettings']()['firstDay'];}['getMinDaysInFirstWeek'](){return this['getWeekSettings']()['minimalDays'];}['getWeekendDays'](){return this['getWeekSettings']()['weekend'];}['equals'](_0xfc9b0e){return this['locale']===_0xfc9b0e['locale']&&this['numberingSystem']===_0xfc9b0e['numberingSystem']&&this['outputCalendar']===_0xfc9b0e['outputCalendar'];}['toString'](){return'Locale('+this['locale']+',\x20'+this['numberingSystem']+',\x20'+this['outputCalendar']+')';}}let singleton=null;class FixedOffsetZone extends Zone{static get['utcInstance'](){return null===singleton&&(singleton=new FixedOffsetZone(0x0)),singleton;}static['instance'](_0x311f13){return 0x0===_0x311f13?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x311f13);}static['parseSpecifier'](_0x3e15fd){if(_0x3e15fd){const _0x30861c=_0x3e15fd['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x30861c)return new FixedOffsetZone(signedOffset(_0x30861c[0x1],_0x30861c[0x2]));}return null;}constructor(_0x36df01){super(),this['fixed']=_0x36df01;}get['type'](){return'fixed';}get['name'](){return 0x0===this['fixed']?'UTC':'UTC'+formatOffset(this['fixed'],'narrow');}get['ianaName'](){return 0x0===this['fixed']?'Etc/UTC':'Etc/GMT'+formatOffset(-this['fixed'],'narrow');}['offsetName'](){return this['name'];}['formatOffset'](_0x300d7d,_0x29add7){return formatOffset(this['fixed'],_0x29add7);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x5178e1){return'fixed'===_0x5178e1['type']&&_0x5178e1['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x313ee6){super(),this['zoneName']=_0x313ee6;}get['type'](){return'invalid';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](){return null;}['formatOffset'](){return'';}['offset'](){return NaN;}['equals'](){return!0x1;}get['isValid'](){return!0x1;}}function normalizeZone(_0x265095,_0x48fe10){if(isUndefined(_0x265095)||null===_0x265095)return _0x48fe10;if(_0x265095 instanceof Zone)return _0x265095;if(isString(_0x265095)){const _0x1c3a4a=_0x265095['toLowerCase']();return'default'===_0x1c3a4a?_0x48fe10:'local'===_0x1c3a4a||'system'===_0x1c3a4a?SystemZone['instance']:'utc'===_0x1c3a4a||'gmt'===_0x1c3a4a?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x1c3a4a)||IANAZone['create'](_0x265095);}return isNumber(_0x265095)?FixedOffsetZone['instance'](_0x265095):'object'==typeof _0x265095&&'offset'in _0x265095&&'function'==typeof _0x265095['offset']?_0x265095:new InvalidZone(_0x265095);}const numberingSystems={'arab':'[٠-٩]','arabext':'[۰-۹]','bali':'[᭐-᭙]','beng':'[০-৯]','deva':'[०-९]','fullwide':'[０-９]','gujr':'[૦-૯]','hanidec':'[〇|一|二|三|四|五|六|七|八|九]','khmr':'[០-៩]','knda':'[೦-೯]','laoo':'[໐-໙]','limb':'[᥆-᥏]','mlym':'[൦-൯]','mong':'[᠐-᠙]','mymr':'[၀-၉]','orya':'[୦-୯]','tamldec':'[௦-௯]','telu':'[౦-౯]','thai':'[๐-๙]','tibt':'[༠-༩]','latn':'\x5cd'},numberingSystemsUTF16={'arab':[0x660,0x669],'arabext':[0x6f0,0x6f9],'bali':[0x1b50,0x1b59],'beng':[0x9e6,0x9ef],'deva':[0x966,0x96f],'fullwide':[0xff10,0xff17],'gujr':[0xae6,0xaef],'khmr':[0x17e0,0x17e9],'knda':[0xce6,0xcef],'laoo':[0xed0,0xed9],'limb':[0x1946,0x194f],'mlym':[0xd66,0xd6f],'mong':[0x1810,0x1819],'mymr':[0x1040,0x1049],'orya':[0xb66,0xb6f],'tamldec':[0xbe6,0xbef],'telu':[0xc66,0xc6f],'thai':[0xe50,0xe59],'tibt':[0xf20,0xf29]},hanidecChars=numberingSystems['hanidec']['replace'](/[\[|\]]/g,'')['split']('');function parseDigits(_0x2f8b4f){let _0xe6c7a1=parseInt(_0x2f8b4f,0xa);if(isNaN(_0xe6c7a1)){_0xe6c7a1='';for(let _0x2e316=0x0;_0x2e316<_0x2f8b4f['length'];_0x2e316++){const _0x5cdb55=_0x2f8b4f['charCodeAt'](_0x2e316);if(-0x1!==_0x2f8b4f[_0x2e316]['search'](numberingSystems['hanidec']))_0xe6c7a1+=hanidecChars['indexOf'](_0x2f8b4f[_0x2e316]);else for(const _0x4e7fb7 in numberingSystemsUTF16){const [_0xc215b6,_0x28b89f]=numberingSystemsUTF16[_0x4e7fb7];_0x5cdb55>=_0xc215b6&&_0x5cdb55<=_0x28b89f&&(_0xe6c7a1+=_0x5cdb55-_0xc215b6);}}return parseInt(_0xe6c7a1,0xa);}return _0xe6c7a1;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0x55b9be},_0x3b7400=''){const _0x14ee65=_0x55b9be||'latn';let _0x54fc65=digitRegexCache['get'](_0x14ee65);void 0x0===_0x54fc65&&(_0x54fc65=new Map(),digitRegexCache['set'](_0x14ee65,_0x54fc65));let _0x2a459b=_0x54fc65['get'](_0x3b7400);return void 0x0===_0x2a459b&&(_0x2a459b=new RegExp(''+numberingSystems[_0x14ee65]+_0x3b7400),_0x54fc65['set'](_0x3b7400,_0x2a459b)),_0x2a459b;}let now=()=>Date['now'](),defaultZone='system',defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=0x3c,throwOnInvalid,defaultWeekSettings=null;class Settings{static get['now'](){return now;}static set['now'](_0x395d2c){now=_0x395d2c;}static set['defaultZone'](_0x27d42d){defaultZone=_0x27d42d;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x784316){defaultLocale=_0x784316;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0x47bfcc){defaultNumberingSystem=_0x47bfcc;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0x408577){defaultOutputCalendar=_0x408577;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x3cc900){defaultWeekSettings=validateWeekSettings(_0x3cc900);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0x5029eb){twoDigitCutoffYear=_0x5029eb%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x18af8b,_0x44f005){this['reason']=_0x18af8b,this['explanation']=_0x44f005;}['toMessage'](){return this['explanation']?this['reason']+':\x20'+this['explanation']:this['reason'];}}const nonLeapLadder=[0x0,0x1f,0x3b,0x5a,0x78,0x97,0xb5,0xd4,0xf3,0x111,0x130,0x14e],leapLadder=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function unitOutOfRange(_0x5daa83,_0x4f0b60){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x4f0b60+'\x20(of\x20type\x20'+typeof _0x4f0b60+')\x20as\x20a\x20'+_0x5daa83+',\x20which\x20is\x20invalid');}function dayOfWeek(_0x4512ae,_0x51d1bc,_0x67dda9){const _0x3f3250=new Date(Date['UTC'](_0x4512ae,_0x51d1bc-0x1,_0x67dda9));_0x4512ae<0x64&&_0x4512ae>=0x0&&_0x3f3250['setUTCFullYear'](_0x3f3250['getUTCFullYear']()-0x76c);const _0x32cbb1=_0x3f3250['getUTCDay']();return 0x0===_0x32cbb1?0x7:_0x32cbb1;}function computeOrdinal(_0x1a88f9,_0x4c5e77,_0x325fd6){return _0x325fd6+(isLeapYear(_0x1a88f9)?leapLadder:nonLeapLadder)[_0x4c5e77-0x1];}function uncomputeOrdinal(_0x668369,_0x16bf87){const _0x404770=isLeapYear(_0x668369)?leapLadder:nonLeapLadder,_0x37473b=_0x404770['findIndex'](_0x5f557d=>_0x5f557d<_0x16bf87);return{'month':_0x37473b+0x1,'day':_0x16bf87-_0x404770[_0x37473b]};}function isoWeekdayToLocal(_0x357175,_0x252d39){return(_0x357175-_0x252d39+0x7)%0x7+0x1;}function gregorianToWeek(_0x431b3b,_0x933b48=0x4,_0x129372=0x1){const {year:_0x1cc089,month:_0x36a84e,day:_0x2527f5}=_0x431b3b,_0x316436=computeOrdinal(_0x1cc089,_0x36a84e,_0x2527f5),_0x5201bf=isoWeekdayToLocal(dayOfWeek(_0x1cc089,_0x36a84e,_0x2527f5),_0x129372);let _0x2ac1d7,_0x251c6d=Math['floor']((_0x316436-_0x5201bf+0xe-_0x933b48)/0x7);return _0x251c6d<0x1?(_0x2ac1d7=_0x1cc089-0x1,_0x251c6d=weeksInWeekYear(_0x2ac1d7,_0x933b48,_0x129372)):_0x251c6d>weeksInWeekYear(_0x1cc089,_0x933b48,_0x129372)?(_0x2ac1d7=_0x1cc089+0x1,_0x251c6d=0x1):_0x2ac1d7=_0x1cc089,{'weekYear':_0x2ac1d7,'weekNumber':_0x251c6d,'weekday':_0x5201bf,...timeObject(_0x431b3b)};}function weekToGregorian(_0x47e7cd,_0x33ac72=0x4,_0x45be2e=0x1){const {weekYear:_0x5213ba,weekNumber:_0x546651,weekday:_0x3945cb}=_0x47e7cd,_0x4a292b=isoWeekdayToLocal(dayOfWeek(_0x5213ba,0x1,_0x33ac72),_0x45be2e),_0x3f99ab=daysInYear(_0x5213ba);let _0x22f7cb,_0x290ec9=0x7*_0x546651+_0x3945cb-_0x4a292b-0x7+_0x33ac72;_0x290ec9<0x1?(_0x22f7cb=_0x5213ba-0x1,_0x290ec9+=daysInYear(_0x22f7cb)):_0x290ec9>_0x3f99ab?(_0x22f7cb=_0x5213ba+0x1,_0x290ec9-=daysInYear(_0x5213ba)):_0x22f7cb=_0x5213ba;const {month:_0x5c090b,day:_0x2f83e0}=uncomputeOrdinal(_0x22f7cb,_0x290ec9);return{'year':_0x22f7cb,'month':_0x5c090b,'day':_0x2f83e0,...timeObject(_0x47e7cd)};}function gregorianToOrdinal(_0x26da34){const {year:_0x34c8d3,month:_0x3412ac,day:_0x333aae}=_0x26da34;return{'year':_0x34c8d3,'ordinal':computeOrdinal(_0x34c8d3,_0x3412ac,_0x333aae),...timeObject(_0x26da34)};}function ordinalToGregorian(_0x36a933){const {year:_0x3da962,ordinal:_0x248c4e}=_0x36a933,{month:_0x12a740,day:_0x232cb9}=uncomputeOrdinal(_0x3da962,_0x248c4e);return{'year':_0x3da962,'month':_0x12a740,'day':_0x232cb9,...timeObject(_0x36a933)};}function usesLocalWeekValues(_0x40eb46,_0x3c85a8){if(!isUndefined(_0x40eb46['localWeekday'])||!isUndefined(_0x40eb46['localWeekNumber'])||!isUndefined(_0x40eb46['localWeekYear'])){if(!isUndefined(_0x40eb46['weekday'])||!isUndefined(_0x40eb46['weekNumber'])||!isUndefined(_0x40eb46['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x40eb46['localWeekday'])||(_0x40eb46['weekday']=_0x40eb46['localWeekday']),isUndefined(_0x40eb46['localWeekNumber'])||(_0x40eb46['weekNumber']=_0x40eb46['localWeekNumber']),isUndefined(_0x40eb46['localWeekYear'])||(_0x40eb46['weekYear']=_0x40eb46['localWeekYear']),delete _0x40eb46['localWeekday'],delete _0x40eb46['localWeekNumber'],delete _0x40eb46['localWeekYear'],{'minDaysInFirstWeek':_0x3c85a8['getMinDaysInFirstWeek'](),'startOfWeek':_0x3c85a8['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x320967,_0x31400d=0x4,_0x267a80=0x1){const _0x469116=isInteger$1(_0x320967['weekYear']),_0x37d4f9=integerBetween(_0x320967['weekNumber'],0x1,weeksInWeekYear(_0x320967['weekYear'],_0x31400d,_0x267a80)),_0x571145=integerBetween(_0x320967['weekday'],0x1,0x7);return _0x469116?_0x37d4f9?!_0x571145&&unitOutOfRange('weekday',_0x320967['weekday']):unitOutOfRange('week',_0x320967['weekNumber']):unitOutOfRange('weekYear',_0x320967['weekYear']);}function hasInvalidOrdinalData(_0x4405d0){const _0xaf0c88=isInteger$1(_0x4405d0['year']),_0x4c3b33=integerBetween(_0x4405d0['ordinal'],0x1,daysInYear(_0x4405d0['year']));return _0xaf0c88?!_0x4c3b33&&unitOutOfRange('ordinal',_0x4405d0['ordinal']):unitOutOfRange('year',_0x4405d0['year']);}function hasInvalidGregorianData(_0xef788b){const _0x5dba34=isInteger$1(_0xef788b['year']),_0x347b64=integerBetween(_0xef788b['month'],0x1,0xc),_0x1229c3=integerBetween(_0xef788b['day'],0x1,daysInMonth(_0xef788b['year'],_0xef788b['month']));return _0x5dba34?_0x347b64?!_0x1229c3&&unitOutOfRange('day',_0xef788b['day']):unitOutOfRange('month',_0xef788b['month']):unitOutOfRange('year',_0xef788b['year']);}function hasInvalidTimeData(_0x4ad8f9){const {hour:_0x42e26d,minute:_0x22300d,second:_0x364469,millisecond:_0x2ccb1c}=_0x4ad8f9,_0x2ac2d2=integerBetween(_0x42e26d,0x0,0x17)||0x18===_0x42e26d&&0x0===_0x22300d&&0x0===_0x364469&&0x0===_0x2ccb1c,_0x5099da=integerBetween(_0x22300d,0x0,0x3b),_0x199580=integerBetween(_0x364469,0x0,0x3b),_0x39975d=integerBetween(_0x2ccb1c,0x0,0x3e7);return _0x2ac2d2?_0x5099da?_0x199580?!_0x39975d&&unitOutOfRange('millisecond',_0x2ccb1c):unitOutOfRange('second',_0x364469):unitOutOfRange('minute',_0x22300d):unitOutOfRange('hour',_0x42e26d);}function isUndefined(_0x77d9de){return void 0x0===_0x77d9de;}function isNumber(_0x289a91){return'number'==typeof _0x289a91;}function isInteger$1(_0x12248b){return'number'==typeof _0x12248b&&_0x12248b%0x1==0x0;}function isString(_0x1e187b){return'string'==typeof _0x1e187b;}function isDate(_0x12640e){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x12640e);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x580db8){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0xf26a9f){return!0x1;}}function maybeArray(_0x50d58e){return Array['isArray'](_0x50d58e)?_0x50d58e:[_0x50d58e];}function bestBy(_0x564482,_0x517f8e,_0x4f85af){if(0x0!==_0x564482['length'])return _0x564482['reduce']((_0x30bf6a,_0x553b7d)=>{const _0x7bc4d4=[_0x517f8e(_0x553b7d),_0x553b7d];return _0x30bf6a&&_0x4f85af(_0x30bf6a[0x0],_0x7bc4d4[0x0])===_0x30bf6a[0x0]?_0x30bf6a:_0x7bc4d4;},null)[0x1];}function pick$1(_0x54602e,_0x256dfb){return _0x256dfb['reduce']((_0x2ef2e2,_0x1c0b3f)=>(_0x2ef2e2[_0x1c0b3f]=_0x54602e[_0x1c0b3f],_0x2ef2e2),{});}function hasOwnProperty(_0x2ee035,_0x3bd977){return Object['prototype']['hasOwnProperty']['call'](_0x2ee035,_0x3bd977);}function validateWeekSettings(_0x5ca1c3){if(null==_0x5ca1c3)return null;if('object'!=typeof _0x5ca1c3)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0x5ca1c3['firstDay'],0x1,0x7)||!integerBetween(_0x5ca1c3['minimalDays'],0x1,0x7)||!Array['isArray'](_0x5ca1c3['weekend'])||_0x5ca1c3['weekend']['some'](_0x5d913a=>!integerBetween(_0x5d913a,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0x5ca1c3['firstDay'],'minimalDays':_0x5ca1c3['minimalDays'],'weekend':Array['from'](_0x5ca1c3['weekend'])};}function integerBetween(_0x3abd0a,_0x54ad94,_0x2c4a3e){return isInteger$1(_0x3abd0a)&&_0x3abd0a>=_0x54ad94&&_0x3abd0a<=_0x2c4a3e;}function floorMod(_0x186dd5,_0x58e686){return _0x186dd5-_0x58e686*Math['floor'](_0x186dd5/_0x58e686);}function padStart(_0x154fed,_0xa399da=0x2){let _0x54b203;return _0x54b203=_0x154fed<0x0?'-'+(''+-_0x154fed)['padStart'](_0xa399da,'0'):(''+_0x154fed)['padStart'](_0xa399da,'0'),_0x54b203;}function parseInteger(_0x51feab){return isUndefined(_0x51feab)||null===_0x51feab||''===_0x51feab?void 0x0:parseInt(_0x51feab,0xa);}function parseFloating(_0x1cdc73){return isUndefined(_0x1cdc73)||null===_0x1cdc73||''===_0x1cdc73?void 0x0:parseFloat(_0x1cdc73);}function parseMillis(_0x2aa10a){if(!isUndefined(_0x2aa10a)&&null!==_0x2aa10a&&''!==_0x2aa10a){const _0x7935a9=0x3e8*parseFloat('0.'+_0x2aa10a);return Math['floor'](_0x7935a9);}}function roundTo(_0x5b28e5,_0x261478,_0x86500f=!0x1){const _0x474d3c=0xa**_0x261478;return(_0x86500f?Math['trunc']:Math['round'])(_0x5b28e5*_0x474d3c)/_0x474d3c;}function isLeapYear(_0x2e8b09){return _0x2e8b09%0x4==0x0&&(_0x2e8b09%0x64!=0x0||_0x2e8b09%0x190==0x0);}function daysInYear(_0xabeaf1){return isLeapYear(_0xabeaf1)?0x16e:0x16d;}function daysInMonth(_0x343050,_0x2455bf){const _0x1f94bc=floorMod(_0x2455bf-0x1,0xc)+0x1;return 0x2===_0x1f94bc?isLeapYear(_0x343050+(_0x2455bf-_0x1f94bc)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x1f94bc-0x1];}function objToLocalTS(_0x58c11e){let _0x57dbb4=Date['UTC'](_0x58c11e['year'],_0x58c11e['month']-0x1,_0x58c11e['day'],_0x58c11e['hour'],_0x58c11e['minute'],_0x58c11e['second'],_0x58c11e['millisecond']);return _0x58c11e['year']<0x64&&_0x58c11e['year']>=0x0&&(_0x57dbb4=new Date(_0x57dbb4),_0x57dbb4['setUTCFullYear'](_0x58c11e['year'],_0x58c11e['month']-0x1,_0x58c11e['day'])),+_0x57dbb4;}function firstWeekOffset(_0x52b2d4,_0x45404e,_0x4a630d){return-isoWeekdayToLocal(dayOfWeek(_0x52b2d4,0x1,_0x45404e),_0x4a630d)+_0x45404e-0x1;}function weeksInWeekYear(_0x1e4d78,_0x2ff65e=0x4,_0x181a62=0x1){const _0x49e004=firstWeekOffset(_0x1e4d78,_0x2ff65e,_0x181a62),_0x4c07ab=firstWeekOffset(_0x1e4d78+0x1,_0x2ff65e,_0x181a62);return(daysInYear(_0x1e4d78)-_0x49e004+_0x4c07ab)/0x7;}function untruncateYear(_0x212a8f){return _0x212a8f>0x63?_0x212a8f:_0x212a8f>Settings['twoDigitCutoffYear']?0x76c+_0x212a8f:0x7d0+_0x212a8f;}function parseZoneInfo(_0x2d8f8a,_0x35b166,_0x5bddb4,_0x2af6a4=null){const _0x5e5eed=new Date(_0x2d8f8a),_0x445080={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0x2af6a4&&(_0x445080['timeZone']=_0x2af6a4);const _0x128719={'timeZoneName':_0x35b166,..._0x445080},_0x2cd486=new Intl['DateTimeFormat'](_0x5bddb4,_0x128719)['formatToParts'](_0x5e5eed)['find'](_0x56cb3=>'timezonename'===_0x56cb3['type']['toLowerCase']());return _0x2cd486?_0x2cd486['value']:null;}function signedOffset(_0xdd760d,_0x2dec69){let _0x5e9ffa=parseInt(_0xdd760d,0xa);Number['isNaN'](_0x5e9ffa)&&(_0x5e9ffa=0x0);const _0x1bea2c=parseInt(_0x2dec69,0xa)||0x0;return 0x3c*_0x5e9ffa+(_0x5e9ffa<0x0||Object['is'](_0x5e9ffa,-0x0)?-_0x1bea2c:_0x1bea2c);}function asNumber(_0x5db58f){const _0x41294f=Number(_0x5db58f);if('boolean'==typeof _0x5db58f||''===_0x5db58f||Number['isNaN'](_0x41294f))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0x5db58f);return _0x41294f;}function normalizeObject(_0x4f31e1,_0x4baa1f){const _0x5ad72e={};for(const _0x512179 in _0x4f31e1)if(hasOwnProperty(_0x4f31e1,_0x512179)){const _0x527eb5=_0x4f31e1[_0x512179];if(null==_0x527eb5)continue;_0x5ad72e[_0x4baa1f(_0x512179)]=asNumber(_0x527eb5);}return _0x5ad72e;}function formatOffset(_0x405e65,_0x243318){const _0x81daaf=Math['trunc'](Math['abs'](_0x405e65/0x3c)),_0x3513ee=Math['trunc'](Math['abs'](_0x405e65%0x3c)),_0x246a6a=_0x405e65>=0x0?'+':'-';switch(_0x243318){case'short':return''+_0x246a6a+padStart(_0x81daaf,0x2)+':'+padStart(_0x3513ee,0x2);case'narrow':return''+_0x246a6a+_0x81daaf+(_0x3513ee>0x0?':'+_0x3513ee:'');case'techie':return''+_0x246a6a+padStart(_0x81daaf,0x2)+padStart(_0x3513ee,0x2);default:throw new RangeError('Value\x20format\x20'+_0x243318+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0x285da9){return pick$1(_0x285da9,['hour','minute','second','millisecond']);}const monthsLong=['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],monthsNarrow=['J','F','M','A','M','J','J','A','S','O','N','D'];function months(_0x447b5c){switch(_0x447b5c){case'narrow':return[...monthsNarrow];case'short':return[...monthsShort];case'long':return[...monthsLong];case'numeric':return['1','2','3','4','5','6','7','8','9','10','11','12'];case'2-digit':return['01','02','03','04','05','06','07','08','09','10','11','12'];default:return null;}}const weekdaysLong=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],weekdaysShort=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],weekdaysNarrow=['M','T','W','T','F','S','S'];function weekdays(_0x402771){switch(_0x402771){case'narrow':return[...weekdaysNarrow];case'short':return[...weekdaysShort];case'long':return[...weekdaysLong];case'numeric':return['1','2','3','4','5','6','7'];default:return null;}}const meridiems=['AM','PM'],erasLong=['Before\x20Christ','Anno\x20Domini'],erasShort=['BC','AD'],erasNarrow=['B','A'];function eras(_0x15a95a){switch(_0x15a95a){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0x4f3cb7){return meridiems[_0x4f3cb7['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0xffeaf4,_0x1daa0d){return weekdays(_0x1daa0d)[_0xffeaf4['weekday']-0x1];}function monthForDateTime(_0x566052,_0x4eb3fe){return months(_0x4eb3fe)[_0x566052['month']-0x1];}function eraForDateTime(_0x18a652,_0x3ab040){return eras(_0x3ab040)[_0x18a652['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x421e8e,_0x383c7b,_0x43d7c2='always',_0x506edb=!0x1){const _0x2e1f6d={'years':['year','yr.'],'quarters':['quarter','qtr.'],'months':['month','mo.'],'weeks':['week','wk.'],'days':['day','day','days'],'hours':['hour','hr.'],'minutes':['minute','min.'],'seconds':['second','sec.']},_0x466bd2=-0x1===['hours','minutes','seconds']['indexOf'](_0x421e8e);if('auto'===_0x43d7c2&&_0x466bd2){const _0x368611='days'===_0x421e8e;switch(_0x383c7b){case 0x1:return _0x368611?'tomorrow':'next\x20'+_0x2e1f6d[_0x421e8e][0x0];case-0x1:return _0x368611?'yesterday':'last\x20'+_0x2e1f6d[_0x421e8e][0x0];case 0x0:return _0x368611?'today':'this\x20'+_0x2e1f6d[_0x421e8e][0x0];}}const _0x4ece11=Object['is'](_0x383c7b,-0x0)||_0x383c7b<0x0,_0x15d72e=Math['abs'](_0x383c7b),_0x184594=0x1===_0x15d72e,_0xe5fe1f=_0x2e1f6d[_0x421e8e],_0x1dff72=_0x506edb?_0x184594?_0xe5fe1f[0x1]:_0xe5fe1f[0x2]||_0xe5fe1f[0x1]:_0x184594?_0x2e1f6d[_0x421e8e][0x0]:_0x421e8e;return _0x4ece11?_0x15d72e+'\x20'+_0x1dff72+'\x20ago':'in\x20'+_0x15d72e+'\x20'+_0x1dff72;}function stringifyTokens(_0x403b2e,_0x234625){let _0x4036ea='';for(const _0x423d5d of _0x403b2e)_0x423d5d['literal']?_0x4036ea+=_0x423d5d['val']:_0x4036ea+=_0x234625(_0x423d5d['val']);return _0x4036ea;}const macroTokenToFormatOpts={'D':DATE_SHORT,'DD':DATE_MED,'DDD':DATE_FULL,'DDDD':DATE_HUGE,'t':TIME_SIMPLE,'tt':TIME_WITH_SECONDS,'ttt':TIME_WITH_SHORT_OFFSET,'tttt':TIME_WITH_LONG_OFFSET,'T':TIME_24_SIMPLE,'TT':TIME_24_WITH_SECONDS,'TTT':TIME_24_WITH_SHORT_OFFSET,'TTTT':TIME_24_WITH_LONG_OFFSET,'f':DATETIME_SHORT,'ff':DATETIME_MED,'fff':DATETIME_FULL,'ffff':DATETIME_HUGE,'F':DATETIME_SHORT_WITH_SECONDS,'FF':DATETIME_MED_WITH_SECONDS,'FFF':DATETIME_FULL_WITH_SECONDS,'FFFF':DATETIME_HUGE_WITH_SECONDS};class Formatter{static['create'](_0x2228ac,_0x289eb5={}){return new Formatter(_0x2228ac,_0x289eb5);}static['parseFormat'](_0x7353cb){let _0x5378de=null,_0x1e594e='',_0x59b673=!0x1;const _0x35cb17=[];for(let _0x11d133=0x0;_0x11d133<_0x7353cb['length'];_0x11d133++){const _0x11ba7e=_0x7353cb['charAt'](_0x11d133);'\x27'===_0x11ba7e?(_0x1e594e['length']>0x0&&_0x35cb17['push']({'literal':_0x59b673||/^\s+$/['test'](_0x1e594e),'val':_0x1e594e}),_0x5378de=null,_0x1e594e='',_0x59b673=!_0x59b673):_0x59b673||_0x11ba7e===_0x5378de?_0x1e594e+=_0x11ba7e:(_0x1e594e['length']>0x0&&_0x35cb17['push']({'literal':/^\s+$/['test'](_0x1e594e),'val':_0x1e594e}),_0x1e594e=_0x11ba7e,_0x5378de=_0x11ba7e);}return _0x1e594e['length']>0x0&&_0x35cb17['push']({'literal':_0x59b673||/^\s+$/['test'](_0x1e594e),'val':_0x1e594e}),_0x35cb17;}static['macroTokenToFormatOpts'](_0x52ee3b){return macroTokenToFormatOpts[_0x52ee3b];}constructor(_0x4e742d,_0x3b2dba){this['opts']=_0x3b2dba,this['loc']=_0x4e742d,this['systemLoc']=null;}['formatWithSystemDefault'](_0x2efba0,_0xe4ab29){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x2efba0,{...this['opts'],..._0xe4ab29})['format']();}['dtFormatter'](_0xebd7df,_0x148639={}){return this['loc']['dtFormatter'](_0xebd7df,{...this['opts'],..._0x148639});}['formatDateTime'](_0x4842e6,_0x5cf8ed){return this['dtFormatter'](_0x4842e6,_0x5cf8ed)['format']();}['formatDateTimeParts'](_0x426615,_0x4c40b1){return this['dtFormatter'](_0x426615,_0x4c40b1)['formatToParts']();}['formatInterval'](_0x451ea0,_0x329df1){return this['dtFormatter'](_0x451ea0['start'],_0x329df1)['dtf']['formatRange'](_0x451ea0['start']['toJSDate'](),_0x451ea0['end']['toJSDate']());}['resolvedOptions'](_0x554a77,_0xa816ff){return this['dtFormatter'](_0x554a77,_0xa816ff)['resolvedOptions']();}['num'](_0x362fa5,_0x1edf75=0x0){if(this['opts']['forceSimple'])return padStart(_0x362fa5,_0x1edf75);const _0x5a6044={...this['opts']};return _0x1edf75>0x0&&(_0x5a6044['padTo']=_0x1edf75),this['loc']['numberFormatter'](_0x5a6044)['format'](_0x362fa5);}['formatDateTimeFromString'](_0x32737b,_0x37a291){const _0x9d1b41='en'===this['loc']['listingMode'](),_0x2a97d9=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x8e9db4=(_0x3204c5,_0x4355a8)=>this['loc']['extract'](_0x32737b,_0x3204c5,_0x4355a8),_0x13d73f=_0x427ba3=>_0x32737b['isOffsetFixed']&&0x0===_0x32737b['offset']&&_0x427ba3['allowZ']?'Z':_0x32737b['isValid']?_0x32737b['zone']['formatOffset'](_0x32737b['ts'],_0x427ba3['format']):'',_0x8322d1=(_0x3d143b,_0x299723)=>_0x9d1b41?monthForDateTime(_0x32737b,_0x3d143b):_0x8e9db4(_0x299723?{'month':_0x3d143b}:{'month':_0x3d143b,'day':'numeric'},'month'),_0x372b7f=(_0xc1b282,_0x440c34)=>_0x9d1b41?weekdayForDateTime(_0x32737b,_0xc1b282):_0x8e9db4(_0x440c34?{'weekday':_0xc1b282}:{'weekday':_0xc1b282,'month':'long','day':'numeric'},'weekday'),_0x111299=_0x28a290=>{const _0x53996f=Formatter['macroTokenToFormatOpts'](_0x28a290);return _0x53996f?this['formatWithSystemDefault'](_0x32737b,_0x53996f):_0x28a290;},_0x5b2143=_0x43bf7d=>_0x9d1b41?eraForDateTime(_0x32737b,_0x43bf7d):_0x8e9db4({'era':_0x43bf7d},'era');return stringifyTokens(Formatter['parseFormat'](_0x37a291),_0x2f7d10=>{switch(_0x2f7d10){case'S':return this['num'](_0x32737b['millisecond']);case'u':case'SSS':return this['num'](_0x32737b['millisecond'],0x3);case's':return this['num'](_0x32737b['second']);case'ss':return this['num'](_0x32737b['second'],0x2);case'uu':return this['num'](Math['floor'](_0x32737b['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x32737b['millisecond']/0x64));case'm':return this['num'](_0x32737b['minute']);case'mm':return this['num'](_0x32737b['minute'],0x2);case'h':return this['num'](_0x32737b['hour']%0xc==0x0?0xc:_0x32737b['hour']%0xc);case'hh':return this['num'](_0x32737b['hour']%0xc==0x0?0xc:_0x32737b['hour']%0xc,0x2);case'H':return this['num'](_0x32737b['hour']);case'HH':return this['num'](_0x32737b['hour'],0x2);case'Z':return _0x13d73f({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x13d73f({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x13d73f({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x32737b['zone']['offsetName'](_0x32737b['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x32737b['zone']['offsetName'](_0x32737b['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x32737b['zoneName'];case'a':return _0x9d1b41?meridiemForDateTime(_0x32737b):_0x8e9db4({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0x2a97d9?_0x8e9db4({'day':'numeric'},'day'):this['num'](_0x32737b['day']);case'dd':return _0x2a97d9?_0x8e9db4({'day':'2-digit'},'day'):this['num'](_0x32737b['day'],0x2);case'c':case'E':return this['num'](_0x32737b['weekday']);case'ccc':return _0x372b7f('short',!0x0);case'cccc':return _0x372b7f('long',!0x0);case'ccccc':return _0x372b7f('narrow',!0x0);case'EEE':return _0x372b7f('short',!0x1);case'EEEE':return _0x372b7f('long',!0x1);case'EEEEE':return _0x372b7f('narrow',!0x1);case'L':return _0x2a97d9?_0x8e9db4({'month':'numeric','day':'numeric'},'month'):this['num'](_0x32737b['month']);case'LL':return _0x2a97d9?_0x8e9db4({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x32737b['month'],0x2);case'LLL':return _0x8322d1('short',!0x0);case'LLLL':return _0x8322d1('long',!0x0);case'LLLLL':return _0x8322d1('narrow',!0x0);case'M':return _0x2a97d9?_0x8e9db4({'month':'numeric'},'month'):this['num'](_0x32737b['month']);case'MM':return _0x2a97d9?_0x8e9db4({'month':'2-digit'},'month'):this['num'](_0x32737b['month'],0x2);case'MMM':return _0x8322d1('short',!0x1);case'MMMM':return _0x8322d1('long',!0x1);case'MMMMM':return _0x8322d1('narrow',!0x1);case'y':return _0x2a97d9?_0x8e9db4({'year':'numeric'},'year'):this['num'](_0x32737b['year']);case'yy':return _0x2a97d9?_0x8e9db4({'year':'2-digit'},'year'):this['num'](_0x32737b['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x2a97d9?_0x8e9db4({'year':'numeric'},'year'):this['num'](_0x32737b['year'],0x4);case'yyyyyy':return _0x2a97d9?_0x8e9db4({'year':'numeric'},'year'):this['num'](_0x32737b['year'],0x6);case'G':return _0x5b2143('short');case'GG':return _0x5b2143('long');case'GGGGG':return _0x5b2143('narrow');case'kk':return this['num'](_0x32737b['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x32737b['weekYear'],0x4);case'W':return this['num'](_0x32737b['weekNumber']);case'WW':return this['num'](_0x32737b['weekNumber'],0x2);case'n':return this['num'](_0x32737b['localWeekNumber']);case'nn':return this['num'](_0x32737b['localWeekNumber'],0x2);case'ii':return this['num'](_0x32737b['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x32737b['localWeekYear'],0x4);case'o':return this['num'](_0x32737b['ordinal']);case'ooo':return this['num'](_0x32737b['ordinal'],0x3);case'q':return this['num'](_0x32737b['quarter']);case'qq':return this['num'](_0x32737b['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x32737b['ts']/0x3e8));case'x':return this['num'](_0x32737b['ts']);default:return _0x111299(_0x2f7d10);}});}['formatDurationFromString'](_0x3fba6b,_0x49f01f){const _0x1945d7=_0x3b7d12=>{switch(_0x3b7d12[0x0]){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':return'hour';case'd':return'day';case'w':return'week';case'M':return'month';case'y':return'year';default:return null;}},_0x2d0606=Formatter['parseFormat'](_0x49f01f),_0x4af7f8=_0x2d0606['reduce']((_0x3a2afd,{literal:_0x2a91bd,val:_0x22e916})=>_0x2a91bd?_0x3a2afd:_0x3a2afd['concat'](_0x22e916),[]),_0x102a1d=_0x3fba6b['shiftTo'](..._0x4af7f8['map'](_0x1945d7)['filter'](t=>t));return stringifyTokens(_0x2d0606,(_0x1a0aa9=>_0x1b544c=>{const _0x252aa1=_0x1945d7(_0x1b544c);return _0x252aa1?this['num'](_0x1a0aa9['get'](_0x252aa1),_0x1b544c['length']):_0x1b544c;})(_0x102a1d));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x936661){const _0x50be21=_0x936661['reduce']((_0x5a3b04,_0x1bf295)=>_0x5a3b04+_0x1bf295['source'],'');return RegExp('^'+_0x50be21+'$');}function combineExtractors(..._0x1bcf69){return _0x1e3af9=>_0x1bcf69['reduce'](([_0x4782a7,_0x85e14a,_0x55e53b],_0xe87e0a)=>{const [_0x3f8364,_0x376da4,_0x102b7e]=_0xe87e0a(_0x1e3af9,_0x55e53b);return[{..._0x4782a7,..._0x3f8364},_0x376da4||_0x85e14a,_0x102b7e];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0x2b0f57,..._0x3c9ad7){if(null==_0x2b0f57)return[null,null];for(const [_0x3f2073,_0x11fb31]of _0x3c9ad7){const _0x534720=_0x3f2073['exec'](_0x2b0f57);if(_0x534720)return _0x11fb31(_0x534720);}return[null,null];}function simpleParse(..._0x34c259){return(_0x5e42dc,_0x1c6b96)=>{const _0x2e8aa3={};let _0x9a47b8;for(_0x9a47b8=0x0;_0x9a47b8<_0x34c259['length'];_0x9a47b8++)_0x2e8aa3[_0x34c259[_0x9a47b8]]=parseInteger(_0x5e42dc[_0x1c6b96+_0x9a47b8]);return[_0x2e8aa3,null,_0x1c6b96+_0x9a47b8];};}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone='(?:'+offsetRegex['source']+'?(?:\x5c[('+ianaRegex['source']+')\x5c])?)?',isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(''+isoTimeBaseRegex['source']+isoExtendedZone),isoTimeExtensionRegex=RegExp('(?:T'+isoTimeRegex['source']+')?'),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse('weekYear','weekNumber','weekDay'),extractISOOrdinalData=simpleParse('year','ordinal'),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex['source']+'\x20?(?:'+offsetRegex['source']+'|('+ianaRegex['source']+'))?'),sqlTimeExtensionRegex=RegExp('(?:\x20'+sqlTimeRegex['source']+')?');function int(_0x4c4836,_0x28b983,_0x59b9a9){const _0x18200c=_0x4c4836[_0x28b983];return isUndefined(_0x18200c)?_0x59b9a9:parseInteger(_0x18200c);}function extractISOYmd(_0xa52e78,_0x1f1f64){return[{'year':int(_0xa52e78,_0x1f1f64),'month':int(_0xa52e78,_0x1f1f64+0x1,0x1),'day':int(_0xa52e78,_0x1f1f64+0x2,0x1)},null,_0x1f1f64+0x3];}function extractISOTime(_0x3f6cde,_0x3ab9f8){return[{'hours':int(_0x3f6cde,_0x3ab9f8,0x0),'minutes':int(_0x3f6cde,_0x3ab9f8+0x1,0x0),'seconds':int(_0x3f6cde,_0x3ab9f8+0x2,0x0),'milliseconds':parseMillis(_0x3f6cde[_0x3ab9f8+0x3])},null,_0x3ab9f8+0x4];}function extractISOOffset(_0x571229,_0x58aa05){const _0xc03d7a=!_0x571229[_0x58aa05]&&!_0x571229[_0x58aa05+0x1],_0x55f02e=signedOffset(_0x571229[_0x58aa05+0x1],_0x571229[_0x58aa05+0x2]);return[{},_0xc03d7a?null:FixedOffsetZone['instance'](_0x55f02e),_0x58aa05+0x3];}function extractIANAZone(_0x35f010,_0x3e3fec){return[{},_0x35f010[_0x3e3fec]?IANAZone['create'](_0x35f010[_0x3e3fec]):null,_0x3e3fec+0x1];}const isoTimeOnly=RegExp('^T?'+isoTimeBaseRegex['source']+'$'),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(_0x19709e){const [_0x52d715,_0x579646,_0x53b501,_0x35151a,_0x22cb26,_0x1df142,_0x24d1a8,_0x1e2a1b,_0x538cb0]=_0x19709e,_0x4dfcf9='-'===_0x52d715[0x0],_0x1aaf12=_0x1e2a1b&&'-'===_0x1e2a1b[0x0],_0x5dd077=(_0x29ca10,_0x36437d=!0x1)=>void 0x0!==_0x29ca10&&(_0x36437d||_0x29ca10&&_0x4dfcf9)?-_0x29ca10:_0x29ca10;return[{'years':_0x5dd077(parseFloating(_0x579646)),'months':_0x5dd077(parseFloating(_0x53b501)),'weeks':_0x5dd077(parseFloating(_0x35151a)),'days':_0x5dd077(parseFloating(_0x22cb26)),'hours':_0x5dd077(parseFloating(_0x1df142)),'minutes':_0x5dd077(parseFloating(_0x24d1a8)),'seconds':_0x5dd077(parseFloating(_0x1e2a1b),'-0'===_0x1e2a1b),'milliseconds':_0x5dd077(parseMillis(_0x538cb0),_0x1aaf12)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x292f80,_0xd5c73b,_0x290b62,_0x48db39,_0x477376,_0x3e8c19,_0x5e000a){const _0x5ee038={'year':0x2===_0xd5c73b['length']?untruncateYear(parseInteger(_0xd5c73b)):parseInteger(_0xd5c73b),'month':monthsShort['indexOf'](_0x290b62)+0x1,'day':parseInteger(_0x48db39),'hour':parseInteger(_0x477376),'minute':parseInteger(_0x3e8c19)};return _0x5e000a&&(_0x5ee038['second']=parseInteger(_0x5e000a)),_0x292f80&&(_0x5ee038['weekday']=_0x292f80['length']>0x3?weekdaysLong['indexOf'](_0x292f80)+0x1:weekdaysShort['indexOf'](_0x292f80)+0x1),_0x5ee038;}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(_0x234092){const [,_0x3ec9b2,_0x556562,_0x4b885d,_0x40a8df,_0x47ebab,_0x5ac992,_0x40e65d,_0x53c39d,_0x7de33,_0x365d7e,_0x1f8acd]=_0x234092,_0x5363de=fromStrings(_0x3ec9b2,_0x40a8df,_0x4b885d,_0x556562,_0x47ebab,_0x5ac992,_0x40e65d);let _0x30167d;return _0x30167d=_0x53c39d?obsOffsets[_0x53c39d]:_0x7de33?0x0:signedOffset(_0x365d7e,_0x1f8acd),[_0x5363de,new FixedOffsetZone(_0x30167d)];}function preprocessRFC2822(_0x2e4ed6){return _0x2e4ed6['replace'](/\([^()]*\)|[\n\t]/g,'\x20')['replace'](/(\s\s+)/g,'\x20')['trim']();}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(_0xb3ef6){const [,_0xd1b4f3,_0x27e3eb,_0x1b8093,_0x558763,_0x40376d,_0x56deff,_0x4a436a]=_0xb3ef6;return[fromStrings(_0xd1b4f3,_0x558763,_0x1b8093,_0x27e3eb,_0x40376d,_0x56deff,_0x4a436a),FixedOffsetZone['utcInstance']];}function extractASCII(_0x2aa5f5){const [,_0x3aee69,_0x1aa3ca,_0x369356,_0x1c0d01,_0x4b785e,_0x27cbb9,_0xf3f87e]=_0x2aa5f5;return[fromStrings(_0x3aee69,_0xf3f87e,_0x1aa3ca,_0x369356,_0x1c0d01,_0x4b785e,_0x27cbb9),FixedOffsetZone['utcInstance']];}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(_0x3f29a7){return parse$1(_0x3f29a7,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0x37271e){return parse$1(preprocessRFC2822(_0x37271e),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x306829){return parse$1(_0x306829,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x2ffc7e){return parse$1(_0x2ffc7e,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x1900fa){return parse$1(_0x1900fa,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0x218e16){return parse$1(_0x218e16,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone]);}const INVALID$2='Invalid\x20Duration',lowOrderMatrix={'weeks':{'days':0x7,'hours':0xa8,'minutes':0x2760,'seconds':0x93a80,'milliseconds':0x240c8400},'days':{'hours':0x18,'minutes':0x5a0,'seconds':0x15180,'milliseconds':0x5265c00},'hours':{'minutes':0x3c,'seconds':0xe10,'milliseconds':0x36ee80},'minutes':{'seconds':0x3c,'milliseconds':0xea60},'seconds':{'milliseconds':0x3e8}},casualMatrix={'years':{'quarters':0x4,'months':0xc,'weeks':0x34,'days':0x16d,'hours':0x2238,'minutes':0x80520,'seconds':0x1e13380,'milliseconds':0x757b12c00},'quarters':{'months':0x3,'weeks':0xd,'days':0x5b,'hours':0x888,'minutes':0x1ffe0,'seconds':0x77f880,'milliseconds':0x1d4a2b400},'months':{'weeks':0x4,'days':0x1e,'hours':0x2d0,'minutes':0xa8c0,'seconds':0x278d00,'milliseconds':0x9a7ec800},...lowOrderMatrix},daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix={'years':{'quarters':0x4,'months':0xc,'weeks':daysInYearAccurate/0x7,'days':daysInYearAccurate,'hours':0x18*daysInYearAccurate,'minutes':0x18*daysInYearAccurate*0x3c,'seconds':0x18*daysInYearAccurate*0x3c*0x3c,'milliseconds':0x18*daysInYearAccurate*0x3c*0x3c*0x3e8},'quarters':{'months':0x3,'weeks':daysInYearAccurate/0x1c,'days':daysInYearAccurate/0x4,'hours':0x18*daysInYearAccurate/0x4,'minutes':0x18*daysInYearAccurate*0x3c/0x4,'seconds':0x18*daysInYearAccurate*0x3c*0x3c/0x4,'milliseconds':0x18*daysInYearAccurate*0x3c*0x3c*0x3e8/0x4},'months':{'weeks':daysInMonthAccurate/0x7,'days':daysInMonthAccurate,'hours':0x18*daysInMonthAccurate,'minutes':0x18*daysInMonthAccurate*0x3c,'seconds':0x18*daysInMonthAccurate*0x3c*0x3c,'milliseconds':0x18*daysInMonthAccurate*0x3c*0x3c*0x3e8},...lowOrderMatrix},orderedUnits$1=['years','quarters','months','weeks','days','hours','minutes','seconds','milliseconds'],reverseUnits=orderedUnits$1['slice'](0x0)['reverse']();function clone$1(_0x4dbb4e,_0x4351e8,_0x89fe27=!0x1){const _0x2bd50a={'values':_0x89fe27?_0x4351e8['values']:{..._0x4dbb4e['values'],..._0x4351e8['values']||{}},'loc':_0x4dbb4e['loc']['clone'](_0x4351e8['loc']),'conversionAccuracy':_0x4351e8['conversionAccuracy']||_0x4dbb4e['conversionAccuracy'],'matrix':_0x4351e8['matrix']||_0x4dbb4e['matrix']};return new Duration(_0x2bd50a);}function durationToMillis(_0x560fe1,_0x1eeb1f){let _0x43c7ad=_0x1eeb1f['milliseconds']??0x0;for(const _0x56679f of reverseUnits['slice'](0x1))_0x1eeb1f[_0x56679f]&&(_0x43c7ad+=_0x1eeb1f[_0x56679f]*_0x560fe1[_0x56679f]['milliseconds']);return _0x43c7ad;}function normalizeValues(_0x35b6e4,_0x1610db){const _0x54b8ee=durationToMillis(_0x35b6e4,_0x1610db)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0x22948e,_0x48695c)=>{if(isUndefined(_0x1610db[_0x48695c]))return _0x22948e;if(_0x22948e){const _0x516550=_0x1610db[_0x22948e]*_0x54b8ee,_0x4ff3ed=_0x35b6e4[_0x48695c][_0x22948e],_0x17a238=Math['floor'](_0x516550/_0x4ff3ed);_0x1610db[_0x48695c]+=_0x17a238*_0x54b8ee,_0x1610db[_0x22948e]-=_0x17a238*_0x4ff3ed*_0x54b8ee;}return _0x48695c;},null),orderedUnits$1['reduce']((_0x28cfc3,_0x5b3d6b)=>{if(isUndefined(_0x1610db[_0x5b3d6b]))return _0x28cfc3;if(_0x28cfc3){const _0xdb32a5=_0x1610db[_0x28cfc3]%0x1;_0x1610db[_0x28cfc3]-=_0xdb32a5,_0x1610db[_0x5b3d6b]+=_0xdb32a5*_0x35b6e4[_0x28cfc3][_0x5b3d6b];}return _0x5b3d6b;},null);}function removeZeroes(_0x35464e){const _0x50af75={};for(const [_0x3e13d8,_0x535113]of Object['entries'](_0x35464e))0x0!==_0x535113&&(_0x50af75[_0x3e13d8]=_0x535113);return _0x50af75;}class Duration{constructor(_0xab3c69){const _0x4a53be='longterm'===_0xab3c69['conversionAccuracy']||!0x1;let _0x573833=_0x4a53be?accurateMatrix:casualMatrix;_0xab3c69['matrix']&&(_0x573833=_0xab3c69['matrix']),this['values']=_0xab3c69['values'],this['loc']=_0xab3c69['loc']||Locale['create'](),this['conversionAccuracy']=_0x4a53be?'longterm':'casual',this['invalid']=_0xab3c69['invalid']||null,this['matrix']=_0x573833,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x277ebd,_0x2a7f3b){return Duration['fromObject']({'milliseconds':_0x277ebd},_0x2a7f3b);}static['fromObject'](_0x5adf98,_0x1dd207={}){if(null==_0x5adf98||'object'!=typeof _0x5adf98)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x5adf98?'null':typeof _0x5adf98));return new Duration({'values':normalizeObject(_0x5adf98,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x1dd207),'conversionAccuracy':_0x1dd207['conversionAccuracy'],'matrix':_0x1dd207['matrix']});}static['fromDurationLike'](_0x44c4c4){if(isNumber(_0x44c4c4))return Duration['fromMillis'](_0x44c4c4);if(Duration['isDuration'](_0x44c4c4))return _0x44c4c4;if('object'==typeof _0x44c4c4)return Duration['fromObject'](_0x44c4c4);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0x44c4c4+'\x20of\x20type\x20'+typeof _0x44c4c4);}static['fromISO'](_0x15ad00,_0x61a592){const [_0xead38b]=parseISODuration(_0x15ad00);return _0xead38b?Duration['fromObject'](_0xead38b,_0x61a592):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x15ad00+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0x276d9a,_0x5e150b){const [_0x55d352]=parseISOTimeOnly(_0x276d9a);return _0x55d352?Duration['fromObject'](_0x55d352,_0x5e150b):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x276d9a+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x4a42a4,_0x2fa40d=null){if(!_0x4a42a4)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x214978=_0x4a42a4 instanceof Invalid?_0x4a42a4:new Invalid(_0x4a42a4,_0x2fa40d);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x214978);return new Duration({'invalid':_0x214978});}static['normalizeUnit'](_0x587cb0){const _0x422525={'year':'years','years':'years','quarter':'quarters','quarters':'quarters','month':'months','months':'months','week':'weeks','weeks':'weeks','day':'days','days':'days','hour':'hours','hours':'hours','minute':'minutes','minutes':'minutes','second':'seconds','seconds':'seconds','millisecond':'milliseconds','milliseconds':'milliseconds'}[_0x587cb0?_0x587cb0['toLowerCase']():_0x587cb0];if(!_0x422525)throw new InvalidUnitError(_0x587cb0);return _0x422525;}static['isDuration'](_0x442ed6){return _0x442ed6&&_0x442ed6['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0x1bf01b,_0x3118f5={}){const _0x2c80c4={..._0x3118f5,'floor':!0x1!==_0x3118f5['round']&&!0x1!==_0x3118f5['floor']};return this['isValid']?Formatter['create'](this['loc'],_0x2c80c4)['formatDurationFromString'](this,_0x1bf01b):INVALID$2;}['toHuman'](_0x4a3a82={}){if(!this['isValid'])return INVALID$2;const _0x423e1b=orderedUnits$1['map'](_0x24e266=>{const _0x5b607f=this['values'][_0x24e266];return isUndefined(_0x5b607f)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x4a3a82,'unit':_0x24e266['slice'](0x0,-0x1)})['format'](_0x5b607f);})['filter'](_0x4c914b=>_0x4c914b);return this['loc']['listFormatter']({'type':'conjunction','style':_0x4a3a82['listStyle']||'narrow',..._0x4a3a82})['format'](_0x423e1b);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0x39c169='P';return 0x0!==this['years']&&(_0x39c169+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0x39c169+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0x39c169+=this['weeks']+'W'),0x0!==this['days']&&(_0x39c169+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0x39c169+='T'),0x0!==this['hours']&&(_0x39c169+=this['hours']+'H'),0x0!==this['minutes']&&(_0x39c169+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0x39c169+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0x39c169&&(_0x39c169+='T0S'),_0x39c169;}['toISOTime'](_0x1d890f={}){if(!this['isValid'])return null;const _0x65dd8c=this['toMillis']();if(_0x65dd8c<0x0||_0x65dd8c>=0x5265c00)return null;return _0x1d890f={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x1d890f,'includeOffset':!0x1},DateTime['fromMillis'](_0x65dd8c,{'zone':'UTC'})['toISOTime'](_0x1d890f);}['toJSON'](){return this['toISO']();}['toString'](){return this['toISO']();}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'Duration\x20{\x20values:\x20'+JSON['stringify'](this['values'])+'\x20}':'Duration\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['toMillis'](){return this['isValid']?durationToMillis(this['matrix'],this['values']):NaN;}['valueOf'](){return this['toMillis']();}['plus'](_0x1c636e){if(!this['isValid'])return this;const _0x5d63d0=Duration['fromDurationLike'](_0x1c636e),_0x527522={};for(const _0x319608 of orderedUnits$1)(hasOwnProperty(_0x5d63d0['values'],_0x319608)||hasOwnProperty(this['values'],_0x319608))&&(_0x527522[_0x319608]=_0x5d63d0['get'](_0x319608)+this['get'](_0x319608));return clone$1(this,{'values':_0x527522},!0x0);}['minus'](_0x1c2154){if(!this['isValid'])return this;const _0x24ac47=Duration['fromDurationLike'](_0x1c2154);return this['plus'](_0x24ac47['negate']());}['mapUnits'](_0x2bbc4a){if(!this['isValid'])return this;const _0x550da5={};for(const _0x104eaf of Object['keys'](this['values']))_0x550da5[_0x104eaf]=asNumber(_0x2bbc4a(this['values'][_0x104eaf],_0x104eaf));return clone$1(this,{'values':_0x550da5},!0x0);}['get'](_0x599f6a){return this[Duration['normalizeUnit'](_0x599f6a)];}['set'](_0xf45f21){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0xf45f21,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0xa2ff56,numberingSystem:_0x3142b5,conversionAccuracy:_0x3b4c5a,matrix:_0x2629c6}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0xa2ff56,'numberingSystem':_0x3142b5}),'matrix':_0x2629c6,'conversionAccuracy':_0x3b4c5a});}['as'](_0x3e5d50){return this['isValid']?this['shiftTo'](_0x3e5d50)['get'](_0x3e5d50):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x17bc3a=this['toObject']();return normalizeValues(this['matrix'],_0x17bc3a),clone$1(this,{'values':_0x17bc3a},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x387bf7){if(!this['isValid'])return this;if(0x0===_0x387bf7['length'])return this;_0x387bf7=_0x387bf7['map'](_0x49b1f3=>Duration['normalizeUnit'](_0x49b1f3));const _0xaf10a8={},_0x27e3b2={},_0x841809=this['toObject']();let _0x58f058;for(const _0x5ecea5 of orderedUnits$1)if(_0x387bf7['indexOf'](_0x5ecea5)>=0x0){_0x58f058=_0x5ecea5;let _0x310d51=0x0;for(const _0x26a6cb in _0x27e3b2)_0x310d51+=this['matrix'][_0x26a6cb][_0x5ecea5]*_0x27e3b2[_0x26a6cb],_0x27e3b2[_0x26a6cb]=0x0;isNumber(_0x841809[_0x5ecea5])&&(_0x310d51+=_0x841809[_0x5ecea5]);const _0x20329e=Math['trunc'](_0x310d51);_0xaf10a8[_0x5ecea5]=_0x20329e,_0x27e3b2[_0x5ecea5]=(0x3e8*_0x310d51-0x3e8*_0x20329e)/0x3e8;}else isNumber(_0x841809[_0x5ecea5])&&(_0x27e3b2[_0x5ecea5]=_0x841809[_0x5ecea5]);for(const _0x39af2b in _0x27e3b2)0x0!==_0x27e3b2[_0x39af2b]&&(_0xaf10a8[_0x58f058]+=_0x39af2b===_0x58f058?_0x27e3b2[_0x39af2b]:_0x27e3b2[_0x39af2b]/this['matrix'][_0x58f058][_0x39af2b]);return normalizeValues(this['matrix'],_0xaf10a8),clone$1(this,{'values':_0xaf10a8},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0x53d9c0={};for(const _0x5887c4 of Object['keys'](this['values']))_0x53d9c0[_0x5887c4]=0x0===this['values'][_0x5887c4]?0x0:-this['values'][_0x5887c4];return clone$1(this,{'values':_0x53d9c0},!0x0);}get['years'](){return this['isValid']?this['values']['years']||0x0:NaN;}get['quarters'](){return this['isValid']?this['values']['quarters']||0x0:NaN;}get['months'](){return this['isValid']?this['values']['months']||0x0:NaN;}get['weeks'](){return this['isValid']?this['values']['weeks']||0x0:NaN;}get['days'](){return this['isValid']?this['values']['days']||0x0:NaN;}get['hours'](){return this['isValid']?this['values']['hours']||0x0:NaN;}get['minutes'](){return this['isValid']?this['values']['minutes']||0x0:NaN;}get['seconds'](){return this['isValid']?this['values']['seconds']||0x0:NaN;}get['milliseconds'](){return this['isValid']?this['values']['milliseconds']||0x0:NaN;}get['isValid'](){return null===this['invalid'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get['invalidExplanation'](){return this['invalid']?this['invalid']['explanation']:null;}['equals'](_0x2d28d7){if(!this['isValid']||!_0x2d28d7['isValid'])return!0x1;if(!this['loc']['equals'](_0x2d28d7['loc']))return!0x1;function _0x29dc0b(_0x560815,_0x569bfd){return void 0x0===_0x560815||0x0===_0x560815?void 0x0===_0x569bfd||0x0===_0x569bfd:_0x560815===_0x569bfd;}for(const _0x2d4873 of orderedUnits$1)if(!_0x29dc0b(this['values'][_0x2d4873],_0x2d28d7['values'][_0x2d4873]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0x7f89f,_0x2cadf2){return _0x7f89f&&_0x7f89f['isValid']?_0x2cadf2&&_0x2cadf2['isValid']?_0x2cadf2<_0x7f89f?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x7f89f['toISO']()+'\x20and\x20end='+_0x2cadf2['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0x2ab0b8){this['s']=_0x2ab0b8['start'],this['e']=_0x2ab0b8['end'],this['invalid']=_0x2ab0b8['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x1031ab,_0x2277c7=null){if(!_0x1031ab)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x221e93=_0x1031ab instanceof Invalid?_0x1031ab:new Invalid(_0x1031ab,_0x2277c7);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x221e93);return new Interval({'invalid':_0x221e93});}static['fromDateTimes'](_0x593b9e,_0x227a9a){const _0x53db2e=friendlyDateTime(_0x593b9e),_0x2bf45c=friendlyDateTime(_0x227a9a),_0x5078f6=validateStartEnd(_0x53db2e,_0x2bf45c);return null==_0x5078f6?new Interval({'start':_0x53db2e,'end':_0x2bf45c}):_0x5078f6;}static['after'](_0x5907d7,_0x44d5f3){const _0x2c0936=Duration['fromDurationLike'](_0x44d5f3),_0x3f84c8=friendlyDateTime(_0x5907d7);return Interval['fromDateTimes'](_0x3f84c8,_0x3f84c8['plus'](_0x2c0936));}static['before'](_0x10ab4d,_0x1527f1){const _0x5ea458=Duration['fromDurationLike'](_0x1527f1),_0x4674d0=friendlyDateTime(_0x10ab4d);return Interval['fromDateTimes'](_0x4674d0['minus'](_0x5ea458),_0x4674d0);}static['fromISO'](_0x3b1d51,_0xfddb4b){const [_0x2209f2,_0x150f9c]=(_0x3b1d51||'')['split']('/',0x2);if(_0x2209f2&&_0x150f9c){let _0x1095e9,_0x583586,_0x245ca5,_0x5dbd9b;try{_0x1095e9=DateTime['fromISO'](_0x2209f2,_0xfddb4b),_0x583586=_0x1095e9['isValid'];}catch(_0x4a0b53){_0x583586=!0x1;}try{_0x245ca5=DateTime['fromISO'](_0x150f9c,_0xfddb4b),_0x5dbd9b=_0x245ca5['isValid'];}catch(_0x38495e){_0x5dbd9b=!0x1;}if(_0x583586&&_0x5dbd9b)return Interval['fromDateTimes'](_0x1095e9,_0x245ca5);if(_0x583586){const _0x95ba39=Duration['fromISO'](_0x150f9c,_0xfddb4b);if(_0x95ba39['isValid'])return Interval['after'](_0x1095e9,_0x95ba39);}else{if(_0x5dbd9b){const _0x2ebecf=Duration['fromISO'](_0x2209f2,_0xfddb4b);if(_0x2ebecf['isValid'])return Interval['before'](_0x245ca5,_0x2ebecf);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x3b1d51+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0xdce3b){return _0xdce3b&&_0xdce3b['isLuxonInterval']||!0x1;}get['start'](){return this['isValid']?this['s']:null;}get['end'](){return this['isValid']?this['e']:null;}get['lastDateTime'](){return this['isValid']&&this['e']?this['e']['minus'](0x1):null;}get['isValid'](){return null===this['invalidReason'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get['invalidExplanation'](){return this['invalid']?this['invalid']['explanation']:null;}['length'](_0x38d376='milliseconds'){return this['isValid']?this['toDuration'](_0x38d376)['get'](_0x38d376):NaN;}['count'](_0x2af0d1='milliseconds',_0x4038f4){if(!this['isValid'])return NaN;const _0x381890=this['start']['startOf'](_0x2af0d1,_0x4038f4);let _0x17f50c;return _0x17f50c=_0x4038f4?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x381890['locale']}):this['end'],_0x17f50c=_0x17f50c['startOf'](_0x2af0d1,_0x4038f4),Math['floor'](_0x17f50c['diff'](_0x381890,_0x2af0d1)['get'](_0x2af0d1))+(_0x17f50c['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x4f7723){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x4f7723));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x257c61){return!!this['isValid']&&this['s']>_0x257c61;}['isBefore'](_0x318307){return!!this['isValid']&&this['e']<=_0x318307;}['contains'](_0x5bae1d){return!!this['isValid']&&(this['s']<=_0x5bae1d&&this['e']>_0x5bae1d);}['set']({start:_0xe6faed,end:_0xcc2994}={}){return this['isValid']?Interval['fromDateTimes'](_0xe6faed||this['s'],_0xcc2994||this['e']):this;}['splitAt'](..._0x52d487){if(!this['isValid'])return[];const _0x5d22d0=_0x52d487['map'](friendlyDateTime)['filter'](_0x119945=>this['contains'](_0x119945))['sort']((_0xed2c2b,_0x8f2f9e)=>_0xed2c2b['toMillis']()-_0x8f2f9e['toMillis']()),_0x454638=[];let {s:_0x528cb5}=this,_0xf78f25=0x0;for(;_0x528cb5<this['e'];){const _0x58ad29=_0x5d22d0[_0xf78f25]||this['e'],_0x17a50b=+_0x58ad29>+this['e']?this['e']:_0x58ad29;_0x454638['push'](Interval['fromDateTimes'](_0x528cb5,_0x17a50b)),_0x528cb5=_0x17a50b,_0xf78f25+=0x1;}return _0x454638;}['splitBy'](_0x424371){const _0x302822=Duration['fromDurationLike'](_0x424371);if(!this['isValid']||!_0x302822['isValid']||0x0===_0x302822['as']('milliseconds'))return[];let _0x52f597,{s:_0x5730ce}=this,_0x96bdcf=0x1;const _0x3c5ac4=[];for(;_0x5730ce<this['e'];){const _0x2dc235=this['start']['plus'](_0x302822['mapUnits'](_0x812383=>_0x812383*_0x96bdcf));_0x52f597=+_0x2dc235>+this['e']?this['e']:_0x2dc235,_0x3c5ac4['push'](Interval['fromDateTimes'](_0x5730ce,_0x52f597)),_0x5730ce=_0x52f597,_0x96bdcf+=0x1;}return _0x3c5ac4;}['divideEqually'](_0x429a6c){return this['isValid']?this['splitBy'](this['length']()/_0x429a6c)['slice'](0x0,_0x429a6c):[];}['overlaps'](_0x2cf111){return this['e']>_0x2cf111['s']&&this['s']<_0x2cf111['e'];}['abutsStart'](_0x1a57a1){return!!this['isValid']&&+this['e']===+_0x1a57a1['s'];}['abutsEnd'](_0x46bbcb){return!!this['isValid']&&+_0x46bbcb['e']===+this['s'];}['engulfs'](_0x35c64c){return!!this['isValid']&&(this['s']<=_0x35c64c['s']&&this['e']>=_0x35c64c['e']);}['equals'](_0x1de11c){return!(!this['isValid']||!_0x1de11c['isValid'])&&(this['s']['equals'](_0x1de11c['s'])&&this['e']['equals'](_0x1de11c['e']));}['intersection'](_0x32e426){if(!this['isValid'])return this;const _0x9a41f1=this['s']>_0x32e426['s']?this['s']:_0x32e426['s'],_0x403e98=this['e']<_0x32e426['e']?this['e']:_0x32e426['e'];return _0x9a41f1>=_0x403e98?null:Interval['fromDateTimes'](_0x9a41f1,_0x403e98);}['union'](_0x3f6a18){if(!this['isValid'])return this;const _0x320b13=this['s']<_0x3f6a18['s']?this['s']:_0x3f6a18['s'],_0x287ad8=this['e']>_0x3f6a18['e']?this['e']:_0x3f6a18['e'];return Interval['fromDateTimes'](_0x320b13,_0x287ad8);}static['merge'](_0x33934a){const [_0x51ebe9,_0x22ac56]=_0x33934a['sort']((_0x370e92,_0x4b3afe)=>_0x370e92['s']-_0x4b3afe['s'])['reduce'](([_0x4c3170,_0x15e5b9],_0x42a367)=>_0x15e5b9?_0x15e5b9['overlaps'](_0x42a367)||_0x15e5b9['abutsStart'](_0x42a367)?[_0x4c3170,_0x15e5b9['union'](_0x42a367)]:[_0x4c3170['concat']([_0x15e5b9]),_0x42a367]:[_0x4c3170,_0x42a367],[[],null]);return _0x22ac56&&_0x51ebe9['push'](_0x22ac56),_0x51ebe9;}static['xor'](_0x1d7fe8){let _0x24b19a=null,_0x39d2f8=0x0;const _0x1f7277=[],_0x295463=_0x1d7fe8['map'](_0x10b74c=>[{'time':_0x10b74c['s'],'type':'s'},{'time':_0x10b74c['e'],'type':'e'}]),_0x2ac1d6=Array['prototype']['concat'](..._0x295463)['sort']((_0xf69825,_0x3fbd64)=>_0xf69825['time']-_0x3fbd64['time']);for(const _0x4d6d95 of _0x2ac1d6)_0x39d2f8+='s'===_0x4d6d95['type']?0x1:-0x1,0x1===_0x39d2f8?_0x24b19a=_0x4d6d95['time']:(_0x24b19a&&+_0x24b19a!==+_0x4d6d95['time']&&_0x1f7277['push'](Interval['fromDateTimes'](_0x24b19a,_0x4d6d95['time'])),_0x24b19a=null);return Interval['merge'](_0x1f7277);}['difference'](..._0xd965e9){return Interval['xor']([this]['concat'](_0xd965e9))['map'](_0x1c8264=>this['intersection'](_0x1c8264))['filter'](_0x1829c0=>_0x1829c0&&!_0x1829c0['isEmpty']());}['toString'](){return this['isValid']?'['+this['s']['toISO']()+'\x20–\x20'+this['e']['toISO']()+')':INVALID$1;}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'Interval\x20{\x20start:\x20'+this['s']['toISO']()+',\x20end:\x20'+this['e']['toISO']()+'\x20}':'Interval\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['toLocaleString'](_0x218794=DATE_SHORT,_0x3bfef1={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x3bfef1),_0x218794)['formatInterval'](this):INVALID$1;}['toISO'](_0x21dfb7){return this['isValid']?this['s']['toISO'](_0x21dfb7)+'/'+this['e']['toISO'](_0x21dfb7):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x8bb18b){return this['isValid']?this['s']['toISOTime'](_0x8bb18b)+'/'+this['e']['toISOTime'](_0x8bb18b):INVALID$1;}['toFormat'](_0x4c1ef9,{separator:_0x1c6221='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x4c1ef9)+_0x1c6221+this['e']['toFormat'](_0x4c1ef9):INVALID$1;}['toDuration'](_0x2df58c,_0x45c3db){return this['isValid']?this['e']['diff'](this['s'],_0x2df58c,_0x45c3db):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0xa4a00f){return Interval['fromDateTimes'](_0xa4a00f(this['s']),_0xa4a00f(this['e']));}}class Info{static['hasDST'](_0x5a44af=Settings['defaultZone']){const _0x12bab5=DateTime['now']()['setZone'](_0x5a44af)['set']({'month':0xc});return!_0x5a44af['isUniversal']&&_0x12bab5['offset']!==_0x12bab5['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0x1582cc){return IANAZone['isValidZone'](_0x1582cc);}static['normalizeZone'](_0x4d2eff){return normalizeZone(_0x4d2eff,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x1de523=null,locObj:_0x2aa547=null}={}){return(_0x2aa547||Locale['create'](_0x1de523))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x376567=null,locObj:_0x244fed=null}={}){return(_0x244fed||Locale['create'](_0x376567))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0x5c6607=null,locObj:_0x5bbb40=null}={}){return(_0x5bbb40||Locale['create'](_0x5c6607))['getWeekendDays']()['slice']();}static['months'](_0x5ebf9b='long',{locale:_0x44325c=null,numberingSystem:_0x2aa50c=null,locObj:_0x422195=null,outputCalendar:_0x1200a7='gregory'}={}){return(_0x422195||Locale['create'](_0x44325c,_0x2aa50c,_0x1200a7))['months'](_0x5ebf9b);}static['monthsFormat'](_0x5772d9='long',{locale:_0x40c419=null,numberingSystem:_0x397b2f=null,locObj:_0x120235=null,outputCalendar:_0x102e56='gregory'}={}){return(_0x120235||Locale['create'](_0x40c419,_0x397b2f,_0x102e56))['months'](_0x5772d9,!0x0);}static['weekdays'](_0x5c657a='long',{locale:_0x4aa41a=null,numberingSystem:_0x5c0bde=null,locObj:_0x478a3b=null}={}){return(_0x478a3b||Locale['create'](_0x4aa41a,_0x5c0bde,null))['weekdays'](_0x5c657a);}static['weekdaysFormat'](_0x41d9a4='long',{locale:_0xe22cba=null,numberingSystem:_0x5d8ffa=null,locObj:_0xacf54c=null}={}){return(_0xacf54c||Locale['create'](_0xe22cba,_0x5d8ffa,null))['weekdays'](_0x41d9a4,!0x0);}static['meridiems']({locale:_0x51c24e=null}={}){return Locale['create'](_0x51c24e)['meridiems']();}static['eras'](_0x1ddcb0='short',{locale:_0x277d71=null}={}){return Locale['create'](_0x277d71,null,'gregory')['eras'](_0x1ddcb0);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x29dc45,_0xc75664){const _0x4d1e60=_0x17d9b3=>_0x17d9b3['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x1f17d8=_0x4d1e60(_0xc75664)-_0x4d1e60(_0x29dc45);return Math['floor'](Duration['fromMillis'](_0x1f17d8)['as']('days'));}function highOrderDiffs(_0x54475a,_0x26c325,_0x276f81){const _0x569351=[['years',(_0x2936bd,_0x24ea83)=>_0x24ea83['year']-_0x2936bd['year']],['quarters',(_0xee297,_0x2c3160)=>_0x2c3160['quarter']-_0xee297['quarter']+0x4*(_0x2c3160['year']-_0xee297['year'])],['months',(_0x11d034,_0x8a3d31)=>_0x8a3d31['month']-_0x11d034['month']+0xc*(_0x8a3d31['year']-_0x11d034['year'])],['weeks',(_0x371424,_0x38ac69)=>{const _0x3ecf93=dayDiff(_0x371424,_0x38ac69);return(_0x3ecf93-_0x3ecf93%0x7)/0x7;}],['days',dayDiff]],_0x3193dd={},_0x504d3a=_0x54475a;let _0x57e080,_0x3388aa;for(const [_0x270ff9,_0xd177ee]of _0x569351)_0x276f81['indexOf'](_0x270ff9)>=0x0&&(_0x57e080=_0x270ff9,_0x3193dd[_0x270ff9]=_0xd177ee(_0x54475a,_0x26c325),_0x3388aa=_0x504d3a['plus'](_0x3193dd),_0x3388aa>_0x26c325?(_0x3193dd[_0x270ff9]--,(_0x54475a=_0x504d3a['plus'](_0x3193dd))>_0x26c325&&(_0x3388aa=_0x54475a,_0x3193dd[_0x270ff9]--,_0x54475a=_0x504d3a['plus'](_0x3193dd))):_0x54475a=_0x3388aa);return[_0x54475a,_0x3193dd,_0x3388aa,_0x57e080];}function diff(_0x4c27e0,_0x5caec9,_0x48695d,_0x21bbf3){let [_0x2bc89b,_0xa576ff,_0x3f22a8,_0x588399]=highOrderDiffs(_0x4c27e0,_0x5caec9,_0x48695d);const _0x57e113=_0x5caec9-_0x2bc89b,_0x3c8927=_0x48695d['filter'](_0x2f3f7f=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x2f3f7f)>=0x0);0x0===_0x3c8927['length']&&(_0x3f22a8<_0x5caec9&&(_0x3f22a8=_0x2bc89b['plus']({[_0x588399]:0x1})),_0x3f22a8!==_0x2bc89b&&(_0xa576ff[_0x588399]=(_0xa576ff[_0x588399]||0x0)+_0x57e113/(_0x3f22a8-_0x2bc89b)));const _0x6d0eda=Duration['fromObject'](_0xa576ff,_0x21bbf3);return _0x3c8927['length']>0x0?Duration['fromMillis'](_0x57e113,_0x21bbf3)['shiftTo'](..._0x3c8927)['plus'](_0x6d0eda):_0x6d0eda;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x420319,_0x3e1295=_0x1fae18=>_0x1fae18){return{'regex':_0x420319,'deser':([_0x1ae3da])=>_0x3e1295(parseDigits(_0x1ae3da))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0x19acfc){return _0x19acfc['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0x1f3280){return _0x1f3280['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x5ed9d4,_0x61941d){return null===_0x5ed9d4?null:{'regex':RegExp(_0x5ed9d4['map'](fixListRegex)['join']('|')),'deser':([_0x170672])=>_0x5ed9d4['findIndex'](_0x509414=>stripInsensitivities(_0x170672)===stripInsensitivities(_0x509414))+_0x61941d};}function offset(_0x4586df,_0x593213){return{'regex':_0x4586df,'deser':([,_0x560b80,_0x14b264])=>signedOffset(_0x560b80,_0x14b264),'groups':_0x593213};}function simple(_0x10e625){return{'regex':_0x10e625,'deser':([_0x5a7231])=>_0x5a7231};}function escapeToken(_0x3d67de){return _0x3d67de['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x3f145c,_0x3e7622){const _0x234c3a=digitRegex(_0x3e7622),_0x36ba1a=digitRegex(_0x3e7622,'{2}'),_0x30ca5f=digitRegex(_0x3e7622,'{3}'),_0x31175b=digitRegex(_0x3e7622,'{4}'),_0x1b7309=digitRegex(_0x3e7622,'{6}'),_0x2a60e1=digitRegex(_0x3e7622,'{1,2}'),_0x52c566=digitRegex(_0x3e7622,'{1,3}'),_0x2897f0=digitRegex(_0x3e7622,'{1,6}'),_0xb701e2=digitRegex(_0x3e7622,'{1,9}'),_0x5b33ed=digitRegex(_0x3e7622,'{2,4}'),_0x5f120d=digitRegex(_0x3e7622,'{4,6}'),_0x16b26a=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0x37cc2b])=>_0x37cc2b,'literal':!0x0}),_0x5e355d=(t=>{if(_0x3f145c['literal'])return _0x16b26a(t);switch(t['val']){case'G':return oneOf(_0x3e7622['eras']('short'),0x0);case'GG':return oneOf(_0x3e7622['eras']('long'),0x0);case'y':return intUnit(_0x2897f0);case'yy':case'kk':return intUnit(_0x5b33ed,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x31175b);case'yyyyy':return intUnit(_0x5f120d);case'yyyyyy':return intUnit(_0x1b7309);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x2a60e1);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x36ba1a);case'MMM':return oneOf(_0x3e7622['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x3e7622['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x3e7622['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x3e7622['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x52c566);case'ooo':case'SSS':return intUnit(_0x30ca5f);case'u':return simple(_0xb701e2);case'uu':return simple(_0x2a60e1);case'uuu':case'E':case'c':return intUnit(_0x234c3a);case'a':return oneOf(_0x3e7622['meridiems'](),0x0);case'EEE':return oneOf(_0x3e7622['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x3e7622['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x3e7622['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x3e7622['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x2a60e1['source']+')(?::('+_0x36ba1a['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x2a60e1['source']+')('+_0x36ba1a['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x16b26a(t);}})(_0x3f145c)||{'invalidReason':MISSING_FTP};return _0x5e355d['token']=_0x3f145c,_0x5e355d;}const partTypeStyleToTokenVal={'year':{'2-digit':'yy','numeric':'yyyyy'},'month':{'numeric':'M','2-digit':'MM','short':'MMM','long':'MMMM'},'day':{'numeric':'d','2-digit':'dd'},'weekday':{'short':'EEE','long':'EEEE'},'dayperiod':'a','dayPeriod':'a','hour12':{'numeric':'h','2-digit':'hh'},'hour24':{'numeric':'H','2-digit':'HH'},'minute':{'numeric':'m','2-digit':'mm'},'second':{'numeric':'s','2-digit':'ss'},'timeZoneName':{'long':'ZZZZZ','short':'ZZZ'}};function tokenForPart(_0x499fac,_0x45f1c3,_0x441dee){const {type:_0xeec5ae,value:_0x5909c8}=_0x499fac;if('literal'===_0xeec5ae){const _0x50e451=/^\s+$/['test'](_0x5909c8);return{'literal':!_0x50e451,'val':_0x50e451?'\x20':_0x5909c8};}const _0x1ab335=_0x45f1c3[_0xeec5ae];let _0x2f9bb6=_0xeec5ae;'hour'===_0xeec5ae&&(_0x2f9bb6=null!=_0x45f1c3['hour12']?_0x45f1c3['hour12']?'hour12':'hour24':null!=_0x45f1c3['hourCycle']?'h11'===_0x45f1c3['hourCycle']||'h12'===_0x45f1c3['hourCycle']?'hour12':'hour24':_0x441dee['hour12']?'hour12':'hour24');let _0x20b108=partTypeStyleToTokenVal[_0x2f9bb6];if('object'==typeof _0x20b108&&(_0x20b108=_0x20b108[_0x1ab335]),_0x20b108)return{'literal':!0x1,'val':_0x20b108};}function buildRegex(_0x35f92e){return['^'+_0x35f92e['map'](_0x3cc542=>_0x3cc542['regex'])['reduce']((_0x1247db,_0x2b37e5)=>_0x1247db+'('+_0x2b37e5['source']+')','')+'$',_0x35f92e];}function match(_0x167e94,_0x3183b0,_0x12140c){const _0x2e3315=_0x167e94['match'](_0x3183b0);if(_0x2e3315){const _0x15e087={};let _0x149582=0x1;for(const _0x3b3b16 in _0x12140c)if(hasOwnProperty(_0x12140c,_0x3b3b16)){const _0x1323b7=_0x12140c[_0x3b3b16],_0x557284=_0x1323b7['groups']?_0x1323b7['groups']+0x1:0x1;!_0x1323b7['literal']&&_0x1323b7['token']&&(_0x15e087[_0x1323b7['token']['val'][0x0]]=_0x1323b7['deser'](_0x2e3315['slice'](_0x149582,_0x149582+_0x557284))),_0x149582+=_0x557284;}return[_0x2e3315,_0x15e087];}return[_0x2e3315,{}];}function dateTimeFromMatches(_0x1c92bf){let _0x42ed06,_0x283f28=null;isUndefined(_0x1c92bf['z'])||(_0x283f28=IANAZone['create'](_0x1c92bf['z'])),isUndefined(_0x1c92bf['Z'])||(_0x283f28||(_0x283f28=new FixedOffsetZone(_0x1c92bf['Z'])),_0x42ed06=_0x1c92bf['Z']),isUndefined(_0x1c92bf['q'])||(_0x1c92bf['M']=0x3*(_0x1c92bf['q']-0x1)+0x1),isUndefined(_0x1c92bf['h'])||(_0x1c92bf['h']<0xc&&0x1===_0x1c92bf['a']?_0x1c92bf['h']+=0xc:0xc===_0x1c92bf['h']&&0x0===_0x1c92bf['a']&&(_0x1c92bf['h']=0x0)),0x0===_0x1c92bf['G']&&_0x1c92bf['y']&&(_0x1c92bf['y']=-_0x1c92bf['y']),isUndefined(_0x1c92bf['u'])||(_0x1c92bf['S']=parseMillis(_0x1c92bf['u']));const _0x52eae5=Object['keys'](_0x1c92bf)['reduce']((_0x8d90ef,_0x1ca2aa)=>{const _0x3b8ac3=(_0x11b083=>{switch(_0x11b083){case'S':return'millisecond';case's':return'second';case'm':return'minute';case'h':case'H':return'hour';case'd':return'day';case'o':return'ordinal';case'L':case'M':return'month';case'y':return'year';case'E':case'c':return'weekday';case'W':return'weekNumber';case'k':return'weekYear';case'q':return'quarter';default:return null;}})(_0x1ca2aa);return _0x3b8ac3&&(_0x8d90ef[_0x3b8ac3]=_0x1c92bf[_0x1ca2aa]),_0x8d90ef;},{});return[_0x52eae5,_0x283f28,_0x42ed06];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x14269e,_0x127bc1){if(_0x14269e['literal'])return _0x14269e;const _0x498095=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x14269e['val']),_0x127bc1);return null==_0x498095||_0x498095['includes'](void 0x0)?_0x14269e:_0x498095;}function expandMacroTokens(_0x4044f8,_0x62371f){return Array['prototype']['concat'](..._0x4044f8['map'](t=>maybeExpandMacroToken(t,_0x62371f)));}class TokenParser{constructor(_0x44823b,_0x13858e){if(this['locale']=_0x44823b,this['format']=_0x13858e,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0x13858e),_0x44823b),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x44823b)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x3a2533,_0x58c528]=buildRegex(this['units']);this['regex']=RegExp(_0x3a2533,'i'),this['handlers']=_0x58c528;}}['explainFromTokens'](_0x52a46b){if(this['isValid']){const [_0x4854b4,_0x3f9c96]=match(_0x52a46b,this['regex'],this['handlers']),[_0x16d7b8,_0x333c20,_0x5546b8]=_0x3f9c96?dateTimeFromMatches(_0x3f9c96):[null,null,void 0x0];if(hasOwnProperty(_0x3f9c96,'a')&&hasOwnProperty(_0x3f9c96,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x52a46b,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x4854b4,'matches':_0x3f9c96,'result':_0x16d7b8,'zone':_0x333c20,'specificOffset':_0x5546b8};}return{'input':_0x52a46b,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x3156f7,_0x4ab19a,_0x397393){return new TokenParser(_0x3156f7,_0x397393)['explainFromTokens'](_0x4ab19a);}function parseFromTokens(_0x1fa2c8,_0x1c7715,_0x1c8870){const {result:_0x4e42bb,zone:_0x1012c,specificOffset:_0x195edd,invalidReason:_0x36bb4b}=explainFromTokens(_0x1fa2c8,_0x1c7715,_0x1c8870);return[_0x4e42bb,_0x1012c,_0x195edd,_0x36bb4b];}function formatOptsToTokens(_0x28b1f5,_0x348b36){if(!_0x28b1f5)return null;const _0x370750=Formatter['create'](_0x348b36,_0x28b1f5)['dtFormatter'](getDummyDateTime()),_0x1353c9=_0x370750['formatToParts'](),_0x2188d3=_0x370750['resolvedOptions']();return _0x1353c9['map'](_0x47c835=>tokenForPart(_0x47c835,_0x28b1f5,_0x2188d3));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0xbe5e64){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0xbe5e64['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x1495a5){return null===_0x1495a5['weekData']&&(_0x1495a5['weekData']=gregorianToWeek(_0x1495a5['c'])),_0x1495a5['weekData'];}function possiblyCachedLocalWeekData(_0x37f8d9){return null===_0x37f8d9['localWeekData']&&(_0x37f8d9['localWeekData']=gregorianToWeek(_0x37f8d9['c'],_0x37f8d9['loc']['getMinDaysInFirstWeek'](),_0x37f8d9['loc']['getStartOfWeek']())),_0x37f8d9['localWeekData'];}function clone(_0x2002ac,_0x1e2984){const _0x19a3e5={'ts':_0x2002ac['ts'],'zone':_0x2002ac['zone'],'c':_0x2002ac['c'],'o':_0x2002ac['o'],'loc':_0x2002ac['loc'],'invalid':_0x2002ac['invalid']};return new DateTime({..._0x19a3e5,..._0x1e2984,'old':_0x19a3e5});}function fixOffset(_0x3d5b0f,_0xd587b2,_0x392a6b){let _0x34a03f=_0x3d5b0f-0x3c*_0xd587b2*0x3e8;const _0x2a35ed=_0x392a6b['offset'](_0x34a03f);if(_0xd587b2===_0x2a35ed)return[_0x34a03f,_0xd587b2];_0x34a03f-=0x3c*(_0x2a35ed-_0xd587b2)*0x3e8;const _0x15a5a0=_0x392a6b['offset'](_0x34a03f);return _0x2a35ed===_0x15a5a0?[_0x34a03f,_0x2a35ed]:[_0x3d5b0f-0x3c*Math['min'](_0x2a35ed,_0x15a5a0)*0x3e8,Math['max'](_0x2a35ed,_0x15a5a0)];}function tsToObj(_0x2ffa69,_0x5df2e4){const _0x163b13=new Date(_0x2ffa69+=0x3c*_0x5df2e4*0x3e8);return{'year':_0x163b13['getUTCFullYear'](),'month':_0x163b13['getUTCMonth']()+0x1,'day':_0x163b13['getUTCDate'](),'hour':_0x163b13['getUTCHours'](),'minute':_0x163b13['getUTCMinutes'](),'second':_0x163b13['getUTCSeconds'](),'millisecond':_0x163b13['getUTCMilliseconds']()};}function objToTS(_0x5b7dda,_0x53aff4,_0x18afc5){return fixOffset(objToLocalTS(_0x5b7dda),_0x53aff4,_0x18afc5);}function adjustTime(_0x433311,_0x46930e){const _0x53dd57=_0x433311['o'],_0x338527=_0x433311['c']['year']+Math['trunc'](_0x46930e['years']),_0x4563a5=_0x433311['c']['month']+Math['trunc'](_0x46930e['months'])+0x3*Math['trunc'](_0x46930e['quarters']),_0x4dfca8={..._0x433311['c'],'year':_0x338527,'month':_0x4563a5,'day':Math['min'](_0x433311['c']['day'],daysInMonth(_0x338527,_0x4563a5))+Math['trunc'](_0x46930e['days'])+0x7*Math['trunc'](_0x46930e['weeks'])},_0x39014a=Duration['fromObject']({'years':_0x46930e['years']-Math['trunc'](_0x46930e['years']),'quarters':_0x46930e['quarters']-Math['trunc'](_0x46930e['quarters']),'months':_0x46930e['months']-Math['trunc'](_0x46930e['months']),'weeks':_0x46930e['weeks']-Math['trunc'](_0x46930e['weeks']),'days':_0x46930e['days']-Math['trunc'](_0x46930e['days']),'hours':_0x46930e['hours'],'minutes':_0x46930e['minutes'],'seconds':_0x46930e['seconds'],'milliseconds':_0x46930e['milliseconds']})['as']('milliseconds'),_0xa206e1=objToLocalTS(_0x4dfca8);let [_0x116675,_0xc38731]=fixOffset(_0xa206e1,_0x53dd57,_0x433311['zone']);return 0x0!==_0x39014a&&(_0x116675+=_0x39014a,_0xc38731=_0x433311['zone']['offset'](_0x116675)),{'ts':_0x116675,'o':_0xc38731};}function parseDataToDateTime(_0x539cf4,_0x378ca2,_0x51ecbd,_0x13552f,_0x15d79e,_0x27141d){const {setZone:_0x1e2fc2,zone:_0x18cbd2}=_0x51ecbd;if(_0x539cf4&&0x0!==Object['keys'](_0x539cf4)['length']||_0x378ca2){const _0x3ac5f9=_0x378ca2||_0x18cbd2,_0x3ad512=DateTime['fromObject'](_0x539cf4,{..._0x51ecbd,'zone':_0x3ac5f9,'specificOffset':_0x27141d});return _0x1e2fc2?_0x3ad512:_0x3ad512['setZone'](_0x18cbd2);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x15d79e+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x13552f));}function toTechFormat(_0x5ba5f9,_0x40bfcb,_0xae288e=!0x0){return _0x5ba5f9['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0xae288e,'forceSimple':!0x0})['formatDateTimeFromString'](_0x5ba5f9,_0x40bfcb):null;}function toISODate(_0x477b9d,_0x29e0e8){const _0x257679=_0x477b9d['c']['year']>0x270f||_0x477b9d['c']['year']<0x0;let _0x2d5ce0='';return _0x257679&&_0x477b9d['c']['year']>=0x0&&(_0x2d5ce0+='+'),_0x2d5ce0+=padStart(_0x477b9d['c']['year'],_0x257679?0x6:0x4),_0x29e0e8?(_0x2d5ce0+='-',_0x2d5ce0+=padStart(_0x477b9d['c']['month']),_0x2d5ce0+='-',_0x2d5ce0+=padStart(_0x477b9d['c']['day'])):(_0x2d5ce0+=padStart(_0x477b9d['c']['month']),_0x2d5ce0+=padStart(_0x477b9d['c']['day'])),_0x2d5ce0;}function toISOTime(_0x26f549,_0x4e4cb1,_0x156bff,_0x56b341,_0x5e733c,_0x536953){let _0x4cf7f6=padStart(_0x26f549['c']['hour']);return _0x4e4cb1?(_0x4cf7f6+=':',_0x4cf7f6+=padStart(_0x26f549['c']['minute']),0x0===_0x26f549['c']['millisecond']&&0x0===_0x26f549['c']['second']&&_0x156bff||(_0x4cf7f6+=':')):_0x4cf7f6+=padStart(_0x26f549['c']['minute']),0x0===_0x26f549['c']['millisecond']&&0x0===_0x26f549['c']['second']&&_0x156bff||(_0x4cf7f6+=padStart(_0x26f549['c']['second']),0x0===_0x26f549['c']['millisecond']&&_0x56b341||(_0x4cf7f6+='.',_0x4cf7f6+=padStart(_0x26f549['c']['millisecond'],0x3))),_0x5e733c&&(_0x26f549['isOffsetFixed']&&0x0===_0x26f549['offset']&&!_0x536953?_0x4cf7f6+='Z':_0x26f549['o']<0x0?(_0x4cf7f6+='-',_0x4cf7f6+=padStart(Math['trunc'](-_0x26f549['o']/0x3c)),_0x4cf7f6+=':',_0x4cf7f6+=padStart(Math['trunc'](-_0x26f549['o']%0x3c))):(_0x4cf7f6+='+',_0x4cf7f6+=padStart(Math['trunc'](_0x26f549['o']/0x3c)),_0x4cf7f6+=':',_0x4cf7f6+=padStart(Math['trunc'](_0x26f549['o']%0x3c)))),_0x536953&&(_0x4cf7f6+='['+_0x26f549['zone']['ianaName']+']'),_0x4cf7f6;}const defaultUnitValues={'month':0x1,'day':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},defaultWeekUnitValues={'weekNumber':0x1,'weekday':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},defaultOrdinalUnitValues={'ordinal':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},orderedUnits=['year','month','day','hour','minute','second','millisecond'],orderedWeekUnits=['weekYear','weekNumber','weekday','hour','minute','second','millisecond'],orderedOrdinalUnits=['year','ordinal','hour','minute','second','millisecond'];function normalizeUnit(_0x2897be){const _0x17ae98={'year':'year','years':'year','month':'month','months':'month','day':'day','days':'day','hour':'hour','hours':'hour','minute':'minute','minutes':'minute','quarter':'quarter','quarters':'quarter','second':'second','seconds':'second','millisecond':'millisecond','milliseconds':'millisecond','weekday':'weekday','weekdays':'weekday','weeknumber':'weekNumber','weeksnumber':'weekNumber','weeknumbers':'weekNumber','weekyear':'weekYear','weekyears':'weekYear','ordinal':'ordinal'}[_0x2897be['toLowerCase']()];if(!_0x17ae98)throw new InvalidUnitError(_0x2897be);return _0x17ae98;}function normalizeUnitWithLocalWeeks(_0x4ae829){switch(_0x4ae829['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x4ae829);}}function guessOffsetForZone(_0x1a85c8){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0x1a85c8['type'])return _0x1a85c8['offset'](zoneOffsetTs);const _0x167b19=_0x1a85c8['name'];let _0x10ee2b=zoneOffsetGuessCache['get'](_0x167b19);return void 0x0===_0x10ee2b&&(_0x10ee2b=_0x1a85c8['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0x167b19,_0x10ee2b)),_0x10ee2b;}function quickDT(_0x202903,_0x484e5f){const _0x48c622=normalizeZone(_0x484e5f['zone'],Settings['defaultZone']);if(!_0x48c622['isValid'])return DateTime['invalid'](unsupportedZone(_0x48c622));const _0x1570ba=Locale['fromObject'](_0x484e5f);let _0xbe165c,_0x594e26;if(isUndefined(_0x202903['year']))_0xbe165c=Settings['now']();else{for(const _0xe8865e of orderedUnits)isUndefined(_0x202903[_0xe8865e])&&(_0x202903[_0xe8865e]=defaultUnitValues[_0xe8865e]);const _0x1d1884=hasInvalidGregorianData(_0x202903)||hasInvalidTimeData(_0x202903);if(_0x1d1884)return DateTime['invalid'](_0x1d1884);const _0x47e358=guessOffsetForZone(_0x48c622);[_0xbe165c,_0x594e26]=objToTS(_0x202903,_0x47e358,_0x48c622);}return new DateTime({'ts':_0xbe165c,'zone':_0x48c622,'loc':_0x1570ba,'o':_0x594e26});}function diffRelative(_0x587a60,_0x48f12a,_0x3b9c46){const _0x4d8516=!!isUndefined(_0x3b9c46['round'])||_0x3b9c46['round'],_0x20569b=(_0x271f20,_0xfdd7e0)=>{return _0x271f20=roundTo(_0x271f20,_0x4d8516||_0x3b9c46['calendary']?0x0:0x2,!0x0),_0x48f12a['loc']['clone'](_0x3b9c46)['relFormatter'](_0x3b9c46)['format'](_0x271f20,_0xfdd7e0);},_0x2f26ea=_0x47c86d=>_0x3b9c46['calendary']?_0x48f12a['hasSame'](_0x587a60,_0x47c86d)?0x0:_0x48f12a['startOf'](_0x47c86d)['diff'](_0x587a60['startOf'](_0x47c86d),_0x47c86d)['get'](_0x47c86d):_0x48f12a['diff'](_0x587a60,_0x47c86d)['get'](_0x47c86d);if(_0x3b9c46['unit'])return _0x20569b(_0x2f26ea(_0x3b9c46['unit']),_0x3b9c46['unit']);for(const _0xd1ffa6 of _0x3b9c46['units']){const _0x12e592=_0x2f26ea(_0xd1ffa6);if(Math['abs'](_0x12e592)>=0x1)return _0x20569b(_0x12e592,_0xd1ffa6);}return _0x20569b(_0x587a60>_0x48f12a?-0x0:0x0,_0x3b9c46['units'][_0x3b9c46['units']['length']-0x1]);}function lastOpts(_0x1fcb42){let _0x15bb09,_0x548b87={};return _0x1fcb42['length']>0x0&&'object'==typeof _0x1fcb42[_0x1fcb42['length']-0x1]?(_0x548b87=_0x1fcb42[_0x1fcb42['length']-0x1],_0x15bb09=Array['from'](_0x1fcb42)['slice'](0x0,_0x1fcb42['length']-0x1)):_0x15bb09=Array['from'](_0x1fcb42),[_0x548b87,_0x15bb09];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x29eb18){const _0x5cb8a6=_0x29eb18['zone']||Settings['defaultZone'];let _0x56657b=_0x29eb18['invalid']||(Number['isNaN'](_0x29eb18['ts'])?new Invalid('invalid\x20input'):null)||(_0x5cb8a6['isValid']?null:unsupportedZone(_0x5cb8a6));this['ts']=isUndefined(_0x29eb18['ts'])?Settings['now']():_0x29eb18['ts'];let _0x59001d=null,_0x538b4f=null;if(!_0x56657b){if(_0x29eb18['old']&&_0x29eb18['old']['ts']===this['ts']&&_0x29eb18['old']['zone']['equals'](_0x5cb8a6))[_0x59001d,_0x538b4f]=[_0x29eb18['old']['c'],_0x29eb18['old']['o']];else{const _0x45ec9a=isNumber(_0x29eb18['o'])&&!_0x29eb18['old']?_0x29eb18['o']:_0x5cb8a6['offset'](this['ts']);_0x59001d=tsToObj(this['ts'],_0x45ec9a),_0x56657b=Number['isNaN'](_0x59001d['year'])?new Invalid('invalid\x20input'):null,_0x59001d=_0x56657b?null:_0x59001d,_0x538b4f=_0x56657b?null:_0x45ec9a;}}this['_zone']=_0x5cb8a6,this['loc']=_0x29eb18['loc']||Locale['create'](),this['invalid']=_0x56657b,this['weekData']=null,this['localWeekData']=null,this['c']=_0x59001d,this['o']=_0x538b4f,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0xd44bfb,_0x22a3cd]=lastOpts(arguments),[_0x4307be,_0x320fa0,_0x4b8807,_0x2d20e7,_0x13c402,_0x3c132e,_0x31943c]=_0x22a3cd;return quickDT({'year':_0x4307be,'month':_0x320fa0,'day':_0x4b8807,'hour':_0x2d20e7,'minute':_0x13c402,'second':_0x3c132e,'millisecond':_0x31943c},_0xd44bfb);}static['utc'](){const [_0x23452c,_0x270fbd]=lastOpts(arguments),[_0x422280,_0x442ebe,_0x5645c5,_0x17c990,_0x9ebb51,_0x37017a,_0x4f81d4]=_0x270fbd;return _0x23452c['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x422280,'month':_0x442ebe,'day':_0x5645c5,'hour':_0x17c990,'minute':_0x9ebb51,'second':_0x37017a,'millisecond':_0x4f81d4},_0x23452c);}static['fromJSDate'](_0x1e0bcb,_0x227646={}){const _0x40df59=isDate(_0x1e0bcb)?_0x1e0bcb['valueOf']():NaN;if(Number['isNaN'](_0x40df59))return DateTime['invalid']('invalid\x20input');const _0x5155ec=normalizeZone(_0x227646['zone'],Settings['defaultZone']);return _0x5155ec['isValid']?new DateTime({'ts':_0x40df59,'zone':_0x5155ec,'loc':Locale['fromObject'](_0x227646)}):DateTime['invalid'](unsupportedZone(_0x5155ec));}static['fromMillis'](_0x1e272a,_0x2cd181={}){if(isNumber(_0x1e272a))return _0x1e272a<-MAX_DATE||_0x1e272a>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x1e272a,'zone':normalizeZone(_0x2cd181['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x2cd181)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x1e272a+'\x20with\x20value\x20'+_0x1e272a);}static['fromSeconds'](_0x4e1de1,_0x5d63de={}){if(isNumber(_0x4e1de1))return new DateTime({'ts':0x3e8*_0x4e1de1,'zone':normalizeZone(_0x5d63de['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x5d63de)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x13444c,_0x95a1bf={}){_0x13444c=_0x13444c||{};const _0x10ef47=normalizeZone(_0x95a1bf['zone'],Settings['defaultZone']);if(!_0x10ef47['isValid'])return DateTime['invalid'](unsupportedZone(_0x10ef47));const _0xb2414d=Locale['fromObject'](_0x95a1bf),_0x19ef86=normalizeObject(_0x13444c,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x11174c,startOfWeek:_0x3c8097}=usesLocalWeekValues(_0x19ef86,_0xb2414d),_0x3ba8f7=Settings['now'](),_0x1472a3=isUndefined(_0x95a1bf['specificOffset'])?_0x10ef47['offset'](_0x3ba8f7):_0x95a1bf['specificOffset'],_0x32a624=!isUndefined(_0x19ef86['ordinal']),_0x19fae3=!isUndefined(_0x19ef86['year']),_0x36fbd5=!isUndefined(_0x19ef86['month'])||!isUndefined(_0x19ef86['day']),_0x58b649=_0x19fae3||_0x36fbd5,_0x39bb3d=_0x19ef86['weekYear']||_0x19ef86['weekNumber'];if((_0x58b649||_0x32a624)&&_0x39bb3d)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x36fbd5&&_0x32a624)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x150b6c=_0x39bb3d||_0x19ef86['weekday']&&!_0x58b649;let _0x3113c2,_0x6c6af6,_0x56e7c3=tsToObj(_0x3ba8f7,_0x1472a3);_0x150b6c?(_0x3113c2=orderedWeekUnits,_0x6c6af6=defaultWeekUnitValues,_0x56e7c3=gregorianToWeek(_0x56e7c3,_0x11174c,_0x3c8097)):_0x32a624?(_0x3113c2=orderedOrdinalUnits,_0x6c6af6=defaultOrdinalUnitValues,_0x56e7c3=gregorianToOrdinal(_0x56e7c3)):(_0x3113c2=orderedUnits,_0x6c6af6=defaultUnitValues);let _0x5a5300=!0x1;for(const _0x6e6f26 of _0x3113c2){isUndefined(_0x19ef86[_0x6e6f26])?_0x19ef86[_0x6e6f26]=_0x5a5300?_0x6c6af6[_0x6e6f26]:_0x56e7c3[_0x6e6f26]:_0x5a5300=!0x0;}const _0x1cf0a3=(_0x150b6c?hasInvalidWeekData(_0x19ef86,_0x11174c,_0x3c8097):_0x32a624?hasInvalidOrdinalData(_0x19ef86):hasInvalidGregorianData(_0x19ef86))||hasInvalidTimeData(_0x19ef86);if(_0x1cf0a3)return DateTime['invalid'](_0x1cf0a3);const _0x2ca34d=_0x150b6c?weekToGregorian(_0x19ef86,_0x11174c,_0x3c8097):_0x32a624?ordinalToGregorian(_0x19ef86):_0x19ef86,[_0x499215,_0x5a5200]=objToTS(_0x2ca34d,_0x1472a3,_0x10ef47),_0xfb9555=new DateTime({'ts':_0x499215,'zone':_0x10ef47,'o':_0x5a5200,'loc':_0xb2414d});return _0x19ef86['weekday']&&_0x58b649&&_0x13444c['weekday']!==_0xfb9555['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x19ef86['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0xfb9555['toISO']()):_0xfb9555['isValid']?_0xfb9555:DateTime['invalid'](_0xfb9555['invalid']);}static['fromISO'](_0xb155b5,_0x487d16={}){const [_0x31fe3e,_0x2e83ba]=parseISODate(_0xb155b5);return parseDataToDateTime(_0x31fe3e,_0x2e83ba,_0x487d16,'ISO\x208601',_0xb155b5);}static['fromRFC2822'](_0x4c7336,_0x1f394c={}){const [_0x6661e5,_0x1f03ae]=parseRFC2822Date(_0x4c7336);return parseDataToDateTime(_0x6661e5,_0x1f03ae,_0x1f394c,'RFC\x202822',_0x4c7336);}static['fromHTTP'](_0x4b11d8,_0x216c0d={}){const [_0x2eeab7,_0x8c80b9]=parseHTTPDate(_0x4b11d8);return parseDataToDateTime(_0x2eeab7,_0x8c80b9,_0x216c0d,'HTTP',_0x216c0d);}static['fromFormat'](_0x1fb96d,_0xbcdd2c,_0x5b93d4={}){if(isUndefined(_0x1fb96d)||isUndefined(_0xbcdd2c))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0x30f789=null,numberingSystem:_0x384dcb=null}=_0x5b93d4,_0xd6d8bb=Locale['fromOpts']({'locale':_0x30f789,'numberingSystem':_0x384dcb,'defaultToEN':!0x0}),[_0x171b2f,_0xcb2ae3,_0x4b1a24,_0x5c98c7]=parseFromTokens(_0xd6d8bb,_0x1fb96d,_0xbcdd2c);return _0x5c98c7?DateTime['invalid'](_0x5c98c7):parseDataToDateTime(_0x171b2f,_0xcb2ae3,_0x5b93d4,'format\x20'+_0xbcdd2c,_0x1fb96d,_0x4b1a24);}static['fromString'](_0x3217a8,_0x1a6234,_0x204850={}){return DateTime['fromFormat'](_0x3217a8,_0x1a6234,_0x204850);}static['fromSQL'](_0x18c01f,_0x1c66e5={}){const [_0x26803e,_0x4d08b5]=parseSQL(_0x18c01f);return parseDataToDateTime(_0x26803e,_0x4d08b5,_0x1c66e5,'SQL',_0x18c01f);}static['invalid'](_0x34eb56,_0x415854=null){if(!_0x34eb56)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0x3c18d3=_0x34eb56 instanceof Invalid?_0x34eb56:new Invalid(_0x34eb56,_0x415854);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0x3c18d3);return new DateTime({'invalid':_0x3c18d3});}static['isDateTime'](_0x160237){return _0x160237&&_0x160237['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x54b1d7,_0x59e27b={}){const _0x391dfc=formatOptsToTokens(_0x54b1d7,Locale['fromObject'](_0x59e27b));return _0x391dfc?_0x391dfc['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0xa7feb4,_0x27efc6={}){return expandMacroTokens(Formatter['parseFormat'](_0xa7feb4),Locale['fromObject'](_0x27efc6))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x4b1a39){return this[_0x4b1a39];}get['isValid'](){return null===this['invalid'];}get['invalidReason'](){return this['invalid']?this['invalid']['reason']:null;}get['invalidExplanation'](){return this['invalid']?this['invalid']['explanation']:null;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}get['outputCalendar'](){return this['isValid']?this['loc']['outputCalendar']:null;}get['zone'](){return this['_zone'];}get['zoneName'](){return this['isValid']?this['zone']['name']:null;}get['year'](){return this['isValid']?this['c']['year']:NaN;}get['quarter'](){return this['isValid']?Math['ceil'](this['c']['month']/0x3):NaN;}get['month'](){return this['isValid']?this['c']['month']:NaN;}get['day'](){return this['isValid']?this['c']['day']:NaN;}get['hour'](){return this['isValid']?this['c']['hour']:NaN;}get['minute'](){return this['isValid']?this['c']['minute']:NaN;}get['second'](){return this['isValid']?this['c']['second']:NaN;}get['millisecond'](){return this['isValid']?this['c']['millisecond']:NaN;}get['weekYear'](){return this['isValid']?possiblyCachedWeekData(this)['weekYear']:NaN;}get['weekNumber'](){return this['isValid']?possiblyCachedWeekData(this)['weekNumber']:NaN;}get['weekday'](){return this['isValid']?possiblyCachedWeekData(this)['weekday']:NaN;}get['isWeekend'](){return this['isValid']&&this['loc']['getWeekendDays']()['includes'](this['weekday']);}get['localWeekday'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekday']:NaN;}get['localWeekNumber'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekNumber']:NaN;}get['localWeekYear'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekYear']:NaN;}get['ordinal'](){return this['isValid']?gregorianToOrdinal(this['c'])['ordinal']:NaN;}get['monthShort'](){return this['isValid']?Info['months']('short',{'locObj':this['loc']})[this['month']-0x1]:null;}get['monthLong'](){return this['isValid']?Info['months']('long',{'locObj':this['loc']})[this['month']-0x1]:null;}get['weekdayShort'](){return this['isValid']?Info['weekdays']('short',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get['weekdayLong'](){return this['isValid']?Info['weekdays']('long',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get['offset'](){return this['isValid']?+this['o']:NaN;}get['offsetNameShort'](){return this['isValid']?this['zone']['offsetName'](this['ts'],{'format':'short','locale':this['locale']}):null;}get['offsetNameLong'](){return this['isValid']?this['zone']['offsetName'](this['ts'],{'format':'long','locale':this['locale']}):null;}get['isOffsetFixed'](){return this['isValid']?this['zone']['isUniversal']:null;}get['isInDST'](){return!this['isOffsetFixed']&&(this['offset']>this['set']({'month':0x1,'day':0x1})['offset']||this['offset']>this['set']({'month':0x5})['offset']);}['getPossibleOffsets'](){if(!this['isValid']||this['isOffsetFixed'])return[this];const _0x37e7fb=0x5265c00,_0x542501=0xea60,_0x4db04e=objToLocalTS(this['c']),_0x52dc49=this['zone']['offset'](_0x4db04e-_0x37e7fb),_0xe0b145=this['zone']['offset'](_0x4db04e+_0x37e7fb),_0x1f8ffe=this['zone']['offset'](_0x4db04e-_0x52dc49*_0x542501),_0x43e87a=this['zone']['offset'](_0x4db04e-_0xe0b145*_0x542501);if(_0x1f8ffe===_0x43e87a)return[this];const _0x50a7b7=_0x4db04e-_0x1f8ffe*_0x542501,_0x30a056=_0x4db04e-_0x43e87a*_0x542501,_0x3c7bb8=tsToObj(_0x50a7b7,_0x1f8ffe),_0x184a00=tsToObj(_0x30a056,_0x43e87a);return _0x3c7bb8['hour']===_0x184a00['hour']&&_0x3c7bb8['minute']===_0x184a00['minute']&&_0x3c7bb8['second']===_0x184a00['second']&&_0x3c7bb8['millisecond']===_0x184a00['millisecond']?[clone(this,{'ts':_0x50a7b7}),clone(this,{'ts':_0x30a056})]:[this];}get['isInLeapYear'](){return isLeapYear(this['year']);}get['daysInMonth'](){return daysInMonth(this['year'],this['month']);}get['daysInYear'](){return this['isValid']?daysInYear(this['year']):NaN;}get['weeksInWeekYear'](){return this['isValid']?weeksInWeekYear(this['weekYear']):NaN;}get['weeksInLocalWeekYear'](){return this['isValid']?weeksInWeekYear(this['localWeekYear'],this['loc']['getMinDaysInFirstWeek'](),this['loc']['getStartOfWeek']()):NaN;}['resolvedLocaleOptions'](_0x3e5b65={}){const {locale:_0x328789,numberingSystem:_0x1c0798,calendar:_0x2a72f2}=Formatter['create'](this['loc']['clone'](_0x3e5b65),_0x3e5b65)['resolvedOptions'](this);return{'locale':_0x328789,'numberingSystem':_0x1c0798,'outputCalendar':_0x2a72f2};}['toUTC'](_0x3a731b=0x0,_0x49cbba={}){return this['setZone'](FixedOffsetZone['instance'](_0x3a731b),_0x49cbba);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0x52c7af,{keepLocalTime:_0x3d0aef=!0x1,keepCalendarTime:_0x5b6480=!0x1}={}){if((_0x52c7af=normalizeZone(_0x52c7af,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0x52c7af['isValid']){let _0x352181=this['ts'];if(_0x3d0aef||_0x5b6480){const _0x4fb46a=_0x52c7af['offset'](this['ts']),_0x4dfe8b=this['toObject']();[_0x352181]=objToTS(_0x4dfe8b,_0x4fb46a,_0x52c7af);}return clone(this,{'ts':_0x352181,'zone':_0x52c7af});}return DateTime['invalid'](unsupportedZone(_0x52c7af));}['reconfigure']({locale:_0x5b3048,numberingSystem:_0x35213b,outputCalendar:_0x2bc342}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x5b3048,'numberingSystem':_0x35213b,'outputCalendar':_0x2bc342})});}['setLocale'](_0x3f1e6d){return this['reconfigure']({'locale':_0x3f1e6d});}['set'](_0x48f1c4){if(!this['isValid'])return this;const _0x32f4b4=normalizeObject(_0x48f1c4,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x2f6abf,startOfWeek:_0x2a6168}=usesLocalWeekValues(_0x32f4b4,this['loc']),_0x21f735=!isUndefined(_0x32f4b4['weekYear'])||!isUndefined(_0x32f4b4['weekNumber'])||!isUndefined(_0x32f4b4['weekday']),_0x52494e=!isUndefined(_0x32f4b4['ordinal']),_0x56be69=!isUndefined(_0x32f4b4['year']),_0x22a392=!isUndefined(_0x32f4b4['month'])||!isUndefined(_0x32f4b4['day']),_0x58b853=_0x56be69||_0x22a392,_0x2fa548=_0x32f4b4['weekYear']||_0x32f4b4['weekNumber'];if((_0x58b853||_0x52494e)&&_0x2fa548)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x22a392&&_0x52494e)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x3988f0;_0x21f735?_0x3988f0=weekToGregorian({...gregorianToWeek(this['c'],_0x2f6abf,_0x2a6168),..._0x32f4b4},_0x2f6abf,_0x2a6168):isUndefined(_0x32f4b4['ordinal'])?(_0x3988f0={...this['toObject'](),..._0x32f4b4},isUndefined(_0x32f4b4['day'])&&(_0x3988f0['day']=Math['min'](daysInMonth(_0x3988f0['year'],_0x3988f0['month']),_0x3988f0['day']))):_0x3988f0=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x32f4b4});const [_0x41fd14,_0x1a7da6]=objToTS(_0x3988f0,this['o'],this['zone']);return clone(this,{'ts':_0x41fd14,'o':_0x1a7da6});}['plus'](_0x131977){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x131977)));}['minus'](_0x4c5953){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x4c5953)['negate']()));}['startOf'](_0x2e248a,{useLocaleWeeks:_0x3e03de=!0x1}={}){if(!this['isValid'])return this;const _0x8d75e8={},_0x1da84c=Duration['normalizeUnit'](_0x2e248a);switch(_0x1da84c){case'years':_0x8d75e8['month']=0x1;case'quarters':case'months':_0x8d75e8['day']=0x1;case'weeks':case'days':_0x8d75e8['hour']=0x0;case'hours':_0x8d75e8['minute']=0x0;case'minutes':_0x8d75e8['second']=0x0;case'seconds':_0x8d75e8['millisecond']=0x0;}if('weeks'===_0x1da84c){if(_0x3e03de){const _0x39de6a=this['loc']['getStartOfWeek'](),{weekday:_0x156288}=this;_0x156288<_0x39de6a&&(_0x8d75e8['weekNumber']=this['weekNumber']-0x1),_0x8d75e8['weekday']=_0x39de6a;}else _0x8d75e8['weekday']=0x1;}if('quarters'===_0x1da84c){const _0x4ccc4e=Math['ceil'](this['month']/0x3);_0x8d75e8['month']=0x3*(_0x4ccc4e-0x1)+0x1;}return this['set'](_0x8d75e8);}['endOf'](_0x21749e,_0x1612df){return this['isValid']?this['plus']({[_0x21749e]:0x1})['startOf'](_0x21749e,_0x1612df)['minus'](0x1):this;}['toFormat'](_0x2146fd,_0x5c680c={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x5c680c))['formatDateTimeFromString'](this,_0x2146fd):INVALID;}['toLocaleString'](_0x1b966a=DATE_SHORT,_0x6d3929={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x6d3929),_0x1b966a)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0x915cfc={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x915cfc),_0x915cfc)['formatDateTimeParts'](this):[];}['toISO']({format:_0x574c09='extended',suppressSeconds:_0x32b71d=!0x1,suppressMilliseconds:_0x545da4=!0x1,includeOffset:_0x362867=!0x0,extendedZone:_0x2fa9fd=!0x1}={}){if(!this['isValid'])return null;const _0x2657c1='extended'===_0x574c09;let _0xbb7448=toISODate(this,_0x2657c1);return _0xbb7448+='T',_0xbb7448+=toISOTime(this,_0x2657c1,_0x32b71d,_0x545da4,_0x362867,_0x2fa9fd),_0xbb7448;}['toISODate']({format:_0x35bf53='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x35bf53):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x19848c=!0x1,suppressSeconds:_0x5a99e6=!0x1,includeOffset:_0xa6145e=!0x0,includePrefix:_0x3ad795=!0x1,extendedZone:_0x4a7e52=!0x1,format:_0x59bcf5='extended'}={}){if(!this['isValid'])return null;return(_0x3ad795?'T':'')+toISOTime(this,'extended'===_0x59bcf5,_0x5a99e6,_0x19848c,_0xa6145e,_0x4a7e52);}['toRFC2822'](){return toTechFormat(this,'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20ZZZ',!0x1);}['toHTTP'](){return toTechFormat(this['toUTC'](),'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20\x27GMT\x27');}['toSQLDate'](){return this['isValid']?toISODate(this,!0x0):null;}['toSQLTime']({includeOffset:_0x25fffe=!0x0,includeZone:_0x41cb51=!0x1,includeOffsetSpace:_0x300351=!0x0}={}){let _0x1976a0='HH:mm:ss.SSS';return(_0x41cb51||_0x25fffe)&&(_0x300351&&(_0x1976a0+='\x20'),_0x41cb51?_0x1976a0+='z':_0x25fffe&&(_0x1976a0+='ZZ')),toTechFormat(this,_0x1976a0,!0x0);}['toSQL'](_0x4feaad={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x4feaad):null;}['toString'](){return this['isValid']?this['toISO']():INVALID;}[Symbol['for']('nodejs.util.inspect.custom')](){return this['isValid']?'DateTime\x20{\x20ts:\x20'+this['toISO']()+',\x20zone:\x20'+this['zone']['name']+',\x20locale:\x20'+this['locale']+'\x20}':'DateTime\x20{\x20Invalid,\x20reason:\x20'+this['invalidReason']+'\x20}';}['valueOf'](){return this['toMillis']();}['toMillis'](){return this['isValid']?this['ts']:NaN;}['toSeconds'](){return this['isValid']?this['ts']/0x3e8:NaN;}['toUnixInteger'](){return this['isValid']?Math['floor'](this['ts']/0x3e8):NaN;}['toJSON'](){return this['toISO']();}['toBSON'](){return this['toJSDate']();}['toObject'](_0x44c3fc={}){if(!this['isValid'])return{};const _0x574a26={...this['c']};return _0x44c3fc['includeConfig']&&(_0x574a26['outputCalendar']=this['outputCalendar'],_0x574a26['numberingSystem']=this['loc']['numberingSystem'],_0x574a26['locale']=this['loc']['locale']),_0x574a26;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x39bacf,_0x47fe4f='milliseconds',_0x45e535={}){if(!this['isValid']||!_0x39bacf['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x18532f={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0x45e535},_0x4319f9=maybeArray(_0x47fe4f)['map'](Duration['normalizeUnit']),_0x1b70ae=_0x39bacf['valueOf']()>this['valueOf'](),_0x567b83=diff(_0x1b70ae?this:_0x39bacf,_0x1b70ae?_0x39bacf:this,_0x4319f9,_0x18532f);return _0x1b70ae?_0x567b83['negate']():_0x567b83;}['diffNow'](_0x58482d='milliseconds',_0x5687f0={}){return this['diff'](DateTime['now'](),_0x58482d,_0x5687f0);}['until'](_0x131a79){return this['isValid']?Interval['fromDateTimes'](this,_0x131a79):this;}['hasSame'](_0x239b8e,_0x5a2332,_0x2a8102){if(!this['isValid'])return!0x1;const _0x424a6d=_0x239b8e['valueOf'](),_0x4e3a38=this['setZone'](_0x239b8e['zone'],{'keepLocalTime':!0x0});return _0x4e3a38['startOf'](_0x5a2332,_0x2a8102)<=_0x424a6d&&_0x424a6d<=_0x4e3a38['endOf'](_0x5a2332,_0x2a8102);}['equals'](_0x271eb7){return this['isValid']&&_0x271eb7['isValid']&&this['valueOf']()===_0x271eb7['valueOf']()&&this['zone']['equals'](_0x271eb7['zone'])&&this['loc']['equals'](_0x271eb7['loc']);}['toRelative'](_0xa926af={}){if(!this['isValid'])return null;const _0x5bb20c=_0xa926af['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0xd0a208=_0xa926af['padding']?this<_0x5bb20c?-_0xa926af['padding']:_0xa926af['padding']:0x0;let _0x32be4f=['years','months','days','hours','minutes','seconds'],_0xc2442c=_0xa926af['unit'];return Array['isArray'](_0xa926af['unit'])&&(_0x32be4f=_0xa926af['unit'],_0xc2442c=void 0x0),diffRelative(_0x5bb20c,this['plus'](_0xd0a208),{..._0xa926af,'numeric':'always','units':_0x32be4f,'unit':_0xc2442c});}['toRelativeCalendar'](_0x1e7f2a={}){return this['isValid']?diffRelative(_0x1e7f2a['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x1e7f2a,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x574e47){if(!_0x574e47['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x574e47,_0x120f23=>_0x120f23['valueOf'](),Math['min']);}static['max'](..._0x2fa03b){if(!_0x2fa03b['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x2fa03b,_0x686ab2=>_0x686ab2['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x2a8901,_0x4f7af4,_0x44cbef={}){const {locale:_0x3ad57f=null,numberingSystem:_0x3f5cb6=null}=_0x44cbef;return explainFromTokens(Locale['fromOpts']({'locale':_0x3ad57f,'numberingSystem':_0x3f5cb6,'defaultToEN':!0x0}),_0x2a8901,_0x4f7af4);}static['fromStringExplain'](_0x2e773f,_0x3f5f3e,_0x3e0ad0={}){return DateTime['fromFormatExplain'](_0x2e773f,_0x3f5f3e,_0x3e0ad0);}static['buildFormatParser'](_0x3f0733,_0x4a0f79={}){const {locale:_0x4a8f64=null,numberingSystem:_0x37630f=null}=_0x4a0f79,_0x3ceb59=Locale['fromOpts']({'locale':_0x4a8f64,'numberingSystem':_0x37630f,'defaultToEN':!0x0});return new TokenParser(_0x3ceb59,_0x3f0733);}static['fromFormatParser'](_0x313ce7,_0x3625e3,_0x5e26f2={}){if(isUndefined(_0x313ce7)||isUndefined(_0x3625e3))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x378220=null,numberingSystem:_0xcae1ba=null}=_0x5e26f2,_0x5eccf3=Locale['fromOpts']({'locale':_0x378220,'numberingSystem':_0xcae1ba,'defaultToEN':!0x0});if(!_0x5eccf3['equals'](_0x3625e3['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x5eccf3+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x3625e3['locale']);const {result:_0x2db4b9,zone:_0x2fbe2b,specificOffset:_0x14ba8d,invalidReason:_0x35fe04}=_0x3625e3['explainFromTokens'](_0x313ce7);return _0x35fe04?DateTime['invalid'](_0x35fe04):parseDataToDateTime(_0x2db4b9,_0x2fbe2b,_0x5e26f2,'format\x20'+_0x3625e3['format'],_0x313ce7,_0x14ba8d);}static get['DATE_SHORT'](){return DATE_SHORT;}static get['DATE_MED'](){return DATE_MED;}static get['DATE_MED_WITH_WEEKDAY'](){return DATE_MED_WITH_WEEKDAY;}static get['DATE_FULL'](){return DATE_FULL;}static get['DATE_HUGE'](){return DATE_HUGE;}static get['TIME_SIMPLE'](){return TIME_SIMPLE;}static get['TIME_WITH_SECONDS'](){return TIME_WITH_SECONDS;}static get['TIME_WITH_SHORT_OFFSET'](){return TIME_WITH_SHORT_OFFSET;}static get['TIME_WITH_LONG_OFFSET'](){return TIME_WITH_LONG_OFFSET;}static get['TIME_24_SIMPLE'](){return TIME_24_SIMPLE;}static get['TIME_24_WITH_SECONDS'](){return TIME_24_WITH_SECONDS;}static get['TIME_24_WITH_SHORT_OFFSET'](){return TIME_24_WITH_SHORT_OFFSET;}static get['TIME_24_WITH_LONG_OFFSET'](){return TIME_24_WITH_LONG_OFFSET;}static get['DATETIME_SHORT'](){return DATETIME_SHORT;}static get['DATETIME_SHORT_WITH_SECONDS'](){return DATETIME_SHORT_WITH_SECONDS;}static get['DATETIME_MED'](){return DATETIME_MED;}static get['DATETIME_MED_WITH_SECONDS'](){return DATETIME_MED_WITH_SECONDS;}static get['DATETIME_MED_WITH_WEEKDAY'](){return DATETIME_MED_WITH_WEEKDAY;}static get['DATETIME_FULL'](){return DATETIME_FULL;}static get['DATETIME_FULL_WITH_SECONDS'](){return DATETIME_FULL_WITH_SECONDS;}static get['DATETIME_HUGE'](){return DATETIME_HUGE;}static get['DATETIME_HUGE_WITH_SECONDS'](){return DATETIME_HUGE_WITH_SECONDS;}}function friendlyDateTime(_0x4a3741){if(DateTime['isDateTime'](_0x4a3741))return _0x4a3741;if(_0x4a3741&&_0x4a3741['valueOf']&&isNumber(_0x4a3741['valueOf']()))return DateTime['fromJSDate'](_0x4a3741);if(_0x4a3741&&'object'==typeof _0x4a3741)return DateTime['fromObject'](_0x4a3741);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0x4a3741+',\x20of\x20type\x20'+typeof _0x4a3741);}function getDateTimeFormatter(_0x4d19c6={},_0x84c4de){if(void 0x0!==_0x4d19c6['dateTimeFormat']&&'function'!=typeof _0x4d19c6['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x44504b=>{const _0x391ded='string'==typeof _0x44504b?DateTime['fromISO'](_0x44504b):DateTime['fromJSDate'](_0x44504b),_0x2482fd=DateTime['now'](),_0x521c38=Math['floor'](_0x2482fd['diff'](_0x391ded,'days')['days']);return _0x4d19c6['dateTimeFormat']?_0x4d19c6['dateTimeFormat'](_0x391ded['toJSDate'](),_0x84c4de&&_0x84c4de['t']?_0x84c4de['t']:void 0x0):0x0===_0x521c38?_0x84c4de?getTranslation$h(_0x84c4de,'Today')+'\x20'+_0x391ded['toFormat']('hh:mma'):_0x391ded['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x521c38?_0x84c4de?getTranslation$h(_0x84c4de,'Yesterday')+'\x20'+_0x391ded['toFormat']('hh:mma'):_0x391ded['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x521c38<0x7?_0x84c4de?getTranslation$h(_0x84c4de,'Last')+'\x20'+getTranslation$h(_0x84c4de,_0x391ded['toFormat']('EEEE'))+'\x20'+_0x391ded['toFormat']('hh:mma'):_0x391ded['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x391ded['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x45dddd,_0x15ba99){const _0x5d3096=_0x45dddd['mapper']['markerNameToElements'](_0x15ba99['name']);if(!_0x5d3096)return null;const _0x23e44e=first(_0x5d3096['values']());return _0x45dddd['view']['domConverter']['mapViewToDom'](_0x23e44e)||null;}function getAllMarkersDomElementsSorted(_0x1faf9f,_0x1bcd74){if(0x0===_0x1bcd74['length'])return null;const _0x4e8e75=[],_0x4db639=_0x1faf9f['view']['domConverter'];for(const _0x5f282e of _0x1bcd74){const _0x591376=_0x1faf9f['mapper']['markerNameToElements'](_0x5f282e['name']);if(!_0x591376)continue;const _0x38373b=Array['from'](_0x591376)['map'](_0x2b9421=>_0x4db639['mapViewToDom'](_0x2b9421))['filter'](_0x34ecde=>!!_0x34ecde);_0x4e8e75['push'](..._0x38373b);}if(0x0===_0x4e8e75['length'])return null;const _0x5ec2e0=[];for(const _0x4302e3 of _0x4e8e75){const _0x117112=_0x4302e3['getClientRects']()['item'](0x0);_0x117112&&_0x5ec2e0['push']({'x':_0x117112['x'],'y':_0x117112['y'],'domElement':_0x4302e3});}return 0x0===_0x5ec2e0['length']?null:(_0x5ec2e0['sort']((_0x5dad5e,_0x3fb287)=>_0x5dad5e['y']-_0x3fb287['y']||_0x5dad5e['x']-_0x3fb287['x']),_0x5ec2e0['map'](_0x5874d7=>_0x5874d7['domElement']));}function trimHtml(_0x370d34,{limit:_0x1e49d4,suffix:_0x3353de='...'}){const _0x45c9ab=[];let _0x4b4347=0x0;const _0x14867d=_0x370d34['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x11737d=0x0;_0x11737d<_0x14867d['length'];_0x11737d++){let _0x16a7f1=_0x14867d[_0x11737d];const _0x5c62ef=splitCharactersToArray(_0x16a7f1);if(_0x16a7f1['startsWith']('<')){if(_0x4b4347>=_0x1e49d4){const _0x281fb8=_0x16a7f1['match'](/[a-zA-Z]+/);if(!_0x281fb8){_0x14867d[_0x11737d]='';continue;}const _0x2d3142=_0x281fb8[0x0];_0x16a7f1['startsWith']('</')?(_0x45c9ab['length']&&(_0x16a7f1=''),_0x45c9ab['pop']()):(_0x45c9ab['push'](_0x2d3142),_0x16a7f1='');}}else{if(_0x4b4347>=_0x1e49d4)_0x16a7f1='';else{if(_0x4b4347+_0x5c62ef['length']>=_0x1e49d4){let _0x17e8b8=_0x1e49d4-_0x4b4347;if('\x20'===_0x5c62ef[_0x17e8b8-0x1])_0x17e8b8--;else{const _0x1d0e36=_0x5c62ef['slice'](_0x17e8b8)['indexOf']('\x20');-0x1!==_0x1d0e36?_0x17e8b8+=_0x1d0e36:_0x17e8b8=_0x16a7f1['length'];}_0x16a7f1=_0x5c62ef['slice'](0x0,_0x17e8b8)['join']('')+_0x3353de,_0x4b4347=_0x1e49d4;}else _0x4b4347+=_0x5c62ef['length'];}}_0x14867d[_0x11737d]=_0x16a7f1;}return _0x14867d['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x7ec262){const _0x4fb41f=[];for(let _0x491a64=0x0;_0x491a64<_0x7ec262['length'];_0x491a64++){const _0x1a5c1d=_0x7ec262['substring'](_0x491a64)['match'](/^&[a-z0-9#]+;/);if(_0x1a5c1d){const _0x21cf6a=_0x1a5c1d[0x0];_0x4fb41f['push'](_0x21cf6a),_0x491a64+=_0x21cf6a['length']-0x1;}else _0x4fb41f['push'](_0x7ec262[_0x491a64]);}return _0x4fb41f;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0xa57809){super(_0xa57809);const _0xec1755=this['bindTemplate'];this['set']('message',getTranslation$h(_0xa57809,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0xa57809,getTranslation$h(_0xa57809,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0xa57809,getTranslation$h(_0xa57809,'No'),IconCancel,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-confirm-view'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-confirm-view-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0xec1755['to']('message')}]},{'tag':'div','attributes':{'class':'ck-confirm-view-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x435e,_0x902cf2,_0x511c0a,_0xad01fc){const _0x1671cb=new ButtonView(_0x435e);return _0x1671cb['label']=_0x902cf2,_0x1671cb['icon']=_0x511c0a,_0x1671cb['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0xad01fc}}),_0x1671cb['on']('execute',()=>this['fire'](_0xad01fc)),_0x1671cb;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x301b9b=>{this['keystrokes']['listenTo'](_0x301b9b['element']),this['focusTracker']['add'](_0x301b9b['element']);}),this['keystrokes']['set']('esc',(_0x4089b6,_0x106e6d)=>{this['fire']('cancel'),_0x106e6d();});}}function ConfirmMixin(_0x116450){return class extends _0x116450{['showConfirm'](_0x2d6a8a,_0x3cbc50){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x2d6a8a,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x3cbc50['appendChild'](this['confirmView']['element']),_0x3cbc50['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x45f876,_0x12b837,_0x2ad94f)=>{_0x2ad94f||_0x3cbc50['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x710ec2=>this['confirmView']['on']('submit',_0x710ec2));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function hashObject(_0x2d2f68){let _0x3309bd=0x0,_0x3611b5=0x0;for(const _0x535db8 of objectToNumberGenerator(_0x2d2f68))_0x3309bd=(_0x3309bd<<0x5)-_0x3309bd+_0x535db8,_0x3309bd&=_0x3309bd,[_0x3309bd,_0x3611b5]=[_0x3611b5,_0x3309bd];return toString$1(_0x3309bd)+toString$1(_0x3611b5);}function*toNumberGenerator(_0x26048f){null==_0x26048f||null==_0x26048f?yield 0x12b9b0a1:0x0===_0x26048f||!0x1===_0x26048f?yield 0x0:0x1===_0x26048f||0x1==_0x26048f?yield 0x1:Array['isArray'](_0x26048f)?yield*arrayToNumberGenerator(_0x26048f):'object'==typeof _0x26048f?yield*objectToNumberGenerator(_0x26048f):'string'==typeof _0x26048f?yield*stringToNumberGenerator(_0x26048f):'number'==typeof _0x26048f&&(yield _0x26048f);}function*objectToNumberGenerator(_0x1d34bf){if(yield charCode('{'),_0x1d34bf){const _0x46be10=Object['keys'](_0x1d34bf)['sort']();for(const _0x1e5dfe of _0x46be10){yield*stringToNumberGenerator(_0x1e5dfe),yield charCode(':');const _0x57fac5=_0x1d34bf[_0x1e5dfe];yield*toNumberGenerator(_0x57fac5);}}yield charCode('}');}function*arrayToNumberGenerator(_0x19fb28){for(const _0x2d0d33 of _0x19fb28)yield*toNumberGenerator(_0x2d0d33);}function*stringToNumberGenerator(_0x36e8e6){yield charCode('\x22');for(const _0x49ca02 of _0x36e8e6)yield charCode(_0x49ca02);yield charCode('\x22');}function charCode(_0x1f3f47){return _0x1f3f47['charCodeAt'](0x0);}function toString$1(_0x3e0b64){return(_0x3e0b64*=Math['sign'](_0x3e0b64))['toString'](0x24);}const blackListedConfigOptions=['root','roots','initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x16adbd,_0x32992b,_0x335ef1,_0x1efe2d=[]){const _0x7121a6='string'==typeof _0x16adbd?_0x335ef1['get'](_0x16adbd)['constructor']:_0x16adbd['prototype']['constructor'];if(_0x32992b['has'](_0x7121a6))return _0x32992b['get'](_0x7121a6);_0x32992b['set'](_0x7121a6,!0x0);const _0x2d9a0e=[...blackListedPlugins$2,..._0x1efe2d]['map'](_0x49ef8e=>{if(_0x335ef1['has'](_0x49ef8e))return _0x335ef1['get'](_0x49ef8e)['constructor'];})['filter'](_0xaf753e=>_0xaf753e);if(_0x7121a6&&_0x2d9a0e['includes'](_0x7121a6))return _0x32992b['set'](_0x7121a6,!0x1),!0x1;if(!_0x7121a6['requires'])return _0x32992b['set'](_0x7121a6,!0x0),!0x0;const _0x15be97=_0x7121a6['requires']['every'](_0x2d28cb=>skipRtcPlugins(_0x2d28cb,_0x32992b,_0x335ef1,_0x1efe2d));return _0x32992b['set'](_0x7121a6,_0x15be97),_0x15be97;}function sanitizeEditorConfig(_0x428199,_0x1c1621){const _0x174344={};for(const _0x221dfa of _0x428199['config']['names']())blackListedConfigOptions['includes'](_0x221dfa)||(_0x174344[_0x221dfa]=_0x428199['config']['get'](_0x221dfa));const _0x2466fd=_0x174344['plugins']||[],_0x115c22=_0x428199['constructor']['builtinPlugins']||[],_0x333d1a=_0x2466fd['length']?_0x2466fd:_0x115c22,_0x508358=_0x174344['extraPlugins']||[];delete _0x174344['extraPlugins'];const _0x29ec4f=_0x174344['removePlugins']||[];delete _0x174344['removePlugins'];const _0x56429f=_0x428199['_context']['config']['get']('plugins')||[],_0xb9e249=_0x333d1a['concat'](_0x508358)['concat'](_0x56429f)['map'](_0x5a862c=>'string'==typeof _0x5a862c?_0x115c22['find'](_0x57c962=>_0x57c962['pluginName']==_0x5a862c):_0x5a862c)['filter'](_0x5955b1=>!_0x29ec4f['includes'](_0x5955b1)&&!_0x29ec4f['includes'](_0x5955b1['pluginName'])),_0x10a812=Array['from'](new Set(_0xb9e249)),_0x26ae19=new Map();return _0x174344['plugins']=_0x10a812['filter'](_0x40885a=>skipRtcPlugins(_0x40885a,_0x26ae19,_0x428199['plugins'],_0x1c1621)),_0x174344;}function surroundingMarkersDetector(_0x5a898c,_0x113a62){const _0x28f704=[];_0x5a898c['document']['selection']['on']('change:range',()=>{const _0x4f02a2=getSurroundingMarkers(_0x5a898c,_0x5a898c['document']['selection']['focus']),_0x4c97f9=[],_0x2b029b=[],_0x48f53d=[];for(const _0x198e98 of _0x28f704)_0x4f02a2['includes'](_0x198e98)||_0x4c97f9['push'](_0x198e98);for(const _0x20993b of _0x4f02a2)_0x28f704['includes'](_0x20993b)||_0x2b029b['push'](_0x20993b),_0x48f53d['push'](_0x20993b);(_0x4c97f9['length']||_0x2b029b['length'])&&_0x113a62({'left':_0x4c97f9,'entered':_0x2b029b}),_0x28f704['length']=0x0,_0x28f704['push'](..._0x48f53d);});}function getSurroundingMarkers(_0x251820,_0x2f1a87){const _0x1dc79d=[];for(const _0x5469c3 of _0x251820['markers']){const _0x5c59eb=_0x5469c3['getRange']();(_0x5c59eb['containsPosition'](_0x2f1a87)||_0x5c59eb['start']['isEqual'](_0x2f1a87)||_0x5c59eb['end']['isEqual'](_0x2f1a87))&&_0x1dc79d['push'](_0x5469c3);}return _0x1dc79d;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x3c6ee4,_0x42ce72){const _0x37f249=_0x3c6ee4['element'];_0x3c6ee4['keystrokes']['listenTo'](_0x37f249);for(const _0x2f9a80 of _0x42ce72)addViewToFocusCyclerNavigation(_0x3c6ee4,_0x2f9a80);_0x42ce72['on']('change',(_0x3ff68a,_0x1ec0c8)=>{for(const _0x7cd8f8 of _0x1ec0c8['removed'])removeViewFromFocusCyclerNavigation(_0x3c6ee4,_0x7cd8f8);for(const _0x46cecd of Array['from'](_0x1ec0c8['added'])['reverse']())addViewToFocusCyclerNavigation(_0x3c6ee4,_0x46cecd);}),_0x3c6ee4['keystrokes']['set']('enter',(_0x5bef87,_0x223805)=>{_0x37f249===_0x5bef87['target']&&(_0x3c6ee4['focusCycler']['focusFirst'](),_0x223805());},{'filter':_0x4b474d=>_0x4b474d['target']===_0x37f249}),_0x3c6ee4['keystrokes']['set']('esc',(_0x27fa0f,_0x41eac3)=>{_0x37f249!==_0x27fa0f['target']?_0x3c6ee4['focus']():_0x3c6ee4['fire']('escape'),_0x41eac3();}),_0x3c6ee4['keystrokes']['set']('arrowdown',(_0x563dcb,_0x318516)=>{_0x37f249===_0x563dcb['target']&&(_0x3c6ee4['fire']('arrowdown'),_0x318516());}),_0x3c6ee4['keystrokes']['set']('arrowup',(_0x55c4c9,_0x571c27)=>{_0x37f249===_0x55c4c9['target']&&(_0x3c6ee4['fire']('arrowup'),_0x571c27());});}function addViewToFocusCyclerNavigation(_0xb1f179,_0x2d2f56){_0x2d2f56['isRendered']&&(_0xb1f179['focusTracker']['add'](_0x2d2f56['element']),_0xb1f179['keystrokes']['listenTo'](_0x2d2f56['element']),isViewWithFocusCycler(_0x2d2f56)&&areFocusCyclerActionsCompatible(_0xb1f179['focusCycler'],_0x2d2f56['focusCycler'])&&_0xb1f179['focusCycler']['chain'](_0x2d2f56['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0x475071,_0x2f04dd){_0x475071['focusTracker']['remove'](_0x2f04dd['element']),_0x475071['keystrokes']['stopListening'](_0x2f04dd['element']),isViewWithFocusCycler(_0x2f04dd)&&_0x475071['focusCycler']['unchain'](_0x2f04dd['focusCycler']);}function areFocusCyclerActionsCompatible(_0x3d4ebe,_0xe600f5){const _0x152dbd=_0x3d4ebe['actions'],_0x2104aa=_0xe600f5['actions'];for(const _0x3fb9ec of Object['keys'](_0x152dbd))if(_0x3fb9ec in _0x2104aa&&_0x152dbd[_0x3fb9ec]!==_0x2104aa[_0x3fb9ec])return!0x1;return!0x0;}class Diff{['diff'](_0x403b10,_0x5bdf55,_0x556015={}){let _0x4af1dd;'function'==typeof _0x556015?(_0x4af1dd=_0x556015,_0x556015={}):'callback'in _0x556015&&(_0x4af1dd=_0x556015['callback']);const _0x1338d3=this['castInput'](_0x403b10,_0x556015),_0x19e46e=this['castInput'](_0x5bdf55,_0x556015),_0x34ccea=this['removeEmpty'](this['tokenize'](_0x1338d3,_0x556015)),_0x31a4cb=this['removeEmpty'](this['tokenize'](_0x19e46e,_0x556015));return this['diffWithOptionsObj'](_0x34ccea,_0x31a4cb,_0x556015,_0x4af1dd);}['diffWithOptionsObj'](_0x400ca6,_0x1b39f7,_0x45193d,_0x101440){var _0x3d7b1f;const _0x2b43fa=_0xaa9524=>(_0xaa9524=this['postProcess'](_0xaa9524,_0x45193d),_0x101440?void setTimeout(function(){_0x101440(_0xaa9524);},0x0):_0xaa9524),_0x408845=_0x1b39f7['length'],_0xf50e07=_0x400ca6['length'];let _0x51a796=0x1,_0x29b1d5=_0x408845+_0xf50e07;null!=_0x45193d['maxEditLength']&&(_0x29b1d5=Math['min'](_0x29b1d5,_0x45193d['maxEditLength']));const _0x29364a=null!==(_0x3d7b1f=_0x45193d['timeout'])&&void 0x0!==_0x3d7b1f?_0x3d7b1f:0x1/0x0,_0xecafcc=Date['now']()+_0x29364a,_0x143ab8=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x371869=this['extractCommon'](_0x143ab8[0x0],_0x1b39f7,_0x400ca6,0x0,_0x45193d);if(_0x143ab8[0x0]['oldPos']+0x1>=_0xf50e07&&_0x371869+0x1>=_0x408845)return _0x2b43fa(this['buildValues'](_0x143ab8[0x0]['lastComponent'],_0x1b39f7,_0x400ca6));let _0x39dfcf=-0x1/0x0,_0x74f82f=0x1/0x0;const _0xc8542f=()=>{for(let _0x540787=Math['max'](_0x39dfcf,-_0x51a796);_0x540787<=Math['min'](_0x74f82f,_0x51a796);_0x540787+=0x2){let _0xd6341;const _0x3a583f=_0x143ab8[_0x540787-0x1],_0x1422f5=_0x143ab8[_0x540787+0x1];_0x3a583f&&(_0x143ab8[_0x540787-0x1]=void 0x0);let _0x497c6a=!0x1;if(_0x1422f5){const _0x53f226=_0x1422f5['oldPos']-_0x540787;_0x497c6a=_0x1422f5&&0x0<=_0x53f226&&_0x53f226<_0x408845;}const _0xfea13c=_0x3a583f&&_0x3a583f['oldPos']+0x1<_0xf50e07;if(_0x497c6a||_0xfea13c){if(_0xd6341=!_0xfea13c||_0x497c6a&&_0x3a583f['oldPos']<_0x1422f5['oldPos']?this['addToPath'](_0x1422f5,!0x0,!0x1,0x0,_0x45193d):this['addToPath'](_0x3a583f,!0x1,!0x0,0x1,_0x45193d),_0x371869=this['extractCommon'](_0xd6341,_0x1b39f7,_0x400ca6,_0x540787,_0x45193d),_0xd6341['oldPos']+0x1>=_0xf50e07&&_0x371869+0x1>=_0x408845)return _0x2b43fa(this['buildValues'](_0xd6341['lastComponent'],_0x1b39f7,_0x400ca6))||!0x0;_0x143ab8[_0x540787]=_0xd6341,_0xd6341['oldPos']+0x1>=_0xf50e07&&(_0x74f82f=Math['min'](_0x74f82f,_0x540787-0x1)),_0x371869+0x1>=_0x408845&&(_0x39dfcf=Math['max'](_0x39dfcf,_0x540787+0x1));}else _0x143ab8[_0x540787]=void 0x0;}_0x51a796++;};if(_0x101440)!function _0x3eae40(){setTimeout(function(){if(_0x51a796>_0x29b1d5||Date['now']()>_0xecafcc)return _0x101440(void 0x0);_0xc8542f()||_0x3eae40();},0x0);}();else for(;_0x51a796<=_0x29b1d5&&Date['now']()<=_0xecafcc;){const _0x370b98=_0xc8542f();if(_0x370b98)return _0x370b98;}}['addToPath'](_0x393922,_0x404bdc,_0x362c77,_0x4cab71,_0x337423){const _0x58967f=_0x393922['lastComponent'];return _0x58967f&&!_0x337423['oneChangePerToken']&&_0x58967f['added']===_0x404bdc&&_0x58967f['removed']===_0x362c77?{'oldPos':_0x393922['oldPos']+_0x4cab71,'lastComponent':{'count':_0x58967f['count']+0x1,'added':_0x404bdc,'removed':_0x362c77,'previousComponent':_0x58967f['previousComponent']}}:{'oldPos':_0x393922['oldPos']+_0x4cab71,'lastComponent':{'count':0x1,'added':_0x404bdc,'removed':_0x362c77,'previousComponent':_0x58967f}};}['extractCommon'](_0x31e46d,_0x201ea9,_0xc49b26,_0x361684,_0x287532){const _0xee08a8=_0x201ea9['length'],_0x474c72=_0xc49b26['length'];let _0x364091=_0x31e46d['oldPos'],_0x37abf6=_0x364091-_0x361684,_0x370b00=0x0;for(;_0x37abf6+0x1<_0xee08a8&&_0x364091+0x1<_0x474c72&&this['equals'](_0xc49b26[_0x364091+0x1],_0x201ea9[_0x37abf6+0x1],_0x287532);)_0x37abf6++,_0x364091++,_0x370b00++,_0x287532['oneChangePerToken']&&(_0x31e46d['lastComponent']={'count':0x1,'previousComponent':_0x31e46d['lastComponent'],'added':!0x1,'removed':!0x1});return _0x370b00&&!_0x287532['oneChangePerToken']&&(_0x31e46d['lastComponent']={'count':_0x370b00,'previousComponent':_0x31e46d['lastComponent'],'added':!0x1,'removed':!0x1}),_0x31e46d['oldPos']=_0x364091,_0x37abf6;}['equals'](_0x30b833,_0x56ad64,_0x56e94c){return _0x56e94c['comparator']?_0x56e94c['comparator'](_0x30b833,_0x56ad64):_0x30b833===_0x56ad64||!!_0x56e94c['ignoreCase']&&_0x30b833['toLowerCase']()===_0x56ad64['toLowerCase']();}['removeEmpty'](_0x7f817e){const _0x9d0d0=[];for(let _0x4290ed=0x0;_0x4290ed<_0x7f817e['length'];_0x4290ed++)_0x7f817e[_0x4290ed]&&_0x9d0d0['push'](_0x7f817e[_0x4290ed]);return _0x9d0d0;}['castInput'](_0x487fb5,_0x16a403){return _0x487fb5;}['tokenize'](_0x32036d,_0x15e738){return Array['from'](_0x32036d);}['join'](_0x4aad7b){return _0x4aad7b['join']('');}['postProcess'](_0x2e14ee,_0x55e84e){return _0x2e14ee;}get['useLongestToken'](){return!0x1;}['buildValues'](_0x1db4b2,_0x711c0,_0x5c8a35){const _0x448c88=[];let _0x2e9f88;for(;_0x1db4b2;)_0x448c88['push'](_0x1db4b2),_0x2e9f88=_0x1db4b2['previousComponent'],delete _0x1db4b2['previousComponent'],_0x1db4b2=_0x2e9f88;_0x448c88['reverse']();const _0xef29b4=_0x448c88['length'];let _0x5af49c=0x0,_0x29deec=0x0,_0xef1d16=0x0;for(;_0x5af49c<_0xef29b4;_0x5af49c++){const _0x349a08=_0x448c88[_0x5af49c];if(_0x349a08['removed'])_0x349a08['value']=this['join'](_0x5c8a35['slice'](_0xef1d16,_0xef1d16+_0x349a08['count'])),_0xef1d16+=_0x349a08['count'];else{if(!_0x349a08['added']&&this['useLongestToken']){let _0x1f998d=_0x711c0['slice'](_0x29deec,_0x29deec+_0x349a08['count']);_0x1f998d=_0x1f998d['map'](function(_0x11e943,_0x246920){const _0x95c917=_0x5c8a35[_0xef1d16+_0x246920];return _0x95c917['length']>_0x11e943['length']?_0x95c917:_0x11e943;}),_0x349a08['value']=this['join'](_0x1f998d);}else _0x349a08['value']=this['join'](_0x711c0['slice'](_0x29deec,_0x29deec+_0x349a08['count']));_0x29deec+=_0x349a08['count'],_0x349a08['added']||(_0xef1d16+=_0x349a08['count']);}}return _0x448c88;}}class ArrayDiff extends Diff{['tokenize'](_0xa4088f){return _0xa4088f['slice']();}['join'](_0x56e416){return _0x56e416;}['removeEmpty'](_0x1484e4){return _0x1484e4;}}const arrayDiff=new ArrayDiff();function diffArrays(_0x23d701,_0xb0811c,_0x23ac4f){return arrayDiff['diff'](_0x23d701,_0xb0811c,_0x23ac4f);}const DATA_ID_MODEL_ATTRIBUTE='$elementId',DATA_ID_VIEW_ATTRIBUTE='data-id';class DocumentCompare extends ContextPlugin{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x58e08a,_0x5aa91d)=>{_0x5aa91d['on']('ready',()=>{this['_integrateEditor'](_0x5aa91d);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0x2abfaa=this['context']['editors']['first'];if(!_0x2abfaa)throw new CKEditorError('documentcompare-no-editor',this);return _0x2abfaa;}}['getDiff'](_0x3e101c,_0x36014c,_0x3839b1={'anchor':'main','markDeletions':!0x1}){const _0x2c6728=_0x3839b1['targetEditor']||this['editor'];let _0x5c56f0,_0x5aa8f2;if('string'==typeof _0x3839b1['anchor']){const _0x2c1e22=_0x2c6728['model']['document']['getRoot'](_0x3839b1['anchor']);if(!_0x2c1e22)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x3839b1['anchor']});_0x5c56f0=_0x2c1e22,_0x5aa8f2=_0x2c6728['model']['createPositionAt'](_0x2c1e22,0x0);}else _0x5c56f0=_0x3839b1['anchor']['clone'](),_0x5aa8f2=_0x3839b1['anchor']['clone']();const _0x400911=_0x2c6728['data']['parse'](_0x3e101c,_0x5c56f0),_0x9e82a5=_0x2c6728['data']['parse'](_0x36014c,_0x5c56f0);return new DocumentDiff({'editor':_0x2c6728,'before':_0x400911,'after':_0x9e82a5,'options':{'anchor':_0x5aa8f2,'markDeletions':_0x3839b1['markDeletions']}});}['isMarkedRemoveOperation'](_0x4ada16){return'marker'==_0x4ada16['type']&&_0x4ada16['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x1ec5e4){_0x1ec5e4['conversion']['for']('upcast')['add'](_0x227bb1=>{_0x227bb1['on']('element',(_0x25a05d,_0x1bc7cc,_0x2e0e1a)=>{if(_0x1bc7cc['modelRange'])for(const _0x19575d of _0x1bc7cc['modelRange']['getItems']({'shallow':!0x0})){if(_0x19575d['is']('$textProxy'))continue;const _0x332cc2=_0x1bc7cc['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x332cc2&&_0x2e0e1a['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x332cc2,_0x19575d);}},{'priority':'lowest'});}),_0x1ec5e4['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_markDeletions'];['_anchor'];['_operationsData']=[];['_path']=[0x0];['_parents']=[];['_splitPostponedData']=new Map();constructor({editor:_0x853e08,before:_0x50de65,after:_0x46ed29,options:_0x46d65f}){this['_editor']=_0x853e08,this['_markDeletions']=!!_0x46d65f['markDeletions'],this['_anchor']=_0x46d65f['anchor'];const _0x325d4d=this['_tokenizeModel'](_0x50de65),_0x1cc88c=this['_tokenizeModel'](_0x46ed29);this['_diffItems']=this['_diffModelTokens'](_0x325d4d,_0x1cc88c),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x50de65['markers'],_0x46ed29['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x28a1bf=this['_editor']['model']['document'],_0x320af7=[];let _0x52e105=_0x28a1bf['version'];for(const _0xe298be of this['_operationsData'])switch(_0xe298be['type']){case'attribute':{const _0x3f6c5b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['path']),_0x3fb4c2=_0x3f6c5b['getShiftedBy'](_0xe298be['howMany']),_0x523682=new ModelRange(_0x3f6c5b,_0x3fb4c2),_0xa248a5=JSON['parse'](_0xe298be['oldValue']),_0x3cd8fc=JSON['parse'](_0xe298be['newValue']);_0x320af7['push'](new AttributeOperation(_0x523682,_0xe298be['key'],_0xa248a5,_0x3cd8fc,_0x52e105++));break;}case'insert':{const _0x4ec87e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['path']),_0x2afd09=this['_makeModelFromTokens'](_0xe298be['tokens']);_0x320af7['push'](new InsertOperation(_0x4ec87e,_0x2afd09,_0x52e105++));break;}case'remove':{const _0x1c0cff=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['path']),_0xe35607=new ModelPosition(_0x28a1bf['graveyard'],[0x0]);_0x320af7['push'](new MoveOperation(_0x1c0cff,_0xe298be['howMany'],_0xe35607,_0x52e105++));break;}case'rename':{const _0x43c206=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['path']);_0x320af7['push'](new RenameOperation(_0x43c206,_0xe298be['oldName'],_0xe298be['newName'],_0x52e105++));break;}case'split':{const _0x3b1183=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['path']),_0x373ced=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['path']['slice'](0x0,-0x1));_0x373ced['offset']++,_0x320af7['push'](new SplitOperation(_0x3b1183,Number['NEGATIVE_INFINITY'],_0x373ced,null,_0x52e105++));break;}case'merge':{const _0x114fd4=_0xe298be['path']['slice'](),_0x1a8c1f=_0x114fd4['slice'](0x0,-0x1);_0x1a8c1f[_0x1a8c1f['length']-0x1]++,_0x1a8c1f['push'](0x0);const _0x562e57=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x1a8c1f),_0x4dab24=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x114fd4),_0x468b6a=new ModelPosition(_0x28a1bf['graveyard'],[0x0]);_0x320af7['push'](new MergeOperation(_0x562e57,Number['NEGATIVE_INFINITY'],_0x4dab24,_0x468b6a,_0x52e105++));break;}case'marker':case'markedRemove':{let _0x3c9c04=null;if(_0xe298be['range']){const _0x43a695=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['range']['start']),_0x3b26a9=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['range']['end']);_0x3c9c04=new ModelRange(_0x43a695,_0x3b26a9);}const _0x465ff2='marker'==_0xe298be['type']?_0xe298be['name']:'$markedRemove:'+uid();_0x320af7['push'](new MarkerOperation(_0x465ff2,null,_0x3c9c04,_0x28a1bf['model']['markers'],!0x0,_0x52e105++));break;}case'unwrap':{const _0x390783=_0xe298be['path']['slice']();_0x390783['push'](0x0);const _0x50547d=_0xe298be['path']['slice'](),_0x1101d5=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x390783),_0x7cf48e=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x50547d),_0x48dd82=new ModelPosition(_0x28a1bf['graveyard'],[0x0]);_0x320af7['push'](new MoveOperation(_0x1101d5,_0xe298be['howMany'],_0x7cf48e,_0x52e105++)),_0x320af7['push'](new MoveOperation(_0x7cf48e['getShiftedBy'](_0xe298be['howMany']),0x1,_0x48dd82,_0x52e105++));break;}case'wrap':{const _0x236fb8=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['range']['start']),_0xdcb7c3=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xe298be['range']['end']),_0x282ba4=_0xe298be['token']['element']['_clone'](!0x1),_0x4440db=_0xe298be['range']['end']['slice']();_0x4440db['push'](0x0);const _0xade25b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4440db);_0x320af7['push'](new InsertOperation(_0xdcb7c3,_0x282ba4,_0x52e105++)),_0x320af7['push'](new MoveOperation(_0x236fb8,_0xdcb7c3['offset']-_0x236fb8['offset'],_0xade25b,_0x52e105++));break;}}return _0x320af7;}['_tokenizeModel'](_0x13d542){const _0x3f5983=[],_0x1b8593=ModelRange['_createIn'](_0x13d542),_0xf9078a=new ModelTreeWalker({'boundaries':_0x1b8593});let _0x5079ef='',_0x315a96=null;const _0x23aa36=[''],_0x35b3db=new Map();for(const _0x59eb16 of _0xf9078a)if('elementStart'==_0x59eb16['type']||'elementEnd'==_0x59eb16['type']){let _0x3bbd3=_0x23aa36[0x0];''!==_0x5079ef&&(_0x3f5983['push'](...this['_makeTokensFromTextByWords'](_0x5079ef,_0x315a96,_0x3bbd3)),_0x5079ef='');const _0x5cf6ff=_0x59eb16['item'];let _0x2c71cf;_0x5cf6ff['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x2c71cf=_0x5cf6ff['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0x59eb16['type']?(_0x2c71cf=makeUidForElement(_0x5cf6ff),_0x35b3db['set'](_0x5cf6ff,_0x2c71cf)):_0x2c71cf=_0x35b3db['get'](_0x5cf6ff);const _0xe3f16c=this['_getElementCategory'](_0x5cf6ff);'solid'==_0xe3f16c&&('elementStart'==_0x59eb16['type']?(_0x3bbd3=_0x2c71cf,_0x23aa36['unshift'](_0x3bbd3)):_0x23aa36['shift']());const _0xd90f88={'type':'element','element':_0x5cf6ff,'elementId':_0x2c71cf,'category':_0xe3f16c,'isStart':'elementStart'==_0x59eb16['type'],'limitId':_0x3bbd3};_0x3f5983['push'](_0xd90f88);}else''==_0x5079ef&&(_0x315a96=_0x59eb16['previousPosition']['clone']()),_0x5079ef+=_0x59eb16['item']['data'];return''!==_0x5079ef&&_0x3f5983['push'](...this['_makeTokensFromTextByWords'](_0x5079ef,_0x315a96,_0x23aa36[0x0])),_0x3f5983;}['_makeTokensFromTextByWords'](_0x3be5a2,_0x13361b,_0xef2660){const _0x969a56=_0x3be5a2['matchAll'](/(\s)/g),_0x926de7=Array['from'](_0x969a56)['map'](_0x2f4533=>_0x2f4533['index']);_0x926de7['push'](_0x3be5a2['length']),0x0==_0x926de7[0x0]&&_0x926de7['shift']();const _0x896d1a=[],_0x3f8696=_0x13361b['parent'];let _0x119c73=0x0,_0x237bfe=_0x13361b['offset'];for(let _0x410bff=0x0;_0x410bff<_0x926de7['length'];_0x410bff++)_0x896d1a['push']({'type':'text','data':_0x3be5a2['slice'](_0x119c73,_0x926de7[_0x410bff]),'parent':_0x3f8696,'offset':_0x237bfe,'limitId':_0xef2660}),_0x119c73=_0x926de7[_0x410bff],_0x237bfe=_0x13361b['offset']+_0x926de7[_0x410bff];return _0x896d1a;}['_getElementCategory'](_0x1d9808){const _0x5b7bad=this['_editor']['model']['schema'];return _0x5b7bad['isLimit'](_0x1d9808)||_0x5b7bad['isContent'](_0x1d9808)||_0x5b7bad['isInline'](_0x1d9808)?'solid':_0x5b7bad['isBlock'](_0x1d9808)?'block':'container';}['_diffModelTokens'](_0x3aa0e8,_0x2cfe39){const _0x5d2e51=diffArrays(_0x3aa0e8,_0x2cfe39,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x5d2e51);const _0x1dcbf6=_0x5d2e51['flatMap'](_0x21477b=>{const _0x31f2ff=_0x21477b['added']?'added':_0x21477b['removed']?'removed':'unchanged';return _0x21477b['value']['map'](_0x3f5295=>({'token':_0x3f5295,'change':_0x31f2ff}));});let _0x1bc29d=0x0;for(const _0x13b7b9 of _0x1dcbf6)'added'!=_0x13b7b9['change']&&('unchanged'==_0x13b7b9['change']&&(_0x13b7b9['before']=_0x3aa0e8[_0x1bc29d]),_0x1bc29d++);return _0x1dcbf6;}['_handleUnclosedBlockOpeningTags'](_0x253c62){for(let _0x16c0fa=0x0;_0x16c0fa<_0x253c62['length']-0x1;_0x16c0fa++)if(_0x253c62[_0x16c0fa]['removed']&&_0x253c62[_0x16c0fa+0x1]['added']){const _0x1d46f1=this['_findUnclosedBlockOpeningToken'](_0x253c62[_0x16c0fa]['value']);if(null!==_0x1d46f1){const _0x3472d8=this['_findUnclosedBlockOpeningToken'](_0x253c62[_0x16c0fa+0x1]['value']),_0x4969f8=_0x253c62[_0x16c0fa]['value']['splice'](_0x1d46f1),_0x57d722=_0x253c62[_0x16c0fa+0x1]['value']['splice'](_0x3472d8),_0x526d16=[_0x57d722['shift']()];_0x4969f8['shift']();const _0x3067c1={'value':_0x4969f8,'removed':!0x0},_0x2e292e={'value':_0x57d722,'added':!0x0},_0x201f26={'value':_0x526d16};_0x253c62['splice'](_0x16c0fa+0x2,0x0,_0x201f26,_0x3067c1,_0x2e292e);}}}['_findUnclosedBlockOpeningToken'](_0x3c7319){let _0x27094a=0x0,_0x20a802=-0x1;for(let _0x1dbc68=0x0;_0x1dbc68<_0x3c7319['length'];_0x1dbc68++){const _0x35900e=_0x3c7319[_0x1dbc68];'element'==_0x35900e['type']&&'block'==_0x35900e['category']&&(_0x27094a+=_0x35900e['isStart']?0x1:-0x1,_0x35900e['isStart']&&(_0x20a802=_0x1dbc68));}return 0x0===_0x27094a?null:_0x20a802;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0xc44639=0x0;_0xc44639<this['_diffItems']['length'];_0xc44639++){const _0x2f26ac=this['_diffItems'][_0xc44639]['change'],_0x432e01=[];_0x432e01['push'](this['_diffItems'][_0xc44639]);let _0xcc3324=_0xc44639+0x1;for(;this['_diffItems'][_0xcc3324]&&this['_diffItems'][_0xcc3324]['change']==_0x2f26ac;)_0x432e01['push'](this['_diffItems'][_0xcc3324]),_0xcc3324++,_0xc44639++;const _0x49efa5=_0x432e01['map'](_0x27b82e=>_0x27b82e['token']);if('unchanged'==_0x2f26ac)_0x432e01['map'](_0x15ea93=>_0x15ea93['before'])['forEach'](_0x471b8b=>this['_traverseOverItem'](_0x471b8b));else{if('removed'==_0x2f26ac){if(this['_markDeletions']){const _0xd17f6c=this['_path']['slice']();_0x49efa5['forEach'](_0x3de431=>this['_traverseOverItem'](_0x3de431));const _0x3b73dc=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0xd17f6c,'end':_0x3b73dc}});}else this['_handleChanged'](_0x49efa5,!0x0,this['_path']['slice']());}else{const _0x4e987=_0x49efa5['filter'](_0x53a690=>'element'!=_0x53a690['type']||'container'!=_0x53a690['category']);this['_handleChanged'](_0x4e987,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x15dc2a=0x0;_0x15dc2a<this['_diffItems']['length'];_0x15dc2a++){const _0x53109b=this['_diffItems'][_0x15dc2a]['change'],_0x1a702b=[];_0x1a702b['push'](this['_diffItems'][_0x15dc2a]);let _0x19e147=_0x15dc2a+0x1;for(;this['_diffItems'][_0x19e147]&&this['_diffItems'][_0x19e147]['change']==_0x53109b;)_0x1a702b['push'](this['_diffItems'][_0x19e147]),_0x19e147++,_0x15dc2a++;const _0x41fbb3=_0x1a702b['map'](_0x5c2ded=>_0x5c2ded['token']);if('unchanged'==_0x53109b){const _0x3c1b9a=_0x1a702b['map'](_0x1a413b=>_0x1a413b['before']);this['_handleUnchanged'](_0x3c1b9a,_0x41fbb3);}else('added'==_0x53109b||this['_markDeletions'])&&_0x41fbb3['forEach'](_0x17d4dd=>{'element'==_0x17d4dd['type']&&_0x17d4dd['isStart']&&this['_splitPostponedData']['has'](_0x17d4dd['element'])&&this['_handleSplitPostponedData'](_0x17d4dd['element'],this['_path']),this['_traverseOverItem'](_0x17d4dd);});}}['_handleSplitPostponedData'](_0x5d5528,_0x319a33){const _0x2ae7ad=this['_splitPostponedData']['get'](_0x5d5528);for(const _0x57d925 of _0x2ae7ad)'rename'==_0x57d925['type']?this['_operationsData']['push']({'type':'rename','path':_0x319a33['slice'](),'oldName':_0x57d925['oldValue'],'newName':_0x5d5528['name']}):this['_operationsData']['push']({'type':'attribute','path':_0x319a33['slice'](),'howMany':0x1,'key':_0x57d925['key'],'oldValue':_0x57d925['oldValue'],'newValue':JSON['stringify'](_0x5d5528['getAttribute'](_0x57d925['key'])??null)});}['_calculateMarkersOperationsData'](_0x4ce438,_0x3bc28b){const _0x3176da={};for(const [_0x41d7a8]of _0x4ce438)_0x3176da[_0x41d7a8]=null;for(const [_0x5f1705,_0x5e20f4]of _0x3bc28b)_0x3176da[_0x5f1705]=_0x5e20f4;const _0xc534d7=Object['entries'](_0x3176da)['map'](([_0x27dad5,_0x1a82bc])=>({'type':'marker','name':_0x27dad5,'range':_0x1a82bc?{'start':_0x1a82bc['start']['path']['slice'](),'end':_0x1a82bc['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0xc534d7);}['_handleUnwraps'](){const _0x5340e4=new Map(),_0x1ef618=[],_0x4c315e=[0x0];let _0xd3a04f=this['_diffItems']['length']+0x1;for(let _0x1658bd=this['_diffItems']['length']-0x1;_0x1658bd>=0x0;_0x1658bd--){const {token:_0x44a650,before:_0x158df3,change:_0x455cd4}=this['_diffItems'][_0x1658bd];if('removed'!=_0x455cd4&&(_0xd3a04f=_0x1658bd),'element'!=_0x44a650['type']||'container'!=_0x44a650['category']||'added'==_0x455cd4)continue;const _0x4ed97f=_0x158df3?_0x158df3['element']:_0x44a650['element'];if(_0x44a650['isStart']){const _0x264292=_0x5340e4['get'](_0x4ed97f),_0x7720a6=this['_diffItems'][_0x264292];('removed'==_0x455cd4||'removed'==_0x7720a6['change'])&&_0xd3a04f<_0x264292&&(this['_operationsData']['push']({'type':'unwrap','path':_0x4ed97f['getPath'](),'howMany':_0x4ed97f['maxOffset']+_0x4c315e[0x0]}),_0x4c315e['shift'](),_0x4c315e[0x0]+=_0x4ed97f['maxOffset']-0x1,_0x1ef618['push'](_0x1658bd),_0x1ef618['push'](_0x264292));}else _0x5340e4['set'](_0x4ed97f,_0x1658bd),_0x4c315e['unshift'](0x0);}_0x1ef618['sort']((_0x2962ef,_0x5c9ebf)=>_0x5c9ebf-_0x2962ef),_0x1ef618['forEach'](_0x598c3b=>{const _0x3ad280=this['_diffItems'][_0x598c3b];'removed'==_0x3ad280['change']?this['_diffItems']['splice'](_0x598c3b,0x1):(_0x3ad280['change']='added',delete _0x3ad280['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x1edfee=[];for(let _0x197372=0x0;_0x197372<this['_diffItems']['length'];_0x197372++){const {change:_0x350bd7,token:_0x532f64}=this['_diffItems'][_0x197372];if('added'==_0x350bd7&&'element'==_0x532f64['type']&&'container'==_0x532f64['category']){if(_0x532f64['isStart'])_0x1edfee['push'](this['_path']['slice']());else{if(!_0x532f64['isStart']){const _0x3704fc=_0x1edfee['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3704fc,'end':this['_path']['slice']()},'token':_0x532f64}),this['_path'][this['_path']['length']-0x1]=_0x3704fc[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x350bd7||this['_markDeletions'])&&this['_traverseOverItem'](_0x532f64);}}['_handleUnchanged'](_0x40fb29,_0x1d3eab){for(let _0x4e8d22=0x0;_0x4e8d22<_0x40fb29['length'];_0x4e8d22++){const _0xddcd4b=_0x40fb29[_0x4e8d22];if('element'==_0xddcd4b['type']&&_0xddcd4b['isStart']){const _0x28f33e=_0x1d3eab[_0x4e8d22];'block'==_0xddcd4b['category']&&this['_handleElementRename'](_0xddcd4b['element'],_0x28f33e['element'],this['_path']),this['_handleElementAttributeChanges'](_0xddcd4b['element'],_0x28f33e['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x28f33e);}else{if('element'!=_0xddcd4b['type']||_0xddcd4b['isStart']){if('text'==_0xddcd4b['type']){const _0x82346c=this['_path']['slice'](),_0x7aa758=[],_0x575afe=[];for(;_0x40fb29[_0x4e8d22]&&'text'==_0x40fb29[_0x4e8d22]['type'];)_0x7aa758['push'](_0x40fb29[_0x4e8d22]),_0x575afe['push'](_0x1d3eab[_0x4e8d22]),this['_path'][this['_path']['length']-0x1]+=_0x40fb29[_0x4e8d22]['data']['length'],_0x4e8d22++;_0x4e8d22--,this['_handleTextAttributeChanges'](_0x7aa758,_0x575afe,_0x82346c);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x4b4c31,_0x95cc36,_0x481ffb){const _0x5a225f=[],_0x304176=[],_0x442a7c=_0x481ffb['slice']();let _0x234202=this['_parents']['length']-0x1;for(let _0xb2abf3=0x0;_0xb2abf3<_0x4b4c31['length'];_0xb2abf3++){const _0x23373a=_0x4b4c31[_0xb2abf3],_0x40c970=_0x481ffb['slice']();'element'!=_0x23373a['type']||_0x23373a['isStart']?'element'==_0x23373a['type']&&_0x23373a['isStart']?(_0x481ffb['push'](0x0),_0x234202++,_0x304176['push']({'before':_0x40c970,'after':_0x481ffb['slice'](),'index':_0xb2abf3})):_0x481ffb[_0x481ffb['length']-0x1]+=_0x23373a['data']['length']:(_0x481ffb['pop'](),_0x481ffb[_0x481ffb['length']-0x1]++,_0x234202--,_0x304176['length']?_0x304176['pop']():_0x5a225f['push']({'before':_0x40c970,'after':_0x481ffb['slice'](),'index':_0xb2abf3}));}if(_0x304176['length']!==_0x5a225f['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x4b4c31,'isRemove':_0x95cc36});const _0x35d1b8=[{'after':_0x442a7c['slice'](),'index':-0x1},..._0x5a225f,..._0x304176,{'before':_0x481ffb['slice'](),'index':_0x4b4c31['length']}];if(_0x95cc36){for(let _0x481448=_0x35d1b8['length']-0x1;_0x481448>=0x1;_0x481448--){const _0x3b1442=_0x35d1b8[_0x481448-0x1]['after'],_0xee62e8=_0x35d1b8[_0x481448]['before'],_0x4e9efd=_0xee62e8[_0xee62e8['length']-0x1]-_0x3b1442[_0x3b1442['length']-0x1];_0x4e9efd&&(this['_operationsData']['push']({'type':'remove','path':_0x3b1442,'howMany':_0x4e9efd}),_0xee62e8[_0xee62e8['length']-0x1]-=_0x4e9efd);}for(const {before:_0x20dbb8}of _0x5a225f)this['_operationsData']['push']({'type':'merge','path':_0x20dbb8});}else for(let _0x288c31=0x0;_0x288c31<_0x35d1b8['length']-0x1;_0x288c31++){const _0x490b6a=_0x35d1b8[_0x288c31]['after'],_0x1291f9=_0x35d1b8[_0x288c31+0x1]['before'],_0x3eb2e9=_0x35d1b8[_0x288c31]['index']+0x1,_0x47568a=_0x35d1b8[_0x288c31+0x1]['index'];if(_0x3eb2e9!==_0x47568a&&this['_operationsData']['push']({'type':'insert','path':_0x490b6a,'tokens':_0x4b4c31['slice'](_0x3eb2e9,_0x47568a)}),_0x288c31<_0x5a225f['length']){this['_operationsData']['push']({'type':'split','path':_0x1291f9});const _0x1b3750=_0x4b4c31[_0x304176[_0x304176['length']-0x1-_0x288c31]['index']],_0x210f52=this['_parents'][_0x234202]['element'];_0x210f52['name']!=_0x1b3750['element']['name']&&this['_addSplitPostponedData'](_0x1b3750['element'],{'type':'rename','oldValue':_0x210f52['name']});const _0x49c7c2=this['_getAttributeChanges'](_0x210f52['getAttributes'](),_0x1b3750['element']['getAttributes']());for(const _0x547cfa in _0x49c7c2){const _0x5cb640=_0x49c7c2[_0x547cfa]['oldValue'];this['_addSplitPostponedData'](_0x1b3750['element'],{'type':'attribute','key':_0x547cfa,'oldValue':_0x5cb640});}}}}['_addSplitPostponedData'](_0x20611a,_0x38ccb3){const _0x1dd4b6=this['_splitPostponedData']['get'](_0x20611a)||[];_0x1dd4b6['push'](_0x38ccb3),this['_splitPostponedData']['set'](_0x20611a,_0x1dd4b6);}['_traverseOverItem'](_0x59b722){'element'==_0x59b722['type']&&_0x59b722['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x59b722)):'element'!=_0x59b722['type']||_0x59b722['isStart']?'text'==_0x59b722['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x59b722['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x5b346a,_0xd70cac,_0x5ec685){_0x5b346a['name']!=_0xd70cac['name']&&this['_operationsData']['push']({'type':'rename','path':_0x5ec685['slice'](),'oldName':_0x5b346a['name'],'newName':_0xd70cac['name']});}['_handleElementAttributeChanges'](_0x3bc98e,_0x125103,_0x45416b){const _0x609b2d=this['_getAttributeChanges'](_0x3bc98e['getAttributes'](),_0x125103['getAttributes']());for(const _0x442f80 in _0x609b2d){const {oldValue:_0x1cfbb9,newValue:_0x109a38}=_0x609b2d[_0x442f80];this['_operationsData']['push']({'type':'attribute','path':_0x45416b['slice'](),'howMany':0x1,'key':_0x442f80,'oldValue':_0x1cfbb9,'newValue':_0x109a38});}}['_handleTextAttributeChanges'](_0x390826,_0x3838d2,_0x13278a){const _0x374106=this['_operationsData'],_0x2b0e40=_0x390826[0x0]['parent'],_0x19eba6=_0x390826[0x0]['offset'],_0x12f87a=_0x3838d2[0x0]['parent'],_0x298068=_0x3838d2[0x0]['offset'],_0x379c5a=_0x390826['reduce']((_0x14a71f,_0x2adbe6)=>_0x14a71f+_0x2adbe6['data']['length'],0x0),_0x258187=this['_getAttrsForOffsets'](_0x2b0e40,_0x19eba6,_0x379c5a),_0x49c5bc=this['_getAttrsForOffsets'](_0x12f87a,_0x298068,_0x379c5a),_0x501a50={};for(let _0x2ee5d4=0x0;_0x2ee5d4<_0x379c5a;_0x2ee5d4++){const _0x2f1b7b=_0x258187[_0x19eba6+_0x2ee5d4],_0x502083=_0x49c5bc[_0x298068+_0x2ee5d4],_0x323d53=this['_getAttributeChanges'](_0x2f1b7b,_0x502083);for(const _0x190a10 in _0x501a50)_0x323d53[_0x190a10]||_0x50e25a(_0x190a10);for(const _0x3ec61a in _0x323d53){const {oldValue:_0x36b418,newValue:_0x350878}=_0x323d53[_0x3ec61a],_0x90a3d3=_0x501a50[_0x3ec61a];_0x90a3d3?_0x90a3d3['oldValue']==_0x36b418&&_0x90a3d3['newValue']==_0x350878?_0x90a3d3['length']++:(_0x50e25a(_0x3ec61a),_0x501a50[_0x3ec61a]={'oldValue':_0x36b418,'newValue':_0x350878,'start':_0x2ee5d4,'length':0x1}):_0x501a50[_0x3ec61a]={'oldValue':_0x36b418,'newValue':_0x350878,'start':_0x2ee5d4,'length':0x1};}}for(const _0x223946 in _0x501a50)_0x50e25a(_0x223946);function _0x50e25a(_0x216278){const _0x101ad6=_0x501a50[_0x216278],_0x25a1e3=_0x13278a['slice']();_0x25a1e3[_0x25a1e3['length']-0x1]+=_0x101ad6['start'],_0x374106['push']({'type':'attribute','path':_0x25a1e3,'howMany':_0x101ad6['length'],'key':_0x216278,'oldValue':_0x101ad6['oldValue'],'newValue':_0x101ad6['newValue']}),delete _0x501a50[_0x216278];}}['_getAttributeChanges'](_0x1079ed,_0x14dc56){const _0x1b8c92={};for(const [_0x418317,_0x10a8ff]of _0x1079ed)_0x1b8c92[_0x418317]={'oldValue':JSON['stringify'](_0x10a8ff),'newValue':'null'};for(const [_0x33d479,_0x477753]of _0x14dc56){const _0x37d619=JSON['stringify'](_0x477753);_0x1b8c92[_0x33d479]?_0x1b8c92[_0x33d479]['oldValue']==_0x37d619?delete _0x1b8c92[_0x33d479]:_0x1b8c92[_0x33d479]['newValue']=_0x37d619:_0x1b8c92[_0x33d479]={'oldValue':'null','newValue':_0x37d619};}return delete _0x1b8c92[DATA_ID_MODEL_ATTRIBUTE],_0x1b8c92;}['_getAttrsForOffsets'](_0x384820,_0x13c856,_0x1bd17b){const _0x5e33d9=new Array(_0x13c856+_0x1bd17b);let _0xa95709=_0x384820['getChildAtOffset'](_0x13c856),_0x50883c=_0xa95709['startOffset'];for(;_0xa95709&&_0x50883c<_0x13c856+_0x1bd17b;){const _0x5cdad5=Array['from'](_0xa95709['getAttributes']());_0x5e33d9['fill'](_0x5cdad5,_0x50883c,_0x50883c+_0xa95709['offsetSize']),_0x50883c+=_0xa95709['offsetSize'],_0xa95709=_0xa95709['nextSibling'];}return _0x5e33d9;}['_getPositionFromAnchorAndPath'](_0x83dae5,_0x26e485){const _0x50b67f=[..._0x83dae5['path']['slice'](0x0,-0x1),_0x83dae5['offset']+_0x26e485[0x0],..._0x26e485['slice'](0x1)];return new ModelPosition(_0x83dae5['root'],_0x50b67f);}['_makeModelFromTokens'](_0x467952){const _0x478379=[];let _0x30b21c=null;for(const _0x37ca6a of _0x467952)if('element'!=_0x37ca6a['type']||_0x37ca6a['isStart']||_0x30b21c!=_0x37ca6a['element']){if(!_0x30b21c){if('text'==_0x37ca6a['type']){const _0x36c066=ModelPosition['_createAt'](_0x37ca6a['parent'],_0x37ca6a['offset']),_0x3c3290=ModelRange['_createFromPositionAndShift'](_0x36c066,_0x37ca6a['data']['length']),_0x18c1ce=Array['from'](_0x3c3290['getItems']())['map'](_0x17fe29=>new ModelText(_0x17fe29['data'],_0x17fe29['getAttributes']()));_0x478379['push'](..._0x18c1ce);}else{_0x30b21c=_0x37ca6a['element'];const _0x28c42e=_0x37ca6a['element']['_clone'](!0x0);_0x28c42e['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0x4250a3 of this['_editor']['model']['createRangeIn'](_0x28c42e)['getItems']())_0x4250a3['is']('element')&&_0x4250a3['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x478379['push'](_0x28c42e);}}}else _0x30b21c=null;return _0x478379;}}function compareModelTokens(_0x3b83a6,_0x3e44e2){return _0x3b83a6['type']===_0x3e44e2['type']&&(_0x3b83a6['limitId']===_0x3e44e2['limitId']&&('text'==_0x3b83a6['type']?_0x3b83a6['data']==_0x3e44e2['data']:compareModelElementTokens(_0x3b83a6,_0x3e44e2)));}function compareModelElementTokens(_0x5c33d3,_0x3bd86a){return _0x5c33d3['isStart']==_0x3bd86a['isStart']&&((!_0x5c33d3['isStart']||_0x5c33d3['elementId']==_0x3bd86a['elementId'])&&(_0x5c33d3['category']==_0x3bd86a['category']&&('block'==_0x5c33d3['category']||('container'!=_0x5c33d3['category']||_0x5c33d3['elementId']==_0x3bd86a['elementId'])&&_0x5c33d3['element']['name']==_0x3bd86a['element']['name'])));}function makeUidForElement(_0x3a3b1d){return hashObject({'name':_0x3a3b1d['name'],...Object['fromEntries'](_0x3a3b1d['getAttributes']())});}function getSuggestionPartsFromReply({editor:_0x3c0a9f,changeGroups:_0x139510,documentContextContent:_0x2a026f,showDiff:_0x4e3a16,trimUnchanged:_0x378ced=!0x0}){return _0x139510['map'](_0x1aa662=>{const _0x5ac37c=new Document$1([]),_0x426cde=new Document$1([]),_0x493682=new Set();for(const _0x1575d1 of _0x1aa662['changes'])'new'==_0x1575d1['type']&&findAllByAttribute('data-id',null,_0x1575d1['node'])['forEach'](_0x3c3a15=>{_0x493682['add'](getAttribute(_0x3c3a15,'data-id'));});for(const _0x1dec17 of _0x1aa662['changes'])if('removed'!=_0x1dec17['type']?_0x426cde['children']['push'](_0x1dec17['node']['cloneNode'](!0x0)):_0x4e3a16||_0x493682['has'](_0x1dec17['id'])||_0x426cde['children']['push'](_0x1dec17['node']['cloneNode'](!0x0)),'new'!=_0x1dec17['type']&&(_0x4e3a16||'removed'!=_0x1dec17['type'])){const _0x41c114=findOne(_0x10ce22=>getAttribute(_0x10ce22,'data-id')==_0x1dec17['id'],_0x2a026f,!0x0);_0x41c114&&_0x5ac37c['children']['push'](_0x41c114['cloneNode'](!0x0));}const {content:_0x3c3971,hasChanges:_0x48be6d}=passThroughEditorDataPipeline(_0x3c0a9f,_0x5ac37c,_0x426cde,_0x4e3a16,_0x378ced);return{'type':_0x1aa662['changes'][0x0]['type'],'index':_0x1aa662['index'],'content':_0x3c3971,'hasChanges':_0x48be6d};});}function passThroughEditorDataPipeline(_0x4033d0,_0xa1d52c,_0x2884de,_0x371411,_0x428774=!0x0){const _0xd560bf=_0x4033d0['plugins']['get']('DocumentCompare'),_0x5ac3e6=serialize$1(_0xa1d52c),_0x108216=serialize$1(_0x2884de),_0x598819=_0x4033d0['data']['parse'](_0x5ac3e6,'$root'),_0x500c44=_0x4033d0['model']['createPositionAt'](_0x598819,0x0),_0x4255e3=_0xd560bf['getDiff'](_0x5ac3e6,_0x108216,{'anchor':_0x500c44,'markDeletions':_0x371411,'targetEditor':_0x4033d0})['getOperations']();if(0x0==_0x4255e3['length'])return{'content':_0xa1d52c['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x371411?applyOperationsAndDiffMarkers(_0x4255e3,_0x598819,_0x4033d0):_0x4033d0['model']['change'](_0x5b79c1=>{for(const _0x193790 of _0x4255e3)if('remove'==_0x193790['type']){const _0x464d1f=_0x193790['sourcePosition'],_0x2859bb=_0x193790['howMany'],_0x5a769b=new _DetachOperation(_0x464d1f,_0x2859bb);_0x5b79c1['batch']['addOperation'](_0x5a769b),_0x4033d0['model']['applyOperation'](_0x5a769b);}else{if('marker'==_0x193790['type']){const _0x454f8a=_0x193790['name'],_0x3afb39=_0x193790['newRange'];null!==_0x3afb39?_0x598819['markers']['set'](_0x454f8a,_0x3afb39):_0x598819['markers']['delete'](_0x454f8a);}else _0x193790['baseVersion']=null,_0x193790['isDocumentOperation']=!0x1,_0x5b79c1['batch']['addOperation'](_0x193790),_0x4033d0['model']['applyOperation'](_0x193790);}}),_0x428774){const _0x3cdf7b=getMinimalSelection(_0x4033d0,_0x4255e3,_0x598819);expandSelectionWithContext(_0x4033d0['model'],_0x3cdf7b),shrinkFragmentToSelection(_0x4033d0['model'],_0x3cdf7b);}return{'content':parse$2(_0x4033d0['data']['stringify'](_0x598819,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function applyOperationsAndDiffMarkers(_0x3bdeeb,_0x52c337,_0x506ca4){if(0x0==_0x3bdeeb['length'])return;const _0x1ec783=_0x506ca4['plugins']['get']('DocumentCompare'),_0xc75fe6=_0x506ca4['plugins']['get']('SuggestionsConversion');_0x506ca4['model']['change'](_0x4ac762=>{const _0x221485=new Set();for(let _0x4aa53a=0x0;_0x4aa53a<_0x3bdeeb['length'];_0x4aa53a++){const _0x3b32d2=_0x3bdeeb[_0x4aa53a];if(_0x3b32d2['baseVersion']=null,_0x3b32d2['isDocumentOperation']=!0x1,_0x1ec783['isMarkedRemoveOperation'](_0x3b32d2)){const _0x265b7a=fixElementSuggestionRange(_0x3b32d2['newRange'],_0x506ca4['model']),_0x184572='suggestion:deletion:'+uid()+':$aiSuggestion';_0x52c337['markers']['set'](_0x184572,_0x265b7a);}else switch(_0x3b32d2['type']){case'rename':{if(_0x3b32d2['oldName']==_0x3b32d2['newName'])break;_0x4ac762['batch']['addOperation'](_0x3b32d2),_0x506ca4['model']['applyOperation'](_0x3b32d2);const _0x57b4e2='$elementName',_0x28368d=_0x3b32d2['position'],_0x2ae801=_0x506ca4['model']['createRange'](_0x28368d,_0x506ca4['model']['createPositionAt'](_0x28368d['nodeAfter'],'end')),_0x6922f='suggestion:attribute:'+_0x57b4e2+':'+uid()+':$aiSuggestion';_0x52c337['markers']['set'](_0x6922f,_0x2ae801);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x3b32d2['oldValue']==_0x3b32d2['newValue'])break;_0x4ac762['batch']['addOperation'](_0x3b32d2),_0x506ca4['model']['applyOperation'](_0x3b32d2);const _0xabd6ca=_0x3b32d2['key'];if(!_0xc75fe6['isRegisteredAttribute'](_0xabd6ca))break;const _0x50f82e=fixElementSuggestionRange(_0x3b32d2['range'],_0x506ca4['model']),_0x1c0a61='suggestion:attribute:'+_0xabd6ca+':'+uid()+':$aiSuggestion';_0x52c337['markers']['set'](_0x1c0a61,_0x50f82e);break;}case'insert':{_0x4ac762['batch']['addOperation'](_0x3b32d2),_0x506ca4['model']['applyOperation'](_0x3b32d2);if(_0x3bdeeb[_0x4aa53a+0x1]&&'move'==_0x3bdeeb[_0x4aa53a+0x1]['type']){transformMarkers(_0x52c337,_0x3b32d2);break;}const _0x21e72b=_0x3b32d2['position'],_0x147152=_0x3b32d2['howMany'],_0x4795ae=fixElementSuggestionRange(_0x506ca4['model']['createRange'](_0x21e72b,_0x21e72b['getShiftedBy'](_0x147152)),_0x506ca4['model']),_0x5353d0='suggestion:insertion:'+uid()+':$aiSuggestion';_0x52c337['markers']['set'](_0x5353d0,_0x4795ae);break;}case'split':{_0x4ac762['batch']['addOperation'](_0x3b32d2),_0x506ca4['model']['applyOperation'](_0x3b32d2);const _0x150d5b=_0x3b32d2['splitPosition'],_0x1b7e14=_0x3b32d2['moveTargetPosition'],_0xe28be9=_0x506ca4['model']['createRange'](_0x150d5b,_0x1b7e14),_0x462471='suggestion:insertion:'+uid()+':$aiSuggestion';_0x52c337['markers']['set'](_0x462471,_0xe28be9);break;}case'move':{_0x4ac762['batch']['addOperation'](_0x3b32d2),_0x506ca4['model']['applyOperation'](_0x3b32d2),_0x3bdeeb[_0x4aa53a-0x1]&&'insert'==_0x3bdeeb[_0x4aa53a-0x1]['type']&&transformMarkers(_0x52c337,_0x3b32d2);const _0x278cee=_0x3b32d2['getMovedRangeStart'](),_0x4c4ad4=_0x3b32d2['howMany'];for(let _0x127685=0x0;_0x127685<_0x4c4ad4;_0x127685++){const _0x31fafe=_0x278cee['getShiftedBy'](_0x127685)['nodeAfter'];_0x221485['add'](_0x31fafe);}break;}case'remove':{const _0x3f94af=_0x3b32d2['sourcePosition'],_0xc0b799=_0x3b32d2['howMany'],_0x330b16=new _DetachOperation(_0x3f94af,_0xc0b799);_0x4ac762['batch']['addOperation'](_0x330b16),_0x506ca4['model']['applyOperation'](_0x330b16);break;}}}for(const _0x2646ee of _0x221485){const _0xba3a40=_0x506ca4['model']['createRangeOn'](_0x2646ee),_0x4fcb8f='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x52c337['markers']['set'](_0x4fcb8f,fixElementSuggestionRange(_0xba3a40,_0x506ca4['model']));}});}function transformMarkers(_0x18cd38,_0x287fb6){for(const [_0x5c805e,_0x46c689]of _0x18cd38['markers']){const _0x3d345b=ModelRange['_createFromRanges'](_0x46c689['getTransformedByOperation'](_0x287fb6));_0x18cd38['markers']['set'](_0x5c805e,_0x3d345b);}}function getMinimalSelection(_0x1b5400,_0x37668f,_0x2186af){const _0x2515b2=_0x1b5400['plugins']['get']('DocumentCompare');let _0x389cbe=_0x1b5400['model']['createPositionAt'](_0x2186af,Number['POSITIVE_INFINITY']),_0x1dc5b0=_0x1b5400['model']['createPositionAt'](_0x2186af,0x0);for(const _0xc98d37 of _0x37668f){let _0x4be075,_0x17f362;if(_0x2515b2['isMarkedRemoveOperation'](_0xc98d37))_0x4be075=_0xc98d37['newRange']['start'],_0x17f362=_0xc98d37['newRange']['end'];else switch(_0x389cbe=_0x389cbe['getTransformedByOperation'](_0xc98d37),_0x1dc5b0=_0x1dc5b0['getTransformedByOperation'](_0xc98d37),_0xc98d37['type']){case'rename':_0x4be075=_0xc98d37['position'],_0x17f362=_0x4be075['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x4be075=_0xc98d37['range']['start'],_0x17f362=_0xc98d37['range']['end'];break;case'insert':_0x4be075=_0xc98d37['position'],_0x17f362=_0x4be075['getShiftedBy'](_0xc98d37['howMany']);break;case'split':_0x4be075=_0xc98d37['splitPosition'],_0x17f362=_0xc98d37['moveTargetPosition'];break;case'merge':{const _0x2f6a5b=_0xc98d37['targetPosition']['path']['slice'](0x0,-0x1);_0x4be075=_0x1b5400['model']['createPositionFromPath'](_0x2186af,_0x2f6a5b),_0x17f362=_0x4be075['getShiftedBy'](0x1);break;}case'move':case'remove':{const _0x229fe1=_0xc98d37['howMany'],_0x1cfce1=_0xc98d37['sourcePosition']['_getTransformedByInsertion'](_0xc98d37['targetPosition'],_0x229fe1),_0x360341=_0xc98d37['getMovedRangeStart']();'remove'==_0xc98d37['type']?(_0x4be075=_0x1cfce1,_0x17f362=_0x1cfce1):(_0x4be075=_0x360341,_0x17f362=_0x360341['getShiftedBy'](_0x229fe1));break;}}_0x4be075&&_0x4be075['isBefore'](_0x389cbe)&&(_0x389cbe=_0x4be075['clone'](),_0x389cbe['stickiness']='toNone'),_0x17f362&&_0x17f362['isAfter'](_0x1dc5b0)&&(_0x1dc5b0=_0x17f362['clone'](),_0x1dc5b0['stickiness']='toNone');}return _0x1b5400['model']['createSelection'](_0x1b5400['model']['createRange'](_0x389cbe,_0x1dc5b0));}function expandSelectionWithContext(_0x4b530,_0x54fbfc){expandSelection(_0x4b530,_0x54fbfc,'forward');const _0x45b9c3=_0x54fbfc['getFirstRange']();_0x54fbfc['setTo']([]),_0x54fbfc['setTo'](_0x45b9c3,{'backward':!0x0}),expandSelection(_0x4b530,_0x54fbfc,'backward');}function expandSelection(_0x46388d,_0x412f5d,_0x1c0bbf){let _0x38bd1b=0x14;for(;_0x38bd1b;){_0x46388d['modifySelection'](_0x412f5d,{'unit':'word','direction':_0x1c0bbf}),_0x38bd1b--;const _0x3458a1=_0x412f5d['focus']['forward'==_0x1c0bbf?'nodeBefore':'nodeAfter'];if(_0x3458a1&&_0x3458a1['is']('element')&&_0x46388d['schema']['isBlock'](_0x3458a1)&&_0x46388d['schema']['isObject'](_0x3458a1))break;}}function shrinkFragmentToSelection(_0x56d78b,_0x11d7b3){const _0x501f72=_0x11d7b3['getFirstRange']()['start'];let _0x3a2461=_0x11d7b3['getFirstRange']()['end'];const _0x376557=_0x501f72['root'];(_0x3a2461['textNode']||_0x3a2461['nodeAfter']&&_0x3a2461['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x3a2461,'...'),_0x3a2461=_0x3a2461['getShiftedBy'](0x3)),(_0x501f72['textNode']||_0x501f72['nodeBefore']&&_0x501f72['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0x501f72,'...'),_transformMarkersByInsertion(_0x376557,_0x501f72,0x3),_0x501f72['parent']==_0x3a2461['parent']&&(_0x3a2461=_0x3a2461['getShiftedBy'](0x3)));const _0x5cfbaa=_0x56d78b['createRange'](_0x56d78b['createPositionAt'](_0x376557,0x0),_0x501f72),_0x1bab9b=_0x56d78b['createRange'](_0x3a2461,_0x56d78b['createPositionAt'](_0x376557,'end')),_0x4fb678=[..._0x5cfbaa['getMinimalFlatRanges'](),..._0x1bab9b['getMinimalFlatRanges']()];_0x4fb678['reverse']();for(const _0x1332a6 of _0x4fb678)_removeFromModelNodeList(_0x1332a6),_transformMarkersByDeletion(_0x376557,_0x1332a6);}function _transformMarkersByDeletion(_0x476054,_0x43b08c){for(const [_0x2b0807,_0x7bd910]of _0x476054['markers']){const _0x3f4ceb=_0x7bd910['_getTransformedByDeletion'](_0x43b08c['start'],_0x43b08c['end']['offset']-_0x43b08c['start']['offset']);null!=_0x3f4ceb?_0x476054['markers']['set'](_0x2b0807,_0x3f4ceb):_0x476054['markers']['delete'](_0x2b0807);}}function _transformMarkersByInsertion(_0x21654b,_0x142e7c,_0x5c8d32){for(let [_0x12c056,_0xe70da0]of _0x21654b['markers']){const _0xc660cd=_0xe70da0['_getTransformedByInsertion'](_0x142e7c,_0x5c8d32,!0x1);_0xe70da0=_0xc660cd[0x0],_0x21654b['markers']['set'](_0x12c056,_0xe70da0);}}class AIReply extends ObservableMixin(){['id'];['interactionId'];['type'];['sources']=[];['parsedContent']=new Document$1([]);['parsedMergedContent']=new Document$1([]);['changeGroups']=[];['areActionsDisabled']=!0x1;['isFromHistory']=!0x1;['documentContextContent'];['documentId'];['dataIdDocumentSources'];['newNodeAnchorIds']=new Map();['aiResponseParser'];['aiResponseApplier'];['locale'];['cachedSuggestionContentParts']={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3b073c,content:_0xc4d73b='',isDone:_0x5728b4=!0x1,isComplete:_0x3ebdf9,interactionId:_0x58235e,areActionsDisabled:_0x160204,isFromHistory:_0x59ab8a=!0x1,documentContextContent:_0x392f56,dataIdDocumentSources:_0x473fe9,documentId:_0x2f3a92,locale:_0x3c4950,id:_0x56a491}){super(),this['id']=_0x56a491||uid(),this['interactionId']=_0x58235e,this['type']=_0x3b073c,this['areActionsDisabled']=!!_0x160204,this['locale']=_0x3c4950,this['dataIdDocumentSources']=_0x473fe9,this['documentId']=_0x2f3a92,this['isFromHistory']=_0x59ab8a,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0x392f56||''),this['set']('isDone',_0x5728b4),this['set']('isComplete',_0x3ebdf9??_0x5728b4),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0xc4d73b);}['appendContent'](_0x40aef5){this['set']('content',this['content']+_0x40aef5);}['done'](_0x78eb07=!0x0){this['isComplete']=_0x78eb07,this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0x434e39,_0x56f974){this['changeGroups'][_0x434e39]['state']=_0x56f974,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x434e39,'state':_0x56f974});}['getContentParts']({showDiff:_0x512a40,groupIndex:_0x3294fa,editor:_0x5ec78f}){const _0x5d13b6=this['_getCachedContentParts'](_0x512a40,_0x3294fa);if(_0x5d13b6)return _0x5d13b6;let _0x58f3b7=[];if(void 0x0===_0x3294fa)_0x58f3b7=this['changeGroups'];else{const _0x583e21=this['changeGroups']['find'](({index:_0x577306})=>_0x577306===_0x3294fa);if(!_0x583e21)throw new CKEditorError('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0x3294fa});_0x58f3b7=[_0x583e21];}const _0x509b18=getSuggestionPartsFromReply({'editor':_0x5ec78f,'showDiff':_0x512a40,'changeGroups':_0x58f3b7,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x512a40,_0x509b18),_0x509b18;}['_getCachedContentParts'](_0x42c4f7,_0x4d704b){const _0x219eab=_0x42c4f7?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0x219eab]['length'])return null;const _0x18731c=this['cachedSuggestionContentParts'][_0x219eab];if(void 0x0===_0x4d704b)return _0x18731c['length']>0x0&&_0x18731c['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0x42c4f7,null),null):cloneDeep(_0x18731c);{const _0x1d8639=_0x18731c['find'](({index:_0xb5c20c})=>_0xb5c20c===_0x4d704b);if(_0x1d8639)return[cloneDeep(_0x1d8639)];}return null;}['_setCachedContentParts'](_0x252ca8,_0x350805){const _0x52eeb3=_0x252ca8?'withDiff':'withoutDiff';_0x350805?_0x350805['forEach'](_0x1470f7=>{const _0xa4c613=this['cachedSuggestionContentParts'][_0x52eeb3],_0x497980=_0xa4c613['find'](({index:_0x20cfc7})=>_0x20cfc7===_0x1470f7['index']);if(_0x497980){const _0x393331=_0xa4c613['indexOf'](_0x497980);_0xa4c613['splice'](_0x393331,0x1,_0x1470f7);}else _0xa4c613['push'](_0x1470f7);}):this['cachedSuggestionContentParts'][_0x52eeb3]['length']=0x0;}['onContentChange'](){if('modification'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0xbc6a57=this['changeGroups'];this['updateChangeGroups']();const _0x5cb7fd=this['_getDifferentChangeGroups'](_0xbc6a57,this['changeGroups']);(_0x5cb7fd['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x5cb7fd),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0x482fbd,_0x4190c0){const _0x32cc0f=[];for(const _0x3b16e0 of _0x4190c0){const _0x427ac6=_0x482fbd[_0x3b16e0['index']];_0x427ac6?_0x427ac6['changes']['length']!==_0x3b16e0['changes']['length']?_0x32cc0f['push'](_0x3b16e0):_0x427ac6['changes']['forEach']((_0x4798de,_0x57c5f7)=>{const _0x4d7434=_0x3b16e0['changes'][_0x57c5f7];_0x4798de['id']!==_0x4d7434['id']&&_0x32cc0f['push'](_0x3b16e0);}):_0x32cc0f['push'](_0x3b16e0);}return _0x32cc0f;}['updateChangeGroups'](){const _0x432ff9=this['locale']?new Element$3('p',{},[new Element$3('span',{'style':'color:\x20#808080;\x20font-style:\x20italic'},[new Text$2(getTranslation$i(this['locale'],'AI_SUGGESTION_CONTENT_PART_REMOVED'))])]):void 0x0,_0x387692=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone']||!this['isComplete'],'replaceRemovedWith':_0x432ff9,'cutAfterLastChange':!this['isDone']||!this['isComplete']});if(!_0x387692['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0x387692['parsedContent'],this['newNodeAnchorIds']=_0x387692['newAnchorIds'];let _0x2c7661=[];if(findAll(_0x3b4a3a=>{const _0x1cfa25=getAttribute(_0x3b4a3a,'data-id');if(!_0x1cfa25||!_0x5b3739(_0x1cfa25))return!0x1;const _0x52f48c=[_0x3b4a3a,...getParents(_0x3b4a3a)]['at'](-0x2);if(_0x3b4a3a!=_0x52f48c){const _0x21810a=getAttribute(_0x52f48c,'data-id');_0x5b3739(_0x21810a)||(_0x2c7661['push']({'node':_0x52f48c,'id':_0x21810a,'type':'modified'}),_0x387692['modifiedNodeIds']['push'](_0x21810a));}else _0x387692['modifiedNodeIds']['includes'](_0x1cfa25)?_0x2c7661['push']({'node':_0x3b4a3a,'type':'modified','id':_0x1cfa25}):_0x387692['newNodeIds']['includes'](_0x1cfa25)?_0x2c7661['push']({'node':_0x3b4a3a,'type':'new','id':_0x1cfa25,'anchorId':getAttribute(_0x3b4a3a['previousSibling'],'data-id')}):_0x2c7661['push']({'node':_0x3b4a3a,'type':'removed','id':_0x1cfa25});return!0x0;},this['parsedMergedContent']),_0x2c7661=_0x2c7661['filter'](({node:_0x148bd8})=>[...getParents(_0x148bd8),_0x148bd8]['every'](_0x385dbc=>!getAttribute(_0x385dbc,'data-unstable'))),0x0==_0x2c7661['length'])return;const _0x2a6683=[[_0x2c7661[0x0]]];for(let _0x271764=0x1;_0x271764<_0x2c7661['length'];_0x271764++){const _0x5c8c02=_0x2a6683[_0x2a6683['length']-0x1],_0x40b601=_0x5c8c02[_0x5c8c02['length']-0x1];_0x2c7661[_0x271764]['node']['previousSibling']==_0x40b601['node']&&'modified'!=_0x2c7661[_0x271764]['type']&&'modified'!=_0x40b601['type']&&this['_isSameDocument'](_0x2c7661[_0x271764]['node'],_0x40b601['node'])?_0x5c8c02['push'](_0x2c7661[_0x271764]):_0x2a6683['push']([_0x2c7661[_0x271764]]);}for(const _0x32331e of _0x2a6683){const _0x36ff95=_0x32331e[0x0],_0x4252c8=_0x32331e[_0x32331e['length']-0x1],_0x47eafb=_0x137077(_0x36ff95['node']['previousSibling']);_0x47eafb&&this['_isSameDocument'](_0x47eafb['node'],_0x36ff95['node'])&&_0x32331e['unshift'](_0x47eafb);const _0xf307c2=_0x137077(_0x4252c8['node']['nextSibling']);_0xf307c2&&this['_isSameDocument'](_0xf307c2['node'],_0x4252c8['node'])&&_0x32331e['push'](_0xf307c2);}function _0x5b3739(_0x5a048d){return _0x387692['modifiedNodeIds']['includes'](_0x5a048d)||_0x387692['newNodeIds']['includes'](_0x5a048d)||_0x387692['removedNodeIds']['includes'](_0x5a048d);}function _0x137077(_0x2fba14){if(_0x2fba14&&getAttribute(_0x2fba14,'data-id')&&!getAttribute(_0x2fba14,'data-unstable')){const _0x5062b5=getAttribute(_0x2fba14,'data-id');if(!_0x5b3739(_0x5062b5))return{'node':_0x2fba14,'type':'context','id':_0x5062b5};}return null;}this['changeGroups']=_0x2a6683['map']((_0x1c242d,_0x116eab)=>({'changes':_0x1c242d,'state':'pending','index':_0x116eab}));}['_isSameDocument'](_0x3d78b0,_0x5ca582){if(!this['dataIdDocumentSources']?.['size'])return!0x0;const _0x5d1f0d=this['_resolveDocumentSource'](_0x3d78b0),_0x9daab=this['_resolveDocumentSource'](_0x5ca582);return!_0x5d1f0d||!_0x9daab||_0x5d1f0d['editor']===_0x9daab['editor']&&_0x5d1f0d['rootName']===_0x9daab['rootName'];}['_resolveDocumentSource'](_0x197bcf){if(!_0x197bcf||!this['dataIdDocumentSources'])return;const _0x119bd4=getAttribute(_0x197bcf,'data-id');if(_0x119bd4){const _0x198d0b=this['dataIdDocumentSources']['get'](_0x119bd4);if(_0x198d0b)return _0x198d0b;const _0x40da72=this['newNodeAnchorIds']['get'](_0x119bd4),_0x62baa8=_0x40da72?this['dataIdDocumentSources']['get'](_0x40da72):void 0x0;if(_0x62baa8)return _0x62baa8;}for(let _0x15e65e=_0x197bcf['previousSibling'];_0x15e65e;_0x15e65e=_0x15e65e['previousSibling']){const _0x8c5d57=getAttribute(_0x15e65e,'data-id'),_0x1c2bb3=_0x8c5d57?this['dataIdDocumentSources']['get'](_0x8c5d57):void 0x0;if(_0x1c2bb3)return _0x1c2bb3;}for(let _0x1e7097=_0x197bcf['nextSibling'];_0x1e7097;_0x1e7097=_0x1e7097['nextSibling']){const _0x4d1c0e=getAttribute(_0x1e7097,'data-id'),_0x48403c=_0x4d1c0e?this['dataIdDocumentSources']['get'](_0x4d1c0e):void 0x0;if(_0x48403c)return _0x48403c;}}}const AI_MODEL_EVENT_NAMES=['interactionCreated','interactionStarted','interactionStopped','interactionFinished','interactionDestroyed','replyCreated','replyContentUpdated','replyChangeGroupStateUpdated','setConversationTitle','webSearchStarted','webSearchFinished','reasoningStarted','reasoningFinished','toolDataReceived','error'];class AIInteraction extends EmitterMixin(){['id'];['replies']=[];['currentReply'];['messageId'];['actionCallId'];['currentRequest'];['connector'];['isStopped']=!0x1;['isDestroyed']=!0x1;['locale'];['_isReasoning']=!0x1;['_isWebSearching']=!0x1;constructor({connector:_0x391017,locale:_0x34b7cd}){super(),this['id']=uid(),this['connector']=_0x391017,this['isStopped']=!0x0,this['locale']=_0x34b7cd;}async['start'](){const _0x1e164a=[];let _0x2426a3,_0x4b93e9,_0x2c33e2,_0x5c1fdf=!0x1;this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0x27ae98=await this['currentRequest']['getStream']();for await(const _0x2167d0 of _0x27ae98){if(this['isStopped'])return;if('error'==_0x2167d0['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});switch(_0x2167d0['event']){case'message-metadata':this['messageId']=_0x2167d0['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0x2167d0['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0x2167d0['data']['conversationTitle'],!0x0);break;case'source':_0x1e164a['push'](_0x2167d0['data']['source']);break;case'web-search':this['_isWebSearching']||(this['_isWebSearching']=!0x0,this['fire']('webSearchStarted',this));break;case'reasoning':this['_isReasoning']||(this['_isReasoning']=!0x0,this['fire']('reasoningStarted',this));break;case'modification-delta':case'text-delta':this['resetReasoningState'](),this['resetWebSearchState'](),_0x2426a3='modification-delta'==_0x2167d0['event']?'modification':'text',_0x4b93e9='modification-delta'==_0x2167d0['event']?_0x2167d0['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x2426a3&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']?'modification-delta'==_0x2167d0['event']&&(this['currentReply']['documentId']=_0x2167d0['data']['documentId']):(this['currentReply']=this['createReply']({'type':_0x2426a3,'interactionId':this['id'],'id':_0x4b93e9,...'modification-delta'==_0x2167d0['event']&&{'documentId':_0x2167d0['data']['documentId']}}),'modification'==_0x2426a3&&(this['currentReply']['sources']=_0x1e164a['splice'](0x0))),this['currentReply']['appendContent'](_0x2167d0['data']['textDelta']);break;case'mcp-tool-result':_0x2c33e2=JSON['parse'](_0x2167d0['data']['result']),this['_handleToolResultData']({'toolName':_0x2167d0['data']['toolName'],'data':_0x2c33e2['data'],'attributes':_0x2c33e2['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0x2167d0['data']['toolName'],'data':_0x2167d0['data']['data']});}}_0x5c1fdf=!0x0;}finally{this['isStopped']||(this['currentReply']&&_0x1e164a['length']>0x0&&(this['currentReply']['sources']=_0x1e164a['splice'](0x0)),this['_finalizeInteraction'](_0x5c1fdf),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0x7c7789){return this['replies']['find'](_0x1535d4=>_0x1535d4['id']===_0x7c7789);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x4c81cf=>_0x4c81cf['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0xe3dd52){const _0x174072=new AIReply({'locale':this['locale'],'documentContextContent':this['getDocumentContext']()?.['content'],'dataIdDocumentSources':this['getDocumentContext']()?.['dataIdDocumentSources'],..._0xe3dd52});return this['replies']['push'](_0x174072),_0x174072['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x174072),_0x174072;}['setConversationTitle'](_0x5b8d82,_0x1d07da=!0x1){this['fire']('setConversationTitle',_0x5b8d82,_0x1d07da);}['resetWebSearchState'](){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}['resetReasoningState'](){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}['_handleToolResultData'](_0x394653){this['fire']('toolDataReceived',{'type':'result','toolName':_0x394653['toolName'],'data':structuredClone(_0x394653['data']||{}),'attributes':structuredClone(_0x394653['attributes']||{})},this);}['_handleToolNotificationData'](_0x74f8cc){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x74f8cc['toolName'],'data':structuredClone(_0x74f8cc['data'])},this);}['_finalizeInteraction'](_0x541afe=!0x1){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](_0x541afe),this['currentRequest']=this['currentReply']=void 0x0;}}const errorsMap=new Map([['usage-limits-exceeded','ai-usage-limits-exceeded'],['rate-limits-exceeded','ai-rate-limits-exceeded'],['invalid-content-type','ai-invalid-content-type'],['invalid-request-data','ai-chat-invalid-request'],['model-already-set','ai-chat-model-already-set'],['model-not-found','ai-chat-model-not-found'],['unsafe-content-detected','ai-chat-unsafe-content-detected'],['unsupported-content-type','ai-chat-unsupported-content-type'],['content-too-large','ai-chat-content-too-large'],['unsupported-file-type','ai-chat-context-unsupported-file-type'],['file-too-large','ai-chat-context-file-too-large'],['file-too-many-pages','ai-chat-context-file-too-many-pages'],['form-data-size-limits-exceeded','ai-chat-context-form-data-size-limits-exceeded']]),AI_CONTEXT_MODEL_EVENT_NAMES=['contextItemAdded','contextItemRemoved','contextItemLoadingEnded','contextSent','error','addContextOptionsChanged','sourceResourcesLoaded','resourceStateChanged','uploadProgressChanged'];class AIChatContext extends ObservableMixin(){['_connector'];['_config'];['_ownerId'];constructor({connector:_0x7a4d12,config:_0x28779c,ownerId:_0x2a14d5}){super(),this['_connector']=_0x7a4d12,this['_config']=_0x28779c,this['_ownerId']=_0x2a14d5;}['init'](){this['_pendingContextItems']=new Map(),this['_conversationContextItems']=new Map(),this['_ongoingUploads']=new Map(),this['_ongoingUploadOperations']=new Map(),this['_documentSources']=new Map(),this['_dataIdToSource']=new Map(),this['_setAddContextOptionsDefaultState']();}['_getDocumentSource'](_0x2187a4){if(_0x2187a4)return this['_documentSources']['get'](_0x2187a4);}['getSourceByDataId'](_0x266081){if(_0x266081)return this['_dataIdToSource']['get'](_0x266081);}['_getDocumentContextSlice'](_0x7c7bac){const _0x3b3aa7=this['_getDocumentSource'](_0x7c7bac);if(_0x3b3aa7)return{'editor':_0x3b3aa7['editor'],'rootName':_0x3b3aa7['rootName'],'html':_0x3b3aa7['content'],'version':_0x3b3aa7['version']};}['getDocumentContextSliceByDataId'](_0x521c02){const _0x151574=this['getSourceByDataId'](_0x521c02);return _0x151574?this['_getDocumentContextSlice'](_0x151574['documentId']):void 0x0;}['getPendingContextItems'](){return this['_pendingContextItems'];}async['populateFromMessage'](_0x1bba66){const _0x51eddd=await this['_createContextItemFromContent'](_0x1bba66);return this['_addToConversationContextItem'](_0x51eddd),'current-document'===_0x51eddd['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x51eddd;}async['populateDocumentsFromMessage'](_0x14956b,_0x2ddcd5){const _0x98c0d1=_0x14956b['filter'](_0x3c25e7=>'document'===_0x3c25e7['type']);if(0x0===_0x98c0d1['length'])return{'hasUnmatched':!0x1};if(0x1===_0x98c0d1['length'])return{'contextItem':await this['populateFromMessage'](_0x98c0d1[0x0]),'hasUnmatched':!0x1};const _0x5d2918=_0x98c0d1['map'](_0x26f3fe=>_0x26f3fe['id']),_0xca9f0a=await this['_connector']['fetchDocuments'](this['_ownerId'],_0x5d2918)['getDocuments'](),_0x3e1a96=new Map(_0xca9f0a['map'](_0x1e10be=>[_0x1e10be['id'],_0x1e10be]));this['_documentSources']['clear'](),this['_dataIdToSource']['clear']();const _0x46f3bb=[];let _0x2d2175=!0x1;for(const _0x593022 of _0x98c0d1){const _0x16db2d=_0x3e1a96['get'](_0x593022['id']);if(!_0x16db2d)continue;const _0x1c86fa=this['_matchDocumentToRoot'](_0x16db2d,_0x2ddcd5),_0x1005eb=_0x2ddcd5[0x0]&&this['_getFirstRoot'](_0x2ddcd5[0x0]);_0x1c86fa||(_0x2d2175=!0x0);const _0x3ca977=_0x1c86fa?.['editor']??_0x1005eb?.['editor'],_0x4010cf=_0x1c86fa?.['rootName']??_0x1005eb?.['rootName'];if(_0x3ca977&&_0x4010cf){const _0x4d56e9={'editor':_0x3ca977,'rootName':_0x4010cf,'content':_0x16db2d['content'],'version':_0x16db2d['attributes']?.['version']??0x0,'name':_0x16db2d['name'],'description':_0x16db2d['description']};this['_documentSources']['set'](_0x16db2d['id'],_0x4d56e9);const _0x480e1d=parse$2(_0x16db2d['content']);for(const _0x3df8ec of findAll(_0x63b6ab=>!!getAttribute(_0x63b6ab,'data-id'),_0x480e1d)){const _0x1f864e=getAttribute(_0x3df8ec,'data-id');_0x1f864e&&this['_dataIdToSource']['set'](_0x1f864e,{..._0x4d56e9,'documentId':_0x16db2d['id']});}}_0x46f3bb['push']({'id':_0x16db2d['id'],'content':_0x16db2d['content'],'version':_0x16db2d['attributes']?.['version']??0x0,'sessionId':_0x16db2d['attributes']?.['sessionId']??null,'selection':[]});}const _0x5b7b81={'id':'current-document','uiId':'current-document','label':'Current\x20document','type':'document','hidden':this['_conversationContextItems']['has']('current-document'),'documents':_0x46f3bb,'dataIdDocumentSources':new Map(this['_dataIdToSource'])};return this['_addToConversationContextItem'](_0x5b7b81),this['_toggleAddCurrentDocumentOptionVisibility'](),{'contextItem':_0x5b7b81,'hasUnmatched':_0x2d2175};}['_matchDocumentToRoot'](_0x5df248,_0x1c4eb7){const _0x3ed68a=_0x5df248['attributes']?.['channelId'],_0x1d519f=_0x5df248['attributes']?.['rootName'];if(_0x3ed68a&&_0x1d519f){for(const _0x16c668 of _0x1c4eb7)if(_0x16c668['config']['get']('collaboration.channelId')===_0x3ed68a){for(const _0x202c82 of _0x16c668['model']['document']['getRoots']())if('$graveyard'!==_0x202c82['rootName']&&_0x202c82['rootName']===_0x1d519f)return{'editor':_0x16c668,'rootName':_0x202c82['rootName']};}}}['_getFirstRoot'](_0x3eb726){for(const _0x562e0a of _0x3eb726['model']['document']['getRoots']())if('$graveyard'!==_0x562e0a['rootName'])return{'editor':_0x3eb726,'rootName':_0x562e0a['rootName']};}async['_createContextItemFromContent'](_0x2023cc){if('document'===_0x2023cc['type']){const _0x47ff20=await this['_connector']['fetchDocument'](this['_ownerId'],_0x2023cc['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x2023cc['type'],'content':_0x47ff20['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x47ff20['attributes']?.['version'],'sessionId':_0x47ff20['attributes']?.['sessionId']};}if('mcp-tool-context'===_0x2023cc['type'])return{'id':_0x2023cc['id'],'uiId':_0x2023cc['id'],'label':_0x2023cc['data']?.['label']||_0x2023cc['id'],'type':'mcp-tool-context','mcpServerName':_0x2023cc['mcpServerName'],'toolName':_0x2023cc['toolName'],'data':_0x2023cc['data']||{}};return{'id':_0x2023cc['id'],'uiId':_0x2023cc['id'],'label':_0x2023cc['attributes']?.['label']||_0x2023cc['name']||_0x2023cc['url']||_0x2023cc['id'],'type':_0x2023cc['type'],..._0x2023cc?.['attributes']?.['resourceId']?{'resourceId':_0x2023cc['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0x4f30be){const _0x530703=this['_pendingContextItems']['get'](_0x4f30be);_0x530703?.['isReadOnly']||this['_removeContextItem'](_0x4f30be);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x3c4a4e of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x3c4a4e['uiId']);const _0x26cfcf=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x26cfcf&&this['_addContextItem']({..._0x26cfcf,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x143450){for(const _0x426844 of _0x143450['values']())this['_addToConversationContextItem'](_0x426844);this['clearPendingContextItems'](),this['fire']('contextSent',{'contextItems':Array['from'](this['getSentContextItems']()['values']())});}['isCurrentDocumentInContext'](){return this['_pendingContextItems']['has']('current-document');}['isSelectionInContext'](){return this['_pendingContextItems']['has']('selection');}['isCurrentDocumentInConversation'](){return this['_conversationContextItems']['has']('current-document');}static['mapContextItemsToRequestData'](_0x431d90){return Array['from'](_0x431d90['values']())['flatMap'](_0x11ad8e=>this['_mapContextItemToRequestData'](_0x11ad8e));}async['addFilesToContext'](_0x7d2aa,_0x52eb21,_0x4c6418='file'){const _0x115401='files-'+uid();this['_startUploadOperation'](_0x115401);try{await Promise['all'](_0x7d2aa['map'](async _0x2c8c90=>{const _0x3e0b58='file-'+uid(),_0x2470ca=escape(_0x2c8c90['name']);try{this['_addContextItem']({'type':_0x4c6418,'label':_0x52eb21?.['label']||_0x2470ca,'uiId':_0x3e0b58,'resourceId':_0x52eb21?.['resourceId']},!0x0);const _0x298fbd=this['_connector']['uploadFile'](this['_ownerId'],_0x2c8c90,_0x52eb21);this['_ongoingUploads']['set'](_0x3e0b58,_0x298fbd['abortController']);const {id:_0x4d533f}=await _0x298fbd['getId']();this['_ongoingUploads']['delete'](_0x3e0b58),this['_finishContextItemLoading']({'type':_0x4c6418,'id':_0x4d533f,'label':_0x52eb21?.['label']||_0x2470ca,'uiId':_0x3e0b58,'resourceId':_0x52eb21?.['resourceId']},!0x1);}catch(_0x16dd51){this['_ongoingUploads']['delete'](_0x3e0b58);if(!(_0x16dd51 instanceof CKEditorError&&_0x16dd51['message']['startsWith']('ai-request-aborted'))){const _0x2b0d6a=errorsMap['get'](_0x16dd51['code'])||'ai-chat-file-upload-failed',_0xe1947c=new CKEditorError(_0x2b0d6a,null,{'fileName':_0x2470ca,..._0x16dd51});_0xe1947c['stack']=_0x16dd51['stack'],this['fire']('error',{'error':_0xe1947c});}this['_removeContextItem'](_0x3e0b58);}}));}finally{this['_finishUploadOperation'](_0x115401);}}['addCurrentDocumentToContext'](_0x36f864){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0x32b368={'type':'document','uiId':'current-document','label':_0x36f864,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0x32b368);}async['updateCurrentDocument'](_0x37418d,_0x37c271,_0x17473f,_0x211a3b,_0x136dc0,_0x2da4bd){const _0x37a498=this['_pendingContextItems']['get']('current-document');if(_0x37a498&&_0x37418d){_0x37a498['selection']=_0x2da4bd?_0x2da4bd['map'](_0x530c63=>({'start':_0x530c63['start'],'end':_0x530c63['end']})):[];try{if(_0x37a498['version']===_0x37c271)return;const {id:_0x2f7845}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x37418d,{'version':_0x37c271,'sessionId':_0x17473f,'channelId':_0x211a3b,'rootName':_0x136dc0})['getId']();_0x37a498['id']=_0x2f7845,_0x37a498['content']=_0x37418d,_0x37a498['version']=_0x37c271,_0x37a498['sessionId']=_0x17473f;}catch(_0x509ec1){const _0x522b02=new CKEditorError('ai-chat-document-upload-failed',null);_0x522b02['stack']=_0x509ec1['stack'],this['fire']('error',{'error':_0x522b02});}}}async['updateCurrentDocuments'](_0x42b9ba){const _0x471762=this['_pendingContextItems']['get']('current-document');if(!_0x471762||!_0x42b9ba['length']||_0x42b9ba['every'](_0x51c96d=>!_0x51c96d['content']))return;_0x42b9ba['length']>0x1&&_0x42b9ba['some'](_0x2ad348=>!_0x2ad348['description'])&&logWarning('ai-chat-documents-missing-description');const _0xf4457=_0x2ad642=>_0x2ad642?_0x2ad642['map'](_0x1f2eaf=>({'start':_0x1f2eaf['start'],'end':_0x1f2eaf['end']})):[],_0x5eeecf=_0x471762['documents']??[],_0x45e988=_0x5eeecf['length']===_0x42b9ba['length']&&_0x42b9ba['every']((_0x5a7408,_0x28f195)=>_0x5eeecf[_0x28f195]?.['version']===_0x5a7408['version']);if(_0x45e988)_0x471762['documents']=_0x5eeecf['map']((_0x587255,_0x45d89a)=>({..._0x587255,'selection':_0xf4457(_0x42b9ba[_0x45d89a]['selections'])}));else try{const _0x17f442=await this['_connector']['uploadDocuments'](this['_ownerId'],_0x42b9ba)['getIds']();_0x471762['documents']=_0x42b9ba['map']((_0x39f037,_0x546e21)=>({'id':_0x17f442[_0x546e21]?.['id'],'content':_0x39f037['content'],'version':_0x39f037['version'],'sessionId':_0x39f037['sessionId'],'selection':_0xf4457(_0x39f037['selections'])})),this['_documentSources']['clear'](),this['_dataIdToSource']['clear']();for(let _0x5d4853=0x0;_0x5d4853<_0x42b9ba['length'];_0x5d4853++){const _0x977291=_0x17f442[_0x5d4853]?.['id'],_0xc61892=_0x42b9ba[_0x5d4853];if(!_0x977291)continue;const _0x355121={'editor':_0xc61892['editor'],'rootName':_0xc61892['rootName'],'content':_0xc61892['content'],'version':_0xc61892['version'],'name':_0xc61892['name'],'description':_0xc61892['description']};this['_documentSources']['set'](_0x977291,_0x355121);const _0x31fd99=parse$2(_0xc61892['content']);for(const _0x38bbaf of findAll(_0x58c5f9=>!!getAttribute(_0x58c5f9,'data-id'),_0x31fd99)){const _0x3e00e7=getAttribute(_0x38bbaf,'data-id');_0x3e00e7&&this['_dataIdToSource']['set'](_0x3e00e7,{..._0x355121,'documentId':_0x977291});}}_0x471762['dataIdDocumentSources']=new Map(this['_dataIdToSource']);}catch(_0xf9a48a){const _0x4180ca=new CKEditorError('ai-chat-document-upload-failed',null);_0x4180ca['stack']=_0xf9a48a['stack'],this['fire']('error',{'error':_0x4180ca});}}['addSelectionToContext'](_0x1e19c5){this['_addContextItem']({'type':'selection','label':_0x1e19c5,'uiId':'selection','content':_0x1e19c5});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x24675e,_0x574f7d){const _0x132ef1='url-'+uid();this['_startUploadOperation'](_0x132ef1);const _0x49cd11='url-'+uid();try{this['_addContextItem']({'type':'web-resource','label':_0x574f7d?.['label']||_0x24675e,'uiId':_0x49cd11,'resourceId':_0x574f7d?.['resourceId']},!0x0);const _0x26916b=this['_connector']['uploadUrl'](this['_ownerId'],_0x24675e,_0x574f7d);this['_ongoingUploads']['set'](_0x49cd11,_0x26916b['abortController']);const {id:_0x381d2c}=await _0x26916b['getId']();this['_ongoingUploads']['delete'](_0x49cd11),this['_finishContextItemLoading']({'type':'web-resource','id':_0x381d2c,'label':_0x574f7d?.['label']||_0x24675e,'uiId':_0x49cd11,'resourceId':_0x574f7d?.['resourceId']},!0x1);}catch(_0x4020bc){this['_ongoingUploads']['delete'](_0x49cd11),(_0x4020bc['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x24675e,'originalError':_0x4020bc}),'url':_0x24675e}),this['_removeContextItem'](_0x49cd11));}finally{this['_finishUploadOperation'](_0x132ef1);}}['addToolItemToContext'](_0x35b7eb){_0x35b7eb['id']=_0x35b7eb['id']??uid()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x35b7eb['uiId'],_0x35b7eb),this['fire']('contextItemAdded',{'contextItem':_0x35b7eb,'isLoading':!0x1});}async['loadSourceResources'](_0x5b6d08,_0x13a122,_0x2e9d4e){const _0x477480=this['_addContextOptionsState']['sources']['find'](_0x4e5857=>_0x4e5857['id']===_0x5b6d08);if(!_0x477480)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x5b6d08}),'sourceId':_0x5b6d08}),[];try{const _0x344443=(await _0x477480['getResources'](_0x13a122))['map'](_0x2ec85f=>{const _0x518861=this['_isResourceInContext'](_0x2ec85f['id']);return{..._0x2ec85f,'isInContext':_0x518861};});return _0x477480['resources']=_0x344443,this['fire']('sourceResourcesLoaded',{'sourceId':_0x5b6d08,'source':_0x477480,'resources':_0x344443,'uid':_0x2e9d4e}),_0x344443;}catch(_0x177555){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x5b6d08,'originalError':_0x177555}),'sourceId':_0x5b6d08,'sourceLabel':_0x477480['label']}),[];}}async['addResourceToContext'](_0x2f21c7,_0x596f2f){if(this['_isResourceInContext'](_0x596f2f['id']))return;let _0x54e65c=_0x596f2f['data'];if(!_0x54e65c&&_0x2f21c7['getData'])try{_0x54e65c=await _0x2f21c7['getData'](_0x596f2f['id']);}catch(_0x46e4ef){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id'],'originalError':_0x46e4ef}),'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']});}if(_0x54e65c)switch(_0x596f2f['type']){case'web-resource':if('string'!=typeof _0x54e65c)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id'],'expectedType':'string','actualType':typeof _0x54e65c}),'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']});await this['addUrlToContext'](_0x54e65c,{'label':_0x596f2f['label'],'resourceId':_0x596f2f['id']});break;case'file':if(!(_0x54e65c instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id'],'expectedType':'File','actualType':typeof _0x54e65c}),'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']});await this['addFilesToContext']([_0x54e65c],{'label':_0x596f2f['label'],'resourceId':_0x596f2f['id']});break;case'text':if('object'!=typeof _0x54e65c||!('content'in _0x54e65c)||!('type'in _0x54e65c))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x54e65c}),'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']});_0x54e65c=AIChatContext['_convertTextResourceToFile'](_0x54e65c,_0x596f2f['label']),await this['addFilesToContext']([_0x54e65c],{'label':_0x596f2f['label'],'resourceId':_0x596f2f['id']},'text');break;case'mcp-tool-context':break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id'],'resourceType':_0x596f2f['type']}),'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']}),'resourceId':_0x596f2f['id'],'sourceId':_0x2f21c7['id']});}static['_convertTextResourceToFile'](_0x162c98,_0x5172e4){switch(_0x162c98['type']){case'markdown':return new File([_0x162c98['content']],_0x5172e4,{'type':'text/markdown'});case'html':return new File([_0x162c98['content']],_0x5172e4,{'type':'text/html'});default:return new File([_0x162c98['content']],_0x5172e4,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x480100){switch(_0x480100['type']){case'file':case'text':return[{'type':'file','id':_0x480100['id']}];case'web-resource':return[{'type':'web-resource','id':_0x480100['id']}];case'document':return _0x480100['documents']?.['length']?_0x480100['documents']['map'](_0x154ab4=>({'type':'document','id':_0x154ab4['id'],..._0x154ab4['selection']?.['length']&&{'selection':_0x154ab4['selection']}})):[{'type':'document','id':_0x480100['id'],..._0x480100['selection']?.['length']&&{'selection':_0x480100['selection']}}];case'mcp-tool-context':{const _0x3d6ffe=_0x480100;return[{'type':'mcp-tool-context','mcpServerName':_0x3d6ffe['mcpServerName'],'toolName':_0x3d6ffe['toolName'],'data':{..._0x3d6ffe['data'],'label':_0x3d6ffe['label']||_0x3d6ffe['data']?.['label']||_0x3d6ffe['id']},'id':_0x3d6ffe['id']}];}default:return[];}}['_addContextItem'](_0x35dfe6,_0x2cc328=!0x1){if(this['_pendingContextItems']['set'](_0x35dfe6['uiId'],_0x35dfe6),_0x35dfe6['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x35dfe6,'isLoading':_0x2cc328}),'current-document'===_0x35dfe6['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x35dfe6['resourceId']){const _0x242921=this['_findSourceIdsByResourceId'](_0x35dfe6['resourceId']);_0x242921&&_0x242921['forEach'](_0x4b593c=>{this['_updateResourceInContextState'](_0x4b593c,_0x35dfe6['resourceId'],!0x0);});}}['_removeContextItem'](_0x4ba023){const _0x2cca14=this['_pendingContextItems']['get'](_0x4ba023),_0x19bbcf=this['_ongoingUploads']['get'](_0x4ba023);if(_0x19bbcf&&(_0x19bbcf['abort'](),this['_ongoingUploads']['delete'](_0x4ba023)),_0x2cca14?.['resourceId']){const _0x5cf2cc=this['_findSourceIdsByResourceId'](_0x2cca14['resourceId']);_0x5cf2cc&&_0x5cf2cc['forEach'](_0x2c7a22=>{this['_updateResourceInContextState'](_0x2c7a22,_0x2cca14['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0x4ba023),this['fire']('contextItemRemoved',{'uiId':_0x4ba023,'type':_0x2cca14?.['type']}),'current-document'===_0x4ba023&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0x4825e4,_0x2f9f56){if(this['_pendingContextItems']['has'](_0x4825e4['uiId'])&&(this['_pendingContextItems']['set'](_0x4825e4['uiId'],_0x4825e4),this['fire']('contextItemLoadingEnded',{'contextItem':_0x4825e4,'isLoading':_0x2f9f56}),_0x4825e4['resourceId'])){const _0x34ab77=this['_findSourceIdsByResourceId'](_0x4825e4['resourceId']);_0x34ab77&&_0x34ab77['forEach'](_0x55599f=>{this['_updateResourceInContextState'](_0x55599f,_0x4825e4['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x39dfe3){this['_conversationContextItems']['set'](_0x39dfe3['uiId'],_0x39dfe3);}['_setAddContextOptionsDefaultState'](){this['_addContextOptionsState']={'document':{'enabled':!0x1!==this['_config']?.['document']?.['enabled'],'isHidden':!0x1},'urls':{'enabled':!0x1!==this['_config']?.['urls']?.['enabled']},'files':{'enabled':!0x1!==this['_config']?.['files']?.['enabled']},'sources':this['_getCustomSourcesInitialState'](),'customItems':this['_config']?.['customItems']?.['map'](_0x22cdd3=>({..._0x22cdd3,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x5434c5=>({..._0x5434c5,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x560f9a=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x560f9a,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0x3b9c3){for(const _0x369486 of this['_pendingContextItems']['values']())if(_0x369486['resourceId']===_0x3b9c3)return!0x0;for(const _0x2ef016 of this['_conversationContextItems']['values']())if(_0x2ef016['resourceId']===_0x3b9c3)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x15649e){const _0x2b62f1=[];for(const _0x47ef7 of this['_addContextOptionsState']['sources']){_0x47ef7['resources']['find'](_0x191c35=>_0x191c35['id']===_0x15649e)&&_0x2b62f1['push'](_0x47ef7['id']);}return 0x0===_0x2b62f1['length']?null:_0x2b62f1;}['_updateResourceInContextState'](_0xa6b72b,_0x1d6079,_0x354705){const _0x39faf4=this['_addContextOptionsState']['sources']['find'](_0x2ad215=>_0x2ad215['id']===_0xa6b72b);if(!_0x39faf4)return;const _0x5495fd=_0x39faf4['resources']['find'](_0x4a18a6=>_0x4a18a6['id']===_0x1d6079);_0x5495fd&&(_0x5495fd['isInContext']=_0x354705,this['fire']('resourceStateChanged',{'sourceId':_0xa6b72b,'resourceId':_0x1d6079,'isInContext':_0x354705}));}['_startUploadOperation'](_0x186d4d){this['_ongoingUploadOperations']['set'](_0x186d4d,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x526346){this['_ongoingUploadOperations']['delete'](_0x526346),0x0===this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x1});}}const CAPABILITIES_MODEL_EVENT_NAMES=['capabilitiesUpdated'];class AICapabilities extends EmitterMixin(){['_isWebSearchEnabled'];['_isReasoningEnabled'];constructor(){super(),this['_isWebSearchEnabled']=!0x1,this['_isReasoningEnabled']=!0x1;}['init'](){this['reset']();}['reset'](){this['setWebSearch'](!0x1),this['setReasoning'](!0x1);}['getCapabilitiesConfig'](){return{'isWebSearchEnabled':this['_isWebSearchEnabled'],'isReasoningEnabled':this['_isReasoningEnabled']};}static['getCapabilitiesRequestData'](_0x2f0735){const _0x36ef00={};return _0x2f0735&&_0x2f0735['isWebSearchEnabled']&&(_0x36ef00['webSearch']={}),_0x2f0735&&_0x2f0735['isReasoningEnabled']&&(_0x36ef00['reasoning']={}),_0x36ef00;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x167595){_0x167595!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x167595,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x3aed2a){_0x3aed2a!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x3aed2a,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['capabilities'];['model'];['attributes'];constructor(_0x5b79fa){super(_0x5b79fa),this['conversationId']=_0x5b79fa['conversationId'],this['contextItems']=_0x5b79fa['contextItems'],this['capabilities']=_0x5b79fa['capabilities'],this['userMessage']=_0x5b79fa['userMessage'],this['model']=_0x5b79fa['model'],this['attributes']=_0x5b79fa['attributes'];}async['sendRequest'](){return this['connector']['queryAssistant']({'message':this['userMessage'],'conversationId':this['conversationId'],'parts':AIChatContext['mapContextItemsToRequestData'](this['contextItems']),'capabilities':AICapabilities['getCapabilitiesRequestData'](this['capabilities']),'model':this['model'],'attributes':this['attributes']});}['getDocumentContext'](){return this['contextItems']['get']('current-document');}['createReply'](_0x5821f1){const _0x3c22ab=this['getDocumentContext']();if(_0x3c22ab?.['documents']?.['length']){const _0x52d8a7=_0x3c22ab['documents']['map'](_0x2f92ab=>_0x2f92ab['content']??'')['join']('');if(_0x52d8a7)return super['createReply']({'documentContextContent':_0x52d8a7,..._0x5821f1});}return super['createReply'](_0x5821f1);}}class AIChatConversation extends EmitterMixin(){['id'];['isStarted']=!0x1;['isFromHistory'];['interactions']=[];['currentInteraction'];['selectedModel'];['connector'];['options'];constructor(_0x59fe85){super(),this['options']=_0x59fe85,this['connector']=_0x59fe85['connector'],this['chatModels']=_0x59fe85['chatModels'],this['id']=_0x59fe85['conversationId'],this['isFromHistory']=_0x59fe85['isFromHistory'];}async['init'](_0x4b470e){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0x4b470e,'ownerId':this['id']}),this['chatContext']['delegate'](...AI_CONTEXT_MODEL_EVENT_NAMES)['to'](this),this['chatContext']['init'](),this['chatCapabilities']=new AICapabilities(),this['chatCapabilities']['delegate'](...CAPABILITIES_MODEL_EVENT_NAMES)['to'](this),this['chatCapabilities']['init']();const _0x42ed7f=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x42ed7f});const _0x42f614=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x42f614&&await this['setModel'](_0x42f614);}catch(_0xcf81f6){const _0xdef3da=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0xcf81f6['message']||_0xcf81f6});_0xdef3da['stack']=_0xcf81f6['stack'],this['fire']('error',{'error':_0xdef3da});}}async['start'](){if(this['isStarted'])throw new CKEditorError('ai-chat-conversation-already-started',null,{'conversation':this});if(!this['selectedModel'])throw new CKEditorError('ai-chat-conversation-start-no-model-selected',null,{'conversation':this});try{const {id:_0x3bf449}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x3bf449,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x2cdd5f){const _0x2f4e27=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x2cdd5f['message'],'conversationId':this['id']});throw _0x2f4e27['stack']=_0x2cdd5f['stack'],this['fire']('error',{'error':_0x2f4e27}),_0x2f4e27;}}async['load'](_0x384f83,_0x406295){try{const _0x33e007=await this['connector']['fetchConversation'](_0x384f83)['getConversation'](),_0xb4e5c8=await this['connector']['fetchConversationMessages'](_0x384f83)['getMessages'](),_0x32d394=_0xb4e5c8[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x33e007['id'],'title'in _0x33e007?this['fire']('setConversationTitle',_0x33e007['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x47f74e=(await this['chatModels']['getAll']())['find'](_0xc70aae=>_0xc70aae['id']['toLowerCase']()===_0x32d394['toLowerCase']());return this['selectedModel']=_0x47f74e,this['fire']('modelSelected',{'selectedModel':_0x47f74e,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0xb4e5c8,_0x406295,_0x32d394),this['currentInteraction']=void 0x0,this;}catch(_0x16c6f5){const _0x29fa34=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x16c6f5['message'],'conversationId':_0x384f83});throw _0x29fa34['stack']=_0x16c6f5['stack'],this['fire']('error',{'error':_0x29fa34}),_0x29fa34;}}async['_processMessagesToInteractions'](_0x1adfa0,_0x5eeb03,_0x3d5929){let _0x53f2ea,_0x213005=!0x1;for(const _0x17839b of _0x1adfa0)if('user'===_0x17839b['role']){const {contextItems:_0x58e4d8,hasUnmatched:_0x54fb68}=await this['_extractContextItems'](_0x17839b);_0x213005=_0x54fb68;const _0x260cd4={'isReasoningEnabled':Object['hasOwn'](_0x17839b['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0x17839b['capabilities'],'webSearch')};_0x53f2ea=this['createInteraction']({'userMessage':_0x17839b['prompt'],'contextItems':_0x58e4d8,'capabilities':_0x260cd4,'modelId':_0x3d5929,'attributes':_0x17839b['attributes']}),this['currentInteraction']=_0x53f2ea,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0x17839b['role']&&_0x53f2ea){const _0x2018e8=[];for(const _0x2e5f31 of _0x17839b['content'])switch(_0x2e5f31['type']){case'text':case'modification':{const _0x1ba9a1=_0x53f2ea['getDocumentContext'](),_0x33431f=_0x1ba9a1?.['documents']?.['length']?_0x1ba9a1['documents']['some'](_0x3ea3e8=>_0x3ea3e8['sessionId']!==_0x5eeb03):_0x1ba9a1?.['sessionId']!==_0x5eeb03,_0x162a48=_0x33431f||_0x213005;_0x53f2ea['currentReply']?.['type']!==_0x2e5f31['type']&&(_0x53f2ea['currentReply']=_0x53f2ea['createReply']({'type':_0x2e5f31['type'],'isDone':!0x0,'interactionId':_0x53f2ea['id'],'areActionsDisabled':_0x162a48,'isFromHistory':!0x0}),_0x2018e8['length']>0x0&&(_0x53f2ea['currentReply']['sources']=_0x2018e8['splice'](0x0))),_0x53f2ea['currentReply']['appendContent'](_0x2e5f31['content']);break;}case'url':_0x2018e8['push'](_0x2e5f31);break;case'mcp-tool-result':{const {data:_0x12ffe2,attributes:_0x5618b4}=JSON['parse'](_0x2e5f31['content']);_0x53f2ea['_handleToolResultData']({'toolName':_0x2e5f31['toolName'],'data':_0x12ffe2,'attributes':_0x5618b4});break;}}}}}async['_extractContextItems'](_0x1455fd){const _0x3afd7e=new Map();if(!_0x1455fd['content'])return{'contextItems':_0x3afd7e,'hasUnmatched':!0x1};const _0x49be45=this['_resolveEditors'](),{contextItem:_0x59a866,hasUnmatched:_0x6b632c}=await this['chatContext']['populateDocumentsFromMessage'](_0x1455fd['content'],_0x49be45);_0x59a866&&_0x3afd7e['set'](_0x59a866['id'],_0x59a866);for(const _0x1742b2 of _0x1455fd['content']){if('document'===_0x1742b2['type'])continue;const _0x4ccdfc=await this['chatContext']['populateFromMessage'](_0x1742b2);_0x4ccdfc&&_0x3afd7e['set'](_0x4ccdfc['id'],_0x4ccdfc);}return{'contextItems':_0x3afd7e,'hasUnmatched':_0x6b632c};}['_resolveEditors'](){return this['options']['getEditors']?this['options']['getEditors']():this['options']['getEditor']?[this['options']['getEditor']()]:[];}async['handleUserInteraction']({userMessage:_0x47deb9,attributes:_0x3fdae2}){if(!this['isStarted'])throw new CKEditorError('ai-chat-handle-user-conversation-not-initialized',null,{'conversation':this});if(this['currentInteraction'])throw new CKEditorError('ai-chat-handle-user-interaction-already-in-progress',null,{'conversation':this});try{const _0x41a256=this['chatContext']['getPendingContextItems'](),_0x54c0db=this['chatCapabilities']['getCapabilitiesConfig'](),_0x5c36b6=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x47deb9,'contextItems':_0x41a256,'capabilities':_0x54c0db,'modelId':_0x5c36b6,'attributes':_0x3fdae2}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x401697){if(_0x401697 instanceof CKEditorError)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x401697});else{const _0x4dce9b=errorsMap['get'](_0x401697['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new CKEditorError(_0x4dce9b,null,{'error':_0x401697})});}}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x154dfe,contextItems:_0x5268c4,capabilities:_0xd9fd7,modelId:_0xb5dfb,attributes:_0x1d629d}){const _0x51374c=new AIChatInteraction({'userMessage':_0x154dfe,'contextItems':_0x5268c4,'capabilities':_0xd9fd7,'conversationId':this['id'],'connector':this['connector'],'locale':this['options']['locale'],'model':_0xb5dfb,'attributes':_0x1d629d});return _0x51374c['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x51374c),this['fire']('interactionCreated',_0x51374c),_0x51374c;}['getInteraction'](_0x85ec89){return this['interactions']['find'](_0x1a0b77=>_0x1a0b77['id']===_0x85ec89);}['removeInteraction'](_0x1a7a11){const _0x451bf9=this['getInteraction'](_0x1a7a11);_0x451bf9&&(_0x451bf9['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x451bf9),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0xd12c14){this['chatContext']['addCurrentDocumentToContext'](_0xd12c14);}async['updateCurrentDocumentInContext']({content:_0x20e6c3,version:_0x3bf63d,sessionId:_0x15e330,channelId:_0x11cc01,rootName:_0x38ede2,selections:_0x512555}){await this['chatContext']['updateCurrentDocument'](_0x20e6c3,_0x3bf63d,_0x15e330,_0x11cc01,_0x38ede2,_0x512555);}async['updateCurrentDocumentsInContext'](_0x55d0dc){await this['chatContext']['updateCurrentDocuments'](_0x55d0dc);}['getSourceByDataId'](_0x30e756){return this['chatContext']['getSourceByDataId'](_0x30e756);}['getDocumentContextSliceByDataId'](_0x471b0d){return this['chatContext']['getDocumentContextSliceByDataId'](_0x471b0d);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x3c4f26){this['chatContext']['addSelectionToContext'](_0x3c4f26);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0x375514){this['chatContext']['addFilesToContext'](_0x375514);}['addUrlToContext'](_0x1375f6){this['chatContext']['addUrlToContext'](_0x1375f6);}['addToolItemToContext'](_0x481974){this['chatContext']['addToolItemToContext'](_0x481974);}['addResourceToContext'](_0x48b184,_0x16fde4){this['chatContext']['addResourceToContext'](_0x48b184,_0x16fde4);}['loadSourceResources'](_0x3fccfc,_0x2e0103,_0x5522ca){return this['chatContext']['loadSourceResources'](_0x3fccfc,_0x2e0103,_0x5522ca);}['removeFromContext'](_0x5de41e){this['chatContext']['removeFromContext'](_0x5de41e);}['setWebSearch'](_0x4a2eaf){this['chatCapabilities']['setWebSearch'](_0x4a2eaf);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['setReasoning'](_0x38f3ef){this['chatCapabilities']['setReasoning'](_0x38f3ef);}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0x52c380){_0x52c380?!0x1===await this['chatModels']['isAvailable'](_0x52c380)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0x52c380}),_0x52c380=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0x52c380=(await this['chatModels']['getAvailableModels']())[0x0]),_0x52c380['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0x52c380,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0x52c380}));}}class AIModels extends EmitterMixin(){['_connector'];['_config'];['_locale'];['_modelList']=[];['_modelsRequest']=null;constructor({connector:_0x210fea,config:_0x5860aa,locale:_0x478a4c}){super(),this['_connector']=_0x210fea,this['_config']=_0x5860aa,this['_locale']=_0x478a4c;}get['_availableModels'](){return this['_config']?.['displayedModels'];}get['_defaultModelId'](){return this['_config']?.['defaultModelId'];}async['getAll'](){return this['_modelsRequest']||(this['_modelsRequest']=this['_retrieveModels']()),this['_modelsRequest'];}async['getAvailableModels'](){const _0x1e7142=await this['getAll']();let _0xce72b0;return _0xce72b0=this['_availableModels']?this['_filterModels'](_0x1e7142,this['_availableModels']):_0x1e7142['filter'](_0xcaa6b5=>_0xcaa6b5['recommended']),_0xce72b0;}async['getModel'](_0xe5132a){const _0x51275e=await this['getAll']();if(!_0x51275e['length'])return null;if(_0xe5132a){const _0x35dfd8=this['_getModelById'](_0x51275e,_0xe5132a);if(_0x35dfd8)return _0x35dfd8;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0xe5132a,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x540d0d=await this['getAvailableModels']();if(!_0x540d0d['length'])return null;if(this['_defaultModelId']){const _0x58ea6d=this['_getModelById'](_0x540d0d,this['_defaultModelId']);if(_0x58ea6d)return _0x58ea6d;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x540d0d[0x0]['id']});}return _0x540d0d[0x0];}async['isAvailable'](_0x2b50d0){return(await this['getAvailableModels']())['some'](_0x145792=>_0x145792['name']===_0x2b50d0['name']&&_0x145792['provider']===_0x2b50d0['provider']);}async['_retrieveModels'](){if(!this['_modelList']['length'])try{const _0x319077=this['_locale']['uiLanguage']||'en',_0x29f947=this['_connector']['getModels'](_0x319077),_0x1c1b23=await _0x29f947['list']();this['_modelList']=_0x1c1b23['items']['map'](_0x3d9d8b=>isAutoModel(_0x3d9d8b)?{..._0x3d9d8b,'name':getTranslation$i(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x3d9d8b);}catch(_0x2e761b){throw logError('ai-models-unable-to-retrieve',{'error':_0x2e761b}),_0x2e761b;}return[...this['_modelList']];}['_filterModels'](_0x196a44,_0x5ac772){let _0x1ba286;if(_0x5ac772){_0x1ba286=[];const _0x9f8e4a=new Set(),_0x18591f='string'==typeof _0x5ac772?[_0x5ac772['toLocaleLowerCase']()]:_0x5ac772['map'](_0x465cb0=>_0x465cb0['toLocaleLowerCase']());for(const _0x4e30aa of _0x18591f)for(const _0x57c3c9 of _0x196a44)!_0x9f8e4a['has'](_0x57c3c9['id'])&&this['_isMatchingFilter'](_0x57c3c9,_0x4e30aa)&&(_0x1ba286['push'](_0x57c3c9),_0x9f8e4a['add'](_0x57c3c9['id']));}else _0x1ba286=_0x196a44;return _0x1ba286;}['_isMatchingFilter'](_0x3bc976,_0x2f9833){const _0x191d7a=_0x3bc976['id']['toLocaleLowerCase'](),_0x51c6bb=_0x3bc976['name']['toLocaleLowerCase'](),_0x5de4e3=_0x3bc976['provider']['toLocaleLowerCase']();return _0x191d7a===_0x2f9833||_0x51c6bb===_0x2f9833||isAutoModel(_0x3bc976)&&'auto'===_0x2f9833||_0x5de4e3===_0x2f9833||_0x191d7a['startsWith'](_0x2f9833);}['_getModelById'](_0x7284ba,_0x2286d6){return _0x7284ba['find'](_0x584747=>isAutoModel(_0x584747)&&'auto'===_0x2286d6?_0x584747:_0x584747['id']===_0x2286d6)||null;}}function isAutoModel(_0x2f1ea2){return _0x2f1ea2['id']['startsWith']('agent');}function getEditorsFromContext(_0x2027ef){return _0x2027ef?_0x2027ef instanceof Editor?[_0x2027ef]:_0x2027ef['editors']&&0x0!==_0x2027ef['editors']['length']?Array['from'](_0x2027ef['editors']):[]:[];}function getTargetEditorFromContext(_0x21580a){const _0x2a8413=getEditorsFromContext(_0x21580a);if(!_0x2a8413['length'])throw new CKEditorError('ai-get-editor-from-context-no-editor');if(0x1===_0x2a8413['length'])return _0x2a8413[0x0];const _0x161c6e=_0x2a8413['find'](_0x3883f7=>_0x3883f7['ui']?.['focusTracker']?.['isFocused']);if(_0x161c6e)return _0x161c6e;const _0x24ebf0=getLastContentFocusedEditorFromContext(_0x21580a);return _0x24ebf0&&_0x2a8413['includes'](_0x24ebf0)?_0x24ebf0:_0x2a8413[0x0];}function getLastContentFocusedEditorFromContext(_0xa7760a){if(_0xa7760a instanceof Editor)return;const _0x846be=_0xa7760a;if(!_0x846be['plugins']||!_0x846be['plugins']['has']('AIEditing'))return;const _0x5584b0=_0x846be['plugins']['get']('AIEditing');return _0x5584b0['getLastContentFocusedEditor']?.();}function getEditorFromContext(_0x56810e){return getTargetEditorFromContext(_0x56810e);}function getOperationsFromReply({editor:_0x1110fe,interaction:_0x4c45d8,reply:_0x2d0039,groups:_0x500686,transform:_0x36f3c1,documentCompare:_0x15df13,documentCompareOptions:_0x261325,documentContextSlice:_0x45d791}){const _0x565d2d=_0x4c45d8['getDocumentContext']();if(!_0x565d2d)return[];const _0x5a1066=_0x2d0039['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x5c8be7}of _0x500686){const _0x43b0e5=_0x5c8be7['filter'](_0x24b192=>'new'!=_0x24b192['type'])['map'](_0x24e5e3=>findByAttribute('data-id',_0x24e5e3['id'],_0x5a1066)),_0x37b199=_0x5c8be7['filter'](_0x25fa5e=>'removed'!=_0x25fa5e['type'])['map'](_0x431875=>_0x431875['node']['cloneNode'](!0x0));let _0x260d3e=null;if(_0x43b0e5['length']){_0x260d3e=_0x43b0e5[0x0]['previousSibling'];for(let _0x455306=0x0;_0x455306<_0x43b0e5['length'];_0x455306++)removeElement(_0x43b0e5[_0x455306]);}if(_0x37b199['length']){_0x260d3e||(_0x5c8be7[0x0]['anchorId']?_0x260d3e=findByAttribute('data-id',_0x5c8be7[0x0]['anchorId'],_0x5a1066):(_0x260d3e=_0x37b199['shift'](),prependChild(_0x5a1066,_0x260d3e)));for(let _0x5bba61=0x0;_0x5bba61<_0x37b199['length'];_0x5bba61++)append(_0x260d3e,_0x37b199[_0x5bba61]),_0x260d3e=_0x37b199[_0x5bba61];}}let _0x2cfd33,_0x5b510e,_0x1bde18,_0x519be9=_0x261325;if(_0x45d791){_0x2cfd33=_0x45d791['html'],_0x1bde18=_0x45d791['version'],_0x519be9={..._0x261325,'anchor':_0x45d791['rootName']};const _0x381aa3=new Document$1([]),_0x5c53a1=_0x5a1066['children'],_0x5c58b4=_0x2d0039['dataIdDocumentSources'],_0x2cca3b=_0x2d0039['newNodeAnchorIds'],_0x173c43=_0x45d791['editor'],_0x308478=_0x45d791['rootName'],_0x43642a=new Array(_0x5c53a1['length']),_0x11627e=_0x1fe976=>_0x1fe976?_0x1fe976['editor']===_0x173c43&&_0x1fe976['rootName']===_0x308478:void 0x0;for(let _0x242a3c=0x0;_0x242a3c<_0x5c53a1['length'];_0x242a3c++){const _0x4877aa=getAttribute(_0x5c53a1[_0x242a3c],'data-id');if(!_0x4877aa)continue;const _0x336cec=_0x11627e(_0x5c58b4?.['get'](_0x4877aa));if(void 0x0!==_0x336cec){_0x43642a[_0x242a3c]=_0x336cec;continue;}const _0x389021=_0x2cca3b['get'](_0x4877aa),_0x3e392e=_0x389021?_0x11627e(_0x5c58b4?.['get'](_0x389021)):void 0x0;void 0x0!==_0x3e392e&&(_0x43642a[_0x242a3c]=_0x3e392e);}for(let _0x2c8221=0x0;_0x2c8221<_0x5c53a1['length'];_0x2c8221++)if(void 0x0===_0x43642a[_0x2c8221]){for(let _0x46d30d=_0x2c8221-0x1;_0x46d30d>=0x0;_0x46d30d--)if(void 0x0!==_0x43642a[_0x46d30d]){_0x43642a[_0x2c8221]=_0x43642a[_0x46d30d];break;}if(void 0x0===_0x43642a[_0x2c8221]){for(let _0x2b4cd8=_0x2c8221+0x1;_0x2b4cd8<_0x5c53a1['length'];_0x2b4cd8++)if(void 0x0!==_0x43642a[_0x2b4cd8]){_0x43642a[_0x2c8221]=_0x43642a[_0x2b4cd8];break;}}}for(let _0x5be43d=0x0;_0x5be43d<_0x5c53a1['length'];_0x5be43d++)_0x43642a[_0x5be43d]&&_0x381aa3['children']['push'](cloneNode(_0x5c53a1[_0x5be43d],!0x0));_0x5b510e=serialize$1(_0x381aa3);}else _0x2cfd33=_0x565d2d['content'],_0x1bde18=_0x565d2d['version'],_0x5b510e=serialize$1(_0x5a1066);const _0x13aa9f=_0x15df13['getDiff'](_0x2cfd33,_0x5b510e,{..._0x519be9,'targetEditor':_0x1110fe})['getOperations']();if(_0x36f3c1){const _0x3bf918=_0x1110fe['model']['document']['history']['getOperations'](_0x1bde18),_0x29bbfb={'document':_0x1110fe['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x13aa9f,_0x3bf918,_0x29bbfb)['operationsA'];}return _0x13aa9f;}function fixMarkerOperationOldRange(_0xdc6a0e,_0x3ebd17){if('marker'!=_0x3ebd17['type'])return;const _0x446085=_0xdc6a0e['model']['markers']['get'](_0x3ebd17['name']);_0x446085&&(_0x3ebd17['oldRange']=_0x446085['getRange']());}const UPDATE_REPLY_CONTENT_THROTTLE_DELAY=0xc8;class AIChatController extends ContextPlugin{['activeConversation'];['_aiEditing'];['_aiConnector'];['_aiChatUi'];['_aiChatModels'];['_aiChatBalloon'];['_activeBalloon'];['_wiredBalloons']=new Set();['_batchToChanges']=new Map();['_currentPreviewedChangeGroup']=null;['_bodyCollection'];static get['requires'](){return[AIConnector,DocumentCompare];}static get['pluginName'](){return'AIChatController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_aiChatUi']=this['context']['plugins']['get']('AIChatUI'),this['_aiEditing']=this['context']['plugins']['get']('AIEditing'),this['_aiChatModels']=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});const _0x18da81=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x183ba8,_0x5866a1)=>{this['_handleUIUserMessage']({'message':_0x5866a1});}),this['listenTo'](_0x18da81['view'],'change:activeTab',(_0x1cce3f,_0x15ff7f,_0x2392bd)=>{'chat'!==_0x2392bd&&this['removeSelectionFromChatContext']();}),this['listenTo'](this['_aiChatUi'],'abortPromptStream',async()=>{await this['_stopLastInteraction'](),await this['_flushLastInteractionUI'](),this['removeSelectionFromChatContext']();}),this['listenTo'](this['_aiChatUi'],'addDocumentToContext',()=>{this['addCurrentDocumentToChatContext']();}),this['listenTo'](this['_aiChatUi'],'addFileToContext',(_0x4ec521,_0x1df3f7)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x1df3f7));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x411f86,_0x45c477)=>{this['activeConversation']?.['addUrlToContext'](_0x45c477);}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x112bae,_0xe95f40)=>{_0xe95f40['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x41db1f,_0x5ec97e)=>{this['activeConversation']?.['addResourceToContext'](_0x5ec97e['source'],_0x5ec97e['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x288452,_0x1c9763)=>{this['_removeFromContext'](_0x1c9763);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x2031b0,_0x5e5b53)=>{this['activeConversation']?.['loadSourceResources'](_0x5e5b53['sourceId'],_0x5e5b53['query'],_0x5e5b53['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x319840,_0x2ff848)=>{this['activeConversation']?.['setModel'](_0x2ff848);}),this['listenTo'](this['_aiChatUi'],'like',(_0x194959,{replyId:_0x232b6d})=>{console['log']('Liked\x20response',_0x232b6d);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x41002e,{replyId:_0xf2ee38})=>{console['log']('Disliked\x20response',_0xf2ee38);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0xc9a047,_0x46a862)=>{this['_insertSuggestion'](_0x46a862);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x5469d3,{replyId:_0x34a060,partIndex:_0x4bc434})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x34a060,_0x4bc434);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x4d2785,{replyId:_0x7790b2,partIndex:_0x7a042})=>{const _0x370e91=this['_getDocumentRangeForReplyChanges'](_0x7790b2,_0x7a042);_0x370e91&&'$graveyard'!=_0x370e91['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']({'ranges':[_0x370e91['range']],'id':'change-area','priority':0xa});}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x4836a2,_0x12e81b)=>{this['_aiEditing']['hideFakeVisualSelection']('change-area'),this['_applySuggestion'](_0x12e81b);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x2f4527,{replyId:_0xad4625,showDiff:_0x5e00ae})=>{const {reply:_0x359118}=this['getInteractionAndReplyById'](_0xad4625),_0x410289=_0x359118['getContentParts']({'showDiff':_0x5e00ae,'editor':getEditorFromContext(this['context'])});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x359118['id'],'parts':_0x410289});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x43c07a,{replyId:_0x26c562,partIndex:_0x15c742})=>{this['_rejectSuggestion']({'replyId':_0x26c562,'partIndex':_0x15c742}),this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['set']('_aiChatBalloonShowDiff',!0x1),this['context']['plugins']['has']('AIChatBalloon')&&(this['_aiChatBalloon']=this['context']['plugins']['get']('AIChatBalloon')),this['on']('interactionCreated',(_0x162901,_0x575c9d)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x575c9d);}),this['on']('replyCreated',(_0x1701c5,_0xd835fb)=>{this['_addFeedItemReply'](_0xd835fb);});}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x45605c,_0xec7db1)=>{_0xec7db1['on']('ready',()=>{this['_integrateEditor'](_0xec7db1);});});const _0xb4f7ca=this['context']['config']['get']('ai.chat.initialConversation');let _0x52ea02=_0xb4f7ca;if('lastCreated'!=_0xb4f7ca||(_0x52ea02=await this['_getLastCreatedConversationId'](),_0x52ea02))return'new'==_0x52ea02?this['_startConversationSafely']():this['loadConversation'](_0x52ea02);}async['destroy'](){return await this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}async['loadConversation'](_0x59b4bb){this['_activeBalloon']?.['close'](),this['_activeBalloon']=void 0x0,this['_currentPreviewedChangeGroup']=null,(this['context']['plugins']['get'](AITabs)['view']['activateTab']('chat'),this['_aiChatUi']['setFeedItemRenderingStrategy']('static'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x0),await this['_stopLastInteraction']());try{await this['_aiConnector']['fetchConversation'](_0x59b4bb)['getConversation'](),await this['_startConversationSafely']({'id':_0x59b4bb}),this['_updateConversationTitle']('\x20'),await this['activeConversation']['load'](_0x59b4bb,this['_aiEditing']['sessionId']),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext']();}catch(_0x3d90ab){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x59b4bb}),this['_logError'](new CKEditorError('ai-chat-conversation-not-found',this,{'error':_0x3d90ab}));}finally{this['_aiChatUi']['startAutoScroll']({'smooth':!0x1}),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}['registerToolDataCallback'](_0x13c231){let _0x36d797=null,_0xcd61c6=null;this['on']('toolDataReceived',(_0x1f18b6,_0x1e5759,_0x37d78a)=>{_0x37d78a['id']!==_0x36d797&&(_0x36d797=_0x37d78a['id'],_0xcd61c6=this['_getAIChatFeedAPI'](_0x37d78a)),_0x13c231(_0x1e5759,_0xcd61c6);});}['addCurrentDocumentToChatContext'](){this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async['addSelectionToChatContext'](){const _0x591e83=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x591e83),this['addCurrentDocumentToChatContext']();}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](_0x33ab75){await this['_startConversationSafely']({'modelId':_0x33ab75?.['modelId']});}async['sendMessage'](_0x59014a){await this['_handleUIUserMessage'](_0x59014a);}['getGroupId'](){const _0xa308f=this['context']['config']['get']('collaboration.channelId');if(!_0xa308f)throw new CKEditorError('ai-missing-channel-id',this);return _0xa308f;}['_handleRemovedConversation'](_0x124c02){this['activeConversation']['id']===_0x124c02&&this['_startConversationSafely']();}['_insertSuggestion'](_0x1054d0){const _0xcc01ef=this['context']['plugins']['get']('DocumentCompare'),{reply:_0x16dc0f,interaction:_0x383cc1}=this['getInteractionAndReplyById'](_0x1054d0['replyId']),_0x1b02f9=void 0x0!==_0x1054d0['partIndex']?[_0x16dc0f['changeGroups'][_0x1054d0['partIndex']]]:_0x16dc0f['changeGroups']['filter'](_0x2e699a=>'pending'==_0x2e699a['state']);for(const _0x5aacc5 of this['_groupChangesByTarget'](_0x16dc0f,_0x1b02f9)){const {target:_0x2b693b,groups:_0x52a598,groupsIndexes:_0x3fea81,slice:_0xd94c7f}=_0x5aacc5;if(!_0x2b693b['editor']['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0xab0265=this['_getDocumentRangeForReplyChanges'](_0x1054d0['replyId'],_0x3fea81[0x0]);if(!_0xab0265||'$graveyard'==_0xab0265['range']['root']['rootName']){_0x3fea81['forEach'](_0x4f131f=>_0x16dc0f['setChangeGroupState'](_0x4f131f,'outdated'));continue;}_0x3fea81['forEach'](_0x2eefd0=>_0x16dc0f['setChangeGroupState'](_0x2eefd0,'accepted'));const _0x4826d=getOperationsFromReply({'editor':_0x2b693b['editor'],'reply':_0x16dc0f,'interaction':_0x383cc1,'groups':_0x52a598,'transform':!0x0,'documentCompare':_0xcc01ef,'documentCompareOptions':{'anchor':_0xd94c7f?.['rootName']??'main','markDeletions':!0x0},'documentContextSlice':_0xd94c7f});let _0x5cd5e3;this['_scrollToSuggestionRange'](_0xab0265['range'],!0x1,_0x2b693b['editor']),_0x2b693b['editor']['model']['change'](_0x3bcd6d=>{_0x5cd5e3=_0x3bcd6d['batch'],_0x2b693b['editor']['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x4826d),this['_aiEditing']['hideFakeVisualSelection']('change-area');}),this['_batchToChanges']['set'](_0x5cd5e3,{'interactionId':_0x383cc1['id'],'replyId':_0x16dc0f['id'],'indexes':_0x3fea81['slice']()});}this['_updateRatings'](_0x16dc0f);}['_applySuggestion'](_0x4f6e6c){const _0x119742=this['context']['plugins']['get'](DocumentCompare),{reply:_0x2fa093,interaction:_0x2f9949}=this['getInteractionAndReplyById'](_0x4f6e6c['replyId']),_0x198cc2=void 0x0!==_0x4f6e6c['partIndex']?[_0x2fa093['changeGroups'][_0x4f6e6c['partIndex']]]:_0x2fa093['changeGroups']['filter'](_0x3b22a3=>'pending'==_0x3b22a3['state']);for(const _0x438f42 of this['_groupChangesByTarget'](_0x2fa093,_0x198cc2)){const {target:_0x3bc558,groups:_0x325190,groupsIndexes:_0x39cb75,slice:_0x1b99d5}=_0x438f42,_0x45aa54=this['_getDocumentRangeForReplyChanges'](_0x4f6e6c['replyId'],_0x39cb75[0x0]);if(!_0x45aa54||'$graveyard'==_0x45aa54['range']['root']['rootName']){_0x39cb75['forEach'](_0x27c9df=>_0x2fa093['setChangeGroupState'](_0x27c9df,'outdated'));continue;}_0x39cb75['forEach'](_0x47dde5=>_0x2fa093['setChangeGroupState'](_0x47dde5,'accepted'));const _0x1c0c9d=getOperationsFromReply({'editor':_0x3bc558['editor'],'reply':_0x2fa093,'interaction':_0x2f9949,'groups':_0x325190,'transform':!0x0,'documentCompare':_0x119742,'documentCompareOptions':{'anchor':_0x1b99d5?.['rootName']??'main','markDeletions':!0x1},'documentContextSlice':_0x1b99d5});let _0x1b9949;this['_scrollToSuggestionRange'](_0x45aa54['range'],!0x1,_0x3bc558['editor']),_0x3bc558['editor']['model']['change'](_0x3d08c3=>{_0x1b9949=_0x3d08c3['batch'];for(const _0x22a4d3 of _0x1c0c9d)_0x22a4d3['baseVersion']=_0x3bc558['editor']['model']['document']['version'],fixMarkerOperationOldRange(_0x3bc558['editor'],_0x22a4d3),_0x3d08c3['batch']['addOperation'](_0x22a4d3),_0x3bc558['editor']['model']['applyOperation'](_0x22a4d3);}),this['_batchToChanges']['set'](_0x1b9949,{'interactionId':_0x2f9949['id'],'replyId':_0x2fa093['id'],'indexes':_0x39cb75['slice']()});}this['_updateRatings'](_0x2fa093);}['_rejectSuggestion'](_0x2bdedf){const {reply:_0x110f5d}=this['getInteractionAndReplyById'](_0x2bdedf['replyId']);_0x110f5d['setChangeGroupState'](_0x2bdedf['partIndex'],'rejected');}['_openBalloonFor'](_0x4ef2fb,_0xf1b404){if(!this['_aiChatBalloon'])return;const {reply:_0x23d794}=this['getInteractionAndReplyById'](_0x4ef2fb),_0x301aae=_0x23d794['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'editor':getEditorFromContext(this['context'])});let _0x3347be,_0x1f56e1;if(void 0x0!==_0xf1b404?(_0x1f56e1=_0x301aae['find'](_0xf527dc=>_0xf527dc['index']==_0xf1b404),_0x3347be=_0x1f56e1?.['index']):(_0x1f56e1=_0x301aae[0x0],_0x3347be=_0x1f56e1['index']),this['_currentPreviewedChangeGroup']?.['replyId']==_0x4ef2fb&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x3347be)return;const _0x323932=this['_getUserPresentableContentPartDocumentRange'](_0x4ef2fb,_0x23d794,_0x1f56e1),_0x35da4f=_0x23d794['changeGroups']['find'](_0x338dea=>_0x338dea['index']==_0x3347be),_0x5d3f8c=_0x35da4f?this['_resolveGroupTarget'](_0x23d794,_0x35da4f):null,_0x2b2c33=_0x5d3f8c?.['editor']??getEditorFromContext(this['context']),_0x561eda=_0x2b2c33['plugins']['has']('AIChatBalloon')?_0x2b2c33['plugins']['get']('AIChatBalloon'):this['_aiChatBalloon'];if(this['_activeBalloon']&&this['_activeBalloon']!==_0x561eda&&this['_activeBalloon']['close'](),!_0x323932)return _0x561eda['close'](),void(this['_activeBalloon']=void 0x0);this['_activeBalloon']=_0x561eda,this['_currentPreviewedChangeGroup']={'replyId':_0x4ef2fb,'partIndex':_0x3347be},this['_scrollToSuggestionRange'](_0x323932,!0x0,_0x2b2c33);const _0x2c208a=this['_getPresentableSiblingContentPartIndex'](_0x4ef2fb,_0x3347be,'next');_0x561eda['updateContent']({'part':_0x1f56e1,'renderingStrategy':'static'}),_0x561eda['open']({'index':_0x3347be,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0x3347be+0x1)['toString']()),'showRotator':null!==_0x2c208a,'ranges':[_0x323932],'areActionsDisabled':_0x23d794['areActionsDisabled'],'targetEditor':_0x2b2c33}),_0x561eda['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x4ef2fb,_0x3347be),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x4ef2fb,'index':_0x3347be,'isActive':!0x0});}['_getPresentableSiblingContentPartIndex'](_0x169d4d,_0x4425af,_0x346f8a){const {reply:_0x19a764}=this['getInteractionAndReplyById'](_0x169d4d),_0x2b0b1a=_0x19a764['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'editor':getEditorFromContext(this['context'])});if(0x1==_0x2b0b1a['length'])return null;const _0x419c2=_0x2b0b1a['findIndex'](_0x44ab66=>_0x44ab66['index']==_0x4425af),_0x28effe='next'==_0x346f8a?0x1:-0x1;let _0x492a13=_0x2b0b1a['at']((_0x419c2+_0x28effe)%_0x2b0b1a['length'])['index'],_0x1ab8d3=_0x2b0b1a[_0x492a13];for(;!this['_getUserPresentableContentPartDocumentRange'](_0x169d4d,_0x19a764,_0x1ab8d3);){if(_0x492a13=_0x2b0b1a['at']((_0x492a13+_0x28effe)%_0x2b0b1a['length'])['index'],_0x492a13===_0x419c2)return null;_0x1ab8d3=_0x2b0b1a[_0x492a13];}return _0x492a13;}['_getUserPresentableContentPartDocumentRange'](_0x51aa61,_0x203921,_0x1680bb){const _0x2151dc=_0x203921['changeGroups'];if(!_0x1680bb['hasChanges'])return null;const _0x48e627=_0x2151dc['find'](_0x476e9d=>_0x476e9d['index']==_0x1680bb['index']);if('pending'!==_0x48e627?.['state'])return null;const _0x50eb3b=this['_getDocumentRangeForReplyChanges'](_0x51aa61,_0x1680bb['index']);if(!_0x50eb3b)return _0x203921['setChangeGroupState'](_0x1680bb['index'],'outdated'),null;const {range:_0x4171e1,currentIndex:_0x4cd3f4}=_0x50eb3b;return'$graveyard'==_0x4171e1['root']['rootName']?(_0x203921['setChangeGroupState'](_0x4cd3f4,'outdated'),null):_0x50eb3b['range'];}['_getDocumentRangeForReplyChanges'](_0x3c4ece,_0x289d71){const {reply:_0x1bb04c}=this['getInteractionAndReplyById'](_0x3c4ece),_0xa2ffa4=_0x1bb04c['changeGroups']['filter'](_0x26349f=>'pending'==_0x26349f['state']),_0x10bebb=_0xa2ffa4['map'](_0x3cf66c=>_0x1bb04c['changeGroups']['indexOf'](_0x3cf66c));void 0x0===_0x289d71&&(_0x289d71=_0x10bebb[0x0]);const _0x5692d0=_0x10bebb['indexOf'](_0x289d71);if(-0x1==_0x5692d0)return null;const _0x481772=_0xa2ffa4[_0x5692d0],_0x40fe48=this['_resolveGroupTarget'](_0x1bb04c,_0x481772);if(!_0x40fe48)return null;const {editor:_0x4fc051,root:_0x138e4c,parsedDocumentContent:_0xe6b9d9,serializedDocumentContent:_0x2e9394,version:_0x2ba6d3}=_0x40fe48,_0x1149dc=new Document$1([]),_0x530a84=new Document$1([]);for(const _0x5edb3f of _0x481772['changes']){const _0x3f21f8=this['activeConversation']?.['getSourceByDataId'](_0x5edb3f['id']);if((!_0x3f21f8||_0x3f21f8['editor']===_0x40fe48['editor']&&_0x3f21f8['rootName']===_0x40fe48['root']['rootName'])&&('removed'!=_0x5edb3f['type']&&_0x530a84['children']['push'](_0x5edb3f['node']['cloneNode'](!0x0)),'new'!=_0x5edb3f['type'])){const _0x2ba25b=findOne(_0x557377=>getAttribute(_0x557377,'data-id')==_0x5edb3f['id'],_0xe6b9d9,!0x0);if(!_0x2ba25b)return null;_0x1149dc['children']['push'](_0x2ba25b['cloneNode'](!0x0));}}if(0x0==_0x1149dc['children']['length']){if(_0x481772['changes'][0x0]['anchorId']){const _0x15da47=findByAttribute('data-id',_0x481772['changes'][0x0]['anchorId'],_0xe6b9d9);_0x1149dc['children']['unshift'](_0x15da47['cloneNode'](!0x0)),_0x530a84['children']['unshift'](_0x15da47['cloneNode'](!0x0)),_0x15da47['nextSibling']&&(_0x1149dc['children']['push'](_0x15da47['nextSibling']['cloneNode'](!0x0)),_0x530a84['children']['push'](_0x15da47['nextSibling']['cloneNode'](!0x0)));}else{const _0x17e2ef=_0xe6b9d9['children'][0x0];if(!_0x17e2ef)return null;_0x1149dc['children']['push'](_0x17e2ef['cloneNode'](!0x0)),_0x530a84['children']['push'](_0x17e2ef['cloneNode'](!0x0));}}const _0x28d0f2=_0x4fc051['data']['parse'](_0x2e9394),_0x1b4b4f=serialize$1(_0x1149dc),_0x4a32c7=_0x4fc051['data']['parse'](_0x1b4b4f),_0xdcf3a8=_0x4fc051['data']['parse'](_0x1b4b4f),_0x4e7841=_0x4fc051['model']['createPositionAt'](_0x4a32c7,0x0),_0x1acc10=serialize$1(_0x530a84),_0x2e55dc={'targetEditor':_0x4fc051,'anchor':_0x4e7841,'markDeletions':!0x1},_0x13e2b1=_0x4fc051['plugins']['get'](DocumentCompare)['getDiff'](_0x1b4b4f,_0x1acc10,_0x2e55dc)['getOperations']();if(!_0x13e2b1['length'])return null;_0x4fc051['model']['change'](_0x3f7574=>{for(const _0x8c6459 of _0x13e2b1)if('remove'==_0x8c6459['type']){const _0x558ffa=_0x8c6459['sourcePosition'],_0x3733ae=_0x8c6459['howMany'],_0x225c48=new _DetachOperation(_0x558ffa,_0x3733ae);_0x3f7574['batch']['addOperation'](_0x225c48),_0x4fc051['model']['applyOperation'](_0x225c48);}else'marker'!==_0x8c6459['type']&&(_0x8c6459['baseVersion']=null,_0x8c6459['isDocumentOperation']=!0x1,_0x3f7574['batch']['addOperation'](_0x8c6459),_0x4fc051['model']['applyOperation'](_0x8c6459));});const _0x2e5b46=getMinimalSelection(_0x4fc051,_0x13e2b1,_0x4a32c7);expandSelectionWithContext(_0x4fc051['model'],_0x2e5b46);const _0x170511=_0x2e5b46['getFirstRange']()['start']['path']['slice'](),_0x33e82f=_0x2e5b46['getFirstRange']()['end']['path']['slice'](),_0x43b057=[];let _0x53fa4d=_0x4a32c7,_0x49b9f2=_0xdcf3a8;for(let _0x46b65f=0x0;_0x46b65f<_0x33e82f['length'];_0x46b65f++){const _0x39dfd6=_0x53fa4d['maxOffset']-_0x33e82f[_0x46b65f];_0x43b057[_0x46b65f]=_0x49b9f2['maxOffset']-_0x39dfd6,_0x53fa4d=_0x53fa4d['getChildAtOffset'](_0x33e82f[_0x46b65f]),_0x49b9f2=_0x49b9f2['getChildAtOffset'](_0x43b057[_0x46b65f]);}const _0x124a0d=_0x4fc051['model']['createRange'](_0x4fc051['model']['createPositionFromPath'](_0xdcf3a8,_0x170511),_0x4fc051['model']['createPositionFromPath'](_0xdcf3a8,_0x43b057)),_0x161a59=_0xdcf3a8['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0x58c22f=Array['from'](_0x28d0f2['getChildren']())['find'](_0x220866=>_0x220866['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x161a59),_0x3ead94=_0x58c22f['getPath'](),_0x4018cc=_0x124a0d['start']['path']['slice'](),_0x4e2b69=_0x124a0d['end']['path']['slice']();_0x4018cc[0x0]=_0x3ead94[0x0]+_0x4018cc[0x0],_0x4e2b69[0x0]=_0x3ead94[0x0]+_0x4e2b69[0x0];let _0x18eeda=_0x4fc051['model']['createRange'](_0x4fc051['model']['createPositionFromPath'](_0x138e4c,_0x4018cc),_0x4fc051['model']['createPositionFromPath'](_0x138e4c,_0x4e2b69));const _0x4d3339=_0x4fc051['model']['document']['history']['getOperations'](_0x2ba6d3);for(const _0x2a2263 of _0x4d3339)_0x18eeda=ModelRange['_createFromRanges'](_0x18eeda['getTransformedByOperation'](_0x2a2263));return{'range':_0x18eeda,'currentIndex':_0x289d71};}['_integrateEditorBalloon'](_0x3cb13f){if(!_0x3cb13f['plugins']['has']('AIChatBalloon'))return;const _0x13ac11=_0x3cb13f['plugins']['get']('AIChatBalloon');this['_wiredBalloons']['has'](_0x13ac11)||(this['_wiredBalloons']['add'](_0x13ac11),this['_aiChatBalloon']||(this['_aiChatBalloon']=_0x13ac11),_0x13ac11['bind']('showDiff')['to'](this,'_aiChatBalloonShowDiff'),this['listenTo'](_0x13ac11,'toggleSuggestionDisplayMode',()=>{const {replyId:_0x335757,partIndex:_0x376ff5}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x2047a1}=this['getInteractionAndReplyById'](_0x335757),_0x118870=_0x2047a1['changeGroups']['find'](_0x1464fd=>_0x1464fd['index']===_0x376ff5),_0x3aa8a6=_0x118870?this['_resolveGroupTarget'](_0x2047a1,_0x118870):null,_0x37c220=_0x2047a1['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x376ff5,'editor':_0x3aa8a6?.['editor']??getEditorFromContext(this['context'])});(this['_activeBalloon']??_0x13ac11)['updateContent']({'part':_0x37c220[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](_0x13ac11,'applySuggestion',()=>{const {replyId:_0x3b86e4,partIndex:_0x336d66}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x3b86e4,'partIndex':_0x336d66}),(this['_activeBalloon']??_0x13ac11)['setState']('accepted');}),this['listenTo'](_0x13ac11,'insertSuggestion',()=>{const {replyId:_0x19a3c9,partIndex:_0x3b9521}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0x19a3c9,'partIndex':_0x3b9521}),(this['_activeBalloon']??_0x13ac11)['setState']('accepted');}),this['listenTo'](_0x13ac11,'rejectSuggestion',()=>{const {replyId:_0x58bb9f,partIndex:_0x265d47}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x58bb9f,'partIndex':_0x265d47}),(this['_activeBalloon']??_0x13ac11)['setState']('rejected');}),this['listenTo'](_0x13ac11,'showNext',()=>{const {replyId:_0x3e932d,partIndex:_0x4c0e6c}=this['_currentPreviewedChangeGroup'],_0x118391=this['_getPresentableSiblingContentPartIndex'](_0x3e932d,_0x4c0e6c,'next');null!==_0x118391&&this['_openBalloonFor'](_0x3e932d,_0x118391);}),this['listenTo'](_0x13ac11,'showPrevious',()=>{const {replyId:_0x14ab4d,partIndex:_0x33377f}=this['_currentPreviewedChangeGroup'],_0x461802=this['_getPresentableSiblingContentPartIndex'](_0x14ab4d,_0x33377f,'previous');null!==_0x461802&&this['_openBalloonFor'](_0x14ab4d,_0x461802);}),this['listenTo'](_0x13ac11,'dialogClosed',(_0x43344f,{id:_0x2f067f})=>{if('aiChatBalloon'!==_0x2f067f)return;const {replyId:_0x5196c5,partIndex:_0x870667}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x5196c5,'index':_0x870667,'isActive':!0x1}),this['_activeBalloon']===_0x13ac11&&(this['_activeBalloon']=void 0x0);}));}['_integrateEditor'](_0x151dbf){if(this['_integrateEditorBalloon'](_0x151dbf),_0x151dbf['plugins']['has']('Undo')){const _0x3bda53=_0x151dbf['commands']['get']('undo'),_0x18f685=_0x151dbf['commands']['get']('redo');this['listenTo'](_0x3bda53,'revert',(_0x2f4f20,_0x55db7d,_0x41553b)=>{const _0xcba6b8=this['_batchToChanges']['get'](_0x55db7d);if(!_0xcba6b8)return;const _0x28e2ac=this['activeConversation']['getInteraction'](_0xcba6b8['interactionId']),_0x66484c=_0x28e2ac?.['getReply'](_0xcba6b8['replyId']);this['_batchToChanges']['delete'](_0x55db7d),_0x28e2ac&&_0x66484c&&(_0xcba6b8['indexes']['forEach'](_0x5dacc4=>_0x66484c['setChangeGroupState'](_0x5dacc4,'pending')),this['_batchToChanges']['set'](_0x41553b,_0xcba6b8));}),this['listenTo'](_0x18f685,'revert',(_0x3efcc9,_0x19f883,_0x39e56d)=>{const _0x1e2bf0=this['_batchToChanges']['get'](_0x19f883);if(!_0x1e2bf0)return;const _0x144e6d=this['activeConversation']['getInteraction'](_0x1e2bf0['interactionId']),_0x28c7b7=_0x144e6d?.['getReply'](_0x1e2bf0['replyId']);this['_batchToChanges']['delete'](_0x19f883),_0x144e6d&&_0x28c7b7&&(_0x1e2bf0['indexes']['forEach'](_0x38d4dd=>_0x28c7b7['setChangeGroupState'](_0x38d4dd,'accepted')),this['_batchToChanges']['set'](_0x39e56d,_0x1e2bf0));});}const _0x284b0f=_0x151dbf['config']['get']('ai.chat.context');_0x284b0f['alwaysAddSelection']&&_0x284b0f['document']['enabled']&&this['listenTo'](_0x151dbf['model']['document']['selection'],'change:range',(_0x2b8104,_0x5c8a62)=>{if(!_0x5c8a62['directChange'])return;'chat'===_0x151dbf['plugins']['get']('AITabs')['view']['activeTab']&&(_0x151dbf['model']['hasContent'](_0x151dbf['model']['document']['selection'])?this['addSelectionToChatContext']():this['removeSelectionFromChatContext']());});}async['_getLastCreatedConversationId'](){const _0x39b5af=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x34cd69=await _0x39b5af['getConversations']();return _0x34cd69['length']?_0x34cd69[0x0]['id']:'new';}catch(_0x4aca40){return this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':uid()}),this['_logError'](new CKEditorError('ai-chat-conversation-init-failed',this,{'error':_0x4aca40})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}async['_startConversationSafely'](_0x17d3c2={}){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x17d3c2);}catch(_0x2599e0){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x17d3c2['id']||uid()}),console['error'](_0x2599e0),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation']({id:_0x3d66e4,modelId:_0x2cb0b0}={}){this['_activeBalloon']?.['close'](),this['_activeBalloon']=void 0x0,this['_currentPreviewedChangeGroup']=null;let _0x1ba3ca=_0x2cb0b0;_0x1ba3ca||(_0x3d66e4||!this['activeConversation']?_0x1ba3ca=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x1ba3ca=this['activeConversation']['selectedModel']['id'])),await this['_stopLastInteraction']();const _0x5df34c=this['getGroupId'](),_0xd921a4=_0x3d66e4||uid();let _0x40ec06;this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x1ba3ca,'conversationId':_0xd921a4,'group':_0x5df34c,'getEditor':()=>getEditorFromContext(this['context']),'getEditors':()=>getEditorsFromContext(this['context']),'locale':this['context']['locale'],'isFromHistory':!!_0x3d66e4}),this['activeConversation']['delegate']('toolDataReceived','interactionCreated','interactionStarted','replyCreated')['to'](this),this['activeConversation']['on']('conversationInitialized',(_0x34e797,_0x23570d)=>{this['_aiChatUi']['createConversation'](_0x23570d),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x3d66e4||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['activeConversation']['on']('uploadProgressChanged',(_0x2c588f,_0x180bcf)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x180bcf['isUploadInProgress']);}),this['activeConversation']['on']('webSearchStarted',()=>{const _0xfdc716=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0xfdc716);}),this['activeConversation']['on']('reasoningStarted',()=>{const _0x16df7d=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x16df7d);}),this['activeConversation']['on']('webSearchFinished',(_0x75f140,_0x357679)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x357679,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x152c37,_0x3745b9)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x3745b9,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{this['_updateReplyContentThrottled']['flush'](),await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x2c6536,_0x1dbfe0)=>{this['_aiChatUi']['removeFeedInteraction'](_0x1dbfe0['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x45a509,_0x5b2f5e,_0x4e6d51)=>{this['_updateConversationTitle'](_0x5b2f5e,_0x4e6d51);}),this['activeConversation']['on']('replyContentUpdated',async(_0x5e1521,_0x2a8340)=>{void 0x0!==_0x40ec06&&_0x40ec06!==_0x2a8340['id']&&this['_updateReplyContentThrottled']['flush'](),_0x40ec06=_0x2a8340['id'],_0x2a8340['isFromHistory']?await this['_updateReplyContent']({'reply':_0x2a8340}):await this['_updateReplyContentThrottled']({'reply':_0x2a8340});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0x576064,{reply:_0x1f6eb5,index:_0x757d15,state:_0x1ed49a})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x1f6eb5['id'],'index':_0x757d15,'state':_0x1ed49a}),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0x1f6eb5['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x757d15&&(this['_activeBalloon']??this['_aiChatBalloon'])?.['setState'](_0x1ed49a);}),this['activeConversation']['on']('contextItemAdded',(_0x36e69f,_0x5ba232)=>{if(this['_aiChatUi']['addContextItem'](_0x5ba232['contextItem'],_0x5ba232['isLoading']),'selection'===_0x5ba232['contextItem']['type']){const _0x41cf67=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection']({'ranges':_0x41cf67,'id':'context','priority':0x1});}}),this['activeConversation']['on']('contextItemRemoved',(_0x524dbc,_0x5817c7)=>{this['_aiChatUi']['removeContextItem'](_0x5817c7['uiId']),'current-document'==_0x5817c7['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x5817c7['type']&&this['_aiEditing']['hideFakeVisualSelection']('context');}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x3ec3fe,_0x128801)=>{this['_aiChatUi']['setContextItemLoading'](_0x128801['contextItem']['uiId'],_0x128801['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x5487c1,_0x592cfe)=>{this['_aiChatUi']['setConversationContext'](_0x592cfe['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x23e389,_0x40c051)=>{this['_aiChatUi']['setAddContextOptions'](_0x40c051['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x34b9ea,_0x612cea)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x612cea['sourceId'],_0x612cea['source'],_0x612cea['resources'],_0x612cea['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x31b31c,_0x113f2b)=>{this['_aiChatUi']['updateResourceState'](_0x113f2b['sourceId'],_0x113f2b['resourceId'],_0x113f2b['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0x461afa,_0x36664b)=>{this['_aiChatUi']['updateCapabilities'](_0x36664b);}),this['activeConversation']['on']('modelSelected',async(_0x55e8ca,_0xe42fe7)=>{const _0x37a3ce=(await this['_aiChatModels']['getAll']())['find'](_0x3725dd=>_0x3725dd['id']===_0xe42fe7['selectedModel']?.['id'])||null;this['_aiChatUi']['setSelectedModel'](_0x37a3ce,_0xe42fe7['isDisabled']);}),this['activeConversation']['on']('error',(_0x23efb0,{error:_0x4976b8,interactionId:_0x14d1a9,fileName:_0x15cecb,url:_0x59a204,sourceId:_0x589b54,sourceLabel:_0x1ecb83})=>{const _0x590908=_0x14d1a9?_0x14d1a9+':'+uid():uid();_0x4976b8['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x590908}):_0x4976b8['message']['startsWith']('ai-chat-conversation-init-failed')||_0x4976b8['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0x15cecb),'id':_0x590908}):_0x4976b8['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x59a204),'id':_0x590908}):_0x4976b8['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x590908}):_0x4976b8['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x590908}):_0x4976b8['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x589b54&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x589b54),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0x1ecb83||'source'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-invalid-request')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-context-unsupported-file-type')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-context-file-too-large')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-context-file-too-many-pages')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES'),'id':_0x590908}),this['_logError'](_0x4976b8)):_0x4976b8['message']['startsWith']('ai-chat-context-form-data-size-limits-exceeded')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED'),'id':_0x590908}),this['_logError'](_0x4976b8)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x590908}),this['_logError'](_0x4976b8));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x3d66e4||await this['activeConversation']['start']();}async['_handleUIUserMessage']({message:_0x31956e,attributes:_0x543e55}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');if(this['activeConversation']['isCurrentDocumentInContext']()){const _0x4c854c=await this['_aiEditing']['getDocumentData']();_0x4c854c['length']>0x1?await this['activeConversation']['updateCurrentDocumentsInContext'](_0x4c854c):await this['activeConversation']['updateCurrentDocumentInContext'](_0x4c854c[0x0]);}this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x31956e,'attributes':_0x543e55});}['_logError'](_0x4f6f35){logError(_0x4f6f35['message']);}['_removeFromContext'](_0x198ec9){this['activeConversation']?.['removeFromContext'](_0x198ec9);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x3b8fb3){const [_0x419b91,_0x346601]=_0x3b8fb3['split'](':'),_0x5c8849=this['activeConversation']['getInteraction'](_0x419b91),_0x1a4f51=_0x5c8849['getReply'](_0x346601);return{'interaction':_0x5c8849,'reply':_0x1a4f51};}['_resolveGroupTarget'](_0x38b4fc,_0x10d980){const _0x30ab68=[..._0x10d980['changes']['filter'](_0x587166=>'context'!==_0x587166['type']),..._0x10d980['changes']['filter'](_0x21a922=>'context'===_0x21a922['type'])];for(const _0x1d6236 of _0x30ab68){const _0x1e2aaa=_0x38b4fc['newNodeAnchorIds']['get'](_0x1d6236['id']),_0xc51d65=this['activeConversation']?.['getSourceByDataId'](_0x1d6236['id'])||this['activeConversation']?.['getSourceByDataId'](_0x1e2aaa)||this['activeConversation']?.['getSourceByDataId'](_0x1d6236['anchorId']??void 0x0);if(_0xc51d65){if('destroyed'===_0xc51d65['editor']['state'])return null;const _0x19768c=_0xc51d65['editor']['model']['document']['getRoot'](_0xc51d65['rootName']);return _0x19768c?{'editor':_0xc51d65['editor'],'root':_0x19768c,'parsedDocumentContent':parse$2(_0xc51d65['content']),'serializedDocumentContent':_0xc51d65['content'],'version':_0xc51d65['version']}:null;}}const _0x350c60=getEditorFromContext(this['context']),_0x3d484c=this['activeConversation']['getInteraction'](_0x38b4fc['interactionId']),_0x4ef77d=_0x3d484c?.['getDocumentContext']();return{'editor':_0x350c60,'root':_0x350c60['model']['document']['getRoot'](),'parsedDocumentContent':_0x38b4fc['documentContextContent'],'serializedDocumentContent':_0x4ef77d?.['content'],'version':_0x4ef77d?.['version']};}['_groupChangesByTarget'](_0x2b73b7,_0x355854){const _0x3b49c7=new Map();for(const _0x12a260 of _0x355854){const _0x5d82d8=this['_resolveGroupTarget'](_0x2b73b7,_0x12a260);if(!_0x5d82d8)continue;const _0x20ca08=(_0x5d82d8['editor']['id']||'e')+'|'+_0x5d82d8['root']['rootName'];let _0x412b1f=_0x3b49c7['get'](_0x20ca08);if(!_0x412b1f){let _0x6c2444;for(const _0x18a9eb of[..._0x12a260['changes']['filter'](_0x273c3d=>'context'!==_0x273c3d['type']),..._0x12a260['changes']['filter'](_0x55e2f6=>'context'===_0x55e2f6['type'])])if(_0x6c2444=this['activeConversation']?.['getDocumentContextSliceByDataId'](_0x18a9eb['id'])||this['activeConversation']?.['getDocumentContextSliceByDataId'](_0x2b73b7['newNodeAnchorIds']['get'](_0x18a9eb['id'])),_0x6c2444)break;_0x412b1f={'target':{'editor':_0x5d82d8['editor'],'root':_0x5d82d8['root']},'slice':_0x6c2444,'groups':[],'groupsIndexes':[]},_0x3b49c7['set'](_0x20ca08,_0x412b1f);}_0x412b1f['groups']['push'](_0x12a260),_0x412b1f['groupsIndexes']['push'](_0x2b73b7['changeGroups']['indexOf'](_0x12a260));}return Array['from'](_0x3b49c7['values']());}['_scrollToSuggestionRange'](_0x178ce5,_0x521466=!0x1,_0x55c49b){const _0x467170={'target':_0x55c49b['editing']['view']['domConverter']['viewRangeToDom'](_0x55c49b['editing']['mapper']['toViewRange'](_0x178ce5)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x521466};_0x521466&&(_0x467170['alignToTop']=!0x0),scrollViewportToShowTarget(_0x467170);}['_updateConversationTitle'](_0x238975,_0x50bedd=!0x1){this['_aiChatUi']['setConversationTitle'](_0x238975||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x50bedd);}['_addFeedItemReply'](_0x478e85){'text'===_0x478e85['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x478e85):this['_aiChatUi']['addFeedItemAISuggestion'](_0x478e85);}async['_updateReplyContent']({reply:_0x1e7e27,renderingStrategy:_0x9e9792}){const {id:_0x4e82ff,interactionId:_0x4d8319,isDone:_0x1b4678,type:_0x1c518f,parsedContent:_0x137f41}=_0x1e7e27,_0x2a1625=_0x4d8319+':'+_0x4e82ff;if('modification'===_0x1c518f){const _0x298b2b=_0x1e7e27['getContentParts']({'showDiff':this['_aiChatUi']['showDiff'],'editor':getEditorFromContext(this['context'])});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x2a1625,'parts':_0x298b2b,'isDone':_0x1b4678,'skipLoadingEffects':_0x1e7e27['isFromHistory']});}else'text'===_0x1c518f&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x2a1625,'parsedContent':_0x137f41,'renderingStrategy':_0x9e9792,'isDone':_0x1b4678});_0x1b4678&&_0x1e7e27['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x2a1625,_0x1e7e27['sources']);}['_updateReplyContentThrottled']=throttle(this['_updateReplyContent']['bind'](this),UPDATE_REPLY_CONTENT_THROTTLE_DELAY);async['_stopLastInteraction'](){const _0x484e9a=this['activeConversation']?.['lastInteraction'];_0x484e9a&&(_0x484e9a['stop'](),this['_aiChatUi']['stopInteraction'](_0x484e9a)),this['_updateReplyContentThrottled']['cancel']();}async['_flushLastInteractionUI'](){const _0x2bdb27=this['activeConversation']?.['lastInteraction'];if(_0x2bdb27){for await(const _0x43a8bb of _0x2bdb27['replies'])this['_aiChatUi']['hasFeedItem'](_0x43a8bb['id'])||this['_addFeedItemReply'](_0x43a8bb),await this['_updateReplyContent']({'reply':_0x43a8bb,'renderingStrategy':'static'});}}['_updateRatings'](_0x55d987){const _0x402fc3={'positiveCount':_0x55d987['changeGroups']['filter'](_0x39a083=>'accepted'===_0x39a083['state'])['length'],'totalCount':_0x55d987['changeGroups']['length'],'modificationId':_0x55d987['id']},_0x2258f0=this['activeConversation']['getInteraction'](_0x55d987['interactionId'])['messageId'];_0x2258f0&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0x2258f0,_0x402fc3);}['_getAIChatFeedAPI'](_0x2109ef){const _0x40a2d8=this['_aiChatUi'],_0x5f351a=()=>{_0x2109ef['resetWebSearchState'](),_0x2109ef['resetReasoningState'](),_0x40a2d8['clearLoadingMessage']();},_0x1c7793=()=>{_0x2109ef['currentReply']&&(_0x2109ef['currentReply']['done'](),_0x2109ef['currentReply']=void 0x0);};return{'insertTextReply':(_0x3e1c98,_0x20180a)=>{_0x1c7793(),_0x5f351a();const _0x1e4efe=_0x2109ef['currentReply']=_0x2109ef['createReply']({'type':'text','interactionId':_0x2109ef['id'],'content':_0x3e1c98,'id':_0x20180a||uid()});return _0x1c7793(),_0x1e4efe;},'insertCustomElement':async(_0x2b3cab,_0x3457cc)=>(_0x1c7793(),_0x5f351a(),_0x40a2d8['addFeedItemCustomElement'](_0x2b3cab,_0x3457cc||uid())),'setLoadingMessage':_0x3b5d3d=>{_0x40a2d8['setLoadingMessage'](_0x3b5d3d);},'clearLoadingMessage':()=>{_0x40a2d8['clearLoadingMessage']();}};}}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection',SKIP_DATA_IDS_FOR_VIEW_ELEMENTS=['br'];class AIEditing extends ContextPlugin{constructor(_0x4136d9){super(_0x4136d9),this['context']['config']['define']('ai.models.showModelSelector',!0x0);}['_outputDataProcessor'];['_fakeSelections']=[];['_sessionId'];['_lastContentFocusedEditor'];static get['pluginName'](){return'AIEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['getLastContentFocusedEditor'](){return this['_lastContentFocusedEditor'];}get['sessionId'](){if(!this['_sessionId']){const _0x53c529=getEditorsFromContext(this['context']),_0x49759b=_0x53c529['find'](_0x412971=>_0x412971['plugins']['has']('RealTimeCollaborationClient'))||_0x53c529[0x0],_0x1c8260=_0x49759b['plugins']['has']('RealTimeCollaborationClient')&&_0x49759b['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x1c8260||uid();}return this['_sessionId'];}async['getDocumentData'](){const _0x2ec7d0=getEditorsFromContext(this['context']);if(!_0x2ec7d0['length'])throw new CKEditorError('ai-get-editor-from-context-no-editor');const _0x5dfe18=[],_0x4b8ce2=new Set();for(const _0x130903 of _0x2ec7d0){const _0x2288c9=_0x130903['config']['get']('roots')||{};for(const _0x4f7ffa of _0x130903['model']['document']['getRoots']()){if('$graveyard'===_0x4f7ffa['rootName'])continue;const _0x525d63=await this['_getDocumentDataForEditorRoot'](_0x130903,_0x4f7ffa,_0x4b8ce2),_0x1faf16=_0x2288c9[_0x4f7ffa['rootName']];let _0x205076;_0x1faf16?.['label']?_0x205076=_0x1faf16['label']:(logWarning('ai-document-root-missing-label',{'editor':_0x130903,'rootConfig':_0x1faf16}),_0x205076=_0x4f7ffa['rootName']),_0x5dfe18['push']({'editor':_0x130903,'rootName':_0x4f7ffa['rootName'],'content':_0x525d63['content'],'version':_0x525d63['version'],'sessionId':this['sessionId'],'channelId':_0x130903['config']['get']('collaboration.channelId'),'selections':_0x525d63['selections'],'name':_0x205076,'description':_0x1faf16?.['description']});}}return _0x5dfe18;}async['_getDocumentDataForEditorRoot'](_0x17e4cc,_0x374da8,_0x5b8089){const _0x274d6c=_0x17e4cc['data']['toView'](_0x374da8,{'convertAiChatSelectionMarker':!0x0}),_0x411d7a=new ViewDowncastWriter(_0x17e4cc['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x274d6c,_0x411d7a,_0x5b8089);let _0x594f26=await this['_getDocumentDataStringFromView'](_0x274d6c,_0x17e4cc);const _0x568f88=this['_getMarkersInDocumentOrder'](_0x17e4cc,_0x374da8),_0x58c356=[];for(const _0x350add of _0x568f88){const _0x1a0503='<'+_0x350add['name']+':start></'+_0x350add['name']+':start>',_0x15cfd2=_0x594f26['indexOf'](_0x1a0503);_0x594f26=_0x594f26['substring'](0x0,_0x15cfd2)+_0x594f26['substring'](_0x15cfd2+_0x1a0503['length']);const _0x59fdd7='<'+_0x350add['name']+':end></'+_0x350add['name']+':end>',_0x16624d=_0x594f26['indexOf'](_0x59fdd7);_0x594f26=_0x594f26['substring'](0x0,_0x16624d)+_0x594f26['substring'](_0x16624d+_0x59fdd7['length']),_0x58c356['push']({'markerName':_0x350add['name'],'start':_0x15cfd2,'end':_0x16624d,'htmlFragment':_0x594f26['substring'](_0x15cfd2,_0x16624d)});}return{'content':_0x594f26,'version':_0x17e4cc['model']['document']['version'],'selections':_0x58c356};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x2f4085,_0x175de7)=>{_0x175de7['on']('ready',()=>{this['_integrateEditor'](_0x175de7);});});}['_setOutputDataProcessor'](_0x11be2c){this['_outputDataProcessor']=_0x11be2c;}async['_getDocumentDataStringFromView'](_0x7192a3,_0x128695){let _0x4b0708;if(this['_outputDataProcessor']){const _0x2a9b5c=_0x128695['data']['processor']['domConverter']['viewToDom'](_0x7192a3),_0x1afd94=await this['_outputDataProcessor'](_0x2a9b5c);_0x4b0708=_0x128695['data']['processor']['htmlWriter']['getHtml'](_0x1afd94);}else _0x4b0708=_0x128695['data']['processor']['toData'](_0x7192a3);return _0x4b0708;}['_integrateEditor'](_0x3beda7){if(!_0x3beda7['config']['get']('collaboration.channelId'))throw new CKEditorError('ai-missing-channel-id',_0x3beda7);_0x3beda7['ui']['focusTracker']['on']('change:isFocused',(_0x23de41,_0x3a0a35,_0x3e4dfd)=>{_0x3e4dfd&&(this['_lastContentFocusedEditor']=_0x3beda7);}),_0x3beda7['on']('destroy',()=>{this['_lastContentFocusedEditor']===_0x3beda7&&(this['_lastContentFocusedEditor']=void 0x0);}),_0x3beda7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':({markerName:_0x1e90c7})=>({'classes':['ck-ai-assistant-ui_theme','ck-fake-ai-selection','ck-fake-ai-selection-'+_0x1e90c7['split'](':')[0x1]],'priority':0xc})}),_0x3beda7['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME+':context','view':(_0x329e2a,{writer:_0x4a0a58,options:_0x45ad64})=>_0x45ad64['convertAiChatSelectionMarker']?_0x4a0a58['createUIElement'](_0x329e2a['markerName']+':'+(_0x329e2a['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x509914){const _0x19c98c=this['_fakeSelections'][0x0]||null;this['_addFakeSelection'](_0x509914);const _0x49d1c3=this['_fakeSelections'][0x0]||null;this['_refreshFakeSelection'](_0x19c98c,_0x49d1c3);}['hideFakeVisualSelection'](_0x12abb4){const _0x2aaa40=this['_fakeSelections'][0x0]||null;this['_removeFakeSelectionById'](_0x12abb4);const _0x56c60d=this['_fakeSelections'][0x0]||null;this['_refreshFakeSelection'](_0x2aaa40,_0x56c60d);}async['modelToDataWithIds'](_0x4b34f8){const _0x33216e=getEditorFromContext(this['context']),_0x26cc52=_0x33216e['data']['toView'](_0x4b34f8),_0x5082de=new ViewDowncastWriter(_0x33216e['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x26cc52,_0x5082de),this['_getDocumentDataStringFromView'](_0x26cc52,_0x33216e);}['_setDataIdsOnChildren'](_0x304522,_0x2ced12,_0x4d896a=new Set()){let _0x271edb=!0x1;for(const _0x1d151e of _0x304522['getChildren']()){if(!_0x1d151e['is']('view:element')||SKIP_DATA_IDS_FOR_VIEW_ELEMENTS['includes'](_0x1d151e['name']))continue;const _0x1b4829=_0x1d151e['is']('view:containerElement'),_0x3afe07=_0x1d151e['is']('view:emptyElement'),_0x3966e5=this['_setDataIdsOnChildren'](_0x1d151e,_0x2ced12,_0x4d896a);if(_0x1d151e['hasAttribute']('data-id')){_0x271edb=!0x0,_0x4d896a['add'](_0x1d151e['getAttribute']('data-id'));continue;}(_0x1b4829||_0x3afe07||_0x3966e5)&&(_0x2ced12['setAttribute']('data-id',this['_nextDataId'](_0x4d896a),_0x1d151e),_0x271edb=!0x0);}return _0x271edb;}['_nextDataId'](_0xcbbb57){let _0x1e1dad;do{_0x1e1dad='';for(let _0x5b861d=0x0;_0x5b861d<0x4;_0x5b861d++)_0x1e1dad+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0xcbbb57['has'](_0x1e1dad));return _0xcbbb57['add'](_0x1e1dad),_0x1e1dad;}['getSelectionText'](){const {model:_0x1310ac}=getEditorFromContext(this['context']),_0x5c066c=_0x1310ac['document']['selection'],_0x320484=[],_0x319a0f=Array['from'](_0x5c066c['getRanges']());_0x319a0f['sort']((_0x46b511,_0x555d91)=>_0x46b511['start']['isBefore'](_0x555d91['start'])?-0x1:0x1);for(const _0x72a1d4 of _0x319a0f)for(const _0x55e7cb of _0x72a1d4['getItems']())_0x55e7cb['is']('$textProxy')?_0x320484['push'](_0x55e7cb['data']):_0x55e7cb['is']('element')&&_0x320484['length']>0x0&&'\x20'!==_0x320484[_0x320484['length']-0x1]&&_0x320484['push']('\x20');return _0x320484['length']?'\x22'+_0x320484['join']('')['trim']()+'\x22':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}['_removeFakeSelectionById'](_0x739ead){for(let _0x23937f=0x0;_0x23937f<this['_fakeSelections']['length'];_0x23937f++)if(this['_fakeSelections'][_0x23937f]['id']==_0x739ead)return void this['_fakeSelections']['splice'](_0x23937f,0x1);}['_addFakeSelection'](_0x188a56){this['_removeFakeSelectionById'](_0x188a56['id']),insertToPriorityArray(this['_fakeSelections'],_0x188a56);}['_refreshFakeSelection'](_0x15d442,_0x30f829){if(_0x15d442==_0x30f829)return;const _0x26c5ca=_0x15d442?this['_getEditorForFakeSelection'](_0x15d442):null,_0x4bf1e2=_0x30f829?this['_getEditorForFakeSelection'](_0x30f829):null,_0x1690f8=(_0x3019f7,_0x46ba93)=>{const _0x3967b2=_0x46ba93['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);for(const _0x46ddca of _0x3967b2)_0x3019f7['removeMarker'](_0x46ddca);},_0x2d60ec=(_0x98398b,_0x368aa5,_0x56da97)=>{const _0x407690=_0x368aa5['model'];for(let _0xdc9604=0x0;_0xdc9604<_0x56da97['ranges']['length'];_0xdc9604++){let _0x4a4eb0=_0x56da97['ranges'][_0xdc9604];const _0x323435=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x56da97['id']+':'+_0xdc9604;if(_0x4a4eb0['start']['isAtEnd']){const _0x33a4fa=_0x4a4eb0['start']['getLastMatchingPosition'](({item:_0x3560ac})=>!_0x407690['schema']['isContent'](_0x3560ac),{'boundaries':_0x4a4eb0});_0x4a4eb0=_0x98398b['createRange'](_0x33a4fa,_0x4a4eb0['end']);}_0x98398b['addMarker'](_0x323435,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4a4eb0});}};_0x26c5ca&&_0x4bf1e2&&_0x26c5ca===_0x4bf1e2&&_0x30f829?_0x26c5ca['model']['change'](_0x11b2d4=>{_0x1690f8(_0x11b2d4,_0x26c5ca),_0x2d60ec(_0x11b2d4,_0x4bf1e2,_0x30f829);}):(_0x26c5ca&&_0x26c5ca['model']['change'](_0x2ffc99=>_0x1690f8(_0x2ffc99,_0x26c5ca)),_0x4bf1e2&&_0x30f829&&_0x4bf1e2['model']['change'](_0x4e0fa1=>_0x2d60ec(_0x4e0fa1,_0x4bf1e2,_0x30f829)));}['_getEditorForFakeSelection'](_0x4add20){if(!_0x4add20['ranges']['length'])return getEditorFromContext(this['context']);const _0x4fc992=_0x4add20['ranges'][0x0]['root']['document'];return getEditorsFromContext(this['context'])['find'](_0x4ba7bc=>_0x4ba7bc['model']['document']===_0x4fc992)??getEditorFromContext(this['context']);}['_getMarkersInDocumentOrder'](_0x33deeb,_0x49cbf4){const _0x4d1c6d=Array['from'](_0x33deeb['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME+':context')),_0x28a81d=_0x49cbf4?_0x4d1c6d['filter'](_0x4f5c47=>{const _0x2d6096=_0x4f5c47['getRange']();return _0x2d6096&&_0x2d6096['root']['rootName']===_0x49cbf4['rootName'];}):_0x4d1c6d;return _0x28a81d['sort']((_0x129c52,_0x1165ae)=>_0x129c52['getStart']()['isBefore'](_0x1165ae['getStart']())?-0x1:_0x129c52['getStart']()['isAfter'](_0x1165ae['getStart']())?0x1:0x0);}}const AI_SUGGESTION_UI_EVENT_NAMES=['showChangeInText','insertSuggestion','applySuggestion','rejectSuggestion','mouseOverSuggestion','mouseLeaveSuggestion','toggleSuggestionDisplayMode','like','dislike'],AI_CHAT_UI_EVENT_NAMES=[...AI_SUGGESTION_UI_EVENT_NAMES,'startConversation','sendUserMessage','abortPromptStream','addDocumentToContext','addFileToContext','addUrlToContext','executeCustomItemCallback','addResourceToContext','removeContextItem','loadSourceResources','toggleWebSearch','toggleReasoning','selectModel'];var DOCUMENT_FRAGMENT_NODE=0xb,range;function morphAttrs(_0x155478,_0x5286eb){var _0x2bbbd1,_0x4cafbb,_0x59a25c,_0x192120,_0x4e57d5=_0x5286eb['attributes'];if(_0x5286eb['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0x155478['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x58426d=_0x4e57d5['length']-0x1;_0x58426d>=0x0;_0x58426d--)_0x4cafbb=(_0x2bbbd1=_0x4e57d5[_0x58426d])['name'],_0x59a25c=_0x2bbbd1['namespaceURI'],_0x192120=_0x2bbbd1['value'],_0x59a25c?(_0x4cafbb=_0x2bbbd1['localName']||_0x4cafbb,_0x155478['getAttributeNS'](_0x59a25c,_0x4cafbb)!==_0x192120&&('xmlns'===_0x2bbbd1['prefix']&&(_0x4cafbb=_0x2bbbd1['name']),_0x155478['setAttributeNS'](_0x59a25c,_0x4cafbb,_0x192120))):_0x155478['getAttribute'](_0x4cafbb)!==_0x192120&&_0x155478['setAttribute'](_0x4cafbb,_0x192120);for(var _0x5b0f48=_0x155478['attributes'],_0x208e77=_0x5b0f48['length']-0x1;_0x208e77>=0x0;_0x208e77--)_0x4cafbb=(_0x2bbbd1=_0x5b0f48[_0x208e77])['name'],(_0x59a25c=_0x2bbbd1['namespaceURI'])?(_0x4cafbb=_0x2bbbd1['localName']||_0x4cafbb,_0x5286eb['hasAttributeNS'](_0x59a25c,_0x4cafbb)||_0x155478['removeAttributeNS'](_0x59a25c,_0x4cafbb)):_0x5286eb['hasAttribute'](_0x4cafbb)||_0x155478['removeAttribute'](_0x4cafbb);}}var NS_XHTML='http://www.w3.org/1999/xhtml',doc$1='undefined'==typeof document?void 0x0:document,HAS_TEMPLATE_SUPPORT=!!doc$1&&'content'in doc$1['createElement']('template'),HAS_RANGE_SUPPORT=!!doc$1&&doc$1['createRange']&&'createContextualFragment'in doc$1['createRange']();function createFragmentFromTemplate(_0x1827c6){var _0x373b6c=doc$1['createElement']('template');return _0x373b6c['innerHTML']=_0x1827c6,_0x373b6c['content']['childNodes'][0x0];}function createFragmentFromRange(_0x5eb5fe){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x5eb5fe)['childNodes'][0x0];}function createFragmentFromWrap(_0x3405d2){var _0x58cf94=doc$1['createElement']('body');return _0x58cf94['innerHTML']=_0x3405d2,_0x58cf94['childNodes'][0x0];}function toElement(_0x512254){return _0x512254=_0x512254['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0x512254):HAS_RANGE_SUPPORT?createFragmentFromRange(_0x512254):createFragmentFromWrap(_0x512254);}function compareNodeNames(_0x53e13c,_0x3125be){var _0x42a1d6,_0x148ce7,_0x1058c6=_0x53e13c['nodeName'],_0x2da96b=_0x3125be['nodeName'];return _0x1058c6===_0x2da96b||(_0x42a1d6=_0x1058c6['charCodeAt'](0x0),_0x148ce7=_0x2da96b['charCodeAt'](0x0),_0x42a1d6<=0x5a&&_0x148ce7>=0x61?_0x1058c6===_0x2da96b['toUpperCase']():_0x148ce7<=0x5a&&_0x42a1d6>=0x61&&_0x2da96b===_0x1058c6['toUpperCase']());}function createElementNS(_0x1b695d,_0x5f3fc7){return _0x5f3fc7&&_0x5f3fc7!==NS_XHTML?doc$1['createElementNS'](_0x5f3fc7,_0x1b695d):doc$1['createElement'](_0x1b695d);}function moveChildren(_0xca73a1,_0x346c94){for(var _0x10e728=_0xca73a1['firstChild'];_0x10e728;){var _0x4ff33f=_0x10e728['nextSibling'];_0x346c94['appendChild'](_0x10e728),_0x10e728=_0x4ff33f;}return _0x346c94;}function syncBooleanAttrProp(_0x6b65ae,_0x5caa6,_0x1164ed){_0x6b65ae[_0x1164ed]!==_0x5caa6[_0x1164ed]&&(_0x6b65ae[_0x1164ed]=_0x5caa6[_0x1164ed],_0x6b65ae[_0x1164ed]?_0x6b65ae['setAttribute'](_0x1164ed,''):_0x6b65ae['removeAttribute'](_0x1164ed));}var specialElHandlers={'OPTION':function(_0x5bc982,_0x49e4cc){var _0x40f13b=_0x5bc982['parentNode'];if(_0x40f13b){var _0x49e087=_0x40f13b['nodeName']['toUpperCase']();'OPTGROUP'===_0x49e087&&(_0x49e087=(_0x40f13b=_0x40f13b['parentNode'])&&_0x40f13b['nodeName']['toUpperCase']()),'SELECT'!==_0x49e087||_0x40f13b['hasAttribute']('multiple')||(_0x5bc982['hasAttribute']('selected')&&!_0x49e4cc['selected']&&(_0x5bc982['setAttribute']('selected','selected'),_0x5bc982['removeAttribute']('selected')),_0x40f13b['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x5bc982,_0x49e4cc,'selected');},'INPUT':function(_0xbd63b0,_0x2624b5){syncBooleanAttrProp(_0xbd63b0,_0x2624b5,'checked'),syncBooleanAttrProp(_0xbd63b0,_0x2624b5,'disabled'),_0xbd63b0['value']!==_0x2624b5['value']&&(_0xbd63b0['value']=_0x2624b5['value']),_0x2624b5['hasAttribute']('value')||_0xbd63b0['removeAttribute']('value');},'TEXTAREA':function(_0xa0ad0c,_0x3f078f){var _0x514831=_0x3f078f['value'];_0xa0ad0c['value']!==_0x514831&&(_0xa0ad0c['value']=_0x514831);var _0x492367=_0xa0ad0c['firstChild'];if(_0x492367){var _0x1f9efe=_0x492367['nodeValue'];if(_0x1f9efe==_0x514831||!_0x514831&&_0x1f9efe==_0xa0ad0c['placeholder'])return;_0x492367['nodeValue']=_0x514831;}},'SELECT':function(_0x106870,_0x52c0b6){if(!_0x52c0b6['hasAttribute']('multiple')){for(var _0x45aea4,_0x11c2b5,_0x3f1040=-0x1,_0x4a4f04=0x0,_0x2ef83e=_0x106870['firstChild'];_0x2ef83e;)if('OPTGROUP'===(_0x11c2b5=_0x2ef83e['nodeName']&&_0x2ef83e['nodeName']['toUpperCase']()))(_0x2ef83e=(_0x45aea4=_0x2ef83e)['firstChild'])||(_0x2ef83e=_0x45aea4['nextSibling'],_0x45aea4=null);else{if('OPTION'===_0x11c2b5){if(_0x2ef83e['hasAttribute']('selected')){_0x3f1040=_0x4a4f04;break;}_0x4a4f04++;}!(_0x2ef83e=_0x2ef83e['nextSibling'])&&_0x45aea4&&(_0x2ef83e=_0x45aea4['nextSibling'],_0x45aea4=null);}_0x106870['selectedIndex']=_0x3f1040;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0x441822){if(_0x441822)return _0x441822['getAttribute']&&_0x441822['getAttribute']('id')||_0x441822['id'];}function morphdomFactory(_0x11f432){return function(_0x27f568,_0x4e34bd,_0x43a150){if(_0x43a150||(_0x43a150={}),'string'==typeof _0x4e34bd){if('#document'===_0x27f568['nodeName']||'HTML'===_0x27f568['nodeName']||'BODY'===_0x27f568['nodeName']){var _0x5e4d7b=_0x4e34bd;(_0x4e34bd=doc$1['createElement']('html'))['innerHTML']=_0x5e4d7b;}else _0x4e34bd=toElement(_0x4e34bd);}else _0x4e34bd['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x4e34bd=_0x4e34bd['firstElementChild']);var _0x1dc3ef=_0x43a150['getNodeKey']||defaultGetNodeKey,_0x5d3592=_0x43a150['onBeforeNodeAdded']||noop,_0x2a9ed7=_0x43a150['onNodeAdded']||noop,_0x34cb18=_0x43a150['onBeforeElUpdated']||noop,_0x481fd6=_0x43a150['onElUpdated']||noop,_0x2fd94e=_0x43a150['onBeforeNodeDiscarded']||noop,_0x207a1b=_0x43a150['onNodeDiscarded']||noop,_0x3544f1=_0x43a150['onBeforeElChildrenUpdated']||noop,_0x30186c=_0x43a150['skipFromChildren']||noop,_0x1bc570=_0x43a150['addChild']||function(_0x5a4045,_0x12620b){return _0x5a4045['appendChild'](_0x12620b);},_0x3b8a6f=!0x0===_0x43a150['childrenOnly'],_0x156a01=Object['create'](null),_0x484cb7=[];function _0x15ef36(_0x3fd671){_0x484cb7['push'](_0x3fd671);}function _0x2d95b9(_0x435ca3,_0x1de641){if(_0x435ca3['nodeType']===ELEMENT_NODE)for(var _0xc2818f=_0x435ca3['firstChild'];_0xc2818f;){var _0x56d002=void 0x0;_0x1de641&&(_0x56d002=_0x1dc3ef(_0xc2818f))?_0x15ef36(_0x56d002):(_0x207a1b(_0xc2818f),_0xc2818f['firstChild']&&_0x2d95b9(_0xc2818f,_0x1de641)),_0xc2818f=_0xc2818f['nextSibling'];}}function _0x462eb2(_0x23fb1c,_0x5e281d,_0x257285){!0x1!==_0x2fd94e(_0x23fb1c)&&(_0x5e281d&&_0x5e281d['removeChild'](_0x23fb1c),_0x207a1b(_0x23fb1c),_0x2d95b9(_0x23fb1c,_0x257285));}function _0x2161ad(_0x37d806){if(_0x37d806['nodeType']===ELEMENT_NODE||_0x37d806['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x3548df=_0x37d806['firstChild'];_0x3548df;){var _0x5d350b=_0x1dc3ef(_0x3548df);_0x5d350b&&(_0x156a01[_0x5d350b]=_0x3548df),_0x2161ad(_0x3548df),_0x3548df=_0x3548df['nextSibling'];}}function _0x349f40(_0x1d8fe5){_0x2a9ed7(_0x1d8fe5);for(var _0x4cfa56=_0x1d8fe5['firstChild'];_0x4cfa56;){var _0x439fd1=_0x4cfa56['nextSibling'],_0x5bf88b=_0x1dc3ef(_0x4cfa56);if(_0x5bf88b){var _0x43c7c3=_0x156a01[_0x5bf88b];_0x43c7c3&&compareNodeNames(_0x4cfa56,_0x43c7c3)?(_0x4cfa56['parentNode']['replaceChild'](_0x43c7c3,_0x4cfa56),_0x199098(_0x43c7c3,_0x4cfa56)):_0x349f40(_0x4cfa56);}else _0x349f40(_0x4cfa56);_0x4cfa56=_0x439fd1;}}function _0x199098(_0x5aa2b3,_0xc5774b,_0x297ecd){var _0xf65524=_0x1dc3ef(_0xc5774b);if(_0xf65524&&delete _0x156a01[_0xf65524],!_0x297ecd){var _0xa87748=_0x34cb18(_0x5aa2b3,_0xc5774b);if(!0x1===_0xa87748)return;if(_0xa87748 instanceof HTMLElement&&_0x2161ad(_0x5aa2b3=_0xa87748),_0x11f432(_0x5aa2b3,_0xc5774b),_0x481fd6(_0x5aa2b3),!0x1===_0x3544f1(_0x5aa2b3,_0xc5774b))return;}'TEXTAREA'!==_0x5aa2b3['nodeName']?function(_0x543c4d,_0x17580c){var _0x576548,_0x242b04,_0x3b9a37,_0x651da,_0x180c9a,_0x3053db=_0x30186c(_0x543c4d,_0x17580c),_0x31a09f=_0x17580c['firstChild'],_0x564c04=_0x543c4d['firstChild'];t:for(;_0x31a09f;){for(_0x651da=_0x31a09f['nextSibling'],_0x576548=_0x1dc3ef(_0x31a09f);!_0x3053db&&_0x564c04;){if(_0x3b9a37=_0x564c04['nextSibling'],_0x31a09f['isSameNode']&&_0x31a09f['isSameNode'](_0x564c04)){_0x31a09f=_0x651da,_0x564c04=_0x3b9a37;continue t;}_0x242b04=_0x1dc3ef(_0x564c04);var _0x58b88e=_0x564c04['nodeType'],_0x2f50a3=void 0x0;if(_0x58b88e===_0x31a09f['nodeType']&&(_0x58b88e===ELEMENT_NODE?(_0x576548?_0x576548!==_0x242b04&&((_0x180c9a=_0x156a01[_0x576548])?_0x3b9a37===_0x180c9a?_0x2f50a3=!0x1:(_0x543c4d['insertBefore'](_0x180c9a,_0x564c04),_0x242b04?_0x15ef36(_0x242b04):_0x462eb2(_0x564c04,_0x543c4d,!0x0),_0x242b04=_0x1dc3ef(_0x564c04=_0x180c9a)):_0x2f50a3=!0x1):_0x242b04&&(_0x2f50a3=!0x1),(_0x2f50a3=!0x1!==_0x2f50a3&&compareNodeNames(_0x564c04,_0x31a09f))&&_0x199098(_0x564c04,_0x31a09f)):_0x58b88e!==TEXT_NODE&&_0x58b88e!=COMMENT_NODE||(_0x2f50a3=!0x0,_0x564c04['nodeValue']!==_0x31a09f['nodeValue']&&(_0x564c04['nodeValue']=_0x31a09f['nodeValue']))),_0x2f50a3){_0x31a09f=_0x651da,_0x564c04=_0x3b9a37;continue t;}_0x242b04?_0x15ef36(_0x242b04):_0x462eb2(_0x564c04,_0x543c4d,!0x0),_0x564c04=_0x3b9a37;}if(_0x576548&&(_0x180c9a=_0x156a01[_0x576548])&&compareNodeNames(_0x180c9a,_0x31a09f))_0x3053db||_0x1bc570(_0x543c4d,_0x180c9a),_0x199098(_0x180c9a,_0x31a09f);else{var _0x4f249e=_0x5d3592(_0x31a09f);!0x1!==_0x4f249e&&(_0x4f249e&&(_0x31a09f=_0x4f249e),_0x31a09f['actualize']&&(_0x31a09f=_0x31a09f['actualize'](_0x543c4d['ownerDocument']||doc$1)),_0x1bc570(_0x543c4d,_0x31a09f),_0x349f40(_0x31a09f));}_0x31a09f=_0x651da,_0x564c04=_0x3b9a37;}!function(_0x2bb3bc,_0x5718d9,_0x31a80a){for(;_0x5718d9;){var _0x18e5f1=_0x5718d9['nextSibling'];(_0x31a80a=_0x1dc3ef(_0x5718d9))?_0x15ef36(_0x31a80a):_0x462eb2(_0x5718d9,_0x2bb3bc,!0x0),_0x5718d9=_0x18e5f1;}}(_0x543c4d,_0x564c04,_0x242b04);var _0x3bf546=specialElHandlers[_0x543c4d['nodeName']];_0x3bf546&&_0x3bf546(_0x543c4d,_0x17580c);}(_0x5aa2b3,_0xc5774b):specialElHandlers['TEXTAREA'](_0x5aa2b3,_0xc5774b);}_0x2161ad(_0x27f568);var _0x58e684=_0x27f568,_0x2faf84=_0x58e684['nodeType'],_0x568dae=_0x4e34bd['nodeType'];if(!_0x3b8a6f){if(_0x2faf84===ELEMENT_NODE)_0x568dae===ELEMENT_NODE?compareNodeNames(_0x27f568,_0x4e34bd)||(_0x207a1b(_0x27f568),_0x58e684=moveChildren(_0x27f568,createElementNS(_0x4e34bd['nodeName'],_0x4e34bd['namespaceURI']))):_0x58e684=_0x4e34bd;else{if(_0x2faf84===TEXT_NODE||_0x2faf84===COMMENT_NODE){if(_0x568dae===_0x2faf84)return _0x58e684['nodeValue']!==_0x4e34bd['nodeValue']&&(_0x58e684['nodeValue']=_0x4e34bd['nodeValue']),_0x58e684;_0x58e684=_0x4e34bd;}}}if(_0x58e684===_0x4e34bd)_0x207a1b(_0x27f568);else{if(_0x4e34bd['isSameNode']&&_0x4e34bd['isSameNode'](_0x58e684))return;if(_0x199098(_0x58e684,_0x4e34bd,_0x3b8a6f),_0x484cb7)for(var _0x23ece7=0x0,_0x45aac7=_0x484cb7['length'];_0x23ece7<_0x45aac7;_0x23ece7++){var _0x4e2761=_0x156a01[_0x484cb7[_0x23ece7]];_0x4e2761&&_0x462eb2(_0x4e2761,_0x4e2761['parentNode'],!0x1);}}return!_0x3b8a6f&&_0x58e684!==_0x27f568&&_0x27f568['parentNode']&&(_0x58e684['actualize']&&(_0x58e684=_0x58e684['actualize'](_0x27f568['ownerDocument']||doc$1)),_0x27f568['parentNode']['replaceChild'](_0x58e684,_0x27f568)),_0x58e684;};}var morphdom=morphdomFactory(morphAttrs);function createAbortableTimeout(_0x1aa60b){const _0x4a04b7=new AbortController();return{'promise':new Promise((_0x28a578,_0x540390)=>{const _0x375cb9=setTimeout(_0x28a578,_0x1aa60b);_0x4a04b7['signal']['addEventListener']('abort',()=>{clearTimeout(_0x375cb9),_0x540390();});}),'abortController':_0x4a04b7};}const DEFAULT_FADE_IN_ANIMATION='animation:\x20ck-html-streamer-fade-in\x20.3s',DEFAULT_WORD_DELAY=0xa;class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;['lastUpdateTime']=0x0;constructor(_0x404b80){this['options']={'delay':_0x404b80?.['delay']??DEFAULT_WORD_DELAY,'textNodeStyle':_0x404b80?.['textNodeStyle']??DEFAULT_FADE_IN_ANIMATION};}async['stream']({document:_0xd5e102,targetElement:_0x2ae575,abortSignal:_0x30699a}){this['isStreaming']&&this['stop'](),_0x30699a?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0xd5e102,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0x4c2e24=0x0;_0x4c2e24<this['currentIndex'];_0x4c2e24++)this['nodesList'][_0x4c2e24]['shouldBeStreamed']=!0x0;do{const _0x153965=Date['now'](),_0x28f568=this['nodesList'][this['currentIndex']],_0x2abcb8=_0x153965-this['lastUpdateTime'];if(_0x28f568){_0x28f568['shouldBeStreamed']=!0x0;let _0x1e1b58=_0x28f568['parent'];for(;_0x1e1b58;)_0x1e1b58['shouldBeStreamed']=!0x0,_0x1e1b58=_0x1e1b58['parent'];}if(_0x2abcb8<this['options']['delay'])try{const {promise:_0x130a22,abortController:_0xaa546d}=createAbortableTimeout(this['options']['delay']-_0x2abcb8);this['timeoutAbortController']=_0xaa546d,await _0x130a22;}catch(_0x5a5391){return;}morphdom(_0x2ae575,'<'+_0x2ae575['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x2ae575['tagName']+'>',{'childrenOnly':!0x0}),this['currentIndex']++,this['lastUpdateTime']=Date['now']();}while(this['currentIndex']<this['nodesList']['length']);this['currentIndex']=this['nodesList']['length'],this['isStreaming']=!0x1;}['reset'](){this['isStreaming']=!0x1,this['document']=null,this['nodesList']=[],this['currentIndex']=0x0,this['timeoutAbortController']=null;}['cleanUpAnimations']({targetElement:_0x5ad9cc}){Array['from'](_0x5ad9cc['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0x37b1da=>{_0x37b1da['replaceWith'](_0x37b1da['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x55eeb9){let _0x355539='';if(isParsedDocumentNode(_0x55eeb9)){for(const _0xf6b8e3 of _0x55eeb9['children'])_0x355539+=this['renderNode'](_0xf6b8e3);}else{if(isParsedElementNode(_0x55eeb9)){if(!_0x55eeb9['shouldBeStreamed'])return'';const _0x187fe1=_0x55eeb9,_0x58dc63=Object['entries'](_0x187fe1['attribs'])['map'](([_0x2a19df,_0x478bf6])=>_0x2a19df+'=\x22'+_0x478bf6+'\x22')['join']('\x20');_0x355539+='<'+_0x187fe1['tagName']+(_0x58dc63?'\x20'+_0x58dc63:'')+'>';for(const _0xa85582 of getChildren$1(_0x187fe1))_0x355539+=this['renderNode'](_0xa85582);_0x355539+='</'+_0x187fe1['tagName']+'>';}else{if(!isParsedTextNode(_0x55eeb9))return'';if(!_0x55eeb9['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x55eeb9)?_0x355539+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x55eeb9])):_0x355539+=render(_0x55eeb9);}}return _0x355539;}['getParsedDocumentNodeList'](){const _0x5edb05=[];return traverseParsedDocument(this['document'],_0x14cced=>{if(isParsedTextNode(_0x14cced)){const _0x31e598=this['splitTextNodeIntoWordNodes'](_0x14cced);_0x31e598['length']&&_0x5edb05['push'](..._0x31e598);}_0x14cced['isWordSplitSource']||_0x14cced['isWordSplitResult']||_0x5edb05['push'](_0x14cced);}),_0x5edb05;}['splitTextNodeIntoWordNodes'](_0x434322){if(_0x434322['isWordSplitSource']||_0x434322['isWordSplitResult'])return[];const _0x3089b4=textContent(_0x434322)['match'](/(?:\s*\S+\s*)/g),_0x147cd5=[];if(_0x3089b4&&_0x3089b4['length']>0x1){for(const _0x5a6d03 of _0x3089b4){const _0x3191c1=new Text$2(_0x5a6d03);_0x3191c1['isWordSplitResult']=!0x0,prepend(_0x434322,_0x3191c1),_0x147cd5['push'](_0x3191c1);}_0x434322['isWordSplitSource']=!0x0,removeElement(_0x434322);}return _0x147cd5;}}const ELEMENTS_THAT_ALLOW_SPANS=['p','li','td','th','span','h1','h2','h3','h4','h5','h6','b','strong','i','em','mark','del','ins','sup','sub','a','code','div'];function traverseParsedDocument(_0x4e86c3,_0x4337d8){const _0x5a5781=_0xa06c19=>{if(_0x4337d8(_0xa06c19),_0xa06c19 instanceof NodeWithChildren)for(let _0x5822ab=0x0;_0x5822ab<_0xa06c19['children']['length'];_0x5822ab++){const _0x3e5a04=_0xa06c19['children'][_0x5822ab];_0x5a5781(_0x3e5a04);}};for(let _0x2c5013=0x0;_0x2c5013<_0x4e86c3['children']['length'];_0x2c5013++)_0x5a5781(_0x4e86c3['children'][_0x2c5013]);}function canBecomeWordChunkSpan(_0x5a1b0b){return!(!_0x5a1b0b['parent']||!isParsedElementNode(_0x5a1b0b['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x5a1b0b['parent']['tagName'])&&!textContent(_0x5a1b0b)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x1ed811){return isText$1(_0x1ed811);}function isParsedElementNode(_0x386b94){return isTag(_0x386b94);}function isParsedDocumentNode(_0x270236){return isDocument(_0x270236);}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x343f3c){super();const _0x210181=this['bindTemplate'];this['set']('isDone',!0x1),this['set']('isVisible',!0x0),this['htmlStreamer']=new HTMLStreamer(),this['options']=_0x343f3c,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0x210181['if']('isDone','ck-ai-chat__feed__item_done'),_0x210181['if']('isVisible','ck-hidden',_0x444095=>!_0x444095),'ck-ai-chat__feed__text-item'],'data-cke-ai-id':this['options']['id']},'children':this['children']});}['markAsDone'](){this['htmlStreamer']['cleanUpAnimations']({'targetElement':this['element']}),this['element']['querySelectorAll']('[data-id]')['forEach'](_0x3eaa93=>{_0x3eaa93['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0x3fd026,_0x571bbf,_0xa521ec){await this['htmlStreamer']['stream']({'document':_0x3fd026,'targetElement':_0x571bbf,'abortSignal':_0xa521ec});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x23501a,_0x1d59f4){super(_0x23501a),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x23501a),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button\x20'+AI_BUTTON_CLASSES['TERTIARY'],'label':getTranslation$i(_0x23501a,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x1d59f4['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x286e7f=>_0x286e7f?IconShowChangesOn:IconShowChangesOff),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x14718c=new IconView();_0x14718c['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x1d59f4['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x14718c,{'tag':'span','children':[getTranslation$i(_0x23501a,'AI_SUGGESTION_HEADER_TITLE')]},this['showChangesToggleView']]});}}class ShowChangesToggleView extends ButtonView{['render'](){super['render'](),this['children']['remove'](this['iconView']),this['children']['add'](this['iconView']);}}const ICON_STATE_MAP={'accepted':IconBoxWithCheck,'rejected':IconBoxWithCross,'outdated':IconBoxWithCross};class AISuggestionContentPartStateView extends View{['stateIconView'];constructor(_0x312d72){super(_0x312d72);const _0x4dc2a3=this['bindTemplate'];this['set']('state','accepted'),this['set']('isVisible',!0x0),this['stateIconView']=new StateIconView(),this['stateIconView']['bind']('state')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__content-part-state',_0x4dc2a3['to']('state',_0x864d7b=>'ck-ai-suggestion__content-part-state_'+_0x864d7b),_0x4dc2a3['if']('isVisible','ck-hidden',_0x1b4e5e=>!_0x1b4e5e)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-suggestion__content-part-state__label']},'children':[{'text':_0x4dc2a3['to']('state',_0x38b862=>{switch(_0x38b862){case'accepted':return getTranslation$i(_0x312d72,'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED');case'rejected':return getTranslation$i(_0x312d72,'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED');case'outdated':return getTranslation$i(_0x312d72,'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED');}})}]},this['stateIconView']]});}['setState'](_0x54988d){this['state']=_0x54988d;}}class StateIconView extends IconView{constructor(){super(),this['set']('state','accepted'),this['content']=ICON_STATE_MAP[this['state']],this['on']('change:state',()=>{this['content']=ICON_STATE_MAP[this['state']];});}}class AISuggestionContentPartToolbarView extends ToolbarView{['_applyButton'];['_suggestButton'];constructor(_0x419bf9,_0x5b4241,_0x38d815){super(_0x419bf9);const _0x39ee33=Boolean(_0x38d815);this['set']('isEnabled',!_0x39ee33),this['set']('isVisible',!0x0),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x3ff1a1=[];if(_0x39ee33){const _0x24d45e=new ButtonView(_0x419bf9);_0x24d45e['set']({'label':getTranslation$i(_0x419bf9,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'withText':!0x1,'icon':IconInfo}),_0x24d45e['extendTemplate']({'attributes':{'data-cke-tooltip-class':'ck-ai-suggestion-content-part-disabled-actions-tooltip'}}),_0x3ff1a1['push'](_0x24d45e);}else{_0x5b4241['includes']('applySuggestion')&&(this['_applyButton']=new ButtonView(_0x419bf9),this['_applyButton']['set']({'label':getTranslation$i(_0x419bf9,'AI_SUGGESTION_CONTENT_PART_APPLY'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCheck}),this['_applyButton']['bind']('isEnabled')['to'](this),this['_applyButton']['on']('execute',()=>{this['fire']('applySuggestion');}),_0x3ff1a1['push'](this['_applyButton'])),_0x5b4241['includes']('insertSuggestion')&&(this['_suggestButton']=new ButtonView(_0x419bf9),this['_suggestButton']['set']({'label':getTranslation$i(_0x419bf9,'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithMarker}),this['_suggestButton']['bind']('isEnabled')['to'](this),this['_suggestButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),_0x3ff1a1['push'](this['_suggestButton']));const _0x70deee=new ButtonView(_0x419bf9);_0x70deee['set']({'label':getTranslation$i(_0x419bf9,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCross}),_0x70deee['bind']('isEnabled')['to'](this),_0x70deee['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x3ff1a1['push'](_0x70deee);}this['items']['addMany'](_0x3ff1a1);const _0x5d4a4b=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x5d4a4b['if']('isVisible','ck-hidden',_0x27d569=>!_0x27d569)]}});}['setButtonsVisibility']({showApplyButton:_0x477e08,showSuggestButton:_0x73b786}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x477e08),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x73b786);}}class AISuggestionContentPartHeaderView extends View{['toolbarView'];['stateView'];['titleLabelView'];['children'];constructor(_0x54715f,{part:_0x18bf2e,uiIndex:_0x29aafc,availableActions:_0xe864f2,areActionsDisabled:_0x51ffc6}){super(_0x54715f),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['toolbarView']=new AISuggestionContentPartToolbarView(_0x54715f,_0xe864f2,_0x51ffc6),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0x18bf2e['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0x18bf2e['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0x18bf2e['index']});}),this['toolbarView']['bind']('isEnabled')['to'](this),this['stateView']=new AISuggestionContentPartStateView(_0x54715f),this['titleLabelView']=new AISuggestionBodyContentPartTitleLabelView(_0x54715f,_0x29aafc),this['children']=this['createCollection'](),this['children']['addMany']([this['titleLabelView'],this['toolbarView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-suggestion__body__content-part__title']},'children':this['children']}),this['on']('change:state',(_0x577fba,_0x146d40,_0x4f9292,_0x37cc3c)=>{'pending'===_0x37cc3c?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x4f9292?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x4f9292),this['children']['add'](this['stateView']));});}}class AISuggestionBodyContentPartTitleLabelView extends View{constructor(_0x195fe5,_0x589995){super(_0x195fe5),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0x195fe5,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x589995['toString']())]});}}class AISuggestionStreamableContentView extends View{['htmlStreamer'];constructor(_0x55e5b6){super(_0x55e5b6),this['htmlStreamer']=new HTMLStreamer(),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai-suggestion-streamable-content']}});}async['update']({part:_0x630411,renderingStrategy:_0xd690eb,abortSignal:_0x2a9dea}){'streaming'===_0xd690eb?await this['htmlStreamer']['stream']({'document':_0x630411['content'],'targetElement':this['element'],'abortSignal':_0x2a9dea}):morphdom(this['element'],'<'+this['element']['tagName']+'>'+serialize$1(_0x630411['content'])+'</'+this['element']['tagName']+'>',{'childrenOnly':!0x0});}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='';}}class AISuggestionBodyViewContentPartView extends View{['_children'];['_headerView'];['_streamableContentView'];constructor(_0x5b13ca,{part:_0x430088,uiIndex:_0x43ea4a,areActionsDisabled:_0x2df3ea,availableActions:_0x5c8225}){super(_0x5b13ca);const _0x7da8e0=this['bindTemplate'];this['set']('state','pending'),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1);const _0x59eec3=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0x2df3ea;};this['on']('change:state',_0x59eec3),this['on']('change:isDone',_0x59eec3),_0x59eec3(),this['_children']=this['createCollection'](),this['_headerView']=new AISuggestionContentPartHeaderView(_0x5b13ca,{'part':_0x430088,'uiIndex':_0x43ea4a,'availableActions':_0x5c8225,'areActionsDisabled':_0x2df3ea}),this['_headerView']['bind']('isEnabled','state')['to'](this),this['_headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x5b13ca),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x7da8e0['to']('state',_0x54e8a9=>'ck-ai-suggestion__body__content-part_'+_0x54e8a9),_0x7da8e0['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x7da8e0['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x7da8e0['if']('isVisible','ck-hidden',_0x2f105c=>!_0x2f105c)]},'children':this['_children'],'on':{'mouseenter':_0x7da8e0['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x430088['index']});}),'mouseleave':_0x7da8e0['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x430088['index']});}),'click':_0x7da8e0['to'](_0x1b44ef=>{const _0x4a8c4b=_0x1b44ef['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0x4a8c4b)&&this['fire']('showChangeInText',{'index':_0x430088['index']});})}});}async['updateContent']({part:_0x2de2b8,showUnchangedParts:_0x1d94c8=!0x1,abortSignal:_0x24d59c}){this['partDefinition']=_0x2de2b8,this['isVisible']=this['partDefinition']['hasChanges']||_0x1d94c8,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x2de2b8,'renderingStrategy':'static','abortSignal':_0x24d59c});}['markAsDone'](){this['isDone']=!0x0;}}class AISkeletonView extends View{constructor(_0x4e8838,_0x2f544b){super(_0x4e8838),this['set']('isVisible',!0x0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton',this['bindTemplate']['if']('isVisible','ck-hidden',_0x5d302d=>!_0x5d302d)]},'children':this['_createSkeletonItems'](_0x2f544b)});}['_createSkeletonItems'](_0x372eb7){const _0x341971=['ck','ck-ai-skeleton__item'];return _0x372eb7['map'](_0x177680=>{let _0x3f7071='';switch(_0x177680['attributes']['align']){case'right':_0x3f7071='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x3f7071='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x3f7071='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x177680['tag'],'attributes':{'class':[..._0x341971,_0x177680['attributes']['class']?_0x177680['attributes']['class']:''],'style':'width:\x20'+_0x177680['attributes']['width']+';\x20height:\x20'+_0x177680['attributes']['height']+';'+_0x3f7071}};});}}const SKELETON_DEFINITIONS={'aiSuggestionBody':[{'tag':'div','attributes':{'width':'50%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'85%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'75%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}}],'aiFeed':[{'tag':'div','attributes':{'width':'100%','height':'72px','align':'right'}},{'tag':'div','attributes':{'width':'250px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'88px','align':'right'}},{'tag':'div','attributes':{'width':'150px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'140px','align':'right'}},{'tag':'div','attributes':{'width':'250px','height':'40px','align':'right'}},{'tag':'div','attributes':{'width':'100%','height':'88px','align':'right'}}],'aiHistory':generateSkeletonDefinitions(0x5,'100%','44px','right'),'aiChatResources':generateSkeletonDefinitions(0x8,'100%','24px','right'),'aiReviewChecks':[{'tag':'div','attributes':{'width':'128px','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'100%','height':'24px','align':'left'}},{'tag':'div','attributes':{'width':'128px','height':'24px','align':'left'}}]};function generateSkeletonDefinitions(_0x1a3bb7,_0x56b891,_0xeba897,_0xc329b1){return new Array(_0x1a3bb7)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x56b891,'height':_0xeba897,'align':_0xc329b1}}));}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0x2c3d97){const _0x354304=this['createTask'](_0x2c3d97);return this['queue']['push'](_0x354304),this['_processQueue'](),_0x354304['completePromise'];}['abort'](){this['isProcessing']&&(this['_abortController']['abort'](),this['_abortController']=void 0x0,this['queue']=[],this['fire']('_queueEmpty'),this['isProcessing']=!0x1);}get['queueEmptyPromise'](){return this['queue']['length']||this['isProcessing']?new Promise(_0x24f4e1=>{this['once']('_queueEmpty',()=>{_0x24f4e1();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0xeba890=this['queue']['shift']();try{await _0xeba890['callback'](this['_abortController']['signal']),_0xeba890['resolve']();}catch(_0x4d197e){_0xeba890['reject'](_0x4d197e);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x185c24){let _0x2f787b,_0x118021;const _0x5377e9=new Promise((_0x5260f3,_0xf13533)=>{_0x2f787b=_0x5260f3,_0x118021=_0xf13533;});return{'callback':_0x185c24,'resolve':_0x2f787b,'reject':_0x118021,'completePromise':_0x5377e9};}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x51664b){super(_0x51664b),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x51664b['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x30d5d7){this['element']['innerHTML']=_0x30d5d7;}}const AI_REPLY_ACTIONS=['applySuggestion','insertSuggestion'];class AIChatFeedSuggestionItemActionsView extends View{['_applyChangesButton'];['_insertSuggestionsButton'];['children'];constructor(_0x5ee9c1,_0xeebc4a=[...AI_REPLY_ACTIONS],_0xebad33){super(_0x5ee9c1);const _0x58c265=this['bindTemplate'],_0x3a155e=Boolean(_0xebad33);if(this['set']('isEnabled',!_0x3a155e),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x3a155e){const _0x48f443=new ButtonView(_0x5ee9c1);_0x48f443['set']({'label':getTranslation$i(_0x5ee9c1,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'withText':!0x1,'icon':IconInfo}),_0x48f443['extendTemplate']({'attributes':{'data-cke-tooltip-class':'ck-ai-suggestion-content-part-disabled-actions-tooltip'}});const _0x105396=new View(_0x5ee9c1);_0x105396['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__suggestion__actions__info'},'children':[{'tag':'p','children':[getTranslation$i(_0x5ee9c1,'AI_SUGGESTION_DISABLED_FEED_MESSAGE'),_0x48f443]}]}),this['children']['add'](_0x105396);}else this['_applyChangesButton']=new ButtonView(_0x5ee9c1),this['_applyChangesButton']['set']({'label':getTranslation$i(_0x5ee9c1,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0xeebc4a['includes']('applySuggestion'),'class':AI_BUTTON_CLASSES['PRIMARY']}),this['_insertSuggestionsButton']=new ButtonView(_0x5ee9c1),this['_insertSuggestionsButton']['set']({'label':getTranslation$i(_0x5ee9c1,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0xeebc4a['includes']('insertSuggestion'),'class':AI_BUTTON_CLASSES['SECONDARY']}),this['_insertSuggestionsButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_applyChangesButton']['on']('execute',()=>{this['fire']('applySuggestion');}),[this['_applyChangesButton'],this['_insertSuggestionsButton']]['forEach'](_0x2caec2=>{_0x2caec2['bind']('isEnabled')['to'](this);}),this['children']['addMany']([this['_applyChangesButton'],this['_insertSuggestionsButton']]);this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__ai-suggestion__actions',_0x58c265['if']('isVisible','ck-hidden',_0x319f3b=>!_0x319f3b)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}['updateVisibility'](_0x4469bc){this['isVisible']=_0x4469bc;}['_switchButtonLabelsPlurality'](_0x30d4d6){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0x30d4d6?(this['_applyChangesButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),this['_insertSuggestionsButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL')):(this['_applyChangesButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY'),this['_insertSuggestionsButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST')));}}const TOOLTIP_TITLE_MAX_LENGTH=0x190;class AIWebSourcesView extends View{['children'];['balloonPanelView'];['bodyCollection'];constructor(_0x17a367,_0x2f97c7){super(_0x17a367),this['bodyCollection']=_0x2f97c7,this['children']=this['createCollection'](),this['set']('isVisible',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources',this['bindTemplate']['if']('isVisible','ck-hidden',_0xdae418=>!_0xdae418)]},'children':this['children']});const _0x5ca117=new View(this['locale']),_0x3d4145=new IconView();_0x3d4145['content']=IconWeb,_0x5ca117['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x3d4145,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x5ca117),this['_setupBalloonPanel'](_0x17a367);}['addSource'](_0x45f2e2){this['children']['add'](new AIWebSourceView(this['locale'],_0x45f2e2,this['balloonPanelView']));}['_setupBalloonPanel'](_0x48f02e){this['balloonPanelView']=new BalloonPanelView(_0x48f02e),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}}class AIWebSourceView extends ButtonView{['balloonPanelView'];['source'];constructor(_0xf042db,_0xbf3bfd,_0x240091){super(_0xf042db),this['source']=_0xbf3bfd,this['balloonPanelView']=_0x240091,this['set']({'label':_0xbf3bfd['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x46071a=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x46071a['to'](()=>{window['open'](_0xbf3bfd['url'],'_blank');}),'mouseenter':_0x46071a['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x46071a['to'](()=>{this['_hideTooltip']();})}}),_0xbf3bfd['favicon']){const _0x24e661=new View(_0xf042db);_0x24e661['setTemplate']({'tag':'img','attributes':{'src':_0xbf3bfd['favicon']||IconWeb,'alt':_0xbf3bfd['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x24e661);}else this['set']('icon',IconWeb);}['_createTooltipContentView'](_0x2887ca,_0x525350){const _0x18a369=new View(_0x2887ca),_0x809961=[];let _0xcb6f60;_0x525350?.['favicon']?(_0xcb6f60=new View(_0x2887ca),_0xcb6f60['setTemplate']({'tag':'img','attributes':{'src':_0x525350['favicon'],'alt':_0x525350['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0xcb6f60=new IconView(),_0xcb6f60['content']=IconWeb,_0xcb6f60['extendTemplate']({'attributes':{'alt':_0x525350['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x809961['push'](_0xcb6f60);const _0x185532=new View(_0x2887ca);_0x185532['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0x525350['url']},'children':[{'text':new URL(_0x525350['url'])?.['hostname']}]}),_0x809961['push'](_0x185532);const _0x58e0a3=new View(_0x2887ca);_0x58e0a3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x809961});const _0x3b0b02=new View(_0x2887ca);return _0x3b0b02['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0x525350['title']['length']>TOOLTIP_TITLE_MAX_LENGTH?_0x525350['title']['substring'](0x0,TOOLTIP_TITLE_MAX_LENGTH)+'...':_0x525350['title']}]}),_0x18a369['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x58e0a3,_0x3b0b02]}),_0x18a369;}['_showTooltip'](){this['_updateTooltipContent'](),this['balloonPanelView']['pin']({'target':this['element'],'positions':[BalloonPanelView['defaultPositions']['northArrowSouth'],BalloonPanelView['defaultPositions']['northArrowSouthWest'],BalloonPanelView['defaultPositions']['northArrowSouthEast']],'limiter':document['querySelector']('.ck-ai-chat')}),this['balloonPanelView']['show']();}['_hideTooltip'](){this['balloonPanelView']['hide']();}['_updateTooltipContent'](){this['balloonPanelView']['content']['get'](0x0)?.['destroy'](),this['balloonPanelView']['content']['clear']();const _0x5f5942=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x5f5942);}}const SKELETON_DEBOUNCE_DELAY=0x3e8;class AISuggestionBodyView extends View{['_actionsView'];['_sourcesView'];['_children'];['_skeletonView'];['_showSkeletonDebounced']=debounce(()=>{this['_skeletonView']['isVisible']=!0x0,this['_skeletonShownAt']=Date['now']();},SKELETON_DEBOUNCE_DELAY);['_skeletonShownAt']=null;['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];['_availableActions'];['_cachedContentParts']=[];constructor(_0x18dbec,_0x19c6db){super(_0x18dbec);const {areActionsDisabled:_0x3bea99,showUnchangedParts:_0x58dd76,availableActions:_0x67bfa3}=_0x19c6db;this['_areActionsDisabled']=_0x3bea99,this['_showUnchangedParts']=_0x58dd76,this['_availableActions']=_0x67bfa3,this['set']('hasPendingParts',!0x1),this['set']('isTrackChangesOn',!0x1),this['_children']=this['createCollection'](),this['_skeletonView']=new AISkeletonView(_0x18dbec,SKELETON_DEFINITIONS['aiSuggestionBody']),this['_skeletonView']['isVisible']=!0x0,this['_skeletonShownAt']=Date['now'](),this['_children']['add'](this['_skeletonView']),this['_updateContentPartsPromiseQueue']=new PromiseQueue(),this['_emptyPartsWarningView']=new AIChatFeedErrorItemView({'id':'empty-parts-warning','initialContent':getTranslation$i(_0x18dbec,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new AIChatFeedSuggestionItemActionsView(_0x18dbec,_0x19c6db['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new AIWebSourcesView(this['locale'],_0x19c6db['bodyCollection']),_0x19c6db['areActionsDisabled']?this['_actionsView']['isEnabled']=!0x1:this['_actionsView']['bind']('isEnabled')['to'](this,'hasPendingParts'),this['_actionsView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body']},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-parts']},'children':this['_children']},this['_emptyPartsWarningView'],this['_actionsView'],this['_sourcesView']]});}['destroy'](){this['_updateContentPartsPromiseQueue']['abort'](),this['_showSkeletonDebounced']['cancel'](),super['destroy']();}get['partsCount'](){return this['_contentPartViews']['length'];}get['_contentPartViews'](){return Array['from'](this['_children'])['filter'](_0x563132=>_0x563132 instanceof AISuggestionBodyViewContentPartView);}async['updateContentParts']({parts:_0x5760d4,abortSignal:_0x3091ad,skipLoadingEffects:_0x504aa3}){this['_cachedContentParts']['length']?_0x5760d4['forEach'](_0x1f8c75=>{const _0x5fd26a=this['_cachedContentParts']['findIndex'](_0x1c6af4=>_0x1c6af4['index']==_0x1f8c75['index']);-0x1===_0x5fd26a?this['_cachedContentParts']['push'](_0x1f8c75):this['_cachedContentParts'][_0x5fd26a]=_0x1f8c75;}):this['_cachedContentParts']=_0x5760d4;const _0x596b36=this['_showUnchangedParts']?_0x5760d4:_0x5760d4['filter'](_0x19f15e=>_0x19f15e['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x596b36['length']>0x1),_0x504aa3&&(this['_showSkeletonDebounced']['cancel'](),this['_skeletonView']['isVisible']=!0x1);for(const _0x262f6b of _0x596b36)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x4a5bb6=>{let _0x9aae7f=this['getPartView'](_0x262f6b['index']);if(!_0x9aae7f){if(_0x9aae7f=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x262f6b,'uiIndex':this['_contentPartViews']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x9aae7f['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),!_0x504aa3&&(this['_showSkeletonDebounced']['cancel'](),await this['_awaitMinimumSkeletonDisplayTime'](_0x4a5bb6),_0x4a5bb6['aborted']))return;this['_skeletonView']['isVisible']=!0x1,this['_children']['add'](_0x9aae7f,this['_children']['length']-0x1),this['hasPendingParts']=!0x0,_0x504aa3||this['_showSkeletonDebounced']();}await _0x9aae7f['updateContent']({'part':_0x262f6b,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x4a5bb6}),_0x9aae7f['markAsDone']();});return _0x3091ad?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort'](),this['_showSkeletonDebounced']['cancel'](),this['_skeletonView']['isVisible']=!0x1;}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0x3984e0,_0x3dadd7){const _0x542dea=this['getPartView'](_0x3984e0);_0x542dea&&(_0x542dea['state']=_0x3dadd7),this['hasPendingParts']='pending'==_0x3dadd7||this['_contentPartViews']['some'](_0x1256a7=>'pending'==_0x1256a7['state']);}['setPartActive'](_0x467d28,_0x1c531e){if(!0x1===_0x467d28){for(const _0x1e9c21 of this['_contentPartViews'])_0x1e9c21['isActive']=!0x1;}else{const _0xf05d14=this['getPartView'](_0x467d28);_0xf05d14&&(_0xf05d14['isActive']=_0x1c531e);}}['updateSources'](_0x475b54){_0x475b54['forEach'](_0x3c40e0=>this['_sourcesView']['addSource'](_0x3c40e0)),this['_sourcesView']['isVisible']=!0x0;}['getPartView'](_0x3eeaf3){return this['_contentPartViews']['find'](_0x355b45=>_0x355b45['partDefinition']['index']==_0x3eeaf3)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0x150cd1=!this['_cachedContentParts']['find'](({hasChanges:_0x308e59})=>_0x308e59),_0x4806ab=!!this['_cachedContentParts']['find'](({hasChanges:_0x17082a})=>!_0x17082a);this['_emptyPartsWarningView']['isVisible']=0x0==this['_contentPartViews']['length']||_0x4806ab,_0x150cd1?this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')):this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_EMPTY_PART_WARNING'));}this['_contentPartViews']['forEach'](_0x217b34=>_0x217b34['markAsDone']()),this['_skeletonView']['isVisible']=!0x1,this['_showSkeletonDebounced']['cancel'](),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']);}async['_awaitMinimumSkeletonDisplayTime'](_0x1a9512){if(!this['_skeletonView']['isVisible']||null===this['_skeletonShownAt'])return;const _0x16df43=SKELETON_DEBOUNCE_DELAY-(Date['now']()-this['_skeletonShownAt']);if(this['_skeletonShownAt']=null,_0x16df43>0x0){const {promise:_0xc3e3ec,abortController:_0x1ad1d7}=createAbortableTimeout(_0x16df43);_0x1a9512?.['addEventListener']('abort',()=>_0x1ad1d7['abort']()),await _0xc3e3ec['catch'](()=>{});}}get['hasNonEmptyParts'](){return this['_contentPartViews']['filter'](_0x13b9b9=>_0x13b9b9['partDefinition']['hasChanges'])['length']>0x0;}}class AISuggestionContainerView extends View{['bodyView'];['children'];['headerView'];constructor(_0x5c95e5,_0x544146,_0x108ab7){super(_0x5c95e5);const {showDiff:_0x4f8d5c,areActionsDisabled:_0x32b809,showUnchangedParts:_0x6ce43b,availableActions:_0x361442}=_0x544146;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new AISuggestionHeaderView(_0x5c95e5,{'showDiff':_0x4f8d5c}),this['headerView']['on']('toggleShowChanges',(_0x470bb4,_0x975b13)=>{this['areChangesVisible']=_0x975b13['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x975b13['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new AISuggestionBodyView(_0x5c95e5,{'areActionsDisabled':_0x32b809,'showUnchangedParts':!!_0x6ce43b,'availableActions':_0x361442,'bodyCollection':_0x108ab7}),this['bodyView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['bodyView']['bind']('isTrackChangesOn')['to'](this),this['children']['add'](this['bodyView']),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__container','ck-rounded-corners']},'children':this['children']});}async['updateContent'](_0x5a652c){await this['bodyView']['updateContentParts'](_0x5a652c);}['updateSources'](_0x1f4570){this['bodyView']['updateSources'](_0x1f4570);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}}class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];constructor(_0x5b97f1,_0x313d1b,_0x45d8){super(_0x313d1b),this['set']('isTrackChangesOn',!0x1),this['containerView']=new AISuggestionContainerView(_0x5b97f1,{'showDiff':_0x313d1b['showDiff'],'areActionsDisabled':_0x313d1b['areActionsDisabled'],'availableActions':_0x313d1b['availableActions']},_0x45d8),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x2875e4,_0x479fb2)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x479fb2['showDiff']});}),this['containerView']['bind']('isTrackChangesOn')['to'](this),this['containerView']['on']('like',()=>{this['fire']('like',{'replyId':this['options']['id']});}),this['containerView']['on']('dislike',()=>{this['fire']('dislike',{'replyId':this['options']['id']});}),this['containerView']['on']('showChangeInText',(_0x1a494b,{index:_0x417b56})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x417b56});}),this['containerView']['on']('applySuggestion',(_0x17050e,{index:_0xce5e17}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0xce5e17});}),this['containerView']['on']('insertSuggestion',(_0xb9d305,{index:_0x554eb6}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0x554eb6});}),this['containerView']['on']('rejectSuggestion',(_0x181f0b,{index:_0x26d381})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x26d381});}),this['containerView']['on']('mouseOverSuggestion',(_0x1208f8,{index:_0x4c59de})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x4c59de});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x43fac1,{index:_0x3d4e80})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x3d4e80});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x449866){await this['containerView']['updateContent'](_0x449866);}['updatePartState'](_0x550b5f,_0x1de6bf){this['containerView']['bodyView']['updatePartState'](_0x550b5f,_0x1de6bf);}['setPartActive'](_0x4b7376,_0x1acf4e){!0x1===_0x4b7376?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x4b7376,_0x1acf4e);}['updateSources'](_0x49f2db){this['containerView']['updateSources'](_0x49f2db);}['getPartView'](_0x10dab8){return this['containerView']['bodyView']['getPartView'](_0x10dab8);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];['_bodyCollection'];constructor(_0x121c60,_0x3df7dd,_0x1dc4db){super(_0x3df7dd),this['_bodyCollection']=_0x1dc4db,this['locale']=_0x121c60,this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-reply']}}),this['replyContainer']=new View(),this['replyContainer']['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-chat__feed__ai-reply-container']}}),this['children']['add'](this['replyContainer']);}async['render'](){super['render'](),this['options']['initialContent']&&(await this['updateContent']({'parsedContent':parse$2(this['options']['initialContent']),'renderingStrategy':'static'}),this['markAsDone']());}async['updateContent']({parsedContent:_0x1590e0,renderingStrategy:_0x2633be,abortSignal:_0x20f616}){'streaming'===_0x2633be?await this['streamIntoElement'](_0x1590e0,this['replyContainer']['element'],_0x20f616):this['replyContainer']['element']['innerHTML']=render(_0x1590e0);}['updateSources'](_0x5c21f6){const _0x2863d5=new AIWebSourcesView(this['locale'],this['_bodyCollection']);_0x2863d5['children']['addMany'](_0x5c21f6['map'](_0x4b8423=>new AIWebSourceView(this['locale'],_0x4b8423,_0x2863d5['balloonPanelView']))),_0x2863d5['isVisible']=!0x0,this['children']['add'](_0x2863d5);}}class AISpinnerView extends SpinnerView{constructor(_0x8ddabb=void 0x0){super();const _0x26c4d6=_0x8ddabb?'ck-ai-spinner_'+_0x8ddabb:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x26c4d6]}});}}const CONTEXT_TYPES_TO_ICONS={'file':IconFileUpload,'document':IconDocument,'web-resource':IconLink,'text':IconFileUpload,'selection':IconSelection,'mcp-tool-context':IconDocument},TOOLTIP_MAX_CHAR_LENGTH=0x78,CSS_CLASSES$7={'contextChip':'ck-ai-chat-context-chip','contextChipWide':'ck-ai-chat-context-chip_wide','contextChipDocument':'ck-ai-chat-context-chip_document','contextChipLabel':'ck-ai-chat-context-chip__label','contextChipTypeIcon':'ck-ai-chat-context-chip__type-icon','chipTooltip':'ck-ai-chat-context-controls__chip-tooltip'},TOOLTIP_CONFIG={'position':'n'};class AIChatContextItemButtonView extends ButtonView{constructor(_0x54da09,_0x5c1c4c,_0x53cc94,_0x4fae09,_0x3de4eb=!0x1){super(_0x54da09),this['_isAnimationOnEnterEnabled']=_0x4fae09,this['_initializeProperties'](_0x5c1c4c,_0x53cc94,_0x3de4eb),this['_setupTemplate']();}['render'](){super['render'](),this['_isAnimationOnEnterEnabled']&&this['element']&&(this['element']['classList']['add']('ck-ai-chat-context-chip_new-chip'),this['_handleAnimationEndOnce'](this['element'],()=>{this['element']&&this['element']['classList']['remove']('ck-ai-chat-context-chip_new-chip');}));}['disableAnimationOnEnter'](){this['_isAnimationOnEnterEnabled']=!0x1,this['element']&&this['element']['classList']['remove']('ck-ai-chat-context-chip_new-chip');}['_initializeProperties'](_0x2c798b,_0x335e01,_0x1e57e6){this['set']('label',_0x2c798b['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0x2c798b['type']),this['set']('id',_0x2c798b['uiId']),this['set']('readonly',_0x335e01),this['set']('isLoading',_0x1e57e6);}['_setupTemplate'](){const _0x4440e7=this['_createIconView'](),_0x419933=this['_createRemoveButton'](),_0x3a673f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x3a673f),'children':this['_createTemplateChildren'](_0x4440e7,_0x419933,_0x3a673f)});}['_createTemplateAttributes'](_0x3c01d0){return{'class':[CSS_CLASSES$7['contextChip'],_0x3c01d0['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x977e94=>'document'==_0x977e94),_0x3c01d0['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0x386c2d=>'selection'==_0x386c2d)],'data-cke-tooltip-text':_0x3c01d0['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0x1a7dad,_0x2f76da,_0x388b5a){const _0x4788a6=this['_createLabelElement'](_0x388b5a),_0x5ecadd=this['_createLoaderIcon']();return this['readonly']?[_0x1a7dad,_0x4788a6]:[_0x1a7dad,_0x5ecadd,_0x4788a6,_0x2f76da];}['_createLabelElement'](_0x2392f7){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x2392f7['to']('label')}]};}['_createRemoveButton'](){const _0x157f30=new ButtonView(this['locale']);return _0x157f30['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconCancel}),this['_setupRemoveButtonEvent'](_0x157f30),_0x157f30;}['_setupRemoveButtonEvent'](_0x312d3e){_0x312d3e['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x3abc50=this['bindTemplate'],_0x4b0dd5=new IconView();return _0x4b0dd5['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x4b0dd5['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x3abc50['if']('isLoading','ck-hidden',_0x35ff52=>_0x35ff52)]}}),_0x4b0dd5;}['_handleAnimationEndOnce'](_0x3b9e23,_0x2ad738){if(!_0x3b9e23)return;const _0x3ac7b5=()=>{_0x2ad738(),_0x3b9e23['removeEventListener']('animationend',_0x3ac7b5),_0x3b9e23['removeEventListener']('webkitAnimationEnd',_0x3ac7b5);};_0x3b9e23['addEventListener']('animationend',_0x3ac7b5),_0x3b9e23['addEventListener']('webkitAnimationEnd',_0x3ac7b5);}['_createLoaderIcon'](){const _0x1c589f=new AISpinnerView('small');return _0x1c589f['bind']('isVisible')['to'](this,'isLoading',_0x164275=>_0x164275),_0x1c589f;}}function getTooltipForLabel(_0x20a024){if(!_0x20a024)return _0x20a024;if(_0x20a024['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x20a024;const _0x366f71=_0x20a024['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x2d344d=_0x366f71['lastIndexOf']('\x20');return(_0x2d344d>0x0?_0x366f71['slice'](0x0,_0x2d344d):_0x366f71)+'…';}const DEFAULT_CONFIG={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},FALLBACK_CONTAINER_WIDTH='300px';class AIChatChipsOverflowManager{['_locale'];['_config'];['_visibleChips'];['_overflowChips'];['_showMoreButtonView']=null;['_showMoreBalloonPanelView']=null;['_containerElement']=null;['_bodyCollection'];['_parentView']=null;['_intersectionObserver']=null;['_pendingCalculation']=!0x1;constructor(_0x25e8cf,_0x2c0871,_0x10c469,_0x512255,_0x4d4bef){this['_locale']=_0x25e8cf,this['_visibleChips']=_0x2c0871,this['_config']={...DEFAULT_CONFIG,..._0x10c469,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x10c469['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0x512255,this['_parentView']=_0x4d4bef||null;}['setContainerElement'](_0x1290b0){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x1290b0,this['_setupVisibilityObserver']();}get['showMoreButtonView'](){return this['_showMoreButtonView'];}get['overflowChips'](){return this['_overflowChips'];}['reorganizeChips'](){requestAnimationFrame(()=>{this['_checkAndHandleOverflow']();});}['showBalloonPanel'](){this['_showMoreButtonView']&&this['_showMoreBalloonPanelView']&&(this['_updateBalloonContent'](),this['_showMoreButtonView']['isOn']=!0x0,this['_showMoreBalloonPanelView']['show'](),this['_showMoreBalloonPanelView']['pin']({'target':this['_showMoreButtonView']['element'],'limiter':document['querySelector']('.ck-ai-chat')}));}['hideBalloonPanel'](){this['_showMoreButtonView']&&this['_showMoreBalloonPanelView']&&(this['_showMoreButtonView']['isOn']=!0x1,this['_showMoreBalloonPanelView']['hide']());}['clear'](){this['_overflowChips']['clear'](),this['hideBalloonPanel'](),this['_updateShowMoreButtonVisibility'](),this['_showMoreButtonView']&&(this['_showMoreButtonView']['label']=''),this['_showMoreBalloonPanelView']&&this['_showMoreBalloonPanelView']['content']['clear']();}['destroy'](){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_showMoreButtonView']&&(this['_showMoreButtonView']['destroy'](),this['_showMoreButtonView']=null),this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['destroy'](),this['_showMoreBalloonPanelView']=null);}['_checkAndHandleOverflow'](){if(!this['_containerElement'])return;if(!this['_isContainerVisible']())return void(this['_pendingCalculation']=!0x0);this['_pendingCalculation']=!0x1;const _0x4e0397=[...this['_visibleChips'],...this['_overflowChips']],_0x49e138=this['_createCalculationContainer'](),_0x2229ff=this['_calculateOverflowInContainer'](_0x49e138,_0x4e0397),_0x209f91=_0x49e138['_ancestorsToRestore'];_0x209f91&&this['_restoreAncestorVisibility'](_0x209f91),_0x49e138['remove'](),this['_applyOverflowResults'](_0x4e0397,_0x2229ff);}['_createShowMoreButton'](){this['_showMoreButtonView']=this['_createShowMoreButtonView'](),this['_showMoreBalloonPanelView']=this['_createShowMoreBalloonPanelView'](),this['_showMoreButtonView']['render'](),this['_containerElement']['appendChild'](this['_showMoreButtonView']['element']),this['_showMoreButtonView']['on']('execute',()=>{this['_handleShowMoreButtonClick']();}),clickOutsideHandler({'emitter':this['_showMoreBalloonPanelView'],'contextElements':[this['_showMoreBalloonPanelView']['element'],this['_showMoreButtonView']['element']],'callback':()=>this['hideBalloonPanel'](),'activator':()=>this['_showMoreButtonView']['isOn']});}['_createShowMoreButtonView'](){const _0x5a74bf=new ButtonView(this['_locale']);_0x5a74bf['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3cb383=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x3cb383['push'](this['_config']['cssClasses']['controlsButton']),_0x5a74bf['extendTemplate']({'attributes':{'class':_0x3cb383}}),_0x5a74bf;}['_createShowMoreBalloonPanelView'](){const _0x5f3839=new BalloonPanelView(this['_locale']);return _0x5f3839['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x5f3839),_0x5f3839;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x288240=>{_0x288240['disableAnimationOnEnter']();});const _0x8ea2ce=new View(this['_locale']);_0x8ea2ce['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x8ea2ce);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0x34ff18=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x34ff18?'':'none');}['_repinBalloonPanel'](){this['_showMoreButtonView']?.['isOn']&&this['_showMoreBalloonPanelView']?.['isVisible']&&this['_showMoreButtonView']['element']&&this['_showMoreBalloonPanelView']['pin']({'target':this['_showMoreButtonView']['element'],'limiter':document['querySelector']('.ck-ai-chat')});}['_findTargetContainer'](_0x881678){const _0x28ef7d=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0xcf4d2f=this['_containerElement']?.['classList'];if(_0xcf4d2f){const _0x370d9c=_0xcf4d2f[0x0]||'',_0x1852b5=_0x881678['querySelector']('.'+_0x370d9c),_0x39e051=_0x881678['querySelector'](_0x28ef7d);return _0x1852b5||_0x39e051||_0x881678;}return _0x881678['querySelector'](_0x28ef7d)||_0x881678;}['_calculateContainerWidth'](){const _0x200590=this['_parentView']?.['element']||this['_containerElement'];if(!_0x200590)return FALLBACK_CONTAINER_WIDTH;const _0xd1f57e=window['getComputedStyle'](_0x200590)['width'];if('auto'===_0xd1f57e||'0px'===_0xd1f57e||!_0xd1f57e){const _0x269b41=_0x200590['parentElement'];if(_0x269b41){const _0x4a3969=window['getComputedStyle'](_0x269b41);return'auto'!==_0x4a3969['width']?_0x4a3969['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0xd1f57e;}['_applyCalculationStyles'](_0x293d9e,_0x2c5798){this['_config']['cssClasses']['calculationContainer']&&_0x293d9e['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x293d9e['style']['width']=_0x2c5798,_0x293d9e['style']['position']='absolute',_0x293d9e['style']['top']='-9999px',_0x293d9e['style']['left']='-9999px',_0x293d9e['style']['opacity']='0',_0x293d9e['style']['pointerEvents']='none',_0x293d9e['style']['zIndex']='-1',_0x293d9e['style']['visibility']='visible\x20!important',_0x293d9e['style']['display']='block\x20!important',_0x293d9e['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x47e1ed){_0x47e1ed['forEach'](({element:_0x4ea4f4,originalDisplay:_0x1cc713,originalVisibility:_0x4ebf19})=>{_0x4ea4f4['style']['display']=_0x1cc713,_0x4ea4f4['style']['visibility']=_0x4ebf19;});}['_makeAncestorsVisible'](_0x3a9ea8){const _0x50496d=[];let _0x372974=_0x3a9ea8;for(;_0x372974&&_0x372974!==document['body'];){const _0x76897f=window['getComputedStyle'](_0x372974);'none'!==_0x76897f['display']&&'hidden'!==_0x76897f['visibility']||(_0x50496d['push']({'element':_0x372974,'originalDisplay':_0x372974['style']['display'],'originalVisibility':_0x372974['style']['visibility']}),_0x372974['style']['display']='block',_0x372974['style']['visibility']='visible'),_0x372974=_0x372974['parentElement'];}return _0x50496d;}['_createContainerElements'](){let _0x23eb79,_0x1cda06;return this['_parentView']?.['element']?(_0x23eb79=this['_parentView']['element']['cloneNode'](!0x0),_0x1cda06=this['_findTargetContainer'](_0x23eb79)):(_0x23eb79=document['createElement']('div'),_0x1cda06=_0x23eb79),{'calculationContainer':_0x23eb79,'targetContainer':_0x1cda06};}['_createCalculationContainer'](){const {calculationContainer:_0x318c88,targetContainer:_0x453d83}=this['_createContainerElements'](),_0x3f1115=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x318c88,_0x3f1115);const _0x4f406e=this['_parentView']?.['element']||this['_containerElement'],_0x38215b=_0x4f406e?.['parentElement'];_0x38215b?_0x38215b['appendChild'](_0x318c88):document['body']['appendChild'](_0x318c88),_0x318c88['_targetContainer']=_0x453d83;const _0x24c8c1=this['_makeAncestorsVisible'](_0x38215b||null);return _0x318c88['offsetWidth'],_0x318c88['_ancestorsToRestore']=_0x24c8c1,_0x318c88;}['_calculateOverflowInContainer'](_0x459de4,_0x39479a){const _0x3be320=_0x459de4['_targetContainer']||_0x459de4,_0x29c789=[],{rowCount:_0xd8e3de}=this['_renderChipsAndCountRows'](_0x3be320,_0x39479a);if(_0xd8e3de<=this['_config']['maxVisibleRows'])return _0x29c789;const _0x37b62b=_0x39479a['slice']();for(;_0x37b62b['length']>0x0;){if(this['_testButtonFit'](_0x459de4,_0x3be320,_0x37b62b)){const _0x16d479=_0x39479a['filter'](_0x593b2d=>!_0x37b62b['includes'](_0x593b2d));_0x29c789['push'](..._0x16d479);break;}if(!_0x37b62b['pop']())break;}return _0x29c789;}['_renderChipsAndCountRows'](_0x1aee0b,_0x2b31e9){_0x1aee0b['innerHTML']='',_0x2b31e9['forEach'](_0x21c4e6=>{if(_0x21c4e6['element']){const _0x2f6de7=_0x21c4e6['element']['cloneNode'](!0x0);_0x1aee0b['appendChild'](_0x2f6de7);}}),_0x1aee0b['offsetWidth'];const _0x385aae=_0x1aee0b['children'],_0x3629c8=[];return Array['from'](_0x385aae)['forEach'](_0x30cd01=>{const _0x3c29e3=_0x30cd01['getBoundingClientRect']()['top'];_0x3629c8['some'](_0x44febe=>Math['abs'](_0x44febe-_0x3c29e3)<this['_config']['rowDetectionTolerance'])||_0x3629c8['push'](_0x3c29e3);}),{'rowCount':_0x3629c8['length']};}['_createMockButton'](){const _0x1e1c0c=document['createElement']('button');return _0x1e1c0c['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x1e1c0c['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x1e1c0c['textContent']='+\x201',_0x1e1c0c;}['_testButtonFit'](_0xed112d,_0x4daa48,_0x3f97c8){this['_renderChipsAndCountRows'](_0x4daa48,_0x3f97c8);const _0x1b994c=this['_createMockButton']();_0xed112d['appendChild'](_0x1b994c),_0xed112d['offsetWidth'];const _0xd55e98=[..._0x4daa48['children'],_0x1b994c],_0x391597=[];_0xd55e98['forEach'](_0x4ae36f=>{const _0x519456=_0x4ae36f['getBoundingClientRect']()['top'];_0x391597['some'](_0x5e955e=>Math['abs'](_0x5e955e-_0x519456)<this['_config']['rowDetectionTolerance'])||_0x391597['push'](_0x519456);});const _0x242311=_0x391597['length'];return _0x1b994c['remove'](),_0x242311<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0x4d1657,_0x2f90c5){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0x4d1657['forEach'](_0x3054e5=>{_0x2f90c5['includes'](_0x3054e5)?this['_overflowChips']['add'](_0x3054e5):this['_visibleChips']['add'](_0x3054e5);});}['_updateOverflowUI'](_0x430fd5){if(_0x430fd5>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0x430fd5>0x0&&this['_showMoreButtonView']){const _0x50a1c9=''+this['_config']['showMoreLabelPrefix']+(_0x430fd5<0x63?_0x430fd5:'99');this['_showMoreButtonView']['label']=_0x50a1c9;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0x3d4462,_0x11315f){this['_distributeChips'](_0x3d4462,_0x11315f),this['_updateOverflowUI'](_0x11315f['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x294c0a=>{_0x294c0a[0x0]['isIntersecting']&&this['_pendingCalculation']&&requestAnimationFrame(()=>{this['_checkAndHandleOverflow']();});},{'threshold':0.01,'rootMargin':'50px'}),this['_intersectionObserver']['observe'](this['_containerElement']));}['_isContainerVisible'](){if(!this['_containerElement'])return!0x1;if(!this['_containerElement']['isConnected'])return!0x1;const _0x343f42=this['_containerElement']['getBoundingClientRect']();if(0x0===_0x343f42['width']||0x0===_0x343f42['height'])return!0x1;const _0x7dc5d5=window['innerHeight']||document['documentElement']['clientHeight'],_0x2d9c07=window['innerWidth']||document['documentElement']['clientWidth'],_0x9a45dd=0xc8;return _0x343f42['bottom']>=-0xc8&&_0x343f42['top']<=_0x7dc5d5+_0x9a45dd&&_0x343f42['right']>=-0xc8&&_0x343f42['left']<=_0x2d9c07+_0x9a45dd;}}const CSS_CLASSES$6={'CONTEXT_CHIPS':'ck-ai-chat__feed__context-chips','CONTEXT_CHIPS_VISIBLE':'ck-ai-chat-context-chips-wrapper','CONTEXT_CHIPS_OVERFLOW':'ck-ai-chat-context-chips-wrapper-balloon','CONTROLS_BUTTON':'ck-ai-chat-controls-button','SHOW_MORE_BUTTON':'ck-ai-chat-controls_context_show-more-button','SHOW_MORE_BALLOON':'ck-ai-chat-context-controls__show-more-balloon-panel'};class AIChatFeedContextChipsView extends View{['_contextChips']=this['createCollection']();['_overflowManager'];['_bodyCollection'];constructor(_0x250905,_0x4ff0ab,_0x2d07f8){super(_0x250905),this['_bodyCollection']=_0x2d07f8,this['_createContextChips'](_0x4ff0ab);const _0x5ed11f={'cssClasses':{'showMoreButton':CSS_CLASSES$6['SHOW_MORE_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'showMoreBalloon':CSS_CLASSES$6['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES$6['CONTEXT_CHIPS_OVERFLOW'],'controlsButton':CSS_CLASSES$6['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x250905,this['_contextChips'],_0x5ed11f,this['_bodyCollection'],this),this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$6['CONTEXT_CHIPS'],'ck','ck-reset_all']},'children':[{'tag':'div','attributes':{'class':CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']},'children':this['_contextChips']}]});}['render'](){super['render']();const _0x5bd679=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x5bd679&&(this['_overflowManager']['setContainerElement'](_0x5bd679),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x160dcd){for(const _0x39b707 of _0x160dcd){const _0x430831=new AIChatContextItemButtonView(this['locale'],_0x39b707,!0x0,!0x1);this['_contextChips']['add'](_0x430831);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0xd3fdd0,_0x253983,_0x3dd093){super(_0x253983),this['_locale']=_0xd3fdd0,this['_bodyCollection']=_0x3dd093,this['_createContextChipsView'](),this['_createMessageContentView'](),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__user-message']}});}['_createContextChipsView'](){this['options']['contextItems']&&this['options']['contextItems']['length']>0x0&&(this['_contextChipsView']=new AIChatFeedContextChipsView(this['_locale'],this['options']['contextItems']['filter'](_0x13dab8=>!_0x13dab8['hidden']),this['_bodyCollection']),this['_contextChipsView']['extendTemplate']({'attributes':{'class':'ck-ai-chat__feed__context-chips'}}),this['children']['add'](this['_contextChipsView']));}['_createMessageContentView'](){this['_messageContentView']=new View(this['_locale']),this['_messageContentView']['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__message-content'}}),this['children']['add'](this['_messageContentView']);}['render'](){super['render'](),this['_messageContentView']['element']['innerHTML']=this['options']['initialContent'],this['markAsDone']();}}class AIChatFeedInteractionHeaderView extends AIChatFeedItemView{['capabilities'];constructor(_0x194e16,_0x93298a){super(_0x93298a);const {isWebSearchEnabled:_0x505281,isReasoningEnabled:_0x3d9bd1}=_0x93298a['capabilities'],_0x1a3bc0=[];let _0x3f90a5='';_0x505281&&_0x3d9bd1?(_0x3f90a5=getTranslation$i(_0x194e16,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x1a3bc0['push'](createIcon(IconWeb)),_0x1a3bc0['push'](createIcon(IconBulb))):_0x505281?(_0x3f90a5=getTranslation$i(_0x194e16,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x1a3bc0['push'](createIcon(IconWeb))):_0x3d9bd1&&(_0x3f90a5=getTranslation$i(_0x194e16,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x1a3bc0['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x3f90a5?'':'ck-hidden']}});const _0x59b2b4=new View();_0x59b2b4['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x1a3bc0,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x3f90a5]}]}),this['children']['add'](_0x59b2b4),this['capabilities']=_0x93298a['capabilities'];}}function createIcon(_0x1fe052){const _0x10a23c=new IconView();return _0x10a23c['content']=_0x1fe052,_0x10a23c;}const BOTTOM_THRESHOLD=0x5,USER_CANCEL_EVENT_NAMES=['wheel','touchstart','pointerdown','keydown'],USER_CANCEL_SCROLL_KEYS=['ArrowUp','ArrowDown','PageUp','PageDown','Home','End','\x20'];class ScrollManager{['element'];['animationFrameId'];['isRunning'];['abortController'];['isUserPaused'];['scrollBehavior'];constructor(_0x519699){this['element']=_0x519699,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1,this['scrollBehavior']='smooth';for(const _0x36c0d9 of USER_CANCEL_EVENT_NAMES){const _0x5ef9a2='keydown'!==_0x36c0d9;this['element']['addEventListener'](_0x36c0d9,this['_onUserEvent']['bind'](this),{'passive':_0x5ef9a2,'signal':this['abortController']['signal']});}}['start']({smooth:_0x43e938=!0x0}={}){this['isRunning']||(this['isRunning']=!0x0,this['isUserPaused']=!0x1,this['scrollBehavior']=_0x43e938?'smooth':'auto',this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}['stop'](){requestAnimationFrame(()=>{this['_stop']();});}['destroy'](){this['_stop'](),this['abortController']['abort']();}['_stop'](){null!==this['animationFrameId']&&(cancelAnimationFrame(this['animationFrameId']),this['animationFrameId']=null),this['isRunning']&&(this['isRunning']=!0x1),this['isUserPaused']=!0x1;}['_onUserEvent'](_0x1e970d){if(this['isRunning']){if('keydown'===_0x1e970d['type']){const _0x103633=_0x1e970d['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x103633))return;}_0x1e970d instanceof WheelEvent?_0x1e970d['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x5d9b06,scrollHeight:_0x44e894,clientHeight:_0x430bd6}=this['element'];return _0x44e894-_0x5d9b06-_0x430bd6<=BOTTOM_THRESHOLD;}['_rafUpdate'](){this['isRunning']&&(this['isUserPaused']||this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':this['scrollBehavior']}),this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}}class AIChatFeedCustomElementView extends AIChatFeedItemView{constructor(_0x30a1d8){super(_0x30a1d8),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__custom-element']}});}async['render'](){super['render'](),'string'==typeof this['options']['content']?this['element']['innerHTML']=this['options']['content']:this['element']['appendChild'](this['options']['content']);}}class AIChatFeedView extends View{['children'];['scrollManager'];['_bodyCollection'];constructor(_0x27e48d,_0x33be07){super(_0x27e48d),this['_bodyCollection']=_0x33be07,this['set']('loadingMessage',''),this['set']('isLoadingSkeletonVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),this['children']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_setupTemplate']();}['render'](){super['render'](),this['scrollManager']=new ScrollManager(this['element']);}['destroy'](){super['destroy'](),this['scrollManager']['destroy']();}['clear'](){this['children']['clear']();}['addItem'](_0x30ec06,_0x1de121){let _0x2dade7;return'ai-reply'===_0x30ec06?_0x2dade7=new AIChatFeedReplyItemView(this['locale'],_0x1de121,this['_bodyCollection']):'ai-suggestion-reply'===_0x30ec06?(_0x2dade7=new AIChatFeedSuggestionItemView(this['locale'],_0x1de121,this['_bodyCollection']),_0x2dade7['bind']('isTrackChangesOn')['to'](this)):_0x2dade7='user-message'===_0x30ec06?new AIChatFeedUserMessageItemView(this['locale'],_0x1de121,this['_bodyCollection']):'interaction-header'===_0x30ec06?new AIChatFeedInteractionHeaderView(this['locale'],_0x1de121):'custom-element'===_0x30ec06?new AIChatFeedCustomElementView(_0x1de121):new AIChatFeedErrorItemView(_0x1de121),this['children']['add'](_0x2dade7),_0x2dade7;}async['updateReplyItem']({id:_0x32cbd7,parsedContent:_0x10b5db,renderingStrategy:_0x3132f7,abortSignal:_0x2deed9}){const _0x39a78b=this['getItemById'](_0x32cbd7);if(!(_0x39a78b instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x39a78b,'id':_0x32cbd7,'parsedContent':_0x10b5db});await _0x39a78b['updateContent']({'parsedContent':_0x10b5db,'renderingStrategy':_0x3132f7,'abortSignal':_0x2deed9});}async['updateWebSources'](_0x4dd793,_0x2233b5){const _0x36be9d=this['getItemById'](_0x4dd793);if(_0x36be9d instanceof AIChatFeedSuggestionItemView)_0x36be9d['updateSources'](_0x2233b5);else{if(!(_0x36be9d instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x36be9d,'id':_0x4dd793,'sources':_0x2233b5});_0x36be9d['updateSources'](_0x2233b5);}}async['updateSuggestionItem']({id:_0x549691,parts:_0x45ce4f,abortSignal:_0x3077cd,skipLoadingEffects:_0x4229c7}){const _0x47f6ee=this['getItemById'](_0x549691);if(!(_0x47f6ee instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x47f6ee,'id':_0x549691,'parts':_0x45ce4f});await _0x47f6ee['updateContent']({'parts':_0x45ce4f,'abortSignal':_0x3077cd,'skipLoadingEffects':_0x4229c7});}['updateSuggestionPartState']({id:_0x48e6f4,index:_0xf5cc69,state:_0x4c827a}){const _0x20ada3=this['getItemById'](_0x48e6f4);if(!(_0x20ada3 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x48e6f4});_0x20ada3['updatePartState'](_0xf5cc69,_0x4c827a);}['setSuggestionPartActive']({id:_0x1a1abc,index:_0x55e9d7,isActive:_0x407911}){const _0x2e4564=this['getItemById'](_0x1a1abc);if(!(_0x2e4564 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x1a1abc});this['children']['filter'](_0x1833ac=>_0x1833ac instanceof AIChatFeedSuggestionItemView)['forEach'](_0x440df6=>{_0x440df6['setPartActive'](!0x1);}),_0x2e4564['setPartActive'](_0x55e9d7,_0x407911);}['markItemAsDone'](_0x5ea2f5){this['getItemById'](_0x5ea2f5)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x4e9807=>_0x4e9807['options']['id']);}['removeItem'](_0x4043fc){this['children']['remove'](this['getItemById'](_0x4043fc));}['hasItem'](_0x45cf86){return!!this['children']['find'](_0x506d2f=>_0x506d2f['options']['id']['includes'](_0x45cf86));}['scrollToSuggestion'](_0xd408c9,_0x36e93b){const _0x3a584d=this['getItemById'](_0xd408c9);if(!(_0x3a584d instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0xd408c9,'partIndex':_0x36e93b});const _0x1bc073=_0x3a584d['getPartView'](_0x36e93b);_0x1bc073?scrollAncestorsToShowTarget(_0x1bc073['element'],0x14,this['element']['parentElement'],!0x0,!0x0):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0xd408c9,'partIndex':_0x36e93b});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0x15d1df=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x15d1df,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x3fb5b0=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x3fb5b0['bind']('isVisible')['to'](this,'isLoadingSkeletonVisible'),_0x3fb5b0;}['_createFeedItems'](){const _0x562c12=new View(this['locale']);return _0x562c12['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x562c12;}['_createFeedLoader'](){const _0x338e5b=new View(this['locale']);return _0x338e5b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('loadingMessage','ck-hidden',_0x4097cc=>!_0x4097cc)]},'children':this['_createLoaderChildren']()}),_0x338e5b;}['_createLoaderChildren'](){const _0x3889a5=new AISpinnerView();return _0x3889a5['isVisible']=!0x0,[_0x3889a5,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x40633f){const _0x123466=this['children']['find'](_0x5eeffc=>_0x5eeffc['options']['id']['includes'](_0x40633f));if(!_0x123466)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x40633f});return _0x123466;}['setLoadingMessage'](_0x2f6e2f){this['set']('loadingMessage',_0x2f6e2f);}['toggleLoadingSkeleton'](_0x4b7cc7){this['set']('isLoadingSkeletonVisible',_0x4b7cc7);}['startAutoScroll'](_0x3bcaa5={}){this['scrollManager']['start'](_0x3bcaa5);}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0x3b136b=0x0;for(const _0x39d175 of this['items'])_0x3b136b+=_0x39d175['items']['length'];return{'resultsCount':_0x3b136b,'totalItemsCount':_0x3b136b};}}const PROMPT_INPUT_HIGHLIGHT_DURATION=0x320,PROMPT_INPUT_HIGHLIGHT_CLASS='ck-ai-chat__prompt-input_highlighted';class AIChatPromptInputView extends AutocompleteView{['submitButtonView'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;['_addContextButtonView'];['_queryViewResizeObserver'];constructor(_0x5f0b19,_0x130451){super(_0x5f0b19,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x5f0b19),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x130451,this['_queryViewResizeObserver']=null,this['queryView']['fieldView']['minRows']=AIChatPromptInputView['MIN_ROWS'],this['queryView']['fieldView']['maxRows']=AIChatPromptInputView['MAX_ROWS'],this['queryView']['fieldWrapperChildren']['add'](this['_addContextButtonView']),this['_setUpAddContextButtonPositioning'](),this['extendTemplate']({'attributes':{'class':['ck','ck-ai-chat__prompt-input']}}),this['submitButtonView']=this['_createSubmitButton'](),this['submitButtonView']['bind']('isEnabled')['to'](this,'isEmpty',this,'isUploadInProgress',(_0x19e76f,_0x15ee9e)=>!_0x19e76f&&!_0x15ee9e),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x245093,_0x1c6202)=>{this['isUploadInProgress']||this['isEmpty']||_0x245093['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x1c6202());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x10fc17=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x10fc17)return this['queryView']['errorText']=getTranslation$i(this['locale'],'AI_CHAT_PROMPT_EMPTY_ERROR'),void(this['queryView']['fieldView']['hasError']=!0x0);this['queryView']['fieldView']['hasError']=!0x1;const _0x571d49=escape(_0x10fc17);this['fire']('sendUserMessage',_0x571d49),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x42fc29){this['queryView']['fieldView']['set']('placeholder',_0x42fc29);}['focus'](_0x9a0f7b=!0x1){super['focus'](),_0x9a0f7b&&(this['element']['classList']['contains'](PROMPT_INPUT_HIGHLIGHT_CLASS)||(this['element']['classList']['add'](PROMPT_INPUT_HIGHLIGHT_CLASS),setTimeout(()=>{this['element']['classList']['remove'](PROMPT_INPUT_HIGHLIGHT_CLASS);},PROMPT_INPUT_HIGHLIGHT_DURATION)));}['_createSubmitButton'](){const _0x4b15e9=new ButtonView(this['locale']);return _0x4b15e9['set']({'icon':IconSubmit,'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_SUBMIT'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-chat__prompt-submit-button\x20'+AI_BUTTON_CLASSES['PRIMARY'],'isEnabled':!0x1}),_0x4b15e9['on']('execute',()=>{this['submit']();}),_0x4b15e9;}['setIsUploadInProgress'](_0x38d2bb){this['isUploadInProgress']=_0x38d2bb;}['_setUpAddContextButtonPositioning'](){const _0x4cdbef=this['locale'],_0x167165=()=>{_0x1a0b09['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x4c07bd=new Rect(this['queryView']['fieldView']['element']),_0x470a50=new Rect(this['_addContextButtonView']['element']),_0x335f74=_0x4c07bd['width'],_0x238398='rtl'===_0x4cdbef['uiLanguageDirection']?'right':'left';_0x4c07bd['excludeScrollbarsAndBorders']();const _0x2cca84=_0x335f74-_0x4c07bd['width']+0x1;this['_addContextButtonView']['element']['style'][_0x238398]='calc('+(_0x335f74-_0x470a50['width']-_0x2cca84)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x167165),this['on']('render',()=>{_0x167165(),this['_queryViewResizeObserver']=new _0x1b4a02(this['queryView']['fieldView']['element'],()=>{_0x167165();});});}}const CSS_CLASSES$5={'PROMPT_CAPABILITIES':'ck-ai-chat__prompt-capabilities','CONTROLS_BUTTON':'ck-ai-chat-controls-button','COMMANDS_BUTTON':'ck-ai-chat-controls-button--commands','MODEL_SELECTION':'ck-ai-chat-controls__model-selection','MODEL_SELECTION_ITEM_NAME':'ck-ai-chat-controls__model-selection__item-name','MODEL_SELECTION_ITEM_DESCRIPTION':'ck-ai-chat-controls__model-selection__item-description','MODEL_SELECTION_ITEM_CAPABILITIES':'ck-ai-chat-controls__model-selection__item-capabilities'},TOOLTIP_POSITION$3='n';class AIChatPromptCapabilitiesView extends View{['_webSearchButton'];['_reasoningButton'];['_commandsButton'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_modelNameView'];constructor(_0x3ed51b){super(_0x3ed51b),this['set']('webSearchActive',!0x1),this['set']('reasoningActive',!0x1),this['set']('modelDisplayMode','selector'),this['set']('modelSelectorEnabled',!0x0),this['set']('activeModelId',null),this['set']('activeModelName',null),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelNameView']=this['_createModelNameView'](),this['_webSearchButton']=this['_createWebSearchButton'](),this['_reasoningButton']=this['_createReasoningButton'](),this['_commandsButton']=this['_createCommandsButton'](),this['_modelSelectionDropdown']['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x596984=>'selector'===_0x596984),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x3a294f=>_0x3a294f?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0xf92785=>_0xf92785),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x14280a=>_0x14280a),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0x5e6505=>getTranslation$i(this['locale'],_0x5e6505?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x596646=>_0x596646),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x117ac3=>getTranslation$i(this['locale'],_0x117ac3?'AI_CHAT_DISABLE_REASONING':'AI_CHAT_ENABLE_REASONING')),this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$5['PROMPT_CAPABILITIES']]},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],this['_webSearchButton'],this['_reasoningButton'],this['_commandsButton']]}),this['_modelSelectionDropdownItems']=new Collection(),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);}['setModelList'](_0x5e507b,_0x464ac8){if(_0x464ac8)this['set']('modelDisplayMode','hidden');else{const _0x2e2362=0x1===_0x5e507b['length'];this['set']('modelDisplayMode',_0x2e2362?'name':'selector');}if(this['_modelSelectionDropdownItems']['clear'](),_0x5e507b?.['length'])for(const _0x237fd1 of _0x5e507b){const _0x495a2d=new UIModel({'label':_0x237fd1['name'],'withText':!0x0,'role':'menuitemradio','id':_0x237fd1['id'],'model':_0x237fd1});_0x495a2d['bind']('isOn')['to'](this,'activeModelId',_0x130566=>_0x130566===_0x237fd1['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x495a2d,'labelView':new ModelButtonLabelView$1(this['locale'],_0x237fd1)});}}['setWebSearch'](_0x5a35f4){this['set']('webSearchActive',_0x5a35f4);}['setReasoning'](_0x21605c){this['set']('reasoningActive',_0x21605c);}['setModel'](_0x12b4cd){if(!_0x12b4cd)return;this['activeModelId']=_0x12b4cd['id'],this['activeModelName']=_0x12b4cd['name']||_0x12b4cd['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0x12b4cd['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0x12b4cd['name']);const _0x36062d=_0x12b4cd['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x36062d),this['_webSearchButton']['set']('isVisible',_0x36062d);const _0x391a65=_0x12b4cd['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x391a65),this['_reasoningButton']['set']('isVisible',_0x391a65);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0);}['disableModelSelector'](_0x27a020){this['set']('modelSelectorEnabled',!0x1),_0x27a020&&this['set']('modelDisplayMode','hidden');}['_createWebSearchButton'](){const _0x1f100c=new ButtonView();return _0x1f100c['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x1f100c['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x1f100c;}['_createReasoningButton'](){const _0x2c8c2c=new ButtonView();return _0x2c8c2c['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x2c8c2c['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x2c8c2c;}['_createCommandsButton'](){const _0x1a72c2=new ButtonView();return _0x1a72c2['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'icon':IconAI,'withText':!0x0,'class':CSS_CLASSES$5['CONTROLS_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'isToggleable':!0x0,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'tooltipPosition':TOOLTIP_POSITION$3}),_0x1a72c2['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x1a72c2['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x1a72c2;}['_createModelSelectionDropdown'](){const _0x221087=createDropdown(this['locale']);return _0x221087['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0x221087['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION$3,'class':AI_BUTTON_CLASSES['TERTIARY']}),this['listenTo'](_0x221087,'execute',_0x3e5f22=>{this['fire']('selectModel',_0x3e5f22['source']['model']);}),_0x221087;}['_createModelNameView'](){const _0x147b3f=new ModelNameView$1(this['locale']);return _0x147b3f['bind']('text')['to'](this,'activeModelName',_0x195ddc=>_0x195ddc??''),_0x147b3f['bind']('isVisible')['to'](this,'modelDisplayMode',_0x47e411=>'name'===_0x47e411),_0x147b3f;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x1559a9,_0x3b6f6d){super();const _0x39b3f4=this['bindTemplate'],_0x49d4e9=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x39b3f4['to']('style'),'id':_0x39b3f4['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x39b3f4['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x3b6f6d['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x49d4e9}]}),_0x49d4e9['addMany'](this['_getCapabilityParts'](_0x1559a9,IconWeb,'AI_CHAT_SEARCH_WEB',_0x3b6f6d['capabilities']['webSearch']?.['enabled']??!0x1)),_0x49d4e9['addMany'](this['_getCapabilityParts'](_0x1559a9,IconBulb,'AI_CHAT_REASONING',_0x3b6f6d['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x5a7697,_0x37f4d2,_0x3fd64a,_0x393e50){const _0x48beb7=new IconView();_0x48beb7['content']=_0x37f4d2;const _0x3a78ed=new View(_0x5a7697);_0x3a78ed['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x5a7697,_0x3fd64a)+':\x20'}]});const _0x44ca94=new View(_0x5a7697);return _0x44ca94['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x5a7697,_0x393e50?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x48beb7,_0x3a78ed,_0x44ca94];}},ModelNameView$1=class extends View{constructor(_0x4a73ef){super(_0x4a73ef),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x5aa105=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x5aa105['if']('isVisible','ck-hidden',_0x17a780=>!_0x17a780)]},'children':[{'text':_0x5aa105['to']('text')}]});}};const CSS_CLASSES$4={'URL_FORM':'ck-ai-chat-context-controls__url-form','URL_INPUT_SECTION':'ck-ai-chat-context-controls__url-input-section'},TOOLTIP_POSITION$2='n';class AIChatContextPanelUrlInputView extends View{['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['urlInputField'];['backButton'];['confirmButton'];constructor(_0x42f895){super(_0x42f895),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['backButton']=this['_createBackButton'](),this['urlInputField']=this['_createUrlInputField'](),this['confirmButton']=this['_createConfirmButton'](),this['_focusables']=this['createCollection']([this['backButton'],this['urlInputField'],this['confirmButton']]),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['set']('withBackButton',!0x0),this['_setupTemplate'](),this['_setupEventHandlers'](),this['_setupKeystrokes']();}['render'](){super['render'](),this['_focusables']['forEach'](_0x84d198=>{this['focusTracker']['add'](_0x84d198['element']),this['keystrokes']['listenTo'](_0x84d198['element']);}),submitHandler({'view':this}),this['focus']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['focus'](){this['urlInputField']['focus']();}['getValue'](){return this['urlInputField']['fieldView']['element']?.['value']?.['trim']()||'';}['clear'](){this['urlInputField']['fieldView']['element']['value']='',this['urlInputField']['errorText']=null,this['confirmButton']['isEnabled']=!0x1;}['setError'](_0x3eb597){this['urlInputField']['errorText']=_0x3eb597,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0x47a193=new ButtonView(this['locale']);return _0x47a193['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':TOOLTIP_POSITION$2,'class':['ck-button-icon\x20ck-button-back']}),this['on']('change:withBackButton',(_0x2841e6,_0x3b751d,_0x20ce54)=>{_0x47a193['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x20ce54?'':'\x20ck-hidden')]});}),_0x47a193;}['_createUrlInputField'](){const _0x3d20e2=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x3d20e2['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x3d20e2['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x3d20e2;}['_createConfirmButton'](){const _0x3418cb=new ButtonView(this['locale']);return _0x3418cb['set']({'icon':IconCheck,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0x3418cb;}['_setupTemplate'](){const _0x296a50=new FormHeaderView(this['locale'],{'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'class':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url'});_0x296a50['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x296a50,{'tag':'div','attributes':{'class':CSS_CLASSES$4['URL_INPUT_SECTION']},'children':[this['urlInputField'],this['confirmButton']]}]});}['_setupEventHandlers'](){this['backButton']['on']('execute',()=>{this['clear'](),this['fire']('cancel');}),this['urlInputField']['fieldView']['on']('input',()=>{this['clearError'](),this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}),this['on']('submit',_0x50f6e4=>{_0x50f6e4['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0x4132cc,_0x36096f)=>{this['clear'](),this['fire']('cancel'),_0x36096f();});}['_handleSubmit'](){const _0xfa955c=this['getValue']()['trim']();_0xfa955c?this['_isValidUrl'](_0xfa955c)?(this['clearError'](),this['fire']('submitUrl',_0xfa955c)):this['setError'](getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_INVALID_ERROR')):this['setError'](getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_EMPTY_ERROR'));}['_updateConfirmButtonState'](){const _0x4361f0=this['getValue']()['trim'](),_0x40d374=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x4361f0['length']>0x0&&!_0x40d374;}['_isValidUrl'](_0x43c769){try{return!!new URL(_0x43c769);}catch{return!0x1;}}}const CSS_CLASSES$3={'ITEM':'ck-ai-chat-resources__item','ITEM_IN_CONTEXT':'ck-ai-chat-resources__item--in-context','ITEM_TITLE':'ck-ai-chat-resources__item-title','ITEM_ICON':'ck-ai-chat-resources__item__icon'};class AIChatResourceListItemView extends ListItemView{['resource'];['_titleView'];['_iconView'];constructor(_0x4bdb12,_0x56c27e){super(_0x4bdb12),this['resource']=_0x56c27e,this['set']('isInContext',!!_0x56c27e['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0x3a0f15){if(_0x3a0f15['isInContext'])return IconCheck;switch(_0x3a0f15['type']){case'document':return IconDocument;case'web-resource':return IconLink;case'file':case'text':return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0x39b166){if(!_0x39b166||''===_0x39b166['trim']())return void this['_titleView']['highlightText'](null);const _0x4d4771=new RegExp(escapeRegExp(_0x39b166),'gi');this['_titleView']['highlightText'](_0x4d4771);}['updateResourceState'](_0x3314f0){this['resource']['isInContext']=_0x3314f0,this['isInContext']=_0x3314f0,this['_updateIcon']();}['_createTitleView'](){const _0x333df2=new HighlightedTextView();return _0x333df2['text']=this['resource']['label'],_0x333df2['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x333df2;}['_createIconView'](){const _0x10d40b=new IconView();return _0x10d40b['content']=this['getResourceIcon'](this['resource']),_0x10d40b;}['_setupTemplate'](){const _0x10c501=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x10c501['if']('isVisible','ck-hidden',_0x25f197=>!_0x25f197),_0x10c501['if']('isInContext',CSS_CLASSES$3['ITEM_IN_CONTEXT'])]},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM_ICON']]},'children':[this['_iconView']]},this['_titleView']],'on':{'click':_0x10c501['to']('execute')}});}['_updateIcon'](){this['_iconView']['content']=this['getResourceIcon'](this['resource']);}}const CSS_CLASSES$2={'LIST':'ck-ai-chat-resources__list'};class AIChatContextResourcesListView extends ListView{['_source'];constructor(_0x574970,_0x3d85f3){super(_0x574970),this['_source']=_0x3d85f3,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0x74d675,_0x58b799){this['items']['clear']();let _0x4c26de=_0x74d675;if(this['_source']['useDefaultFiltering']&&_0x58b799&&''!==_0x58b799['trim']()){const _0x4c5283=new RegExp(_0x58b799['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x4c26de=_0x74d675['filter'](_0x4322e4=>_0x4c5283['test'](_0x4322e4['label']));}for(const _0x307042 of _0x4c26de){const _0x260eac=new AIChatResourceListItemView(this['locale'],_0x307042);_0x260eac['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x307042);}),this['items']['add'](_0x260eac);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0x58b799);}['highlightText'](_0x230cce){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x87b57f=>{_0x87b57f['highlightText'](_0x230cce);});}['updateResourceState'](_0x341683,_0x513de0){for(const _0x42248d of this['items']){const _0x47abd2=_0x42248d;_0x47abd2['resource']['id']===_0x341683&&_0x47abd2['updateResourceState'](_0x513de0);}}['_handleResourceSelection'](_0x50e2e7,_0x187c39){this['fire']('addResourceToContext',{'source':_0x50e2e7,'resource':_0x187c39});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x161241){const t=_0x161241['t'],_0x54de30={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0x161241,'AI_CHAT_SEARCH_RESOURCES')};super(_0x161241,_0x54de30['creator']),this['label']=_0x54de30['label'],this['_viewConfig']=_0x54de30,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x161241,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5cd39b){this['fire']('search',_0x5cd39b);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new IconView(),this['iconView']['content']=IconLoupe,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x1d9bdf,t){this['resetButtonView']=new ButtonView(_0x1d9bdf),this['resetButtonView']['set']({'label':t('Clear'),'icon':IconCancel,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x4f299a=>!_0x4f299a),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}class AIChatContextResourcesView extends View{['_searchView'];['_searchSection'];['_searchInputVisibleFrom'];['_resourcesListView'];['_skeletonLoader'];['_source'];['children'];['_latestLoadResourcesUid']=null;constructor(_0x2101ef,_0x1da458){super(_0x2101ef),this['_source']=_0x1da458['source'],this['_searchInputVisibleFrom']=_0x1da458['searchInputVisibleFrom']??0x7,this['set']('isLoading',!0x0),this['_searchView']=this['_createSearchView'](),this['_searchSection']=this['_createSearchSection'](),this['_resourcesListView']=this['_createResourcesListView'](),this['_skeletonLoader']=this['_createSkeletonView'](),this['children']=new ViewCollection([this['_skeletonLoader'],this['_resourcesListView']]),this['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat-resources'},'children':this['children']});}['_createSearchView'](){return new AIChatContextResourcesSearchInputView(this['locale']);}['_createSearchSection'](){const _0x3680aa=new View(this['locale']);return _0x3680aa['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x1af241,_0x141e7d)=>{this['loadResources'](_0x141e7d),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0x141e7d);}),_0x3680aa;}['_createResourcesListView'](){const _0x340ac2=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x340ac2['delegate']('addResourceToContext')['to'](this),_0x340ac2['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x340ac2;}['_createSkeletonView'](){const _0x3ca60d=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x3ca60d['bind']('isVisible')['to'](this,'isLoading'),_0x3ca60d;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x5d621a){const _0x216369=uid();this['_latestLoadResourcesUid']=_0x216369,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x5d621a,'uid':_0x216369}),this['isLoading']=!0x0;}['setResources'](_0x30f3be,_0x37e17a){if(_0x37e17a&&_0x37e17a!==this['_latestLoadResourcesUid'])return;const _0x5a1a58=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x30f3be,_0x5a1a58),_0x30f3be['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x4dff2a,_0x5e2662){this['_resourcesListView']['updateResourceState'](_0x4dff2a,_0x5e2662);}}const CSS_CLASSES$1={'SOURCE_BALLOON_PANEL':'ck-ai-chat-context-controls__source-balloon-panel','SOURCE_BACK_BUTTON':'ck-button-icon\x20ck-button-back','SOURCE_HEADER':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source'},TOOLTIP_POSITION$1='n';class AIChatResourcesBalloonView{['_sourceResourceBalloons']=new Map();['_bodyCollection'];['_locale'];['_config'];constructor(_0x3e77bf,_0xf6baae,_0x471350){this['_locale']=_0x3e77bf,this['_bodyCollection']=_0xf6baae,this['_config']=_0x471350;}['showSourceResourcesBalloon']({source:_0x420856,withBackButton:_0x6b03aa}){let _0x4e4772=this['_sourceResourceBalloons']['get'](_0x420856['id']);_0x4e4772||(_0x4e4772=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x420856['id'],_0x4e4772),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x4e4772)),this['_addSourceResourceContent']({'balloonPanel':_0x4e4772,'source':_0x420856,'withBackButton':_0x6b03aa}),_0x4e4772['show']();const _0x1e875f=this['_config']['getTargetElement']();_0x1e875f&&_0x4e4772['pin']({'target':_0x1e875f,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x920d72,_0x30cbcd,_0x2b74de){const _0x3b2d31=this['_sourceResourceBalloons']['get'](_0x920d72);if(!_0x3b2d31)return;const _0x2dd9d9=this['_getResourcesViewFromBalloon'](_0x3b2d31);_0x2dd9d9&&(_0x2dd9d9['setResources'](_0x30cbcd,_0x2b74de),_0x2dd9d9['once']('change:isLoading',()=>{_0x3b2d31['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0xc8b7df){const _0x170dae=this['_sourceResourceBalloons']['get'](_0xc8b7df);_0x170dae&&requestAnimationFrame(()=>{_0x170dae['hide'](),this['_sourceResourceBalloons']['delete'](_0xc8b7df),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x1f32ca of this['_sourceResourceBalloons']['values']())if(_0x1f32ca['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0x34c7ce,_0x8eaae4,_0x4c0e8a){const _0x13085a=this['_sourceResourceBalloons']['get'](_0x34c7ce);if(!_0x13085a||!_0x13085a['isVisible'])return;const _0x4ccbce=this['_config']['getTargetElement']();if(!_0x4ccbce)return;_0x13085a['pin']({'target':_0x4ccbce,'limiter':this['_config']['getLimiterElement']()});const _0x478e77=this['_getResourcesViewFromBalloon'](_0x13085a);_0x478e77&&_0x478e77['updateResourceState'](_0x8eaae4,_0x4c0e8a);}['destroy'](){for(const _0x102d10 of this['_sourceResourceBalloons']['values']())_0x102d10['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0x49f4d6=new BalloonPanelView(this['_locale']);return _0x49f4d6['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0x49f4d6),_0x49f4d6;}['_addSourceResourceContent']({balloonPanel:_0x2f2584,source:_0x12b467,withBackButton:_0x276b8a}){_0x2f2584['content']['clear']();const _0x2524b9=this['_createBalloonHeader']({'balloonPanel':_0x2f2584,'source':_0x12b467,'withBackButton':_0x276b8a});_0x2f2584['content']['add'](_0x2524b9);const _0x574968=this['_createBalloonResourcesView'](_0x12b467);_0x2f2584['content']['add'](_0x574968);}['_createBalloonHeader']({balloonPanel:_0x1b2db8,source:_0x54370d,withBackButton:_0x283997}){const _0x2a2b24=new FormHeaderView(this['_locale'],{'label':_0x54370d['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0x283997&&_0x2a2b24['children']['add'](this['_createBackButton'](_0x1b2db8),0x0),_0x2a2b24;}['_createBackButton'](_0xb9e538){const _0x2b30d7=new ButtonView(this['_locale']);return _0x2b30d7['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['_locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':TOOLTIP_POSITION$1,'class':CSS_CLASSES$1['SOURCE_BACK_BUTTON']}),_0x2b30d7['on']('execute',()=>{_0xb9e538['hide'](),this['_config']['onBackToContext']();}),_0x2b30d7;}['_createBalloonResourcesView'](_0x5ebcc3){const _0x227805=new AIChatContextResourcesView(this['_locale'],{'source':_0x5ebcc3,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x227805['on']('loadSourceResources',(_0x4633bd,_0xd26730)=>{this['_config']['onLoadSourceResources'](_0xd26730);}),_0x227805['on']('addResourceToContext',(_0x421654,_0x3d0bb2)=>{this['_config']['onResourceSelected'](_0x3d0bb2['source'],_0x3d0bb2['resource']),this['closeSourceResourceBalloon'](_0x5ebcc3['id']);}),_0x227805;}['_getResourcesViewFromBalloon'](_0xaf6d40){const _0xcbf02c=_0xaf6d40['content']['get'](0x1);return _0xcbf02c instanceof AIChatContextResourcesView?_0xcbf02c:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x3a416e){clickOutsideHandler({'emitter':_0x3a416e,'contextElements':[_0x3a416e['element']],'callback':()=>{_0x3a416e['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x3a416e['isVisible']});}}const CONTEXT_PANEL_VIEW_EVENT_NAMES=['addDocumentToContext','addFileToContext','addUrlToContext','addResourceToContext','removeContextItem','loadSourceResources','executeCustomItemCallback'],CSS_CLASSES={'CONTEXT_CONTROLS':'ck-ai-chat-context-controls','PENDING_CONTEXTS':'ck-ai-chat-context-controls__pending-contexts','ADD_CONTEXT_BALLOON':'ck-ai-chat-context-controls__add-context-balloon-panel','ADD_CONTEXT_BUTTON':'ck-ai-chat-context-controls__add-context-button','URL_BALLOON':'ck-ai-chat-context-controls__url-balloon-panel','BALLOON_BUTTON':'ck-ai-chat-context-controls__balloon-button','BALLOON_BUTTON_SOURCE':'ck-ai-chat-context-controls__balloon-button-source','CONTROLS_BUTTON':'ck-ai-chat-controls-button','CONVERSATION_CONTEXT_CHIPS':'ck-ai-chat-context-chips-wrapper-balloon','SHOW_MORE_BUTTON':'ck-ai-chat-controls_context_show-more-button','SHOW_MORE_BALLOON':'ck-ai-chat-context-controls__show-more-balloon-panel','CHAT_CONTAINER':'ck-ai-chat'},TOOLTIP_POSITION='sw',BALLOON_POSITIONS=[BalloonPanelView['defaultPositions']['northArrowSouthWest'],BalloonPanelView['defaultPositions']['northArrowSouth'],BalloonPanelView['defaultPositions']['northArrowSouthEast'],BalloonPanelView['defaultPositions']['southArrowNorthWest'],BalloonPanelView['defaultPositions']['southArrowNorth'],BalloonPanelView['defaultPositions']['southArrowNorthEast']];class AIChatContextPanelView extends View{['addContextButtonView'];['_currentContextsChips']=this['createCollection']();['_conversationContextsChips']=this['createCollection']();['_overflowManager'];['_addContextBalloonPanelView'];['_urlBalloonPanelView'];['_urlInputView'];['_resourcesBalloonView'];['_addContextBalloonConfig'];['_hasExactlyOneSource']=!0x1;['bodyCollection'];constructor(_0x58ad71,_0x5425b9){super(_0x58ad71),this['bodyCollection']=_0x5425b9['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x58ad71),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x58ad71),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x58ad71),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x58ad71,_0x5425b9);const _0x2f9346={'cssClasses':{'showMoreButton':CSS_CLASSES['SHOW_MORE_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'showMoreBalloon':CSS_CLASSES['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES['CONVERSATION_CONTEXT_CHIPS'],'controlsButton':CSS_CLASSES['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x58ad71,this['_currentContextsChips'],_0x2f9346,this['bodyCollection'],this),this['_addContextBalloonConfig']={'buttonView':this['addContextButtonView'],'balloonView':this['_addContextBalloonPanelView'],'hideMethod':this['hideAddContextBalloonPanel']['bind'](this),'showMethod':this['showAddContextBalloonPanel']['bind'](this)},this['_setupTemplate'](),this['_bindEventHandlers']();}['render'](){super['render'](),this['_setupAllBalloonClickOutsideHandlers'](),this['_overflowManager']['setContainerElement'](this['element']),this['_overflowManager']['reorganizeChips']();}['destroy'](){super['destroy'](),this['_overflowManager']['destroy'](),this['_resourcesBalloonView']['destroy']();}['addContextItem'](_0x3646c2,_0x347ff6){const _0x588e57=this['_createContextButton'](_0x3646c2,'current',!0x0,_0x347ff6);this['_addContextToCollection'](_0x588e57,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x5eb6dd){this['_removeContextFromCollection'](_0x5eb6dd,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x5eb6dd,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x3d20f2,_0x185f80){let _0x2a350f=this['_currentContextsChips']['find'](_0x4c1886=>_0x4c1886['id']===_0x3d20f2);_0x2a350f||(_0x2a350f=this['_overflowManager']['overflowChips']['find'](_0x580cfb=>_0x580cfb['id']===_0x3d20f2)),_0x2a350f&&(_0x2a350f['isLoading']=_0x185f80);}['setConversationContext'](_0x5ee7b8){this['_conversationContextsChips']['clear']();for(const _0xeb4c2f of _0x5ee7b8){const _0x494b88=this['_createContextButton'](_0xeb4c2f,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x494b88,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0x314316,_0x284313,_0x1822f7){this['_resourcesBalloonView']['updateResourceState'](_0x314316,_0x284313,_0x1822f7);}['hideAddContextBalloonPanel'](){this['_toggleAddContextBalloon'](!0x1);}['showAddContextBalloonPanel'](){this['_toggleAddContextBalloon'](!0x0);}['hideUrlBalloonPanel'](){this['_urlBalloonPanelView']['hide'](),this['addContextButtonView']['isOn']=!0x1,this['_urlInputView']&&this['_urlInputView']['clear']();}['showUrlBalloonPanel'](){this['_urlBalloonPanelView']['show'](),this['addContextButtonView']['isOn']=!0x0;}['_showSourceResourcesBalloon']({source:_0x1d61f9,withBackButton:_0x138896}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x1d61f9,'withBackButton':_0x138896}),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x34ce22,_0x2f469e,_0x2a33fa,_0x251e0e){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x34ce22,_0x2a33fa,_0x251e0e);}['closeSourceResourceBalloon'](_0x460a12){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x460a12),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x4a0bbe){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x4a0bbe),this['_setAddContextButtonEnabled'](_0x4a0bbe);}['_setAddContextButtonEnabled'](_0x4446ba){const _0x4908f0=!_0x4446ba['document']['isHidden']&&_0x4446ba['document']['enabled'],_0x2a9c7e=_0x4446ba['urls']['enabled'],_0x207c56=_0x4446ba['files']['enabled'],_0x178c6b=_0x4446ba['sources']['length']>0x0,_0x20a9b7=_0x4446ba['customItems']&&_0x4446ba['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x4908f0||_0x2a9c7e||_0x207c56||_0x178c6b||_0x20a9b7;}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES['CONTEXT_CONTROLS'],'ck-reset_all-excluded']},'children':[{'tag':'div','attributes':{'class':CSS_CLASSES['PENDING_CONTEXTS']},'children':this['_currentContextsChips']}]});}['_bindEventHandlers'](){this['addContextButtonView']['on']('execute',()=>{this['_handleAddContextButtonClick']();});}['_createAddContextButtonView'](_0x174099){const _0x23dd9b=new ButtonView(_0x174099);return _0x23dd9b['set']({'label':getTranslation$i(_0x174099,'AI_CHAT_CONTEXT_ADD_CONTEXT'),'class':CSS_CLASSES['CONTROLS_BUTTON']+'\x20'+CSS_CLASSES['ADD_CONTEXT_BUTTON']+'\x20'+AI_BUTTON_CLASSES['TERTIARY'],'icon':IconPaperClip,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION}),_0x23dd9b;}['_createAddContextBalloonPanelView'](_0xd96a8e){return this['_createBaseBalloonPanel'](_0xd96a8e,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0xf26973){const _0x1aef8a=this['_createBaseBalloonPanel'](_0xf26973,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x1aef8a,_0xf26973),_0x1aef8a;}['_createResourcesBalloonView'](_0x12801f,_0x1fc6e2){const _0x7ed3f0={'searchInputVisibleFrom':_0x1fc6e2['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0x269546,_0x2e71d7)=>{this['fire']('addResourceToContext',{'source':_0x269546,'resource':_0x2e71d7});},'onLoadSourceResources':_0x1367b6=>{this['fire']('loadSourceResources',_0x1367b6);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x12801f,_0x1fc6e2['bodyCollection'],_0x7ed3f0);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x437a51,_0x191c4c){const _0x107f09=new BalloonPanelView(_0x437a51);return _0x107f09['extendTemplate']({'attributes':{'class':_0x191c4c}}),this['bodyCollection']['add'](_0x107f09),_0x107f09;}['_setBalloonPanelContent'](_0x3d14cf,_0x3d36f0,_0x4ba403){if(_0x3d14cf['content']['clear'](),!_0x4ba403['document']['isHidden']&&_0x4ba403['document']['enabled']){const _0xc20f4b=this['_createBalloonButton'](_0x3d36f0,{'label':getTranslation$i(_0x3d36f0,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument});_0xc20f4b['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x3d14cf['content']['add'](_0xc20f4b);}if(_0x4ba403['urls']['enabled']){const _0x2ba22e=this['_createBalloonButton'](_0x3d36f0,{'label':getTranslation$i(_0x3d36f0,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x2ba22e['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0x3d14cf['content']['add'](_0x2ba22e);}if(_0x4ba403['files']['enabled']){const _0x1e9b99=new FileDialogButtonView(_0x3d36f0);_0x1e9b99['set']({'label':getTranslation$i(_0x3d36f0,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x1e9b99['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x1e9b99['on']('done',(_0xed406e,_0x454e1b)=>{this['fire']('addFileToContext',_0x454e1b);}),_0x1e9b99['tooltip']=!0x0,_0x3d14cf['content']['add'](_0x1e9b99);}for(const _0x229d87 of _0x4ba403['sources']){const _0x5474f0=this['_createBalloonButton'](_0x3d36f0,{'label':_0x229d87['label'],'icon':_0x229d87['icon']||IconDocumentOutline,'type':'source'});_0x3d14cf['content']['add'](_0x5474f0),_0x5474f0['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x229d87,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x556dca of _0x4ba403['customItems']||[]){const _0x129fee=this['_createBalloonButton'](_0x3d36f0,{'label':_0x556dca['label'],'icon':_0x556dca['icon']||IconDocumentOutline,'type':'customItem'});_0x3d14cf['content']['add'](_0x129fee),_0x129fee['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x556dca);});}this['_hasExactlyOneSource']=0x1===_0x3d14cf['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}['_addUrlContent'](_0x6b9896,_0x24c46d){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x24c46d),this['_urlInputView']['on']('submitUrl',(_0xa84211,_0x12f468)=>{this['_handleUrlSubmit'](_0x12f468);}),this['_urlInputView']['on']('cancel',()=>{this['hideUrlBalloonPanel'](),this['_hasExactlyOneSource']||(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}));}),this['_urlInputView']['on']('refreshBalloon',()=>{this['_urlBalloonPanelView']['isVisible']&&this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});}),_0x6b9896['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x69b86e,_0x413a72){const _0x37120c='source'===_0x413a72['type']?new SourcesBalloonButtonView(_0x69b86e):new ButtonView(_0x69b86e);return _0x37120c['set']({'label':_0x413a72['label'],'icon':_0x413a72['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0x37120c;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0x314681){const _0x55f8d0=this['_addContextBalloonConfig'];_0x55f8d0['buttonView']['isOn']=_0x314681,_0x314681?_0x55f8d0['balloonView']['show']():_0x55f8d0['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x44522c,buttonView:_0x57c3a1,hideMethod:_0x101ec2}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x44522c,'contextElements':[_0x44522c['element'],_0x57c3a1['element']],'callback':()=>{_0x101ec2();},'activator':()=>_0x57c3a1['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x3710a7,_0x4b42a2,_0x4b87d1=!0x1,_0x4dac4e=!0x1){const _0x501a77='conversation'===_0x4b42a2||!0x0===_0x3710a7['isReadOnly'],_0x589792=new AIChatContextItemButtonView(this['locale'],_0x3710a7,_0x501a77,_0x4b87d1,_0x4dac4e);return _0x501a77||_0x589792['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x589792['id']);}),_0x589792;}['_addContextToCollection'](_0x10cf2a,_0x3ee1fc){_0x3ee1fc['add'](_0x10cf2a,0x0);}['_removeContextFromCollection'](_0x245d8f,_0x5b44e7){const _0xd46a17=_0x5b44e7['find'](_0x10ea44=>_0x10ea44['id']===_0x245d8f);_0xd46a17&&_0x5b44e7['remove'](_0xd46a17);}['_handleAddContextButtonClick'](){this['addContextButtonView']['isOn']?this['hideAddContextBalloonPanel']():(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_hasExactlyOneSource']&&this['_addContextBalloonPanelView']['content']['get'](0x0)?.['fire']('execute'));}['_handleUrlSubmit'](_0x44f44c){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x44f44c);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x3b6254){super(_0x3b6254),this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':[CSS_CLASSES['BALLOON_BUTTON_SOURCE']]}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x1a7b0a=new IconView();return _0x1a7b0a['content']=IconDropdownArrow,_0x1a7b0a['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0x1a7b0a;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x560fa3){super(_0x560fa3),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_loaderView']=this['_createLoaderView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-loader-wrapper','ck-reset_all']},'children':[this['_loaderView'],this['_cancelButtonView']]});}['_createCancelButtonView'](){const _0x2b0f1c=new ButtonView(this['locale']);return _0x2b0f1c['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':AI_BUTTON_CLASSES['SECONDARY']+'\x20ck-ai-button-stop-generating','icon':IconStop}),_0x2b0f1c['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x2b0f1c;}['_createLoaderView'](){const _0x4cbdff=new View(this['locale']);return _0x4cbdff['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}},{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}},{'tag':'div','attributes':{'class':['ck-ai-chat-controls-loader-icon-dot']}}]},{'text':getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')}]}),_0x4cbdff;}}class AIChatControlsView extends View{['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x37b058,_0xfc3e47){super(_0x37b058),this['_contextPanelView']=this['_createContextPanelView'](_0x37b058,{'bodyCollection':_0xfc3e47['bodyCollection'],'searchInputVisibleFrom':_0xfc3e47['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x37b058),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x37b058),this['_loaderView']=this['_createLoaderView'](_0x37b058),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x37b058),this['_shouldRestorePromptInputFocus']=!0x1,this['_promptInputView']['delegate']('sendUserMessage')['to'](this),this['_loaderView']['delegate']('abortPromptStream')['to'](this),this['_promptCapabilitiesView']['delegate']('toggleWebSearch')['to'](this),this['_promptCapabilitiesView']['delegate']('toggleReasoning')['to'](this),this['_promptCapabilitiesView']['delegate']('selectModel')['to'](this),this['_contextPanelView']['delegate'](...CONTEXT_PANEL_VIEW_EVENT_NAMES)['to'](this),this['set']('isModelAvailable',!0x0),this['set']('isDisabled',!0x1);const _0x20dc0e=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x20dc0e['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x20dc0e['if']('isLoading','ck-hidden',_0x54c76c=>_0x54c76c||!this['isModelAvailable']),_0x20dc0e['if']('isModelAvailable','ck-hidden',_0x238031=>!_0x238031||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x20dc0e['if']('isLoading','ck-hidden',_0x45651c=>!_0x45651c)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x20dc0e['if']('isModelAvailable','ck-hidden',_0x460e09=>_0x460e09)]},'children':[this['_modelUnavailableMessageView']]}]}),clickOutsideHandler({'emitter':this['_promptInputView'],'activator':()=>this['isLoading'],'contextElements':()=>[this['element']],'callback':()=>{this['_shouldRestorePromptInputFocus']=!0x1;}}),this['on']('change:isLoading',this['_handlePromptInputFocus'],{'priority':'low'});}['_createContextPanelView'](_0x4e374b,_0x5662aa){return new AIChatContextPanelView(_0x4e374b,_0x5662aa);}['_createPromptInputView'](_0x220afa){return new AIChatPromptInputView(_0x220afa,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x2f12f3){return new AIChatPromptCapabilitiesView(_0x2f12f3);}['_createLoaderView'](_0x224284){return new AIChatControlsLoaderView(_0x224284);}['_createModelUnavailableMessageView'](_0x59012b){const _0x23c1b3=new AIChatModelUnavailableMessageView(_0x59012b);return _0x23c1b3['delegate']('startConversation')['to'](this),_0x23c1b3;}['_handlePromptInputFocus'](_0x472926,_0x30ef8c,_0x289801){_0x289801?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0xf31108,_0x1c33e4){this['_contextPanelView']['addContextItem'](_0xf31108,_0x1c33e4);}['removeContextItem'](_0x4e74e){this['_contextPanelView']['removeContextItem'](_0x4e74e);}['setContextItemLoading'](_0x273c9a,_0x5de7e6){this['_contextPanelView']['setContextItemLoading'](_0x273c9a,_0x5de7e6);}['setIsUploadInProgress'](_0x2d975b){this['_promptInputView']['setIsUploadInProgress'](_0x2d975b);}['setConversationContext'](_0x3984d3){this['_contextPanelView']['setConversationContext'](_0x3984d3);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x3853c3,_0xe7da72,_0x344109){this['_contextPanelView']['updateResourceState'](_0x3853c3,_0xe7da72,_0x344109);}['setWebSearch'](_0x4cdd80){this['_promptCapabilitiesView']['setWebSearch'](_0x4cdd80);}['setReasoning'](_0x9044c5){this['_promptCapabilitiesView']['setReasoning'](_0x9044c5);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x5d0566){this['_contextPanelView']['setAddContextOptions'](_0x5d0566);}['setInputPlaceholder'](_0x2de745){this['_promptInputView']['setPlaceholderText'](_0x2de745);}['setModelList'](_0x53bf7e,_0x1f4d32){this['_promptCapabilitiesView']['setModelList'](_0x53bf7e,_0x1f4d32);}['setModel'](_0x796c1a){_0x796c1a?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x796c1a)):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x364cf4){this['_promptCapabilitiesView']['disableModelSelector'](_0x364cf4);}['populateSourceResourceBalloon'](_0x414a41,_0x19167f,_0x5c465f,_0x42fb36){this['_contextPanelView']['populateSourceResourceBalloon'](_0x414a41,_0x19167f,_0x5c465f,_0x42fb36);}['closeSourceResourceBalloon'](_0x3b06ba){this['_contextPanelView']['closeSourceResourceBalloon'](_0x3b06ba);}['focusPromptInput'](_0x2e7b6e=!0x1){this['_promptInputView']['focus'](_0x2e7b6e);}['setPromptInputValue'](_0x20f1b3){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x20f1b3;}}class AIChatModelUnavailableMessageView extends View{constructor(_0x5bb984){super(_0x5bb984);const _0x51185f=new ButtonView(_0x5bb984);_0x51185f['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x51185f['delegate']('execute')['to'](this,'startConversation'),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-model-unavailable-message']},'children':[{'tag':'p','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT')+'\x20'},_0x51185f]}]});}}class AIHeaderView extends FormHeaderView{['resizeButton'];constructor(_0x51c4da,_0x1a85b8){super(_0x51c4da,{'label':_0x1a85b8['label'],'class':'ck-ai-header\x20'+_0x1a85b8['class'],'icon':_0x1a85b8['icon']}),this['set']('isMaximized',!0x1),_0x1a85b8['content']&&this['children']['add'](_0x1a85b8['content']),_0x1a85b8['showResizeButton']&&(this['resizeButton']=createResizeButton(_0x51c4da,this),this['children']['add'](this['resizeButton']));}}class AIDisclaimerView extends View{constructor(_0x140258){super(_0x140258),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x140258,'AI_DISCLAIMER_TEXT')}]}]});}}function createStartConversationButton(_0x170baa,_0x29ebc0){const _0x42260a=new ButtonView(_0x170baa);return _0x42260a['set']({'label':getTranslation$i(_0x170baa,'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation\x20'+AI_BUTTON_CLASSES['SECONDARY']}),_0x42260a['on']('execute',()=>{_0x29ebc0['fire']('startConversation');}),_0x42260a;}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0x37b072,_0x2eb1ed){super(_0x37b072),this['_bodyCollection']=new BodyCollection(_0x37b072),this['_bodyCollection']['attachToDom']();const _0x20b517=createStartConversationButton(_0x37b072,this);this['chatHeader']=new AIHeaderView(_0x37b072,{'label':getTranslation$i(_0x37b072,'AI_CHAT_HEADING'),'icon':IconAIChat,'class':'ck-ai-header_chat','content':_0x20b517,'showResizeButton':_0x2eb1ed['showResizeButton']}),this['chatHeader']['delegate']('resizeTabs')['to'](this),this['chatFeed']=new AIChatFeedView(_0x37b072,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0x37b072,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0x2eb1ed['contextResourcesSearchInputVisibleFrom']}),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0x37b072),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x37b072['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x5c000d,_0x17f218,_0x2eb0a3,_0x199e2d){this['chatControls']['populateSourceResourceBalloon'](_0x5c000d,_0x17f218,_0x2eb0a3,_0x199e2d);}['closeSourceResourceBalloon'](_0x441601){this['chatControls']['closeSourceResourceBalloon'](_0x441601);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}}const AI_CHAT_TITLE_ANIMATION_INTERVAL=0x1e;class AIChatUI extends ContextPlugin{static get['requires'](){return[AITabs];}['_view'];static get['pluginName'](){return'AIChatUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['feedItemRenderingStrategy']='streaming';['showDiff']=!0x0;['_promiseQueue'];['_interactionPromiseResolver'];['_titleAnimationInterval']=void 0x0;['_isTrackChangesCommandValueBound']=!0x1;constructor(_0x383ab9){super(_0x383ab9);const _0x3c1646=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],{'showResizeButton':_0x3c1646['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom')}),this['_view']['delegate']('resizeTabs')['to'](_0x3c1646),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0x298eda,{showDiff:_0x11c9f2})=>{this['showDiff']=_0x11c9f2;}),_0x3c1646['view']['addTab']({'id':'chat','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'),'buttonIcon':IconAIChat,'order':0x0,'content':this['_view']}),this['_view']['chatHeader']['bind']('isMaximized')['to'](_0x3c1646['view'],'isMaximized',_0x3d3987=>_0x3d3987),this['_view']['chatControls']['bind']('isLoading')['to'](this,'isBusy',_0x6dede5=>_0x6dede5),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x53841b){const _0x438b3b=this['context']['config']['get']('ai.chat.welcomeMessage')??getTranslation$i(this['context']['locale'],'AI_CHAT_WELCOME_MESSAGE');this['_view']['chatFeed']['clear'](),this['_view']['chatControls']['enableModelSelector'](),this['_view']['chatControls']['setModelList'](_0x53841b['availableModels'],!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x438b3b}),this['fire']('conversationCreated');}async['addFeedItemStaticMessage']({id:_0x40b7ec,staticMessage:_0x5276d4}){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x40b7ec,'initialContent':'<p>'+_0x5276d4+'</p>'});});}async['addFeedItemUserMessage'](_0xacb13a){const _0x1103a3=_0xacb13a['attributes']?.['displayedPrompt']||_0xacb13a['userMessage'];return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0xacb13a['contextItems']['values']()),'initialContent':'<p>'+_0x1103a3+'</p>','id':_0xacb13a['id']});});}async['addFeedItemError']({errorMessage:_0x84fd71,id:_0x4eabd8}){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x84fd71+'</p>','id':_0x4eabd8});});}async['addFeedItemAIReply'](_0x18ddc4){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x18ddc4['interactionId']+':'+_0x18ddc4['id']}),this['clearLoadingMessage']();});}async['addFeedItemAISuggestion'](_0x3df044){const _0x10c22b=getEditorFromContext(this['context']);let _0x57b620=_0x10c22b['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];if(_0x10c22b['plugins']['has']('TrackChanges')){if(!this['_isTrackChangesCommandValueBound']){this['_isTrackChangesCommandValueBound']=!0x0;const _0x17a5d2=_0x10c22b['commands']['get']('trackChanges');this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x17a5d2,'value');}}else _0x57b620=_0x57b620['filter'](_0xefadff=>'insertSuggestion'!=_0xefadff);return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x3df044['interactionId']+':'+_0x3df044['id'],'areActionsDisabled':_0x3df044['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0x57b620}),this['clearLoadingMessage']();});}async['addFeedInteractionHeader'](_0x4176af,_0x11116c){return this['_promiseQueue']['enqueue'](async()=>{const _0x4b8a38=this['_view']['chatFeed']['children']['last'];if(_0x4b8a38 instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x4b8a38),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x4176af['id'],'capabilities':{'isWebSearchEnabled':_0x4b8a38['capabilities']['isWebSearchEnabled']||_0x11116c['isWebSearchEnabled'],'isReasoningEnabled':_0x4b8a38['capabilities']['isReasoningEnabled']||_0x11116c['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x4176af['id'],'capabilities':_0x11116c});});}async['addFeedItemCustomElement'](_0x174b37,_0x4c3cc3){let _0x2f1a08;return await this['_promiseQueue']['enqueue'](async()=>{_0x2f1a08=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x174b37,'id':_0x4c3cc3});}),_0x2f1a08;}['removeFeedItem'](_0x24beaf){this['_view']['chatFeed']['removeItem'](_0x24beaf);}['hasFeedItem'](_0x39bce2){return this['_view']['chatFeed']['hasItem'](_0x39bce2);}['updateFeedInteractionHeader'](_0x17ca16){const _0x3d6ef0=this['_view']['chatFeed']['children']['find'](_0x285ffe=>_0x285ffe['options']['id']==_0x17ca16['id']&&_0x285ffe instanceof AIChatFeedInteractionHeaderView);_0x3d6ef0&&_0x3d6ef0['set']('isVisible',_0x17ca16['isVisible']);}async['updateFeedItemAIReplyContent'](_0x2565b3){const _0x143b2d=_0x2565b3['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x6d14fb=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x2565b3,'abortSignal':_0x6d14fb,'renderingStrategy':_0x143b2d}),_0x2565b3['isDone']&&this['markFeedItemAsDone'](_0x2565b3['id']);});}['updateFeedItemAIReplySources'](_0x4cbecc,_0x486f32){this['_view']['chatFeed']['updateWebSources'](_0x4cbecc,_0x486f32);}async['updateFeedItemAIReplySuggestionContent'](_0x2a4bb8){return this['_promiseQueue']['enqueue'](async _0xcd58cb=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x2a4bb8,'abortSignal':_0xcd58cb}),_0x2a4bb8['isDone']&&this['markFeedItemAsDone'](_0x2a4bb8['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x4e65a1){this['_view']['chatFeed']['updateSuggestionPartState'](_0x4e65a1);}['setFeedItemAIReplySuggestionPartActive'](_0xd56e22){this['_view']['chatFeed']['setSuggestionPartActive'](_0xd56e22);}['markFeedItemAsDone'](_0x24f7e1){this['_view']['chatFeed']['markItemAsDone'](_0x24f7e1);}['removeFeedInteraction'](_0x3dc543){this['_view']['chatFeed']['getItemIds']()['filter'](_0x51ede1=>_0x51ede1['startsWith'](_0x3dc543))['forEach'](_0x2412f3=>this['_view']['chatFeed']['removeItem'](_0x2412f3));}['startInteraction'](){const _0x587e18=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0x587e18),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x4dc6f5){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x46e786=>_0x46e786['startsWith'](_0x4dc6f5['id']))['forEach'](_0x3a38b3=>this['markFeedItemAsDone'](_0x3a38b3)),this['isBusy']=!0x1,this['clearLoadingMessage'](),this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['clearLoadingMessage'](),this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0x438656,_0xd6d976){this['_view']['chatControls']['addContextItem'](_0x438656,_0xd6d976);}['removeContextItem'](_0x10c4db){this['_view']['chatControls']['removeContextItem'](_0x10c4db);}['setContextItemLoading'](_0x3968cd,_0x3e24e6){this['_view']['chatControls']['setContextItemLoading'](_0x3968cd,_0x3e24e6);}['setIsUploadInProgress'](_0x193849){this['_view']['chatControls']['setIsUploadInProgress'](_0x193849);}['setConversationContext'](_0x39036b){this['_view']['chatControls']['setConversationContext'](_0x39036b);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x4d3f59,_0x4f937,_0x3233a0){this['_view']['chatControls']['updateResourceState'](_0x4d3f59,_0x4f937,_0x3233a0);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x1a58d7){this['_view']['chatControls']['setAddContextOptions'](_0x1a58d7);}['updateCapabilities'](_0x172f3e){this['_view']['chatControls']['setWebSearch'](_0x172f3e['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x172f3e['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x172f3e));}['setSelectedModel'](_0x1bb98f,_0x202d64){this['_view']['chatControls']['setModel'](_0x1bb98f),_0x202d64&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x31c463){this['feedItemRenderingStrategy']=_0x31c463;}['toggleLoadingSkeleton'](_0x233543){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x233543);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0xfb42d4,_0x467a4f=!0x1){if(_0x467a4f&&!_isMotionReduced()&&_0xfb42d4['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0xfb42d4);this['_view']['chatHeader']['label']=_0xfb42d4;}['setLoadingMessage'](_0x1e5c1d){this['_view']['chatFeed']['setLoadingMessage'](_0x1e5c1d);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}['_animateConversationTitle'](_0x12eada){let _0x41a2cd=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x12eada[_0x41a2cd],_0x41a2cd++,_0x41a2cd===_0x12eada['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['prepareLoadingMessage'](_0x2b396e){return _0x2b396e['isWebSearchEnabled']&&_0x2b396e['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x2b396e['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x2b396e['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}['_getInputPlaceholder'](_0x43a6d1){return _0x43a6d1?_0x43a6d1['isWebSearchEnabled']&&_0x43a6d1['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x43a6d1['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x43a6d1['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR'):getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR');}['populateSourceResourceBalloon'](_0x3c2fa5,_0x47de51,_0x804e01,_0x122990){this['_view']['populateSourceResourceBalloon'](_0x3c2fa5,_0x47de51,_0x804e01,_0x122990);}['closeSourceResourceBalloon'](_0x5f3819){this['_view']['closeSourceResourceBalloon'](_0x5f3819);}['setPromptInputValue'](_0x5e504d){this['_view']['chatControls']['setPromptInputValue'](_0x5e504d);}['focusPromptInput'](_0x57d17f=!0x1){this['_view']['chatControls']['focusPromptInput'](_0x57d17f);}['scrollFeedToSuggestion'](_0x27ca3d,_0x35c4e4){this['_view']['chatFeed']['scrollToSuggestion'](_0x27ca3d,_0x35c4e4);}['startAutoScroll'](_0x4f12b4={}){this['_view']['chatFeed']['startAutoScroll'](_0x4f12b4);}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x2ed8a4,_0xfb0a53){super(_0x2ed8a4),this['sections']=_0xfb0a53,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x31cd42){let _0x553812=0x0,_0x2da6c6=0x0;for(const _0x3d8e3e of this['sections']){const {resultsCount:_0x4801da,totalItemsCount:_0x3fe8be}=_0x3d8e3e['filter'](_0x31cd42);_0x553812+=_0x4801da,_0x2da6c6+=_0x3fe8be;}return{'resultsCount':_0x553812,'totalItemsCount':_0x2da6c6};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x5e3c8d,{title:_0x5416f4,items:_0x2d5bd7}){super(_0x5e3c8d);const _0x43db4c=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x5416f4,this['itemsViews']=_0x2d5bd7;const _0xd9e09d=new View(_0x5e3c8d);_0xd9e09d['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x5e3c8d),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x43db4c['if']('isVisible','ck-hidden',_0x867e25=>!_0x867e25)]},'children':[_0xd9e09d,this['_itemsListView']]});}['filter'](_0x518f02){const _0x53d3ea=this['itemsViews']['length'];let _0x1a9ea1=0x0;for(const _0x230618 of this['itemsViews']){if(_0x518f02){const _0x48af6f=_0x230618['isMatching'](_0x518f02);_0x230618['isVisible']=!!_0x48af6f,_0x230618['highlightText'](_0x518f02);}else _0x230618['isVisible']=!0x0,_0x230618['highlightText'](null);_0x230618['isVisible']&&_0x1a9ea1++;}return this['isVisible']=_0x1a9ea1>0x0,{'resultsCount':_0x1a9ea1,'totalItemsCount':_0x53d3ea};}['getItem'](_0x24702b){return this['itemsViews']['find'](_0x47bbe6=>_0x47bbe6['id']===_0x24702b);}['removeItem'](_0x57ee07){const _0x33b44a=this['itemsViews']['indexOf'](_0x57ee07);-0x1!==_0x33b44a&&(this['itemsViews']['splice'](_0x33b44a,0x1),this['_itemsListView']['items']['remove'](_0x57ee07));}}class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
ConfirmMixin(ListItemView){['id'];static ['LOADING_LABELS']={'remove':'AI_CHAT_HISTORY_LOADING_REMOVING','rename':'AI_CHAT_HISTORY_LOADING_RENAMING','pin':'AI_CHAT_HISTORY_LOADING_PINNING','unpin':'AI_CHAT_HISTORY_LOADING_UNPINNING'};['actions'];['mainContent'];['_titleView'];constructor(_0x352200,_0xc7d304){super(_0x352200);const _0xb39414=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0xc7d304['pinned']),this['set']('loadingState',null),this['set']('title',_0xc7d304['title']),this['id']=_0xc7d304['id'];const {createdAt:_0x29ee65,active:_0x3e363e=!0x1}=_0xc7d304;this['_titleView']=new HighlightedTextView(),this['_titleView']['bind']('text')['to'](this,'title',t=>escape(t||'')),this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x4b375c=this['_createCheckView'](),_0x4ed15e=this['_createPinButtonView'](_0x352200),_0x1003cb=this['_createMenuDropdownView'](),_0x1453e4=this['_createEditInputView'](_0x352200),_0x571f2d=this['_createAcceptEditButtonView'](_0x352200,_0x1453e4),_0x5a2f05=this['_createCancelEditButtonView'](_0x352200);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x4ed15e),this['actions']['add'](_0x1003cb),this['on']('change:isEdit',(_0x2540c2,_0x151ddb,_0x5735aa)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0x5735aa?(this['actions']['add'](_0x571f2d),this['actions']['add'](_0x5a2f05),this['mainContent']['add'](_0x1453e4),_0x1453e4['element']['value']=this['title']||'',_0x1453e4['element']['focus']()):(this['actions']['add'](_0x4ed15e),this['actions']['add'](_0x1003cb),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x3e363e?'ck-ai-chat-history__item--active':'',_0xb39414['if']('isVisible','ck-hidden',_0x38ef9b=>!_0x38ef9b),_0xb39414['if']('isEdit','ck-ai-chat-history__item--edit')],'role':'listitem'},'children':[{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-check-container']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-check',_0xb39414['if']('loadingState','ck-hidden',_0xb0aaac=>!!_0xb0aaac)]},'children':_0x3e363e?[_0x4b375c]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0xb39414['if']('loadingState','ck-hidden',_0x4fb708=>!_0x4fb708)]},'children':[this['_createSpinnerView']()]}]},{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-row']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-content']},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-title-container',_0xb39414['if']('loadingState','ck-hidden',_0x45bdf7=>!!_0x45bdf7)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0xb39414['if']('loadingState','ck-hidden',_0x56dceb=>!_0x56dceb)]},'children':[{'text':_0xb39414['to']('loadingState',_0x425844=>_0x425844?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x425844]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x29ee65]}]},{'tag':'div','attributes':{'class':['ck-ai-chat-history__item-actions']},'children':this['actions']}]}]}),this['on']('click',()=>{this['isEdit']||this['fire']('selectConversation',{'id':this['id']});});}['updateTitle'](_0x423c8a){this['set']('title',_0x423c8a);}['updateLoadingState'](_0x3cbb7f,_0x41b402){this['set']('loadingState',_0x41b402?_0x3cbb7f:null);}['_createCheckView'](){const _0x21ff89=new IconView();return _0x21ff89['set']({'content':IconCheck}),_0x21ff89;}['_createPinButtonView'](_0x42cb6c){const _0x5ca8a2=new ButtonView(_0x42cb6c);return _0x5ca8a2['set']({'label':getTranslation$i(_0x42cb6c,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0x5ca8a2['bind']('isOn')['to'](this,'pinned'),_0x5ca8a2['on']('execute',()=>{const _0x4531b8=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x4531b8});}),_0x5ca8a2;}['_createMenuDropdownView'](){const _0x55d0b9=createDropdown(this['locale']),_0x2c1329=_0x55d0b9['panelView']['children'];_0x55d0b9['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x55d0b9['panelPosition']='sw';const _0xb649b3=new ButtonView(this['locale']);_0xb649b3['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0xb649b3['withText']=!0x0,_0xb649b3['on']('execute',()=>{this['isEdit']=!0x0;});const _0xdcec78=new ButtonView(this['locale']);_0xdcec78['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0xdcec78['withText']=!0x0,_0xdcec78['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x177425=new ListView(this['locale']),_0x25991e=new ListItemView(this['locale']);_0x25991e['children']['add'](_0xb649b3);const _0x47873d=new ListItemView(this['locale']);return _0x47873d['children']['add'](_0xdcec78),_0x177425['items']['addMany']([_0x25991e,_0x47873d]),_0x2c1329['add'](_0x177425),_0x55d0b9;}['_createEditInputView'](_0x444db4){const _0x10c1e2=new InputTextView(_0x444db4),_0x5e1733=_0x10c1e2['bindTemplate'];return _0x10c1e2['extendTemplate']({'on':{'keydown':_0x5e1733['to'](_0x1ab689=>{'Enter'==_0x1ab689['key']&&this['_commitEditInputValue'](_0x10c1e2);})}}),_0x10c1e2;}['_createAcceptEditButtonView'](_0x35ad43,_0x91666d){const _0x202cb7=new ButtonView(_0x35ad43);return _0x202cb7['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x35ad43,'AI_CHAT_HISTORY_ACCEPT')}),_0x202cb7['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x202cb7['on']('execute',()=>{this['_commitEditInputValue'](_0x91666d);}),_0x202cb7;}['_commitEditInputValue'](_0x2b2c14){const _0x1444d3=_0x2b2c14['element']['value']||'';this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0x1444d3});}['_createCancelEditButtonView'](_0x51480f){const _0x1b298e=new ButtonView(_0x51480f);return _0x1b298e['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0x51480f,'AI_CHAT_HISTORY_CANCEL')}),_0x1b298e['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0x1b298e['on']('execute',()=>{this['isEdit']=!0x1,this['fire']('edit:cancel');}),_0x1b298e;}['_createSpinnerView'](){const _0x1a6db3=new AISpinnerView('tiny');return _0x1a6db3['isVisible']=!0x0,_0x1a6db3;}['isMatching'](_0x5c4838){return'string'==typeof this['title']&&this['title']['match'](_0x5c4838)?{'title':!0x0}:null;}['highlightText'](_0x49d138){this['_titleView']['highlightText'](_0x49d138);}}class AIChatHistoryView extends View{['headerView'];['searchView'];['mainErrorView'];['skeletonView'];['emptyView'];['sectionsView'];constructor(_0x4cab09,_0x3e7b42){super(_0x4cab09),this['set']('hasItems',!0x1),this['set']('isLoading',!0x0),this['set']('errorMessage',''),this['set']('isSearchViewVisible',!0x1),this['set']('isEmptyViewVisible',!0x1),this['set']('isMainErrorViewVisible',!0x1);const _0x3e7f6d=createStartConversationButton(_0x4cab09,this);this['headerView']=new AIHeaderView(_0x4cab09,{'label':getTranslation$i(_0x4cab09,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header_history','content':_0x3e7f6d,'showResizeButton':_0x3e7b42}),this['headerView']['delegate']('resizeTabs')['to'](this),this['sectionsView']=new AIChatHistorySectionListView(_0x4cab09,[]),this['sectionsView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),this['mainErrorView']=this['_createErrorView'](),this['skeletonView']=this['_createSkeletonView'](),this['emptyView']=this['_createEmptyStateView'](),this['searchView']=this['_createSearchView'](),this['mainErrorView']['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isMainErrorViewVisible','ck-hidden',_0x5a2408=>!_0x5a2408)]}}),this['on']('change:isLoading',()=>this['_updateViewVisibility']()),this['on']('change:hasItems',()=>this['_updateViewVisibility']()),this['on']('change:errorMessage',()=>this['_updateViewVisibility']()),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat-history','ck-rounded-corners'],'dir':'ltr'},'children':[this['headerView'],{'tag':'div','attributes':{'class':['ck-ai-chat-history__content']},'children':[this['skeletonView'],this['mainErrorView'],this['emptyView'],this['searchView']]}]});}['_updateViewVisibility'](){this['isSearchViewVisible']=!this['isLoading']&&this['hasItems'],this['isEmptyViewVisible']=!this['isLoading']&&!this['hasItems']&&!this['errorMessage'],this['isMainErrorViewVisible']=!this['isSearchViewVisible']&&!!this['errorMessage'];}['_createSearchView'](){const _0x498ab1=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x509f7b=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x509f7b),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x29708f=this['_createErrorView']();return _0x29708f['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0x11ca2f=>!_0x11ca2f)]}}),_0x498ab1['on']('render',()=>{_0x498ab1['children']['add'](_0x29708f,0x1);}),_0x498ab1['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0xccabb7=>!_0xccabb7)]}}),_0x498ab1;}['_createSkeletonView'](){const _0x8212fd=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x8212fd['bind']('isVisible')['to'](this,'isLoading'),_0x8212fd;}['_createErrorView'](){const _0x1b4296=new View(this['locale']),_0x5bb055=new ButtonView(this['locale']);_0x5bb055['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-notification_error__dismiss-button'}),_0x5bb055['bind']('isVisible')['to'](this,'hasItems',_0x1ee758=>!!_0x1ee758),_0x5bb055['on']('execute',()=>{this['errorMessage']='';});const _0xa413=this['bindTemplate'];return _0x1b4296['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0xa413['to']('errorMessage')}]},_0x5bb055]}),_0x1b4296;}['_createEmptyStateView'](){const _0x1b76cf=new View(this['locale']);return _0x1b76cf['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0xc0eaec=>!_0xc0eaec)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]}]}),_0x1b76cf;}['_createListItemViews'](_0x4f742f,_0x25422f){const _0x2c42da=[];for(const _0x234721 of _0x4f742f){const _0x17c00f=new AIChatHistoryListItemView(_0x25422f,_0x234721);_0x17c00f['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2c42da['push'](_0x17c00f);}return _0x2c42da;}['updateHistoryItemsWithCategories'](_0x91c9c1){const _0x213758=this['locale']||'en',_0x60360f=[];for(const _0x2caecc of _0x91c9c1){const _0x157c78=this['_createListItemViews'](_0x2caecc['items'],_0x213758);_0x60360f['push'](new AIChatHistoryListView(_0x213758,{'title':_0x2caecc['title'],'items':_0x157c78}));}this['sectionsView']['sections']=_0x60360f,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x60360f),this['hasItems']=_0x91c9c1['some'](_0x462f90=>_0x462f90['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x3a03c0){for(const _0x5bdeb2 of this['sectionsView']['sections']){const _0x3573ae=_0x5bdeb2['getItem'](_0x3a03c0);if(_0x3573ae){if(_0x5bdeb2['removeItem'](_0x3573ae),0x0===_0x5bdeb2['itemsViews']['length']){const _0x44b97e=this['sectionsView']['sections']['indexOf'](_0x5bdeb2);-0x1!==_0x44b97e&&(this['sectionsView']['sections']['splice'](_0x44b97e,0x1),this['sectionsView']['items']['remove'](_0x5bdeb2));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x5106b8,_0x20a0a8){for(const _0x4eac28 of this['sectionsView']['sections']){const _0x5d816e=_0x4eac28['getItem'](_0x5106b8);if(_0x5d816e){_0x5d816e['updateTitle'](_0x20a0a8);break;}}}['updateItemLoadingState'](_0x27696a,_0xa0ef85,_0x2ae8f0){for(const _0xa66876 of this['sectionsView']['sections']){const _0x254c1d=_0xa66876['getItem'](_0x27696a);if(_0x254c1d){_0x254c1d['updateLoadingState'](_0xa0ef85,_0x2ae8f0);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x214a2d=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x214a2d);}}}const AI_CHAT_HISTORY_UI_EVENT_NAMES=['showConversationHistory','removeConversation','editConversationTitle','setConversationPinned','selectConversation','startConversation'];class AIChatHistoryUI extends ContextPlugin{static get['requires'](){return[AITabs];}['_historyView'];static get['pluginName'](){return'AIChatHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x308a4d){super(_0x308a4d);const _0x4dd60e=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0x4dd60e['showResizeButton']),this['_historyView']['delegate']('resizeTabs')['to'](_0x4dd60e),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),this['_historyView']['headerView']['bind']('isMaximized')['to'](_0x4dd60e['view'],'isMaximized',_0x3d4083=>_0x3d4083),_0x4dd60e['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x430fd6){this['_historyView']['removeHistoryItem'](_0x430fd6);}['updateItems'](_0x4d2223){this['_historyView']['updateHistoryItemsWithCategories'](_0x4d2223);}['updateItemTitle'](_0x3157cd,_0x74925e){this['_historyView']['updateItemTitle'](_0x3157cd,_0x74925e);}['updateItemLoadingState'](_0x13b65b,_0x54f3f1,_0x46b064){this['_historyView']['updateItemLoadingState'](_0x13b65b,_0x54f3f1,_0x46b064);}['setLoadingSkeleton'](_0x40b71a){this['_historyView']['isLoading']=_0x40b71a;}['showError'](_0x3f6f96){this['_historyView']['errorMessage']=_0x3f6f96;}['hideError'](){this['_historyView']['errorMessage']='';}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x427e27,title:_0x58ca6b,createdAt:_0x5f04e0,updatedAt:_0x23cbc8,pinned:_0x106c16}){super(),this['id']=_0x427e27,this['createdAt']=new Date(_0x5f04e0),this['set']('title',_0x58ca6b),this['set']('updatedAt',_0x23cbc8?new Date(_0x23cbc8):null),this['set']('pinned',_0x106c16||!0x1);}['updateTitle'](_0x330ef6){this['set']('title',_0x330ef6),this['updatedAt']=new Date();}['updatePinned'](_0x118296){this['set']('pinned',_0x118296),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0x4828c1,group:_0xf71461}){super(),this['connector']=_0x4828c1,this['group']=_0xf71461;}async['init'](){try{const _0x149f86=this['connector']['fetchConversations'](this['group']),_0x2e2f0e=await _0x149f86['getConversations']();this['loadItems'](_0x2e2f0e);}catch(_0x3f6dff){this['fire']('error',{'error':_0x3f6dff,'operation':'init'});}}['addItem'](_0x3a57e1){this['items']['push'](_0x3a57e1);}async['removeItem'](_0x1a8b5b){const _0x160821=this['items']['findIndex'](_0x302041=>_0x302041['id']===_0x1a8b5b);if(-0x1===_0x160821)return!0x1;try{return await this['connector']['deleteConversation'](_0x1a8b5b)['execute'](),this['items']['splice'](_0x160821,0x1),this['fire']('itemRemoved',{'itemId':_0x1a8b5b}),!0x0;}catch(_0x2b58b8){return this['fire']('error',{'error':_0x2b58b8,'operation':'removeItem','itemId':_0x1a8b5b}),!0x1;}}['getItem'](_0x5ee379){return this['items']['find'](_0x2ad828=>_0x2ad828['id']===_0x5ee379);}async['updateItemTitle'](_0x25801b,_0x5376ee){const _0x2c8bc1=this['getItem'](_0x25801b);if(!_0x2c8bc1)return!0x1;try{return await this['connector']['updateConversation'](_0x25801b,{'title':_0x5376ee})['getResult'](),_0x2c8bc1['updateTitle'](_0x5376ee),this['fire']('itemUpdated',{'itemId':_0x25801b,'updates':{'title':_0x5376ee}}),!0x0;}catch(_0x13616d){return this['fire']('error',{'error':_0x13616d,'operation':'updateItemTitle','itemId':_0x25801b}),!0x1;}}async['updateItemPinned'](_0x15d0fc,_0x1e0a38){const _0xe21c2c=this['getItem'](_0x15d0fc);if(!_0xe21c2c)return!0x1;try{return await this['connector']['updateConversation'](_0x15d0fc,{'pinned':_0x1e0a38})['getResult'](),_0xe21c2c['updatePinned'](_0x1e0a38),this['fire']('itemUpdated',{'itemId':_0x15d0fc,'updates':{'pinned':_0x1e0a38}}),!0x0;}catch(_0xe8fa6b){return this['fire']('error',{'error':_0xe8fa6b,'operation':'updateItemPinned','itemId':_0x15d0fc}),!0x1;}}['loadItems'](_0xbe2ba8){try{this['items']=[],_0xbe2ba8['map'](_0x4c433c=>{this['addItem'](new AIChatHistoryItem(_0x4c433c));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x4e43d4){this['fire']('error',{'error':_0x4e43d4,'operation':'loadItems'});}}['getItems'](_0x2cbc73={}){const _0x3550c9=void 0x0!==_0x2cbc73['pinned']&&_0x2cbc73['pinned'],_0x22c7da=_0x2cbc73['from']?new Date(_0x2cbc73['from']['getFullYear'](),_0x2cbc73['from']['getMonth'](),_0x2cbc73['from']['getDate']()):null,_0x57be02=_0x2cbc73['to']?new Date(_0x2cbc73['to']['getFullYear'](),_0x2cbc73['to']['getMonth'](),_0x2cbc73['to']['getDate']()):null;return this['items']['filter'](_0x37f457=>{if(_0x37f457['pinned']!==_0x3550c9)return!0x1;if(_0x57be02){const _0x9c990=new Date(_0x37f457['createdAt']['getFullYear'](),_0x37f457['createdAt']['getMonth'](),_0x37f457['createdAt']['getDate']());return _0x22c7da?_0x22c7da['getTime']()===_0x57be02['getTime']()?_0x9c990['getTime']()===_0x22c7da['getTime']():_0x9c990<_0x57be02&&_0x9c990>=_0x22c7da:_0x9c990<_0x57be02;}return!0x0;});}}class AIChatHistoryController extends ContextPlugin{['_aiConnector'];['_aiChatHistoryUi'];['_aiChatController'];static get['requires'](){return[AIConnector,AIChatController,AIChatHistoryUI,AITabs];}static get['pluginName'](){return'AIChatHistoryController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiConnector']=this['context']['plugins']['get'](AIConnector),this['_aiChatHistoryUi']=this['context']['plugins']['get'](AIChatHistoryUI),this['_aiChatController']=this['context']['plugins']['get'](AIChatController);const _0x3f877d=this['context']['plugins']['get'](AITabs);try{const _0x1c75f0=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x1c75f0}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x1b6b15,_0x541179)=>{this['_setItemLoading'](_0x541179['id'],'remove'),this['_handleRemove'](_0x541179['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x4de649,_0xdac538)=>{this['_setItemLoading'](_0xdac538['id'],'rename'),this['_handleEditTitle'](_0xdac538['id'],_0xdac538['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x4993b4,_0xe96d9)=>{void 0x0!==_0xe96d9['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0xe96d9['itemId'],_0xe96d9['updates']['title']),void 0x0!==_0xe96d9['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0xe96d9['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x2a18c4,_0x48edc7)=>{this['_aiChatController']['_handleRemovedConversation'](_0x48edc7['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x48edc7['itemId']),this['_clearItemLoading'](_0x48edc7['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0x1875d2,_0x3e9905)=>{this['_handleHistoryErrorUI'](_0x3e9905['error'],_0x3e9905['operation'],_0x3e9905['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x1552a2,_0x5e00ac)=>{this['_handleSelectConversation'](_0x5e00ac['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x3311c5,_0x555cda)=>{const _0xca0712=_0x555cda['pinned']?'pin':'unpin';this['_setItemLoading'](_0x555cda['id'],_0xca0712),this['_handleTogglePin'](_0x555cda['id'],_0x555cda['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'startConversation',()=>{this['_aiChatController']['startConversation'](),_0x3f877d['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x3f877d['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();});}catch(_0x44259a){this['_handleHistoryErrorUI'](_0x44259a,'init');}}async['_handleEditTitle'](_0x413073,_0x194e69){await this['history']['updateItemTitle'](_0x413073,_0x194e69);}async['_handleTogglePin'](_0x16ba3f,_0x10d528){await this['history']['updateItemPinned'](_0x16ba3f,_0x10d528);}async['_handleRemove'](_0x3947ae){await this['history']['removeItem'](_0x3947ae);}async['_handleSelectConversation'](_0x3bff84){await this['_aiChatController']['loadConversation'](_0x3bff84);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x3b9086=this['_aiChatController']['activeConversation']?.['id'],_0x2c8747=this['_getCategorizedItems']()['map'](_0x55f319=>({'title':_0x55f319['title'],'items':_0x55f319['items']['map'](_0x51f8c8=>({'id':_0x51f8c8['id'],'title':_0x51f8c8['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x51f8c8['createdAt'])['toLocaleDateString'](),'active':_0x51f8c8['id']===_0x3b9086,'pinned':_0x51f8c8['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x2c8747);}['_setItemLoading'](_0x20d6ca,_0x5a061e){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x20d6ca,_0x5a061e,!0x0);}['_clearItemLoading'](_0x215739){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x215739,null,!0x1);}['_handleHistoryErrorUI'](_0x41f992,_0x48c92a,_0x2986de){const _0x38b43b=this['_generateErrorMessage'](_0x48c92a,_0x2986de);this['_aiChatHistoryUi']['showError'](_0x38b43b),_0x2986de&&this['_clearItemLoading'](_0x2986de),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0xffc2c4,_0x5f2705){const _0x5ca976=_0x5f2705?this['history']['getItem'](_0x5f2705):null,_0x2a0622=_0x5ca976?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0xffc2c4){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x2a0622);case'updateItemPinned':{const _0x5e1d3b=getTranslation$i(this['context']['locale'],_0x5ca976?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x5e1d3b,_0x2a0622]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x2a0622);case'init':case'loadItems':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS');default:return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_GENERIC');}}['_getCategorizedItems'](){const _0x32c9f4=new Date(),_0x1290a5=new Date(_0x32c9f4['getFullYear'](),_0x32c9f4['getMonth'](),_0x32c9f4['getDate']()),_0x5c73bc=new Date(_0x1290a5);_0x5c73bc['setDate'](_0x5c73bc['getDate']()-0x1);const _0x57ce1d=new Date(_0x1290a5);_0x57ce1d['setDate'](_0x57ce1d['getDate']()-0xe);const _0x57a26c=this['history']['getItems']({'pinned':!0x0}),_0x2dbfdb=this['history']['getItems']({'from':_0x1290a5,'to':_0x1290a5}),_0x24f2bb=this['history']['getItems']({'from':_0x5c73bc,'to':_0x5c73bc}),_0x5808e6=this['history']['getItems']({'from':_0x57ce1d,'to':_0x5c73bc}),_0x4574f3=this['history']['getItems']({'to':_0x57ce1d}),_0x13a7d2=[];return _0x57a26c['length']>0x0&&_0x13a7d2['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x57a26c}),_0x2dbfdb['length']>0x0&&_0x13a7d2['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x2dbfdb}),_0x24f2bb['length']>0x0&&_0x13a7d2['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x24f2bb}),_0x5808e6['length']>0x0&&_0x13a7d2['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x5808e6}),_0x4574f3['length']>0x0&&_0x13a7d2['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x4574f3}),_0x13a7d2;}}class AIChatHistory extends ContextPlugin{static get['requires'](){return[AIChatHistoryController,AIChatHistoryUI];}static get['pluginName'](){return'AIChatHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class AIChat extends ContextPlugin{static get['requires'](){return[AIChatController,AIEditing,AIChatUI,AIChatHistory];}static get['pluginName'](){return'AIChat';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x305778){super(_0x305778),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[],'alwaysAddSelection':!0x1}),this['context']['config']['define']('ai.chat.initialConversation','new');}}class AIChatShortcutView extends ButtonView{['id'];constructor(_0x4357ab,_0x14da6f){super(_0x4357ab);const {id:_0x4725bf,type:_0x215265,icon:_0x783579}=_0x14da6f;this['id']=_0x4725bf,this['set']({'label':_0x14da6f['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0x14da6f['id']}}),_0x783579?this['icon']=_0x783579:'chat'===_0x215265?this['icon']=IconAIChat:'review'===_0x215265?this['icon']=IconAIReview:'translate'===_0x215265&&(this['icon']=IconAITranslate);}}class AIChatShortcutsView extends View{['listView'];constructor(_0x2c5497,_0x485fd8){super(_0x2c5497);const _0x39aa55=_0x485fd8['map'](_0x4a3d38=>{const _0x3db50a=new ListItemView(this['locale']),_0x42362d=new AIChatShortcutView(this['locale'],_0x4a3d38);return _0x3db50a['children']['add'](_0x42362d),_0x42362d['delegate']('execute')['to'](this),_0x3db50a;});this['listView']=new ListView(this['locale']),this['listView']['items']['addMany'](_0x39aa55),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-shortcuts']},'children':[this['listView']]});}}const CHAT_SHORTCUTS_FEED_ITEM_ID='chat-shortcuts';class AIChatShortcuts extends ContextPlugin{['_shortcuts'];['_shortcutsView'];['_aiChatUI'];static get['requires'](){return[AIChatUI];}static get['pluginName'](){return'AIChatShortcuts';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiChatUI']=this['context']['plugins']['get'](AIChatUI),this['_shortcuts']=this['context']['config']['get']('ai.chat.shortcuts')??[];const _0x3f926b=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{_0x3f926b['activeConversation']['isFromHistory']||this['_injectShortcuts']();}),this['listenTo'](_0x3f926b,'interactionStarted',()=>{this['_removeShortcuts']();}));}['_validateShortcuts'](){const _0x496245=['chat','review','translate'];this['_shortcuts']['forEach'](_0x182aa2=>{let _0x58df26=!0x0;if(_0x182aa2['id']&&_0x182aa2['label']&&_0x496245['includes'](_0x182aa2['type'])?'chat'===_0x182aa2['type']&&(_0x58df26='string'==typeof _0x182aa2['prompt']):_0x58df26=!0x1,!_0x58df26)throw new CKEditorError('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0x182aa2});});}['_injectShortcuts'](){const _0x495b87=this['context']['plugins']['get'](AIChatUI);this['_shortcutsView']=new AIChatShortcutsView(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),_0x495b87['addFeedItemCustomElement'](this['_shortcutsView']['element'],CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']['on']('execute',_0x2819d7=>{const _0x53804e=_0x2819d7['source']['id'];this['_executeShortcut'](_0x53804e);});}['_removeShortcuts'](){const _0x5c1c13=this['context']['plugins']['get'](AIChatUI);_0x5c1c13['hasFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID)&&_0x5c1c13['removeFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']?.['destroy']();}['_executeShortcut'](_0x543f24){const _0x26706f=this['_shortcuts']['find'](_0x44311f=>_0x44311f['id']===_0x543f24),_0x31feec=_0x26706f['type'];'chat'===_0x31feec?this['_runChatShortcut'](_0x26706f):'review'===_0x31feec?_0x26706f['commandId']?this['_runReviewShortcut'](_0x26706f):this['_switchTab']('reviewMode'):'translate'===_0x31feec&&(_0x26706f['language']?this['_runTranslateShortcut'](_0x26706f):this['_switchTab']('translate'));}['_switchTab'](_0xa0df80){if(!this['context']['plugins']['has']('AITabs'))throw new CKEditorError('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0xa0df80});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0xa0df80);}async['_runChatShortcut']({prompt:_0x30da1c,draftMode:_0x5b7347,useWebSearch:_0x2d7390=!0x1,useReasoning:_0x3099be=!0x1,model:_0x3604db}){const _0x22e8d3=this['context']['plugins']['get']('AIChatController'),_0x436ccb=_0x22e8d3['activeConversation'];let _0x14a14f;_0x14a14f=_0x3604db?await _0x436ccb['chatModels']['getModel'](_0x3604db):await _0x436ccb['chatModels']['getDefault'](),_0x14a14f&&await _0x436ccb['setModel'](_0x14a14f),_0x436ccb['setWebSearch'](_0x2d7390),_0x436ccb['setReasoning'](_0x3099be),_0x22e8d3['addCurrentDocumentToChatContext'](),_0x5b7347?(this['_aiChatUI']['setPromptInputValue'](_0x30da1c),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x22e8d3['sendMessage']({'message':_0x30da1c});}['_runReviewShortcut']({commandId:_0x30cb46,model:_0xd76c68,prompt:_0x571b7d,params:_0x3944ea}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new CKEditorError('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x1ddda1={'id':_0x30cb46,'isCustom':'custom'===_0x30cb46};_0xd76c68&&_0x571b7d&&(_0x1ddda1['args']={'model':_0xd76c68,'prompt':_0x571b7d}),_0x3944ea&&(_0x1ddda1['params']=_0x3944ea),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x1ddda1);}['_runTranslateShortcut']({language:_0x34e025}){if(!this['context']['plugins']['has']('AITranslateUI'))throw new CKEditorError('ai-chat-shortcuts-translate-not-found',this['context']);this['_switchTab']('translate'),this['context']['plugins']['get']('AITranslateUI')['fire']('runReviewCheck',{'id':_0x34e025,'args':{'language':_0x34e025}});}}class ToggleAICommand extends Command{constructor(_0x34ecb3){super(_0x34ecb3);const _0x35bfa7=_0x34ecb3['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0x35bfa7,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x465088=this['editor']['plugins']['get']('AITabs')['view'];_0x465088['isVisible']=!_0x465088['isVisible'];}}class AIToggleButtonUI extends Plugin{static get['requires'](){return[AITabs];}static get['pluginName'](){return'AIToggleButtonUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x57f9af=this['editor'];_0x57f9af['commands']['add']('toggleAi',new ToggleAICommand(_0x57f9af)),_0x57f9af['ui']['componentFactory']['add']('toggleAi',()=>{const _0x544ea0=this['_createAIUIButton'](ButtonView);return _0x544ea0['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x544ea0;}),_0x57f9af['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x2fd8a0=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0x2fd8a0['set']({'role':'menuitemcheckbox'}),_0x2fd8a0;});}['_createAIUIButton'](_0xbeccd4){const _0xc87fe9=this['editor'],_0x1011cb=_0xc87fe9['commands']['get']('toggleAi'),_0x1552e0=new _0xbeccd4(_0xc87fe9['locale']);return _0x1552e0['set']({'label':getTranslation$i(_0xc87fe9['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x1552e0['bind']('isEnabled')['to'](_0x1011cb),_0x1552e0['bind']('isOn')['to'](_0x1011cb,'value',_0x5adf42=>!!_0x5adf42),this['listenTo'](_0x1552e0,'execute',()=>{_0x1011cb['execute']();}),_0x1552e0;}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['_errorView'];constructor(_0x5c0d30){super(_0x5c0d30),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0x472e7d){this['showError'](_0x472e7d);}['showError'](_0x3e65c5){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0x3e65c5,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}['_createErrorView'](){const _0x4fd0ce=new View(this['locale']),_0x4f1576=new View(this['locale']);return _0x4f1576['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x4fd0ce['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x2eb065=>!_0x2eb065)]},'children':[_0x4f1576]}),_0x4fd0ce;}}const DIALOG_TOP_OFFSET=0xa;class AIBalloon extends ContextPlugin{static get['requires'](){return[AIEditing];}static get['pluginName'](){return'AIBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['isOpen']=!0x1;['_currentConfig'];['_getTargetEditor'](){return this['_currentConfig']?.['targetEditor']??getEditorFromContext(this['context']);}['_isUpdatingMarkers']=!0x1;['open'](_0x5d828f){const {id:_0x4f8d98}=this['_currentConfig']??{};this['_currentConfig']=_0x5d828f;const {id:_0x512764}=this['_currentConfig'];this['isOpen']&&_0x4f8d98===_0x512764?this['_updateDialog']():this['_showDialog']();}['close'](){const _0x5e1f67=this['_getTargetEditor']()['plugins']['get']('Dialog');_0x5e1f67['isOpen']&&this['_currentConfig']&&_0x5e1f67['id']===this['_currentConfig']['id']&&_0x5e1f67['hide']();}['_updateDialog'](){const _0x24b686=this['_getTargetEditor']()['plugins']['get']('Dialog'),{icon:_0x292174,title:_0x1a2a1d}=this['_currentConfig'];_0x24b686['view']?.['headerView']&&(_0x24b686['view']['headerView']['label']=_0x1a2a1d,_0x24b686['view']['headerView']['iconView']&&_0x292174&&(_0x24b686['view']['headerView']['iconView']['content']=_0x292174)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x24b686['view']?.['updatePosition']();}['_showFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection']({'ranges':this['_currentConfig']['ranges'],'id':'balloon','priority':0x64}),window['getSelection']()?.['removeAllRanges']();}['_hideFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['hideFakeVisualSelection']('balloon');}['_showDialog'](){const _0x159843=this['_getTargetEditor']()['plugins']['get']('Dialog'),{id:_0x1587c7,title:_0x3b07c6,icon:_0x181d9f,class:_0xf5158d,mainView:_0x3154e7}=this['_currentConfig'];_0x3154e7['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x159843['show']({'title':_0x3b07c6,'icon':_0x181d9f,'hasCloseButton':!0x0,'id':_0x1587c7,'position':this['_calculateDialogPosition']['bind'](this),'className':'ck-ai-balloon\x20'+(_0xf5158d||''),'content':_0x3154e7,'onShow':_0x8bea76=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener'](),_0x8bea76['view']?.['updatePosition']();const _0x3d2e83=this['_getSelectionElements']();_0x3d2e83&&_0x3d2e83[0x0]&&scrollViewportToShowTarget({'target':_0x3d2e83[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0x8bea76['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x1587c7});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x1587c7}),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x3919bd,_0x310ca4){if(!_0x310ca4){const _0x1ac886=this['_getTargetRootDomRect']();if(!_0x1ac886)return null;_0x310ca4=_0x1ac886;}const _0x1dfeb1=this['_getSelectionElements']();if(!_0x1dfeb1||0x0===_0x1dfeb1['length'])return{'left':Math['round'](_0x310ca4['left']+_0x310ca4['width']/0x2-_0x3919bd['width']/0x2),'top':Math['round'](_0x310ca4['top']+_0x310ca4['height']/0x2-_0x3919bd['height']/0x2)};const _0xddbcb3=Math['round'](_0x310ca4['left']+_0x310ca4['width']/0x2-_0x3919bd['width']/0x2),_0x4301d3=_0x1dfeb1['map'](_0x59df1f=>new Rect(_0x59df1f)),_0x31e99d=_0x3919bd['height'];return{'left':_0xddbcb3,'top':this['_calculateOptimalTopPosition'](_0x4301d3,_0x31e99d,_0x310ca4)};}['_calculateOptimalTopPosition'](_0x30a607,_0x29dbcc,_0xfe85da){const _0x3fa87d=new Rect(_0x1a0b09['window']),_0x489094=_0x30a607['map'](_0x13e25f=>_0x13e25f['getVisible']())['filter'](_0x43f7e5=>_0x43f7e5),_0x2aec14=Rect['getBoundingRect'](_0x489094);if(!_0x2aec14)return Math['round'](_0xfe85da['top']+_0xfe85da['height']/0x2);const _0x31d53a=_0x3fa87d['getIntersection'](_0x2aec14);if(!_0x31d53a)return Math['round'](_0xfe85da['top']+_0xfe85da['height']/0x2);const _0x2b0bf0=_0xfe85da['getVisible'](),_0x54cac9=_0x2b0bf0&&_0x2aec14['height']>_0x2b0bf0['height'],_0x227f4e=_0x31d53a['top'],_0xa265b0=_0x31d53a['bottom'];if(_0x54cac9){const _0x42a40b=(_0x2b0bf0||_0x3fa87d)['height']/0x2-_0x29dbcc/0x2,_0xdf358e=_0x227f4e-DIALOG_TOP_OFFSET-_0xfe85da['top'],_0x1c5f58=_0xfe85da['bottom']-_0xa265b0-DIALOG_TOP_OFFSET;return _0xdf358e>=_0x29dbcc?Math['max'](DIALOG_TOP_OFFSET,_0x227f4e-_0x29dbcc-DIALOG_TOP_OFFSET):_0x1c5f58>=_0x29dbcc?_0xa265b0+DIALOG_TOP_OFFSET:Math['max'](DIALOG_TOP_OFFSET,_0x42a40b);}const _0x2ef5a6=_0x227f4e-_0x29dbcc,_0x21ce53=_0xfe85da['bottom']-_0xa265b0-DIALOG_TOP_OFFSET,_0x53610b=_0x227f4e-DIALOG_TOP_OFFSET-_0xfe85da['top'];let _0x52f5ac;if(_0x21ce53>=_0x29dbcc)_0x52f5ac=_0xa265b0+DIALOG_TOP_OFFSET;else{if(_0x53610b>=_0x29dbcc)_0x52f5ac=_0x2ef5a6-DIALOG_TOP_OFFSET;else _0x52f5ac=_0x227f4e+_0x2aec14['height']/0x2-_0x29dbcc/0x2;}return _0x52f5ac;}['_setupFakeVisualSelectionMarkerRemovalListener'](){const _0x59d81f=this['_getTargetEditor']();this['listenTo'](_0x59d81f['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x3314a4,data:{newRange:_0x1c6e16}}of _0x59d81f['model']['document']['differ']['getChangedMarkers']())if(_0x3314a4['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME+':')&&(_0x1c6e16&&(_0x1c6e16['start']['isEqual'](_0x1c6e16['end'])||'$graveyard'==_0x1c6e16['root']['rootName'])||null==_0x1c6e16)){const _0x24ecbe=getTranslation$i(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0x24ecbe),this['fire']('selectionRemoved');}}});}['_cleanupFakeVisualSelectionMarkerRemovalListener'](){const _0x568d4f=this['_getTargetEditor']();this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x568d4f['model']['document']);}['_getSelectionElements'](){const _0x98535a=this['_getTargetEditor']();return getAllMarkersDomElementsSorted(_0x98535a['editing'],[..._0x98535a['model']['markers']['getMarkersGroup']('ai-selection'),..._0x98535a['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}['_getTargetRootDomRect'](){const _0x4413ee=this['_currentConfig']?.['ranges']?.[0x0]?.['root'];if(!_0x4413ee)return null;const _0x3bd102=this['_getTargetEditor'](),_0x35c574=_0x3bd102['editing']['view']['document']['getRoot'](_0x4413ee['rootName']);if(!_0x35c574)return null;const _0x1b529c=_0x3bd102['editing']['view']['domConverter']['mapViewToDom'](_0x35c574);return _0x1b529c&&_0x1b529c instanceof HTMLElement?new Rect(_0x1b529c):null;}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0x29b0c1,_0x521728={}){super(_0x29b0c1),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x521728};const _0x113d68=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x113d68?'ck-ai-mini-toolbar\x20ck-hidden':'ck-ai-mini-toolbar',this['_config']['showCopy']&&(this['_setupCopyButton'](),this['items']['add'](this['copyButton'])),this['_config']['showChanges']&&(this['_setupShowChangesButton'](),this['items']['add'](this['showChangesButton'])),this['_setupRatingButtons'](),this['_config']['showLike']&&this['items']['add'](this['likeButton']),this['_config']['showDislike']&&this['items']['add'](this['dislikeButton']),this['_config']['customView']&&this['items']['addMany'](this['_config']['customView']);}['toggleShowChangesEnabled'](_0x28def2){this['showChangesButton']['isEnabled']=_0x28def2;}['_setupRatingButtons'](){this['likeButton']=new ButtonView(this['locale']),this['likeButton']['set']({'icon':IconThumbUp,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_LIKE'),'class':AI_BUTTON_CLASSES['TERTIARY'],'tooltip':!0x0}),this['likeButton']['bind']('isEnabled')['to'](this),this['likeButton']['on']('execute',()=>{this['fire']('like');}),this['dislikeButton']=new ButtonView(this['locale']),this['dislikeButton']['set']({'icon':IconThumbDown,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_DISLIKE'),'class':AI_BUTTON_CLASSES['TERTIARY'],'tooltip':!0x0}),this['dislikeButton']['bind']('isEnabled')['to'](this),this['dislikeButton']['on']('execute',()=>{this['fire']('dislike');});}['_setupCopyButton'](){this['copyButton']=new ButtonView(this['locale']),this['copyButton']['set']({'icon':IconCopy,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button\x20'+AI_BUTTON_CLASSES['TERTIARY'],'tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this);const _0x284be6=new IconView();_0x284be6['set']({'content':IconCheck}),_0x284be6['extendTemplate']({'attributes':{'class':['ck-ai-mini-toolbar-copy-button__check-mark']}}),this['copyButton']['on']('execute',()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied\x20'+AI_BUTTON_CLASSES['TERTIARY'],setTimeout(()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button\x20'+AI_BUTTON_CLASSES['TERTIARY'];},0x7d0);}),this['copyButton']['children']['add'](_0x284be6);}['_setupShowChangesButton'](){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':IconShowChangesOff,'label':getTranslation$i(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'class':AI_BUTTON_CLASSES['TERTIARY']}),this['showChangesButton']['bind']('isOn')['to'](this,'isShowChangesOn'),this['showChangesButton']['bind']('isEnabled')['to'](this),this['showChangesButton']['bind']('icon')['to'](this,'isShowChangesOn',_0x127f00=>_0x127f00?IconShowChangesOn:IconShowChangesOff),this['showChangesButton']['on']('execute',()=>{this['fire']('toggleShowChanges');});}}class AIChatBalloonView extends AIBalloonView{['children'];['nextButtonView'];['previousButtonView'];['focusCycler'];['_focusables'];['_focusTracker'];['_keystrokes'];['_config'];['_streamableContentView'];['_toolbarContainerView'];['_partToolbarView'];['_stateView'];['_miniToolbarView'];constructor(_0x53213a,_0x58109c){super(_0x53213a);const _0x18fa19=this['bindTemplate'];this['set']('showDiff',!0x1),this['set']('_state','pending'),this['_focusTracker']=new FocusTracker(),this['_keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_config']=_0x58109c,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x53213a),this['_partToolbarView']=new AISuggestionContentPartToolbarView(_0x53213a,_0x58109c['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_togglePartToolbarButtonsVisibility'](_0x58109c),this['_stateView']=new AISuggestionContentPartStateView(_0x53213a),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new AIMiniToolbarView(_0x53213a,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new AIChatBalloonToolbarContainerView(_0x53213a,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x148830,_0x583b24,_0x4b644a,_0xb72a4d)=>{let _0x391838,_0x1f4bc1;'pending'===_0xb72a4d?(_0x391838=this['_partToolbarView'],_0x1f4bc1=this['_stateView']):(_0x391838=this['_stateView'],_0x1f4bc1=this['_partToolbarView']),this['_stateView']['setState'](_0x4b644a),_0x391838['isVisible']=!0x1,_0x1f4bc1['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x18fa19['to']('_state',_0x5ae550=>'ck-ai-chat-balloon-main_state_'+_0x5ae550)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x58109c);});}['render'](){super['render'](),this['nextButtonView']['render'](),this['previousButtonView']['render'](),this['_focusTracker']['add'](this['element']),this['_focusTracker']['add'](this['nextButtonView']),this['_focusTracker']['add'](this['previousButtonView']),this['_focusTracker']['add'](this['_miniToolbarView']),this['_focusTracker']['add'](this['_partToolbarView']),this['_keystrokes']['listenTo'](this['element']),this['_keystrokes']['listenTo'](this['nextButtonView']['element']),this['_keystrokes']['listenTo'](this['previousButtonView']['element']),this['_focusables']['addMany']([this['nextButtonView'],this['previousButtonView'],this['_partToolbarView'],this['_miniToolbarView']]);}['destroy'](){super['destroy'](),this['previousButtonView']['destroy'](),this['nextButtonView']['destroy']();}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}async['updateContent'](_0x2a2c78){_0x2a2c78?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x2a2c78);}['setState'](_0x1add1c){this['_state']=_0x1add1c;}['showError'](_0x4ddef9){super['showError'](_0x4ddef9),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}['hideError'](){this['_isErrorVisible']&&(super['hideError'](),this['togglePartToolbarEnabled'](!0x0));}['showBlockingError'](_0x4a33a9){super['showBlockingError'](_0x4a33a9),this['togglePartToolbarEnabled'](!0x1);}['toggleRotatorButtonsVisibility'](_0x181882){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x181882;}['togglePartToolbarEnabled'](_0x2479ea){this['_partToolbarView']['isEnabled']=_0x2479ea;}['_togglePartToolbarButtonsVisibility']({showApplyButton:_0x295250,showSuggestButton:_0x2a2ede}){_0x295250=_0x295250&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x2a2ede=_0x2a2ede&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x295250,'showSuggestButton':_0x2a2ede});}['_createNextButtonView'](){const _0x67b429=new ButtonView(this['locale']);return _0x67b429['set']({'icon':IconChevronDown,'label':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x67b429['on']('execute',()=>{this['fire']('showNext');}),_0x67b429;}['_createPreviousButtonView'](){const _0x216579=new ButtonView(this['locale']);return _0x216579['set']({'icon':IconChevronUp,'label':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0x216579['on']('execute',()=>{this['fire']('showPrevious');}),_0x216579;}}class AIChatBalloonToolbarContainerView extends View{constructor(_0x3df217,_0x15aa54){super(_0x3df217),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x15aa54});}}class AIChatBalloon extends Plugin{static get['requires'](){return[Dialog,AIBalloon];}static get['pluginName'](){return'AIChatBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_chatBalloonView'];constructor(_0x43bbdc){super(_0x43bbdc),this['set']('showDiff',!0x1);}['open'](_0x3e8f48){const _0x1af08d=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x1af08d['plugins']['get']('AIBalloon')['open']({..._0x3e8f48,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x3e8f48['showRotator']),this['_chatBalloonView']['togglePartToolbarEnabled'](!_0x3e8f48['areActionsDisabled']),this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}['updateContent'](_0x332fae){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0x332fae);}['setState'](_0x3b59a5){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0x3b59a5);}['_createChatBalloonView'](){const _0x13fc40=this['editor'],_0x10ecad=_0x13fc40['plugins']['get']('AIBalloon'),_0x1f6eeb=_0x13fc40['commands']['get']('trackChanges');let _0x1546e3=_0x13fc40['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x13fc40['plugins']['has']('TrackChanges')||(_0x1546e3=_0x1546e3['filter'](_0x5740be=>'insertSuggestion'!=_0x5740be));const _0x1c876=new AIChatBalloonView(_0x13fc40['locale'],{'availableActions':_0x1546e3,'showApplyButton':!0x0,'showSuggestButton':!!_0x1f6eeb});return _0x1c876['bind']('showDiff')['to'](this),_0x1c876['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),_0x1c876['delegate']('showPrevious','showNext')['to'](this),_0x10ecad['delegate']('dialogClosed')['to'](this),_0x1c876['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x1c876['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x1c876['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x1f6eeb&&_0x1c876['bind']('isTrackChangesOn')['to'](_0x1f6eeb,'value'),_0x1c876['render'](),_0x1c876;}['_toggleRotatorButtonsInDialogHeader'](_0x388d6b){const _0x2b618d=this['editor'],_0x38e1e6=_0x2b618d['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0x388d6b),_0x38e1e6['has'](this['_chatBalloonView']['previousButtonView'])||(_0x38e1e6['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0x2b618d['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x38e1e6['remove'](this['_chatBalloonView']['previousButtonView']),_0x38e1e6['remove'](this['_chatBalloonView']['nextButtonView']);}));}['_restoreDefaultViewFocus'](){this['_chatBalloonView']['focus']();}}class AIEditorIntegration extends Plugin{static get['requires'](){return[AIToggleButtonUI,AIChatBalloon,SuggestionsConversion];}static get['pluginName'](){return'AIEditorIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function aiQuickActionsButtonCreator(_0x1291d7){const {editor:_0x1dc3cc,action:_0x3b8853,withText:_0x1b766c=!0x1,withIcon:_0x411acd=!0x0,isInDropdown:_0x7d8301=!0x0,shouldPreventFocus:_0x108403=!0x1}=_0x1291d7;return()=>{const _0x5a8d7e=_0x1dc3cc['locale'],_0x74ea52=new ButtonView(_0x5a8d7e),_0x279985=_0x74ea52['bindTemplate'];_0x7d8301&&_0x74ea52['extendTemplate']({'on':{'mouseenter':_0x279985['to'](()=>{_0x108403&&_0x108403()||_0x74ea52['focus']();})}});const _0x5aea1f=_0x3b8853['icon']??_0x3b8853['parent']?.['icon'];return _0x74ea52['set']({'label':_0x3b8853['label'],'withText':_0x1b766c,'role':'menuitem','icon':_0x411acd?_0x5aea1f??IconAIQuickActions:void 0x0,'tooltip':!_0x1b766c,'class':'ck-ai-quick-actions-button','isEnabled':_0x3b8853['isEnabled']}),_0x74ea52['on']('execute',()=>{_0x1dc3cc['editing']['view']['focus'](),_0x1dc3cc['commands']['execute']('aiQuickAction',_0x3b8853);}),_0x74ea52;};}class DropdownMenuButtonWithHighlightView extends ListItemButtonView{['arrowView'];constructor(_0x924bd9,_0x40509b){super(_0x924bd9,_0x40509b);const _0x5aadb7=this['bindTemplate'];this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':['ck-dropdown-menu-list__nested-menu__button'],'aria-haspopup':!0x0,'aria-expanded':this['bindTemplate']['to']('isOn',_0x257a00=>String(_0x257a00)),'data-cke-tooltip-disabled':_0x5aadb7['to']('isOn')},'on':{'mouseenter':_0x5aadb7['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x547255=new IconView();return _0x547255['content']=IconDropdownArrow,_0x547255['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0x547255;}}class AIQuickActionsFilteredListView extends ListView{['_allListItems'];['_allSearchableItems'];constructor(_0x51ac44,_0x36b865,_0xb88368){super(_0x51ac44),this['_allListItems']=_0x36b865,this['_allSearchableItems']=_0xb88368;}['filter'](_0x178d63){if(!_0x178d63)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0x5cf104=_0x178d63['source']['toLowerCase']()['trim'](),_0x5afc2a=this['_allSearchableItems']['filter'](_0x3c8b64=>(_0x3c8b64['groupLabel']?_0x3c8b64['label']+'\x20('+_0x3c8b64['groupLabel']+')':_0x3c8b64['label'])['toLowerCase']()['includes'](_0x5cf104));return this['items']['clear'](),this['items']['addMany'](_0x5afc2a['sort']((_0x458065,_0x427bdf)=>{const _0x49f29c=_0x458065['groupLabel'],_0x20759b=_0x427bdf['groupLabel'];return _0x49f29c||_0x20759b?_0x49f29c?0x1:-0x1:0x0;})['map'](_0x1f5e78=>_0x1f5e78['item'])),this['_highlightQuery'](_0x5cf104,_0x5afc2a),{'resultsCount':_0x5afc2a['length'],'totalItemsCount':this['_allSearchableItems']['length']};}['_highlightQuery'](_0x104c0c,_0x4d0425){if(!_0x104c0c)return;const _0x2bc830=new RegExp(escapeRegExp(_0x104c0c),'gi');_0x4d0425['forEach'](_0x2ab1a3=>{_0x2ab1a3['highlightViews']&&_0x2ab1a3['highlightViews']['forEach'](_0x371e72=>{'function'==typeof _0x371e72['highlightText']&&_0x371e72['highlightText'](_0x2bc830);});});}['_clearHighlight'](){this['_allSearchableItems']['forEach'](_0x416724=>{_0x416724['highlightViews']&&_0x416724['highlightViews']['forEach'](_0x7a315d=>{'function'==typeof _0x7a315d['highlightText']&&_0x7a315d['highlightText'](null);});});}}const UI_ROLES={'MENU':'menu','MENU_ITEM':'menuitem'};class AIQuickActionsDropdownContentView extends View{['_bodyCollection'];['optionsListView'];['_searchTextView']=null;['_allSearchableItems']=[];['children'];['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['_openNestedPanels']=new Set();['_hasSearch'];constructor(_0x14c292,_0x94ab6d,_0x7143ac,_0x257e0b,_0x32aef8=!0x1){const _0x1acf19=_0x14c292['locale'];super(_0x1acf19),this['_bodyCollection']=_0x257e0b,this['_hasSearch']=_0x32aef8;const _0x1ab5e0=this['_createListItems'](_0x14c292,_0x94ab6d,_0x7143ac);this['optionsListView']=new AIQuickActionsFilteredListView(_0x1acf19,_0x1ab5e0,this['_allSearchableItems']),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x1ab5e0),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),_0x32aef8&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x1ab5e0,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0x32aef8&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x1000c0=_0x32aef8&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new ViewCollection(_0x1000c0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x1acf19['uiLanguageDirection']},'children':this['children']});}['_createSearchTextView'](){return new SearchTextView(this['locale'],{'filteredView':this['optionsListView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_QUICK_ACTIONS_SEARCH')},'class':'ck-ai-quick-actions-search','infoView':{'text':{'notFound':{'primary':getTranslation$i(this['locale'],'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND')}}}});}['_isSearchFocused'](){if(!this['_hasSearch']||!this['_searchTextView']||!this['_searchTextView']['queryView']['fieldView']['element'])return!0x1;const _0x27b63d=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x27b63d);}['_createListItems'](_0x4809f3,_0x754716,_0x121f28){const _0x232fd5=new ViewCollection();return _0x754716['forEach'](_0x1c1fa0=>{if('actions'in _0x1c1fa0){const {listItem:_0x50dad7}=this['_createActionGroupButton'](_0x4809f3,_0x1c1fa0,_0x121f28);_0x232fd5['add'](_0x50dad7),_0x1c1fa0['actions']['forEach'](_0x378f73=>{this['_createActionButton'](_0x4809f3,_0x378f73,_0x1c1fa0['label'],_0x1c1fa0['icon']);const {listItem:_0x2868bd,highlightViews:_0x5c69c4}=this['_createSearchResultActionButton'](_0x4809f3,_0x378f73,_0x1c1fa0['label'],_0x1c1fa0['icon']);this['_allSearchableItems']['push']({'item':_0x2868bd,'label':_0x378f73['label'],'groupLabel':_0x1c1fa0['label'],'highlightViews':_0x5c69c4});});}else{const {listItem:_0x3745b6}=this['_createActionButton'](_0x4809f3,_0x1c1fa0);_0x232fd5['add'](_0x3745b6);const _0x6884a3=_0x3745b6['children']['first'];if(_0x6884a3){const {listItem:_0x4af8eb,highlightViews:_0x28e9e1}=this['_createSearchResultActionButton'](_0x4809f3,_0x1c1fa0);this['_allSearchableItems']['push']({'item':_0x4af8eb,'label':_0x6884a3['label']||'','highlightViews':_0x28e9e1});}}}),_0x232fd5;}['_createActionButton'](_0x1fda01,_0x50439c,_0x143acd,_0x1a2f3e){const _0x121a2d=new ListItemView(this['locale']);if(_0x143acd&&_0x1a2f3e){const _0x59a580=new ButtonView(this['locale']),_0x40ec0a=_0x59a580['bindTemplate'],_0x4e9415=new HighlightedTextView();_0x4e9415['text']=_0x50439c['label'];const _0x50be11=new HighlightedTextView();_0x50be11['text']=_0x143acd;const _0xf5731b=new IconView();_0xf5731b['content']=_0x1a2f3e,_0xf5731b['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x21d911=new View(this['locale']);_0x21d911['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0x32fff1=new View(this['locale']);return _0x32fff1['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0x59a580['set']({'label':_0x50439c['label']+'\x20('+_0x143acd+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1}),_0x59a580['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-button_with-group'],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x4e9415,_0x21d911,_0xf5731b,_0x50be11,_0x32fff1],'on':{'mouseenter':_0x40ec0a['to'](()=>{this['_isSearchFocused']()||_0x59a580['focus']();}),'click':_0x40ec0a['to'](()=>{_0x59a580['fire']('execute');})}}),_0x59a580['on']('execute',()=>{_0x1fda01['editing']['view']['focus'](),_0x1fda01['commands']['execute']('aiQuickAction',_0x50439c);}),_0x121a2d['children']['add'](_0x59a580),{'listItem':_0x121a2d,'highlightViews':[_0x4e9415,_0x50be11]};}{const _0x550363=new ButtonLabelWithHighlightView(),_0x3e0a4a=new ButtonView(this['locale'],_0x550363),_0x1d2add=_0x3e0a4a['bindTemplate'],_0x282753=_0x50439c['icon']??_0x50439c['parent']?.['icon'],_0x32bb0c=void 0x0!==_0x50439c['icon'];return _0x3e0a4a['set']({'label':_0x50439c['label'],'withText':!0x0,'role':'menuitem','icon':_0x32bb0c?_0x282753??IconAIQuickActions:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button'}),_0x3e0a4a['extendTemplate']({'on':{'mouseenter':_0x1d2add['to'](()=>{this['_isSearchFocused']()||_0x3e0a4a['focus']();})}}),_0x3e0a4a['on']('execute',()=>{_0x1fda01['editing']['view']['focus'](),_0x1fda01['commands']['execute']('aiQuickAction',_0x50439c);}),_0x121a2d['children']['add'](_0x3e0a4a),{'listItem':_0x121a2d,'highlightViews':[_0x550363]};}}['_createSearchResultActionButton'](_0x32940a,_0x16ca03,_0x1561f2,_0x2b0e0f){return _0x1561f2&&_0x2b0e0f?this['_createSearchResultGroupedActionButton'](_0x32940a,_0x16ca03,_0x1561f2,_0x2b0e0f):this['_createSearchResultIndividualActionButton'](_0x32940a,_0x16ca03);}['_createSearchResultGroupedActionButton'](_0x1a06d1,_0x1ebc1a,_0x1c3b19,_0x1a619b){const _0x44069b=new ListItemView(this['locale']),_0x2c38eb=new ButtonView(this['locale']),_0x2df97c=_0x2c38eb['bindTemplate'],{view:_0x2d86b1,highlightView:_0x1f4d9d}=this['_createSearchResultGroupRow'](_0x1c3b19,_0x1a619b),{view:_0x102de6,highlightView:_0x19ce9c}=this['_createSearchResultActionRow'](_0x1ebc1a['label']),_0x41cb58=this['_createSearchResultContentView'](_0x2d86b1,_0x102de6);return _0x2c38eb['set']({'label':_0x1ebc1a['label'],'withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','tooltip':!0x1}),_0x2c38eb['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-search-result-button','ck-ai-quick-actions-search-result-button_with-group'],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x41cb58],'on':{'mouseenter':_0x2df97c['to'](()=>{this['_isSearchFocused']()||_0x2c38eb['focus']();}),'click':_0x2df97c['to'](()=>{this['_handleSearchResultButtonClick'](_0x2c38eb);})}}),this['_setupActionButtonExecution'](_0x2c38eb,_0x1a06d1,_0x1ebc1a),_0x44069b['children']['add'](_0x2c38eb),{'listItem':_0x44069b,'highlightViews':[_0x1f4d9d,_0x19ce9c]};}['_createSearchResultIndividualActionButton'](_0xe488bd,_0x3d69dc){const _0x2b9ded=new ListItemView(this['locale']),_0x2d936c=new ButtonLabelWithHighlightView(),_0x11d460=new ButtonView(this['locale'],_0x2d936c),_0x4e7e37=_0x11d460['bindTemplate'];return _0x11d460['set']({'label':_0x3d69dc['label'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button'}),_0x11d460['extendTemplate']({'on':{'mouseenter':_0x4e7e37['to'](()=>{this['_isSearchFocused']()||_0x11d460['focus']();})}}),this['_setupActionButtonExecution'](_0x11d460,_0xe488bd,_0x3d69dc),_0x2b9ded['children']['add'](_0x11d460),{'listItem':_0x2b9ded,'highlightViews':[_0x2d936c]};}['_createSearchResultGroupRow'](_0x5e0969,_0x286b72){const _0x35a361=new View(this['locale']),_0x3a7bc7=new IconView();_0x3a7bc7['content']=_0x286b72,_0x3a7bc7['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x4d509a=new HighlightedTextView();return _0x4d509a['text']=_0x5e0969,_0x35a361['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x3a7bc7,_0x4d509a]}),{'view':_0x35a361,'highlightView':_0x4d509a};}['_createSearchResultActionRow'](_0x3fa6bb){const _0x1f1242=new View(this['locale']),_0x3960fb=new HighlightedTextView();return _0x3960fb['text']=_0x3fa6bb,_0x1f1242['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x3960fb]}),{'view':_0x1f1242,'highlightView':_0x3960fb};}['_createSearchResultContentView'](_0x498a88,_0x14bb8f){const _0x57ea04=new View(this['locale']);return _0x57ea04['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x498a88,_0x14bb8f]}),_0x57ea04;}['_setupActionButtonExecution'](_0x2ba0f6,_0x5e850a,_0x1df748){_0x2ba0f6['on']('execute',()=>{_0x5e850a['editing']['view']['focus'](),_0x5e850a['commands']['execute']('aiQuickAction',_0x1df748);});}['_createActionGroupButton'](_0x2ea6f8,_0x3a93c6,_0x34e2df){const _0x3b8313=new ListItemView(this['locale']),_0x2f6fe4=new ButtonLabelWithHighlightView(),_0x38d7c5=new DropdownMenuButtonWithHighlightView(this['locale'],_0x2f6fe4),_0x340bd4=_0x38d7c5['bindTemplate'],_0xa3486=this['_getPanelKeystroke'](_0x34e2df),_0xe1b654=this['_createGroupActionsList'](_0x2ea6f8,_0x3a93c6['actions'],_0x34e2df);_0x38d7c5['set']({'label':_0x3a93c6['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x3a93c6['icon']??IconAIQuickActions,'isEnabled':_0x3a93c6['actions']['some'](_0x1ef802=>_0x1ef802['isEnabled'])}),_0x38d7c5['extendTemplate']({'on':{'mouseenter':_0x340bd4['to'](()=>{this['_isSearchFocused']()||_0x38d7c5['focus']();})}});const _0x435d65=new BalloonPanelView(this['locale']);return _0x435d65['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x340bd4['to'](_0x55edb3=>{this['_handlePanelKeydown'](_0x55edb3,_0xa3486,_0x38d7c5,_0x435d65);})}}),_0x38d7c5['bind']('isOn')['to'](_0x435d65,'isVisible'),this['_bodyCollection']['add'](_0x435d65),_0x435d65['content']['add'](_0xe1b654),this['_setupGroupMenuBehavior'](_0x38d7c5,_0x435d65),_0x3b8313['children']['add'](_0x38d7c5),{'listItem':_0x3b8313,'highlightView':_0x2f6fe4};}['_createGroupActionsList'](_0x5c18bd,_0x26a521,_0x1c8545){const _0x599835=new ListView(this['locale']);return _0x599835['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x26a521['forEach'](_0x22eb61=>{const _0x46d845=new ListItemView(this['locale']),_0x5e2c3c=aiQuickActionsButtonCreator({'editor':_0x5c18bd,'action':_0x22eb61,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused']()})();_0x46d845['children']['add'](_0x5e2c3c),_0x1c8545['focusTracker']['add'](_0x5e2c3c),_0x599835['items']['add'](_0x46d845);}),_0x599835;}['_setupGroupMenuBehavior'](_0x1de09a,_0x26df8d){const _0x2c2f26=_0x1de09a['bindTemplate'],_0xb6bf85=this['_getButtonKeystroke'](_0x1de09a);_0x1de09a['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x2c2f26['to'](()=>{this['_showNestedPanel'](_0x26df8d,_0x1de09a);}),'mouseleave':_0x2c2f26['to'](_0x55cc74=>{const _0x357725=_0x55cc74['relatedTarget'];this['_isMovingToNestedMenu'](_0x357725,_0x26df8d)||this['_hideNestedPanel'](_0x26df8d);}),'keydown':_0x2c2f26['to'](_0x5f3d77=>{_0x5f3d77['key']==_0xb6bf85&&(this['_showNestedPanel'](_0x26df8d,_0x1de09a),_0x26df8d['content']['get'](0x0)['focus']());})}}),_0x26df8d['on']('render',()=>{_0x26df8d['element']?.['addEventListener']('mouseleave',_0x59af8c=>{const _0x3692ae=_0x59af8c['relatedTarget'];_0x1de09a['element']?.['contains'](_0x3692ae)||this['_isMovingToNestedMenu'](_0x3692ae,_0x26df8d)||this['_hideNestedPanel'](_0x26df8d);});});}['_showNestedPanel'](_0x461c1c,_0x4b1421){this['_openNestedPanels']['forEach'](_0x2a22bb=>{_0x2a22bb!==_0x461c1c&&_0x2a22bb['isVisible']&&_0x2a22bb['hide']();}),_0x461c1c['show'](),_0x461c1c['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x4b1421['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x461c1c);}['_hideNestedPanel'](_0x49dcfc){_0x49dcfc['hide'](),this['_openNestedPanels']['delete'](_0x49dcfc);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x1952de=>_0x1952de['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0x3e5cc9,_0x3fba18){if(!_0x3e5cc9)return!0x1;if(_0x3fba18['element']?.['contains'](_0x3e5cc9))return!0x0;const _0x9f98d2=_0x3e5cc9;return _0x9f98d2['closest']&&(null!==_0x9f98d2['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x9f98d2['closest']('.ck-ai-quick-actions-group-list')||null!==_0x9f98d2['closest']('.ck-ai-quick-actions-group-button'));}['resetSearch'](){this['_searchTextView']&&this['_searchTextView']['reset']();}['destroy'](){this['_hideAllNestedPanels'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['focus'](){this['_searchTextView']?this['_searchTextView']['focus']():this['optionsListView']['focus']();}['_getPanelKeystroke'](_0x1ed75c){return'rtl'===_0x1ed75c['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}['_getButtonKeystroke'](_0x472933){return'rtl'===_0x472933['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0xe800f8,_0x25abf5,_0x816cac,_0x34c8e8){_0xe800f8['key']==_0x25abf5&&(_0x816cac['focus'](),this['_hideNestedPanel'](_0x34c8e8));}['_handleSearchResultButtonClick'](_0x57a608){_0x57a608['fire']('execute');}}function aiQuickActionsDropdownCreator(_0xdf4fd0){const {editor:_0x1133ab,content:_0x4ab416,buttonDefinition:_0x46c376,bodyCollection:_0xbf0477,hasSearch:_0x4b4682=!0x1}=_0xdf4fd0;return()=>{const _0x44e959=_0x1133ab['locale'],_0x1903fd=_0x1133ab['commands']['get']('aiQuickAction'),_0x31413b=createDropdown(_0x44e959);_0x31413b['bind']('isEnabled')['to'](_0x1903fd),_0x31413b['buttonView']['set']({'icon':_0x46c376['icon']??IconAIQuickActions,'label':_0x46c376['label'],'tooltip':!0x0}),_0x31413b['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x215ba7=new AIQuickActionsDropdownContentView(_0x1133ab,_0x4ab416,_0x31413b,_0xbf0477,_0x4b4682);return _0x31413b['panelView']['children']['add'](_0x215ba7),_0x4b4682&&_0x31413b['on']('change:isOpen',(_0x51ca03,_0x86905b,_0x59a3a2)=>{if(_0x59a3a2){if(_0x1133ab['plugins']['has']('AIEditing')){const _0x3aac3e=_0x1133ab['plugins']['get'](AIEditing),_0x2bfc19=_0x1133ab['model']['document']['selection'],_0x5614e8=Array['from'](_0x2bfc19['getRanges']());_0x5614e8['length']>0x0&&_0x3aac3e['showFakeVisualSelection']({'ranges':_0x5614e8,'id':'quick-action','priority':0x14});}}else _0x1133ab['plugins']['has']('AIEditing')&&_0x1133ab['plugins']['get'](AIEditing)['hideFakeVisualSelection']('quick-action'),_0x215ba7['resetSearch']();}),_0x31413b;};}const AI_QUICK_ACTIONS_EXPLAIN_PROMPT='<task>Explain\x20the\x20selected\x20part\x20of\x20the\x20document\x20in\x20plain,\x20simple\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).-\x20Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><output>For\x20this\x20response:\x20reply\x20with\x20only\x20the\x20text\x20explanation,\x20nothing\x20else.</output><scope>These\x20instructions\x20apply\x20to\x20this\x20response\x20only.\x20In\x20follow-up\x20messages,\x20respond\x20normally\x20as\x20a\x20helpful\x20assistant,\x20that\x20can\x20make\x20document\x20modifications\x20with\x20no\x20restrictions.</scope>',AI_QUICK_ACTIONS_SUMMARIZE_PROMPT='<task>Summarize\x20the\x20selected\x20part\x20of\x20the\x20document\x20in\x202–4\x20clear\x20sentences,\x20capturing\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><output>For\x20this\x20response:\x20reply\x20with\x20only\x20the\x20text\x20summary,\x20nothing\x20else.</output><scope>These\x20instructions\x20apply\x20to\x20this\x20response\x20only.\x20In\x20follow-up\x20messages,\x20respond\x20normally\x20as\x20a\x20helpful\x20assistant\x20that\x20can\x20make\x20document\x20modifications\x20with\x20no\x20restrictions.</scope>',AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT='<task>Extract\x20and\x20present\x20the\x20key\x20points\x20from\x20the\x20selected\x20part\x20of\x20the\x20document\x20as\x20a\x20concise\x20bulleted\x20list.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><output>For\x20this\x20response:\x20reply\x20with\x20only\x20the\x20text\x20key\x20points\x20list,\x20nothing\x20else.</output><scope>These\x20instructions\x20apply\x20to\x20this\x20response\x20only.\x20In\x20follow-up\x20messages,\x20respond\x20normally\x20as\x20a\x20helpful\x20assistant\x20that\x20can\x20make\x20document\x20modifications\x20with\x20no\x20restrictions.</scope>',AIQuickActionTypeToPluginName=/* #__PURE__ -- @preserve */
((()=>({'chat':'AIChat','action':'AIActions'}))());class AIQuickActionsUI extends Plugin{static get['requires'](){return[BalloonToolbar,AIConnector];}static get['pluginName'](){return'AIQuickActionsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){const _0x283e13=await this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0x283e13),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0x5ec881){return getDefaultQuickActions(_0x5ec881);}async['_getDefaultAndCustomActions'](){const _0x303b62=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x4afead=this['editor']['config']['get']('ai.quickActions.extraCommands')||[];let _0x45c9c5,_0x556c30=[];try{const _0x20a772=new AIModels({'connector':this['editor']['plugins']['get']('AIConnector'),'config':this['editor']['config']['get']('ai.models'),'locale':this['editor']['locale']});_0x556c30=await _0x20a772['getAll'](),_0x45c9c5=(await _0x20a772['getDefault']())?.['id'];}catch(_0x3aa7f7){const _0x46df3e=new CKEditorError('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x3aa7f7});logError(_0x46df3e['message']);}finally{const _0x3936d7=_0x4afead['map'](_0x289400=>({..._0x289400,'type':'chat'===_0x289400['type']?'chat':'action','model':'chat'!==_0x289400['type']?_0x289400['model']||_0x45c9c5:_0x289400['model'],'icon':void 0x0}));_0x303b62['find'](_0xb76ed0=>'other'===_0xb76ed0['id'])['actions']['push'](..._0x3936d7),_0x303b62['forEach'](_0x1fa26d=>{if('actions'in _0x1fa26d)_0x1fa26d['actions']['forEach'](_0x4e6fda=>{if(_0x4e6fda['isEnabled']=!!_0x556c30['find'](_0x582e9d=>_0x582e9d['id']===_0x4e6fda['model'])||void 0x0===_0x4e6fda['model'],!_0x4e6fda['isEnabled']){const _0x445170=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x4e6fda['id'],'modelId':_0x4e6fda['model']});logError(_0x445170['message']);}});else{if(_0x1fa26d['isEnabled']=!!_0x556c30['find'](_0x310a2e=>_0x310a2e['id']===_0x1fa26d['model'])||void 0x0===_0x1fa26d['model'],!_0x1fa26d['isEnabled']){const _0x1b9dfc=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x1fa26d['id'],'modelId':_0x1fa26d['model']});logError(_0x1b9dfc['message']);}}});}return _0x303b62;}['_initializeQuickActionsComponentsAndCommands'](){const _0x52df14=new BodyCollection(this['editor']['locale']);_0x52df14['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x52df14),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x52df14);}['_initializeQuickActionsDropdown'](_0x2fa522){const _0x29b4da=this['editor']['config']['get']('ai.quickActions.isSearchEnabled')??!0x0;this['editor']['ui']['componentFactory']['add']('aiQuickActions',aiQuickActionsDropdownCreator({'editor':this['editor'],'content':this['_quickActionsDefinition'],'buttonDefinition':{'icon':IconAIQuickActions,'label':getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_HEADING')},'bodyCollection':_0x2fa522,'hasSearch':_0x29b4da}));}['_prepareQuickActionsDefinition'](_0x3b9b7b){this['_quickActionsDefinition']=_0x3b9b7b['map'](_0x208f73=>{if('actions'in _0x208f73){const _0x499465=_0x208f73;return{..._0x499465,'actions':_0x499465['actions']['map'](_0x3eaf8a=>{const {actions:_0x5ab1d0,..._0xa88cb2}=_0x499465;return{..._0x3eaf8a,'parent':_0xa88cb2};})['filter'](_0x13e725=>this['_shouldIncludeAction'](_0x13e725))};}return _0x208f73;})['filter'](_0x1e855a=>'actions'in _0x1e855a?_0x1e855a['actions']['length']>0x0:this['_shouldIncludeAction'](_0x1e855a));}['_shouldIncludeAction'](_0x559245){const _0x224089=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x559245['type']])&&!_0x224089['includes'](_0x559245['id'])&&!('chat'===_0x559245['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}['_initializeQuickActionsComponents'](_0x3a61a5){this['_quickActionsDefinition']['forEach'](_0xc6e361=>{if('actions'in _0xc6e361){const _0x26bb1f=aiQuickActionsDropdownCreator({'editor':this['editor'],'content':_0xc6e361['actions'],'buttonDefinition':_0xc6e361,'bodyCollection':_0x3a61a5});this['editor']['ui']['componentFactory']['add'](_0xc6e361['id'],_0x26bb1f),_0xc6e361['actions']['forEach'](_0x1f1425=>{const _0x17f2bf=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x1f1425});this['editor']['ui']['componentFactory']['add'](_0x1f1425['id'],_0x17f2bf);});}else{const _0x56f476=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0xc6e361,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this['editor']['ui']['componentFactory']['add'](_0xc6e361['id'],_0x56f476);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x1e5e35=>{const _0x1cf7c0=this['editor']['commands']['get']('aiQuickAction'),_0x1cef54=new MenuBarMenuView(_0x1e5e35),_0xe43c48=getTranslation$i(_0x1e5e35,'AI_QUICK_ACTIONS_HEADING');_0x1cef54['buttonView']['set']({'label':_0xe43c48,'icon':IconAIQuickActions});const _0x31abdd=new MenuBarMenuListView(_0x1e5e35);return _0x31abdd['set']({'ariaLabel':_0xe43c48,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0x222715=>{if('actions'in _0x222715){const _0x1e4485=_0x222715,_0x21d72f=new MenuBarMenuListItemView(_0x1e5e35,_0x1cef54),_0x20625d=new MenuBarMenuView(_0x1e5e35),_0x440b8a=new MenuBarMenuListView(_0x1e5e35);_0x20625d['buttonView']['set']({'label':_0x1e4485['label'],'icon':_0x1e4485['icon']}),_0x1e4485['actions']['forEach'](_0x1c5170=>{const _0x2fff99=new MenuBarMenuListItemView(_0x1e5e35,_0x20625d),_0x3567ab=new MenuBarMenuListItemButtonView(_0x1e5e35);_0x3567ab['set']({'label':_0x1c5170['label'],'icon':_0x1c5170['icon'],'role':'menuitem','isEnabled':_0x1c5170['isEnabled']}),_0x3567ab['on']('execute',()=>{this['_executeQuickAction'](_0x1c5170);}),_0x3567ab['delegate']('execute')['to'](_0x20625d),_0x2fff99['children']['add'](_0x3567ab),_0x440b8a['items']['add'](_0x2fff99);}),_0x20625d['panelView']['children']['add'](_0x440b8a),_0x21d72f['children']['add'](_0x20625d),_0x31abdd['items']['add'](_0x21d72f);}else{const _0x1bc9a7=_0x222715,_0x1ecca8=new MenuBarMenuListItemView(_0x1e5e35,_0x1cef54),_0x4d5ee0=new MenuBarMenuListItemButtonView(_0x1e5e35);_0x4d5ee0['set']({'label':_0x1bc9a7['label'],'icon':_0x1bc9a7['icon'],'role':'menuitem','isEnabled':_0x1bc9a7['isEnabled']}),_0x4d5ee0['on']('execute',()=>{this['_executeQuickAction'](_0x1bc9a7);}),_0x4d5ee0['delegate']('execute')['to'](_0x1cef54),_0x1ecca8['children']['add'](_0x4d5ee0),_0x31abdd['items']['add'](_0x1ecca8);}}),(Object['values'](AIQuickActionTypeToPluginName)['some'](_0x124107=>this['editor']['plugins']['has'](_0x124107))?_0x1cef54['bind']('isEnabled')['to'](_0x1cf7c0):_0x1cef54['set']({'isEnabled':!0x1}),_0x1cef54['panelView']['children']['add'](_0x31abdd),_0x1cef54);});}['_executeQuickAction'](_0x574347){const _0x2e323d=this['editor'];_0x2e323d['editing']['view']['focus'](),_0x2e323d['commands']['execute']('aiQuickAction',_0x574347);const _0x5e6153=_0x2e323d['ui']['view']['menuBarView'];_0x5e6153&&_0x5e6153['close']&&_0x5e6153['close']();}}function getDefaultQuickActions(_0xabfd8b){const _0x5de185=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0xabfd8b['uiLanguage'])||'English';return[{'id':'ask-ai','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_ASK_AI'),'type':'chat','icon':IconAIChatCommands},{'id':'chat-commands','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_EXPLAIN'),'displayedPrompt':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x5de185),'type':'chat'},{'id':'summarize','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_SUMMARIZE'),'displayedPrompt':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x5de185),'type':'chat'},{'id':'highlight-key-points','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'displayedPrompt':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x5de185),'type':'chat'}]},{'id':'improve-writing','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'action','icon':IconAIImproveWriting},{'id':'continue','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'action','icon':IconAIContinueWriting},{'id':'fix-grammar','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'action','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'action'},{'id':'make-longer','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'action'}]},{'id':'change-tone','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'action'},{'id':'make-tone-direct','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'action'},{'id':'make-tone-friendly','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'action'},{'id':'make-tone-confident','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'action'},{'id':'make-tone-professional','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'action'}]},{'id':'translate','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'action','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'action','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'action','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'action','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'action','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'action','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'action','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'action','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'action','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'action','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0xabfd8b,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends Command{['execute'](_0x33fae9){switch(this['_expandSelectionIfCollapsed'](),_0x33fae9['type']){case'chat':if(!this['editor']['plugins']['has']('AIChat')){const _0x3513ca=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x3513ca});}this['_handleAIChatAction'](_0x33fae9);break;case'action':if(!this['editor']['plugins']['has']('AIActions')){const _0x53c819=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x53c819});}this['_handleAIActionsAction'](_0x33fae9);}}async['_handleAIChatAction'](_0x3886ef){const _0xecaf5=this['editor']['plugins']['get']('AIChatController'),_0x3715cf=this['editor']['plugins']['get']('AITabs')['view'];if(_0x3715cf['isVisible']||(_0x3715cf['isVisible']=!0x0),'chat'!==_0x3715cf['activeTab']&&_0x3715cf['activateTab']('chat'),'ask-ai'===_0x3886ef['id'])_0xecaf5['removeSelectionFromChatContext'](),_0xecaf5['addSelectionToChatContext'](),_0xecaf5['focusPromptInput']();else await _0xecaf5['startConversation']({'modelId':_0x3886ef['model']}),_0xecaf5['removeSelectionFromChatContext'](),_0xecaf5['addSelectionToChatContext'](),_0xecaf5['focusPromptInput'](),await _0xecaf5['sendMessage']({'message':_0x3886ef['prompt']||_0x3886ef['displayedPrompt']||_0x3886ef['label'],'attributes':{'quickActionData':{'id':_0x3886ef['id']},'displayedPrompt':_0x3886ef['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x180e71=this['editor'],_0x322e37=_0x180e71['model']['document']['selection'];if(!_0x322e37['isCollapsed'])return;const _0x4c42f4=first(_0x322e37['getSelectedBlocks']())||_0x180e71['model']['schema']['getLimitElement'](_0x322e37);_0x180e71['model']['change'](_0x39b201=>{_0x39b201['setSelection'](_0x4c42f4,'in');});}['_handleAIActionsActionLabel'](_0x4ced61){return _0x4ced61['parent']?.['label']&&'other'!==_0x4ced61['parent']?.['id']?_0x4ced61['parent']['label']+':\x20'+_0x4ced61['label']:_0x4ced61['label'];}async['_handleAIActionsAction'](_0x2ce286){const _0x44ee74=this['editor']['plugins']['get']('AIActions'),_0x39bdc0=_0x2ce286['prompt']?{'userMessage':_0x2ce286['prompt'],'model':_0x2ce286['model']}:{'actionName':_0x2ce286['actionName']||_0x2ce286['id'],'args':_0x2ce286['args']},_0x27e0c3=this['_handleAIActionsActionLabel'](_0x2ce286);await _0x44ee74['executeAction'](_0x39bdc0,_0x27e0c3,_0x2ce286['icon']);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xd66442=this['editor'],_0x500e68=new AIQuickActionsCommand(this['editor']);if(_0xd66442['commands']['add']('aiQuickAction',_0x500e68),_0xd66442['plugins']['has']('AIChat')){const _0x1518d=this['editor']['plugins']['get']('AIChatController');_0xd66442['model']['document']['selection']['on']('change:range',(_0x201088,_0x257110)=>{_0x257110['directChange']&&_0x1518d['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x43282a=diffArrays(this['documentContextContent']['children']['map'](_0x20ef76=>({'node':_0x20ef76,'id':getAttribute(_0x20ef76,'data-id')})),this['parsedMergedContent']['children']['map'](_0x2b3e7f=>({'node':_0x2b3e7f,'id':getAttribute(_0x2b3e7f,'data-id')||uid()})),{'comparator':(_0x566242,_0x499eb1)=>_0x566242['id']==_0x499eb1['id'],'oneChangePerToken':!0x0});if(!this['isDone']||!this['isComplete']){for(;_0x43282a['length']&&_0x43282a[_0x43282a['length']-0x1]['removed'];)_0x43282a['pop']();}const _0x506044=_0x43282a['map'](_0x3ddd71=>{const _0x1fd550=_0x3ddd71['added']?'new':_0x3ddd71['removed']?'removed':'modified';return{'node':_0x3ddd71['value'][0x0]['node'],'type':_0x1fd550,'id':_0x3ddd71['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x506044,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0x3a7671,_0x1f3331){return _0x1f3331;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;['stoppedExplicitly']=!0x1;constructor(_0x2dd00a){super(_0x2dd00a),this['content']=_0x2dd00a['content'],this['version']=_0x2dd00a['version'],this['actionName']=_0x2dd00a['actionName'],this['args']=_0x2dd00a['args'],this['userMessage']=_0x2dd00a['userMessage'],this['model']=_0x2dd00a['model'],this['on']('interactionStopped',()=>{this['stoppedExplicitly']=!0x0;});}async['sendRequest'](){return this['actionName']?this['connector']['executeAction']({'content':this['content'],'actionName':this['actionName'],'args':this['args']}):this['connector']['executeCustomAction']({'content':this['content'],'message':this['userMessage'],'model':this['model'],'outputFormat':'html'});}['getDocumentContext'](){return{'type':'text','content':this['content'],'version':this['version'],'label':'Current\x20document','uiId':'current-document'};}['createReply'](_0x221c5a){const _0x533d1b=new AIActionsReply({'locale':this['locale'],'documentContextContent':this['content'],..._0x221c5a});return this['replies']['push'](_0x533d1b),_0x533d1b['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x533d1b),_0x533d1b;}}class AIActionsBalloonToolbarView extends ToolbarView{constructor(_0x52f4da,_0x33f152=!0x0,_0x226447=!0x0){super(_0x52f4da),this['set']('isEnabled',!0x1),_0x33f152&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x52f4da,'AI_BALLOON_APPLY_BUTTON'),AI_BUTTON_CLASSES['PRIMARY']),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x226447&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x52f4da,'AI_BALLOON_SUGGEST_BUTTON'),_0x33f152?AI_BUTTON_CLASSES['SECONDARY']:AI_BUTTON_CLASSES['PRIMARY']),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x33f152,'showSuggestButton':_0x226447}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['setButtonsVisibility']({showApplyButton:_0x5ebe4a,showSuggestButton:_0x4a01f7}){this['applyButton']&&(this['applyButton']['isVisible']=_0x5ebe4a),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x4a01f7);}['_createButton'](_0x5f1a65,_0x2a401e){const _0x2cfd88=new ButtonView(this['locale']);return _0x2cfd88['set']({'label':_0x5f1a65,'class':_0x2a401e,'isVisible':!0x0,'withText':!0x0}),_0x2cfd88;}}class AIActionsBalloonDisclaimerView extends View{constructor(_0xa5546f){super(_0xa5546f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-balloon__disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-balloon__disclaimer-content']},'children':[{'text':getTranslation$i(_0xa5546f,'AI_DISCLAIMER_TEXT')}]}]});}}class AISuggestionLoaderView extends View{constructor(_0x345700){super(_0x345700),this['set']('isVisible',!0x0);const _0x1eba3a=new AISpinnerView('small');_0x1eba3a['isVisible']=!0x0;const _0x34665d=new View(this['locale']);_0x34665d['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__loader-text']},'children':[getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__loader',this['bindTemplate']['if']('isVisible','ck-hidden',_0x440cf4=>!_0x440cf4)]},'children':[_0x1eba3a,_0x34665d]});}}class AIActionsBalloonView extends AIBalloonView{['focusCycler'];['_config'];['_contentWrapper'];['_streamableContentView'];['_toolbarView'];['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];['_keystrokes'];['_dialogContent'];['_focusables'];['_scrollManager'];['_navigationPreviousButton'];['_navigationNextButton'];['_navigationTryAgainButton'];['_navigationCounter'];constructor(_0x31f91a,_0xddad92){super(_0x31f91a),this['set']('isBusy',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0xddad92,this['_focusTracker']=new FocusTracker(),this['_keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_dialogContent']=new ViewCollection(),this['_addContentWrapper'](_0xddad92),this['_addDisclaimerView'](),this['_addToolbar'](_0xddad92),this['_focusables']['clear'](),this['_focusables']['addMany']([this['_toolbarView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-main']},'children':this['_dialogContent']}),this['on']('change:isTrackChangesOn',()=>{this['_toggleToolbarButtonsVisibility'](_0xddad92);});}['render'](){super['render']();for(const _0x283ee7 of this['_focusables'])this['_focusTracker']['add'](_0x283ee7['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}['destroy'](){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy']();}['focus'](_0x4d72c1){-0x1===_0x4d72c1?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setIsLoading'](_0x19c630){this['_isLoading']=_0x19c630;}['setErrorState'](){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}['clearErrorState'](){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x56066b){super['showError'](_0x56066b),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x3029ac){super['showBlockingError'](_0x3029ac),this['setErrorState']();}['addMiniToolbarItem'](_0x40b749){this['_miniToolbarView']['items']['has'](_0x40b749)||this['_miniToolbarView']['items']['add'](_0x40b749);}['removeMiniToolbarItem'](_0x4c0a25){this['_miniToolbarView']['items']['has'](_0x4c0a25)&&this['_miniToolbarView']['items']['remove'](_0x4c0a25);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}['_toggleToolbarButtonsVisibility']({showApplyButton:_0x4669d9,showSuggestButton:_0x2184a4}){_0x4669d9=_0x4669d9&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x2184a4=_0x2184a4&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x4669d9,'showSuggestButton':_0x2184a4});}async['updateContent'](_0x113ac0){await this['_streamableContentView']['update'](_0x113ac0);}['clearContent'](){this['_streamableContentView']['clear']();}['_addContentWrapper'](_0x30b1df){this['_contentWrapper']=new View(this['locale']),this['_contentWrapper']['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content-wrapper']},'children':[this['_createLoaderView'](),this['_createStreamableContentView']()]},this['_createMiniToolbar'](_0x30b1df['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new AIActionsBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x712b89,showSuggestButton:_0x264f94}){this['_toolbarView']=new AIActionsBalloonToolbarView(this['locale'],_0x712b89,_0x264f94),this['_toolbarView']['applyButton']?.['on']('execute',()=>{this['fire']('applySuggestion');}),this['_toolbarView']['suggestButton']?.['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_toolbarView']['bind']('isEnabled')['to'](this,'isBusy',this,'_isLoading',this,'_hasError',(_0x432e89,_0x49a64b,_0x581156)=>!(_0x432e89||_0x49a64b||_0x581156)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x712b89,'showSuggestButton':_0x264f94}),this['_dialogContent']['add'](this['_toolbarView']);}['_createMiniToolbar'](_0x1439ff){return this['_miniToolbarView']=new AIMiniToolbarView(this['locale'],_0x1439ff),this['_miniToolbarView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['_miniToolbarView']['isShowChangesOn']=!this['_miniToolbarView']['isShowChangesOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':this['_miniToolbarView']['isShowChangesOn']});}),this['_miniToolbarView']['bind']('isEnabled')['to'](this,'isBusy',this,'_isLoading',(_0x10e94e,_0x265b05)=>!(_0x10e94e||_0x265b05)),this['_miniToolbarView'];}['_createLoaderView'](){return this['_loaderView']=new AISuggestionLoaderView(this['locale']),this['_loaderView']['bind']('isVisible')['to'](this,'_isLoading'),this['_loaderView'];}['_createStreamableContentView'](){return this['_streamableContentView']=new AISuggestionStreamableContentView(this['locale']),this['_streamableContentView'];}['_setupMiniToolbarButtons'](){const _0x2b22bb=new ButtonView(this['locale']),_0x243b42=new ButtonView(this['locale']),_0x42a62b=new AIActionsBalloonNavigationCounterView(this['locale']),_0x2cfda8=new ButtonView(this['locale']);_0x2b22bb['set']({'icon':IconRefresh,'label':getTranslation$i(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0x243b42['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0x2cfda8['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button\x20'+AI_BUTTON_CLASSES['TERTIARY']}),_0x2b22bb['bind']('isEnabled')['to'](this,'isBusy',_0x3f894a=>!_0x3f894a),_0x2b22bb['on']('execute',()=>{this['fire']('tryAgain');}),_0x243b42['bind']('isEnabled')['to'](this,'isBusy',_0x592301=>!_0x592301),_0x243b42['on']('execute',()=>{this['fire']('showPrevious');}),_0x2cfda8['bind']('isEnabled')['to'](this,'isBusy',_0x52be48=>!_0x52be48),_0x2cfda8['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x243b42,this['_navigationCounter']=_0x42a62b,this['_navigationNextButton']=_0x2cfda8,this['_navigationTryAgainButton']=_0x2b22bb;}['updateMiniToolbarButtons'](_0x4d338b,_0x269038){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0x5d63f4=_0x4d338b>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0x5d63f4){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0x2fe65a=_0x4d338b-_0x269038;this['_navigationCounter']['setInteractionCount'](_0x2fe65a+'/'+_0x4d338b),this['_navigationPreviousButton']['isEnabled']=_0x269038<_0x4d338b-0x1,this['_navigationNextButton']['isEnabled']=_0x269038>0x0;}else this['removeMiniToolbarItem'](this['_navigationPreviousButton']),this['removeMiniToolbarItem'](this['_navigationCounter']),this['removeMiniToolbarItem'](this['_navigationNextButton']);}['disableMiniToolbarButtons'](){this['_navigationTryAgainButton']['isEnabled']=!0x1,this['_navigationPreviousButton']['isEnabled']=!0x1,this['_navigationNextButton']['isEnabled']=!0x1;}['startAutoScroll'](){this['_initializeScrollManager'](),this['_scrollManager']&&this['_scrollManager']['start']();}['stopAutoScroll'](){this['_scrollManager']&&this['_scrollManager']['stop']();}['toggleIsLoading'](_0x2552c7){this['_isLoading']=_0x2552c7;}['resetShowChangesButton'](){this['_miniToolbarView']['isShowChangesOn']=!0x1;}['_initializeScrollManager'](){const _0x139967=this['_getScrollableElement']();_0x139967&&!this['_scrollManager']&&(this['_scrollManager']=new ScrollManager(_0x139967));}['_getScrollableElement'](){return this['_streamableContentView']['element'];}}class AIActionsBalloonNavigationCounterView extends View{constructor(_0x1f43d1){super(_0x1f43d1);const _0x20bf28=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x20bf28['to']('interactionCount')}]});}['setInteractionCount'](_0x4193d1){this['set']('interactionCount',_0x4193d1);}}class AIActions extends Plugin{static get['requires'](){return[AIConnector,Dialog,AIEditing,AIBalloon,DocumentCompare];}static get['pluginName'](){return'AIActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_aiConnector'];['_interactions']=[];['_currentInteractionIndex']=0x0;['_interactionParams'];['_balloonShowDiff']=!0x1;['_promiseQueue'];['_bodyCollection'];get['_interaction'](){return this['_interactions'][this['_interactions']['length']-0x1];}['_actionsBalloonView'];constructor(_0x5d1076){super(_0x5d1076),this['_bodyCollection']=new BodyCollection(this['editor']['locale']),this['_bodyCollection']['attachToDom'](),this['_aiConnector']=this['editor']['plugins']['get']('AIConnector'),this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue();}['stopInteraction'](){this['_stopInteraction']();}async['executeAction'](_0x57939d,_0x84fc6f,_0x3f8517){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x184cdd,anchorData:_0x2d443b,root:_0x37dee9}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x57939d,_0x184cdd,_0x2d443b,_0x37dee9,_0x84fc6f,_0x3f8517);}}const {modelFragment:_0x182939,anchorData:_0x3c3c08,root:_0x5e9225}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x57939d,_0x182939,_0x3c3c08,_0x5e9225,_0x84fc6f,_0x3f8517);}async['destroy'](){return this['_stopInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_createActionsBalloonView'](){const _0xca4a44=this['editor']['plugins']['has']('TrackChanges');let _0x4d4b37=this['editor']['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0xca4a44||(_0x4d4b37=_0x4d4b37['filter'](_0x152873=>'insertSuggestion'!=_0x152873));const _0x5dcf8a=this['editor']['commands']['get']('trackChanges'),_0x5ab3bf=new AIActionsBalloonView(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0xca4a44,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x4d4b37});return _0x5ab3bf['bind']('isBusy')['to'](this),_0x5dcf8a&&_0x5ab3bf['bind']('isTrackChangesOn')['to'](_0x5dcf8a,'value'),_0x5ab3bf['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0x5ab3bf['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0x5ab3bf['on']('showNext',()=>{this['_navigateToNext']();}),_0x5ab3bf;}['_getExecuteDataRegular'](){const _0x4999e3=this['editor']['model']['document']['selection'],_0x944a8b=_0x4999e3['getFirstRange']()['start']['root'];if(_0x4999e3['isCollapsed']){const _0x237adf=first(_0x4999e3['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x4999e3);this['editor']['model']['change'](_0x2bfc81=>{_0x2bfc81['setSelection'](_0x237adf,'in');});}const _0x47a799=_0x4999e3['getFirstRange'](),_0x306597=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x4999e3),_0x47a799['start'],_0x47a799['end']);this['_copyMarkersToFragment'](_0x306597,_0x4999e3,{'isTableSelection':!0x1});const _0x269489=_0x4999e3['getFirstRange']()['start'],_0x3ad323=new Map();let _0x49cb2c=_0x306597;for(let _0x36a36f=0x0;_0x36a36f<_0x269489['path']['length'];_0x36a36f++)_0x3ad323['set'](_0x49cb2c,_0x269489['path'][_0x36a36f]),_0x49cb2c=_0x49cb2c['getChild'](0x0);return{'modelFragment':_0x306597,'anchorData':_0x3ad323,'root':_0x944a8b};}['_getExecuteDataInTable'](){const _0x440964=this['editor']['model']['document']['selection'],_0x30a608=this['editor']['plugins']['get']('TableSelection'),_0x5a0c2d=_0x440964['getFirstRange']()['start']['root'],_0x1613b5=_0x30a608['getSelectionAsFragment'](),_0x1b6b85=_0x440964['getFirstRange']()['start']['parent']['parent'],_0x4635cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x1b6b85),this['editor']['model']['createPositionAfter'](_0x1b6b85)),_0x251f84=this['_wrapWithCommonAncestors'](_0x1613b5,_0x4635cb['start'],_0x4635cb['end']);this['_copyMarkersToFragment'](_0x251f84,_0x440964,{'isTableSelection':!0x0});const _0x3f5275=_0x440964['getFirstRange']()['start'],_0x4a250f=new Map();let _0x182897=_0x251f84;for(let _0x1d261c=0x0;_0x1d261c<_0x3f5275['path']['length'];_0x1d261c++)if(_0x4a250f['set'](_0x182897,_0x3f5275['path'][_0x1d261c]),_0x1d261c<_0x3f5275['path']['length']-0x1)_0x182897=_0x182897['getChild'](0x0);else{let _0x5e40b8=_0x182897['nextSibling'];for(;_0x5e40b8;)_0x4a250f['set'](_0x5e40b8,_0x3f5275['path'][_0x1d261c]),_0x5e40b8=_0x5e40b8['nextSibling'];}return{'modelFragment':_0x251f84,'anchorData':_0x4a250f,'root':_0x5a0c2d};}async['_executeAction'](_0xf3153e,_0x54fac3,_0x427387,_0x1cd52e,_0x594d47,_0x3adde7){const _0x3cc61f=this['editor']['plugins']['get'](AIEditing),_0x1e0799=this['editor']['plugins']['get'](AIBalloon),_0x269fc2=this['editor']['model']['document']['selection'],_0xe6a447=await _0x3cc61f['modelToDataWithIds'](_0x54fac3),_0x4ca327=this['editor']['model']['document']['version'],_0x678cc5=[..._0x269fc2['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_balloonShowDiff']=!0x1,this['_actionsBalloonView']['resetShowChangesButton'](),this['_actionsBalloonView']['clearContent'](),_0x1e0799['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0x594d47,'icon':_0x3adde7||IconAIQuickActions,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x678cc5,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x1e0799),this['_interactionParams']={'action':_0xf3153e,'content':_0xe6a447,'version':_0x4ca327,'aiBalloon':_0x1e0799,'modelFragment':_0x54fac3,'anchorData':_0x427387,'root':_0x1cd52e},this['_setupApplyListeners'](),this['listenTo'](_0x1e0799,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x1e0799,'dialogClosed',(_0x36108d,{id:_0x12bdd1})=>{if('aiActionsBalloon'===_0x12bdd1){for(const _0x5aa991 of this['_interactions']){if(0x0===_0x5aa991['replies']['length']||_0x5aa991['stoppedExplicitly'])continue;const _0x28298c=_0x5aa991['replies'][_0x5aa991['replies']['length']-0x1],_0x258026=_0x28298c['changeGroups'][0x0];_0x258026&&'pending'===_0x258026['state']&&_0x28298c['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x1e0799);}}),this['_createInteraction'](_0xe6a447,_0x4ca327,_0x1e0799,_0xf3153e);}['_setupApplyListeners'](){if(!this['_interactionParams'])return;const {modelFragment:_0x4ca770,anchorData:_0x18e293,root:_0x2ac1c5}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0x4ca770,_0x18e293,_0x2ac1c5,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0x4ca770,_0x18e293,_0x2ac1c5,!0x0);});}['_wrapWithCommonAncestors'](_0x23543a,_0x2da927,_0x32ae7b){const _0x9c7b54=this['editor']['model']['createRange'](_0x2da927,_0x32ae7b)['getCommonAncestor'](),_0xe838a=_0x9c7b54['is']('documentFragment')?[]:_0x9c7b54['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0xe838a['length']){const _0x11662e=_0xe838a['map'](_0x86610f=>_0x86610f['_clone'](!0x1));for(let _0x2fb641=0x1;_0x2fb641<_0x11662e['length'];_0x2fb641++)_0x11662e[_0x2fb641-0x1]['_appendChild'](_0x11662e[_0x2fb641]);return _0x11662e[_0x11662e['length']-0x1]['_appendChild'](_0x23543a),new ModelDocumentFragment(_0x11662e[0x0]);}return _0x23543a;}['_copyMarkersToFragment'](_0x590967,_0x566a35,_0x563102={'isTableSelection':!0x1}){const _0x2cc6c1=this['editor']['model'],_0x1a3b28=Array['from'](_0x566a35['getRanges']()),_0x4035ee=_0x566a35['getFirstRange']()['start'];for(const _0x480990 of _0x2cc6c1['markers']){if(_0x480990['name']['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME)||!_0x480990['affectsData'])continue;const _0x4f134b=_0x480990['getRange']();if(!_0x1a3b28['some'](_0x4c76fe=>_0x4c76fe['containsRange'](_0x4f134b,!0x0)))continue;const _0x53d5b7=this['_regularCalculateMarkerPath'](_0x4f134b['start'],_0x4035ee,_0x563102['isTableSelection']),_0x210b95=this['_regularCalculateMarkerPath'](_0x4f134b['end'],_0x4035ee,_0x563102['isTableSelection']),_0x5da5d0=_0x2cc6c1['createPositionFromPath'](_0x590967,_0x53d5b7),_0x18f73a=_0x2cc6c1['createPositionFromPath'](_0x590967,_0x210b95);if(!_0x5da5d0['isEqual'](_0x18f73a)){const _0x327c11=_0x2cc6c1['createRange'](_0x5da5d0,_0x18f73a);_0x590967['markers']['set'](_0x480990['name'],_0x327c11);}}}['_regularCalculateMarkerPath'](_0x2fb0f0,_0x353920,_0x42c5ee=!0x1){const _0xc86988=[..._0x2fb0f0['path']['slice']()];for(let _0x45c870=0x0;_0x45c870<Math['max'](_0x353920['path']['length'],_0x2fb0f0['path']['length']);_0x45c870++){const _0x2cb3db=_0x353920['path'][_0x45c870]||0x0,_0x30aff5=(_0x2fb0f0['path'][_0x45c870]||0x0)-_0x2cb3db;if(_0xc86988[_0x45c870]=_0x30aff5,0x0!==_0x30aff5&&!_0x42c5ee)break;}return _0xc86988;}async['_createInteraction'](_0x23d110,_0x1f8fe5,_0x6e0bf0,_0x3266d3){const _0x5d38e5=this['editor'];this['_interactionParams']||(this['_interactionParams']={'action':_0x3266d3,'content':_0x23d110,'version':_0x1f8fe5,'aiBalloon':_0x6e0bf0,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map(),'root':this['editor']['model']['document']['selection']['getFirstRange']()['start']['root']});const _0xf9eb3=new AIActionsInteraction({'connector':this['_aiConnector'],'locale':_0x5d38e5['locale'],'content':_0x23d110,'version':_0x1f8fe5,..._0x3266d3});this['_interactions']['push'](_0xf9eb3);const _0x56cdae=(_0x581040,_0x3009b2=!0x1,_0xa4f605='streaming')=>this['_promiseQueue']['enqueue'](async _0x39f2cb=>{try{const _0x59df1b=getSuggestionPartsFromReply({'editor':_0x5d38e5,'changeGroups':_0x581040['changeGroups'],'documentContextContent':_0x581040['documentContextContent'],'showDiff':_0x3009b2,'trimUnchanged':!0x1});_0x59df1b['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x59df1b[0x0],'renderingStrategy':_0xa4f605,'abortSignal':_0x39f2cb});}catch(_0x1f14a0){if(this['_isAbortError'](_0x1f14a0))return;throw _0x1f14a0;}});_0xf9eb3['on']('replyCreated',(_0x1b0c7f,_0x275d4e)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x56cdae(_0x275d4e)['catch'](_0x23410e=>{this['_isAbortError'](_0x23410e)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0x23410e),this['_setErrorState'](_0xf9eb3));});}),_0xf9eb3['on']('replyContentUpdated',(_0x268167,_0x5d0aa3)=>{_0x56cdae(_0x5d0aa3)['catch'](_0x2940b6=>{this['_isAbortError'](_0x2940b6)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x2940b6),this['_setErrorState'](_0xf9eb3));});}),_0xf9eb3['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x15ec51){this['_isAbortError'](_0x15ec51)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x15ec51),this['_setErrorState'](_0xf9eb3));}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x4a2183,{showDiff:_0x107a5e})=>{try{this['_balloonShowDiff']=_0x107a5e;const _0x5de7bb=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x5de7bb&&await _0x56cdae(_0x5de7bb,_0x107a5e,'static');}catch(_0x2e0a23){this['_isAbortError'](_0x2e0a23)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0x2e0a23),this['_setErrorState'](_0xf9eb3));}}),_0xf9eb3['on']('replyChangeGroupStateUpdated',()=>{const _0x1e1587={'positiveCount':_0xf9eb3['replies']['reduce']((_0x3b06ed,_0x189444)=>_0x3b06ed+_0x189444['changeGroups']['filter'](_0x47c65d=>'accepted'===_0x47c65d['state'])['length'],0x0),'totalCount':_0xf9eb3['replies']['reduce']((_0x199af7,_0x1fb33c)=>_0x199af7+_0x1fb33c['changeGroups']['length'],0x0)},_0x179817=_0xf9eb3['actionCallId'],_0x1926df=_0xf9eb3['actionName'];_0x1926df?this['_aiConnector']['upsertAIActionRating'](_0x1926df,_0x179817,_0x1e1587):this['_aiConnector']['upsertCustomAIActionRating'](_0x179817,_0x1e1587);}),this['_setLoadingState']();try{const _0x4a272a=await _0xf9eb3['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0x4a272a;}catch(_0x42f46b){if(this['_isAbortError'](_0x42f46b))return;this['_actionsBalloonView']['hideLoader'](),this['_setErrorState'](_0xf9eb3);}}['_applyChanges'](_0x46fdb1,_0x264465,_0x4c50eb,_0x25eac8){const _0xda228=this['editor'];if(_0x25eac8&&!_0xda228['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x2fd622=this['editor']['plugins']['get'](DocumentCompare),_0x421a2a=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x421a2a||!_0x421a2a['replies']['length'])return;const _0x1f122a=_0x421a2a['replies'][_0x421a2a['replies']['length']-0x1],_0x15e73a=_0x1f122a['changeGroups'];_0x1f122a['setChangeGroupState'](0x0,'accepted');let _0x33f05d=getOperationsFromReply({'editor':_0xda228,'reply':_0x1f122a,'interaction':_0x421a2a,'groups':_0x15e73a,'transform':!0x1,'documentCompare':_0x2fd622,'documentCompareOptions':{'anchor':_0xda228['model']['createPositionAt'](_0x46fdb1,0x0),'markDeletions':_0x25eac8}});_0x33f05d=this['_filterOperationsOutsideRange'](_0x33f05d,_0x264465);for(const _0x4e8902 of _0x33f05d)this['_anchorOperation'](_0x264465,_0x4e8902,_0x4c50eb);const _0x97592c=_0x421a2a['getDocumentContext']()['version'],_0x512356=_0xda228['model']['document']['history']['getOperations'](_0x97592c),_0x1c3827={'document':_0xda228['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x6757ff=transformOperationSets(_0x33f05d,_0x512356,_0x1c3827)['operationsA'];_0xda228['model']['change'](_0x207cd7=>{if(_0x207cd7['setSelection'](_0xda228['model']['document']['selection']['focus']),_0x25eac8)_0xda228['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x6757ff);else{for(const _0x289041 of _0x6757ff)_0x289041['baseVersion']=_0xda228['model']['document']['version'],fixMarkerOperationOldRange(_0xda228,_0x289041),_0x207cd7['batch']['addOperation'](_0x289041),_0xda228['model']['applyOperation'](_0x289041);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x53bc84,_0x3cbb3f){return _0x53bc84['filter'](_0x29d81e=>{if('rename'==_0x29d81e['type']){const _0x4f083e=_0x29d81e['position']['nodeAfter'];return!_0x3cbb3f['has'](_0x4f083e);}if(_0x29d81e['type']['indexOf']('Attribute')>-0x1){const _0x1f2464=_0x29d81e['range']['start']['nodeAfter'];return!_0x3cbb3f['has'](_0x1f2464);}return!0x0;});}['_anchorOperation'](_0x3072de,_0x359023,_0x2599e7){const _0x5c0fbd=_0x359023['clone']();for(const _0x1c680e in _0x359023){const _0x39bb60=_0x359023[_0x1c680e];_0x39bb60 instanceof ModelRange?_0x359023[_0x1c680e]=new ModelRange(_0x5be047(_0x39bb60['start']),_0x5be047(_0x39bb60['end'])):_0x39bb60 instanceof ModelPosition&&(_0x359023[_0x1c680e]=_0x5be047(_0x39bb60));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x5c0fbd['type'])){if(_0x5c0fbd['isDocumentOperation']=!0x1,_0x5c0fbd['baseVersion']=null,'remove'==_0x5c0fbd['type']){const _0x44ceee=_0x5c0fbd['sourcePosition'],_0x47cdd9=_0x5c0fbd['howMany'];new _DetachOperation(_0x44ceee,_0x47cdd9)['_execute']();}else _0x5c0fbd['_execute']();}function _0x5be047(_0x523270){if('$graveyard'==_0x523270['root']['rootName'])return _0x523270;const _0x5ea79a=[];let _0x1d08fb=_0x523270['root'];for(let _0x5b9f4f=0x0;_0x5b9f4f<_0x523270['path']['length'];_0x5b9f4f++){const _0x32d6bb=_0x3072de['get'](_0x1d08fb)||0x0;_0x5ea79a[_0x5b9f4f]=_0x523270['path'][_0x5b9f4f]+_0x32d6bb,_0x1d08fb=_0x1d08fb['getChildAtOffset'](_0x523270['path'][_0x5b9f4f]);}return new ModelPosition(_0x2599e7,_0x5ea79a,_0x523270['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x150527,content:_0x1a3fc2,version:_0x2834bb,aiBalloon:_0x47e34f}=this['_interactionParams'];this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),this['_actionsBalloonView']['showLoader'](),this['_actionsBalloonView']['resetShowChangesButton'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),this['stopListening'](this['_actionsBalloonView']),this['_setupApplyListeners'](),this['_createInteraction'](_0x1a3fc2,_0x2834bb,_0x47e34f,_0x150527)['catch'](_0x49b8cb=>{this['_isAbortError'](_0x49b8cb)||console['error']('Error\x20refreshing\x20interaction:',_0x49b8cb);});}['_isAbortError'](_0x3bfd90){return!!_0x3bfd90['message']&&_0x3bfd90['message']['startsWith']('ai-request-aborted');}['_clearInteractionHistory'](){this['_interactions']=[],this['_interactionParams']=void 0x0,this['_currentInteractionIndex']=0x0,this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_stopInteraction'](){this['_interaction']&&this['_interaction']['stop'](),this['_promiseQueue']['abort'](),this['isBusy']=!0x1,this['_interactionParams']&&this['_actionsBalloonView']['stopAutoScroll']();}['_navigateToPrevious'](){const _0x52eeac=this['_interactions']['length'];this['_currentInteractionIndex']<_0x52eeac-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x4935de){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x4935de;const _0x8cc258=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x8cc258)return;if(_0x8cc258['hasError'])return this['_setErrorState'](_0x8cc258),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x8cc258['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x4c6ee9=_0x8cc258['replies'][_0x8cc258['replies']['length']-0x1];if(_0x4c6ee9){const _0x2ba8ad=this['editor'];try{const _0x53ebaa=getSuggestionPartsFromReply({'editor':_0x2ba8ad,'changeGroups':_0x4c6ee9['changeGroups'],'documentContextContent':_0x4c6ee9['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x244448=>setTimeout(_0x244448,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x53ebaa[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x449e2f){this['_isAbortError'](_0x449e2f)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x449e2f);}}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_setLoadingState'](){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async['_setErrorState'](_0x22868b){const _0x35f883=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x35f883),_0x22868b['hasError']=!0x0,await this['_promiseQueue']['queueEmptyPromise'],this['_actionsBalloonView']['setErrorState'](),this['_actionsBalloonView']['toggleIsLoading'](!0x0);}['_clearErrorState'](){this['_actionsBalloonView']['hideError'](),this['_actionsBalloonView']['toggleIsLoading'](!0x1);}async['_clearLoadingState'](){await this['_promiseQueue']['queueEmptyPromise'],this['isBusy']=!0x1,this['_actionsBalloonView']['setIsLoading'](!0x1);}}class AIQuickActions extends Plugin{static get['requires'](){return[AIQuickActionsUI,AIQuickActionsEditing,AIActions];}static get['pluginName'](){return'AIQuickActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb93c41){super(_0xb93c41),_0xb93c41['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}class AIReviewCoreReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];['outdatedButtonView'];constructor(_0x2785c7,_0x27d0a4){super(_0x2785c7),this['id']=_0x27d0a4,this['set']('status','pending'),this['set']('changeId',_0x27d0a4),this['resultResponseView']=this['_createResultResponseView'](),this['acceptButtonView']=this['_createAcceptButtonView'](),this['dismissButtonView']=this['_createDismissButtonView'](),this['infoButtonView']=this['_createInfoButtonView'](),this['outdatedButtonView']=this['_createOutdatedButtonView'](),this['set']('isInfoToggleOn',!0x1),this['set']('isActive',!0x1),this['set']('showDiff',!0x0),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-result',this['bindTemplate']['if']('isActive','ck-ai_review__check-run-result_active')]},'on':{'click':this['bindTemplate']['to']('click'),'mouseover':this['bindTemplate']['to']('mouseover'),'mouseout':this['bindTemplate']['to']('mouseout')},'children':[this['resultResponseView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-result-footer']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-run-result-action-buttons']},'children':[this['acceptButtonView'],this['dismissButtonView'],this['outdatedButtonView']]},this['infoButtonView']]}]}),this['on']('click',(_0x5a8c77,_0x4e3005)=>{_0x4e3005&&_0x4e3005['target']&&'A'===_0x4e3005['target']['tagName']&&_0x4e3005['preventDefault'](),this['fire']('activateChange',{'id':_0x27d0a4,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0x27d0a4,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0x27d0a4,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x2ca907=new View(this['locale']);return _0x2ca907['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai_review__check-run-result-response',this['bindTemplate']['if']('showDiff','ck-hidden',_0x3b28bb=>!_0x3b28bb)]}}),_0x2ca907;}['_createAcceptButtonView'](){const _0x4d0557=new ButtonView(this['locale']);return _0x4d0557['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x4d0557['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x1356a3=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x1356a3['stopPropagation']();})},'attributes':{'class':[this['bindTemplate']['if']('status','ck-hidden',_0x2628d6=>'pending'!==_0x2628d6&&'accepted'!==_0x2628d6),this['bindTemplate']['if']('status',AI_BUTTON_CLASSES['SECONDARY'],_0x498d43=>'pending'===_0x498d43),this['bindTemplate']['if']('status',AI_BUTTON_CLASSES['TERTIARY'],_0x1e045a=>'pending'!==_0x1e045a),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0xeb92b7=>'accepted'===_0xeb92b7)]}}),this['on']('change:status',(_0x1ba526,_0x3077b1,_0x218f53)=>{_0x4d0557['isEnabled']='pending'===_0x218f53,'accepted'===_0x218f53&&(_0x4d0557['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x4d0557['icon']=IconCheck);}),_0x4d0557;}['_createDismissButtonView'](){const _0x556929=new ButtonView(this['locale']);return _0x556929['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x556929['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x261cf1=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x261cf1['stopPropagation']();})},'attributes':{'class':[AI_BUTTON_CLASSES['TERTIARY'],this['bindTemplate']['if']('status','ck-hidden',_0x1f0aee=>'pending'!==_0x1f0aee&&'rejected'!==_0x1f0aee),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0x5059e9=>'pending'===_0x5059e9),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0xd586f6=>'rejected'===_0xd586f6)]}}),this['on']('change:status',(_0x2ddb47,_0x20caf6,_0x92e38)=>{_0x556929['isEnabled']='pending'===_0x92e38,'rejected'===_0x92e38&&(_0x556929['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x556929['icon']=IconCancel);}),_0x556929;}['_createInfoButtonView'](){const _0x251e04=new ButtonView(this['locale']);return _0x251e04['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':IconInfo,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':AI_BUTTON_CLASSES['TERTIARY']+'\x20ck-ai_review__check-run-result-info-button\x20ck-hidden'}),_0x251e04['bind']('isOn')['to'](this,'isInfoToggleOn',_0x98778f=>_0x98778f),_0x251e04['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x251e04;}['_createOutdatedButtonView'](){const _0x25182b=new ButtonView(this['locale']);return _0x25182b['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':IconOutdated,'withText':!0x0,'isEnabled':!0x1}),_0x25182b['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['TERTIARY'],'ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x16882a=>'outdated'!==_0x16882a)],'disabled':'disabled'}}),_0x25182b;}}class AIReviewCoreBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];['_pinnedRectIndex']=void 0x0;['_pinnedTargetElement']=void 0x0;['_pinnedTargetChangeId']=void 0x0;constructor(_0x1540d2,_0x53fa30){super(_0x1540d2),this['set']({'isVisible':!0x1,'position':'arrow_se','class':null,'top':0x0,'left':0x0}),this['extendTemplate']({'tag':'div','attributes':{'class':['ck-reset'],'tabindex':'-1'}}),this['set']('isDiffActive',!0x1),this['content']['add'](this['_createContentView']()),_0x53fa30['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x5391e2){this['resultItemView']['changeId']=_0x5391e2['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x5391e2['contentDiffed'];}['showBalloon'](_0x576a50,_0x324f35,_0x45102e,_0x3eac62,_0x2a305d,_0x300a43){const _0x1f8307=_0x324f35();if(!_0x1f8307)return;this['updateContent'](_0x576a50),this['show']();const _0xe08152=Array['from'](_0x1f8307['getClientRects']())['reverse'](),_0x203b5c=this['_getPointedRectIndexFromEvent'](_0x45102e,_0xe08152),_0x412090=_0xe08152[_0x203b5c??0x0];'click'===_0x3eac62?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x324f35(),_0x203b5c,_0x576a50['id'],_0x2a305d,_0x300a43)||_0x412090})):'hover'===_0x3eac62&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x324f35(),_0x203b5c,_0x576a50['id'])||_0x412090}));}['hideBalloon'](){this['hide'](),this['unpin'](),this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetElement']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}['hideDiffInBalloon'](){this['resultItemView']['showDiff']=!0x1;}['showDiffInBalloon'](){this['resultItemView']['showDiff']=!0x0;}['deactivateChange'](){this['fire']('deactivateChange',{'origin':'balloon'});}['_setupClickOutsideHandler'](){clickOutsideHandler({'emitter':this,'activator':()=>this['isVisible'],'contextElements':()=>{const _0x3b82f0=[this['element']];return this['_pinnedTargetElement']&&_0x3b82f0['push'](this['_pinnedTargetElement']),_0x3b82f0;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}['_createContentView'](){const _0x3dc253=new View();return this['resultItemView']=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x3dc253['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-ai_review-balloon-panel-suggestion',this['bindTemplate']['if']('isDiffActive','ck-ai_review-balloon-panel-suggestion_diff-active')]},'children':[{'tag':'p','attributes':{'class':['ck-ai_review__suggestion-text']},'children':[this['resultItemView']]}]}),_0x3dc253;}['_getBestRectPositionOnClick'](_0x39d6ea,_0x6a52b8,_0x5a47fc,_0x162f4d,_0x540d9b){if(!_0x39d6ea)return null;const _0x10b487=this['position']['replace']('arrow_',''),_0x4f25b8=Array['from'](_0x39d6ea['getClientRects']());let _0x5bf000,_0x7858b6=_0x4f25b8['reverse']();return void 0x0!==_0x6a52b8&&this['_isPinnedRectVisible'](_0x7858b6[_0x6a52b8],_0x162f4d,_0x540d9b)?(_0x5bf000=_0x7858b6[_0x6a52b8],this['_pinnedRectIndex']=_0x6a52b8):this['_isPinnedRectVisible'](_0x7858b6[0x0],_0x162f4d,_0x540d9b)&&void 0x0===_0x6a52b8?_0x5bf000=_0x7858b6[0x0]:(_0x7858b6='s'==_0x10b487[0x0]?[..._0x4f25b8]['reverse']():_0x4f25b8,_0x7858b6['forEach'](_0x139fd6=>{this['_isPinnedRectVisible'](_0x139fd6,_0x162f4d,_0x540d9b)&&(_0x5bf000=_0x139fd6);})),this['_pinnedTargetChangeId']=_0x5a47fc,this['_pinnedTargetElement']=_0x39d6ea,_0x5bf000||_0x39d6ea['getBoundingClientRect']();}['_getBestRectPositionOnHover'](_0x573a30,_0x557db5,_0x1b5070){if(!_0x573a30)return null;const _0x196f63=Array['from'](_0x573a30['getClientRects']())['reverse']();if(void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x557db5&&this['_pinnedTargetChangeId']!==_0x1b5070)return this['_pinnedRectIndex']=_0x557db5,this['_pinnedTargetElement']=_0x573a30,this['_pinnedTargetChangeId']=_0x1b5070,_0x196f63[_0x557db5];if(void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0x1b5070){if(_0x573a30!==this['_pinnedTargetElement'])return Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']];return _0x196f63[this['_pinnedRectIndex']];}return void 0x0!==_0x557db5&&this['_pinnedTargetChangeId']!==_0x1b5070?(this['_pinnedRectIndex']=_0x557db5,this['_pinnedTargetElement']=_0x573a30,this['_pinnedTargetChangeId']=_0x1b5070,_0x196f63[_0x557db5]):_0x573a30['getBoundingClientRect']();}['_getPointedRectIndexFromEvent'](_0x17615d,_0x33886f){if(_0x17615d)for(let _0x34530=0x0;_0x34530<_0x33886f['length'];_0x34530++){const _0x53c695=_0x33886f[_0x34530];if(_0x17615d['clientX']>=_0x53c695['left']-0x3&&_0x17615d['clientX']<=_0x53c695['right']+0x3&&_0x17615d['clientY']>=_0x53c695['top']-0x3&&_0x17615d['clientY']<=_0x53c695['bottom']+0x3)return _0x34530;}}['_isPinnedRectVisible'](_0x3a8332,_0xd69c38,_0x484d10){const _0x3e0f69=new Rect(_0x3a8332),_0x1877ac=_0xd69c38||document['documentElement'],_0x5efa2a=_0x3e0f69['getIntersection'](getConstrainedViewportRect(_0x484d10)),_0x2af1ee=new Rect(_0x1877ac)['getIntersection'](_0x3e0f69);return!!(_0x5efa2a&&_0x2af1ee&&_0x3e0f69['width']>0x0);}}const AI_REVIEW_MODE_UI_EVENT_NAMES=['getReviewCheckList','runReviewCheck','abortReviewStream','toggleDiff','acceptAllChanges','leaveReviewCoreResultList','activateChange','deactivateChange','acceptChange','dismissChange','learnMore','finishReview','retryReview'];class AIReviewCoreUI extends ContextPlugin{['_mainView'];['_balloonSuggestionView'];['_bodyCollection'];static get['requires'](){return[AITabs];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x595392){super(_0x595392),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_mainView']=this['createMainView'](),this['_mainView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['_balloonSuggestionView']=new AIReviewCoreBalloonSuggestionItemView(this['context']['locale'],this['_bodyCollection']),this['_balloonSuggestionView']['delegate']('acceptChange','dismissChange','deactivateChange')['to'](this);}['init'](){const _0x4bc35f=this['context']['plugins']['get']('AITabs');this['registerTab'](_0x4bc35f);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x25f044){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x458893=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x25f044,_0x458893);}this['_mainView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x497ab3){_0x497ab3&&('error-general'!==_0x497ab3['status']?'error-chunk'!==_0x497ab3['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}['showCheckRunResult'](_0x2b304f){this['_mainView']['addCheckRunResult'](_0x2b304f);}['showGeneralResultsErrorView'](){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0xccceeb){this['_mainView']['showGeneralReviewCoreErrorView'](_0xccceeb??getTranslation$i(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}['setCheckResultTitle'](_0xbe58cc,_0x3e21c9){this['_mainView']['reviewCheckResultsView']['setTitle'](_0xbe58cc,_0x3e21c9);}['setActiveStateInResults'](_0x13099f){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x17290e=>{_0x17290e['id']===_0x13099f&&_0x17290e['setItemAsActive']();});}['resetActiveStateInResults'](){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x1d5d8c=>_0x1d5d8c['setItemAsInactive']());}['updateChangeState'](_0x240539,_0x5181c2){'accepted'===_0x5181c2||'rejected'===_0x5181c2||'outdated'===_0x5181c2?this['_mainView']['reviewCheckResultsView']['hideResult'](_0x240539,_0x5181c2):this['_mainView']['reviewCheckResultsView']['showResult'](_0x240539,_0x5181c2);}['showReviewCompletedView'](){this['_mainView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x134f79,_0x55c32f,_0x371ee9,_0xf3ae25,_0x11795f,_0x1d6b40){this['_balloonSuggestionView']['showBalloon'](_0x134f79,_0x55c32f,_0x371ee9,_0xf3ae25,_0x11795f,_0x1d6b40);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}['getChangeElement'](_0x467c63){const _0x44587b=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x522806=>_0x522806['id']===_0x467c63);return _0x44587b?_0x44587b['element']:null;}['deactivateChange'](){this['_balloonSuggestionView']['deactivateChange']();}}class AIReviewCoreGeneralErrorView extends View{constructor(_0x444e4f){super(_0x444e4f),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x4c03f0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x4c03f0['if']('isVisible','ck-hidden',_0x26ddf0=>!_0x26ddf0)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x4c03f0['to']('errorMessage')}]}]});}}class AIReviewCoreView extends View{['reviewCoreHeader'];['generalErrorView'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x2d8ab1,_0x200529){super(_0x2d8ab1),this['reviewCoreHeader']=_0x200529['header'],this['generalErrorView']=new AIReviewCoreGeneralErrorView(_0x2d8ab1),this['reviewCheckListView']=_0x200529['list'],this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=_0x200529['results'],this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=_0x200529['completed'],this['reviewCompletedView']['delegate']('finishReview')['to'](this),this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isLoading',!0x1),this['reviewCheckResultsView']['set']('isResultReady',!0x1),this['reviewCompletedView']['set']('isVisible',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-review','ck-rounded-corners'],'dir':'ltr'},'children':[this['reviewCoreHeader'],this['generalErrorView'],this['reviewCheckListView'],this['reviewCheckResultsView'],this['reviewCompletedView']]});}['showReviewCheckListView'](){this['reviewCheckListView']['resetAllParameterizedChecks'](),this['reviewCheckListView']['set']('isVisible',!0x0),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('isVisible',!0x1);}['showReviewCheckResultsView'](){this['hideActionsWhenResultIsReady'](),this['reviewCheckResultsView']['resetErrorState'](),this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCheckResultsView']['clearResults'](),this['reviewCheckResultsView']['set']('isLoading',!0x0),this['reviewCheckResultsView']['set']('isCompleted',!0x1);}['addCheckRunResult'](_0x4d67ad){this['reviewCheckResultsView']['addResult'](_0x4d67ad),this['reviewCheckResultsView']['set']('isLoading',!0x1);}['showReviewCompletedView'](){this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCompletedView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isCompleted',!0x0),this['reviewCheckListView']['set']('isVisible',!0x1);}['showActionsWhenResultIsReady'](){this['reviewCheckResultsView']['isResultReady']?(this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x0),this['reviewCompletedView']['set']('isVisible',!0x1)):this['reviewCheckResultsView']['isResultReady']=!0x0;}['showNoChangesView'](){this['reviewCheckListView']['set']('isVisible',!0x1),this['reviewCheckResultsView']['set']('isVisible',!0x1),this['reviewCompletedView']['set']('isVisible',!0x0);}['hideActionsWhenResultIsReady'](){this['reviewCheckResultsView']['isResultReady']=!0x1;}['showGeneralReviewCoreErrorView'](_0x426082){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x426082;}['showGeneralResultsErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showGeneralErrorMessage']();}['showChunkErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showChunkErrorMessage']();}}class AIReviewCoreFinishReviewButtonView extends ButtonView{constructor(_0x465f3f,_0x38038f){super(_0x38038f),this['set']({'label':_0x465f3f,'withText':!0x0,'class':AI_BUTTON_CLASSES['PRIMARY']}),this['on']('execute',()=>{this['fire']('finishReview');});}}class AIReviewCoreUICheckResultsView extends ListItemView{['_resultViews'];['_resultsHeader'];['_resultsBody'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x52a48a,_0x46ee5f){super(_0x52a48a),this['_contents']=_0x46ee5f,this['_resultViews']=new ViewCollection(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['_resultsHeader']=this['_createResultHeaderView'](),this['_resultsBody']=this['_createResultsBodyView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new AIDisclaimerView(_0x52a48a),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x56f259=this['_createCombinedSkeletonLoader'](),_0xb3841f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0xb3841f['if']('isLoading','ck-ai_review__check-run_loading',_0x4adb80=>_0x4adb80),_0xb3841f['if']('isResultReady','ck-ai_review__check-run_ready',_0x56634f=>_0x56634f),_0xb3841f['if']('isVisible','ck-hidden',_0x40a0ac=>!_0x40a0ac)]},'children':[this['_resultsHeader'],this['_errorMessageView'],this['_resultsBody'],_0x56f259,this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear'](),this['_resultsBody']['element']&&(this['_resultsBody']['element']['scrollTop']=0x0);}['getResults'](){return this['_resultViews'];}['addResult'](_0x5783bf){const _0xdd86c3=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],_0x5783bf['id']);_0xdd86c3['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0xdd86c3),_0xdd86c3['resultResponseView']['element']['innerHTML']=_0x5783bf['contentDiffed'];}['hideResult'](_0x3e6854,_0x218e41){if('pending'===_0x218e41)return;const _0xea8e9b=this['_resultViews']['find'](_0x388601=>_0x388601['id']===_0x3e6854);_0xea8e9b&&(_0xea8e9b['status']=_0x218e41,_0xea8e9b['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0xcdf084,_0x53b598){if('pending'!==_0x53b598)return;const _0x1d388b=this['_resultViews']['find'](_0x6a0e5=>_0x6a0e5['id']===_0xcdf084);_0x1d388b&&(_0x1d388b['status']=_0x53b598,_0x1d388b['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x51d0d5,_0x4815a6){this['headerTitle']=_0x51d0d5,this['headerSubtitle']=_0x4815a6||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x9942f7=new View(this['locale']),_0x586e1e=[];for(let _0x361da0=0x0;_0x361da0<0x10;_0x361da0++){const _0x4dd258=this['_createSkeletonLoader']();_0x4dd258['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x586e1e['push'](_0x4dd258);}return _0x9942f7['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x580be0=>!_0x580be0)]},'children':_0x586e1e}),_0x9942f7;}['_createResultsBodyView'](){const _0x4e33dc=new View(this['locale']);return _0x4e33dc['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x5ef659=>_0x5ef659)]},'children':this['_resultViews']}),_0x4e33dc;}['_createErrorView'](){const _0x855b29=new View(this['locale']),_0x32a17d=new ButtonView(this['locale']),t=this['locale']['t'];return _0x855b29['delegate']('retryReview')['to'](this),_0x32a17d['set']({'label':t('Try\x20again'),'withText':!0x0,'class':AI_BUTTON_CLASSES['SECONDARY']+'\x20ck-ai_review__check-run-error-retry-button'}),_0x32a17d['on']('execute',()=>{this['fire']('retryReview');}),_0x855b29['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x67c81=>!_0x67c81),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x932542=>'chunk'===_0x932542)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai_review__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x10d738=>'chunk'===_0x10d738)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x28c121=>'general'!==_0x28c121)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x242522=>'chunk'!==_0x242522)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x32a17d]}),_0x855b29;}['_createCancelButtonView'](){const _0x2a853c=new ButtonView(this['locale']);return _0x2a853c['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':[AI_BUTTON_CLASSES['SECONDARY']+'\x20ck-ai-button-stop-generating'],'icon':IconStop}),_0x2a853c['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x579e2c=>_0x579e2c),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5cef1b=>_0x5cef1b)]}}),_0x2a853c['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x2a853c;}['_createToggleDiffButtonView'](){const _0x136c1a=new ButtonView(this['locale']);_0x136c1a['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x136c1a['bind']('isEnabled')['to'](this,'isError',_0x2613c9=>!_0x2613c9),_0x136c1a['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['SECONDARY'],'ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x37b2cf=>!_0x37b2cf),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4437b7=>_0x4437b7)]}});const _0x1a2343=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0xbdceb1=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x136c1a['bind']('isOn')['to'](this,'isToggleDiffOn',_0x327013=>_0x327013),_0x136c1a['bind']('icon')['to'](this,'isToggleDiffOn',_0x553c96=>_0x553c96?IconEye:IconEyeCrossedOut),_0x136c1a['bind']('label')['to'](this,'isToggleDiffOn',_0x38d3d2=>_0x38d3d2?_0x1a2343:_0xbdceb1),_0x136c1a['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x136c1a;}['_createAcceptAllButtonView'](){const _0x26606b=new ButtonView(this['locale']);return _0x26606b['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x26606b['bind']('isEnabled')['to'](this,'isError',_0x38b66c=>!_0x38b66c),_0x26606b['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['PRIMARY'],'ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5cc237=>!_0x5cc237),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x560ec4=>_0x560ec4)]}}),_0x26606b['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x26606b;}['_createExitReviewButtonView'](){const _0x1535b9=new ButtonView(this['locale']);return _0x1535b9['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x1535b9['extendTemplate']({'attributes':{'class':[AI_BUTTON_CLASSES['TERTIARY'],'ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2b287e=>!_0x2b287e),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x47f945=>_0x47f945)]}}),_0x1535b9['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x1535b9;}['_createResultHeaderView'](){const _0x2d7c5c=new View(this['locale']),_0x21310f=this['_createTitleView']();return _0x2d7c5c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x36041b=>_0x36041b)]},'children':[_0x21310f,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x2d7c5c;}['_createTitleView'](){const _0x5d5f39=new View(this['locale']),_0x5d9520=new AISpinnerView();return _0x5d9520['bind']('isVisible')['to'](this,'isResultReady',_0x24d695=>!_0x24d695),_0x5d5f39['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x5d9520,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x533079=>_0x533079)]},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai_review__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x766615=>!_0x766615)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x5d5f39;}['_createFinishReviewButtonView'](){const _0x3c25af=new AIReviewCoreFinishReviewButtonView(getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x3c25af['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3cad09=>!_0x3cad09)]}}),_0x3c25af['delegate']('finishReview')['to'](this),_0x3c25af;}}class AIReviewCoreReviewCompletedView extends ListItemView{['_resultsHeader'];['_finishReviewButtonView'];constructor(_0x4571c5,_0x5e9048){super(_0x4571c5),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x5e9048['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x5e9048['headerText']);const _0x2097d8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0x2097d8['if']('isVisible','ck-hidden',_0x56d76d=>!_0x56d76d)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-content']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-content-icon']},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':['ck-ai_review__review-completed-content-text']},'children':[{'text':_0x5e9048['emptyResultsText']}]}]}]});}['_createFinishReviewButtonView'](_0x46a6a8){const _0x196c0c=new AIReviewCoreFinishReviewButtonView(_0x46a6a8,this['locale']);return _0x196c0c['delegate']('finishReview')['to'](this),_0x196c0c;}['_createResultHeaderView'](_0x3aee1c){const _0x7d9d69=new View(this['locale']);return _0x7d9d69['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title']},'children':[{'text':_0x3aee1c}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x7d9d69;}}class AIReviewCoreFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x548640,_0x5ee5c4){super(_0x548640),this['_defaultValue']=_0x5ee5c4['default']||(_0x5ee5c4['data']['length']>0x0?_0x5ee5c4['data'][0x0]['id']:''),this['_defaultLabel']=_0x5ee5c4['data']['find'](_0x3d978f=>_0x3d978f['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x54e9d3=this['_prepareListOptions'](_0x5ee5c4['data']);addListToDropdown(this['_dropdownView'],_0x54e9d3,{'role':'menu','ariaLabel':_0x5ee5c4['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x10a773=>{_0x10a773['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x111ca2=>{this['formValue']=_0x111ca2['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x111ca2['source']['model']['label'];}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai_review__check-list-item-parameterized-form-element','ck-ai_review__check-list-item-parameterized-form-element_dropdown']},'children':[this['_dropdownView']]});}['resetToDefault'](){this['formValue']=this['_defaultValue'],this['_dropdownView']['buttonView']['label']=this['_defaultLabel'];}['_prepareListOptions'](_0x4f823b=[]){const _0x200511=new Collection();this['resetToDefault']();for(const _0x18e4d2 of _0x4f823b){const _0x3e5310=new UIModel({'label':_0x18e4d2['label'],'withText':!0x0,'role':'menuitemradio','id':_0x18e4d2['id'],'model':_0x18e4d2});_0x3e5310['bind']('isOn')['to'](this,'formValue',_0x4aad5a=>_0x4aad5a===_0x3e5310['id']);const _0x18a14d={'type':'button','model':_0x3e5310};_0x200511['add'](_0x18a14d);}return _0x200511;}}class AIReviewCoreFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x520f47,_0x5de905,_0x236298){super(_0x520f47),this['argsKey']=_0x5de905?.['argsKey'];if('dropdown'===_0x5de905['formType'])this['_formItem']=new AIReviewCoreFormDropdownView(this['locale'],_0x5de905);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x3557c6=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x236298?'ck-form__row_with-submit':'']});_0x236298&&_0x3557c6['children']['add'](_0x236298),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x3557c6]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewCorePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x11c436){super(_0x11c436),this['set']('isEmpty',!0x0),this['keystrokes']=new KeystrokeHandler(),this['minRows']=AIReviewCorePromptInputView['MIN_ROWS'],this['maxRows']=AIReviewCorePromptInputView['MAX_ROWS'],this['extendTemplate']({'attributes':{'id':'ai-review-prompt-input','class':['ck','ck-review__prompt-input']}});}['render'](){super['render'](),this['on']('update',()=>{this['isEmpty']=''===this['element']['value']?.['trim']();}),this['keystrokes']['listenTo'](this['element']);}}class AIReviewCoreCustomCheckView extends View{['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusCycler'];['_focusables']=new ViewCollection();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelNameView'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x5a35b9,_0x335482,_0x5358f4=!0x1){super(_0x5a35b9),this['_check']=_0x335482,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x335482['defaultModel']?_0x335482['defaultModel']['id']:'',this['_defaultLabel']=_0x335482['defaultModel']?_0x335482['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewCorePromptInputView(_0x5a35b9)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new Collection(),this['_modelNameView']=this['_createModelNameView'](),this['_setModelList'](_0x5358f4),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions']},'children':[new FormRowView(this['locale'],{'children':[this['promptInputView']]}),new FormRowView(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x132e2e,_0xac0291)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0xac0291()):_0xac0291();}),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x6bd98c=>{this['_focusables']['add'](_0x6bd98c),this['focusTracker']['add'](_0x6bd98c['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x384fe2 of this['_getFormValidators']()){const _0x4f171d=_0x384fe2();if(_0x4f171d)return this['promptInputView']['errorText']=_0x4f171d,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return getTranslation$i(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x3af7c0=new ButtonView(this['locale']),t=this['locale']['t'];return _0x3af7c0['set']({'label':t('Submit'),'withText':!0x0,'class':AI_BUTTON_CLASSES['PRIMARY']}),_0x3af7c0['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x3af7c0;}['_createCancelButtonView'](){const _0x18d0a0=new ButtonView(this['locale']),t=this['locale']['t'];return _0x18d0a0['set']({'label':t('Cancel'),'withText':!0x0,'class':AI_BUTTON_CLASSES['TERTIARY']}),_0x18d0a0['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x264592=>{_0x264592['stopPropagation']();})}}),_0x18d0a0['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x18d0a0;}['_setModelList'](_0x1b98f9){this['_modelSelectionDropdownItems']['clear']();const _0x3ac728=this['_check']['models'];if(_0x1b98f9)this['set']('modelDisplayMode','hidden');else{const _0x3d9c44=0x1===_0x3ac728['length'];this['set']('modelDisplayMode',_0x3d9c44?'name':'selector');}if(this['resetToDefault'](),_0x3ac728?.['length']){0x1===_0x3ac728['length']&&this['set']('activeModelName',_0x3ac728[0x0]['name']||_0x3ac728[0x0]['id']);for(const _0x3bd75e of _0x3ac728){const _0x46ff62=new UIModel({'label':_0x3bd75e['name'],'withText':!0x0,'role':'menuitemradio','id':_0x3bd75e['id'],'model':_0x3bd75e});_0x46ff62['bind']('isOn')['to'](this,'modelId',_0x4ef75f=>_0x4ef75f===_0x3bd75e['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x46ff62,'labelView':new ModelButtonLabelView(this['locale'],_0x3bd75e)});}}}['_createModelSelectionDropdown'](){const _0x276051=createDropdown(this['locale']);return _0x276051['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x276051['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0,'class':AI_BUTTON_CLASSES['TERTIARY']}),_0x276051['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x37f2b9=>'selector'===_0x37f2b9),this['listenTo'](_0x276051,'execute',_0x148cfa=>{this['modelId']=_0x148cfa['source']['model']['id'],_0x276051['buttonView']['label']=_0x148cfa['source']['label'];}),_0x276051;}['_createModelNameView'](){const _0x4176d8=new ModelNameView(this['locale']);return _0x4176d8['bind']('text')['to'](this,'activeModelName',_0x1de385=>_0x1de385??''),_0x4176d8['bind']('isVisible')['to'](this,'modelDisplayMode',_0x308546=>'name'===_0x308546),_0x4176d8;}['_createActionsFooterView'](){const _0x4c5c67=new View(this['locale']);return _0x4c5c67['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x4c5c67;}}class ModelNameView extends View{constructor(_0xcf4e63){super(_0xcf4e63),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x1d92d7=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x1d92d7['if']('isVisible','ck-hidden',_0x167717=>!_0x167717)]},'children':[{'text':_0x1d92d7['to']('text')}]});}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x10cf7b,_0x93bb0d){super();const _0x237c35=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x237c35['to']('style'),'id':_0x237c35['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x237c35['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x93bb0d['description']||'']}]}]});}}class AIReviewCoreReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x2a9fd9,_0x3a97cd,_0x1c764c,_0x318cd5=!0x1){super(_0x2a9fd9),this['_hideModels']=_0x318cd5,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x3a97cd['isParameterized']);const _0x1298cb=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai_review__check-list-item_selected',_0x93477c=>_0x93477c),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x53c079=>_0x53c079)],'style':{'--ck-ai-review-check-list-item-index':_0x1c764c}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__check-list-item-title-text']},'children':[{'text':_0x3a97cd['title']}]},_0x1298cb]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x3a97cd['description']?[{'text':_0x3a97cd['description']}]:[]}]}]},..._0x3a97cd['isParameterized']?[this['_createParameterizedView'](_0x3a97cd)]:[],...'custom'===_0x3a97cd['id']?[this['_createCustomView'](_0x3a97cd,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x3a97cd['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x3a97cd['id'],'args':_0x3a97cd['useArgs']?_0x3a97cd['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&clickOutsideHandler({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x70cc35=>{_0x70cc35['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x3867bb=new IconView();return _0x3867bb['content']=IconChevronRight,_0x3867bb['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x3867bb;}['_createParameterizedView'](_0x5b8bb3){const _0x327397=new View(),_0x2d3da8=this['_createFormView'](_0x5b8bb3);return _0x327397['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x45735f=>!_0x45735f)]},'children':[_0x2d3da8]}),_0x327397;}['_createFormView'](_0x1670f2){const _0x50309f=new View(),_0x252bb9=Array['isArray'](_0x1670f2['options'])?_0x1670f2['options']:[],_0x319aba=new ButtonView(this['locale']),t=this['locale']['t'];_0x319aba['set']({'label':t('Submit'),'withText':!0x0,'class':AI_BUTTON_CLASSES['PRIMARY']}),_0x319aba['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x463a66=>{_0x463a66['stopPropagation']();})}}),_0x319aba['on']('execute',()=>{const _0x3479c3=[],_0x4448d2={};this['_formItemsCollection']['forEach'](_0x59bd8b=>{_0x3479c3['push'](_0x59bd8b['value']),_0x1670f2['useArgs']&&_0x1670f2['options']&&(_0x4448d2[_0x59bd8b['argsKey']]=_0x59bd8b['value']);}),this['fire']('runReviewCheck',{'id':_0x1670f2['id'],'params':_0x3479c3['length']?_0x3479c3:void 0x0,'args':Object['keys'](_0x4448d2)['length']?_0x4448d2:void 0x0});});const _0x4a593d=_0x252bb9['length'];return _0x252bb9['forEach']((_0x2d38b5,_0x328d52)=>{const _0x16b39e=_0x328d52===_0x4a593d-0x1;this['_formItemsCollection']['add'](new AIReviewCoreFormManagerView(this['locale'],_0x2d38b5,_0x16b39e?_0x319aba:null));}),_0x50309f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x50309f;}['_createCustomView'](_0x2e6cd3,_0x5d89fc=!0x1){return this['_customCheckView']=new AIReviewCoreCustomCheckView(this['locale'],_0x2e6cd3,_0x5d89fc),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-parameterized','ck-ai_review__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x20c6cc=>!_0x20c6cc)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x33d389,_0x2c86a5,_0x3a371b)=>{_0x3a371b||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewCoreReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x358791){super(_0x358791),this['_checkViews']=new ViewCollection(),this['_setupTemplate']();}['setChecks'](_0x2c6885,_0x13af50=!0x1){this['_checkViews']['clear']();for(const [_0x2623e7,_0x1b57f5]of _0x2c6885['entries']()){const _0x405080=new AIReviewCoreReviewCommandListItemView(this['locale'],_0x1b57f5,_0x2623e7,_0x13af50);_0x405080['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x405080);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x1ed8a0 of this['_checkViews'])_0x1ed8a0 instanceof AIReviewCoreReviewCommandListItemView&&_0x1ed8a0['resetToDefault']();}['_setupTemplate'](){const _0x49936b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x49936b['if']('isVisible','ck-hidden',_0xb08ac=>!_0xb08ac)]},'children':this['_checkViews']});}}class AIReviewModeUI extends AIReviewCoreUI{static get['pluginName'](){return'AIReviewModeUI';}['createMainView'](){const _0x4c3b59=this['context']['plugins']['get']('AITabs'),_0xdbbd54=this['context']['locale'],_0x27c0cd=new AIHeaderView(_0xdbbd54,{'label':getTranslation$i(_0xdbbd54,'AI_REVIEW_MODE'),'icon':IconAIReview,'class':'ck-ai-header_review','showResizeButton':_0x4c3b59['showResizeButton']});return _0x27c0cd['delegate']('resizeTabs')['to'](_0x4c3b59),_0x27c0cd['bind']('isMaximized')['to'](_0x4c3b59['view'],'isMaximized',_0x462921=>_0x462921),new AIReviewCoreView(this['context']['locale'],{'header':_0x27c0cd,'list':new AIReviewCoreReviewCheckListView(_0xdbbd54),'results':new AIReviewCoreUICheckResultsView(_0xdbbd54,{'generalErrorText':getTranslation$i(_0xdbbd54,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0xdbbd54,{'headerText':getTranslation$i(_0xdbbd54,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0xdbbd54,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0xdbbd54,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}['registerTab'](){const _0x1a5ac9=this['context']['plugins']['get']('AITabs');_0x1a5ac9['view']['on']('activateTab',(_0x5723b6,{newTab:_0x52e86f,oldTab:_0x2d3a0b})=>{'reviewMode'===_0x52e86f?this['fire']('getReviewCheckList'):'reviewMode'===_0x2d3a0b&&this['fire']('leaveReview');}),_0x1a5ac9['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':IconAIReview,'order':0x0,'content':this['_mainView']});}}const MARKER_PREFIX='review-',CHANGE_CONTEXT_WORDS_LIMIT=0x6,SKIP_ADDING_IDS_ON=['softBreak'];class AIReviewCoreEditing extends ContextPlugin{static get['requires'](){return[DocumentCompare,AIEditing];}static get['pluginName'](){return'AIReviewCoreEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_markers']=new Map();['_activeMarkers']=new Set();['_domEmitter'];['_eventEmitter'];['_reviewEditingAttachedEditors']=new WeakSet();['_boundEditables']=new WeakMap();constructor(_0x3351d8){super(_0x3351d8),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x3d6f67=_0x443331=>this['_scheduleAttachReviewEditingToEditor'](_0x443331);if(this['_registerGlobalBalloonBlurHandler'](),this['context']instanceof Editor)return void this['_attachReviewEditingToEditor'](this['context']);const _0x4b8ca=this['context'];for(const _0x233a9b of _0x4b8ca['editors'])_0x3d6f67(_0x233a9b);this['listenTo'](_0x4b8ca['editors'],'add',(_0x470e87,_0x207202)=>{_0x3d6f67(_0x207202);}),this['listenTo'](_0x4b8ca['editors'],'remove',(_0x449c70,_0x2e5665)=>{for(const [_0x2d802c,_0x2643ee]of this['_markers'])_0x2643ee['editor']===_0x2e5665&&(this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x2d802c,'changeId':_0x2643ee['groupId']}),this['_markers']['delete'](_0x2d802c));});}['_scheduleAttachReviewEditingToEditor'](_0x3f508){const _0x1dc9e2=()=>{'destroyed'!==_0x3f508['state']&&_0x3f508['conversion']&&this['_attachReviewEditingToEditor'](_0x3f508);};if('ready'===_0x3f508['state'])return void _0x1dc9e2();const _0x3e13b4=()=>{this['stopListening'](_0x3f508,'ready',_0x3e13b4),_0x1dc9e2();};this['listenTo'](_0x3f508,'ready',_0x3e13b4);}['_attachReviewEditingToEditor'](_0x4813ce){this['_reviewEditingAttachedEditors']['has'](_0x4813ce)||(_0x4813ce['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x56640b,{writer:_0x583d90})=>{const _0x3e98cb=this['_markers']['get'](_0x56640b['markerName']),_0x16eda6={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x3e98cb?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x56640b['markerName']};return _0x583d90['createUIElement']('span',_0x16eda6,function(_0x1f82cf){const _0x435cec=this['toDomElement'](_0x1f82cf);return _0x435cec['innerHTML']=_0x3e98cb?.['content']?.['asString']||'',_0x435cec;});}}),_0x4813ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x17e123=>{const _0x2ee695=this['_markers']['get'](_0x17e123['markerName']),_0x32e285=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x2ee695?.['id']||'')&&_0x32e285['push']('ck-ai_review__change_active'),{'classes':_0x32e285,'attributes':{'data-marker-id':_0x17e123['markerName']}};}}),_0x4813ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x30e187=>{const _0x413977=this['_markers']['get'](_0x30e187['markerName']),_0x4e0394=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x413977?.['id']||'')&&_0x4e0394['push']('ck-ai_review__change_active'),{'classes':_0x4e0394,'attributes':{'data-marker-id':_0x30e187['markerName']}};}}),_0x4813ce['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x59868e=>{const _0x5c98b5=this['_markers']['get'](_0x59868e['markerName']),_0x47ebcb=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x5c98b5?.['id']||'')&&_0x47ebcb['push']('ck-ai_review__change_active'),{'classes':_0x47ebcb,'attributes':{'data-marker-id':_0x59868e['markerName']}};}}),_0x4813ce['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0x410366,{writer:_0x8f3982})=>_0x8f3982['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x410366['isOpening']?'start':'end')})}),_0x4813ce['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE}),this['_updateMouseMarkerInteractionListeners'](_0x4813ce),this['listenTo'](_0x4813ce,'addRoot',()=>this['_updateMouseMarkerInteractionListeners'](_0x4813ce),{'priority':'lowest'}),this['listenTo'](_0x4813ce,'detachRoot',()=>this['_updateMouseMarkerInteractionListeners'](_0x4813ce),{'priority':'lowest'}),_0x4813ce['model']['document']['registerPostFixer'](_0x5eeef0=>this['_validateMarkers'](_0x4813ce,_0x5eeef0)),_0x4813ce['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x4813ce)),this['_reviewEditingAttachedEditors']['add'](_0x4813ce));}['_updateMouseMarkerInteractionListeners'](_0x23d3f1){let _0x5f2aea=this['_boundEditables']['get'](_0x23d3f1);_0x5f2aea||(_0x5f2aea=new Map(),this['_boundEditables']['set'](_0x23d3f1,_0x5f2aea));const _0x28e6bc=new Set(_0x23d3f1['ui']['getEditableElementsNames']());for(const _0x246bdc of _0x28e6bc){if(_0x5f2aea['has'](_0x246bdc))continue;const _0x31da52=_0x23d3f1['ui']['getEditableElement'](_0x246bdc);_0x5f2aea['set'](_0x246bdc,_0x31da52),this['_attachMouseMarkerInteractionListeners'](_0x31da52);}for(const [_0x308dfd,_0x4e1778]of _0x5f2aea)_0x28e6bc['has'](_0x308dfd)||(_0x5f2aea['delete'](_0x308dfd),this['_domEmitter']['stopListening'](_0x4e1778));}['_attachMouseMarkerInteractionListeners'](_0x1af425){this['_domEmitter']['listenTo'](_0x1af425,'mouseup',(_0x35cd55,_0x4d58cb)=>{const _0x5addb5=_0x4d58cb['target'],_0x3ca3f8=this['_findMarkerElement'](_0x5addb5);if(!_0x3ca3f8)return;const _0x4ad7a2=_0x3ca3f8['getAttribute']('data-marker-id'),_0x1706c1=_0x4ad7a2['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x4ad7a2,'changeId':_0x1706c1,'markerElement':()=>this['_findMarkerElementById'](_0x4ad7a2),'domEvent':_0x4d58cb});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0x1af425,'mouseover',(_0x1c157f,_0x32ba46)=>{const _0x125da4=_0x32ba46['target'],_0x474004=_0x32ba46['relatedTarget'];let _0x44b398=this['_findMarkerElement'](_0x125da4);if(!_0x44b398&&_0x474004&&(_0x44b398=this['_findMarkerElement'](_0x474004)),!_0x44b398)return;const _0xf77e54=_0x44b398['getAttribute']('data-marker-id'),_0xe9013a=_0xf77e54['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0xe9013a,'markerElement':()=>this['_findMarkerElementById'](_0xf77e54),'domEvent':_0x32ba46});});}['_registerGlobalBalloonBlurHandler'](){this['_domEmitter']['listenTo'](document,'mouseover',debounce((_0xd847a0,_0x42574f)=>{const _0x47ea63=_0x42574f['target'];if(this['_findMarkerElement'](_0x47ea63))return;_0x47ea63['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8));}['getDocumentData'](){const _0x223a43=this['context']['plugins']['get']('AIEditing'),_0x2fd11d=getEditorsFromContext(this['context']);if(!_0x2fd11d['length'])throw new CKEditorError('ai-get-editor-from-context-no-editor',this);const _0x3b5181=new Set(),_0x5e9bc6=[],_0x34c9d3=new Map();for(const _0x39a288 of _0x2fd11d)for(const _0x4e79e8 of _0x39a288['model']['document']['getRoots']()){if('$graveyard'===_0x4e79e8['rootName'])continue;const _0x2a7b1e=this['_buildDocumentDataSliceForRoot'](_0x39a288,_0x4e79e8,_0x223a43,_0x3b5181);_0x5e9bc6['push'](_0x2a7b1e['content']);for(const [_0x220eb3,_0x16e9c5]of _0x2a7b1e['elements'])_0x34c9d3['set'](_0x220eb3,_0x16e9c5);}return{'elements':_0x34c9d3,'content':_0x5e9bc6['join']('')};}['_buildDocumentDataSliceForRoot'](_0x324c84,_0x272ee2,_0x53ff74,_0x5765d4){const _0x5d6fc4=_0x324c84['model'],_0x42b202=new ModelDocumentFragment();for(const _0x4a96b3 of _0x272ee2['getChildren']())_0x42b202['_appendChild'](_0x4a96b3['_clone'](!0x0));for(const _0x35607d of _0x5d6fc4['markers']){const _0x452291=_0x35607d['getRange']();_0x452291&&_0x452291['root']['rootName']===_0x272ee2['rootName']&&_0x42b202['markers']['set'](_0x35607d['name'],this['_changeRangeOwnerDocument'](_0x452291['clone'](),_0x42b202));}const _0x564feb=new Map(),_0x17730d=_0x5d6fc4['document']['version'],_0x255216=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x5d6fc4['createPositionAt'](_0x42b202,0x0)});for(const {item:_0x134cb8}of _0x255216){if(!_0x134cb8['is']('$textProxy'))continue;const _0x3ad83e=_0x134cb8['parent'];if(!_0x3ad83e||!_0x3ad83e['is']('element'))continue;const _0x88d1d4=this['_upsertDataId'](_0x3ad83e,()=>_0x53ff74['_nextDataId'](_0x5765d4));_0x5765d4['add'](_0x88d1d4);for(const _0x51a44a of _0x3ad83e['getChildren']())_0x51a44a['is']('element')&&(_0x51a44a['name']&&SKIP_ADDING_IDS_ON['includes'](_0x51a44a['name'])||_0x5765d4['add'](this['_upsertDataId'](_0x51a44a,()=>_0x53ff74['_nextDataId'](_0x5765d4))));let _0x1f12d8=_0x3ad83e;for(;_0x1f12d8['parent']&&!_0x1f12d8['parent']['is']('documentFragment');)_0x1f12d8=_0x1f12d8['parent'],_0x1f12d8['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x1f12d8['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x564feb['set'](_0x88d1d4,{'editor':_0x324c84,'rootName':_0x272ee2['rootName'],'path':_0x3ad83e['getPath'](),'documentVersion':_0x17730d,'getContent':this['_createGetContentUsingDataIdFn'](_0x1f12d8['_clone'](!0x0),_0x88d1d4,_0x324c84['data'])}),_0x255216['jumpTo'](_0x5d6fc4['createPositionAfter'](_0x3ad83e));}return{'content':_0x324c84['data']['processor']['toData'](_0x324c84['data']['toView'](_0x42b202)),'elements':_0x564feb};}['diffContent'](_0x376447,_0x5291bc,_0x57506c,_0x560ae4=!0x1){const _0x5f4e62=[],_0x34ca71=_0x376447['data']['parse'](_0x57506c,'$documentFragment'),_0x4a9489=_0x376447['data']['parse'](_0x5291bc,'$documentFragment'),_0x3da9d3=_0x376447['model']['createPositionAt'](_0x4a9489,0x0);if(this['_haveSingleTopLevelElement'](_0x34ca71)){if(!this['_hasSameTopLevelElement'](_0x4a9489,_0x34ca71))return _0x5f4e62;}else{const _0x2c31b2=_0x376447['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x4a9489,_0x2c31b2)||!this['_haveOnlyInlineContent'](_0x34ca71,_0x2c31b2))return _0x5f4e62;}const _0x4747d4=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x5291bc,_0x57506c,{'targetEditor':_0x376447,'anchor':_0x3da9d3,'markDeletions':!0x0})['getOperations']()['filter'](_0x496f86=>'insert'===_0x496f86['type']||'marker'===_0x496f86['type']&&_0x496f86['name']['startsWith']('$markedRemove')),_0x3c1fd3=this['_groupAdjacentOperations'](_0x4747d4),_0x51970d=[];if(_0x560ae4){if(_0x3c1fd3['length']){const _0x380fb5=_0x3c1fd3[0x0]['operations'][0x0],_0x1d93b3='insert'===_0x380fb5['type']?_0x380fb5['position']:_0x380fb5['newRange']['start'],_0x12e6fb=this['_getPositionLimitingRange'](_0x1d93b3,_0x376447,'inside'),_0xea0851=_0x12e6fb?_0x34ca71['getChild'](0x0)['getChildren']():_0x34ca71['getChildren'](),_0x3f7c05=_0x12e6fb||_0x376447['model']['createRangeIn'](_0x4a9489),_0x5239cc=[new MarkerOperation('$markedRemove:synthetic'+uid(),null,_0x3f7c05,_0x376447['model']['document']['model']['markers'],!0x0,_0x376447['model']['document']['version']+0x1),new InsertOperation(_0x3f7c05['end'],_0xea0851,_0x376447['model']['document']['version']+0x2)];_0x51970d['push']({'operations':_0x5239cc,'operationsIsolated':_0x5239cc,'groupOffset':0x0});}}else _0x51970d['push'](..._0x3c1fd3);let _0x4f5618=0x0;return _0x376447['model']['change'](_0x1095b5=>{for(let _0x15bd67=0x0;_0x15bd67<_0x51970d['length'];_0x15bd67++){const _0x2753c1=_0x51970d[_0x15bd67],_0x4d88eb=_0x1095b5['createDocumentFragment']();for(const _0x5bd5af of _0x4a9489['getChildren']())_0x1095b5['append'](_0x5bd5af['_clone'](!0x0),_0x4d88eb);for(const _0x5cfec0 of _0x2753c1['operationsIsolated'])if('insert'===_0x5cfec0['type']){const _0x657451=_0x5cfec0;_0x657451['baseVersion']=null,_0x657451['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x657451,_0x4d88eb),_0x1095b5['batch']['addOperation'](_0x5cfec0),_0x376447['model']['applyOperation'](_0x5cfec0);const _0x953f88='suggestion:insertion:id:authorId:'+_0x4f5618++,_0x5f022d=_0x376447['model']['createRange'](_0x657451['position'],_0x657451['position']['getShiftedBy'](_0x657451['howMany']));_0x4d88eb['markers']['set'](_0x953f88,_0x5f022d);}else{if('marker'===_0x5cfec0['type']&&_0x5cfec0['name']['startsWith']('$markedRemove')){const _0x477138=_0x5cfec0,_0x4f26e5='suggestion:deletion:id:authorId:'+_0x4f5618++;this['_changeOperationOwnerDocument'](_0x477138,_0x4d88eb),_0x4d88eb['markers']['set'](_0x4f26e5,_0x477138['newRange']);}}if(_0x560ae4)_0x5f4e62['push']({..._0x2753c1,'context':this['_createGetContentFn'](_0x4a9489,_0x376447['data']),'content':this['_createGetContentFn'](_0x4a9489,_0x376447['data'])});else{const _0x166ceb=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x2753c1['operationsIsolated'][0x0]),_0x4d88eb),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x2753c1['operationsIsolated'][_0x2753c1['operationsIsolated']['length']-0x1]),_0x4d88eb),_0x376447);_0x4d88eb['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x166ceb['start'],_0x166ceb['end'])),_0x5f4e62['push']({..._0x2753c1,'context':this['_createGetContextFn'](_0x4d88eb,_0x376447['data'],{'ellipsisBefore':_0x166ceb['hasContentBefore'],'ellipsisAfter':_0x166ceb['hasContentAfter']}),'content':this['_createGetContentFn'](_0x4d88eb,_0x376447['data'])});}}}),_0x5f4e62;}['markChangePositionInEditorContent'](_0x4726e4,_0x23dab2){if(!_0x4726e4['length'])return;const _0x538f0a=_0x4726e4[0x0]['parent']['id'],_0x59aa95=_0x23dab2['elements']['get'](_0x538f0a);if(!_0x59aa95)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x538f0a);const _0x32b33c=_0x59aa95['path'],_0x2cffc8=_0x59aa95['editor'],_0x3b9b0b=_0x2cffc8['model']['document']['getRoot'](_0x59aa95['rootName']);if(!_0x3b9b0b)return void console['warn']('No\x20model\x20root\x20found\x20for\x20name:\x20'+_0x59aa95['rootName']);const _0x178478=_0x2cffc8['model']['document']['history']['getOperations'](_0x59aa95['documentVersion']),_0x16d58f=[];for(const _0x11ab08 of _0x4726e4){const _0x5b93ac=_0x11ab08['operationsIsolated']['map'](_0x4c47f9=>this['_translateOperationToEditorContent'](_0x4c47f9,_0x32b33c,_0x3b9b0b));if(!_0x5b93ac||!_0x5b93ac['length'])continue;const _0x15829f=_0x5b93ac['every'](_0x124c32=>'marker'===_0x124c32['type']&&_0x124c32['name']['startsWith']('$markedRemove')),_0x18beac={'document':_0x2cffc8['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4a8437=transformOperationSets(_0x5b93ac,_0x178478,_0x18beac)['operationsA'];for(const _0x280285 of _0x4a8437)if('insert'===_0x280285['type']){const _0x28d31b=_0x280285,_0x378eba=_0x28d31b['nodes'];_0x2cffc8['model']['change'](_0x2d88d0=>{const _0x4824e9=_0x2d88d0['createDocumentFragment']();for(const _0x52bc37 of _0x378eba)_0x2d88d0['append'](_0x52bc37['_clone'](!0x0),_0x4824e9);_0x16d58f['push']({'start':_0x28d31b['position'],'end':_0x28d31b['position'],'type':'insert','groupId':_0x11ab08['id'],'content':{'asString':this['_createGetContentFn'](_0x4824e9,_0x2cffc8['data'])(),'asFragment':_0x4824e9}});});}else{if('marker'===_0x280285['type']&&_0x280285['name']['startsWith']('$markedRemove')){const _0x41cdfb=_0x280285;let _0x480d70='remove-text';if(_0x15829f){const _0x34732e=this['_findAdjacentContextDistance'](_0x41cdfb['newRange']['start'],'backward',_0x2cffc8['model']['schema']),_0x52e033=this['_findAdjacentContextDistance'](_0x41cdfb['newRange']['end'],'forward',_0x2cffc8['model']['schema']);if(_0x34732e||_0x52e033){const _0x41ead5=_0x41cdfb['newRange']['start']['getShiftedBy'](-_0x34732e),_0x54d8fc=_0x41cdfb['newRange']['end']['getShiftedBy'](_0x52e033);_0x16d58f['push']({'start':_0x41ead5,'end':_0x54d8fc,'groupId':_0x11ab08['id'],'type':'remove-context'});}else _0x480d70='remove-only';}_0x16d58f['push']({'start':_0x41cdfb['newRange']['start'],'end':_0x41cdfb['newRange']['end'],'groupId':_0x11ab08['id'],'type':_0x480d70});}}}this['_insertMarkers'](_0x16d58f,_0x2cffc8);}['clearAllMarkers'](){const _0x3bd594=new Map();for(const _0x467eac of this['_markers']['keys']()){const _0x334167=this['_markers']['get'](_0x467eac);_0x334167?.['editor']&&(_0x3bd594['has'](_0x334167['editor'])||_0x3bd594['set'](_0x334167['editor'],[]),_0x3bd594['get'](_0x334167['editor'])['push'](_0x467eac));}for(const [_0x44a7bd,_0xc2b72a]of _0x3bd594)_0x44a7bd['model']['change'](_0x1309b4=>{for(const _0xb0f23 of _0xc2b72a)_0x44a7bd['model']['markers']['get'](_0xb0f23)&&_0x1309b4['removeMarker'](_0xb0f23);});this['_markers']['clear'](),this['_activeMarkers']['clear']();}['switchToReadOnly'](){for(const _0x2c119a of getEditorsFromContext(this['context']))_0x2c119a['enableReadOnlyMode']('ai-review');}['switchToEdit'](){for(const _0x23609c of getEditorsFromContext(this['context']))_0x23609c['disableReadOnlyMode']('ai-review');}['applyChange'](_0x22c6c7){const _0x5c9c65=_0x22c6c7['map'](_0x1759d4=>this['_getMarkersDataForGroup'](_0x1759d4))['flat'](),_0x46d027=new Map();for(const _0x5a6f62 of _0x5c9c65)_0x46d027['has'](_0x5a6f62['editor'])||_0x46d027['set'](_0x5a6f62['editor'],[]),_0x46d027['get'](_0x5a6f62['editor'])['push'](_0x5a6f62);for(const [_0x3599a1,_0x717ffc]of _0x46d027){const _0x4429a9=_0x3599a1['model'];_0x4429a9['change'](_0x38c8e7=>{for(const _0x499380 of _0x717ffc){const _0x25c13d=_0x3599a1['model']['markers']['get'](_0x499380['id']);if(_0x25c13d){if('insert'===_0x499380['type']){if(!_0x499380['content'])continue;_0x4429a9['insertContent'](_0x499380['content']['asFragment']||null,_0x25c13d['getRange']()['start']);}else'remove-text'!==_0x499380['type']&&'remove-only'!==_0x499380['type']||_0x4429a9['deleteContent'](_0x4429a9['createSelection'](_0x25c13d['getRange']()));_0x38c8e7['removeMarker'](_0x499380['id']),this['_markers']['delete'](_0x499380['id']);}}});}}['rejectChange'](_0x4b6882){const _0x911334=this['_getMarkersDataForGroup'](_0x4b6882),_0x35f33c=new Map();for(const _0x34fb15 of _0x911334)_0x35f33c['has'](_0x34fb15['editor'])||_0x35f33c['set'](_0x34fb15['editor'],[]),_0x35f33c['get'](_0x34fb15['editor'])['push'](_0x34fb15);for(const [_0x582d40,_0x1df1a1]of _0x35f33c)_0x582d40['model']['change'](_0x3afb90=>{for(const _0xbbe1d5 of _0x1df1a1)_0x3afb90['removeMarker'](_0xbbe1d5['id']),this['_markers']['delete'](_0xbbe1d5['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getEditors'](){return getEditorsFromContext(this['context']);}['getEditorForChange'](_0x59fe74){const _0x1365ff=this['_getMarkersDataForGroup'](_0x59fe74);return _0x1365ff[0x0]?.['editor'];}['getMarkerElementForChange'](_0x327a54){const _0x35c4b6=Array['from'](this['_markers']['values']())['filter'](_0xf32a43=>_0xf32a43['groupId']===_0x327a54);if(!_0x35c4b6['length'])return null;const _0x5dfd23=0x1===_0x35c4b6['length']?_0x35c4b6[0x0]:this['_sortMarkers'](_0x35c4b6)[0x0],_0x3c15d5=_0x5dfd23['editor']['model']['markers']['get'](_0x5dfd23['id']);if(!_0x3c15d5)return null;return{'modelRange':_0x3c15d5['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0x5dfd23['id'])};}['getContentElementForChange'](_0x5f0b86){const _0x192df4=Array['from'](this['_markers']['values']())['filter'](_0x59acfe=>_0x59acfe['groupId']===_0x5f0b86);if(!_0x192df4['length'])return null;const _0x4c7e1d=0x1===_0x192df4['length']?_0x192df4[0x0]:this['_sortMarkers'](_0x192df4)[0x0],_0x103e0c=_0x4c7e1d['editor'],_0x5e9bf8=_0x103e0c['model']['markers']['get'](_0x4c7e1d['id']);if(!_0x5e9bf8)return null;const _0x57f884=_0x5e9bf8['getRange'](),_0x4854e2=_0x103e0c['editing']['view']['getDomRoot'](_0x57f884['root']['rootName'])||_0x103e0c['editing']['view']['getDomRoot']();if(!_0x4854e2||!_0x57f884)return null;let _0x10985b=_0x57f884['start']['parent'];for(;_0x10985b['parent']&&'$root'!==_0x10985b['parent']['name'];)_0x10985b=_0x10985b['parent'];if(!_0x10985b||!_0x10985b['name'])return null;const _0x3645d5=_0x4854e2['querySelector']('[data-marker-id=\x22'+_0x4c7e1d['id']+'\x22]');if(!_0x3645d5)return null;let _0xa827f3=null;_0x103e0c['model']['change'](_0x5147a7=>{_0xa827f3=_0x5147a7['createDocumentFragment'](),_0x5147a7['append'](_0x10985b['_clone'](!0x0),_0xa827f3);});const _0xe04d58=_0x103e0c['data']['toView'](_0xa827f3)['getChild'](0x0);return _0x3645d5['closest'](_0xe04d58['name']);}['reactivateMarkers'](_0x264acf){const _0xacd20a=this['_getMarkersDataForGroup'](_0x264acf);if(!_0xacd20a['length'])return;const _0x5ac2c7=Array['from'](this['_activeMarkers'])['sort'](),_0x1e124e=Array['from'](new Set(_0xacd20a['map'](_0x442afa=>_0x442afa['id'])))['sort']();_0x5ac2c7['join']('|')!==_0x1e124e['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0x264acf));}['setMarkersInElementAsActive'](_0x458d31){const _0x2aba7e=this['_getMarkersDataForGroup'](_0x458d31);if(!_0x2aba7e['length'])return;const _0x110a40=_0x2aba7e[0x0]['editor'],_0x2c7b8e=new Set(_0x2aba7e['map'](_0x56fd60=>_0x56fd60['id'])),_0x54cb62=Array['from'](_0x2c7b8e['values']())['map'](_0x120d88=>_0x110a40['model']['markers']['get'](_0x120d88))['filter'](_0x194e77=>!!_0x194e77);_0x2c7b8e['forEach'](_0x4a966e=>{this['_activeMarkers']['add'](_0x4a966e);}),_0x110a40['model']['change'](()=>{_0x54cb62['forEach'](_0x5a0676=>{_0x110a40['editing']['reconvertMarker'](_0x5a0676);});});}['setAllMarkersAsInactive'](){const _0x51ac34=Array['from'](this['_activeMarkers']);if(!_0x51ac34['length'])return;this['_activeMarkers']['clear']();const _0x9a0f43=new Map();for(const _0x39d042 of _0x51ac34){const _0x1969b2=this['_markers']['get'](_0x39d042);if(!_0x1969b2)continue;const _0x5d5985=_0x1969b2['editor'],_0x3235da=_0x5d5985['model']['markers']['get'](_0x39d042);_0x3235da&&(_0x9a0f43['has'](_0x5d5985)||_0x9a0f43['set'](_0x5d5985,[]),_0x9a0f43['get'](_0x5d5985)['push'](_0x3235da));}for(const [_0x5efaf6,_0x32d168]of _0x9a0f43)_0x5efaf6['model']['change'](()=>{_0x32d168['forEach'](_0x1bf7da=>{_0x5efaf6['editing']['reconvertMarker'](_0x1bf7da);});});}['_getPositionLimitingRange'](_0x1ab68e,_0x325769,_0xe68cf6='outside'){if(!_0x1ab68e)return null;let _0xc21438=_0x1ab68e['parent'];for(;_0xc21438&&_0xc21438['parent']&&'$root'!==_0xc21438['parent']['name']&&!_0x325769['model']['schema']['isLimit'](_0xc21438)&&!_0x325769['model']['schema']['isBlock'](_0xc21438);)_0xc21438=_0xc21438['parent'];if(!_0xc21438||!_0xc21438['name']||'$root'===_0xc21438['name'])return null;let _0x19bd89=null;return _0x325769['model']['change'](_0x467d96=>{_0x19bd89='inside'===_0xe68cf6?_0x467d96['createRangeIn'](_0xc21438):_0x467d96['createRangeOn'](_0xc21438);}),_0x19bd89;}['_validateMarkers'](_0x1f52dd,_0x4cb536){const _0x22ff22=Array['from'](this['_markers']['keys']()),_0x23ca74=new Map();for(const _0x3ca386 of _0x22ff22){const _0xe83dde=_0x1f52dd['model']['markers']['get'](_0x3ca386);if(!_0xe83dde)continue;const _0x37e681=_0xe83dde['getStart']()['root']['rootName']+':'+_0xe83dde['getStart']()['path'][0x0];_0x23ca74['has'](_0x37e681)||_0x23ca74['set'](_0x37e681,[]),_0x23ca74['get'](_0x37e681)['push'](_0xe83dde);}const _0x6d2816=new Set();for(const _0x55215f of _0x1f52dd['model']['document']['differ']['getChanges']()){let _0x37e5cf='',_0x45c86a=null;if('insert'===_0x55215f['type'])_0x45c86a=new ModelRange(_0x55215f['position'],_0x55215f['position']['getShiftedBy'](_0x55215f['length'])),_0x37e5cf=_0x55215f['position']['root']['rootName']+':'+_0x55215f['position']['path'][0x0];else{if('remove'!==_0x55215f['type'])continue;_0x45c86a=new ModelRange(_0x55215f['position']),_0x37e5cf=_0x55215f['position']['root']['rootName']+':'+_0x55215f['position']['path'][0x0];}const _0x49c592=_0x23ca74['get'](_0x37e5cf)||[];if(_0x49c592['length']){for(const _0x253c3e of _0x49c592)if(_0x45c86a['root']['rootName']===_0x253c3e['getRange']()['root']['rootName']&&('insert'!==_0x55215f['type']||!_0x45c86a['containsRange'](_0x253c3e['getRange']()))&&(_0x45c86a['isIntersecting'](_0x253c3e['getRange']())||_0x45c86a['start']['isTouching'](_0x253c3e['getRange']()['end'])||_0x45c86a['end']['isTouching'](_0x253c3e['getRange']()['start']))){const _0x4ab4d8=this['_parseMarkerName'](_0x253c3e['name']);Array['from'](this['_markers']['values']())['filter'](_0x26ec35=>_0x26ec35['groupId']===_0x4ab4d8['groupId'])['forEach'](_0x56813a=>_0x6d2816['add'](_0x56813a['id']));}}}if(_0x6d2816['size']){for(const _0x3de76d of _0x6d2816)_0x4cb536['removeMarker'](_0x3de76d);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x1df3cf){for(const {name:_0x45bc4f,data:_0x29aa85}of _0x1df3cf['model']['document']['differ']['getChangedMarkers']()){if(!_0x45bc4f['startsWith'](MARKER_PREFIX))continue;const _0x3da950=_0x29aa85['oldRange'],_0x368029=_0x29aa85['newRange'],_0x29c379=_0x3da950&&'$graveyard'===_0x3da950['root']['rootName'],_0x6e1dcf=_0x368029&&'$graveyard'===_0x368029['root']['rootName'];if(_0x29c379&&_0x6e1dcf)continue;const _0x1666b5=this['_parseMarkerName'](_0x45bc4f);this['_markers']['get'](_0x45bc4f)&&(_0x6e1dcf||!_0x368029?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x45bc4f,'changeId':_0x1666b5['groupId']}):_0x29c379&&_0x368029&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0x45bc4f,'changeId':_0x1666b5['groupId']}));}}['_parseMarkerName'](_0x2b664f){const _0x4ee3b1=_0x2b664f['split'](':'),_0x1d7c88=(_0x4ee3b1[0x1]||'')['split']('_');return{'prefix':_0x4ee3b1[0x0],'groupId':_0x1d7c88[0x0],'suffix':_0x1d7c88[0x1]};}['_translateOperationToEditorContent'](_0x721275,_0x5c2002,_0x4c2b31){if('insert'===_0x721275['type']){const _0x49fe9a=_0x721275;return new InsertOperation(this['_changePosition'](_0x5c2002['concat'](_0x49fe9a['position']['offset']),_0x4c2b31),_0x49fe9a['nodes'],_0x49fe9a['baseVersion']);}if('marker'===_0x721275['type']&&_0x721275['name']['startsWith']('$markedRemove')){const _0x59b28b=_0x721275;return new MarkerOperation(_0x59b28b['name'],_0x59b28b['oldRange'],this['_changeRange'](_0x59b28b['newRange'],_0x5c2002['concat'](_0x59b28b['newRange']['start']['offset']),_0x5c2002['concat'](_0x59b28b['newRange']['end']['offset']),_0x4c2b31),_0x59b28b['_markers'],_0x59b28b['affectsData'],_0x59b28b['baseVersion']);}return _0x721275;}['_groupAdjacentOperations'](_0x32ef5b){if(!_0x32ef5b['length'])return[];const _0x30edb4=[];let _0x159c10=0x0,_0x2668b6=0x0,_0x378330=[];for(let _0xc7681e=0x0;_0xc7681e<=_0x32ef5b['length'];_0xc7681e++){const _0x4acf8f=_0x32ef5b[_0xc7681e],_0x58f422=_0x32ef5b[_0xc7681e-0x1];!_0x4acf8f||_0x58f422&&!this['_getOperationEnd'](_0x58f422)['isTouching'](this['_getOperationStart'](_0x4acf8f))?(_0x30edb4['push']({'operations':_0x378330,'operationsIsolated':_0x378330['map'](_0x58f04f=>this['_shiftOperation'](_0x58f04f['clone'](),-_0x2668b6)),'groupOffset':_0x159c10}),_0x378330=_0x4acf8f?[_0x4acf8f]:[],_0x2668b6+=_0x159c10,_0x159c10=0x0):_0x378330['push'](_0x4acf8f),_0x4acf8f&&'insert'===_0x4acf8f['type']&&(_0x159c10+=_0x4acf8f['howMany']);}return _0x30edb4;}['_findAdjacentContextDistance'](_0x10a9ea,_0x4d5d99,_0x22cd53,_0xaa693e=0x1){const _0x51080c=new ModelTreeWalker({'startPosition':_0x10a9ea,'direction':_0x4d5d99});let _0x58fda2=0x0;for(let _0x263cd4=0x0;_0x263cd4<_0xaa693e;_0x263cd4++){let _0x2932ee=0x0,_0x2ab267=!0x1,_0x45aef0='forward'===_0x4d5d99?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x44690a}of _0x51080c)if(_0x44690a['is']('$textProxy')){const _0x2c3812=_0x45aef0['exec'](_0x44690a['data']);if(_0x2c3812&&_0x2c3812['length']){if(_0x2932ee+='forward'===_0x4d5d99?_0x2c3812['index']+_0x2c3812[0x0]['length']:_0x44690a['data']['length']-_0x2c3812['index'],_0x2c3812[0x0]['length']!==_0x44690a['data']['length'])break;_0x2ab267=!0x0,_0x45aef0='forward'===_0x4d5d99?/^\w+/:/\w+$/;}else{if(_0x2ab267)break;_0x2932ee+=_0x44690a['offsetSize'];}}else{if(_0x44690a['is']('element')){_0x22cd53['isInline'](_0x44690a)&&!_0x2ab267&&(_0x2932ee+=0x1);break;}}_0x58fda2+=_0x2932ee,_0x51080c['jumpTo'](_0x10a9ea['getShiftedBy']('forward'===_0x4d5d99?_0x58fda2:-_0x58fda2));}return _0x58fda2;}['_getChangeContext'](_0x1ec6a8,_0x12cf6f,_0xb671e2){const _0x40e2f7=_0xb671e2['model']['schema'],_0x27a027=this['_findAdjacentContextDistance'](_0x1ec6a8,'backward',_0x40e2f7,CHANGE_CONTEXT_WORDS_LIMIT),_0x3e188e=this['_findAdjacentContextDistance'](_0x12cf6f,'forward',_0x40e2f7,CHANGE_CONTEXT_WORDS_LIMIT),_0x99ede3=_0x1ec6a8['getShiftedBy'](-_0x27a027),_0x28a8cd=_0x12cf6f['getShiftedBy'](_0x3e188e);return{'start':_0x99ede3,'end':_0x28a8cd,'hasContentBefore':!_0x99ede3['isAtStart'],'hasContentAfter':!_0x28a8cd['isAtEnd']};}['_insertMarkers'](_0x26735f,_0x1af8d9){const _0x507791=this['context']['plugins']['get']('AIEditing'),_0x381ed4=new Set();_0x1af8d9['model']['change'](_0x7c751c=>{for(const _0x524837 of _0x26735f){const _0x4a9d27=''+MARKER_PREFIX+_0x524837['type']+':'+_0x524837['groupId']+'_'+_0x507791['_nextDataId'](_0x381ed4);this['_markers']['set'](_0x4a9d27,{'id':_0x4a9d27,'groupId':_0x524837['groupId'],'type':_0x524837['type'],'content':_0x524837['content'],'editor':_0x1af8d9}),_0x7c751c['addMarker'](_0x4a9d27,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x7c751c['createRange'](_0x524837['start'],_0x524837['end'])});}});}['_createGetContextFn'](_0x317877,_0x47c346,_0x59d3bb){let _0x215203='';return()=>{if(!_0x215203){const _0x508f80=_0x47c346['toView'](_0x317877,{'showSuggestionHighlights':!0x0});let _0x104f8f=_0x508f80['getChild'](0x0);if(_0x104f8f['is']('containerElement')||(_0x104f8f=_0x508f80),!_0x104f8f)return'';let _0x195211=!0x1;const _0x2b7683=[];for(const _0x2ab293 of _0x104f8f['getChildren']())_0x2ab293['is']('element','span')&&_0x2ab293['hasClass']('ck-ai_review-marker_context-end')&&(_0x195211=!0x1),_0x195211&&_0x2b7683['push'](_0x2ab293),_0x2ab293['is']('element','span')&&_0x2ab293['hasClass']('ck-ai_review-marker_context-start')&&(_0x195211=!0x0);_0x104f8f['_removeChildren'](0x0,_0x104f8f['childCount']),_0x59d3bb?.['ellipsisBefore']&&_0x104f8f['_appendChild']('…'),_0x104f8f['_appendChild'](_0x2b7683),_0x59d3bb?.['ellipsisAfter']&&_0x104f8f['_appendChild']('…');const _0x3f9438=_0x47c346['htmlProcessor']['domConverter']['viewToDom'](_0x508f80),_0x43dcbd=_0x47c346['htmlProcessor']['htmlWriter']['getHtml'](_0x3f9438);_0x215203=_0x43dcbd;}return _0x215203;};}['_createGetContentFn'](_0x10bf62,_0x1fb4da){let _0xa73b7f='';return()=>(_0xa73b7f||(_0xa73b7f=_0x1fb4da['stringify'](_0x10bf62,{'showSuggestionHighlights':!0x0})),_0xa73b7f);}['_createGetContentUsingDataIdFn'](_0x25f708,_0x2c7cd2,_0x1f79a4){let _0x2438b0='';return()=>{if(!_0x2438b0){const _0x25c590=_0x1f79a4['toView'](new ModelDocumentFragment(_0x25f708)),_0x2981bf=_0x1f79a4['htmlProcessor']['domConverter']['viewToDom'](_0x25c590)['querySelector']('[data-id=\x22'+_0x2c7cd2+'\x22]');_0x2438b0=_0x2981bf?.['outerHTML']||'';}return _0x2438b0;};}['_findMarkerElement'](_0x3f1191,_0x3eb11e=0x5){let _0x306a4c=_0x3f1191,_0x1401db=null;for(let _0x552481=0x0;_0x552481<_0x3eb11e&&_0x306a4c;_0x552481++){if(!_0x306a4c['className']){_0x306a4c=_0x306a4c['parentElement'];continue;}if(!(''+_0x306a4c['className'])['includes']('ck-ai_review-marker_')){_0x306a4c=_0x306a4c['parentElement'];continue;}if(!_0x306a4c['getAttribute']('data-marker-id'))break;_0x1401db=_0x306a4c;break;}return _0x1401db;}['_findMarkerElementById'](_0x975dd3){const _0x3c0a7c=this['_markers']['get'](_0x975dd3),_0xb7d3be=_0x3c0a7c?.['editor']??getEditorFromContext(this['context']),_0x4bb090=_0xb7d3be['model']['markers']['get'](_0x975dd3);return _0x4bb090?getMarkerDomElement(_0xb7d3be['editing'],_0x4bb090):null;}['_getMarkersDataForGroup'](_0x110606){return Array['from'](this['_markers']['values']())['filter'](_0x21056c=>_0x21056c['groupId']===_0x110606);}['_getOperationStart'](_0x3c91dc){return'insert'===_0x3c91dc['type']?_0x3c91dc['position']:_0x3c91dc['newRange']['start'];}['_getOperationEnd'](_0xeb059,_0x2e1a9e=!0x1){return'insert'===_0xeb059['type']?_0x2e1a9e?_0xeb059['position']:_0xeb059['position']['getShiftedBy'](_0xeb059['howMany']):_0xeb059['newRange']['end'];}['_shiftOperation'](_0x3ea5fc,_0x30c9be){return'insert'===_0x3ea5fc['type']?_0x3ea5fc['position']=_0x3ea5fc['position']['getShiftedBy'](_0x30c9be):'marker'===_0x3ea5fc['type']&&_0x3ea5fc['newRange']&&(_0x3ea5fc['newRange']=new ModelRange(_0x3ea5fc['newRange']['start']['getShiftedBy'](_0x30c9be),_0x3ea5fc['newRange']['end']['getShiftedBy'](_0x30c9be))),_0x3ea5fc;}['_changeOperationOwnerDocument'](_0x244a35,_0x3b47d1){'insert'===_0x244a35['type']?_0x244a35['position']=this['_changePositionOwnerDocument'](_0x244a35['position'],_0x3b47d1):'marker'===_0x244a35['type']&&_0x244a35['newRange']&&(_0x244a35['newRange']=this['_changeRangeOwnerDocument'](_0x244a35['newRange'],_0x3b47d1));}['_changePositionOwnerDocument'](_0x5ea780,_0x386774){return new ModelPosition(_0x386774,_0x5ea780['path']);}['_changeRangeOwnerDocument'](_0x51e51b,_0x4f5fb0){return new ModelRange(this['_changePositionOwnerDocument'](_0x51e51b['start'],_0x4f5fb0),this['_changePositionOwnerDocument'](_0x51e51b['end'],_0x4f5fb0));}['_changePosition'](_0x1f454f,_0x47eca4){return new ModelPosition(_0x47eca4,[..._0x1f454f]);}['_changeRange'](_0x5a462a,_0xb9c86b,_0x573339,_0xcd2129){return new ModelRange(this['_changePosition'](_0xb9c86b,_0xcd2129),this['_changePosition'](_0x573339,_0xcd2129));}['_sortMarkers'](_0x786b60){const _0x53bf20=_0x4ad78c=>{switch(_0x4ad78c){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x786b60['sort']((_0xded9ae,_0x2a03b3)=>_0x53bf20(_0xded9ae['type'])-_0x53bf20(_0x2a03b3['type']));}['_hasSameTopLevelElement'](_0x10e6a0,_0xc0d2f3){const _0x3b5abd=_0x10e6a0['getChild'](0x0),_0x52e756=_0xc0d2f3['getChild'](0x0);return!(!_0x3b5abd||!_0x52e756)&&((!_0x3b5abd['is']('element')||!_0x52e756['is']('element')||_0x3b5abd['name']===_0x52e756['name'])&&!(_0x3b5abd['is']('element')&&!_0x52e756['is']('element')||!_0x3b5abd['is']('element')&&_0x52e756['is']('element')));}['_haveSingleTopLevelElement'](_0x2b6b74){return 0x1===_0x2b6b74['childCount'];}['_haveOnlyInlineContent'](_0xac34ab,_0x5a1018){for(const _0x16160d of _0xac34ab['getChildren']())if(_0x16160d['is']('element')&&!_0x5a1018['isInline'](_0x16160d))return!0x1;return!0x0;}['_upsertDataId'](_0x4ce92b,_0x346cce){let _0x2c7ec7=_0x4ce92b['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);return _0x2c7ec7||(_0x2c7ec7=_0x346cce(),_0x4ce92b['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x2c7ec7)),_0x2c7ec7;}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x5da55b,contentNew:_0x22e481,contentInitial:_0x158fdd,documentVersion:_0x2aa70f}){super(),this['id']=_0x5da55b,this['contentNew']=_0x22e481,this['contentInitial']=_0x158fdd,this['documentVersion']=_0x2aa70f;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0x2bd99f,_0x343261,_0x97d5f9){super(),this['id']=_0x2bd99f,this['parent']=_0x97d5f9,this['_data']=_0x343261,this['set']('isActivated',!0x1),this['set']('isRated',!0x1),this['set']('status','pending'),this['on']('change:status',()=>{'pending'!==this['status']&&this['isActivated']&&(this['isActivated']=!0x1);});}get['contentDiffed'](){return this['_data']['context']();}get['operations'](){return this['_data']['operations'];}get['operationsIsolated'](){return this['_data']['operationsIsolated'];}}class AIReviewCheckRun extends ObservableMixin(){['id']=uid();['callId'];['_results']=new Map();['_changes']=[];['_sourceCheck'];['_documentData'];['_aiConnector'];['_reviewParams'];['_reviewArgs'];['_activeRequest']=null;['_currentError'];['_wasAborted']=!0x1;constructor(_0x2184e6,_0x1934ff,_0x5403f8,_0x3e551e,_0x411c79){super(),this['_sourceCheck']=_0x1934ff,this['_documentData']=_0x2184e6,this['_aiConnector']=_0x5403f8,this['_reviewParams']=_0x3e551e,this['_reviewArgs']=_0x411c79,this['on']('change:status',(_0x13a611,_0x4baf66,_0x448970)=>{'aborted'==_0x448970&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x448970,'run':this,'error':this['_currentError']});}),this['set']('status','initialized');}get['documentData'](){return this['_documentData'];}get['processedResultsCount'](){return this['_results']['size'];}get['title'](){return this['_sourceCheck']['title'];}get['subTitle'](){return'';}get['reviewName'](){return this['_sourceCheck']['id'];}get['hasModifications'](){return!this['_changes']['every'](_0xb4cc4d=>'pending'===_0xb4cc4d['status']);}get['currentError'](){return this['_currentError'];}['updateDocumentData'](_0x593c2b){this['_documentData']=_0x593c2b;}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x5dc453=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0x47faa5 of _0x5dc453)'unmodified'!==_0x47faa5['data']['operation']&&('error'!==_0x47faa5['data']['operation']?'review-metadata'!==_0x47faa5['event']?this['_addReviewCheckResult'](_0x47faa5['data']['dataId'],_0x47faa5['data']['textDelta']):this['callId']=_0x47faa5['data']['callId']:this['status']='error-chunk');'error-chunk'!==this['status']&&(0x0===this['_results']['size']||0x0===this['_changes']['length']?this['status']='unmodified':this['status']='ready');}catch(_0x521519){this['_currentError']=_0x521519,_0x521519 instanceof Error&&_0x521519['message']['includes']('ai-request-aborted')?this['status']='aborted':this['status']='error-general';}finally{this['_activeRequest']=null;}}async['restart'](){this['_results']['clear'](),this['_changes']['length']=0x0,this['_currentError']=void 0x0,await this['start']();}['addResultChanges'](_0x4c9e64,_0xb2c89d){const _0x71e385=this['_results']['get'](_0x4c9e64);if(!_0x71e385)return;if(0x0===_0xb2c89d['length'])return;const _0x3ab2c4=[];_0xb2c89d['forEach']((_0x446e1a,_0x267a4d)=>{const _0x1b198b=new AIReviewCheckResultChange(_0x71e385['id']+'-'+_0x267a4d,_0x446e1a,_0x71e385);_0x1b198b['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x1b198b,'status':_0x1b198b['status']});}),_0x1b198b['on']('change:isActivated',()=>{_0x1b198b['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x1b198b}):this['fire']('reviewCheckResultDeactivated',{'change':_0x1b198b});}),this['_changes']['push'](_0x1b198b),_0x3ab2c4['push'](_0x1b198b);}),this['fire']('reviewCheckResultReady',{'changes':_0x3ab2c4,'result':_0x71e385,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0x3ff3ad){const _0x5aba82=this['_changes']['find'](_0x1e1384=>_0x1e1384['id']===_0x3ff3ad);return!(!_0x5aba82||'pending'!==_0x5aba82['status']);}['isAnyChangeActivated'](){return this['_changes']['some'](_0x41895e=>!0x0===_0x41895e['isActivated']);}['getActiveChanges'](){return this['_changes']['filter'](_0x25f07e=>'pending'===_0x25f07e['status']);}['getChangeById'](_0x4417f5){return this['_changes']['find'](_0xb20a9c=>_0xb20a9c['id']===_0x4417f5);}['markAllChangesAsAccepted'](){for(const _0x1441c8 of this['_changes'])'pending'===_0x1441c8['status']&&(_0x1441c8['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x45bc31){const _0x3eb7e8=this['_changes']['find'](_0xe85426=>_0xe85426['id']===_0x45bc31);_0x3eb7e8&&'pending'===_0x3eb7e8['status']&&(_0x3eb7e8['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x479610){const _0x4a40c8=this['_changes']['find'](_0x320d2e=>_0x320d2e['id']===_0x479610);_0x4a40c8&&'pending'===_0x4a40c8['status']&&(_0x4a40c8['status']='rejected'),this['_checkIfFinished']();}['markChangeAsOutdated'](_0x591745){const _0xe130a3=this['_changes']['find'](_0x21a962=>_0x21a962['id']===_0x591745);_0xe130a3&&'pending'===_0xe130a3['status']&&(_0xe130a3['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x521b00){const _0x7603da=this['_changes']['find'](_0x501894=>_0x501894['id']===_0x521b00);_0x7603da&&'outdated'===_0x7603da['status']&&(_0x7603da['status']='pending'),this['_checkIfFinished']();}['activateChange'](_0x519134){this['_changes']['filter'](_0x39a9d7=>_0x39a9d7['isActivated']&&_0x39a9d7['id']!==_0x519134)['forEach'](_0x161cff=>{_0x161cff['isActivated']=!0x1;});const _0x40840a=this['_changes']['find'](_0x44cc2a=>_0x44cc2a['id']===_0x519134);_0x40840a&&'pending'===_0x40840a['status']&&(_0x40840a['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x3b7404=>_0x3b7404['isActivated'])['forEach'](_0x5b0081=>{_0x5b0081['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0x15d027){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x5352e7;if(_0x15d027){const _0x10ba1a=this['_changes']['find'](_0x4d4c44=>_0x4d4c44['id']===_0x15d027);if(_0x10ba1a&&_0x10ba1a['isRated'])return;_0x10ba1a&&(_0x5352e7=_0x10ba1a['parent']['id'],_0x10ba1a['isRated']=!0x0);}const _0x53fa4a={'positiveCount':this['_changes']['filter'](_0x1a944e=>'accepted'===_0x1a944e['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x53fa4a,this['callId'],_0x5352e7);}['_addReviewCheckResult'](_0x47ed9a,_0x17309f){const _0x2c89e9=this['_documentData']['elements']['get'](_0x47ed9a);if(!_0x2c89e9)return;const _0x285a05=_0x2c89e9['getContent']();if(_0x285a05===_0x17309f)return;const _0x3ee412=new AIReviewCheckResult({'id':_0x47ed9a,'contentInitial':_0x285a05,'contentNew':_0x17309f,'documentVersion':_0x2c89e9['documentVersion']});this['_results']['set'](_0x3ee412['id'],_0x3ee412),this['fire']('reviewCheckResultAdded',{'result':_0x3ee412,'source':this,'editor':_0x2c89e9['editor']});}['_checkIfFinished'](){'finished'===this['status']&&(this['_changes']['filter'](_0x15c27d=>'pending'===_0x15c27d['status'])['length']>0x0&&(this['status']='ready')),'ready'===this['status']&&(0x0===this['_changes']['filter'](_0x19dd81=>'pending'===_0x19dd81['status'])['length']&&(this['status']='finished'));}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x10b24b=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x133866=0x0;_0x133866<this['_reviewParams']['length'];_0x133866++){if(!this['_reviewParams'][_0x133866]||!this['_sourceCheck']['options'][_0x133866])continue;const _0x2e106b=this['_sourceCheck']['options'][_0x133866],_0x587a47=_0x2e106b['data']?.['find'](_0x13c304=>_0x13c304['id']===this['_reviewParams'][_0x133866]);_0x587a47&&_0x10b24b['push'](_0x587a47['label']);}return _0x10b24b['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x305d8e,_0x24c0bd,_0x4ea036){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x24c0bd,_0x305d8e,_0x4ea036);}['_composeReviewName'](){return!this['_reviewParams']||0x0===this['_reviewParams']['length']||this['_sourceCheck']['useArgs']?this['_sourceCheck']['apiId']:[this['_sourceCheck']['apiId'],...this['_reviewParams']]['join']('-');}}class AIReviewCoreController extends ContextPlugin{['_aiConnector'];['_aiReviewCoreUi'];['_aiReviewCoreEditing'];['_aiReviewCheckList'];['_currentReviewCheckRun'];['_changeActivationSource']=null;static get['requires'](){return[AIConnector];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['_initRequiredPlugins'](),this['_aiReviewCheckList']=await this['_getChecksList'](),this['listenTo'](this['_aiReviewCoreUi'],'getReviewCheckList',()=>{this['_aiReviewCoreUi']['setAvailableChecks'](this['_aiReviewCheckList']['checks']);}),this['listenTo'](this['_aiReviewCoreUi'],'runReviewCheck',async(_0x22fb48,_0x74c694)=>{const _0x426c91=this['_aiReviewCheckList']['getCheckById'](_0x74c694['id']);if(_0x426c91){this['_onReviewCheckRun'](_0x74c694),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x74c694,_0x426c91),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x467167,_0x5a2ed6)=>{switch(_0x5a2ed6['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0x5a2ed6);break;case'finished':this['_onCheckRunFinished']();break;case'ready':this['_aiReviewCoreUi']['showActionsWhenResultIsReady']();break;case'unmodified':this['_aiReviewCoreUi']['showNoChangesView']();break;case'error-general':this['_aiReviewCoreUi']['showGeneralResultsErrorView'](),this['_logError'](new CKEditorError('ai-review-mode-check-run-general-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'error-chunk':this['_aiReviewCoreUi']['showChunkErrorView'](),this['_logError'](new CKEditorError('ai-review-mode-check-run-chunk-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'aborted':this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['processedResultsCount']>0x0?setTimeout(()=>{this['_currentReviewCheckRun']?.['forceReadyState']();},0x0):this['_onReviewRunLeave'](!0x0);}'ready'!==_0x5a2ed6['status']&&'error-chunk'!==_0x5a2ed6['status']&&'error-general'!==_0x5a2ed6['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x491584,_0x5400f7)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0x4633be=this['_diffContent'](_0x5400f7['editor'],_0x5400f7['result']['contentInitial'],_0x5400f7['result']['contentNew']);_0x5400f7['source']['addResultChanges'](_0x5400f7['result']['id'],_0x4633be);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x56fe1a,_0xc11a6b)=>{for(const _0x460f8a of _0xc11a6b['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0x460f8a);this['_markChangePositionInEditorContent'](_0xc11a6b['changes'],_0xc11a6b['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultChangeStatusUpdated',(_0x3cdeb0,_0x6ffc5a)=>{this['_aiReviewCoreUi']['updateChangeState'](_0x6ffc5a['change']['id'],_0x6ffc5a['status']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0xa8be3,_0xb08d80)=>{this['_onReviewCheckResultActivated'](_0xb08d80);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x59a0ab){_0x59a0ab instanceof Error&&_0x59a0ab['message']['includes']('ai-request-aborted')||(_0x59a0ab instanceof CKEditorError?this['_logError'](_0x59a0ab):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,void 0x0,_0x59a0ab)));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0x74c694['id']}));}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReview',()=>{this['_onReviewRunLeave']();}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReviewCoreResultList',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'abortReviewStream',()=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['abort']();}),this['listenTo'](this['_aiReviewCoreUi'],'finishReview',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'acceptAllChanges',()=>{if(!this['_currentReviewCheckRun'])return;const _0x4059a9=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x4059a9['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x4059a9['map'](_0x4b7b2e=>_0x4b7b2e['id']));const _0x4c6115=this['_currentReviewCheckRun'];_0x4c6115['markAllChangesAsAccepted'](),_0x4c6115['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x3f34b2,_0x4ead46)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x4ead46['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x4ead46['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x4ead46['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x4ead46['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x3413ed,_0x41a29f)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x41a29f['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0x41a29f['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x41a29f['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x41a29f['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'retryReview',async()=>{this['_currentReviewCheckRun']&&(this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_currentReviewCheckRun']['updateDocumentData'](this['_aiReviewCoreEditing']['getDocumentData']()),await this['_currentReviewCheckRun']['restart']());}),this['listenTo'](this['_aiReviewCoreUi'],'activateChange',(_0x39eb6e,_0x16438f)=>{this['_onActivateChange'](_0x16438f);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x5e2f5d,_0x228753)=>{this['_onDeactivateChange'](_0x228753);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x116ffe,_0x694caa)=>{this['_onChangeMarkerClicked'](_0x116ffe,_0x694caa);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x1fc24b,_0x1fa1d8)=>{this['_onChangeMarkerHovered'](_0x1fc24b,_0x1fa1d8);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x59a61d,_0x2d5a88)=>{this['_onChangeMarkerRemoved'](_0x59a61d,_0x2d5a88);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x203279,_0x1e5591)=>{this['_onChangeMarkerRestored'](_0x203279,_0x1e5591);});}['_createReviewCheckRun'](_0x27160c,_0x5d115f){return new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x5d115f,this['_aiConnector'],_0x27160c['params'],_0x27160c['args']);}['_onChangeMarkerRemoved'](_0x4a6c77,_0xb9dae7){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0xb9dae7['changeId']);}['_onChangeMarkerRestored'](_0x514b69,_0xbfc7c5){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0xbfc7c5['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}['_initRequiredPlugins'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector');}['_onReviewRunLeave'](_0x4e0d55=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x4e0d55&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;for(const _0x445654 of this['_aiReviewCoreEditing']['getEditors']())_0x445654['editing']['view']['change'](_0x44d56d=>{for(const _0x215e71 of _0x445654['editing']['view']['document']['getRoots']())_0x44d56d['removeClass']('ck-ai_review-diff',_0x215e71),_0x44d56d['removeClass']('ck-ai_review-highlights',_0x215e71),_0x44d56d['removeClass']('ck-ai-translate-mode-content',_0x215e71);});}['_getTranslationWithDefault'](_0x58b8dc,_0x43d66e){const _0x411ac2=getTranslation$i(this['context']['locale'],_0x58b8dc);return _0x411ac2===_0x58b8dc?_0x43d66e:_0x411ac2;}['_logError'](_0x2bbefa,_0x4536bb=!0x1){logError(_0x2bbefa['message']),_0x4536bb||(_0x2bbefa['message']['startsWith']('ai-review-mode-models-unable-to-retrieve')?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']());}['_scrollToChange'](_0x39ecce){if('content'===this['_changeActivationSource']){const _0x154e22=this['_aiReviewCoreUi']['getChangeElement'](_0x39ecce);_0x154e22&&scrollAncestorsToShowTarget(_0x154e22['closest']('.ck-ai_review__check-run-result')||_0x154e22);}else{if('panel'===this['_changeActivationSource']){const _0xaa0d0d=this['_getChangeContentElement'](_0x39ecce);if(!_0xaa0d0d)return;scrollViewportToShowTarget({'target':_0xaa0d0d,'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0});}}}}const AI_REVIEW_CHECKS=[{'id':'custom','commandId':'custom','title':'Custom\x20command','description':'Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','isParameterized':!0x0},{'id':'correctness','commandId':'correctness','title':'Correctness','description':'Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','isParameterized':!0x1},{'id':'clarity','commandId':'clarity','title':'Clarity','description':'Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'readability','commandId':'readability','title':'Readability','description':'Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','isParameterized':!0x1},{'id':'length','commandId':'make','title':'Adjust\x20length','description':'Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','isParameterized':!0x0,'options':[{'formType':'dropdown','label':'Adjust\x20length','default':'longer','data':[{'label':'Longer','id':'longer'},{'label':'Shorter','id':'shorter'}]}]},{'id':'tone','commandId':'make-tone','title':'Adjust\x20tone\x20and\x20style','description':'Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','isParameterized':!0x0,'options':[{'formType':'dropdown','label':'Adjust\x20tone\x20and\x20style','default':'casual','data':[{'label':'Casual','id':'casual'},{'label':'Direct','id':'direct'},{'label':'Friendly','id':'friendly'},{'label':'Confident','id':'confident'},{'label':'Professional','id':'professional'}]}]}];class AIReviewCheck{['id'];['commandId'];['title'];['description'];['isParameterized'];['useArgs'];['options'];['args'];get['apiId'](){return this['commandId'];}constructor(_0x390ea0){this['id']=_0x390ea0['id'],this['commandId']=_0x390ea0['commandId'],this['title']=_0x390ea0['title'],this['description']=_0x390ea0['description'],this['isParameterized']=_0x390ea0['isParameterized'],this['useArgs']=_0x390ea0['useArgs'],this['options']=_0x390ea0['options'],this['args']=_0x390ea0['args'];}}class AIReviewCheckList extends ObservableMixin(){['_checks']=[];['setupChecks'](_0x172d17){this['_checks']=_0x172d17['map'](_0x5a94d6=>new AIReviewCheck(_0x5a94d6));}get['checks'](){return this['_checks'];}['getCheckById'](_0x1ccf5b){return this['checks']['find'](_0x15a4ac=>_0x15a4ac['id']===_0x1ccf5b);}['removeCheckById'](_0xc14680){this['_checks']=this['_checks']['filter'](_0x3aa0ea=>_0x3aa0ea['id']!==_0xc14680);}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];['_defaultModel']=null;constructor(_0x43a71f,_0x5b75a1,_0x30f736){super(_0x43a71f),this['_models']=_0x5b75a1,this['_defaultModel']=_0x30f736;}get['models'](){return this['_models'];}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewCheckExtra extends AIReviewCheck{['isExtra']=!0x0;['prompt'];['model'];['_defaultModel']=null;constructor(_0x2abdaf,_0x380f33,_0x14097a){super(_0x2abdaf),this['prompt']=_0x2abdaf['prompt'],this['model']=_0x2abdaf['model'],this['model']?this['_defaultModel']=_0x380f33['find'](_0x5b8aa7=>_0x5b8aa7['id']===this['model'])||null:this['_defaultModel']=_0x14097a;}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewModeCheckList extends AIReviewCheckList{['_allModels']=[];['_recommendedModels']=[];['_defaultModel']=null;constructor(_0x54612a,_0x3f3a29,_0x5ea428){super(),this['_allModels']=_0x54612a,this['_recommendedModels']=_0x3f3a29,this['_defaultModel']=_0x5ea428;}['setupChecks'](_0x44a9ba){this['_checks']=_0x44a9ba['map'](_0x2a9470=>!0x0===_0x2a9470['isExtra']?new AIReviewCheckExtra(_0x2a9470,this['_allModels'],this['_defaultModel']):'custom'===_0x2a9470['id']?new AIReviewCheckCustom(_0x2a9470,this['_recommendedModels'],this['_defaultModel']):new AIReviewCheck(_0x2a9470));}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x3d86c9,_0x376e4d,_0x3c6b73,_0x4e016f,_0x1b08d9){super(_0x3c6b73,_0x4e016f,_0x1b08d9),this['_prompt']=_0x3d86c9,this['_model']=_0x376e4d;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x189a68,_0x461a3f,_0x18e9ac){return this['_aiConnector']['upsertCustomAIReviewRating'](_0x461a3f,_0x189a68,_0x18e9ac);}}class AIReviewExtraCheckRun extends AIReviewCustomCheckRun{get['subTitle'](){return'';}set['prompt'](_0x4707de){this['_prompt']=_0x4707de;}set['model'](_0x20bd6b){this['_model']=_0x20bd6b;}}class AIReviewModeController extends AIReviewCoreController{static get['pluginName'](){return'AIReviewModeController';}['_isDiffOn']=!0x1;['_hasDefaultAvailableCommands']=!0x1;constructor(_0x1fb9b8){super(_0x1fb9b8),this['_hasDefaultAvailableCommands']=!this['context']['config']['get']('ai.review.availableCommands'),this['context']['config']['define']('ai.review.availableCommands',AI_REVIEW_CHECKS['map'](_0x575137=>_0x575137['id'])),this['context']['config']['define']('ai.review.extraCommands',[]);}async['init'](){await super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x182f3d,_0x55cb98)=>{this['_isDiffOn']=_0x55cb98['on'],this['_onDiffChange'](this['_isDiffOn']);});}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x391ec3,_0x145a1d){return _0x391ec3['isCustom']?new AIReviewCustomCheckRun(_0x391ec3['args']['prompt'],_0x391ec3['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x145a1d,this['_aiConnector']):_0x145a1d['isExtra']?new AIReviewExtraCheckRun(_0x145a1d['prompt'],_0x145a1d['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x145a1d,this['_aiConnector']):new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x145a1d,this['_aiConnector'],_0x391ec3['params'],_0x391ec3['args']);}['_onReviewCheckResultActivated'](_0x5b3fc3){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x5b3fc3['change']['id']),this['_scrollToChange'](_0x5b3fc3['change']['id']);const _0x5ac610=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x5b3fc3['change']['id']);if(!_0x5ac610)return;const _0x57537b=this['_aiReviewCoreEditing']['getEditorForChange'](_0x5b3fc3['change']['id'])??this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x5b3fc3['change'],()=>_0x5ac610['getElement'](),void 0x0,'click',this['_getBalloonDomRoot'](_0x57537b,_0x5ac610['modelRange']['root']['rootName']),_0x57537b?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x5b3fc3['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}['_onActivateChange'](_0x2d4836){this['_currentReviewCheckRun']&&'click'===_0x2d4836['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x2d4836['id']));}['_onDeactivateChange'](_0x35a266){this['_currentReviewCheckRun']&&'balloon'===_0x35a266['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x154de0,_0xe9bec8){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0xe9bec8['changeId']);const _0x266c58=this['_currentReviewCheckRun']['getChangeById'](_0xe9bec8['changeId']);if(!_0x266c58)return;const _0x5d959a=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0xe9bec8['changeId']),_0x1810a5=this['_aiReviewCoreEditing']['getEditorForChange'](_0xe9bec8['changeId'])??this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x266c58,_0xe9bec8['markerElement'],_0xe9bec8['domEvent'],'click',this['_getBalloonDomRoot'](_0x1810a5,_0x5d959a?.['modelRange']['root']['rootName']),_0x1810a5?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0x56ccf5,_0x2fc667){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0x10311e=this['_currentReviewCheckRun']['getChangeById'](_0x2fc667['changeId']);if(!_0x10311e)return;const _0x2f1509=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x2fc667['changeId']),_0x2a2af2=this['_aiReviewCoreEditing']['getEditorForChange'](_0x2fc667['changeId'])??this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x10311e,_0x2fc667['markerElement'],_0x2fc667['domEvent'],'hover',this['_getBalloonDomRoot'](_0x2a2af2,_0x2f1509?.['modelRange']['root']['rootName']),_0x2a2af2?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){if(!this['_currentReviewCheckRun'])return;this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']();}['_getChangeContentElement'](_0x2be521){const _0x4936e9=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x2be521);return _0x4936e9?_0x4936e9['getElement']():null;}['_markChangePositionInEditorContent'](_0x46fe3a,_0x3df5ce){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x46fe3a,_0x3df5ce);}['_diffContent'](_0x24a206,_0x5af63e,_0x44899f){return this['_aiReviewCoreEditing']['diffContent'](_0x24a206,_0x5af63e,_0x44899f,!0x1);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x434e83){_0x434e83?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon']();for(const _0x4aa55e of this['_aiReviewCoreEditing']['getEditors']())_0x4aa55e['editing']['view']['change'](_0x382f38=>{for(const _0x276d34 of _0x4aa55e['editing']['view']['document']['getRoots']()){for(const _0x28e751 of _0x276d34['getClassNames']())_0x28e751['startsWith']('ck-ai_review-')&&_0x382f38['removeClass'](_0x28e751,_0x276d34);_0x382f38['addClass'](_0x434e83?'ck-ai_review-diff':'ck-ai_review-highlights',_0x276d34);}});}['_getBalloonDomRoot'](_0x54e4a7,_0x4a52a2){const _0x3371ea=_0x54e4a7['editing']['view'];if(_0x4a52a2){const _0x4bf6e3=_0x3371ea['getDomRoot'](_0x4a52a2);if(_0x4bf6e3)return _0x4bf6e3;}return _0x3371ea['getDomRoot']()??void 0x0;}async['_getChecksList'](){const _0x4ce83a=[...AI_REVIEW_CHECKS,...this['_getExtraChecks']()],_0x3a950f=this['context']['config']['get']('ai.review.availableCommands')||[];this['_logErrorForNonExistentChecks'](_0x3a950f,_0x4ce83a);let _0x31895c=_0x4ce83a;this['_hasDefaultAvailableCommands']||(_0x31895c=_0x3a950f['map'](_0x354bc9=>_0x4ce83a['find'](_0xb462fb=>_0xb462fb['id']===_0x354bc9))['filter'](_0x295058=>!!_0x295058)),_0x31895c=_0x31895c['map'](_0x2ce2da=>_0x2ce2da['isExtra']?_0x2ce2da:this['_translateReviewCheck'](_0x2ce2da));const _0x4d93ed=_0x31895c['some'](_0x43d7c8=>_0x43d7c8['isExtra']||'custom'===_0x43d7c8['id']);let _0x212223=[],_0x29f00a=[],_0x4bb8e7=null;if(_0x4d93ed){const _0x3cf1f7=await this['_getModels']();_0x212223=_0x3cf1f7['all'],_0x29f00a=_0x3cf1f7['recommended'],_0x4bb8e7=_0x3cf1f7['default'];}const _0x405bf7=new AIReviewModeCheckList(_0x212223,_0x29f00a,_0x4bb8e7);return _0x405bf7['setupChecks'](_0x31895c),_0x4d93ed&&this['_filterChecksWithMissingModel'](_0x405bf7),_0x405bf7;}['_getExtraChecks'](){return(this['context']['config']['get']('ai.review.extraCommands')||[])['map'](_0x12105a=>({'id':_0x12105a['id'],'commandId':_0x12105a['id'],'title':_0x12105a['label'],'description':_0x12105a['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x12105a['prompt'],'model':_0x12105a['model']}));}['_logErrorForNonExistentChecks'](_0x4d3d15,_0x38accf){const _0x103956=_0x4d3d15['filter'](_0x100f9a=>!_0x38accf['some'](_0x28671d=>_0x28671d['id']===_0x100f9a));_0x103956['length']&&this['_logError'](new CKEditorError('ai-review-mode-non-existent-commands-used',this,{'commandIds':_0x103956['join'](',\x20')}),!0x0);}async['_getModels'](){try{const _0x2aa79b=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});return{'all':await _0x2aa79b['getAll'](),'recommended':await _0x2aa79b['getAvailableModels'](),'default':await _0x2aa79b['getDefault']()};}catch(_0x25f394){return this['_logError'](new CKEditorError('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x25f394)),{'all':[],'recommended':[],'default':null};}}['_translateReviewCheck'](_0x10ed4b){const _0xac2501='AI_REVIEW_CHECK_'+_0x10ed4b['id']['toUpperCase']()['replaceAll']('-','_'),_0x1ff53f={..._0x10ed4b,'title':this['_getTranslationWithDefault'](_0xac2501+'_TITLE',_0x10ed4b['title']),'description':this['_getTranslationWithDefault'](_0xac2501+'_DESCRIPTION',_0x10ed4b['description'])};return _0x10ed4b['options']&&(_0x1ff53f['options']=_0x10ed4b['options']['map'](_0x5a6de6=>({..._0x5a6de6,'label':this['_getTranslationWithDefault'](_0xac2501+'_OPTIONS_LABEL',_0x5a6de6['label']||''),'data':_0x5a6de6['data']?_0x5a6de6['data']['map'](_0x5941ac=>({..._0x5941ac,'label':this['_getTranslationWithDefault'](_0xac2501+'_OPTIONS_DATA_'+_0x5941ac['id']['toUpperCase'](),_0x5941ac['label'])})):void 0x0}))),_0x1ff53f;}['_filterChecksWithMissingModel'](_0x414660){const _0x188f1a=[];_0x414660['checks']['forEach'](_0xc04564=>{(_0xc04564 instanceof AIReviewCheckExtra&&!_0xc04564['defaultModel']||_0xc04564 instanceof AIReviewCheckCustom&&!_0xc04564['models']['length'])&&_0x188f1a['push'](_0xc04564['id']);}),_0x188f1a['length']&&_0x188f1a['forEach'](_0x141be0=>{_0x414660['removeCheckById'](_0x141be0),this['_logError'](new CKEditorError('ai-review-mode-command-unavailable-due-to-missing-model',this,{'commandId':_0x141be0}),!0x0);});}}class AIReviewMode extends ContextPlugin{static get['requires'](){return[AIReviewModeController,AIReviewModeUI,AIReviewCoreEditing];}static get['pluginName'](){return'AIReviewMode';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class AITranslateCheck extends AIReviewCheck{get['apiId'](){return'translate';}}class AITranslateCheckList extends AIReviewCheckList{['setupChecks'](_0xae5c27){this['_checks']=_0xae5c27['map'](_0x5b67a4=>new AITranslateCheck(_0x5b67a4));}}class AITranslateCheckRun extends AIReviewSystemCheckRun{['_title'];constructor(_0x2c68b6,_0x28bca4,_0x96ef08,_0x4afee2,_0x5b8b9e,_0x3b122f){super(_0x2c68b6,_0x28bca4,_0x96ef08,_0x5b8b9e,_0x3b122f),this['_title']=_0x4afee2;}get['title'](){return this['_title'];}get['subTitle'](){return this['_sourceCheck']['title'];}}class AITranslateController extends AIReviewCoreController{static get['pluginName'](){return'AITranslateController';}constructor(_0x287b81){super(_0x287b81),this['context']['config']['define']('ai.translate.languages',[{'label':'English','id':'english'},{'label':'Spanish','id':'spanish'},{'label':'French','id':'french'},{'label':'German','id':'german'},{'label':'Chinese\x20(Simplified)','id':'chinese'},{'label':'Japanese','id':'japanese'},{'label':'Russian','id':'russian'},{'label':'Portuguese','id':'portuguese'},{'label':'Korean','id':'korean'},{'label':'Italian','id':'italian'}]);}['_onCheckRunFinished'](){this['_onReviewRunLeave'](!0x0);}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AITranslateUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0xc0c9ac,_0x555fde){return new AITranslateCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x555fde,this['_aiConnector'],getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0xc0c9ac['params'],_0xc0c9ac['args']);}['_onReviewCheckResultActivated'](_0x210a35){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x210a35['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x210a35['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}['_onActivateChange'](_0x3d2e1c){this['_currentReviewCheckRun']&&('hover'===_0x3d2e1c['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x3d2e1c['id'])),'click'===_0x3d2e1c['uiInteraction']&&this['_scrollToChange'](_0x3d2e1c['id']));}['_onDeactivateChange'](_0x1eb2bf){this['_currentReviewCheckRun']&&'panel'===_0x1eb2bf['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x116a2f,_0x3c7f45){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x3c7f45['changeId']),this['_scrollToChange'](_0x3c7f45['changeId']));}['_onChangeMarkerHovered'](_0x265bf6,_0x1fc48b){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x1fc48b['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x1fc48b['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}['_getChangeContentElement'](_0x12cf81){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x12cf81);}['_markChangePositionInEditorContent'](_0x3d8fe4,_0x295946){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x3d8fe4,_0x295946);}['_diffContent'](_0x206616,_0x70858,_0x424643){return this['_aiReviewCoreEditing']['diffContent'](_0x206616,_0x70858,_0x424643,!0x0);}['_onReviewCheckRun'](){for(const _0x36e02a of this['_aiReviewCoreEditing']['getEditors']())_0x36e02a['editing']['view']['change'](_0x5ed2b4=>{for(const _0x3d5ec7 of _0x36e02a['editing']['view']['document']['getRoots']())_0x5ed2b4['addClass']('ck-ai-translate-mode-content',_0x3d5ec7);});}async['_getChecksList'](){const _0x5a685b=[],_0x50e851=this['context']['config']['get']('ai.translate.languages')||[];for(const _0x227bc0 of _0x50e851)_0x5a685b['push']({'title':_0x227bc0['label'],'id':_0x227bc0['id'],'commandId':_0x227bc0['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0x227bc0['id']}});const _0x27957e=new AITranslateCheckList();return _0x27957e['setupChecks'](this['_translateChecks'](_0x5a685b)),_0x27957e;}['_translateChecks'](_0x217b4c){return _0x217b4c['map'](_0x1fb564=>{const _0x35cac4='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x1fb564['title']['toUpperCase']()['replaceAll']('-','_');return{..._0x1fb564,'title':this['_getTranslationWithDefault'](_0x35cac4,_0x1fb564['title'])};});}}class AITranslateCheckResultsView extends AIReviewCoreUICheckResultsView{constructor(_0x40219d,_0xb1b128){super(_0x40219d,_0xb1b128),this['on']('set:isLoading',(_0x3b1511,_0x2192d1,_0x597e8b)=>{_0x597e8b&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x10f602,_0xbe6ba1,_0x1c4b36)=>{_0x1c4b36&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}['_createAcceptAllButtonView'](){const _0x25a701=super['_createAcceptAllButtonView']();return _0x25a701['set']('label',getTranslation$i(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0x25a701;}['_createExitReviewButtonView'](){const _0x3bdbcd=super['_createExitReviewButtonView']();return _0x3bdbcd['set']('label',getTranslation$i(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x3bdbcd;}}class AITranslateCheckListView extends AIReviewCoreReviewCheckListView{['_setupTemplate'](){const _0x310f8c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0x310f8c['if']('isVisible','ck-hidden',_0x1107e4=>!_0x1107e4)]},'children':[{'tag':'div','attributes':{'class':['ck-ai-translate__check-list-header']},'children':[{'tag':'h2','children':[{'text':getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE')}]},{'tag':'p','children':[{'text':getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x310f8c['if']('isVisible','ck-hidden',_0x4b9f58=>!_0x4b9f58)]},'children':this['_checkViews']}]});}}class AITranslateUI extends AIReviewCoreUI{static get['pluginName'](){return'AITranslateUI';}['createMainView'](){const _0x59ecd1=this['context']['plugins']['get']('AITabs'),_0x21d800=this['context']['locale'],_0x3703cc=new AIHeaderView(_0x21d800,{'label':getTranslation$i(_0x21d800,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':IconAITranslate,'class':'ck-ai-header_review-translate','showResizeButton':_0x59ecd1['showResizeButton']});_0x3703cc['delegate']('resizeTabs')['to'](_0x59ecd1),_0x3703cc['bind']('isMaximized')['to'](_0x59ecd1['view'],'isMaximized',_0x246d9e=>_0x246d9e);const _0x4ae42d=new AIReviewCoreView(_0x21d800,{'header':_0x3703cc,'list':new AITranslateCheckListView(_0x21d800),'results':new AITranslateCheckResultsView(_0x21d800,{'generalErrorText':getTranslation$i(_0x21d800,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x21d800,{'headerText':getTranslation$i(_0x21d800,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x21d800,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x21d800,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x4ae42d['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x4ae42d;}['registerTab'](){const _0x4b8c91=this['context']['plugins']['get']('AITabs');_0x4b8c91['view']['on']('activateTab',(_0x20aef7,{newTab:_0x48fda3,oldTab:_0x547e14})=>{'translate'===_0x48fda3?this['fire']('getReviewCheckList'):'translate'===_0x547e14&&this['fire']('leaveReview');}),_0x4b8c91['view']['addTab']({'id':'translate','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'buttonIcon':IconAITranslate,'order':0x0,'content':this['_mainView']});}}class AITranslate extends ContextPlugin{static get['requires'](){return[AITranslateController,AITranslateUI,AIReviewCoreEditing];}static get['pluginName'](){return'AITranslate';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CaseChangeCommand extends Command{['_transformCallback'];constructor(_0x38d18b,_0xc3a16c){super(_0x38d18b),this['_transformCallback']=_0xc3a16c;}['execute'](){const _0x3ce08a=this['editor']['model'],_0x26aaba=Array['from'](this['_getAffectedRanges']()),_0x16a388=Array['from'](_0x3ce08a['document']['selection']['getRanges']());_0x3ce08a['change'](_0x378ea0=>{for(const _0x509d9e of _0x26aaba)this['_modifyContent'](_0x509d9e,_0x378ea0);_0x378ea0['setSelection'](_0x16a388);});}['refresh'](){for(const _0x57a766 of this['_getAffectedRanges']())for(const _0x5725a5 of _0x57a766)if(_0x5725a5['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x42e1d1=this['editor']['model'],_0x46913e=_0x42e1d1['document']['selection'];if(_0x46913e['isCollapsed']){const _0x351b55=this['_findAncestorTextBlock'](_0x46913e['getFirstPosition']()['parent']);return _0x351b55?[_0x42e1d1['createRangeIn'](_0x351b55)]:[];}return _0x46913e['getRanges']();}['_modifyContent'](_0xa9a522,_0x911c32){for(const _0x3f8b03 of this['_getElementsAllowingText'](_0xa9a522)){const _0x4f4994=this['_getElementTextContent'](_0x3f8b03),_0x77dff=this['_transformCallback'](_0x4f4994);for(const _0x4be1a8 of this['_getTextNodesRangeLimited'](_0x3f8b03,_0xa9a522))this['_replaceTextNodeData'](_0x4be1a8,_0x77dff,_0x911c32);}}['_findAncestorTextBlock'](_0x40d183){const _0x15d5c5=this['editor']['model']['schema'];if(_0x40d183['is']('element')&&_0x15d5c5['checkChild'](_0x40d183,'$text'))return _0x40d183;const _0x421269=_0x40d183['parent'];return!_0x421269||_0x15d5c5['isLimit'](_0x40d183)?null:this['_findAncestorTextBlock'](_0x421269);}*['_getElementsAllowingText'](_0xb98172){const _0x904f38=new Set();for(const {item:_0x53aea0}of _0xb98172['getWalker']()){const _0x2a0416=this['_findAncestorTextBlock'](_0x53aea0);_0x2a0416&&!_0x904f38['has'](_0x2a0416)&&(_0x904f38['add'](_0x2a0416),yield _0x2a0416);}}['_getElementTextContent'](_0x1aa9d0){return Array['from'](_0x1aa9d0['getChildren']())['reduce']((_0x2cab79,_0x3ef058)=>_0x2cab79+(_0x3ef058['is']('$text')?_0x3ef058['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x1f0b73,_0x323bb2){const _0x2ce98e=_0x323bb2['getIntersection'](this['editor']['model']['createRangeIn'](_0x1f0b73));if(_0x2ce98e){for(const _0x1a4cfd of _0x2ce98e['getItems']())_0x1a4cfd['is']('$textProxy')&&_0x1a4cfd['parent']==_0x1f0b73&&(yield _0x1a4cfd);}}['_replaceTextNodeData'](_0x57fcfe,_0x5a6a5f,_0x1a445a){const _0x204708=_0x5a6a5f['substring'](_0x57fcfe['startOffset'],_0x57fcfe['endOffset']);if(_0x204708===_0x57fcfe['data'])return;const _0x430172=_0x57fcfe['getAttributes']();this['editor']['model']['insertContent'](_0x1a445a['createText'](_0x204708,_0x430172),_0x1a445a['createSelection'](_0x1a445a['createRangeOn'](_0x57fcfe)));}}function getTranslation$g(_0x392bb9,_0x2c6ca8,..._0x49a600){const t=_0x392bb9['t'];switch(_0x2c6ca8){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x49a600);default:return _0x2c6ca8;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x32483e=this['editor'],_0x50bee1=_0x32483e['locale']['contentLanguage'],_0x10b3a7=normalizeExcludeWordCallback(_0x32483e['config']['get']('caseChange.titleCase.excludeWords')),_0xb70f2d={'changeCaseUpper':new CaseChangeCommand(_0x32483e,_0x357cdc=>_0x357cdc['toLocaleUpperCase'](_0x50bee1)),'changeCaseLower':new CaseChangeCommand(_0x32483e,_0x2c3b6b=>_0x2c3b6b['toLocaleLowerCase'](_0x50bee1)),'changeCaseTitle':new CaseChangeCommand(_0x32483e,_0x44815f=>capitalizeText(_0x44815f,_0x10b3a7,_0x50bee1))};for(const [_0x3d33ec,_0x45faf6]of Object['entries'](_0xb70f2d))_0x32483e['commands']['add'](_0x3d33ec,_0x45faf6),_0x45faf6['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x3d33ec);});this['listenTo'](_0x32483e['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x32483e['keystrokes']['set']('shift+f3',(_0x1af7d8,_0x494738)=>{const _0x221921=_getOptions(this['editor']['locale']),_0x3d426c=_0x221921[this['_currentCommandIndex']%_0x221921['length']]['commandName'];_0x32483e['execute'](_0x3d426c),this['_currentCommandIndex']++,_0x494738();});}['afterInit'](){checkLicense$i(this);}['_announceCaseChangeOperation'](_0x1defa6){const {ui:_0x4cc867,locale:_0x403012}=this['editor'],_0xac96c4=_getOptions(_0x403012)['find'](_0x841124=>_0x841124['commandName']===_0x1defa6)['label']['toLowerCase']();_0x4cc867['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x403012,'Changed\x20case\x20to\x20%0',_0xac96c4));}}function _getOptions(_0x1d2978){return[{'label':getTranslation$g(_0x1d2978,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x1d2978,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x1d2978,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x30f5b4,_0x23ba68,_0x3e0a8a){return replaceWords(_0x30f5b4,(_0x177358,_0x26c9c4,_0x4ad75e)=>{const _0x18f3b2=_0x177358['toLocaleLowerCase'](_0x3e0a8a);return _0x23ba68(_0x18f3b2,{'charOffset':_0x26c9c4,'wordIndex':_0x4ad75e,'blockText':_0x30f5b4})?_0x18f3b2:_0x18f3b2['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0xe2d00b=>_0xe2d00b['toLocaleUpperCase'](_0x3e0a8a));});}function replaceWords(_0x234e32,_0x1eae39){let _0xc38fed='',_0x10863f=0x0,_0x2049d0=0x0;for(const _0x13e4d9 of _0x234e32['matchAll'](/ +/g)){const _0x217f4d=_0x13e4d9['index'],_0x2dc5af=_0x234e32['substring'](_0x10863f,_0x217f4d);_0x2dc5af['length']&&(_0xc38fed+=_0x1eae39(_0x2dc5af,_0x10863f,_0x2049d0++)),_0xc38fed+=_0x13e4d9[0x0],_0x10863f=_0x217f4d+_0x13e4d9[0x0]['length'];}const _0x29fa1b=_0x234e32['substring'](_0x10863f);return _0x29fa1b['length']&&(_0xc38fed+=_0x1eae39(_0x29fa1b,_0x10863f,_0x2049d0)),_0xc38fed;}function normalizeExcludeWordCallback(_0x41d791=[]){return'function'==typeof _0x41d791?_0x41d791:(_0x339283,{wordIndex:_0x1ade42})=>_0x1ade42>0x0&&_0x41d791['includes'](_0x339283);}async function checkLicense$i(_0x2023e8){const _0x14e38b=_0x341036([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x14fc79=window[_0x341036([0x44,0x61,0x74,0x65])][_0x341036([0x6e,0x6f,0x77])](),_0x130eeb=_0x2023e8[_0x341036([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45944e=new window[(_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xebc788=>{_0x130eeb[_0x341036([0x6f,0x6e,0x63,0x65])](_0x341036([0x72,0x65,0x61,0x64,0x79]),_0xebc788);}),_0x58f910={[_0x341036([0x6b,0x74,0x79])]:_0x341036([0x45,0x43]),[_0x341036([0x75,0x73,0x65])]:_0x341036([0x73,0x69,0x67]),[_0x341036([0x63,0x72,0x76])]:_0x341036([0x50,0x2d,0x32,0x35,0x36]),[_0x341036([0x78])]:_0x341036([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x341036([0x79])]:_0x341036([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x341036([0x61,0x6c,0x67])]:_0x341036([0x45,0x53,0x32,0x35,0x36])},_0x58ff0f=_0x130eeb[_0x341036([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x341036([0x67,0x65,0x74])](_0x341036([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x477884=await(async function(){let _0x2798c7,_0x2cbd71=null,_0x441281=null;try{if(_0x58ff0f==_0x341036([0x47,0x50,0x4c]))return _0x341036([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2798c7=(function(){const _0xcd0c48=_0x58ff0f[_0x341036([0x73,0x70,0x6c,0x69,0x74])](_0x341036([0x2e]));if(0x3!=_0xcd0c48[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x8f7c0d=_0xcd0c48[0x1];return _0x167e2a(_0x8f7c0d);function _0x167e2a(_0x2a8cc9){const _0x12587c=_0x27b55e(_0x2a8cc9);return _0x12587c&&_0x327f8c()?_0x12587c:null;function _0x327f8c(){const _0x23cdc8=_0x12587c[_0x341036([0x6a,0x74,0x69])],_0x2c5247=window[_0x341036([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23cdc8[_0x341036([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23cdc8[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x115a8f={..._0x12587c,[_0x341036([0x6a,0x74,0x69])]:_0x23cdc8[_0x341036([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23cdc8[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x115a8f[_0x341036([0x76,0x63])],_0x1526ec(_0x115a8f)==_0x2c5247;}}}()),!_0x2798c7)return _0x341036([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2798c7[_0x341036([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x441281=function(_0xf32642,_0x385bd0){return new window[(_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ba686=>{if(_0x1e51b4())return _0x3ba686(_0x341036([0x56,0x61,0x6c,0x69,0x64]));_0x19da65(),_0x130eeb[_0x341036([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x341036([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48f521=!0x1;const _0x51eac0=uid();function _0x2b20ee(_0x5889dc){return!!_0x5889dc&&(typeof _0x5889dc===_0x341036([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5889dc===_0x341036([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5889dc[_0x341036([0x74,0x68,0x65,0x6e])]===_0x341036([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5889dc[_0x341036([0x63,0x61,0x74,0x63,0x68])]===_0x341036([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfb963c(_0x3cbf5e){_0x5d4689(_0x3cbf5e)[_0x341036([0x74,0x68,0x65,0x6e])](_0x571c7c=>{if(!_0x571c7c||_0x571c7c[_0x341036([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x341036([0x6f,0x6b]))return _0x341036([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9214(_0x1526ec(_0x51eac0+_0x385bd0))!=_0x571c7c[_0x341036([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x341036([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x341036([0x56,0x61,0x6c,0x69,0x64]);})[_0x341036([0x74,0x68,0x65,0x6e])](_0x2911b9=>(_0x4146a0(),_0x2911b9),()=>{const _0x825b82=_0x420438();return null==_0x825b82?(_0x4146a0(),_0x341036([0x56,0x61,0x6c,0x69,0x64])):_0x341036(_0x14fc79-_0x825b82>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x341036([0x74,0x68,0x65,0x6e])](_0x3ba686)[_0x341036([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ba686(_0x341036([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51c674=0x36ee80;function _0x4146a0(){const _0x494b55=_0x341036([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9214(_0x1526ec(_0xf32642)),_0x35fb86=_0x3253aa(_0x2a9214(window[_0x341036([0x4d,0x61,0x74,0x68])][_0x341036([0x63,0x65,0x69,0x6c])](_0x14fc79/_0x51c674)));window[_0x341036([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341036([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x494b55,_0x35fb86);}function _0x420438(){const _0x5349f1=_0x341036([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9214(_0x1526ec(_0xf32642)),_0xd1b369=window[_0x341036([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341036([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5349f1);return _0xd1b369?window[_0x341036([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3253aa(_0xd1b369),0x10)*_0x51c674:null;}function _0x5d4689(_0x30e69f){return new window[(_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58c318,_0x30083f)=>{_0x30e69f[_0x341036([0x74,0x68,0x65,0x6e])](_0x58c318,_0x30083f),window[_0x341036([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30083f,0x1d4c0);});}}_0x130eeb[_0x341036([0x6f,0x6e])](_0x341036([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x258bdd,_0x1e6d7e)=>{if(_0x1e6d7e[0x0]!=_0xf32642)return _0x3ba686(_0x341036([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e6d7e[0x1]={..._0x1e6d7e[0x1],[_0x341036([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51eac0};},{[_0x341036([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341036([0x68,0x69,0x67,0x68])}),_0x130eeb[_0x341036([0x6f,0x6e])](_0x341036([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3806c5=>{_0x2b20ee(_0x3806c5[_0x341036([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48f521=!0x0,_0xfb963c(_0x3806c5[_0x341036([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x341036([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341036([0x6c,0x6f,0x77])}),_0x45944e[_0x341036([0x74,0x68,0x65,0x6e])](()=>{_0x48f521||_0x3ba686(_0x341036([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e51b4(){return _0x130eeb[_0x341036([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341036([0x76,0x69,0x65,0x77])][_0x341036([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x341036([0x61,0x75,0x74,0x6f]);}function _0x19da65(){_0x130eeb[_0x341036([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341036([0x76,0x69,0x65,0x77])][_0x341036([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341036([0x61,0x75,0x74,0x6f]);}}(_0x2798c7[_0x341036([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2798c7[_0x341036([0x6a,0x74,0x69])]));const _0x56bf0c=await(async function(){let _0x3b80b0=!0x0;try{const _0xcd3ee5=_0x58ff0f[_0x341036([0x73,0x70,0x6c,0x69,0x74])](_0x341036([0x2e])),[_0x7957b7,_0x3ffd03,_0x7fd85c]=_0xcd3ee5;return _0x22c9b1(_0x7957b7),await _0x3f530e(_0x7957b7,_0x3ffd03,_0x7fd85c),_0x3b80b0;}catch{return!0x1;}function _0x22c9b1(_0x3e313b){const _0xbcd2d8=_0x27b55e(_0x3e313b);_0xbcd2d8&&_0xbcd2d8[_0x341036([0x61,0x6c,0x67])]==_0x341036([0x45,0x53,0x32,0x35,0x36])||(_0x3b80b0=!0x1);}async function _0x3f530e(_0x210928,_0x568b4a,_0x3722c9){const _0x1d6f0f=window[_0x341036([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x341036([0x66,0x72,0x6f,0x6d])](_0x43ddf2(_0x3722c9),_0x4506db=>_0x4506db[_0x341036([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43136c=new window[(_0x341036([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x341036([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x210928+_0x341036([0x2e])+_0x568b4a),_0x15fdd1=window[_0x341036([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x341036([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15fdd1)return;const _0x290af2=await _0x15fdd1[_0x341036([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x341036([0x6a,0x77,0x6b]),_0x58f910,{[_0x341036([0x6e,0x61,0x6d,0x65])]:_0x341036([0x45,0x43,0x44,0x53,0x41]),[_0x341036([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x341036([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x341036([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15fdd1[_0x341036([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x341036([0x6e,0x61,0x6d,0x65])]:_0x341036([0x45,0x43,0x44,0x53,0x41]),[_0x341036([0x68,0x61,0x73,0x68])]:{[_0x341036([0x6e,0x61,0x6d,0x65])]:_0x341036([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x290af2,_0x1d6f0f,_0x43136c)||(_0x3b80b0=!0x1);}}());return _0x56bf0c?(function(){const _0x43c253=_0x2798c7[_0x341036([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x43c253)return!0x1;if(_0x43c253[_0x341036([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341036([0x2a])))return!0x0;if(_0x43c253[_0x341036([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341036([0x43,0x43])))return!0x0;if(_0x43c253[_0x341036([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341036([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x4f2400=[_0x341036([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x341036([0x74,0x72,0x69,0x61,0x6c])][_0x341036([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2798c7[_0x341036([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14fc79/0x3e8:0x6a03bf00;return _0x2798c7[_0x341036([0x65,0x78,0x70])]<_0x4f2400;}())?_0x341036([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x15cd11=_0x2798c7[_0x341036([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15cd11||0x0==_0x15cd11[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3545aa}=new URL(window[_0x341036([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15cd11[_0x341036([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3545aa))return!0x0;const _0x19d502=_0x3545aa[_0x341036([0x73,0x70,0x6c,0x69,0x74])](_0x341036([0x2e]));return _0x15cd11[_0x341036([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13a406=>_0x13a406[_0x341036([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341036([0x2a])))[_0x341036([0x6d,0x61,0x70])](_0x554837=>_0x554837[_0x341036([0x73,0x70,0x6c,0x69,0x74])](_0x341036([0x2e])))[_0x341036([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4700d4=>_0x4700d4[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19d502[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341036([0x6d,0x61,0x70])](_0x3546fb=>Array(_0x19d502[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3546fb[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341036([0x66,0x69,0x6c,0x6c])](_0x3546fb[0x0]===_0x341036([0x2a])?_0x341036([0x2a]):'')[_0x341036([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3546fb))[_0x341036([0x73,0x6f,0x6d,0x65])](_0xd7dc05=>_0x19d502[_0x341036([0x65,0x76,0x65,0x72,0x79])]((_0x4afd59,_0x2a049f)=>_0xd7dc05[_0x2a049f]===_0x4afd59||_0xd7dc05[_0x2a049f]===_0x341036([0x2a])));}())?(_0x2798c7[_0x341036([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341036([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2cbd71=function(_0x966400){const _0x2b3407=new window[(_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c63c2=>setTimeout(_0x1c63c2,0x93ecc)),_0x53ef5d=_0x45944e[_0x341036([0x74,0x68,0x65,0x6e])](()=>new window[(_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28de47=>{let _0x1933dc=0x0;_0x130eeb[_0x341036([0x6d,0x6f,0x64,0x65,0x6c])][_0x341036([0x6f,0x6e])](_0x341036([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdaa714,_0x1d82ec)=>{_0x1d82ec[0x0][_0x341036([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1933dc++,0x5e8==_0x1933dc&&(_0x28de47(),_0xdaa714[_0x341036([0x6f,0x66,0x66])]());});})),_0x3ca215=[_0x2b3407,_0x53ef5d];return window[_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341036([0x72,0x61,0x63,0x65])](_0x3ca215)[_0x341036([0x74,0x68,0x65,0x6e])](()=>_0x966400);}(_0x341036([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2cbd71&&_0x441281)return new window[(_0x341036([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x446dae,_0x3b15b2)=>{_0x2cbd71[_0x341036([0x74,0x68,0x65,0x6e])](_0x446dae,_0x3b15b2),_0x441281[_0x341036([0x74,0x68,0x65,0x6e])](_0xca2ac5=>{_0xca2ac5!=_0x341036([0x56,0x61,0x6c,0x69,0x64])&&_0x446dae(_0xca2ac5);},_0x3b15b2);});return _0x2cbd71||_0x441281||_0x341036([0x56,0x61,0x6c,0x69,0x64]);}())):_0x341036([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x341036([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x341036([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x341036([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x27b55e(_0x11b753){return _0x11b753[_0x341036([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x341036([0x65,0x79]))?JSON[_0x341036([0x70,0x61,0x72,0x73,0x65])](_0x43ddf2(_0x11b753)):null;}function _0x43ddf2(_0x247579){return window[_0x341036([0x61,0x74,0x6f,0x62])](_0x247579[_0x341036([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x341036([0x2b]))[_0x341036([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x341036([0x2f])));}function _0x1526ec(_0x1d1c79){let _0x3e5328=0x1505;function _0x43e83e(_0x3b9cf9){for(let _0x3b1620=0x0;_0x3b1620<_0x3b9cf9[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b1620++){const _0x60708=_0x3b9cf9[_0x341036([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b1620);_0x3e5328=(_0x3e5328<<0x5)+_0x3e5328+_0x60708,_0x3e5328&=_0x3e5328;}}return function _0x3aeba0(_0x4cb9f1){Array[_0x341036([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4cb9f1)?_0x4cb9f1[_0x341036([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3aeba0):_0x4cb9f1&&typeof _0x4cb9f1==_0x341036([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x341036([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4cb9f1)[_0x341036([0x73,0x6f,0x72,0x74])]()[_0x341036([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x595b47,_0x323d08])=>{_0x43e83e(_0x595b47),_0x3aeba0(_0x323d08);}):_0x43e83e(window[_0x341036([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4cb9f1));}(_0x1d1c79),_0x3e5328>>>0x0;}function _0x2a9214(_0x20226e){return _0x20226e[_0x341036([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x341036([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x341036([0x30]));}function _0x3253aa(_0x4ef3c6){return _0x4ef3c6[_0x341036([0x73,0x70,0x6c,0x69,0x74])]('')[_0x341036([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x341036([0x6a,0x6f,0x69,0x6e])]('');}function _0x2be430(){}function _0x341036(_0x105e4f){return _0x105e4f['map'](_0x3525af=>String['fromCharCode'](_0x3525af))['join']('');}!function(_0x16efc3){const _0x588c04=(function(){const _0x327878=window[_0x341036([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x341036([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x341036([0x6e,0x6f,0x77])]())[_0x341036([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x341036([0x2e]),'');let _0x570a1f=_0x341036([0x45]);for(let _0x2c59ad=0x0;_0x2c59ad<_0x327878[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c59ad+=0x2){let _0x45fec0=window[_0x341036([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x327878[_0x341036([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c59ad,_0x2c59ad+0x2));_0x45fec0>=_0x14e38b[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45fec0-=_0x14e38b[_0x341036([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x570a1f+=_0x14e38b[_0x45fec0];}return _0x570a1f;}());_0x130eeb[_0x588c04]=_0x341036([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16efc3,_0x16efc3!=_0x341036([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x45944e,_0x130eeb[_0x341036([0x6d,0x6f,0x64,0x65,0x6c])][_0x341036([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2be430,_0x130eeb[_0x341036([0x6d,0x6f,0x64,0x65,0x6c])][_0x341036([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2be430,_0x130eeb[_0x341036([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x341036([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x477884);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46b7d5=this['editor'];this['_registerComponents'](),_0x46b7d5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x46b7d5['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x33eb5f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7da160;for(const _0xf63a95 in _0x33eb5f){const _0xb2cf11=_0xf63a95,_0x36c9c1=_0x33eb5f[_0xb2cf11];if('caseChangeLicenseKeyValid'==_0x36c9c1||'caseChangeLicenseKeyInvalid'==_0x36c9c1||'caseChangeLicenseKeyExpired'==_0x36c9c1||'caseChangeLicenseKeyDomainLimit'==_0x36c9c1||'caseChangeLicenseKeyNotAllowed'==_0x36c9c1||'caseChangeLicenseKeyEvaluationLimit'==_0x36c9c1||'caseChangeLicenseKeyUsageLimit'==_0x36c9c1){delete _0x33eb5f[_0xb2cf11],_0x7da160=_0x36c9c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x7da160&&_0x33eb5f['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x7da160&&_0x33eb5f['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x7da160&&_0x33eb5f['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x7da160&&_0x33eb5f['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x7da160&&_0x33eb5f['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x7da160&&_0x33eb5f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x96e258=this['editor'],{itemDefinitions:_0x5ebd97,commands:_0xe6ebee}=this['_getListItemDefinitionsAndCommands']();_0x96e258['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5ebd97,_0xe6ebee)),_0x96e258['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5ebd97,_0xe6ebee));}['_createMenuBarMenuView'](_0x9ff03d,_0x300ec2){const _0x1da8fc=this['editor'],_0xd202d6=_0x1da8fc['locale'],_0x24198c=new MenuBarMenuView(_0xd202d6),_0x204e41=new MenuBarMenuListView(_0xd202d6);_0x204e41['set']({'ariaLabel':getTranslation$g(_0xd202d6,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x24198c['buttonView']),_0x24198c['bind']('isEnabled')['toMany'](_0x300ec2,'isEnabled',(..._0x24a3cb)=>_0x24a3cb['some'](_0x4cae62=>_0x4cae62));for(const _0x333107 of _0x9ff03d){const _0x374e0b=new MenuBarMenuListItemView(_0xd202d6,_0x24198c),_0x453df6=new MenuBarMenuListItemButtonView(_0xd202d6);_0x453df6['delegate']('execute')['to'](_0x24198c),_0x453df6['bind'](...Object['keys'](_0x333107['model']))['to'](_0x333107['model']),_0x453df6['on']('execute',()=>{_0x1da8fc['execute'](_0x333107['model']['commandName']),_0x1da8fc['editing']['view']['focus']();}),_0x374e0b['children']['add'](_0x453df6),_0x204e41['items']['add'](_0x374e0b);}return _0x24198c['panelView']['children']['add'](_0x204e41),_0x24198c;}['_createDropdownView'](_0x56796f,_0x41dbc0){const _0x1fce35=this['editor'],_0x29861e=createDropdown(_0x1fce35['locale']);return this['_setButtonProperties'](_0x29861e['buttonView']),_0x29861e['buttonView']['set']({'tooltip':!0x0}),_0x29861e['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x29861e,_0x56796f,{'ariaLabel':getTranslation$g(_0x1fce35['locale'],'Case\x20change'),'role':'menu'}),_0x29861e['bind']('isEnabled')['toMany'](_0x41dbc0,'isEnabled',(..._0x1fc1e6)=>_0x1fc1e6['some'](_0x3e8db0=>_0x3e8db0)),this['listenTo'](_0x29861e,'execute',_0x25b657=>{_0x1fce35['execute'](_0x25b657['source']['commandName']),_0x1fce35['editing']['view']['focus']();}),_0x29861e;}['_setButtonProperties'](_0x34d19c){const _0x3032ea=this['editor'];_0x34d19c['set']({'label':getTranslation$g(_0x3032ea['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x3cefbe=new Collection(),_0x2e4138=[];for(const _0x15c671 of _getOptions(this['editor']['locale'])){const _0x53e47b=this['editor']['commands']['get'](_0x15c671['commandName']),_0x526fe7=new UIModel({'commandName':_0x15c671['commandName'],'label':_0x15c671['label'],'role':'menuitemradio','withText':!0x0});_0x526fe7['bind']('isEnabled')['to'](_0x53e47b,'isEnabled'),_0x3cefbe['add']({'type':'button','model':_0x526fe7}),_0x2e4138['push'](_0x53e47b);}return{'itemDefinitions':_0x3cefbe,'commands':_0x2e4138};}}class CaseChange extends Plugin{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CommentThreadController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];constructor(_0x2fdf7f,_0xc41696){super(),this['model']=_0x2fdf7f,this['model']['_isAttached']=!0x0,this['view']=_0xc41696,this['listenTo'](_0xc41696,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0xc41696,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0xc41696,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0xc41696,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0xc41696,'addComment',(_0x5836c5,_0x117b54)=>this['addComment'](_0x117b54)),this['listenTo'](_0xc41696,'updateComment',(_0x5a4e80,_0x5542d1,_0x137798)=>this['updateComment'](_0x5542d1,_0x137798)),this['listenTo'](_0xc41696,'removeComment',(_0x272955,_0x1f09fc)=>this['removeComment'](_0x1f09fc));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x460f50){this['model']['addComment']({'content':_0x460f50,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4175f3,_0x2f7da1){this['model']['getComment'](_0x4175f3)['update']({'content':_0x2f7da1});}['removeComment'](_0xb9b3fe){this['model']['getComment'](_0xb9b3fe)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0x4f5754,_0x5c9d82,_0x52f899){const t=_0x4f5754['t'];switch(_0x5c9d82){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x52f899);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x52f899);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x52f899);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x52f899);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x52f899);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x52f899);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x52f899);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x52f899);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class CommentEditorUIView extends EditorUIView{['main'];['editable'];constructor(_0x297f5a,_0x575891){super(_0x297f5a);const _0x47a4a9=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x297f5a,_0x575891,void 0x0,{'label':()=>getTranslation$f(_0x297f5a,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x297f5a['uiLanguageDirection'],'lang':_0x297f5a['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x47a4a9},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class CommentEditorUI extends EditorUI{['view'];constructor(_0x1f19ff){super(_0x1f19ff),this['view']=new CommentEditorUIView(_0x1f19ff['locale'],_0x1f19ff['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x145d83=this['editor']['editing']['view'],_0x3b420e=this['view']['editable'],_0x4c9cb9=_0x145d83['document']['getRoot']();_0x3b420e['name']=_0x4c9cb9['rootName'],this['view']['render']();const _0x3e84aa=_0x3b420e['element'];this['setEditableElement'](_0x3b420e['name'],_0x3e84aa),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x145d83['attachDomRoot'](_0x3e84aa),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const defaultPlugins=[Clipboard,Enter,ShiftEnter,SelectAll,Typing,Undo,Paragraph];class CommentEditor extends/* #__PURE__ -- @preserve */
ObservableMixin(Editor){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
((()=>defaultPlugins)());constructor(_0x44d323={}){function _0x169a61(_0x4865af){return _0x4865af['map'](_0x2ebd99=>String['fromCharCode'](_0x2ebd99))['join']('');}(_0x44d323=Object['assign']({},_0x44d323))['plugins']||(_0x44d323['plugins']=CommentEditor['defaultPlugins']),super(_0x44d323),this['ui']=new CommentEditorUI(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x169a61([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x169a61([0x76,0x69,0x65,0x77])][_0x169a61([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x169a61([0x61,0x75,0x74,0x6f]),this[_0x169a61([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x169a61([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x169a61([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x169a61([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x169a61([0x6f,0x6b])});}['create'](){const _0x1e2013=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x1e2013))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x35b3b3=>{const _0x5e260b=this['model']['document']['getRoot'](),_0x71bfe7=_0x5e260b&&_0x5e260b['getChild'](_0x5e260b['childCount']-0x1);_0x35b3b3['setSelection'](_0x71bfe7,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x4efb2d=this['editing']['view'],_0x2cbf55=_0x4efb2d['document']['getRoot'](),_0x5693d2=_0x2cbf55['getChild'](0x0);_0x2cbf55['childCount']>0x1||!_0x5693d2||'p'!=_0x5693d2['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x4efb2d,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5693d2['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x4efb2d,'element':_0x5693d2,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5693d2);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3e04e9,_0x5e7e8f={}){super(_0x3e04e9),this['editor']=null,this['_editorConfig']=_0x5e7e8f,this['set']('value',_0x5e7e8f['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x3e04e9,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x3e04e9,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new KeystrokeHandler(),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x17b991=>!_0x17b991['defaultPrevented']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x5dd404,_0x588484)=>{this['cancelButtonView']['fire']('execute'),_0x588484();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3f49c2,_0x4dc956)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4dc956());}),this['on']('submit',(_0x5ecb3f,_0x56eeb9)=>{_0x56eeb9['length']>0xfde8?(alert(getTranslation$f(_0x3e04e9,'TOO_LONG_COMMENT_ALERT',[_0x56eeb9['length'],0xfde8])),_0x5ecb3f['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new CommentEditor(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x6dee07=this['editor'];this['element']['insertBefore'](_0x6dee07['ui']['element'],this['element']['firstChild']),_0x6dee07['model']['document']['on']('change',()=>this['value']=_0x6dee07['getData']()),_0x6dee07['bind']('placeholder')['to'](this),this['focusables']['add'](_0x6dee07['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x275f07){-0x1===_0x275f07?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4de96e}=this,_0x532387=new ButtonView(_0x4de96e);return _0x532387['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x532387['withText']=!0x0,_0x532387['bind']('label')['to'](this,'submitLabel'),_0x532387['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x532387['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xa7d91f,_0xb494de)=>!_0xb494de&&!!_0xa7d91f['trim']()),_0x532387;}['_createCancelButton'](){const {locale:_0x31070b}=this,_0x448f85=new ButtonView(_0x31070b);return _0x448f85['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x448f85['label']=getTranslation$f(_0x31070b,'Cancel'),_0x448f85['withText']=!0x0,_0x448f85['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x448f85;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x348e65=>{this['focusTracker']['add'](_0x348e65['element']);}),this['focusables']['on']('change',(_0x3ddf30,_0x200bea)=>{for(const _0x45826a of Array['from'](_0x200bea['added'])['reverse']())this['focusTracker']['add'](_0x45826a['element']);});}}class CommentThreadInputView extends View{constructor(_0x3126be,_0x3b99db,_0x7708ff){super(_0x3126be),this['commentInputView']=new CommentInputView(_0x3126be,_0x7708ff),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0xc1b989,_0x39aed6)=>_0xc1b989||!!_0x39aed6),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new UserView(_0x3126be,_0x3b99db),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x467fa9){this['commentInputView']['focus'](_0x467fa9);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4c3f3f,_0x20bb2f)=>{const {submitButtonView:_0xb000db,cancelButtonView:_0x35ce6f,editor:_0x4b858e}=this['commentInputView'],_0x321810=[_0xb000db['element'],_0x35ce6f['element'],_0x4b858e?_0x4b858e['editing']['view']['getDomRoot']():null]['filter'](_0x594246=>_0x594246)['some'](_0x3932db=>_0x3932db['contains'](_0x20bb2f['target']));_0x321810||(this['focus'](),_0x20bb2f['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x1d85b7){super(_0x1d85b7);const _0x3e1716=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3e1716['to']('count',_0x2cbbe0=>getTranslation$f(_0x1d85b7,'NUMBER_OF_COMMENTS',_0x2cbbe0))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x279ec3,_0x591b0f,_0x36e3a3){super(_0x279ec3);const _0xa8b228=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x591b0f['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x591b0f,this['_config']=_0x36e3a3,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xcfdcea=>this['commentViews']['map'](_0x1bee82=>_0x1bee82['element'])['includes'](_0xcfdcea['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x279ec3),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x39f6f9=>_0x39f6f9-this['_config']['maxCommentsWhenCollapsed']);for(const _0x57a972 of _0x591b0f['comments'])this['_handleNewCommentModel'](_0x57a972);this['_handleInfoComment'](),this['listenTo'](_0x591b0f['comments'],'add',(_0x48a401,_0x7e24a3)=>{const _0x18c0ae=this['_calculatePosition'](_0x7e24a3);this['length']++,this['_handleNewCommentModel'](_0x7e24a3,_0x18c0ae),this['refreshVisibleViews']();}),this['listenTo'](_0x591b0f['comments'],'remove',(_0xafd7b8,_0x49eb0c)=>{this['length']--,this['_handleRemoveCommentModel'](_0x49eb0c),this['refreshVisibleViews']();}),this['listenTo'](_0x591b0f,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x591b0f,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0xa8b228['if']('length','ck-hidden',_0x3e050f=>!_0x3e050f)],'aria-label':getTranslation$f(_0x279ec3,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x32a40f){-0x1===_0x32a40f?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x91d2bc of this['commentViews'])_0x91d2bc['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x226388,_0x103495){const _0x4e99d6=new this['_config']['CommentView'](this['locale'],_0x226388,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4e99d6['viewUid']=_0x226388['id'],_0x4e99d6['delegate']('removeComment')['to'](this),_0x4e99d6['delegate']('updateComment')['to'](this),_0x4e99d6['delegate']('resolveCommentThread')['to'](this),_0x4e99d6['delegate']('editorReady')['to'](this),_0x4e99d6['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4e99d6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4e99d6,_0x103495);}['_calculatePosition'](_0x52593f){const _0x391dd8=this['_model']['_findOptimalIndex'](_0x52593f);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x52593f['authoredAt']?_0x391dd8-0x1:_0x391dd8:_0x391dd8-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x54c3f3={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':getTranslation$f(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x54c3f3,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x54c3f3));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x336c7a){const _0x48fc64=this['commentViews']['remove'](_0x336c7a['id']);this['stopListening'](_0x48fc64),_0x48fc64['isEditMode']&&this['_updateHasDirtyComment'](),_0x48fc64['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x300650=>_0x300650['isEditMode']);}['_rearrangeCollapse'](){const _0x4de195=cloneCollection(this['commentViews']),_0x2cd335=this['_collapsedCommentsView']['count'];for(let _0x41f5b2=0x1;_0x41f5b2<=_0x2cd335;_0x41f5b2++)_0x4de195['remove'](0x1);for(const _0x3a6967 of _0x4de195)_0x3a6967['collapse']();_0x2cd335>0x0&&_0x4de195['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0x5e3a1d(Array['from'](this['visibleViews']),Array['from'](_0x4de195)),this['visibleViews'],_0x4de195);}['_rearrangeExpand'](){applyDiffToCollection(_0x5e3a1d(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1652bd of this['visibleViews'])_0x1652bd['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x389c1d=>{this['focusTracker']['add'](_0x389c1d['element']),this['keystrokes']['listenTo'](_0x389c1d['element']);}),this['commentViews']['on']('change',(_0x28cba9,_0x5a3e64)=>{for(const _0x549318 of _0x5a3e64['removed'])this['focusTracker']['remove'](_0x549318['element']),this['keystrokes']['stopListening'](_0x549318['element']);for(const _0x20360c of Array['from'](_0x5a3e64['added'])['reverse']())this['focusTracker']['add'](_0x20360c['element']),this['keystrokes']['listenTo'](_0x20360c['element']);});}}function cloneCollection(_0x3c5ab0){const _0x397efb=new Collection();for(const _0x641de8 of _0x3c5ab0)_0x397efb['add'](_0x641de8);return _0x397efb;}function applyDiffToCollection(_0xdcefce,_0x3bf748,_0x2cdeaf){let _0x30449f=0x0;for(const _0x43c26f of _0xdcefce)switch(_0x43c26f){case'insert':_0x3bf748['add'](_0x2cdeaf['get'](_0x30449f),_0x30449f),_0x30449f++;break;case'delete':_0x3bf748['remove'](_0x30449f);break;case'equal':_0x30449f++;}}class CommentThreadHeaderContextView extends View{constructor(_0x543edf){super(_0x543edf);const _0x326166=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x326166['to']('contextValue',_0x54769e=>getTranslation$f(_0x543edf,'THREAD_CONTEXT_LABEL',_0x54769e)),'tabindex':-0x1},'children':[{'text':_0x326166['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3a628a,_0x19d796){super(_0x3a628a);const _0x49d4b0=this['bindTemplate'];this['_model']=_0x19d796,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2fa534=>!!_0x2fa534),this['bind']('contextValue')['to'](this['_model'],'context',_0xecae65=>_0xecae65&&_0xecae65['value']?this['_trimContextValue'](_0xecae65['value']):getTranslation$f(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x49d4b0['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x97ab26=new ButtonView(this['locale']);return _0x97ab26['label']=getTranslation$f(this['locale'],'Reopen'),_0x97ab26['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x97ab26['icon']=IconUndo,_0x97ab26['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3ecc6d=>!_0x3ecc6d),_0x97ab26['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xe178c2,_0x20703b)=>_0xe178c2&&_0x20703b),_0x97ab26['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x97ab26;}['_trimContextValue'](_0x4a39ed){const _0x332b41=MAX_CONTENT_LENGTH-0x3;if(_0x4a39ed['length']<MAX_CONTENT_LENGTH)return _0x4a39ed;const _0x5f41d0=_0x4a39ed['lastIndexOf']('\x20',_0x332b41);return _0x4a39ed['substring'](0x0,_0x5f41d0>-0x1?_0x5f41d0:_0x332b41)+'...';}['_attachContextActions'](){const _0x263093=this['element']['querySelector']('.ck-context'),_0x398c85=_0x263093['querySelector']('.ck-context__value');this['listenTo'](_0x263093,'mouseenter',()=>{_0x398c85['offsetWidth']<_0x398c85['scrollWidth']&&_0x263093['classList']['add']('overlay');}),this['listenTo'](_0x263093,'mouseleave',()=>{_0x263093['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3d29a8 of this['focusables'])this['focusTracker']['add'](_0x3d29a8['element']),this['keystrokes']['listenTo'](_0x3d29a8['element']);}['_createContextView'](){const _0x5c0488=new CommentThreadHeaderContextView(this['locale']);return _0x5c0488['bind']('contextValue')['to'](this),_0x5c0488;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x233135,_0x36e397,_0x2627fd,_0x1ac3e7){super(_0x233135),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x36e397,this['_localUser']=_0x2627fd,this['_config']=_0x1ac3e7,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0x233135,_0x36e397),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0x233135,getTranslation$f(_0x233135,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0x233135,_0x36e397,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1ac3e7)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5a1e25,_0x579702)=>_0x5a1e25||!!_0x579702),this['bind']('isUnlinked')['to'](_0x36e397,'unlinkedAt',_0x1c2c08=>!!_0x1c2c08),this['bind']('ariaLabel')['to'](this,'length',_0x42275f=>{const _0x32f64e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x42275f,_0x32f64e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x294698=>_0x294698['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),setupThreadKeyboardNavigation(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x5c956d=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23a931=_0x5c956d['commentInputView'];return _0x5c956d['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x23a931,'value',(_0x2b1c42,_0xb5b9ce,_0x362c30,_0x52b978,_0x363bf0)=>!!_0x363bf0||!!_0x52b978&&_0x362c30&&!_0xb5b9ce||_0x2b1c42&&_0x362c30&&!_0xb5b9ce),_0x23a931['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2e9c23,_0x103547,_0x234f68)=>{let _0x28e6ec;return _0x28e6ec=_0x234f68&&_0x103547?'Reply\x20to\x20reopen\x20discussion...':_0x2e9c23?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x28e6ec);}),_0x23a931['bind']('submitLabel')['to'](this,'length',_0x39e88e=>getTranslation$f(this['locale'],_0x39e88e?'Reply':'Comment')),_0x23a931['on']('submit',(_0x4da7cd,_0x34f9d9)=>{this['fire']('addComment',_0x34f9d9),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x23a931['on']('cancel',()=>{this['focus']();}),_0x23a931['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x23a931['on']('cancel',_0x3810f5=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x3810f5['stop']());}),this['on']('change:isActive',(_0x3fd863,_0x5d843c,_0x570c30)=>{_0x570c30||this['length']||_0x23a931['value']||this['fire']('removeCommentThread');}),_0x5c956d;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x15c7bf,_0x3ff2cd,_0x5b8f96,_0x4316f1){super(_0x15c7bf,_0x3ff2cd,_0x5b8f96,_0x4316f1),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x15c7bf,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3d2605,_0x58936e,_0x254a5f)=>{_0x254a5f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x2cba0a,_0x456be5,_0x11192a)=>{_0x11192a&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0xd3ea0e=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0xd3ea0e['if']('isActive','ck-thread--active'),_0xd3ea0e['if']('isUnlinked','ck-thread--unlinked'),_0xd3ea0e['to']('actionIndicator',_0x5ca2fb=>_0x5ca2fb?'ck-thread--'+_0x5ca2fb:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xd3ea0e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x22f75e of this['commentsListView']['commentViews'])_0x22f75e['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x57176c}=this,_0x3269b5=this['commentsListView']['commentViews']['get'](0x0);_0x3269b5===this['_boundFirstCommentView']||_0x3269b5['isSystemComment']||(this['_boundFirstCommentView']=_0x3269b5,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3269b5,'actionIndicator',_0x47eea2=>'remove'===_0x47eea2?'remove':null),_0x3269b5['placeholder']=getTranslation$f(_0x57176c,'Write\x20a\x20comment...'),_0x3269b5['removeButton']['on']('execute',_0x1d98eb=>{_0x1d98eb['stop'](),this['showConfirm'](getTranslation$f(_0x57176c,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3269b5['focus']();}),_0x3269b5['actionBar']['add'](this['resolveButton'],0x0),_0x3269b5['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x442985=new LateFocusButtonView(this['locale']);return _0x442985['label']=getTranslation$f(this['locale'],'Resolve'),_0x442985['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0x442985['icon']=IconCheck,_0x442985['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x442985['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x442957=>!_0x442957),_0x442985['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5c4bb1,_0x1b68b9)=>_0x5c4bb1&&!_0x1b68b9),_0x442985['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x442985;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class CommentContentView extends View{constructor(_0x2f8389){super(_0x2f8389),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x36aea1,_0x18ed3f,_0x2d08d)=>{this['element']['innerHTML']=_0x2d08d;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x120ea4,_0x3a711e,_0x5bb820){super(_0x120ea4),this['_model']=_0x3a711e,this['_config']=_0x5bb820,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3a711e,'content',_0x3a711e,'authoredAt',(_0x4ec7e4,_0x41bb6d)=>getTranslation$f(_0x120ea4,'COMMENT_ARIA_LABEL',[_0x3a711e['author']['name'],_0x5bb820['formatDateTime'](_0x41bb6d),new DOMParser()['parseFromString'](_0x4ec7e4,'text/html')['body']['textContent'],_0x3a711e['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x120ea4,getTranslation$f(_0x120ea4,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new ViewCollection(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ffe1b=>_0x2ffe1b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$f(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):getTranslation$f(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$f(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$f(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x2b81f0=new CommentContentView(this['locale']);return _0x2b81f0['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x544e3d,_0x40b64c)=>_0x40b64c?trimHtml(_0x544e3d,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x544e3d),_0x2b81f0;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1c6c94=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x1c6c94['value']=this['_model']['content'],_0x1c6c94['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1c6c94['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x1c6c94['on']('submit',(_0x103074,_0x21cd2f)=>{this['fire']('updateComment',this['_model']['id'],_0x21cd2f),this['switchToDisplayMode'](),this['focus']();}),_0x1c6c94['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1c6c94['once']('editorReady',()=>{_0x1c6c94['focus']();}),_0x1c6c94['createEditor'](),_0x1c6c94['delegate']('editorReady')['to'](this),_0x1c6c94['delegate']('editorDestroyed')['to'](this),_0x1c6c94;}['_setupKeyboardNavigation'](){const _0x2ce994=this['element'];this['keystrokes']['listenTo'](_0x2ce994);for(const _0x2e5deb of this['focusables'])this['focusTracker']['add'](_0x2e5deb['element']),this['keystrokes']['listenTo'](_0x2e5deb['element']);this['focusables']['on']('change',(_0x2349a3,_0x199a04)=>{for(const _0x4912bb of _0x199a04['removed'])this['focusTracker']['remove'](_0x4912bb['element']),this['keystrokes']['stopListening'](_0x4912bb['element']);for(const _0x2844c0 of _0x199a04['added'])this['focusTracker']['add'](_0x2844c0['element']),this['keystrokes']['listenTo'](_0x2844c0['element']);}),this['keystrokes']['set']('enter',(_0x514acd,_0x243fb6)=>{_0x2ce994===_0x514acd['target']&&(this['focusCycler']['focusFirst'](),_0x243fb6());}),this['keystrokes']['set']('esc',(_0x29f29e,_0x2abd95)=>{_0x2ce994!==_0x29f29e['target']&&(this['focus'](),_0x2abd95());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0x4f8af0,_0x3c513c,_0x4b5b62){super(_0x4f8af0,_0x3c513c,_0x4b5b62),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0x4f8af0,'Reply...')),this['bind']('authoredAt')['to'](_0x3c513c),this['bind']('resolvedAt')['to'](_0x3c513c),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new UserView(_0x4f8af0,_0x3c513c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3c513c,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x446375=this['bindTemplate'],_0x42e546=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x446375['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x446375['to']('authoredAt',_0xf8e62a=>this['_config']['formatDateTime'](_0xf8e62a))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x446375['if']('isEditMode','ck-comment__actions--hidden'),_0x446375['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x42e546['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x446375['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x446375['if']('isEditMode','ck-comment--edit'),_0x446375['if']('isSystemComment','ck-comment--info'),_0x446375['to']('actionIndicator',_0x3760a6=>_0x3760a6?'ck-comment--'+_0x3760a6:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x42e546}]}]};}['_createEditButton'](){const _0x309350=new ButtonView(this['locale']);return _0x309350['label']=getTranslation$f(this['locale'],'Edit'),_0x309350['icon']=IconPencil,_0x309350['withText']=!0x0,_0x309350['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x309350['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1759a9=>!_0x1759a9),_0x309350['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x309350['on']('execute',()=>this['switchToEditMode']()),_0x309350;}['_createRemoveButton'](){const _0x415672=new ButtonView(this['locale']);return _0x415672['label']=getTranslation$f(this['locale'],'Remove'),_0x415672['icon']=IconRemoveComment,_0x415672['withText']=!0x0,_0x415672['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x415672['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x79b0ac=>!_0x79b0ac),_0x415672['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x415672['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x415672;}['_createDropdown'](){const _0x15df26=createDropdown(this['locale'],LateFocusDropdownButtonView),_0xbc0e22=_0x15df26['panelView']['children'],_0x11cac0=new ListView(this['locale']),_0x337e7a=_0x15df26['bindTemplate'];focusChildOnDropdownOpen(_0x15df26,()=>this['items']['find'](_0x229cd1=>_0x229cd1['isVisible'])),_0x15df26['extendTemplate']({'attributes':{'class':[_0x337e7a['if']('isVisible','ck-hidden',_0x25b775=>!_0x25b775)]}});const _0x1c57b9=(_0x40eaa3,_0x3b9c08=-0x1)=>{const _0xb3ff38=new ListItemView(this['locale']);_0xb3ff38['children']['add'](_0x40eaa3);const _0x325845=_0x3b9c08>-0x1?_0x3b9c08:_0x11cac0['items']['length'];_0x11cac0['items']['add'](_0xb3ff38,_0x325845);const _0x25e20a=Array['from'](this['items']);_0x15df26['unbind']('isEnabled','isVisible'),_0x15df26['bind']('isEnabled')['toMany'](_0x25e20a,'isEnabled',(..._0x2725bb)=>_0x2725bb['some'](_0xe9c15a=>_0xe9c15a)),_0x15df26['bind']('isVisible')['toMany'](_0x25e20a,'isVisible',(..._0x107278)=>_0x107278['some'](_0x451d21=>_0x451d21));};_0x15df26['panelPosition']='sw',_0x15df26['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x199c5f of this['items'])_0x1c57b9(_0x199c5f);return _0xbc0e22['add'](_0x11cac0),_0x15df26['listenTo'](this['items'],'add',(_0x112f80,_0x4fd146,_0x5bc5b3)=>{_0x1c57b9(_0x4fd146,_0x5bc5b3);}),_0x15df26['listenTo'](this['items'],'remove',(_0x31f30a,_0x347d5b,_0x3108e1)=>{_0x11cac0['items']['remove'](_0x3108e1);}),_0x15df26;}['_attachActions'](_0x2c5f04,_0x45e6ff){const _0xd899b9=_0x2c5f04&&_0x2c5f04['element'];_0xd899b9&&(this['listenTo'](_0xd899b9,'mouseenter',()=>this['actionIndicator']=_0x45e6ff),this['listenTo'](_0xd899b9,'focus',()=>this['actionIndicator']=_0x45e6ff),this['listenTo'](_0xd899b9,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0xd899b9,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5df9db=super['_createCommentInputView']();return _0x5df9db['bind']('placeholder')['to'](this),_0x5df9db;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0x3194dd){const _0x38353c=throttle(_0x3194dd,0x1e),_0x5ac2e0=new MutationObserver(_0x271738=>{for(const _0x3911e8 of _0x271738)('attributes'==_0x3911e8['type']&&'class'==_0x3911e8['attributeName']||'childList'==_0x3911e8['type']||'characterData'==_0x3911e8['type'])&&_0x38353c();});return{'attach'(_0xdd1a34){_0x5ac2e0['observe'](_0xdd1a34,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5ac2e0['disconnect'](),_0x38353c['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2e50c1,_0x195aca){super(_0x2e50c1),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0xd4bfa4,_0x3e8156)=>this['fire']('Esc',_0x3e8156)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=createMutationObserver(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x195aca),this['mainView']=_0x195aca;const _0x32bf4d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x32bf4d['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x8de186=this['element']['clientHeight'];_0x8de186&&(this['height']=_0x8de186);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x18c06f,target:_0x204ccf,type:_0x4206ca,isVisible:_0x5008e7=!0x0}){super(),this['view']=_0x18c06f,this['view']['element']||this['view']['render'](),this['_type']=_0x4206ca,this['_target']=_0x204ccf,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x57625f,_0x44d431)=>{this['view']['focusTracker']['add'](_0x44d431);}),this['focusableElements']['on']('remove',(_0x27ca8c,_0x20974a)=>{this['view']['focusTracker']['remove'](_0x20974a);}),this['set']('isVisible',_0x5008e7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x51a1dc=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x51a1dc),_0x51a1dc;}get['targetRect'](){const _0xc5eeaa=this['target'];if(null===_0xc5eeaa)return null;if(_0xc5eeaa instanceof Rect)return _0xc5eeaa;const _0x3714c1=_0xc5eeaa['filter'](_0x36d037=>isDomElementVisible(_0x36d037));return 0x0===_0x3714c1['length']?null:Rect['getDomElementRects'](_0x3714c1[0x0])[0x0];}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5a90eb){this['view']['isActive']=_0x5a90eb,this['view']['mainView']['isActive']=_0x5a90eb;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x163747){if(!(null===_0x163747||_0x163747 instanceof Rect||Array['isArray'](_0x163747)&&_0x163747['every'](_0x507d77=>isElement$1(_0x507d77))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x163747});}['_getNormalizedTarget'](){const _0x3833f7='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0x3833f7)?[_0x3833f7]:_0x3833f7;}};function isElement$1(_0x24e6fc){return null!==_0x24e6fc&&'object'==typeof _0x24e6fc&&'nodeType'in _0x24e6fc&&0x1===_0x24e6fc['nodeType'];}function isDomElementVisible(_0x48c753){if(_0x48c753['offsetParent'])return!0x0;return!!_0x48c753['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4c8651=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x4aa3d4,_0x28324d,_0x1a402e)=>{_0x1a402e||this['fire']('blur');});for(const _0x1b36e6 of _0x4c8651)this['add'](_0x1b36e6);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5846b2){if(this['has'](_0x5846b2))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5846b2['innerView'],_0x5846b2),this['_viewToAnnotation']['set'](_0x5846b2['view'],_0x5846b2);for(const _0x108251 of _0x5846b2['focusableElements'])this['_focusTracker']['add'](_0x108251);if(this['listenTo'](_0x5846b2['focusableElements'],'add',(_0x27ee14,_0x16249e)=>{this['_focusTracker']['add'](_0x16249e);}),this['listenTo'](_0x5846b2['focusableElements'],'remove',(_0x4c7f36,_0x5b4f99)=>{this['_focusTracker']['remove'](_0x5b4f99);}),this['listenTo'](_0x5846b2['view']['focusTracker'],'change:isFocused',(_0x9bda87,_0x588de3,_0x2c336a)=>{_0x2c336a&&this['fire']('focus',_0x5846b2);}),_0x5846b2['updateTargetRect'](),this['_areCachedRectsStale']()){for(const _0x31c766 of this)_0x31c766['updateTargetRect']();}const _0x2e8f33=this['_getOrderInContent'](_0x5846b2['view']['targetRect']);return super['add'](_0x5846b2,_0x2e8f33);}['remove'](_0x3bf15d){if(!this['has'](_0x3bf15d))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x3bf15d['view']['focusTracker']),this['stopListening'](_0x3bf15d['focusableElements']);for(const _0x571687 of _0x3bf15d['focusableElements'])this['_focusTracker']['remove'](_0x571687);return this['_viewToAnnotation']['delete'](_0x3bf15d['view']),this['_innerViewToAnnotation']['delete'](_0x3bf15d['innerView']),super['remove'](_0x3bf15d);}['getByInnerView'](_0x2fa2a1){return this['_innerViewToAnnotation']['get'](_0x2fa2a1);}['getByView'](_0x1d4055){return this['_viewToAnnotation']['get'](_0x1d4055);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x51dc0f of this)_0x51dc0f['updateTargetRect']();this['_sort']();}['_sort'](){const _0x133124=Array['from'](this)['sort']((_0x49aa6c,_0x130384)=>elementOffsetComparator(_0x49aa6c['view']['targetRect'],_0x130384['view']['targetRect']));for(let _0x444f38=_0x133124['length']-0x1;_0x444f38>0x0;_0x444f38--){const _0x56327d=_0x133124[_0x444f38];_0x444f38!==this['getIndex'](_0x56327d)&&(this['remove'](_0x56327d),this['add'](_0x56327d));}}['_getOrderInContent'](_0x2f99ad){let _0x340f0d=0x0;if(!_0x2f99ad)return this['length'];for(const _0x4c2ed7 of this){const _0x36a61a=_0x4c2ed7['view']['targetRect'];if(_0x36a61a){if(elementOffsetComparator(_0x2f99ad,_0x36a61a)<0x0)return _0x340f0d;_0x340f0d++;}}return _0x340f0d;}['_areCachedRectsStale'](){const _0x40c6e8=this['get'](0x0);if(!_0x40c6e8)return!0x1;const _0x3909d5=_0x40c6e8['view']['targetRect'],_0x270cef=_0x40c6e8['targetRect'];return!(!_0x3909d5||!_0x270cef)&&(_0x3909d5['top']!==_0x270cef['top']||_0x3909d5['left']!==_0x270cef['left']);}}function bindAnnotationCollections({source:_0x1b86ad,target:_0x239637,filter:_0x3cdee0}){for(const _0x3989ef of _0x1b86ad)_0x3cdee0(_0x3989ef)&&_0x239637['add'](_0x3989ef);_0x239637['listenTo'](_0x1b86ad,'add',(_0x53b269,_0x2dd2c7)=>{_0x3cdee0(_0x2dd2c7)&&_0x239637['add'](_0x2dd2c7);}),_0x239637['listenTo'](_0x1b86ad,'remove',(_0x2ae1d5,_0x39b9a3)=>{_0x239637['has'](_0x39b9a3)&&_0x239637['remove'](_0x39b9a3);});}function elementOffsetComparator(_0x3f8771,_0x7d9731){if(null===_0x3f8771&&null===_0x7d9731)return 0x0;if(null===_0x3f8771)return-0x1;if(null===_0x7d9731)return 0x1;const _0xf09b16=_0x3f8771['top']-_0x7d9731['top'];return 0x0==_0xf09b16?_0x3f8771['left']-_0x7d9731['left']:_0xf09b16;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2be7ab){if(super(_0x2be7ab),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2be7ab instanceof Editor){const _0x19327c=_0x2be7ab['locale'];_0x2be7ab['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0x19327c,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x27f2c6){this['collection']['add'](_0x27f2c6);}['remove'](_0x23cfe7){this['collection']['remove'](_0x23cfe7),_0x23cfe7['destroy']();}['refreshVisibility'](){for(const _0x2f6b87 of this['collection'])_0x2f6b87['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x583add){return this['collection']['getByInnerView'](_0x583add);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x55e553 of this['collection'])_0x55e553['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x51994c){this['fire']('_activateAnnotation',_0x51994c);}['createAnnotation'](_0x5b6b5a){return new Annotation$1(_0x5b6b5a);}['createAnnotationView'](_0x3d0481,_0x74bf56){return new AnnotationView(_0x3d0481,_0x74bf56);}['_addActiveAnnotation'](_0x10fdad){const _0x19bfd3=new Set(this['activeAnnotations']);_0x19bfd3['add'](_0x10fdad),this['activeAnnotations']=_0x19bfd3;}['_removeActiveAnnotation'](_0x25a21b){const _0x2d42b2=new Set(this['activeAnnotations']);_0x2d42b2['delete'](_0x25a21b),this['activeAnnotations']=_0x2d42b2;}['_bindAnnotationsToVisibleAnnotations'](){const _0x11756a=this['collection'],_0x3a87bf=this['_visibleAnnotations'];function _0x2a2c45(_0x2e693e){const _0x49e5c9=_0x2e693e['source'];_0x49e5c9['isVisible']&&!_0x3a87bf['has'](_0x49e5c9)?_0x3a87bf['add'](_0x49e5c9):!_0x49e5c9['isVisible']&&_0x3a87bf['has'](_0x49e5c9)&&_0x3a87bf['remove'](_0x49e5c9),_0x49e5c9['view']['focusTracker']['remove'](_0x49e5c9['view']['element']),_0x49e5c9['view']['focusTracker']['add'](_0x49e5c9['view']['element']);}this['listenTo'](_0x11756a,'add',(_0x403586,_0x39e17f)=>{_0x39e17f['isVisible']&&_0x3a87bf['add'](_0x39e17f),this['listenTo'](_0x39e17f,'change:isVisible',_0x2a2c45);}),this['listenTo'](_0x11756a,'remove',(_0x4fbf4a,_0x551716)=>{_0x3a87bf['has'](_0x551716)&&_0x3a87bf['remove'](_0x551716),this['stopListening'](_0x551716,'change:isVisible',_0x2a2c45);});}['_setupEnterAnnotationKeystroke'](){const _0x376cc7=_0x277926=>{_0x277926['on']('ready',()=>{_0x277926['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0x4a0a0b,_0xde0bae)=>{const _0x43b09c=first(this['activeAnnotations']['values']());_0x43b09c&&(_0x43b09c['view']['focus'](),_0xde0bae());});});};this['context']instanceof Editor?_0x376cc7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x375a54,_0x2bb6e2)=>{_0x376cc7(_0x2bb6e2);});}['_setupEscapeAnnotationHandling'](){const _0x15f3d3=_0x5a6fd0=>{const _0x8d4b83=_0x5a6fd0['source'],_0x5cf7a9=[];let _0x35a431;if(Array['isArray'](_0x8d4b83['target'])){_0x35a431=_0x8d4b83['target'][0x0],this['context']instanceof Editor?_0x5cf7a9['push'](this['context']):this['context']['editors']&&_0x5cf7a9['push'](...this['context']['editors']);for(const _0x3551f5 of _0x5cf7a9)for(const _0x2a4e1b of _0x3551f5['editing']['view']['domRoots']['values']())if(_0x2a4e1b['contains'](_0x35a431))return void _0x3551f5['editing']['view']['focus']();_0x35a431['focus']();}};this['listenTo'](this['collection'],'add',(_0x77caca,_0x32e9f8)=>{this['listenTo'](_0x32e9f8,'escape',_0x15f3d3,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x46bb7f,_0x152fef)=>{this['stopListening'](_0x152fef,'escape',_0x15f3d3);});}}const noChannel=Symbol('noChannel'),defaultPermissions={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class CommentsRepository extends ContextPlugin{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[Annotations,PendingActions,Users];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59d0c1){super(_0x59d0c1),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x38caf4=this['context']['config'];_0x38caf4['define']('comments.maxCommentsWhenCollapsed',0x2),_0x38caf4['define']('comments.maxThreadTotalWeight',0x1f4),_0x38caf4['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x38caf4['define']('comments.CommentThreadView',CommentThreadView),_0x38caf4['define']('comments.CommentView',CommentView),_0x38caf4['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3924a5=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x497492,_0x4bbc4a)=>this['_addCommentThread'](_0x4bbc4a)),this['on']('submitCommentThread',(_0xf1bb4a,_0x45f692)=>this['_submitCommentThread'](_0x45f692)),this['on']('resolveCommentThread',(_0x1c9c0a,_0x578c9c)=>this['_resolveCommentThread'](_0x578c9c)),this['on']('resolveCommentThread',(_0x302b5b,_0x439aa7)=>this['_updateActiveAnnotation'](_0x439aa7),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x119332,_0x133d85)=>this['_reopenCommentThread'](_0x133d85)),this['on']('reopenCommentThread',(_0xf6f525,_0x37064e)=>this['_updateActiveAnnotation'](_0x37064e),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3b5a4a,_0x5c8ebf)=>this['_removeCommentThread'](_0x5c8ebf)),this['on']('updateCommentThread',(_0x3da70c,_0x2b39e2)=>this['_updateCommentThread'](_0x2b39e2)),this['on']('updateCommentThread',(_0x3bf910,_0xef77d9)=>this['_updateActiveAnnotation'](_0xef77d9),{'priority':'lowest'}),this['on']('addComment',(_0x3275de,_0x134ab7)=>this['_addComment'](_0x134ab7)),this['on']('updateComment',(_0x38e310,_0x26748e)=>this['_updateComment'](_0x26748e)),this['on']('removeComment',(_0x1fbeca,_0x38600e)=>this['_removeComment'](_0x38600e)),this['on']('addComment',(_0x10f84f,{threadId:_0x57525e,isFromAdapter:_0x4ffb8b})=>{if(_0x4ffb8b)return;const _0x38b676=this['getCommentThread'](_0x57525e),_0x4b4d96=_0x38b676&&this['_threadToController']['get'](_0x38b676);_0x4b4d96&&_0x4b4d96['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3924a5,'change:activeAnnotations',(_0x5cbc73,_0x4feafc,_0x5d3cc6)=>{const _0x13ea0c=Array['from'](_0x5d3cc6)['map'](_0xaf61fa=>this['_viewToController']['get'](_0xaf61fa['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x13ea0c?_0x13ea0c['model']:null;});}set['adapter'](_0x4fe18b){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x4fe18b;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x290033=noChannel,threadId:_0x41a23d=uid(),comments:_0x75d5ed=[],unlinkedAt:_0x4eb1ca=null,resolvedAt:_0x33790c=null,resolvedBy:_0x1c089b=null,target:_0x4bf2e2=null,context:_0x5ea017=null,attributes:_0x2c3ee3={},isResolvable:_0x159b3f=!0x0,isSubmitted:_0x22dbcd=!0x1,isFromAdapter:_0x53e218=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x290033),{'channelId':_0x290033,'threadId':_0x41a23d,'comments':_0x75d5ed,'unlinkedAt':_0x4eb1ca,'resolvedAt':_0x33790c,'resolvedBy':_0x1c089b,'target':_0x4bf2e2,'context':_0x5ea017,'attributes':_0x2c3ee3,'isFromAdapter':_0x53e218,'isResolvable':_0x159b3f,'isSubmitted':_0x22dbcd}),this['getCommentThread'](_0x41a23d);}['openNewCommentThread']({channelId:_0x376a38=noChannel,threadId:_0xed59c8=uid(),target:_0x5005c4,context:_0x541564=null,isResolvable:_0x2b5a2c=!0x0}){if(this['_readOnlyChannels']['has'](_0x376a38)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5005c4)throw new CKEditorError('commentsrepository-missing-target');const _0x3884ec=this['addCommentThread']({'channelId':_0x376a38,'threadId':_0xed59c8,'target':_0x5005c4,'context':_0x541564,'isResolvable':_0x2b5a2c});if(!_0x3884ec)return null;const _0x542a77=this['_threadToController']['get'](_0x3884ec),_0x3d3b46=_0x542a77['view']['commentThreadInputView']['commentInputView'],_0x338cd3=this['context']['plugins']['get'](Annotations),_0xfb114a=_0x338cd3['getByInnerView'](_0x542a77['view']);return _0x338cd3['activate'](_0xfb114a),_0x3d3b46['once']('editorReady',()=>_0x3d3b46['focus']()),_0x3884ec;}['hasCommentThread'](_0x37f050){if('string'!=typeof _0x37f050)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x37f050);}['updateCommentThread']({channelId:_0x3d39e2=noChannel,threadId:_0x349ab1,context:_0x510465,unlinkedAt:_0x40271a,attributes:_0x3da51f,isFromAdapter:_0x12f81f=!0x1}){return this['fire'](toEventName('updateCommentThread',_0x3d39e2),{'channelId':_0x3d39e2,'threadId':_0x349ab1,'context':_0x510465,'unlinkedAt':_0x40271a,'attributes':_0x3da51f,'isFromAdapter':_0x12f81f}),this['getCommentThread'](_0x349ab1);}['getCommentThread'](_0xd7a8a3){if('string'!=typeof _0xd7a8a3)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0xd7a8a3);}['fetchCommentThread']({channelId:_0x27167e,threadId:_0x3b2484}={}){const _0x34aa3d=this['getCommentThread'](_0x3b2484);if(_0x34aa3d)return Promise['resolve'](_0x34aa3d);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new CKEditorError('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x27167e,'threadId':_0x3b2484})['then'](_0x87dc2=>this['hasCommentThread'](_0x3b2484)?this['getCommentThread'](_0x3b2484):_0x87dc2?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x27167e},_0x87dc2)):void 0x0)['catch'](_0x1bb854=>{throw console['error'](_0x1bb854),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x54968d,skipNotAttached:_0x2d195d=!0x1,skipEmpty:_0x43bc5a=!0x1,toJSON:_0x45f220=!0x1}={}){const _0x296203=[];for(const _0x2121e5 of this['_threads']['values']())_0x54968d&&_0x2121e5['channelId']!==_0x54968d||_0x2d195d&&!_0x2121e5['isAttached']||_0x43bc5a&&0x0===_0x2121e5['length']||_0x296203['push'](_0x2121e5);return _0x45f220?_0x296203['map'](_0x10a24f=>_0x10a24f['toJSON']()):_0x296203;}['getAnnotationForCommentThread'](_0x456118){const _0x2f024d=this['_threadToController']['get'](_0x456118);if(!_0x2f024d)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x2f024d['view'])||null;}['getCommentThreadForAnnotation'](_0x2706dd){const _0x218b1c=this['_viewToController']['get'](_0x2706dd['innerView']);return _0x218b1c?_0x218b1c['model']:null;}['setActiveCommentThread'](_0x5efd77){const _0x325855=this['context']['plugins']['get'](Annotations);if(!_0x5efd77)return void(this['activeCommentThread']&&_0x325855['deactivateAll']());const _0x5e3a6a=this['getCommentThread'](_0x5efd77);if(!_0x5e3a6a)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x5efd77});if(!this['_threadToController']['has'](_0x5e3a6a))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x5efd77});const _0x1c6c7e=_0x325855['getByInnerView'](this['_threadToController']['get'](_0x5e3a6a)['view']);_0x325855['activate'](_0x1c6c7e);}['switchReadOnly'](_0x356be8,_0x2ac58e){_0x356be8?this['_readOnlyChannels']['add'](_0x2ac58e):this['_readOnlyChannels']['delete'](_0x2ac58e),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x218cc9){return this['_readOnlyChannels']['has'](_0x218cc9)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4b1018,_0x1eac11){return new CommentThreadController(_0x4b1018,_0x1eac11);}['setPermissions'](_0x566f0b,_0x2d431c=noChannel){this['_permissions']['set'](_0x2d431c,_0x566f0b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3f5f2b=noChannel){return this['_permissions']['has'](_0x3f5f2b)?this['_permissions']['get'](_0x3f5f2b):defaultPermissions;}['_addCommentThread']({channelId:_0x1964e8,threadId:_0xd44275,comments:_0x47e0d7,unlinkedAt:_0x3dfb09,resolvedAt:_0x536a0b,resolvedBy:_0x47a899,target:_0x55f09f,context:_0x1c11de,attributes:_0x50bbb1,isFromAdapter:_0x58d64a,isResolvable:_0x5913cc,isSubmitted:_0x1efb4b}){if('string'!=typeof _0xd44275)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xd44275});if(this['hasCommentThread'](_0xd44275))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xd44275});const _0x5be8f1=new CommentThread(this,{'channelId':_0x1964e8,'id':_0xd44275,'context':_0x1c11de,'attributes':_0x50bbb1,'unlinkedAt':_0x3dfb09,'resolvedAt':_0x536a0b,'resolvedBy':_0x47a899?this['context']['plugins']['get'](Users)['getUser'](_0x47a899):null,'isResolvable':_0x5913cc,'isSubmitted':_0x1efb4b||_0x58d64a});this['_threads']['set'](_0xd44275,_0x5be8f1);for(const _0x1ac7b0 of _0x47e0d7)_0x5be8f1['_add'](this['_createNewComment']({'threadId':_0xd44275,..._0x1ac7b0}));return _0x55f09f&&_0x5be8f1['attachTo'](_0x55f09f),_0x58d64a||!_0x5be8f1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1964e8,'threadId':_0xd44275});}['_submitCommentThread']({channelId:_0x56156f,threadId:_0x7b9e32}){if(!this['hasCommentThread'](_0x7b9e32))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x131bd0=this['getCommentThread'](_0x7b9e32);if(_0x131bd0['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x135053,comments:_0x4c8751,resolvedAt:_0x5297e3,resolvedBy:_0x454298,context:_0x57febf,attributes:_0x52e06e}=_0x131bd0,_0x2f6dfb=this['context']['plugins']['get']('PendingActions'),_0x3d0b6e=_0x2f6dfb['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x56156f,'threadId':_0x135053,'comments':_0x4c8751['map'](_0x2381c7=>_0x2381c7['toJSON']()),'resolvedAt':_0x5297e3,'resolvedBy':_0x454298?_0x454298['id']:_0x454298,'context':_0x57febf,'attributes':_0x52e06e})['then'](({comments:_0x179bd2})=>{_0x2f6dfb['remove'](_0x3d0b6e);for(const _0x190898 of _0x179bd2)this['_updateComment']({'channelId':_0x56156f,'threadId':_0x7b9e32,'commentId':_0x190898['commentId'],'createdAt':_0x190898['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1b29e6=>{throw console['error'](_0x1b29e6),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xba7dcf,target:_0x1a2a9d}){const _0x2e921f=this['getCommentThread'](_0xba7dcf);if(!_0x2e921f)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0xf8099a=this['context']['plugins']['get']('PendingActions'),_0x29fc20=this['context']['plugins']['get'](Annotations),_0x32ad64=this['_createCommentThreadView'](_0x2e921f),_0x5168db=new CommentThreadController(_0x2e921f,_0x32ad64);let _0x3defaa=null;_0x32ad64['on']('change:isDirty',(_0x5c14ce,_0x13c06f,_0x4e9d77)=>{_0x4e9d77?_0x3defaa=_0xf8099a['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x3defaa&&(_0xf8099a['remove'](_0x3defaa),_0x3defaa=null);}),this['_threadToController']['set'](_0x2e921f,_0x5168db),this['_viewToController']['set'](_0x32ad64,_0x5168db);const _0x5181b1=new AnnotationView(this['context']['locale'],_0x32ad64);_0x5181b1['bind']('length')['to'](_0x32ad64),_0x5181b1['bind']('isDirty')['to'](_0x32ad64,'isDirty',_0x32ad64,'length',(_0x51d425,_0x2ec146)=>_0x51d425||!_0x2ec146),_0x5181b1['bind']('isActive')['to'](_0x32ad64),_0x5181b1['type']='comment';const _0x32091b=new Annotation$1({'view':_0x5181b1,'target':_0x1a2a9d,'type':'comment','isVisible':!_0x2e921f['archivedAt']&&!!('function'==typeof _0x1a2a9d?_0x1a2a9d():_0x1a2a9d)});return _0x32ad64['on']('escape',()=>{_0x32091b['fire']('escape');}),this['_bindAnnotationToEditors'](_0x32ad64,_0x32091b),_0x29fc20['add'](_0x32091b),_0x32091b;}['_bindAnnotationToEditors'](_0x3429fb,_0x36c4dd){this['listenTo'](_0x3429fb,'editorReady',(_0x441d0c,_0x34b906)=>{const _0x59634f=_0x34b906['ui']['view']['body']['bodyCollectionContainer'];_0x36c4dd['focusableElements']['add'](_0x59634f),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0x59634f);},{'priority':'highest'}),this['listenTo'](_0x3429fb,'editorDestroyed',(_0x458d90,_0x4d874d)=>{const _0xef45b8=_0x4d874d['ui']['view']['body']['bodyCollectionContainer'];_0x36c4dd['focusableElements']['has'](_0xef45b8)&&_0x36c4dd['focusableElements']['remove'](_0xef45b8),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0xef45b8);});}['_unbindEditors'](_0xf05153){this['stopListening'](_0xf05153,'editorReady'),this['stopListening'](_0xf05153,'editorDestroyed');}['_createCommentThreadView'](_0x240b11){const _0x4c2fb2=this['context']['plugins']['get'](Users),{config:_0x4a1791,locale:_0x15e32b}=this['context'],_0x492f30=getDateTimeFormatter(_0x4a1791['get']('locale'),_0x15e32b);return new(0x0,(_0x4a1791['get']('comments'))['CommentThreadView'])(_0x15e32b,_0x240b11,_0x4c2fb2['me'],{'editorConfig':{..._0x4a1791['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4a1791['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4a1791['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a1791['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a1791['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x492f30,'CommentView':_0x4a1791['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x27a9df,channelId:_0x111a92,resolvedAt:_0x2d40a5,resolvedBy:_0x314243,isFromAdapter:_0x2ea0de}){if(!this['hasCommentThread'](_0x27a9df))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x27a9df});const _0x4f7b8b=this['getCommentThread'](_0x27a9df);if(_0x4f7b8b['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x27a9df});const _0x2f5b82=this['context']['plugins']['get'](Users);if(_0x4f7b8b['resolvedBy']=_0x2f5b82['getUser'](_0x314243),_0x4f7b8b['resolvedAt']=_0x2d40a5,_0x2ea0de||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x338f7f=this['context']['plugins']['get']('PendingActions'),_0x107e7a=_0x338f7f['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x111a92,'threadId':_0x27a9df})['then'](({resolvedAt:_0x5994b7,resolvedBy:_0x2b19ec})=>{_0x338f7f['remove'](_0x107e7a),_0x4f7b8b['resolvedBy']['id']!==_0x2b19ec&&(_0x4f7b8b['resolvedBy']=_0x2f5b82['getUser'](_0x2b19ec)),_0x4f7b8b['resolvedAt']=_0x5994b7;})['catch'](_0x4f8843=>{throw console['error'](_0x4f8843),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5e4e64,channelId:_0x3cac1c,isFromAdapter:_0x2bf5a1}){if(!this['hasCommentThread'](_0x5e4e64))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x5e4e64});const _0x4b025c=this['getCommentThread'](_0x5e4e64);if(!_0x4b025c['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5e4e64});if(_0x4b025c['resolvedBy']=null,_0x4b025c['resolvedAt']=null,_0x2bf5a1||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1dd83a=this['context']['plugins']['get']('PendingActions'),_0x1f80ec=_0x1dd83a['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x3cac1c,'threadId':_0x5e4e64})['then'](()=>_0x1dd83a['remove'](_0x1f80ec))['catch'](_0x19a192=>{throw console['error'](_0x19a192),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4230a8,isFromAdapter:_0x701b29}){const _0x492c21=this['getCommentThread'](_0x4230a8);if(!_0x492c21)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4230a8),this['_threads']['delete'](_0x4230a8),!_0x492c21['isSubmitted']||_0x701b29||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2901b2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x47f66e}=_0x492c21,_0xc358ca=_0x2901b2['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x47f66e,'threadId':_0x4230a8})['then'](()=>_0x2901b2['remove'](_0xc358ca))['catch'](_0x369362=>{throw console['error'](_0x369362),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x5ac88f,unlinkedAt:_0x13db04,context:_0x865d9,attributes:_0x2adf6f,isFromAdapter:_0x349a60}){if('string'!=typeof _0x5ac88f)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x5ac88f});if(!this['hasCommentThread'](_0x5ac88f))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x5ac88f});const _0x1a0288=this['getCommentThread'](_0x5ac88f);let _0x471f9e=!0x1;if(void 0x0!==_0x865d9&&_0x1a0288['context']!==_0x865d9&&(_0x1a0288['context']=_0x865d9,_0x471f9e=!0x0),void 0x0!==_0x13db04&&_0x1a0288['unlinkedAt']!==_0x13db04&&(_0x1a0288['unlinkedAt']=_0x13db04,_0x471f9e=!0x0),_0x2adf6f&&!isEqual(_0x2adf6f,_0x1a0288['attributes'])&&(_0x1a0288['attributes']=_0x2adf6f,_0x471f9e=!0x0),!_0x471f9e)return Promise['resolve']();if(!_0x1a0288['isSubmitted']||_0x349a60||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x56c99f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3696c1}=_0x1a0288,_0x2ee471=_0x56c99f['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x3696c1,'threadId':_0x5ac88f,'context':_0x865d9,'unlinkedAt':_0x13db04,'attributes':_0x2adf6f})['then'](()=>_0x56c99f['remove'](_0x2ee471))['catch'](_0x207dd7=>{throw console['error'](_0x207dd7),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x23c28b){const _0x10317e=this['context']['plugins']['get'](Annotations),_0x549856=this['getCommentThread'](_0x23c28b);if(_0x549856['_isAttached']=!0x1,this['_threadToController']['has'](_0x549856)){const _0x3598bb=this['_threadToController']['get'](_0x549856),_0x197d14=_0x3598bb['view'],_0x956b0a=_0x10317e['getByInnerView'](_0x197d14);this['_threadToController']['delete'](_0x549856),this['_viewToController']['delete'](_0x197d14),_0x956b0a&&_0x10317e['remove'](_0x956b0a),_0x3598bb['destroy'](),_0x197d14['destroy']()['then'](()=>{this['_unbindEditors'](_0x197d14);});}}['_updateActiveAnnotation']({threadId:_0xf688c2,resolvedAt:_0x43a0d9,unlinkedAt:_0x1a25d8}){const _0x563324=!!_0x43a0d9,_0x16f664=this['context']['plugins']['get'](Annotations),_0x56483a=this['getCommentThread'](_0xf688c2);if(this['_threadToController']['has'](_0x56483a)){const _0x11760f=this['_threadToController']['get'](_0x56483a)['view'],_0x594184=_0x16f664['getByInnerView'](_0x11760f);_0x594184&&(_0x563324&&_0x16f664['_removeActiveAnnotation'](_0x594184),_0x1a25d8?_0x594184['isVisible']=!0x1:_0x594184['refreshVisibility']());}}['_getExternalAuthor'](_0x53b84e){const _0x3a470c=this['context']['plugins']['get'](Users),_0x12160f=hashObject('external:'+_0x53b84e),_0x4f10d6=_0x3a470c['getUser'](_0x12160f);return _0x4f10d6||_0x3a470c['addUser']({'id':_0x12160f,'name':_0x53b84e});}['_createNewComment']({threadId:_0x4e7b70,commentId:_0x3500e0=uid(),content:_0x5567b1,authorId:_0x56219a,createdAt:_0x28c2c7,attributes:_0x29e352}){if('string'!=typeof _0x3500e0)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x56219a)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5567b1||!_0x5567b1['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x5a7882=this['context']['plugins']['get'](Users)['getUser'](_0x56219a);if(!_0x5a7882)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x56219a});let _0x5171a4=null,_0xede1e2=_0x28c2c7;return _0x29e352?.['@external']&&(_0x5171a4=this['_getExternalAuthor'](_0x29e352['@external']['authorName']),_0xede1e2=new Date(_0x29e352['@external']['createdAt'])),new Comment$1(this,{'threadId':_0x4e7b70,'id':_0x3500e0,'author':_0x5171a4||_0x5a7882,'creator':_0x5a7882,'content':_0x5567b1,'createdAt':_0x28c2c7,'authoredAt':_0xede1e2,'attributes':_0x29e352});}['_addComment'](_0x2dde26){let {threadId:_0x2b4ccd,content:_0x445d96,attributes:_0x409110,isFromAdapter:_0x11af2c}=_0x2dde26;const _0x449aab=this['getCommentThread'](_0x2dde26['threadId']);if(!_0x449aab)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x587ecb=this['_createNewComment'](_0x2dde26),{id:_0x560694}=_0x587ecb;if(_0x449aab['_add'](_0x587ecb),_0x11af2c||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x449aab['isSubmitted'])return Promise['resolve']();const _0xa4c9b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x46e98b}=_0x449aab,_0x1e93f2=_0xa4c9b['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x409110||(_0x409110={}),this['adapter']['addComment']({'channelId':_0x46e98b,'threadId':_0x2b4ccd,'commentId':_0x560694,'content':_0x445d96,'attributes':_0x409110})['then'](_0x5909bc=>{_0xa4c9b['remove'](_0x1e93f2),_0x5909bc&&this['_updateComment']({'channelId':_0x46e98b,'threadId':_0x2b4ccd,'commentId':_0x560694,'createdAt':_0x5909bc['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5c325e=>{throw console['error'](_0x5c325e),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x1d2429,commentId:_0x5a8201,content:_0x26671f,createdAt:_0x51069e,attributes:_0x3b5cdc,isFromAdapter:_0x2252a5}){if(void 0x0!==_0x26671f&&('string'!=typeof _0x26671f||!_0x26671f['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x43bf6f=this['getCommentThread'](_0x1d2429),_0x4e9f92=_0x43bf6f['getComment'](_0x5a8201);if(!_0x4e9f92)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x2cfd4f=!0x1;if(_0x26671f&&_0x26671f!==_0x4e9f92['content']&&(_0x4e9f92['isEditable']||_0x2252a5)&&(_0x4e9f92['content']=_0x26671f,_0x2cfd4f=!0x0),_0x51069e&&_0x51069e!==_0x4e9f92['createdAt']&&(_0x4e9f92['createdAt']=_0x51069e,_0x4e9f92['attributes']&&_0x4e9f92['attributes']['@external']||(_0x4e9f92['authoredAt']=_0x51069e),_0x2cfd4f=!0x0),_0x3b5cdc&&!isEqual(_0x3b5cdc,_0x4e9f92['attributes'])&&(_0x4e9f92['attributes']=_0x3b5cdc,_0x2cfd4f=!0x0),!_0x2cfd4f)return Promise['resolve']();if(_0x43bf6f['fire']('commentUpdated'),_0x2252a5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2ec755=this['context']['plugins']['get']('PendingActions'),{channelId:_0xfddfc6}=this['getCommentThread'](_0x4e9f92['threadId']),_0x5c5ce4=_0x2ec755['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0xfddfc6,'threadId':_0x1d2429,'commentId':_0x5a8201,'content':_0x26671f,'attributes':_0x3b5cdc})['then'](()=>_0x2ec755['remove'](_0x5c5ce4))['catch'](_0x53f23b=>{throw console['error'](_0x53f23b),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x39b254,commentId:_0x5d697b,isFromAdapter:_0x567cda}){const _0x1c284c=this['getCommentThread'](_0x39b254),_0x599167=_0x1c284c['getComment'](_0x5d697b);if(!_0x599167)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x1c284c['_remove'](_0x599167),_0x567cda||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4535b0=this['context']['plugins']['get']('PendingActions'),{channelId:_0xc15701}=_0x1c284c,_0x283d55=_0x4535b0['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xc15701,'threadId':_0x39b254,'commentId':_0x5d697b})['then'](()=>_0x4535b0['remove'](_0x283d55))['catch'](_0x250040=>{throw console['error'](_0x250040),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x11f1d6,_0x32a2b0){super();const _0x5e2fe2=_0x32a2b0['isResolvable'];this['channelId']=_0x32a2b0['channelId'],this['id']=_0x32a2b0['id'],this['comments']=new Collection(),this['_repository']=_0x11f1d6,this['_isAttached']=!0x1,this['_isSubmitted']=_0x32a2b0['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x11f1d6,'_permissions',_0x11f1d6,'_readOnlyChannels',()=>_0x11f1d6['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x11f1d6,'_permissions',()=>_0x11f1d6['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x11f1d6,'_permissions',()=>{const _0x54c23c=_0x11f1d6['getPermissions'](this['channelId']);return _0x54c23c['write']||_0x54c23c['admin'];}),this['bind']('isResolvable')['to'](_0x11f1d6,'_permissions',()=>_0x5e2fe2&&_0x11f1d6['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x32a2b0['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0xf2fa99,_0x5592a3)=>_0xf2fa99?_0x5592a3?_0xf2fa99<_0x5592a3?_0xf2fa99:_0x5592a3:_0xf2fa99:_0x5592a3),this['set']('unlinkedAt',_0x32a2b0['unlinkedAt']||null),this['set']('resolvedAt',_0x32a2b0['resolvedAt']||null),this['set']('resolvedBy',_0x32a2b0['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x46aac7=>!!_0x46aac7),this['set']('attributes',_0x32a2b0['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x490add,_0xe6db58)=>_0x490add+_0xe6db58['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x265ad9,id:_0x5a2fb6}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x265ad9),{'channelId':_0x265ad9,'threadId':_0x5a2fb6});}['setUnlinkedAt'](_0x34d91c){this['_update']({'unlinkedAt':_0x34d91c});}['resolve']({resolvedAt:_0x4a6791=new Date(),resolvedBy:_0x287955='',isFromAdapter:_0x231a71=!0x1}={}){const _0xd79ae3=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x3be074,id:_0x133931}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x3be074),{'channelId':_0x3be074,'threadId':_0x133931,'resolvedAt':_0x4a6791,'resolvedBy':_0x287955||_0xd79ae3['id'],'isFromAdapter':_0x231a71});}['reopen']({isFromAdapter:_0x164644=!0x1}={}){const {channelId:_0x34275d,id:_0x218074}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0x34275d),{'channelId':_0x34275d,'threadId':_0x218074,'isFromAdapter':_0x164644});}['setContext'](_0x288ed8){this['context']||this['_update']({'context':_0x288ed8});}['setAttribute'](_0x5dbecc,_0x2b02ca){const _0x2f1ed0=cloneDeep(this['attributes']);set(_0x2f1ed0,_0x5dbecc,_0x2b02ca),this['_update']({'attributes':_0x2f1ed0});}['removeAttribute'](_0x22daa1){const _0x32fc81=cloneDeep(this['attributes']);unset(_0x32fc81,_0x22daa1),this['_update']({'attributes':_0x32fc81});}['remove']({isFromAdapter:_0x5e9ad2=!0x1}={}){const {channelId:_0x28a301,id:_0x12ba77}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x28a301),{'channelId':_0x28a301,'threadId':_0x12ba77,'isFromAdapter':_0x5e9ad2});}['attachTo'](_0x1b67a6){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1b67a6});}['addComment'](_0x54bf67){const {channelId:_0x15511a,id:_0x5dfc05}=this;this['_repository']['fire'](toEventName('addComment',_0x15511a,_0x5dfc05),Object['assign']({'channelId':_0x15511a,'threadId':_0x5dfc05},_0x54bf67));}['getComment'](_0xaeab2f){if('string'!=typeof _0xaeab2f)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xaeab2f});return this['comments']['get'](_0xaeab2f);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x23ff63=>_0x23ff63['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5b03fd){return this['listenTo'](_0x5b03fd,'change:authoredAt',()=>{const _0x1f1bf7=this['_findOptimalIndex'](_0x5b03fd),_0x39f8ca=this['comments'];_0x1f1bf7-0x1!=_0x39f8ca['getIndex'](_0x5b03fd)&&_0x1f1bf7+0x1!=_0x39f8ca['getIndex'](_0x5b03fd)&&(this['_remove'](_0x5b03fd),this['_add'](_0x5b03fd));}),this['comments']['add'](_0x5b03fd,this['_findOptimalIndex'](_0x5b03fd));}['_update'](_0x59ef51){const {channelId:_0x5d17ea,id:_0x3adf71}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0x5d17ea),{..._0x59ef51,'channelId':_0x5d17ea,'threadId':_0x3adf71});}['_remove'](_0xd90a6c){return this['stopListening'](_0xd90a6c),_0xd90a6c['destroy'](),this['comments']['remove'](_0xd90a6c);}['_findOptimalIndex'](_0xc314d8){const _0x4a2e04=this['comments']['find'](_0x1bb531=>new Date(_0x1bb531['authoredAt'])['getTime']()>new Date(_0xc314d8['authoredAt'])['getTime']());return _0x4a2e04?this['comments']['getIndex'](_0x4a2e04):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x534b6a){const _0x2224f3=document['createElement']('div');return _0x2224f3['innerHTML']=_0x534b6a,_0x2224f3['textContent']['length'];}let Comment$1=class extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x154180,_0x5a4a03){super();const _0x44a529=_0x154180['context']['plugins']['get'](Users)['me'],_0x1dcbc0=_0x154180['getCommentThread'](_0x5a4a03['threadId']),_0x46cf54=0x0===_0x1dcbc0['comments']['length'],_0x8b931d=_0x44a529===_0x5a4a03['author'];this['id']=_0x5a4a03['id'],this['threadId']=_0x5a4a03['threadId'],this['author']=_0x5a4a03['author'],this['creator']=_0x5a4a03['creator'],this['isExternal']=Boolean(_0x5a4a03['attributes']&&_0x5a4a03['attributes']['@external']),this['set']('content',_0x5a4a03['content']),this['createdAt']=_0x5a4a03['createdAt']||new Date(),this['set']('authoredAt',_0x5a4a03['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1dcbc0,'resolvedAt'),this['set']('attributes',_0x5a4a03['attributes']||{}),this['bind']('isEditable')['to'](_0x154180,'_permissions',()=>{const _0x51a6ab=_0x154180['getPermissions'](_0x1dcbc0['channelId'])['write'],_0x201d4d=_0x154180['getPermissions'](_0x1dcbc0['channelId'])['modifyAll'];return _0x8b931d&&_0x51a6ab||!_0x8b931d&&_0x201d4d;}),this['bind']('isRemovable')['to'](_0x1dcbc0,'isRemovable',_0x154180,'_permissions',_0x25e396=>{const _0x347bc3=_0x154180['getPermissions'](_0x1dcbc0['channelId'])['write'],_0x4b1123=_0x154180['getPermissions'](_0x1dcbc0['channelId'])['modifyAll'];return _0x8b931d&&_0x347bc3||_0x25e396&&_0x46cf54||!_0x8b931d&&_0x4b1123&&!_0x46cf54;}),this['bind']('isReadOnly')['to'](_0x1dcbc0,'isReadOnly'),this['_repository']=_0x154180;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x4f1d53){const {threadId:_0x1c735f,id:_0x21365f}=this;if(!this['_repository']['hasCommentThread'](_0x1c735f))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x14d2ff}=this['_repository']['getCommentThread'](_0x1c735f);this['_repository']['fire'](toEventName('updateComment',_0x14d2ff,_0x1c735f),{'channelId':_0x14d2ff,'threadId':_0x1c735f,'commentId':_0x21365f,..._0x4f1d53});}['setAttribute'](_0x2c427a,_0x4bfe1f){const _0x4b0ee1=cloneDeep(this['attributes']);set(_0x4b0ee1,_0x2c427a,_0x4bfe1f),this['update']({'attributes':_0x4b0ee1});}['removeAttribute'](_0x42923d){const _0x4dd9c7=cloneDeep(this['attributes']);unset(_0x4dd9c7,_0x42923d),this['update']({'attributes':_0x4dd9c7});}['remove'](_0x276a78={}){if(!_0x276a78['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4ca554,id:_0x7f2ef3}=this;if(!this['_repository']['hasCommentThread'](_0x4ca554))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1f47d8}=this['_repository']['getCommentThread'](_0x4ca554);this['_repository']['fire'](toEventName('removeComment',_0x1f47d8,_0x4ca554),{'channelId':_0x1f47d8,'threadId':_0x4ca554,'commentId':_0x7f2ef3,..._0x276a78});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}};function toEventName(_0x34f614,..._0x35daa3){for(const _0x2b6e9c of _0x35daa3)void 0x0!==_0x2b6e9c&&(_0x34f614+=':'+String(_0x2b6e9c));return _0x34f614;}class AddCommentThreadCommand extends Command{constructor(_0x3ff447){super(_0x3ff447),this['set']('hasContent',!0x1);}['refresh'](){const _0x2dbf7c=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5b98d5 of _0x2dbf7c['getRanges']())if(this['_hasContent'](_0x5b98d5))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x295df4=uid(),ranges:_0x346090,comment:_0xcdb25a}={}){const _0x30143b=this['editor']['model'],_0x5a2a07=_0x346090??Array['from'](_0x30143b['document']['selection']['getRanges']()),_0x59d4a5=[];for(const _0x5252d8 of _0x5a2a07)this['_hasContent'](_0x5252d8)&&_0x59d4a5['push'](this['_trimToContent'](_0x5252d8));if(!_0x59d4a5['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0xcdb25a&&this['_createCommentThread'](_0x295df4,_0xcdb25a),this['_createMarkersFromRanges'](_0x295df4,_0x59d4a5,!!_0xcdb25a);}['_createMarkersFromRanges'](_0x31d52c,_0x27b72b,_0x323d9d){this['editor']['model']['change'](_0x293029=>{for(const _0x5bc048 of _0x27b72b){const _0x21643a=uid()['substr'](0x1,0x5),_0x27b847='comment:'+_0x31d52c+':'+_0x21643a;_0x293029['addMarker'](_0x27b847,{'range':_0x5bc048,'usingOperation':_0x323d9d,'affectsData':_0x323d9d});}});}['_createCommentThread'](_0x4dcdc2,_0x3dce87){const _0xce7e5c=this['editor']['plugins']['get']('CommentsRepository'),_0xf7ba2e=this['editor']['config']['get']('collaboration.channelId'),_0x759d6d=this['editor']['plugins']['get']('Users')['me'];if(!_0x759d6d)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0xce7e5c['addCommentThread']({'threadId':_0x4dcdc2,'channelId':_0xf7ba2e,'comments':[{'authorId':_0x759d6d['id'],'content':_0x3dce87,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x1b920a){for(const _0x4ebb93 of _0x1b920a['getItems']())if(this['_itemIsContent'](_0x4ebb93))return!0x0;return!0x1;}['_itemIsContent'](_0x330d07){return _0x330d07['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x330d07)&&!_0x330d07['is']('element','tableCell');}['_trimToContent'](_0x3c4ef7){const _0x7c57f=_0x52c300=>!this['_itemIsContent'](_0x52c300['item']),_0xd63c97=_0x3c4ef7['start']['getLastMatchingPosition'](_0x7c57f),_0x37442f=_0x3c4ef7['end']['getLastMatchingPosition'](_0x7c57f,{'direction':'backward'});return this['editor']['model']['createRange'](_0xd63c97,_0x37442f);}}class EditorAnnotations extends Plugin{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[Annotations];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf688b4){super(_0xf688b4),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x22992a=this['editor'],_0x5aaeb5=_0x22992a['model']['document']['selection'],_0x1e15ee=debounce(()=>this['refreshSelectedViews'](),0xa);_0x5aaeb5['on']('change:range',(_0x135432,_0x279ae4)=>{_0x279ae4['directChange']&&(_0x1e15ee['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x22992a['editing']['view']['document'],'change:isFocused',(_0x49f8e3,_0x34e3b7,_0x2f7a12)=>{_0x2f7a12&&_0x1e15ee();}),this['listenTo'](_0x22992a['ui']['focusTracker'],'change:isFocused',(_0x4514bf,_0x2377fd,_0x5d075b)=>{_0x5d075b||this['fire']('blur',{'isAnnotationTracked':_0x239ced=>this['_editorAnnotationsData']['has'](_0x239ced['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x211f98){if(this['_editorAnnotations']['has'](_0x211f98['view']))return;this['_editorAnnotations']['add'](_0x211f98['view']),this['editor']['ui']['focusTracker']['add'](_0x211f98['view']['element']);const _0x593ef0=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x593ef0['collection'],'remove',(_0x3ed17f,_0x17523d)=>{this['editor']['ui']['focusTracker']['remove'](_0x17523d['view']['element']),this['_editorAnnotations']['delete'](_0x17523d['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3e741e){if('function'!=typeof _0x3e741e)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3e741e);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x444716,annotations:_0x5e44cd}){const _0x3f41a4=[],_0x187a6d=this['editor']['model']['document']['selection'],_0x568dbc=Array['from'](_0x187a6d['getRanges']());for(const [_0x666b34,_0x546e4c]of this['_editorAnnotationsData']){const _0x597293=_0x503b65(_0x546e4c),_0x5ae753=_0x5e44cd['getByInnerView'](_0x666b34);_0x597293&&_0x5ae753&&_0x3f41a4['push']({'annotation':_0x5ae753,'range':_0x597293});}function _0x503b65(_0x19d170){for(const _0x5f13c8 of _0x19d170)for(const _0x12c4b8 of _0x568dbc)if(_0x5f13c8['containsRange'](_0x12c4b8,!_0x187a6d['isCollapsed']))return _0x5f13c8;return null;}return _0x3f41a4['sort']((_0x2bd878,_0x5d2395)=>{const _0x3c28d1=_0x2bd878['range'],_0x34af6f=_0x5d2395['range'];if(!_0x3c28d1['isEqual'](_0x34af6f)){if(_0x3c28d1['containsRange'](_0x34af6f,!0x0))return 0x1;if(_0x34af6f['containsRange'](_0x3c28d1,!0x0))return-0x1;}return _0x2bd878['annotation']==_0x444716?-0x1:_0x5d2395['annotation']==_0x444716?0x1:0x0;})['map'](_0x1edab9=>_0x1edab9['annotation']);}get['_editorAnnotationsData'](){const _0x461cdd=new Map();for(const _0xad0cc3 of Array['from'](this['_dataCollectors']))for(const [_0x50060e,_0x3de817]of _0xad0cc3())_0x461cdd['set'](_0x50060e,_0x3de817);return _0x461cdd;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x3f5ff1=this['editor'];if(!_0x3f5ff1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3f5ff1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0x588ab3){super(_0x588ab3),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x712810=this['editor'],_0x48e338=_0x712810['commands']['get']('importWord'),_0x1a630b=_0x712810['plugins']['get'](Users);_0x48e338&&(_0x48e338['on']('execute',(_0x43626d,[,_0x126a06])=>{_0x126a06['collaboration_features']={'comments':!0x0,'user_id':_0x1a630b['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x48e338,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x7d9a90,_0x56b4b0){const {comment_threads:_0x18a2d6}=_0x56b4b0;_0x18a2d6&&_0x18a2d6['forEach'](({thread_id:_0x21adb1,comments:_0x1ef0ee,is_resolved:_0x489a3b})=>{const _0x3319fd=new Date(),_0x4617a0=_0x1ef0ee['map'](({author:_0x351947,content:_0x3f5871,created_at:_0x1711bc})=>({'content':_0x3f5871,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x3319fd,'attributes':{'@external':{'authorName':_0x351947,'createdAt':_0x1711bc?new Date(_0x1711bc):new Date(),'source':'importWord'}}})),_0x459f8f=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0x459f8f,'threadId':_0x21adb1,'comments':_0x4617a0,'resolvedAt':_0x489a3b?_0x3319fd:null});});}}class CommentsClipboard extends Plugin{constructor(_0x158af0){super(_0x158af0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0x592940=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x592940,'contentInsertion',(_0x10bb45,_0x216413)=>this['_removeMarkersWithoutThreads'](_0x216413['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xc66310){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xc66310;const _0xdd2f53=this['editor']['plugins']['get']('CommentsRepository');for(const _0x710932 of _0xc66310['keys']()){const [_0x266ff2,_0x315641]=_0x710932['split'](':');'comment'!=_0x266ff2||_0xdd2f53['hasCommentThread'](_0x315641)||_0xc66310['delete'](_0x710932);}return _0xc66310;}['_registerMarkerInClipboardPipeline'](){const _0x1e14ab=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x28e202=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x28e202&&_0x1e14ab['_registerMarkerToCopy']('comment',_0x28e202);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x5d5775){switch(_0x5d5775){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0x4a3f82){const _0x563fe9=_0x4a3f82['split'](':');return{'group':_0x563fe9[0x0],'id':_0x563fe9[0x1],'part':_0x563fe9[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xbc367e,_0x396aa3)=>{if(!_0x396aa3['options']['showCommentHighlights'])return null;if(_0x396aa3['options']['ignoreResolvedComments']){const {id:_0x69440}=splitMarkerName(_0xbc367e['markerName']),_0x4379c8=this['editor']['plugins']['get'](CommentsRepository);if(_0x4379c8['getCommentThread'](_0x69440)?.['isResolved']&&_0xbc367e['item'])return _0x396aa3['consumable']['consume'](_0xbc367e['item'],'addMarker:'+_0xbc367e['markerName']),_0x396aa3['consumable']['consume'](_0xbc367e['item'],'removeMarker:'+_0xbc367e['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5f2a84=>{_0x5f2a84['on']('addMarker:comment',(_0x40682a,_0x46d373,_0x3ad23d)=>{if(!_0x3ad23d['options']['showCommentHighlights'])return;const _0x1dc5c3=_0x46d373['item'];if(!_0x1dc5c3)return;const _0x1733fd=_0x3ad23d['mapper']['toViewElement'](_0x1dc5c3);this['editor']['model']['schema']['isObject'](_0x1dc5c3)&&_0x1733fd&&!_0x1733fd['getCustomProperty']('widget')&&_0x1733fd['is']('containerElement')&&toWidget(_0x1733fd,_0x3ad23d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb55a6,{writer:_0x24f590,options:_0x5f0f3c})=>{if(!_0x5f0f3c['showCommentHighlights'])return null;const _0x28f422=_0x24f590['createContainerElement']('div'),_0x21b94a=_0x24f590['createEmptyElement']('hr');return _0x24f590['addClass']('ck-horizontal-line',_0x28f422),_0x24f590['insert'](_0x24f590['createPositionAt'](_0x28f422,0x0),_0x21b94a),_0x28f422;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x50668f,{writer:_0x2f7947,options:_0x280a33})=>{if(!_0x280a33['showCommentHighlights'])return null;const _0x9eb17e=_0x2f7947['createContainerElement']('span'),_0x1e7dbf=_0x2f7947['createEmptyElement']('img');return _0x2f7947['addClass']('image-inline',_0x9eb17e),_0x2f7947['insert'](_0x2f7947['createPositionAt'](_0x9eb17e,0x0),_0x1e7dbf),_0x9eb17e;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25ba19,{writer:_0x7076b5,options:_0x22d125})=>{if(_0x22d125['showCommentHighlights'])return _0x7076b5['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0xfbd202,_0x1bb0ab,_0x19cdeb)=>{_0x19cdeb['options']['showCommentHighlights']&&_0xfbd202['stop']();},{'priority':'high'});}}const MAX_CONTEXT_LENGTH=0x96;class CommentsEditing extends Plugin{static get['requires'](){return[CommentsRepository,EditorAnnotations,Users,CommentsRestrictedEditingMode,CommentsImportWord,CommentsClipboard,ShowCommentHighlights];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32eaa0){super(_0x32eaa0),this['set']('isThreadsLoadingPaused',!0x0),_0x32eaa0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x211381,_0x3f3edc,_0x254d22,_0x304ad5)=>{const _0xacdbe2=_0x32eaa0['plugins']['get'](CommentsRepository),_0x413bfc=_0x254d22?splitMarkerName(_0x254d22)['id']:null;_0x32eaa0['model']['change'](()=>{if(_0x413bfc){const _0x27d410=this['getAllMarkersForId'](_0x413bfc);for(const _0x386464 of _0x27d410)_0x32eaa0['editing']['reconvertMarker'](_0x386464);}if(_0x304ad5){const {id:_0x46f287}=splitMarkerName(_0x304ad5),_0x4303a9=_0xacdbe2['getCommentThread'](_0x46f287);if(_0x4303a9&&_0x4303a9['unlinkedAt'])return;if(_0x4303a9&&!_0x4303a9['isAttached'])return;const _0x20be81=this['getAllMarkersForId'](_0x46f287);for(const _0x1bf7cf of _0x20be81)_0x32eaa0['editing']['reconvertMarker'](_0x1bf7cf);}}),_0x413bfc&&this['scrollToThreadMarker'](_0x413bfc);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x103ba6=this['editor'],_0x20629c=_0x103ba6['plugins']['get'](CommentsRepository),_0x2fba93=_0x103ba6['config']['get']('collaboration.channelId'),_0x383163=_0x20629c['getCommentThreads']()['filter'](_0x27a561=>_0x27a561['channelId']!==_0x2fba93);_0x103ba6['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0x103ba6)),this['listenTo'](_0x103ba6,'change:isReadOnly',(_0x424b30,_0x15c40d,_0x155d91)=>{_0x20629c['switchReadOnly'](_0x155d91,_0x103ba6['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x20629c,createChannelEvent('addCommentThread',_0x2fba93),(_0x23cba6,{threadId:_0x22170b})=>{const _0x5a98ee=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x22170b);_0x5a98ee?.['unlinkedAt']&&this['_attachArchivedThread'](_0x22170b);}),this['listenTo'](_0x20629c,createChannelEvent('removeCommentThread',_0x2fba93),(_0x13dc07,{threadId:_0x441c76})=>{_0x103ba6['model']['enqueueChange']({'isUndoable':!0x1},_0x37b073=>{const _0x356a8=this['getAllMarkersForId'](_0x441c76);for(const _0x502f18 of _0x356a8)_0x37b073['removeMarker'](_0x502f18);});}),this['listenTo'](_0x20629c,createChannelEvent('resolveCommentThread',_0x2fba93),(_0x4da4d6,{threadId:_0x5b1245})=>{this['_reconvertMarkers'](_0x5b1245);const _0x27878e=this['editor']['plugins']['get'](Annotations);(this['editor']['editing']['view']['hasDomSelection']||_0x27878e['collection']['isFocused'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x5b1245)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x20629c,createChannelEvent('reopenCommentThread',_0x2fba93),(_0x42c956,{threadId:_0x700cbd})=>{this['_reconvertMarkers'](_0x700cbd);},{'priority':'low'}),this['listenTo'](_0x20629c,createChannelEvent('addComment',_0x2fba93),(_0x5010d5,{threadId:_0x13b0fc,isFromAdapter:_0x3b97f8})=>{const _0x2dec9c=this['getAllMarkersForId'](_0x13b0fc);if(_0x3b97f8||0x0==_0x2dec9c['length']||!_0x20629c['hasCommentThread'](_0x13b0fc))return;0x1===_0x20629c['getCommentThread'](_0x13b0fc)['length']&&_0x103ba6['model']['enqueueChange']({'isUndoable':!0x1},_0x1d7ccc=>{for(const _0x356b6d of _0x2dec9c)_0x1d7ccc['updateMarker'](_0x356b6d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x383163);}['afterInit'](){checkLicense$h(this);}['destroy'](){const _0x233264=this['editor']['plugins']['get'](CommentsRepository),_0x78254b=this['editor']['config']['get']('collaboration.channelId');for(const _0x154c10 of _0x233264['getCommentThreads']({'channelId':_0x78254b}))_0x233264['_detachCommentThread'](_0x154c10['id']),_0x233264['_threads']['delete'](_0x154c10['id']);super['destroy']();}['hasMarkerForId'](_0x1282ea){return this['getAllMarkersForId'](_0x1282ea)['length']>0x0;}['getAllMarkersForId'](_0x5846b4){const _0x2f7cc8=[];for(const _0x58b248 of this['editor']['model']['markers'])_0x58b248['name']['startsWith']('comment:'+_0x5846b4)&&_0x2f7cc8['push'](_0x58b248);return _0x2f7cc8;}['scrollToThreadMarker'](_0x2d6dd9){setTimeout(()=>{const _0x511e6f=this['_getTargetForId'](_0x2d6dd9);if(!_0x511e6f)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x2d6dd9&&scrollViewportToShowTarget({'target':_0x511e6f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x36e13f){this['editor']['model']['change'](()=>{for(const _0x412f91 of this['getAllMarkersForId'](_0x36e13f))this['editor']['editing']['reconvertMarker'](_0x412f91);});}['_attachArchivedThread'](_0xe93d83){const _0x4e9184=this['editor']['plugins']['get'](CommentsRepository),_0x3ccd92=this['editor']['plugins']['get'](EditorAnnotations),_0x4b8cb2=_0x4e9184['getCommentThread'](_0xe93d83);if(!_0x4b8cb2['isAttached']){const _0x21617f=_0x4b8cb2['attachTo'](()=>this['_getTargetForId'](_0x4b8cb2['id']));_0x3ccd92['registerAnnotation'](_0x21617f),_0x4b8cb2['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5b1547=this['editor'],_0x58b252=_0x5b1547['plugins']['get'](Users);_0x5b1547['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x14974c,_0x844545)=>{const {id:_0x140ab6}=splitMarkerName(_0x14974c['markerName']),_0x4951c4=_0x5b1547['plugins']['get'](CommentsRepository)['getCommentThread'](_0x140ab6),_0x14c39d=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x140ab6;let _0x23ba4b;if(_0x4951c4&&_0x4951c4['isResolved']&&!_0x14c39d&&_0x14974c['item'])return _0x844545['consumable']['consume'](_0x14974c['item'],'addMarker:'+_0x14974c['markerName']),_0x844545['consumable']['consume'](_0x14974c['item'],'removeMarker:'+_0x14974c['markerName']),null;const _0x29191c=['ck-comment-marker'];return _0x14c39d&&_0x29191c['push']('ck-comment-marker--active'),_0x23ba4b=_0x4951c4?.['length']?_0x4951c4['comments']['first']['author']['id']:_0x58b252['me']['id'],{'classes':_0x29191c,'attributes':{'data-comment':_0x140ab6,'data-author-id':_0x23ba4b}};}}),_0x5b1547['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x195fd1,{options:_0x1fa050})=>{if(_0x1fa050['showCommentHighlights'])return null;const _0x5ac07f=_0x5b1547['plugins']['get'](CommentsRepository),_0x35a0ae=_0x5b1547['model']['markers']['get'](_0x195fd1),{id:_0x9ad684,part:_0x4251b6}=splitMarkerName(_0x195fd1);return _0x35a0ae&&!_0x35a0ae['affectsData']||_0x1fa050['ignoreResolvedComments']&&_0x5ac07f['getCommentThread'](_0x9ad684)?.['isResolved']?null:{'group':'comment','name':_0x4251b6?_0x9ad684+':'+_0x4251b6:_0x9ad684};}}),_0x5b1547['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xd30ec4,{writer:_0x42c4ef})=>_0x42c4ef['createElement']('$marker',{'data-name':'comment:'+_0xd30ec4['getAttribute']('id')})}),_0x5b1547['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x57b30a=this['editor'],_0x4c3509=_0x57b30a['plugins']['get'](CommentsRepository),_0x1d80a7=new Set(),_0x1cc621=new Set();_0x57b30a['model']['document']['registerPostFixer'](_0x4aa4ea=>{let _0x52bbd6=!0x1;for(const {name:_0x58c0fe,data:_0x5b444c}of _0x57b30a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x298a8e,id:_0x3779a4}=splitMarkerName(_0x58c0fe);let _0x2e51a4=_0x5b444c['newRange'];if('comment'!==_0x298a8e||!_0x2e51a4)continue;const _0x23925d='$graveyard'===_0x2e51a4['root']['rootName'];_0x23925d||(_0x2e51a4=fixMarkerRange(_0x2e51a4,_0x57b30a['model']),!_0x2e51a4||_0x2e51a4['isCollapsed']||!_0x5b444c['newRange']||_0x2e51a4['isEqual'](_0x5b444c['newRange']))?_0x57b30a['model']['hasContent'](_0x2e51a4)&&!_0x23925d?this['isThreadsLoadingPaused']?_0x1d80a7['add'](_0x58c0fe):this['_handleThreadMarker'](_0x58c0fe,_0x3779a4):(_0x1cc621['add'](_0x58c0fe),_0x1d80a7['delete'](_0x58c0fe),_0x4aa4ea['removeMarker'](_0x58c0fe),_0x52bbd6=!0x0):(_0x4aa4ea['updateMarker'](_0x58c0fe,{'range':_0x2e51a4}),_0x52bbd6=!0x0);}return _0x52bbd6;}),this['on']('change:isThreadsLoadingPaused',(_0x235f61,_0x17737f,_0x6532e7)=>{if(!_0x6532e7&&_0x1d80a7['size'])for(const _0x4e58ea of _0x1d80a7){const {id:_0xe23e3a}=splitMarkerName(_0x4e58ea);_0x1d80a7['delete'](_0x4e58ea),_0x57b30a['model']['markers']['get'](_0x4e58ea)&&this['_handleThreadMarker'](_0x4e58ea,_0xe23e3a);}}),this['listenTo'](_0x57b30a['model']['document'],'change',()=>{for(const {name:_0x215db7,data:{newRange:_0x35a707}}of _0x57b30a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x37c72e,id:_0x3f8586}=splitMarkerName(_0x215db7);if('comment'!==_0x37c72e)continue;const _0x1b5108=_0x4c3509['getCommentThread'](_0x3f8586),_0x30110a=this['hasMarkerForId'](_0x3f8586);_0x1b5108&&(!_0x1b5108['_hasTargetInContent']&&_0x35a707&&_0x57b30a['editing']['view']['once']('render',()=>{const _0x59bb22=_0x57b30a['plugins']['get'](Annotations),_0x5d5ba9=_0x4c3509['_threadToController']['get'](_0x1b5108)['view'];_0x59bb22['getByInnerView'](_0x5d5ba9)['refreshVisibility']();},{'priority':'low'}),_0x1b5108['_hasTargetInContent']=_0x30110a||!!_0x35a707),_0x35a707||(_0x1cc621['add'](_0x215db7),_0x1d80a7['delete'](_0x215db7));}for(const _0x2b289b of _0x1cc621){const {id:_0x12de61}=splitMarkerName(_0x2b289b),_0x5ccdd1=_0x4c3509['getCommentThread'](_0x12de61);if(_0x1d80a7['delete'](_0x2b289b),!_0x5ccdd1)continue;const _0x216f8f=this['hasMarkerForId'](_0x12de61);_0x216f8f||_0x5ccdd1['isSubmitted']?_0x216f8f||_0x5ccdd1['unlinkedAt']||_0x5ccdd1['setUnlinkedAt'](new Date()):_0x5ccdd1['remove']();}_0x1cc621['clear']();});}['_handleInitialThreads'](_0x3c8d0e){_0x3c8d0e['forEach'](_0x296ef8=>{_0x296ef8['unlinkedAt']&&this['_attachArchivedThread'](_0x296ef8['id']);});}['_getTargetForId'](_0xabc182){const _0x2341d1=this['editor'],_0x548838=this['getAllMarkersForId'](_0xabc182);return getAllMarkersDomElementsSorted(_0x2341d1['editing'],_0x548838);}['_getTextContext'](_0x4ba122){const _0x570988=this['getAllMarkersForId'](_0x4ba122);let _0x684f3e='',_0x2acbae=!0x1;for(const _0x5cc555 of _0x570988){const _0x42e071=_0x5cc555['getRange']();for(const _0x3ee1eb of Array['from'](_0x42e071['getItems']()))_0x3ee1eb['is']('$textProxy')?(_0x684f3e&&_0x2acbae&&(_0x684f3e+='\x20',_0x2acbae=!0x1),_0x684f3e+=_0x3ee1eb['data']):_0x2acbae=!0x0;_0x2acbae=!0x0;}return _0x684f3e['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0x2783fe,_0x2fe1c6){const _0x3bd267=this['editor'],_0x4e9895=_0x3bd267['plugins']['get'](CommentsRepository);let _0x151eea=_0x4e9895['getCommentThread'](_0x2fe1c6);const _0x159bc0=_0x3bd267['config']['get']('collaboration.channelId'),_0xd0da13=_0x3bd267['plugins']['get'](EditorAnnotations);if(_0x151eea&&(_0x151eea['unlinkedAt']&&_0x151eea['setUnlinkedAt'](null),_0x151eea['isAttached']))return _0x151eea;return!this['getAllMarkersForId'](_0x2fe1c6)[0x0]['managedUsingOperations']?_0x3bd267['editing']['view']['once']('render',()=>{if(_0x4e9895['getCommentThread'](_0x2fe1c6))return;const _0xcb0f33=_0x3bd267['plugins']['get'](Annotations);_0x151eea=_0x4e9895['openNewCommentThread']({'channelId':_0x159bc0,'threadId':_0x2fe1c6,'target':()=>this['_getTargetForId'](_0x2fe1c6),'context':{'type':'text','value':this['_getTextContext'](_0x2fe1c6)}});const _0x291a25=_0x4e9895['_threadToController']['get'](_0x151eea)['view'],_0xb6edbb=_0xcb0f33['getByInnerView'](_0x291a25);_0xb6edbb&&_0xd0da13['registerAnnotation'](_0xb6edbb);},{'priority':'low'}):_0x4e9895['fetchCommentThread']({'channelId':_0x159bc0,'threadId':_0x2fe1c6})['then'](_0x1534a5=>{if('destroyed'!==_0x3bd267['state']){if(_0x151eea=_0x1534a5,_0x151eea&&!_0x151eea['isAttached']){const _0x265dfd=_0x151eea['attachTo'](()=>this['_getTargetForId'](_0x2fe1c6));_0xd0da13['registerAnnotation'](_0x265dfd),_0x151eea['isResolved']&&this['_reconvertMarkers'](_0x2fe1c6);}else{if(!_0x151eea){const _0x35f158=this['getAllMarkersForId'](_0x2fe1c6);_0x3bd267['model']['change'](_0x35a34=>{for(const _0x59cd1a of _0x35f158)_0x35a34['removeMarker'](_0x59cd1a);});}}}}),_0x151eea;}['_handleThreadMarker'](_0x1e7dab,_0x34d1a9){const _0x415762=this['_attachMarkerToThread'](_0x1e7dab,_0x34d1a9);_0x415762&&!_0x415762['context']&&_0x415762['setContext']({'type':'text','value':this['_getTextContext'](_0x34d1a9)});}['_initAriaMarkerChangeAnnouncements'](){const _0x438b4d=this['editor'];surroundingMarkersDetector(_0x438b4d['model'],({left:_0x3bcb4b,entered:_0x35691e})=>{for(const _0x5aa97f of _0x3bcb4b)if(isCommentMarker(_0x5aa97f)){_0x438b4d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x438b4d['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1412c1 of _0x35691e)if(isCommentMarker(_0x1412c1)){_0x438b4d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x438b4d['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0x9dfe1b,_0x88d1e6){return _0x88d1e6?_0x9dfe1b+':'+_0x88d1e6:_0x9dfe1b;}function fixMarkerRange(_0x3bec13,_0xff4b65){const _0x5c9757=_0xff4b65['schema'],_0x878d39=_0xff4b65['createRange'](_0x3bec13['start']);for(const _0x40e749 of _0x3bec13['getWalker']()){const {type:_0x5554ad,item:_0x2859da,nextPosition:_0x1bcaed}=_0x40e749;if('text'===_0x5554ad||_0x5c9757['isObject'](_0x2859da)){const _0x59812a=_0xff4b65['createPositionBefore'](_0x2859da);_0x878d39['isCollapsed']&&(_0x878d39['start']=_0x59812a),_0x878d39['end']=_0x1bcaed;}}return _0x878d39;}function isCommentMarker(_0x3fb872){return'comment'===splitMarkerName(_0x3fb872['name'])['group'];}async function checkLicense$h(_0x3955d8){const _0x3764a2=_0x353e01([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x27a21c=window[_0x353e01([0x44,0x61,0x74,0x65])][_0x353e01([0x6e,0x6f,0x77])](),_0x48af34=_0x3955d8[_0x353e01([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x817311=new window[(_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c03e=>{_0x48af34[_0x353e01([0x6f,0x6e,0x63,0x65])](_0x353e01([0x72,0x65,0x61,0x64,0x79]),_0x45c03e);}),_0x1431c2={[_0x353e01([0x6b,0x74,0x79])]:_0x353e01([0x45,0x43]),[_0x353e01([0x75,0x73,0x65])]:_0x353e01([0x73,0x69,0x67]),[_0x353e01([0x63,0x72,0x76])]:_0x353e01([0x50,0x2d,0x32,0x35,0x36]),[_0x353e01([0x78])]:_0x353e01([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x353e01([0x79])]:_0x353e01([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x353e01([0x61,0x6c,0x67])]:_0x353e01([0x45,0x53,0x32,0x35,0x36])},_0x2d7e43=_0x48af34[_0x353e01([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x353e01([0x67,0x65,0x74])](_0x353e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5b1996=await(async function(){let _0x47add3,_0x55906f=null,_0x44f60a=null;try{if(_0x2d7e43==_0x353e01([0x47,0x50,0x4c]))return _0x353e01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47add3=(function(){const _0x2893df=_0x2d7e43[_0x353e01([0x73,0x70,0x6c,0x69,0x74])](_0x353e01([0x2e]));if(0x3!=_0x2893df[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x141c84=_0x2893df[0x1];return _0x2667b8(_0x141c84);function _0x2667b8(_0x2d1c2d){const _0x1359e4=_0x485cd2(_0x2d1c2d);return _0x1359e4&&_0x5425a2()?_0x1359e4:null;function _0x5425a2(){const _0x4d69b8=_0x1359e4[_0x353e01([0x6a,0x74,0x69])],_0x2320b6=window[_0x353e01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d69b8[_0x353e01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d69b8[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x219d3b={..._0x1359e4,[_0x353e01([0x6a,0x74,0x69])]:_0x4d69b8[_0x353e01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d69b8[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x219d3b[_0x353e01([0x76,0x63])],_0x57b7c1(_0x219d3b)==_0x2320b6;}}}()),!_0x47add3)return _0x353e01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x47add3[_0x353e01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x44f60a=function(_0x19aaec,_0x4d6098){return new window[(_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da9a0=>{if(_0x4c20f3())return _0x1da9a0(_0x353e01([0x56,0x61,0x6c,0x69,0x64]));_0x5226e6(),_0x48af34[_0x353e01([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x353e01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x166375=!0x1;const _0x4b27df=uid();function _0x5de432(_0xc077b5){return!!_0xc077b5&&(typeof _0xc077b5===_0x353e01([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc077b5===_0x353e01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc077b5[_0x353e01([0x74,0x68,0x65,0x6e])]===_0x353e01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc077b5[_0x353e01([0x63,0x61,0x74,0x63,0x68])]===_0x353e01([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dceb1(_0x25ead3){_0x28d44e(_0x25ead3)[_0x353e01([0x74,0x68,0x65,0x6e])](_0x55eba9=>{if(!_0x55eba9||_0x55eba9[_0x353e01([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x353e01([0x6f,0x6b]))return _0x353e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d889b(_0x57b7c1(_0x4b27df+_0x4d6098))!=_0x55eba9[_0x353e01([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x353e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x353e01([0x56,0x61,0x6c,0x69,0x64]);})[_0x353e01([0x74,0x68,0x65,0x6e])](_0x4c3cb7=>(_0x24172f(),_0x4c3cb7),()=>{const _0x1dd4f1=_0x41b9e4();return null==_0x1dd4f1?(_0x24172f(),_0x353e01([0x56,0x61,0x6c,0x69,0x64])):_0x353e01(_0x27a21c-_0x1dd4f1>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x353e01([0x74,0x68,0x65,0x6e])](_0x1da9a0)[_0x353e01([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1da9a0(_0x353e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20f4f6=0x36ee80;function _0x24172f(){const _0x471ddd=_0x353e01([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d889b(_0x57b7c1(_0x19aaec)),_0x38ae4d=_0x4847d5(_0x2d889b(window[_0x353e01([0x4d,0x61,0x74,0x68])][_0x353e01([0x63,0x65,0x69,0x6c])](_0x27a21c/_0x20f4f6)));window[_0x353e01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x353e01([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x471ddd,_0x38ae4d);}function _0x41b9e4(){const _0x348f77=_0x353e01([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d889b(_0x57b7c1(_0x19aaec)),_0x3fe353=window[_0x353e01([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x353e01([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x348f77);return _0x3fe353?window[_0x353e01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4847d5(_0x3fe353),0x10)*_0x20f4f6:null;}function _0x28d44e(_0x1254e0){return new window[(_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4effcc,_0xe51d56)=>{_0x1254e0[_0x353e01([0x74,0x68,0x65,0x6e])](_0x4effcc,_0xe51d56),window[_0x353e01([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe51d56,0x1d4c0);});}}_0x48af34[_0x353e01([0x6f,0x6e])](_0x353e01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59cdcb,_0x4e4d5f)=>{if(_0x4e4d5f[0x0]!=_0x19aaec)return _0x1da9a0(_0x353e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e4d5f[0x1]={..._0x4e4d5f[0x1],[_0x353e01([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b27df};},{[_0x353e01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x353e01([0x68,0x69,0x67,0x68])}),_0x48af34[_0x353e01([0x6f,0x6e])](_0x353e01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55df2b=>{_0x5de432(_0x55df2b[_0x353e01([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x166375=!0x0,_0x5dceb1(_0x55df2b[_0x353e01([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x353e01([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x353e01([0x6c,0x6f,0x77])}),_0x817311[_0x353e01([0x74,0x68,0x65,0x6e])](()=>{_0x166375||_0x1da9a0(_0x353e01([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c20f3(){return _0x48af34[_0x353e01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x353e01([0x76,0x69,0x65,0x77])][_0x353e01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x353e01([0x61,0x75,0x74,0x6f]);}function _0x5226e6(){_0x48af34[_0x353e01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x353e01([0x76,0x69,0x65,0x77])][_0x353e01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x353e01([0x61,0x75,0x74,0x6f]);}}(_0x47add3[_0x353e01([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47add3[_0x353e01([0x6a,0x74,0x69])]));const _0x3dcd1f=await(async function(){let _0x54aba8=!0x0;try{const _0x4f7f42=_0x2d7e43[_0x353e01([0x73,0x70,0x6c,0x69,0x74])](_0x353e01([0x2e])),[_0x20847b,_0x1376cf,_0x24fcd6]=_0x4f7f42;return _0x7d7eb9(_0x20847b),await _0x553417(_0x20847b,_0x1376cf,_0x24fcd6),_0x54aba8;}catch{return!0x1;}function _0x7d7eb9(_0x28cc80){const _0x5080ff=_0x485cd2(_0x28cc80);_0x5080ff&&_0x5080ff[_0x353e01([0x61,0x6c,0x67])]==_0x353e01([0x45,0x53,0x32,0x35,0x36])||(_0x54aba8=!0x1);}async function _0x553417(_0x2ca9a0,_0x1570b9,_0x249a08){const _0x479b0d=window[_0x353e01([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x353e01([0x66,0x72,0x6f,0x6d])](_0x40cd19(_0x249a08),_0x8ae830=>_0x8ae830[_0x353e01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41e75e=new window[(_0x353e01([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x353e01([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ca9a0+_0x353e01([0x2e])+_0x1570b9),_0x3b928c=window[_0x353e01([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x353e01([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b928c)return;const _0x369fde=await _0x3b928c[_0x353e01([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x353e01([0x6a,0x77,0x6b]),_0x1431c2,{[_0x353e01([0x6e,0x61,0x6d,0x65])]:_0x353e01([0x45,0x43,0x44,0x53,0x41]),[_0x353e01([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x353e01([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x353e01([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b928c[_0x353e01([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x353e01([0x6e,0x61,0x6d,0x65])]:_0x353e01([0x45,0x43,0x44,0x53,0x41]),[_0x353e01([0x68,0x61,0x73,0x68])]:{[_0x353e01([0x6e,0x61,0x6d,0x65])]:_0x353e01([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x369fde,_0x479b0d,_0x41e75e)||(_0x54aba8=!0x1);}}());return _0x3dcd1f?(function(){const _0x3db418=_0x47add3[_0x353e01([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3db418)return!0x1;if(_0x3db418[_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e01([0x2a])))return!0x0;if(_0x3db418[_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e01([0x43,0x4d,0x54])))return!0x0;if(_0x3db418[_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e01([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x353e01([0x67,0x6c,0x6f,0x62])]&&window[_0x353e01([0x67,0x6c,0x6f,0x62])][_0x353e01([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0x3db418[_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e01([0x52,0x43,0x4d,0x54]))){if(_0x149fb1(_0x353e01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x596ff2=_0x353e01([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x48af34[_0x353e01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x353e01([0x67,0x65,0x74])](_0x596ff2))[_0x353e01([0x73,0x74,0x61,0x74,0x65])]==_0x353e01([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x149fb1(_0x353e01([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x149fb1(_0x353e01([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}var _0x596ff2;return!0x1;}())?(function(){const _0x5df371=[_0x353e01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x353e01([0x74,0x72,0x69,0x61,0x6c])][_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47add3[_0x353e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27a21c/0x3e8:0x6a03bf00;return _0x47add3[_0x353e01([0x65,0x78,0x70])]<_0x5df371;}())?_0x353e01([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x32a261=_0x47add3[_0x353e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32a261||0x0==_0x32a261[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf0e8ca}=new URL(window[_0x353e01([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32a261[_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf0e8ca))return!0x0;const _0x554dec=_0xf0e8ca[_0x353e01([0x73,0x70,0x6c,0x69,0x74])](_0x353e01([0x2e]));return _0x32a261[_0x353e01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x357a7b=>_0x357a7b[_0x353e01([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e01([0x2a])))[_0x353e01([0x6d,0x61,0x70])](_0x39ed2b=>_0x39ed2b[_0x353e01([0x73,0x70,0x6c,0x69,0x74])](_0x353e01([0x2e])))[_0x353e01([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52ca4a=>_0x52ca4a[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x554dec[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x353e01([0x6d,0x61,0x70])](_0x5a9530=>Array(_0x554dec[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a9530[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x353e01([0x66,0x69,0x6c,0x6c])](_0x5a9530[0x0]===_0x353e01([0x2a])?_0x353e01([0x2a]):'')[_0x353e01([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a9530))[_0x353e01([0x73,0x6f,0x6d,0x65])](_0x583599=>_0x554dec[_0x353e01([0x65,0x76,0x65,0x72,0x79])]((_0x7594fc,_0x286b87)=>_0x583599[_0x286b87]===_0x7594fc||_0x583599[_0x286b87]===_0x353e01([0x2a])));}())?(_0x47add3[_0x353e01([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x353e01([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55906f=function(_0x183a18){const _0x4845ed=new window[(_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c3d6f=>setTimeout(_0x1c3d6f,0x93ecc)),_0x37b1f1=_0x817311[_0x353e01([0x74,0x68,0x65,0x6e])](()=>new window[(_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x284f65=>{let _0x127d76=0x0;_0x48af34[_0x353e01([0x6d,0x6f,0x64,0x65,0x6c])][_0x353e01([0x6f,0x6e])](_0x353e01([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bb4dc,_0x5c5529)=>{_0x5c5529[0x0][_0x353e01([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x127d76++,0x5e8==_0x127d76&&(_0x284f65(),_0x3bb4dc[_0x353e01([0x6f,0x66,0x66])]());});})),_0x4711dc=[_0x4845ed,_0x37b1f1];return window[_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x353e01([0x72,0x61,0x63,0x65])](_0x4711dc)[_0x353e01([0x74,0x68,0x65,0x6e])](()=>_0x183a18);}(_0x353e01([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x55906f&&_0x44f60a)return new window[(_0x353e01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x748264,_0x10993f)=>{_0x55906f[_0x353e01([0x74,0x68,0x65,0x6e])](_0x748264,_0x10993f),_0x44f60a[_0x353e01([0x74,0x68,0x65,0x6e])](_0x16879e=>{_0x16879e!=_0x353e01([0x56,0x61,0x6c,0x69,0x64])&&_0x748264(_0x16879e);},_0x10993f);});return _0x55906f||_0x44f60a||_0x353e01([0x56,0x61,0x6c,0x69,0x64]);}())):_0x353e01([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x353e01([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x353e01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x353e01([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x485cd2(_0x14c51f){return _0x14c51f[_0x353e01([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x353e01([0x65,0x79]))?JSON[_0x353e01([0x70,0x61,0x72,0x73,0x65])](_0x40cd19(_0x14c51f)):null;}function _0x40cd19(_0x147d91){return window[_0x353e01([0x61,0x74,0x6f,0x62])](_0x147d91[_0x353e01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x353e01([0x2b]))[_0x353e01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x353e01([0x2f])));}function _0x57b7c1(_0x2473d9){let _0x19dcc3=0x1505;function _0x46ea93(_0x80a82e){for(let _0x18bddf=0x0;_0x18bddf<_0x80a82e[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18bddf++){const _0x106658=_0x80a82e[_0x353e01([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18bddf);_0x19dcc3=(_0x19dcc3<<0x5)+_0x19dcc3+_0x106658,_0x19dcc3&=_0x19dcc3;}}return function _0x37c420(_0x5d04a6){Array[_0x353e01([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d04a6)?_0x5d04a6[_0x353e01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37c420):_0x5d04a6&&typeof _0x5d04a6==_0x353e01([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x353e01([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d04a6)[_0x353e01([0x73,0x6f,0x72,0x74])]()[_0x353e01([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12d206,_0x4d69c4])=>{_0x46ea93(_0x12d206),_0x37c420(_0x4d69c4);}):_0x46ea93(window[_0x353e01([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d04a6));}(_0x2473d9),_0x19dcc3>>>0x0;}function _0x2d889b(_0x331f8d){return _0x331f8d[_0x353e01([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x353e01([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x353e01([0x30]));}function _0x4847d5(_0x499283){return _0x499283[_0x353e01([0x73,0x70,0x6c,0x69,0x74])]('')[_0x353e01([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x353e01([0x6a,0x6f,0x69,0x6e])]('');}function _0x149fb1(_0x349ef6){return _0x48af34[_0x353e01([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x353e01([0x68,0x61,0x73])](_0x349ef6);}function _0x5313c3(){}function _0x353e01(_0xdd1066){return _0xdd1066['map'](_0x45aaf0=>String['fromCharCode'](_0x45aaf0))['join']('');}!function(_0x43195a){const _0x2e366f=(function(){const _0x499d66=window[_0x353e01([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x353e01([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x353e01([0x6e,0x6f,0x77])]())[_0x353e01([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x353e01([0x2e]),'');let _0x178e08=_0x353e01([0x4b]);for(let _0x6b254e=0x0;_0x6b254e<_0x499d66[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6b254e+=0x2){let _0x2f3fd9=window[_0x353e01([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x499d66[_0x353e01([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6b254e,_0x6b254e+0x2));_0x2f3fd9>=_0x3764a2[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f3fd9-=_0x3764a2[_0x353e01([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x178e08+=_0x3764a2[_0x2f3fd9];}return _0x178e08;}());_0x48af34[_0x2e366f]=_0x353e01([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43195a,_0x43195a!=_0x353e01([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x817311,_0x48af34[_0x353e01([0x6d,0x6f,0x64,0x65,0x6c])][_0x353e01([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5313c3,_0x48af34[_0x353e01([0x6d,0x6f,0x64,0x65,0x6c])][_0x353e01([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5313c3,_0x48af34[_0x353e01([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x353e01([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5b1996);}class CommentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsRepository,CommentsEditing,EditorAnnotations,Annotations];}get['CommentsListView'](){return CommentsListView;}get['CommentThreadInputView'](){return CommentThreadInputView;}['init'](){const _0x371ae3=this['editor'],_0x323ac5=_0x371ae3['plugins']['get'](CommentsRepository),_0x3cf75d=_0x371ae3['plugins']['get'](CommentsEditing),_0x51b1ed=_0x371ae3['plugins']['get'](Annotations),_0x2849c8=_0x371ae3['plugins']['get'](EditorAnnotations);_0x371ae3['ui']['componentFactory']['add']('comment',()=>{const _0x466b24=this['_createUIButton'](ButtonView);return _0x466b24['tooltip']=!0x0,_0x466b24;}),_0x371ae3['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x2849c8['addSourceCollector'](()=>{const _0x2bc58b=[];for(const [_0x37bac6,_0x461c6b]of _0x323ac5['_threadToController']){const _0x182dfb=_0x3cf75d['getAllMarkersForId'](_0x37bac6['id']),_0x21ac30=_0x182dfb['map'](_0x49b804=>_0x49b804['getRange']());_0x182dfb['length']>0x0&&_0x2bc58b['push']([_0x461c6b['view'],_0x21ac30]);}return _0x2bc58b;}),this['listenTo'](_0x51b1ed,'change:activeAnnotations',(_0x5ea628,_0x442cc6,_0x25d6f0)=>{const _0x4e23dc=Array['from'](_0x25d6f0)['map'](_0x2e40a9=>_0x2e40a9['innerView'])['find'](_0x2df682=>_0x323ac5['_viewToController']['has'](_0x2df682));if(!_0x4e23dc)return void(_0x3cf75d['activeMarker']=null);const _0x115ab3=_0x323ac5['_viewToController']['get'](_0x4e23dc)['model']['id'],_0x4fb51a='comment:'+_0x115ab3;_0x115ab3&&_0x3cf75d['hasMarkerForId'](_0x115ab3)?_0x3cf75d['activeMarker']=_0x4fb51a:_0x3cf75d['activeMarker']&&(_0x3cf75d['activeMarker']=null);}),this['listenTo'](_0x323ac5,'removeCommentThread',(_0x5271f0,{threadId:_0x30cddd,isFromAdapter:_0xacaa81})=>{!_0xacaa81&&_0x371ae3['ui']['focusTracker']['isFocused']&&_0x3cf75d['hasMarkerForId'](_0x30cddd)&&_0x371ae3['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x323ac5,'addComment',(_0x4bac1b,{threadId:_0x3ee186,isFromAdapter:_0x1ceece})=>{if(_0x1ceece||!_0x3cf75d['hasMarkerForId'](_0x3ee186)||!_0x323ac5['hasCommentThread'](_0x3ee186))return;0x1===_0x323ac5['getCommentThread'](_0x3ee186)['length']&&(_0x371ae3['editing']['view']['focus'](),_0x4bac1b['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x518db0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cb6b6;for(const _0x1c642f in _0x518db0){const _0x2f41dc=_0x1c642f,_0x5c54e7=_0x518db0[_0x2f41dc];if('commentsLicenseKeyValid'==_0x5c54e7||'commentsLicenseKeyInvalid'==_0x5c54e7||'commentsLicenseKeyExpired'==_0x5c54e7||'commentsLicenseKeyDomainLimit'==_0x5c54e7||'commentsLicenseKeyNotAllowed'==_0x5c54e7||'commentsLicenseKeyEvaluationLimit'==_0x5c54e7||'commentsLicenseKeyUsageLimit'==_0x5c54e7){delete _0x518db0[_0x2f41dc],_0x5cb6b6=_0x5c54e7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x5cb6b6&&_0x518db0['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x5cb6b6&&_0x518db0['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x5cb6b6&&_0x518db0['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x5cb6b6&&_0x518db0['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x5cb6b6&&_0x518db0['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x5cb6b6&&_0x518db0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x1687be){const _0x213fad=this['editor'],_0x157d33=new _0x1687be(_0x213fad['locale']),_0x41d72e=_0x213fad['commands']['get']('addCommentThread');return _0x157d33['set']({'label':getTranslation$f(_0x213fad['locale'],'Comment'),'icon':IconAddComment}),_0x157d33['bind']('isEnabled')['to'](_0x41d72e,'isEnabled',_0x41d72e,'hasContent',(_0x5fdf99,_0x23dc62)=>_0x5fdf99&&_0x23dc62),this['listenTo'](_0x157d33,'execute',()=>{_0x41d72e['execute']();}),_0x157d33;}}class CommentsOnly extends Plugin{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsEditing];}constructor(_0x5434d8){super(_0x5434d8),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x4e3af1,_0x5c5de7,_0x21193d)=>{_0x21193d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x341eb6,_0x5edfd3]of this['editor']['commands'])_0x5edfd3['affectsData']&&'addCommentThread'!==_0x341eb6&&_0x5edfd3['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0xf234d2=this['editor']['editing']['view']['document'];this['listenTo'](_0xf234d2,'cut',_0x558dd2=>_0x558dd2['stop'](),{'priority':'highest'}),this['listenTo'](_0xf234d2,'clipboardInput',_0x249351=>_0x249351['stop'](),{'priority':'highest'}),this['listenTo'](_0xf234d2,'delete',_0x299f4c=>_0x299f4c['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x451300,_0x5f3988]of this['editor']['commands'])_0x5f3988['affectsData']&&'addCommentThread'!==_0x451300&&_0x5f3988['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class AnnotationsUIs extends ContextPlugin{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[Annotations];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x326980){super(_0x326980),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x50abce=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x50abce,'_activateAnnotation',(_0x14eb64,_0x2af6f8)=>{for(const _0x4858a6 of this['activeUIs']){const _0x3f00f6=this['_uis']['get'](_0x4858a6);(0x0,this['uisData']['get'](_0x4858a6)['filter'])(_0x2af6f8)&&_0x3f00f6['setActiveAnnotation'](_0x2af6f8);}}),this['listenTo'](_0x50abce,'_deactivateAllAnnotations',()=>{for(const _0x186113 of this['activeUIs']){this['_uis']['get'](_0x186113)['setActiveAnnotation'](null);}}),this['listenTo'](_0x50abce['_visibleAnnotations'],'add',(_0x30c24b,_0x5e0f52)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5e0f52);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x309112){return this['activeUIs']['has'](_0x309112);}['activate'](_0x27f74a,_0x492251=this['defaultFilter']){const _0x5ec3e6=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x27f74a))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x27f74a});this['isActive'](_0x27f74a)&&this['deactivate'](_0x27f74a),this['activeUIs']['add'](_0x27f74a);const _0x2a3244=new AnnotationCollection();bindAnnotationCollections({'source':_0x5ec3e6['_visibleAnnotations'],'target':_0x2a3244,'filter':_0x492251}),this['uisData']['set'](_0x27f74a,{'collection':_0x2a3244,'filter':_0x492251});const _0x4b16be=this['_uis']['get'](_0x27f74a);_0x4b16be['attach'](_0x2a3244),this['listenTo'](_0x4b16be,'change:activeAnnotation',(_0x10717d,_0x4938d3,_0x420589,_0x59f466)=>{_0x59f466&&_0x5ec3e6['_removeActiveAnnotation'](_0x59f466),_0x420589&&_0x5ec3e6['_addActiveAnnotation'](_0x420589);});}['deactivate'](_0x3a3587){if(this['activeUIs']['delete'](_0x3a3587),!this['_uis']['has'](_0x3a3587))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x3a3587});const _0x4ecbaa=this['_uis']['get'](_0x3a3587);_0x4ecbaa['detach'](),this['stopListening'](_0x4ecbaa),this['uisData']['get'](_0x3a3587)['collection']['destroy'](),this['uisData']['delete'](_0x3a3587);}['switchTo'](_0x4eef45){if(!this['_uis']['has'](_0x4eef45))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x4eef45});const _0xca84b5=this['context']['plugins']['get'](Annotations),_0x3a4453=Array['from'](_0xca84b5['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4eef45);const _0x59ab42=this['_uis']['get'](_0x4eef45);_0x59ab42['setActiveAnnotation'](_0x3a4453),_0x59ab42['_setSelectedAnnotations']&&_0x3a4453&&_0x59ab42['_setSelectedAnnotations']([_0x3a4453]);}['deactivateAll'](){for(const _0x51878d of this['activeUIs'])this['deactivate'](_0x51878d);}['register'](_0x5d592e,_0x266587){if(this['_uis']['has'](_0x5d592e))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0x266587['attach']||'function'!=typeof _0x266587['detach']||'function'!=typeof _0x266587['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5d592e,_0x266587);}['refilterAnnotations'](){const _0x41a7ed=this['context']['plugins']['get'](Annotations)['collection'],_0x434ed2=new Map(),_0x3574ea=Array['from'](this['activeUIs']);for(const _0x340f29 of this['activeUIs']){const _0x393e04=this['uisData']['get'](_0x340f29)['collection'];for(const _0x53f268 of _0x393e04)_0x434ed2['set'](_0x53f268,_0x340f29);}for(const _0x5715d3 of _0x41a7ed){const _0x3324bc=_0x434ed2['get'](_0x5715d3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5715d3);const _0x445dcf=_0x3574ea['find'](_0x3db074=>this['uisData']['get'](_0x3db074)['filter'](_0x5715d3));_0x3324bc!==_0x445dcf&&(_0x3324bc&&this['uisData']['get'](_0x3324bc)['collection']['remove'](_0x5715d3),_0x445dcf&&this['uisData']['get'](_0x445dcf)['collection']['add'](_0x5715d3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x49e0d1){const _0x1237b1=[];for(const _0x11f24e of this['activeUIs']){(0x0,this['uisData']['get'](_0x11f24e)['filter'])(_0x49e0d1)&&_0x1237b1['push'](_0x11f24e);}if(_0x1237b1['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1237b1,'annotationType':_0x49e0d1['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x411bab){super(_0x411bab);const _0xed0a8=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xed0a8['to']('class')],'style':{'minHeight':_0xed0a8['to']('minHeight',_0x282887=>'number'==typeof _0x282887?toPx$2(_0x282887+0xa):null)},'dir':_0x411bab['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x411bab,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x411bab,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x50da96=>{this['_updateItemPositionInFocusables'](_0x50da96['source']);}),this['list']['forEach'](_0x3e25f4=>{this['focusTracker']['add'](_0x3e25f4['element']),this['_updateItemPositionInFocusables'](_0x3e25f4);}),this['list']['on']('change',(_0x51f75a,_0x1680b0)=>{for(const _0x29a538 of _0x1680b0['removed'])this['focusTracker']['remove'](_0x29a538['element']),this['focusables']['remove'](_0x29a538);for(const _0x5190b7 of _0x1680b0['added'])this['focusTracker']['add'](_0x5190b7['element']),this['_updateItemPositionInFocusables'](_0x5190b7);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5e85e6){const _0x4267f2=this['focusables']['getIndex'](_0x5e85e6);let _0x508fd3,_0x131231;for(const _0x1ee1d7 of this['focusables'])if(_0x5e85e6['top']<_0x1ee1d7['top']){_0x508fd3=_0x1ee1d7;break;}if(_0x131231=_0x508fd3?this['focusables']['getIndex'](_0x508fd3):this['focusables']['length'],-0x1!==_0x4267f2){if(_0x4267f2===_0x131231-0x1)return;this['focusables']['remove'](_0x5e85e6),_0x131231=_0x508fd3?this['focusables']['getIndex'](_0x508fd3):this['focusables']['length'];}this['focusables']['add'](_0x5e85e6,_0x131231);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4dd687){super(_0x4dd687),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1cb246,_0x576a76)=>_0x1cb246+_0x576a76),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x5881df=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x5881df['to']('isAnimationDisabled',_0x89b03d=>_0x89b03d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5881df['to']('top',_0xa6978b=>toPx$1(_0xa6978b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x46c60a=this['element']['clientHeight'];_0x46c60a&&(this['height']=_0x46c60a);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class Sidebar extends ContextPlugin{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cd145){super(_0x2cd145),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x435e75=this['context']['config']['get']('sidebar.container');_0x435e75&&this['setContainer'](_0x435e75);}['setContainer'](_0x201b50){if(!isElement(_0x201b50))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0x201b50;}['_attachToContainer']({viewClass:_0x3be459='',spaceBetweenItems:_0x364aa1=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3be459,this['_spaceBetweenItems']=_0x364aa1;}['rearrange']({removedAnnotation:_0x15df68,previousAnnotation:_0x5e9fc2,nextAnnotation:_0x399cf2}){const _0x418482=this['getSidebarItemView'](_0x15df68);this['view']['list']['remove'](_0x418482),this['_destroySidebarItemView'](_0x15df68),_0x5e9fc2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5e9fc2)),_0x399cf2&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x399cf2)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x52a635,activatedAnnotation:_0x31aa1d,disableAnimationOnActivatedAnnotation:_0x65046d}){if(this['_activeAnnotation']=_0x31aa1d,_0x52a635){_0x52a635['isActive']=!0x1;const _0x246c73=this['getSidebarItemView'](_0x52a635);_0x246c73&&_0x65046d&&(_0x246c73['isAnimationDisabled']=!0x1);}if(_0x31aa1d){const _0x8972a7=this['getSidebarItemView'](_0x31aa1d);_0x8972a7&&(_0x31aa1d['isActive']=!0x0,_0x65046d&&(_0x8972a7['isAnimationDisabled']=!0x0,_0x8972a7['top']+=0x1),this['_alignToTargetRect'](_0x8972a7));}}['_detachFromContainer'](_0x3b5489){if(this['view']['element']['remove'](),_0x3b5489){for(const _0x56617c of _0x3b5489)this['_destroySidebarItemView'](_0x56617c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3b0e5e,_0x2beeaf){_0x2beeaf||(_0x2beeaf=_0x3b0e5e['view']);const _0x286e28=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x286e28,_0x3b0e5e),this['_annotationToSidebarItemView']['set'](_0x3b0e5e,_0x286e28),_0x286e28['content']['add'](_0x2beeaf),this['listenTo'](_0x3b0e5e['view'],'change:targetRect',(_0x2e6831,_0xcad705,_0x42f6b1)=>{const _0x2c6eff=this['_getTargetTop'](_0x3b0e5e,_0x42f6b1);_0x286e28['_targetTop']!=_0x2c6eff&&(_0x286e28['_targetTop']=_0x2c6eff,this['_setItemTop'](_0x286e28,_0x2c6eff));}),this['listenTo'](_0x286e28,'change:top',()=>{this['_recalculate'](_0x286e28,'top');}),this['listenTo'](_0x286e28,'change:bottom',()=>{this['_recalculate'](_0x286e28,'bottom');}),this['_alignToTargetRect'](_0x286e28);const _0x2c1865=this['_getItemBefore'](_0x286e28);if(_0x2c1865)this['_alignAfterItem'](_0x2c1865,_0x286e28)||this['_alignToTargetRect'](_0x286e28);else this['_alignToTargetRect'](_0x286e28);return this['_updateLastItem'](),this['view']['list']['add'](_0x286e28),_0x286e28;}['_alignForTopChange'](_0x53b144){if(!_0x53b144['content']['length'])return;const _0x1eeadd=this['_getItemBefore'](_0x53b144);if(!_0x1eeadd)return;const _0x7df278=this['_sidebarItemViewToAnnotation']['get'](_0x1eeadd),_0x5c23da=this['_activeAnnotation'];_0x5c23da&&_0x5c23da===_0x7df278?this['_alignAfterItem'](_0x1eeadd,_0x53b144):this['_alignBeforeItem'](_0x53b144,_0x1eeadd);}['_alignForBottomChange'](_0x10fdec){if(!_0x10fdec['content']['length'])return;const _0x4e5851=this['_getItemAfter'](_0x10fdec);if(!_0x4e5851)return;const _0x4c8b9d=this['_sidebarItemViewToAnnotation']['get'](_0x4e5851),_0x33dac9=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x257c3d=this['_activeAnnotation'];_0x257c3d&&_0x257c3d===_0x4c8b9d&&_0x33dac9?(this['_alignBeforeItem'](_0x4e5851,_0x10fdec),this['_alignAfterItem'](_0x10fdec,_0x4e5851)):_0x257c3d&&_0x257c3d===_0x4c8b9d?this['_alignBeforeItem'](_0x4e5851,_0x10fdec):this['_alignAfterItem'](_0x10fdec,_0x4e5851);}['_recalculate'](_0x2088fb,_0x3daa4a){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x11a789,changedProp:_0x1448e2}of this['_recalculateBuffer'])'top'===_0x1448e2?this['_alignForTopChange'](_0x11a789):this['_alignForBottomChange'](_0x11a789);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2088fb,'changedProp':_0x3daa4a});}['getSidebarItemView'](_0xaa6569){return this['_annotationToSidebarItemView']['get'](_0xaa6569);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0xc99d55){const _0x9124bd=this['getSidebarItemView'](_0xc99d55);this['stopListening'](_0x9124bd),this['stopListening'](_0xc99d55['view']),_0x9124bd['destroy'](),this['_annotationToSidebarItemView']['delete'](_0xc99d55),this['_sidebarItemViewToAnnotation']['delete'](_0x9124bd);}['_createSidebarView'](){const _0xfe8a00=new AnnotationsSidebarView(this['context']['locale']);return _0xfe8a00['render'](),this['on']('change:_lastItem',(_0x2f92ca,_0x380a33,_0x5c070a,_0x4674e6)=>{_0x4674e6&&_0xfe8a00['unbind']('minHeight'),_0x5c070a?_0xfe8a00['bind']('minHeight')['to'](_0x5c070a,'bottom'):_0xfe8a00['minHeight']=null;}),_0xfe8a00;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2d70e7){const _0x47199e=this['_sidebarItemViewToAnnotation']['get'](_0x2d70e7),_0x525bd4=_0x47199e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x47199e)-0x1);return _0x525bd4&&this['getSidebarItemView'](_0x525bd4)||null;}['_getItemAfter'](_0x30f161){const _0x549804=this['_sidebarItemViewToAnnotation']['get'](_0x30f161),_0x432bb7=_0x549804&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x549804)+0x1);return _0x432bb7&&this['getSidebarItemView'](_0x432bb7)||null;}['_alignBeforeItem'](_0x52bf76,_0x33aa2b){_0x52bf76['updateHeight']();const _0x3a7a88=getOverlap(_0x33aa2b['bottom']+this['_spaceBetweenItems'],_0x52bf76['top']);return!!_0x3a7a88&&(this['_setItemTop'](_0x33aa2b,_0x33aa2b['top']-_0x3a7a88),!0x0);}['_alignAfterItem'](_0x407536,_0x26b343){_0x407536['updateHeight']();const _0x4a43ae=getOverlap(_0x407536['bottom']+this['_spaceBetweenItems'],_0x26b343['top']);return!!_0x4a43ae&&(this['_setItemTop'](_0x26b343,_0x26b343['top']+_0x4a43ae,!0x1),!0x0);}['_alignToTargetRect'](_0x93b47c){const _0x30237e=this['_sidebarItemViewToAnnotation']['get'](_0x93b47c);if(!_0x30237e||!_0x30237e['target']||!_0x30237e['targetRect'])return;const _0xbd7895=this['_getTargetTop'](_0x30237e,_0x30237e['targetRect']);this['_setItemTop'](_0x93b47c,_0xbd7895);}['_getTargetTop'](_0x29f284,_0x4594ec){if(null===_0x4594ec)return 0x0;if(_0x29f284['target']instanceof Rect)return _0x4594ec['top'];{const _0x2ff28e=new Rect(this['view']['element'])['top'];return _0x4594ec['top']-_0x2ff28e;}}['_setItemTop'](_0x1f8268,_0xda37a0,_0x96da50=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x96da50&&(_0xda37a0=Math['max'](_0xda37a0,this['_getMaxAvailableTop'](_0x1f8268))),_0x1f8268['top']=_0xda37a0;}['_getMaxAvailableTop'](_0x371b04){let _0x223103=this['_getItemBefore'](_0x371b04),_0x62e8de=0x0;for(;_0x223103;)_0x223103['updateHeight'](),_0x62e8de+=this['_spaceBetweenItems']+_0x223103['height'],_0x223103=this['_getItemBefore'](_0x223103);return _0x62e8de;}}function getOverlap(_0x3aa5ef,_0x3e00fb){return Math['max'](_0x3aa5ef-_0x3e00fb,0x0);}function isElement(_0x4b935b){return null!==_0x4b935b&&'object'==typeof _0x4b935b&&0x1===_0x4b935b['nodeType'];}class WideSidebar extends ContextPlugin{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Sidebar,AnnotationsUIs];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf1282b){super(_0xf1282b),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce(()=>{_0xf1282b['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x147822=this['context']['plugins']['get'](AnnotationsUIs),_0x270530=this['context']['plugins']['get'](Sidebar);_0x147822['register']('wideSidebar',this),_0x270530['container']&&_0x147822['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4e8bce){if(_0x4e8bce===this['activeAnnotation'])return;const _0x13bc65=this['context']['plugins']['get'](Sidebar);_0x13bc65['_activeAnnotation']=_0x4e8bce;const _0x57f51a=this['activeAnnotation'];_0x13bc65['refresh']({'blurredAnnotation':_0x57f51a,'activatedAnnotation':_0x4e8bce}),this['activeAnnotation']=_0x4e8bce;}['attach'](_0x53b8b6){this['annotations']=_0x53b8b6;const _0x9024b8=this['context']['plugins']['get'](Sidebar);if(_0x9024b8['_annotations']=_0x53b8b6,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x9024b8,'set:container',()=>{this['detach'](),this['listenTo'](_0x9024b8,'change:container',_0x5c8e3f=>{_0x5c8e3f['off'](),this['attach'](_0x53b8b6);});}),_0x9024b8['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x52d44e=_0x15a08e=>{_0x15a08e['updateTargetRect'](),_0x9024b8['addAnnotation'](_0x15a08e);};for(const _0x107c21 of _0x53b8b6)_0x52d44e(_0x107c21);this['listenTo'](_0x53b8b6,'add',(_0x5b1cb5,_0x390523)=>{_0x52d44e(_0x390523);}),this['listenTo'](_0x53b8b6,'remove',(_0x24e274,_0x10b830,_0x46bfa7)=>{_0x9024b8['rearrange']({'removedAnnotation':_0x10b830,'previousAnnotation':_0x53b8b6['get'](_0x46bfa7-0x1),'nextAnnotation':_0x53b8b6['get'](_0x46bfa7+0x1)}),_0x10b830===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x53b8b6,'focus',(_0x4ea30a,_0x3dd358)=>{this['setActiveAnnotation'](_0x3dd358);}),this['listenTo'](_0x53b8b6,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2bd7e3=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x2d4894 of _0x2bd7e3)this['_integrateWithEditorAnnotations'](_0x2d4894);this['listenTo'](_0x2bd7e3,'add',(_0x45c40e,_0x2dda81)=>{this['listenTo'](_0x2dda81,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2dda81);});}),this['listenTo'](_0x2bd7e3,'remove',(_0xa68f94,_0x288b5e)=>{_0x288b5e['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x288b5e['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new CKEditorError('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x389a72=this['context']['plugins']['get'](Sidebar);_0x389a72['_detachFromContainer'](this['annotations']),this['stopListening'](_0x389a72),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x59a59e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x59a59e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x4ae894){if(!_0x4ae894['plugins']['has']('EditorAnnotations'))return;const _0x396435=_0x4ae894['plugins']['get']('EditorAnnotations'),_0x55bfd2=()=>{const _0x37be49=_0x396435['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x37be49[0x0]||null);};this['listenTo'](_0x396435,'refresh',_0x55bfd2),this['listenTo'](_0x396435,'blur',(_0x12de7e,{isAnnotationTracked:_0xe5dc35})=>{this['activeAnnotation']&&_0xe5dc35(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x396435,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x14c701=>{_0x396435['hasDomSelection']()&&(_0x55bfd2(),_0x14c701['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x396435);}['_destroyEditorAnnotationsIntegration'](_0x1a3012){this['stopListening'](_0x1a3012),this['_editorAnnotations']['remove'](_0x1a3012);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0x557dd6){super(_0x557dd6);const _0x463c9c=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1d75ba,_0x383390)=>_0x1d75ba?'...':_0x383390['toString']()),this['set']('annotationType',''),this['icon']=IconAddComment,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new View(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x463c9c['to']('annotationType',_0xd07d0a=>'ck-annotation-counter__badge--'+_0xd07d0a),_0x463c9c['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x463c9c['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class NarrowSidebar extends ContextPlugin{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Sidebar,AnnotationsUIs];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e0355){super(_0x2e0355),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(DomEmitterMixin())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](AnnotationsUIs)['register']('narrowSidebar',this),this['bodyCollection']=new BodyCollection(this['context']['locale']),this['balloonPanelView']=new BalloonPanelView(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x206460){this['annotations']=_0x206460;const _0x529206=this['context']['plugins']['get'](Sidebar),_0x473317=this['balloonPanelView'];if(_0x529206['_annotations']=_0x206460,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x529206,'set:container',()=>{this['detach'](),this['listenTo'](_0x529206,'change:container',_0x2d7bb6=>{_0x2d7bb6['off'](),this['attach'](_0x206460);});}),_0x529206['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1d9195=_0x46aeab=>{const _0x23e9f4=new AnnotationCounterButtonView(this['context']['locale']);_0x529206['addAnnotation'](_0x46aeab,_0x23e9f4),this['_annotationToNarrowView']['set'](_0x46aeab,_0x23e9f4),_0x23e9f4['bind']('isDirty','annotationType','number')['to'](_0x46aeab['view'],'isDirty','type','length'),_0x23e9f4['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x473317['content']['first']!==_0x46aeab['view']?(this['_showBalloon'](_0x46aeab),_0x46aeab['view']['element']['focus'](),this['setActiveAnnotation'](_0x46aeab)):this['setActiveAnnotation'](null);});};for(const _0x10c314 of _0x206460)_0x1d9195(_0x10c314);this['listenTo'](_0x206460,'add',(_0x21d017,_0x2b05c9)=>{_0x1d9195(_0x2b05c9);}),this['listenTo'](_0x206460,'remove',(_0x3d25a2,_0x3e9394,_0x394d33)=>{this['_annotationToNarrowView']['get'](_0x3e9394)['destroy'](),this['_annotationToNarrowView']['delete'](_0x3e9394),_0x529206['rearrange']({'removedAnnotation':_0x3e9394,'previousAnnotation':_0x206460['get'](_0x394d33-0x1),'nextAnnotation':_0x206460['get'](_0x394d33+0x1)}),_0x3e9394===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x206460,'focus',(_0x1397e5,_0x395d97)=>{this['setActiveAnnotation'](_0x395d97);}),this['listenTo'](_0x206460,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x29f656,_0x2e2b0f)=>{_0x2e2b0f['keyCode']===keyCodes['esc']&&_0x473317['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x473317['content']['first']),this['_hideBalloon'](),_0x2e2b0f['stopPropagation'](),_0x2e2b0f['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3e85ab,_0x2eef15)=>{const _0x60e1d7=_0x2eef15['target'];_0x473317['isVisible']&&_0x473317['element']['contains'](_0x60e1d7)||_0x529206['view']['element']['contains'](_0x60e1d7)||_0x3e85ab['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x589651=>_0x589651['contains'](_0x60e1d7))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1243e6=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x82690a of _0x1243e6)this['_integrateWithEditorAnnotations'](_0x82690a);this['listenTo'](_0x1243e6,'add',(_0x21621e,_0x6ade01)=>{this['listenTo'](_0x6ade01,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x6ade01);});}),this['listenTo'](_0x1243e6,'remove',(_0x469919,_0x42a687)=>{_0x42a687['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x42a687['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x15f14a){if(_0x15f14a===this['activeAnnotation'])return;const _0x5bc181=this['context']['plugins']['get'](Sidebar);if(_0x5bc181['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x15f14a,'disableAnimationOnActivatedAnnotation':!0x0}),_0x15f14a)_0x5bc181['getSidebarItemView'](_0x15f14a)?this['_showBalloon'](_0x15f14a):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x15f14a;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x17623d=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2e71c6=>_0x2e71c6['destroy']()),this['_annotationToNarrowView']['clear'](),_0x17623d['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x4c1311 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4c1311);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x40a137){if(!_0x40a137['plugins']['has']('EditorAnnotations'))return;const _0x15edbb=_0x40a137['plugins']['get']('EditorAnnotations'),_0x14b5cd=this['context']['plugins']['get'](Sidebar),_0x300a86=this['annotations'],_0x3d3b95=this['balloonPanelView'],_0x5f4cd6=()=>{const _0x524de0=_0x15edbb['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x524de0),this['setActiveAnnotation'](_0x524de0[0x0]||null);};this['listenTo'](_0x15edbb,'refresh',_0x5f4cd6),this['listenTo'](_0x15edbb,'blur',(_0x324aa8,{isAnnotationTracked:_0x1a5d9e})=>{this['activeAnnotation']&&_0x1a5d9e(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x15edbb,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x300a86,'blur',_0xdf1c56=>{_0x15edbb['hasDomSelection']()&&_0xdf1c56['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4a078d,_0xcf019a)=>{const _0x1633d6=_0xcf019a['target'];_0x3d3b95['isVisible']&&_0x3d3b95['element']['contains'](_0x1633d6)||_0x14b5cd['view']['element']['contains'](_0x1633d6)||this['activeAnnotation']&&_0x15edbb['hasDomSelection']()&&(_0x5f4cd6(),_0x4a078d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x15edbb);}['_destroyEditorAnnotationsIntegration'](_0x36ca26){_0x36ca26&&(this['stopListening'](_0x36ca26),this['_editorAnnotations']['remove'](_0x36ca26));}['_setSelectedAnnotations'](_0x36d451){for(const _0x9dfce4 of this['_selectedAnnotations'])_0x36d451['includes'](_0x9dfce4)||this['_manuallyClosedAnnotationViews']['delete'](_0x9dfce4['view']);this['_selectedAnnotations']=_0x36d451;}['_refreshPositioning'](){const _0x5add7e=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5add7e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x75ebce){if(this['_manuallyClosedAnnotationViews']['has'](_0x75ebce['view']))return;const _0x18ce4b=this['balloonPanelView']['content']['first'];_0x18ce4b!==_0x75ebce['view']?(_0x18ce4b&&this['_detachListeners'](_0x18ce4b),this['_attachListeners'](_0x75ebce['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x75ebce['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4c8fea=this['balloonPanelView']['content']['first'],_0x15f0f9=_0x4c8fea&&this['annotations']['getByView'](_0x4c8fea);if(!_0x15f0f9||!this['_annotationToNarrowView']['has'](_0x15f0f9))return;const _0x413c09=this['_annotationToNarrowView']['get'](_0x15f0f9)['element'],_0x516231=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0x413c09,'positions':_0x516231});}['_hideBalloon'](){const _0x14420e=this['balloonPanelView'],_0x214b89=_0x14420e['content']['first'];_0x214b89&&(this['_detachListeners'](_0x214b89),_0x14420e['unpin'](),_0x14420e['content']['clear']());}['_attachListeners'](_0x4aafe7){this['listenTo'](_0x4aafe7,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4aafe7,'Esc',(_0x40162e,_0x22d4f4)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4aafe7),this['_hideBalloon'](),_0x22d4f4();});}['_detachListeners'](_0x3bdfce){this['stopListening'](_0x3bdfce);}}function getBalloonPositions(){const _0xf5f14d=BalloonPanelView['defaultPositions'];return[_0xf5f14d['southArrowNorthEast'],_0xf5f14d['northArrowSouthEast'],_0xf5f14d['southArrowNorth'],_0xf5f14d['northArrowSouth'],_0xf5f14d['southArrowNorthWest'],_0xf5f14d['northArrowSouthWest']];}class InlineAnnotations extends Plugin{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[EditorAnnotations,ContextualBalloon,AnnotationsUIs];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x594151){super(_0x594151),_0x594151['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x594151['plugins']['get'](ContextualBalloon),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=debounce(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x4b3136=this['editor']['plugins']['get'](AnnotationsUIs);_0x4b3136['context']===this['editor']&&(_0x4b3136['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x22f666,_0x234638)=>{const _0x169217=this['_balloon'];if(this['isAttached']&&_0x169217['visibleView']){const _0x137090=this['annotations']['getByView'](_0x169217['visibleView']);_0x137090&&this['_closeAnnotation'](_0x137090),_0x234638();}}));}['afterInit'](){const _0x2bfce1=this['editor']['plugins']['get'](AnnotationsUIs);_0x2bfce1['context']===this['editor']&&(_0x2bfce1['hasActive']()||_0x2bfce1['switchTo']('inline'));}['setActiveAnnotation'](_0x2618e1){_0x2618e1!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2618e1&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2618e1)&&this['_addAnnotationToBalloon'](_0x2618e1,!0x0),_0x2618e1['isActive']=!0x0),_0x2618e1||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2618e1);}['attach'](_0x1f6069){this['annotations']=_0x1f6069;const _0x524249=this['editor']['plugins']['get'](AnnotationsUIs),_0x4d84a4=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x524249['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0x3aad7e=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0x3aad7e,'refresh',()=>{const _0x533ace=_0x3aad7e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x533ace,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x533ace),this['setActiveAnnotation'](_0x533ace[0x0]||null));}),this['listenTo'](_0x3aad7e,'blur',(_0x2b7861,{isAnnotationTracked:_0xa34fbf})=>{this['activeAnnotation']&&_0xa34fbf(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3aad7e,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5ef22f,_0x18514d,_0x67ff7d)=>{_0x67ff7d||this['setActiveAnnotation'](null);}),this['listenTo'](_0x1f6069,'remove',(_0x5e3ef9,_0x32dd2e)=>{this['_removeAnnotationFromBalloon'](_0x32dd2e),_0x32dd2e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4d84a4,'change:visibleView',(_0x36b0a7,_0x1f2e0e,_0x1ab9f9,_0x4366c4)=>{_0x4366c4&&this['stopListening'](_0x4366c4);const _0x44f2ee=_0x1f6069['getByView'](_0x1ab9f9);_0x1ab9f9&&_0x44f2ee&&(this['listenTo'](_0x1ab9f9,'change:height',()=>{_0x4d84a4['updatePosition']();}),this['listenTo'](_0x1ab9f9,'Esc',()=>{this['_closeAnnotation'](_0x44f2ee),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x44f2ee&&this['setActiveAnnotation'](_0x44f2ee));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4d84a4['visibleView']&&(_0x1f6069['getByView'](_0x4d84a4['visibleView'])&&_0x4d84a4['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new CKEditorError('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x42b0dd of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x42b0dd);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x4a84e2){for(const _0x511a66 of this['_selectedAnnotations'])_0x4a84e2['includes'](_0x511a66)||this['_manuallyClosed']['delete'](_0x511a66);for(const _0xb6f15f of this['annotations'])_0x4a84e2['includes'](_0xb6f15f)||this['_removeAnnotationFromBalloon'](_0xb6f15f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4a6241 of _0x4a84e2)this['_addAnnotationToBalloon'](_0x4a6241);}this['_selectedAnnotations']=_0x4a84e2;}['_addAnnotationToBalloon'](_0x36b939,_0x5f27c8=!0x1){this['_manuallyClosed']['has'](_0x36b939)||(this['_addedAnnotations']['has'](_0x36b939)||this['_balloon']['hasView'](_0x36b939['view'])||(this['_addedAnnotations']['add'](_0x36b939),this['_balloon']['add']({'stackId':_0x36b939['view']['id'],'view':_0x36b939['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x36b939)}})),_0x5f27c8&&this['_balloon']['showStack'](_0x36b939['view']['id']));}['_getBalloonTargetForAnnotation'](_0x22b761){const _0x456da9=_0x22b761['target'],_0x39e987=this['editor']['editing']['view'],_0x3c8d13=_0x39e987['document']['selection']['getFirstRange'](),_0x564130=_0x39e987['domConverter']['viewRangeToDom'](_0x3c8d13);if(_0x564130['collapse'](!0x0),_0x456da9){if(_0x456da9 instanceof Rect)return _0x456da9;let _0x365027=[];for(const _0x51bafe of _0x456da9)_0x365027['push'](...Rect['getDomElementRects'](_0x51bafe));_0x365027=joinClientRects(_0x365027);const _0x2cfdf8=_0x564130['getBoundingClientRect']();return _0x365027['find'](_0x3a60c4=>_0x3a60c4['top']<=_0x2cfdf8['top']&&_0x3a60c4['bottom']>=_0x2cfdf8['bottom']&&_0x3a60c4['left']<=_0x2cfdf8['left']&&_0x3a60c4['right']>=_0x2cfdf8['right'])||_0x365027[0x0];}return _0x22b761['targetRect']||_0x564130;}['_removeAnnotationFromBalloon'](_0x2a4a74){this['_addedAnnotations']['has'](_0x2a4a74)&&this['_balloon']['hasView'](_0x2a4a74['view'])&&(this['_addedAnnotations']['delete'](_0x2a4a74),this['_balloon']['remove'](_0x2a4a74['view']));}['_closeAnnotation'](_0x438a58){this['_manuallyClosed']['add'](_0x438a58),this['_removeAnnotationFromBalloon'](_0x438a58);}}function arraysEqual(_0x131cb4,_0x9b0b7a){return _0x131cb4['length']===_0x9b0b7a['length']&&_0x131cb4['every'](_0x2e32a7=>_0x9b0b7a['includes'](_0x2e32a7));}function joinClientRects(_0x428c02){const _0x3f3404=[];let _0x330cfe=_0x428c02[0x0];for(let _0x22fa1b=0x1;_0x22fa1b<_0x428c02['length'];_0x22fa1b++)if(canJoinRects(_0x330cfe,_0x428c02[_0x22fa1b])){const _0x4fb55b=_0x428c02[_0x22fa1b]['width'];_0x330cfe['width']+=_0x4fb55b,_0x330cfe['right']+=_0x4fb55b;}else _0x3f3404['push'](_0x330cfe),_0x330cfe=_0x428c02[_0x22fa1b];return _0x3f3404['push'](_0x330cfe),_0x3f3404;}function canJoinRects(_0x41594e,_0x278ff9){return _0x41594e['top']===_0x278ff9['top']&&_0x41594e['bottom']===_0x278ff9['bottom']&&_0x41594e['right']===_0x278ff9['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x347a99,_0x20ac65){super(_0x347a99),this['set']('isEmpty',!_0x20ac65['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x20ac65,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x20ac65,'focusTracker':this['focusTracker']}),this['listenTo'](_0x20ac65,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x20ac65,'remove',(_0x43de3b,_0x366a12)=>{_0x366a12['isActive']&&this['focus'](),_0x20ac65['length']||(this['isEmpty']=!0x0);});const _0x54b652=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0x347a99,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x20ac65},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x54b652['if']('isEmpty','ck-hidden',_0x5283aa=>!_0x5283aa)]},'children':[{'text':getTranslation$f(_0x347a99,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x1891c3 of this['_annotationViews'])this['focusTracker']['add'](_0x1891c3['element']);this['_annotationViews']['on']('change',(_0x125839,{added:_0x78f07a,removed:_0x42ab8d})=>{for(const _0x51665b of _0x78f07a)this['focusTracker']['add'](_0x51665b['element']);for(const _0x3051ad of _0x42ab8d)this['focusTracker']['remove'](_0x3051ad['element']);});}}class CommentsArchive extends ContextPlugin{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsRepository,Annotations];}constructor(_0x1d4fec){super(_0x1d4fec),this['archivedThreads']=new Collection();}['init'](){const _0x3082a9=this['context'],_0x150308=_0x3082a9['plugins']['get'](CommentsRepository),_0xf1c2f7=_0x3082a9['plugins']['get'](Annotations);this['listenTo'](_0x150308,'addCommentThread',(_0x3c8530,{threadId:_0x35759e})=>{const _0xd56b7b=_0x150308['getCommentThread'](_0x35759e);_0xd56b7b['archivedAt']&&this['archivedThreads']['add'](_0xd56b7b,this['_calculatePosition'](_0xd56b7b['archivedAt'])),this['listenTo'](_0xd56b7b,'change:archivedAt',(_0x16b77b,_0x292400,_0x115d76)=>{_0x115d76?this['archivedThreads']['has'](_0xd56b7b)||this['archivedThreads']['add'](_0xd56b7b,this['_calculatePosition'](_0xd56b7b['archivedAt'])):this['archivedThreads']['has'](_0xd56b7b)&&this['archivedThreads']['remove'](_0xd56b7b);});}),this['listenTo'](_0x150308,'removeCommentThread',(_0x30d49d,{threadId:_0x26e79e})=>{const _0x133dc0=_0x150308['getCommentThread'](_0x26e79e);this['stopListening'](_0x133dc0),this['archivedThreads']['has'](_0x133dc0)&&this['archivedThreads']['remove'](_0x133dc0);},{'priority':'highest'}),this['listenTo'](_0xf1c2f7['collection'],'focus',(_0x1cb89a,_0x1dec0c)=>{_0x1dec0c['isVisible']||(_0x1dec0c['isActive']=!0x0,_0xf1c2f7['activate'](_0x1dec0c));});}['_calculatePosition'](_0x44f459){const _0x5a057f=[...this['archivedThreads']]['findIndex'](_0x5d11c4=>_0x5d11c4['archivedAt']<_0x44f459);return _0x5a057f>-0x1?_0x5a057f:this['archivedThreads']['length'];}}class CommentsArchiveUI extends Plugin{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsArchive,Dialog];}constructor(_0x38a3f7){super(_0x38a3f7),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0x4b83c2=this['editor'],_0x5df423=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4b83c2['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0x4b83c2['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3dcf92=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0x3dcf92['set']({'role':'menuitemcheckbox'}),_0x3dcf92;});const _0x551765=_0x4b83c2['plugins']['get'](CommentsArchive),_0x12e00e=_0x4b83c2['plugins']['get']('Annotations'),_0x35d76d=_0x4b83c2['plugins']['get']('CommentsRepository');_0x551765['archivedThreads']['forEach'](_0x10b663=>{this['_handleNewThread'](_0x10b663);}),this['listenTo'](_0x551765['archivedThreads'],'add',(_0x1e4859,_0xd4173a)=>{this['_handleNewThread'](_0xd4173a);}),this['listenTo'](_0x12e00e['collection'],'add',(_0x4ced6f,_0x22e5c3)=>{const _0xf43ab1=this['_pendingThreads']['find'](_0x39c192=>{const _0x1e40c1=_0x35d76d['_threadToController']['get'](_0x39c192);return _0x1e40c1&&_0x22e5c3['innerView']===_0x1e40c1['view'];});if(_0xf43ab1){const _0x10a3e1=this['_calculatePosition'](_0xf43ab1['archivedAt']);this['_addAnnotationToArchive'](_0x22e5c3,_0x10a3e1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xf43ab1),0x1);}}),this['listenTo'](_0x551765['archivedThreads'],'remove',(_0xa3270b,_0x562f52)=>{const _0x53ac42=_0x4b83c2['config']['get']('collaboration.channelId');if(!_0x53ac42||_0x562f52['channelId']===_0x53ac42){if(this['_pendingThreads']['includes'](_0x562f52))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x562f52),0x1);else{const _0x57f910=_0x35d76d['_threadToController']['get'](_0x562f52),_0x20c8e0=_0x12e00e['getByInnerView'](_0x57f910['view']);this['annotationViews']['remove'](_0x20c8e0['view']),this['stopListening'](_0x20c8e0),this['stopListening'](_0x20c8e0['focusableElements']);}}}),this['listenTo'](_0x12e00e['collection'],'add',(_0x45d641,_0x280a5e)=>{this['listenTo'](_0x280a5e,'escape',_0x5df423);}),this['listenTo'](_0x12e00e['collection'],'remove',(_0x2cd8c4,_0x25cc70)=>{this['stopListening'](_0x25cc70,'escape',_0x5df423);});}['_addAnnotationToArchive'](_0x4a5f4b,_0x3f0549){this['listenTo'](_0x4a5f4b,'set:isVisible',_0x2d579a=>{_0x2d579a['return']=!0x1,_0x2d579a['stop']();}),this['annotationViews']['add'](_0x4a5f4b['view'],_0x3f0549);}['_handleNewThread'](_0x40e380){const _0x36c501=this['editor']['plugins']['get']('CommentsRepository'),_0x56d4ea=this['editor']['plugins']['get']('Annotations'),_0x3f5c50=this['editor']['config']['get']('collaboration.channelId');if(!_0x3f5c50||_0x40e380['channelId']===_0x3f5c50){const _0xdf3e76=_0x36c501['_threadToController']['get'](_0x40e380);if(!_0xdf3e76)return void this['_pendingThreads']['push'](_0x40e380);const _0x243452=this['_calculatePosition'](_0x40e380['archivedAt']),_0x27424b=_0x56d4ea['getByInnerView'](_0xdf3e76['view']);_0x27424b['isVisible']&&_0x56d4ea['_visibleAnnotations']['remove'](_0x27424b),this['_addAnnotationToArchive'](_0x27424b,_0x243452);}}['_calculatePosition'](_0x3ddb8f){const _0xeff743=this['editor']['config']['get']('collaboration.channelId'),_0x4e3831=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x351111=>_0x351111['channelId']===_0xeff743)['findIndex'](_0x28a0ea=>_0x28a0ea['archivedAt']<_0x3ddb8f);return _0x4e3831<0x0||_0x4e3831>this['annotationViews']['length']?this['annotationViews']['length']:_0x4e3831-0x1;}['_toggleDialog'](){const _0x24d2eb=this['editor'],_0x28a3d7=_0x24d2eb['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0x24d2eb['locale'],this['annotationViews'])),'commentsArchive'===_0x28a3d7['id']?_0x28a3d7['hide']():_0x28a3d7['show']({'id':'commentsArchive','title':getTranslation$f(_0x24d2eb['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5cbcc6,_0x3d9891=!0x1){const _0x2de322=this['editor']['locale'],_0x1a95f3=this['editor']['plugins']['get']('Dialog'),_0x49cbee=new _0x5cbcc6(_0x2de322);return _0x49cbee['bind']('isEnabled')['to'](this,'isEnabled'),_0x49cbee['bind']('isOn')['to'](_0x1a95f3,'id',_0x3ba8c6=>'commentsArchive'===_0x3ba8c6),_0x49cbee['set']({'label':getTranslation$f(_0x2de322,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x3d9891&&(_0x49cbee['tooltip']=!0x0),this['listenTo'](_0x49cbee,'execute',()=>this['_toggleDialog']()),_0x49cbee;}['_hideDialogOnAnnotationEscape']=_0x36923b=>{const _0x4853ab=_0x36923b['source'];if(!this['annotationViews']['has'](_0x4853ab['view']))return;const _0x46608c=this['editor']['plugins']['get']('Dialog');_0x46608c['isOpen']&&'commentsArchive'===_0x46608c['id']&&(_0x46608c['hide'](),_0x36923b['stop']());};}class Comments extends Plugin{static get['requires'](){return[CommentsRepository,CommentsEditing,CommentsUI,CommentsArchive,CommentsArchiveUI,CommentsOnly,WideSidebar,NarrowSidebar,InlineAnnotations];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getElementText(_0x5830f6){let _0x2053a8='';for(const _0x1d36f8 of _0x5830f6['getChildren']())_0x1d36f8 instanceof ModelText&&(_0x2053a8+=_0x1d36f8['data']);return _0x2053a8;}function getDefaultFeatureHeadingNames(_0xffb258){const _0x4afa16=_0xffb258['config']['get']('heading.options');return _0x4afa16?_0x4afa16['reduce']((_0x2c7791,_0x1fbb8e)=>('paragraph'!==_0x1fbb8e['model']&&_0x2c7791['push'](_0x1fbb8e['model']),_0x2c7791),[]):_0xffb258['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}class DocumentOutlineUtils extends Plugin{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0xeee0a6=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0x49d454=[];_0xeee0a6['model']['document']['on']('change',debounce(()=>{const _0x2fa8a6=_0x49d454;_0x49d454=this['_getOutlineDefinitions']();const _0x3d1d3e=_0x5e3a1d(_0x2fa8a6,_0x49d454,(_0x372a98,_0xc53ebb)=>_0x372a98['level']===_0xc53ebb['level']&&_0x372a98['text']===_0xc53ebb['text']&&_0x372a98['modelElement']===_0xc53ebb['modelElement']),_0x8ef0e9=diffToChanges(_0x3d1d3e,_0x49d454),_0x139b95=this['_getActiveHeading'](),_0x50b7cb=_0x49d454['findIndex'](_0x2b90d4=>_0x2b90d4['modelElement']===_0x139b95);_0x8ef0e9['length']&&this['fire']('change',{'outlineDefinitions':_0x49d454,'activeItemIndex':_0x50b7cb,'outlineChanges':_0x8ef0e9}),this['fire']('activeItemIndex',{'index':_0x50b7cb});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x53578c=this['editor'],_0x1e2d2a=[],_0x2b6a7c=this['_headingNames'];for(const _0x2edae0 of _0x53578c['model']['document']['getRootNames']())_0x97f529(_0x53578c['model']['document']['getRoot'](_0x2edae0));function _0x97f529(_0x484548){for(const _0x2fc916 of _0x484548['getChildren']())_0x2fc916['is']('element')&&(_0x2b6a7c['includes'](_0x2fc916['name'])&&_0x1e2d2a['push']({'level':_0x2b6a7c['indexOf'](_0x2fc916['name'])+0x1,'text':getElementText(_0x2fc916),'modelElement':_0x2fc916}),_0x97f529(_0x2fc916));}return _0x1e2d2a;}['_getActiveHeading'](){const _0xcd08d4=this['editor']['model']['document']['selection']['getFirstPosition'](),_0xe5eeb=new ModelTreeWalker({'direction':'backward','startPosition':_0xcd08d4});for(const _0x414b67 of _0xe5eeb)if(_0x414b67['item']['is']('element')&&this['_headingNames']['includes'](_0x414b67['item']['name']))return _0x414b67['item'];}['_getHeadingNames'](){const _0x495251=this['editor']['config']['get']('documentOutline.headings');return _0x495251||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x1ba977=this['editor'],_0x155fe4=['h1','h2','h3','h4','h5','h6'],_0x2ed93a=[];for(const _0x20e57e of _0x155fe4){const _0x577444=_0x1ba977['editing']['view']['domConverter']['domToView'](document['createElement'](_0x20e57e)),_0xf779f5=_0x1ba977['data']['toModel'](_0x577444)['getChild'](0x0);_0xf779f5?.['is']('element')&&_0x2ed93a['push'](_0xf779f5['name']);}this['_headingNames']=_0x2ed93a;}}function getTranslation$e(_0x534ed6,_0x477f0a){const t=_0x534ed6['t'];switch(_0x477f0a){case'Empty\x20heading':return t('Empty\x20heading');case'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.':return t('Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.');case'No\x20headings\x20were\x20found\x20in\x20the\x20document.':return t('No\x20headings\x20were\x20found\x20in\x20the\x20document.');case'Table\x20of\x20contents':return t('Table\x20of\x20contents');default:return _0x477f0a;}}class DocumentOutlineItemView extends View{constructor(_0x4e7d5c,_0x22deb5=!0x1){super(_0x4e7d5c);const _0x205059=this['bindTemplate'],_0x2efea4=_0x22deb5?'['+getTranslation$e(_0x4e7d5c,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x774e0=>!_0x774e0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x205059['to']('level',_0x38d7fc=>'ck-document-outline__item_level-'+_0x38d7fc),_0x205059['if']('isActive','ck-document-outline__item_active'),_0x205059['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x205059['to']('text')},'children':[{'text':_0x205059['to']('text',_0xc2cb8b=>_0xc2cb8b||_0x2efea4)}],'on':{'click':_0x205059['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0x1a920c,_0x1ffe2c=!0x1,_0x44408f){super(_0x1a920c),this['showEmptyHeadingText']=_0x1ffe2c,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x44408f,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x25ab2e,_0xfaaef3,_0x50f219,_0x35a322)=>{this['_setActiveItem'](_0x35a322,_0x50f219);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0x1a920c['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0x1a920c,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x56c402){_0x56c402['forEach'](_0x41c227=>{'insert'==_0x41c227['type']?this['_insertItem'](_0x41c227['index'],..._0x41c227['values']):'delete'==_0x41c227['type']&&this['_deleteItem'](_0x41c227['index'],_0x41c227['howMany']);});}['_setActiveItem'](_0x27be02,_0xd8c9b5){if(-0x1!==_0x27be02){const _0x290c28=this['items']['get'](_0x27be02);_0x290c28&&(_0x290c28['isActive']=!0x1);}-0x1!==_0xd8c9b5&&(this['items']['get'](_0xd8c9b5)['isActive']=!0x0,this['_scrollToItem'](_0xd8c9b5));}['_insertItem'](_0x22c471,..._0x5a476d){const _0x533300=_0x5a476d['map']((_0x4c6fd2,_0x41252f)=>{const _0x43b651=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x43b651['text']=_0x4c6fd2['text'],_0x43b651['level']=_0x4c6fd2['level'],_0x22c471+_0x41252f===this['activeItemIndex']&&(_0x43b651['isActive']=!0x0),_0x43b651;});this['items']['addMany'](_0x533300,_0x22c471);}['_deleteItem'](_0x35ef8b,_0x41b333){do{this['items']['remove'](_0x35ef8b);}while(--_0x41b333);}['_handleItemClick'](_0x370b37){const _0x13e395=this['items']['getIndex'](_0x370b37['source']);this['fire']('itemSelected',_0x13e395);}['_scrollToItem'](_0x37f7d0){scrollAncestorsToShowTarget(this['items']['get'](_0x37f7d0)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends Plugin{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30e4ed){super(_0x30e4ed),this['view']=new DocumentOutlineView(_0x30e4ed['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=throttle(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0x3b60b4=this['editor'],_0x52c058=_0x3b60b4['plugins']['get']('DocumentOutlineUtils');let _0x687fa9=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0x3b60b4['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0x3b60b4});_0x3b60b4['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x52c058['on']('change',this['_handleOutlineChange']['bind'](this)),_0x52c058['on']('activeItemIndex',(_0x292d90,{index:_0x1bfcd9})=>this['_setActiveViewItem'](_0x1bfcd9)),this['view']['on']('itemSelected',(_0x3c7119,_0x39a148)=>{_0x687fa9=!0x0,this['_handleItemSelected'](_0x39a148);}),this['view']['listenTo'](_0x1a0b09['document'],'scroll',()=>{_0x687fa9?_0x687fa9=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x1a0b09['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$g(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x55de3b,{outlineDefinitions:_0x2cd9f0,outlineChanges:_0x45947a}){this['_currentOutlineDefinitions']=_0x2cd9f0,this['view']['sync'](_0x45947a);}['_setActiveViewItem'](_0x12f3a9){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x12f3a9]&&(this['view']['activeItemIndex']=_0x12f3a9);}['_handleItemSelected'](_0x53892e){const _0x4f3249=this['_currentOutlineDefinitions'][_0x53892e]['modelElement'];this['editor']['model']['change'](_0x15730c=>{_0x15730c['setSelection'](_0x4f3249,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x53892e);}['_updateActiveDefinitionOnViewportChange'](){const _0xfd9604=this['editor'];let _0x205aa8;for(const _0x19818c of _0xfd9604['model']['document']['getRootNames']()){const _0x3eb716=_0xfd9604['editing']['view']['getDomRoot'](_0x19818c),_0x121b80=_0x3eb716&&new Rect(_0x3eb716)['getVisible']();if(_0x121b80){const _0x5bbfd8=new Rect(_0x1a0b09['window'])['getIntersection'](_0x121b80);_0x5bbfd8&&(_0x205aa8=_0x5bbfd8['top']+0.25*_0x5bbfd8['height']);}}if(void 0x0===_0x205aa8)return;const _0x48b369=binaryActiveDefinitionSearch(_0xfd9604['editing'],this['_currentOutlineDefinitions'],_0x205aa8);_0x48b369?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x48b369)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x17efc4,_0x324a03,_0x3160e2,_0x27daea=0x0,_0x3ad82f=_0x324a03['length']-0x1){const _0x992417=Math['floor'](_0x27daea+(_0x3ad82f-_0x27daea)/0x2);if(_0x3ad82f>=_0x27daea){const _0xf6f87f=_0x324a03[_0x992417],_0x3334bd=_0x17efc4['mapper']['toViewElement'](_0xf6f87f['modelElement']);if(!_0x3334bd)return null;const _0x54bf9d=_0x17efc4['view']['domConverter']['mapViewToDom'](_0x3334bd);return new Rect(_0x54bf9d)['bottom']>_0x3160e2?binaryActiveDefinitionSearch(_0x17efc4,_0x324a03,_0x3160e2,_0x27daea,_0x992417-0x1):binaryActiveDefinitionSearch(_0x17efc4,_0x324a03,_0x3160e2,_0x992417+0x1,_0x3ad82f);}return _0x992417<0x0?null:_0x324a03[_0x992417];}async function checkLicense$g(_0x1d4a14){const _0x1aa80c=_0x2fcf57([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x3e3148=window[_0x2fcf57([0x44,0x61,0x74,0x65])][_0x2fcf57([0x6e,0x6f,0x77])](),_0x34c4b6=_0x1d4a14[_0x2fcf57([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26f1a1=new window[(_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f8ec=>{_0x34c4b6[_0x2fcf57([0x6f,0x6e,0x63,0x65])](_0x2fcf57([0x72,0x65,0x61,0x64,0x79]),_0x33f8ec);}),_0xc22c76={[_0x2fcf57([0x6b,0x74,0x79])]:_0x2fcf57([0x45,0x43]),[_0x2fcf57([0x75,0x73,0x65])]:_0x2fcf57([0x73,0x69,0x67]),[_0x2fcf57([0x63,0x72,0x76])]:_0x2fcf57([0x50,0x2d,0x32,0x35,0x36]),[_0x2fcf57([0x78])]:_0x2fcf57([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2fcf57([0x79])]:_0x2fcf57([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2fcf57([0x61,0x6c,0x67])]:_0x2fcf57([0x45,0x53,0x32,0x35,0x36])},_0x373f0b=_0x34c4b6[_0x2fcf57([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fcf57([0x67,0x65,0x74])](_0x2fcf57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x17fd48=await(async function(){let _0x1c8618,_0x39fd2d=null,_0x8811f3=null;try{if(_0x373f0b==_0x2fcf57([0x47,0x50,0x4c]))return _0x2fcf57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c8618=(function(){const _0x2fad66=_0x373f0b[_0x2fcf57([0x73,0x70,0x6c,0x69,0x74])](_0x2fcf57([0x2e]));if(0x3!=_0x2fad66[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1cbca6=_0x2fad66[0x1];return _0x397039(_0x1cbca6);function _0x397039(_0xa99030){const _0x14dc78=_0xc346f(_0xa99030);return _0x14dc78&&_0x3675e5()?_0x14dc78:null;function _0x3675e5(){const _0x52c4c4=_0x14dc78[_0x2fcf57([0x6a,0x74,0x69])],_0x5b4eda=window[_0x2fcf57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52c4c4[_0x2fcf57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52c4c4[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x212410={..._0x14dc78,[_0x2fcf57([0x6a,0x74,0x69])]:_0x52c4c4[_0x2fcf57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52c4c4[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x212410[_0x2fcf57([0x76,0x63])],_0x370fe1(_0x212410)==_0x5b4eda;}}}()),!_0x1c8618)return _0x2fcf57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1c8618[_0x2fcf57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8811f3=function(_0xd5c1ad,_0xc8230e){return new window[(_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd7365f=>{if(_0x3d3f7e())return _0xd7365f(_0x2fcf57([0x56,0x61,0x6c,0x69,0x64]));_0x39d00c(),_0x34c4b6[_0x2fcf57([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fcf57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x106144=!0x1;const _0x334954=uid();function _0x3ddfdf(_0x5732f2){return!!_0x5732f2&&(typeof _0x5732f2===_0x2fcf57([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5732f2===_0x2fcf57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5732f2[_0x2fcf57([0x74,0x68,0x65,0x6e])]===_0x2fcf57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5732f2[_0x2fcf57([0x63,0x61,0x74,0x63,0x68])]===_0x2fcf57([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31d3dd(_0x385df3){_0x868d41(_0x385df3)[_0x2fcf57([0x74,0x68,0x65,0x6e])](_0x474305=>{if(!_0x474305||_0x474305[_0x2fcf57([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fcf57([0x6f,0x6b]))return _0x2fcf57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bfd14(_0x370fe1(_0x334954+_0xc8230e))!=_0x474305[_0x2fcf57([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fcf57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fcf57([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fcf57([0x74,0x68,0x65,0x6e])](_0x5efad5=>(_0x5cad57(),_0x5efad5),()=>{const _0x206cdc=_0x375757();return null==_0x206cdc?(_0x5cad57(),_0x2fcf57([0x56,0x61,0x6c,0x69,0x64])):_0x2fcf57(_0x3e3148-_0x206cdc>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fcf57([0x74,0x68,0x65,0x6e])](_0xd7365f)[_0x2fcf57([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd7365f(_0x2fcf57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e347c=0x36ee80;function _0x5cad57(){const _0x464cb3=_0x2fcf57([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bfd14(_0x370fe1(_0xd5c1ad)),_0x42625e=_0x1535b4(_0x1bfd14(window[_0x2fcf57([0x4d,0x61,0x74,0x68])][_0x2fcf57([0x63,0x65,0x69,0x6c])](_0x3e3148/_0x3e347c)));window[_0x2fcf57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fcf57([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x464cb3,_0x42625e);}function _0x375757(){const _0x31afb4=_0x2fcf57([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bfd14(_0x370fe1(_0xd5c1ad)),_0x448e9e=window[_0x2fcf57([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fcf57([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31afb4);return _0x448e9e?window[_0x2fcf57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1535b4(_0x448e9e),0x10)*_0x3e347c:null;}function _0x868d41(_0x685fcf){return new window[(_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8f09e5,_0x363a01)=>{_0x685fcf[_0x2fcf57([0x74,0x68,0x65,0x6e])](_0x8f09e5,_0x363a01),window[_0x2fcf57([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x363a01,0x1d4c0);});}}_0x34c4b6[_0x2fcf57([0x6f,0x6e])](_0x2fcf57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x360d54,_0x32ba6f)=>{if(_0x32ba6f[0x0]!=_0xd5c1ad)return _0xd7365f(_0x2fcf57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32ba6f[0x1]={..._0x32ba6f[0x1],[_0x2fcf57([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x334954};},{[_0x2fcf57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fcf57([0x68,0x69,0x67,0x68])}),_0x34c4b6[_0x2fcf57([0x6f,0x6e])](_0x2fcf57([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x229620=>{_0x3ddfdf(_0x229620[_0x2fcf57([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x106144=!0x0,_0x31d3dd(_0x229620[_0x2fcf57([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fcf57([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fcf57([0x6c,0x6f,0x77])}),_0x26f1a1[_0x2fcf57([0x74,0x68,0x65,0x6e])](()=>{_0x106144||_0xd7365f(_0x2fcf57([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d3f7e(){return _0x34c4b6[_0x2fcf57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fcf57([0x76,0x69,0x65,0x77])][_0x2fcf57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fcf57([0x61,0x75,0x74,0x6f]);}function _0x39d00c(){_0x34c4b6[_0x2fcf57([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fcf57([0x76,0x69,0x65,0x77])][_0x2fcf57([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fcf57([0x61,0x75,0x74,0x6f]);}}(_0x1c8618[_0x2fcf57([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c8618[_0x2fcf57([0x6a,0x74,0x69])]));const _0x422bbd=await(async function(){let _0x46d877=!0x0;try{const _0x1a2133=_0x373f0b[_0x2fcf57([0x73,0x70,0x6c,0x69,0x74])](_0x2fcf57([0x2e])),[_0x480ffe,_0x1379ae,_0x56a868]=_0x1a2133;return _0x3b2ab7(_0x480ffe),await _0x5a19b2(_0x480ffe,_0x1379ae,_0x56a868),_0x46d877;}catch{return!0x1;}function _0x3b2ab7(_0x161809){const _0x1eebbb=_0xc346f(_0x161809);_0x1eebbb&&_0x1eebbb[_0x2fcf57([0x61,0x6c,0x67])]==_0x2fcf57([0x45,0x53,0x32,0x35,0x36])||(_0x46d877=!0x1);}async function _0x5a19b2(_0x661ffe,_0x57efa6,_0x3b805e){const _0x1147af=window[_0x2fcf57([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fcf57([0x66,0x72,0x6f,0x6d])](_0x167d14(_0x3b805e),_0x373006=>_0x373006[_0x2fcf57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59c738=new window[(_0x2fcf57([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fcf57([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x661ffe+_0x2fcf57([0x2e])+_0x57efa6),_0x31bc32=window[_0x2fcf57([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fcf57([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31bc32)return;const _0x52eaad=await _0x31bc32[_0x2fcf57([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fcf57([0x6a,0x77,0x6b]),_0xc22c76,{[_0x2fcf57([0x6e,0x61,0x6d,0x65])]:_0x2fcf57([0x45,0x43,0x44,0x53,0x41]),[_0x2fcf57([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fcf57([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fcf57([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31bc32[_0x2fcf57([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fcf57([0x6e,0x61,0x6d,0x65])]:_0x2fcf57([0x45,0x43,0x44,0x53,0x41]),[_0x2fcf57([0x68,0x61,0x73,0x68])]:{[_0x2fcf57([0x6e,0x61,0x6d,0x65])]:_0x2fcf57([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52eaad,_0x1147af,_0x59c738)||(_0x46d877=!0x1);}}());return _0x422bbd?(function(){const _0x5db564=_0x1c8618[_0x2fcf57([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5db564)return!0x1;if(_0x5db564[_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcf57([0x2a])))return!0x0;if(_0x5db564[_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcf57([0x44,0x4f])))return!0x0;if(_0x5db564[_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcf57([0x50,0x50])))return!0x0;if(_0x5db564[_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcf57([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x2fcf57([0x67,0x6c,0x6f,0x62])]&&window[_0x2fcf57([0x67,0x6c,0x6f,0x62])][_0x2fcf57([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x24b12c=[_0x2fcf57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fcf57([0x74,0x72,0x69,0x61,0x6c])][_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8618[_0x2fcf57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e3148/0x3e8:0x6a03bf00;return _0x1c8618[_0x2fcf57([0x65,0x78,0x70])]<_0x24b12c;}())?_0x2fcf57([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x22b2ce=_0x1c8618[_0x2fcf57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22b2ce||0x0==_0x22b2ce[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e8d69}=new URL(window[_0x2fcf57([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22b2ce[_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8d69))return!0x0;const _0x1c7bc2=_0x1e8d69[_0x2fcf57([0x73,0x70,0x6c,0x69,0x74])](_0x2fcf57([0x2e]));return _0x22b2ce[_0x2fcf57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31d33b=>_0x31d33b[_0x2fcf57([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcf57([0x2a])))[_0x2fcf57([0x6d,0x61,0x70])](_0x399a84=>_0x399a84[_0x2fcf57([0x73,0x70,0x6c,0x69,0x74])](_0x2fcf57([0x2e])))[_0x2fcf57([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b1c58=>_0x4b1c58[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c7bc2[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fcf57([0x6d,0x61,0x70])](_0x50cdd0=>Array(_0x1c7bc2[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50cdd0[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fcf57([0x66,0x69,0x6c,0x6c])](_0x50cdd0[0x0]===_0x2fcf57([0x2a])?_0x2fcf57([0x2a]):'')[_0x2fcf57([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50cdd0))[_0x2fcf57([0x73,0x6f,0x6d,0x65])](_0x2f5945=>_0x1c7bc2[_0x2fcf57([0x65,0x76,0x65,0x72,0x79])]((_0x55d2b9,_0x139e5c)=>_0x2f5945[_0x139e5c]===_0x55d2b9||_0x2f5945[_0x139e5c]===_0x2fcf57([0x2a])));}())?(_0x1c8618[_0x2fcf57([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fcf57([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39fd2d=function(_0x8f8c18){const _0x5e67f2=new window[(_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x247e74=>setTimeout(_0x247e74,0x93ecc)),_0x4b2f45=_0x26f1a1[_0x2fcf57([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x296c1e=>{let _0x229b97=0x0;_0x34c4b6[_0x2fcf57([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fcf57([0x6f,0x6e])](_0x2fcf57([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38761a,_0x10fa5f)=>{_0x10fa5f[0x0][_0x2fcf57([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x229b97++,0x5e8==_0x229b97&&(_0x296c1e(),_0x38761a[_0x2fcf57([0x6f,0x66,0x66])]());});})),_0xfc72f3=[_0x5e67f2,_0x4b2f45];return window[_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fcf57([0x72,0x61,0x63,0x65])](_0xfc72f3)[_0x2fcf57([0x74,0x68,0x65,0x6e])](()=>_0x8f8c18);}(_0x2fcf57([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x39fd2d&&_0x8811f3)return new window[(_0x2fcf57([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e7d0f,_0x3e374a)=>{_0x39fd2d[_0x2fcf57([0x74,0x68,0x65,0x6e])](_0x1e7d0f,_0x3e374a),_0x8811f3[_0x2fcf57([0x74,0x68,0x65,0x6e])](_0x164d9c=>{_0x164d9c!=_0x2fcf57([0x56,0x61,0x6c,0x69,0x64])&&_0x1e7d0f(_0x164d9c);},_0x3e374a);});return _0x39fd2d||_0x8811f3||_0x2fcf57([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2fcf57([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fcf57([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fcf57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fcf57([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xc346f(_0x3e17d1){return _0x3e17d1[_0x2fcf57([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fcf57([0x65,0x79]))?JSON[_0x2fcf57([0x70,0x61,0x72,0x73,0x65])](_0x167d14(_0x3e17d1)):null;}function _0x167d14(_0x4f140c){return window[_0x2fcf57([0x61,0x74,0x6f,0x62])](_0x4f140c[_0x2fcf57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fcf57([0x2b]))[_0x2fcf57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fcf57([0x2f])));}function _0x370fe1(_0x4e6b6a){let _0x1b80c9=0x1505;function _0x12f8f5(_0x834829){for(let _0x42a0b2=0x0;_0x42a0b2<_0x834829[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a0b2++){const _0x5a4336=_0x834829[_0x2fcf57([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42a0b2);_0x1b80c9=(_0x1b80c9<<0x5)+_0x1b80c9+_0x5a4336,_0x1b80c9&=_0x1b80c9;}}return function _0x584e4d(_0x198538){Array[_0x2fcf57([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x198538)?_0x198538[_0x2fcf57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x584e4d):_0x198538&&typeof _0x198538==_0x2fcf57([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fcf57([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x198538)[_0x2fcf57([0x73,0x6f,0x72,0x74])]()[_0x2fcf57([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x177026,_0x55e2e4])=>{_0x12f8f5(_0x177026),_0x584e4d(_0x55e2e4);}):_0x12f8f5(window[_0x2fcf57([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x198538));}(_0x4e6b6a),_0x1b80c9>>>0x0;}function _0x1bfd14(_0x5ae5f8){return _0x5ae5f8[_0x2fcf57([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fcf57([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fcf57([0x30]));}function _0x1535b4(_0x10d6fd){return _0x10d6fd[_0x2fcf57([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fcf57([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fcf57([0x6a,0x6f,0x69,0x6e])]('');}function _0x297ebc(){}function _0x2fcf57(_0x4ad610){return _0x4ad610['map'](_0x3d57a7=>String['fromCharCode'](_0x3d57a7))['join']('');}!function(_0x47325c){const _0x3b86fb=(function(){const _0xd1d9c8=window[_0x2fcf57([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fcf57([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fcf57([0x6e,0x6f,0x77])]())[_0x2fcf57([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fcf57([0x2e]),'');let _0x50f5b5=_0x2fcf57([0x61]);for(let _0x5ea553=0x0;_0x5ea553<_0xd1d9c8[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ea553+=0x2){let _0x130fce=window[_0x2fcf57([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd1d9c8[_0x2fcf57([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ea553,_0x5ea553+0x2));_0x130fce>=_0x1aa80c[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x130fce-=_0x1aa80c[_0x2fcf57([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50f5b5+=_0x1aa80c[_0x130fce];}return _0x50f5b5;}());_0x34c4b6[_0x3b86fb]=_0x2fcf57([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x47325c,_0x47325c!=_0x2fcf57([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x26f1a1,_0x34c4b6[_0x2fcf57([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fcf57([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x297ebc,_0x34c4b6[_0x2fcf57([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fcf57([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x297ebc,_0x34c4b6[_0x2fcf57([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fcf57([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x17fd48);}class DocumentOutline extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5119b8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5898b1;for(const _0x33e4e7 in _0x5119b8){const _0x488aad=_0x33e4e7,_0x19d8a4=_0x5119b8[_0x488aad];if('documentOutlineLicenseKeyValid'==_0x19d8a4||'documentOutlineLicenseKeyInvalid'==_0x19d8a4||'documentOutlineLicenseKeyExpired'==_0x19d8a4||'documentOutlineLicenseKeyDomainLimit'==_0x19d8a4||'documentOutlineLicenseKeyNotAllowed'==_0x19d8a4||'documentOutlineLicenseKeyEvaluationLimit'==_0x19d8a4||'documentOutlineLicenseKeyUsageLimit'==_0x19d8a4){delete _0x5119b8[_0x488aad],_0x5898b1=_0x19d8a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x5898b1&&_0x5119b8['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x5898b1&&_0x5119b8['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x5898b1&&_0x5119b8['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x5898b1&&_0x5119b8['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x5898b1&&_0x5119b8['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x5898b1&&_0x5119b8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends Command{['execute'](){this['editor']['model']['change'](_0x442ecd=>{this['editor']['model']['insertObject'](_0x442ecd['createElement']('tableOfContents'));});}['refresh'](){const _0x4cb15a=this['editor']['model'],_0x21177a=_0x4cb15a['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x21177a&&_0x4cb15a['schema']['findAllowedParent'](_0x21177a,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4fed42=this['editor'];if(_0x4fed42['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x5ce915,_0x56d989)=>{this['_customUpcastHeadingsConversion'](_0x56d989),this['_customDataDowncastHeadingsConversion'](_0x5ce915),_0x4fed42['model']['schema']['isRegistered'](_0x5ce915)&&_0x4fed42['model']['schema']['extend'](_0x5ce915,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0x4c7338){this['editor']['conversion']['for']('upcast')['add'](_0x2f1b88=>_0x2f1b88['on']('element:'+_0x4c7338,(_0x512750,_0x32bbad,_0x429b95)=>{const {consumable:_0x149015,writer:_0x377ead}=_0x429b95,_0x4f0f69=_0x32bbad['viewItem']['getAttribute']('id'),_0x5cf985=_0x32bbad['modelRange']['getContainedElement']();if(_0x5cf985)return _0x4f0f69&&_0x4f0f69['length']||_0x5cf985['hasAttribute']('headingId')?void(_0x149015['consume'](_0x32bbad['viewItem'],{'attributes':['id']})&&_0x377ead['setAttribute']('headingId',_0x4f0f69,_0x5cf985)):(_0x149015['consume'](_0x32bbad['viewItem'],{'attributes':['id']}),void _0x377ead['setAttribute']('headingId',uid(),_0x5cf985));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x32e8c7){this['editor']['conversion']['for']('downcast')['add'](_0x5ec7f2=>_0x5ec7f2['on']('attribute:headingId:'+_0x32e8c7,(_0x33d295,_0x56c0de,_0xa6a181)=>{if(!_0xa6a181['consumable']['consume'](_0x56c0de['item'],_0x33d295['name']))return;const _0x325728=_0x56c0de['item']['getAttribute']('headingId'),_0x1b2c3a=_0xa6a181['mapper']['toViewElement'](_0x56c0de['item']);_0xa6a181['writer']['setAttribute']('id',_0x325728,_0x1b2c3a);}));}['_registerHeadingIdAttributePostfixer'](){const _0x58720e=this['editor'],_0x1f2228=new Set(),_0x2313db=new Set();function _0x511a84(_0x21c809,_0x488acb){const _0x1f0d18=uid();return _0x2313db['add'](_0x1f0d18),_0x21c809['setAttribute']('headingId',_0x1f0d18,_0x488acb),_0x1f0d18;}function _0x2e5021(_0x2e49e0,_0x50564e){_0x2e49e0['removeAttribute']('headingId',_0x50564e);}_0x58720e['model']['document']['registerPostFixer'](_0x414d07=>{const _0x234493=_0x58720e['model']['document']['differ']['getChanges']();let _0x118358=!0x1;for(const _0x5cb7ed of _0x234493)if('insert'==_0x5cb7ed['type']&&_0x5cb7ed['name']){if(isHeading$1(_0x5cb7ed['name'])){const _0x144859=_0x5cb7ed['attributes']['get']('headingId');'string'==typeof _0x144859?_0x1f2228['has'](_0x144859)?(_0x511a84(_0x414d07,_0x5cb7ed['position']['nodeAfter']),_0x118358=!0x0):_0x2313db['add'](_0x144859):(_0x511a84(_0x414d07,_0x5cb7ed['position']['nodeAfter']),_0x118358=!0x0);}else'string'==typeof _0x5cb7ed['attributes']['get']('headingId')&&(_0x2e5021(_0x414d07,_0x5cb7ed['position']['nodeAfter']),_0x118358=!0x0);}else{if('remove'==_0x5cb7ed['type']){const _0x4b32a0=_0x5cb7ed['attributes']['get']('headingId');'string'==typeof _0x4b32a0&&_0x1f2228['delete'](_0x4b32a0);}}return _0x118358;}),_0x58720e['model']['document']['on']('change',()=>{_0x2313db['forEach'](_0x4e8030=>_0x1f2228['add'](_0x4e8030)),_0x2313db['clear']();});}}function isHeading$1(_0x34977e){return!!_0x34977e['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x52a28c){const _0x206222=new Map();return _0x52a28c?(_0x52a28c['forEach'](_0x192ad7=>{'paragraph'!==_0x192ad7['model']&&_0x206222['set'](_0x192ad7['view'],_0x192ad7['model']);}),_0x206222['get']('h1')||_0x206222['set']('h1','heading1'),_0x206222):_0x206222;}class TableOfContentsEditing extends Plugin{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Widget,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0x2194da){super(_0x2194da),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x1f2b25=this['editor'],_0x2d14f8=_0x1f2b25['editing']['view']['document'];_0x1f2b25['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x1f2b25['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x2d14f8,'click',(_0x26c6ba,_0x528b67)=>{if(!_0x528b67['target'])return;const _0x39ceac=_0x528b67['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x39ceac)&&(_0x528b67['domEvent']['preventDefault'](),_0x26c6ba['stop'](),this['_handleScrollToHeading'](_0x39ceac));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x1f2b25['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x1f2b25));const _0xd2c704=_0x1f2b25['config']['get']('tableOfContents.headings');if(_0xd2c704&&_0xd2c704['length'])this['listenTo'](_0x1f2b25['model']['document'],'change:data',()=>{this['_currentOutlineDefinitions']=this['_getOutlineDefinitions'](_0xd2c704),this['_updateTableOfContentsElements']();});else _0x1f2b25['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x4ca826,_0x2a5b5c)=>{this['_currentOutlineDefinitions']=_0x2a5b5c['outlineDefinitions'],this['_updateTableOfContentsElements']();});this['listenTo'](_0x1f2b25['model']['document'],'change',()=>{this['_trackNewToCElements']();});}['afterInit'](){checkLicense$f(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x466107=>{'$graveyard'!==_0x466107['rootName']&&this['editor']['editing']['reconvertItem'](_0x466107);});}['_trackNewToCElements'](){for(const _0x4c80d2 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4c80d2['type']||'tableOfContents'!==_0x4c80d2['name'])return;this['_tableOfContentsElements']['add'](_0x4c80d2['position']['nodeAfter']);}}['_getOutlineDefinitions'](_0xac9097){const _0x3a48af=this['editor'],_0x1a510b=[];for(const _0x95a550 of _0x3a48af['model']['document']['getRootNames']())_0x5bdd19(_0x3a48af['model']['document']['getRoot'](_0x95a550));function _0x5bdd19(_0x408f9b){for(const _0x22acb3 of _0x408f9b['getChildren']())_0x22acb3['is']('element')&&(_0xac9097['includes'](_0x22acb3['name'])&&_0x1a510b['push']({'level':_0xac9097['indexOf'](_0x22acb3['name'])+0x1,'text':getElementText(_0x22acb3),'modelElement':_0x22acb3}),_0x5bdd19(_0x22acb3));}return _0x1a510b;}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x15ee1b=this['editor']['conversion'];_0x15ee1b['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x15ee1b['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5aab7c,{writer:_0x1f1b0b})=>this['_createTableOfContents'](_0x1f1b0b,!0x0)}),_0x15ee1b['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x224ca9,{writer:_0x3b9823})=>{this['_tableOfContentsElements']['add'](_0x224ca9);const _0x58363a=this['_createTableOfContents'](_0x3b9823);return toWidget(_0x58363a,_0x3b9823,{'label':getTranslation$e(this['editor']['locale'],'Table\x20of\x20contents')});}}),this['editor']['data']['registerRawContentMatcher']({'name':'div','classes':'table-of-contents'}),this['editor']['editing']['mapper']['on']('viewToModelPosition',this['_redirectMapper'](),{'priority':'high'});}['_createTableOfContents'](_0x5e5703,_0x2448a9=!0x1){const {locale:_0x55b76b}=this['editor'],_0x1cd074=_0x5e5703['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x2448a9&&{'data-table-of-contents-label':getTranslation$e(_0x55b76b,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x2448a9&&_0x5e5703['insert'](_0x5e5703['createPositionAt'](_0x1cd074,'end'),_0x5e5703['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x5e5703['createText'](getTranslation$e(_0x55b76b,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x1f4c73=_0x2448a9?'':'['+getTranslation$e(_0x55b76b,'Empty\x20heading')+']';let _0x4d8c9a=_0x1cd074;return this['_currentOutlineDefinitions']['forEach']((_0x23371c,_0x4b245f,_0x170911)=>{const _0x2651f1=this['editor']['model']['hasContent'](_0x23371c['modelElement'],{'ignoreWhitespaces':!0x0}),_0x1458e6=_0x2651f1?_0x23371c['text']:_0x1f4c73,_0x447351=_0x23371c['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x2c94c0=_0x5e5703['createContainerElement']('a',{'href':'#'+_0x447351,...!_0x2448a9&&{'tabindex':'-1'}},[_0x5e5703['createText'](_0x1458e6)]),_0x3fd58a=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x5e5703['setCustomProperty']('tableOfContentsHeadingIndex',_0x4b245f,_0x2c94c0);const _0x18cf56=_0x5e5703['createContainerElement']('li',null,[_0x2651f1||!_0x2448a9&&_0x3fd58a?_0x2c94c0:_0x5e5703['createText']('')]),_0x48224d=_0x4b245f?_0x170911[_0x4b245f-0x1]['level']:0x0,_0x30b66e=Math['abs'](_0x23371c['level']-_0x48224d);if(_0x23371c['level']>_0x48224d){const _0x1da404=wrapInList(_0x18cf56,_0x30b66e,_0x5e5703);_0x5e5703['insert'](_0x5e5703['createPositionAt'](_0x4d8c9a,'end'),_0x1da404);}else{const _0x7bb2c7=getOuterListByLevelDifference(_0x4d8c9a,_0x30b66e);_0x5e5703['insert'](_0x5e5703['createPositionAt'](_0x7bb2c7,'end'),_0x18cf56);}_0x4d8c9a=_0x18cf56;}),_0x1cd074;}['_handleScrollToHeading'](_0x5ad08f){const _0xffceef=this['_currentOutlineDefinitions'][_0x5ad08f]['modelElement'];this['editor']['model']['change'](_0x475ae4=>{_0x475ae4['setSelection'](_0xffceef,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x533ab0,_0x14899e)=>{const _0x3428b7=_0x14899e['mapper'],_0x4fb514=_0x3428b7['findMappedViewAncestor'](_0x14899e['viewPosition']),_0x418a30=_0x3428b7['toModelElement'](_0x4fb514);_0x418a30['is']('element','tableOfContents')&&(_0x14899e['modelPosition']=this['editor']['model']['createPositionAt'](_0x418a30,0x0),_0x533ab0['stop']());};}}function wrapInList(_0x150d4b,_0x485da6,_0x8dbea8){return 0x1===_0x485da6?_0x8dbea8['createContainerElement']('ol',null,[_0x150d4b]):_0x8dbea8['createContainerElement']('ol',null,[_0x8dbea8['createContainerElement']('li',null,[wrapInList(_0x150d4b,_0x485da6-0x1,_0x8dbea8)])]);}function getOuterListByLevelDifference(_0x2aeada,_0x5302d6){return _0x2aeada['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x233861=>_0x233861['is']('element','ol'))[_0x5302d6];}async function checkLicense$f(_0x3b09ef){const _0x18d0ff=_0xfc20b0([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x56ccfa=window[_0xfc20b0([0x44,0x61,0x74,0x65])][_0xfc20b0([0x6e,0x6f,0x77])](),_0x563ab9=_0x3b09ef[_0xfc20b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc457a6=new window[(_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x200657=>{_0x563ab9[_0xfc20b0([0x6f,0x6e,0x63,0x65])](_0xfc20b0([0x72,0x65,0x61,0x64,0x79]),_0x200657);}),_0x46e5ee={[_0xfc20b0([0x6b,0x74,0x79])]:_0xfc20b0([0x45,0x43]),[_0xfc20b0([0x75,0x73,0x65])]:_0xfc20b0([0x73,0x69,0x67]),[_0xfc20b0([0x63,0x72,0x76])]:_0xfc20b0([0x50,0x2d,0x32,0x35,0x36]),[_0xfc20b0([0x78])]:_0xfc20b0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xfc20b0([0x79])]:_0xfc20b0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xfc20b0([0x61,0x6c,0x67])]:_0xfc20b0([0x45,0x53,0x32,0x35,0x36])},_0x265bae=_0x563ab9[_0xfc20b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xfc20b0([0x67,0x65,0x74])](_0xfc20b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5caba9=await(async function(){let _0x4b5ed5,_0x4b4c57=null,_0x56499d=null;try{if(_0x265bae==_0xfc20b0([0x47,0x50,0x4c]))return _0xfc20b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b5ed5=(function(){const _0x59d886=_0x265bae[_0xfc20b0([0x73,0x70,0x6c,0x69,0x74])](_0xfc20b0([0x2e]));if(0x3!=_0x59d886[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1a127f=_0x59d886[0x1];return _0x1ae31b(_0x1a127f);function _0x1ae31b(_0x25cb66){const _0x4e0091=_0x2ef74e(_0x25cb66);return _0x4e0091&&_0xbcfc45()?_0x4e0091:null;function _0xbcfc45(){const _0x4e98f7=_0x4e0091[_0xfc20b0([0x6a,0x74,0x69])],_0x518aaf=window[_0xfc20b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e98f7[_0xfc20b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e98f7[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22a09f={..._0x4e0091,[_0xfc20b0([0x6a,0x74,0x69])]:_0x4e98f7[_0xfc20b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e98f7[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22a09f[_0xfc20b0([0x76,0x63])],_0x14071b(_0x22a09f)==_0x518aaf;}}}()),!_0x4b5ed5)return _0xfc20b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4b5ed5[_0xfc20b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56499d=function(_0x1bd9f0,_0x5bb44b){return new window[(_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32f560=>{if(_0x1f478e())return _0x32f560(_0xfc20b0([0x56,0x61,0x6c,0x69,0x64]));_0x480e7d(),_0x563ab9[_0xfc20b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xfc20b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37dd37=!0x1;const _0x50a718=uid();function _0x137415(_0x37e0a0){return!!_0x37e0a0&&(typeof _0x37e0a0===_0xfc20b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37e0a0===_0xfc20b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37e0a0[_0xfc20b0([0x74,0x68,0x65,0x6e])]===_0xfc20b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37e0a0[_0xfc20b0([0x63,0x61,0x74,0x63,0x68])]===_0xfc20b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1595c0(_0x295a84){_0xad1f27(_0x295a84)[_0xfc20b0([0x74,0x68,0x65,0x6e])](_0x1633d7=>{if(!_0x1633d7||_0x1633d7[_0xfc20b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xfc20b0([0x6f,0x6b]))return _0xfc20b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b821b(_0x14071b(_0x50a718+_0x5bb44b))!=_0x1633d7[_0xfc20b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xfc20b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xfc20b0([0x56,0x61,0x6c,0x69,0x64]);})[_0xfc20b0([0x74,0x68,0x65,0x6e])](_0x547655=>(_0x12aa6e(),_0x547655),()=>{const _0x24f228=_0x5b7ff7();return null==_0x24f228?(_0x12aa6e(),_0xfc20b0([0x56,0x61,0x6c,0x69,0x64])):_0xfc20b0(_0x56ccfa-_0x24f228>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xfc20b0([0x74,0x68,0x65,0x6e])](_0x32f560)[_0xfc20b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32f560(_0xfc20b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471422=0x36ee80;function _0x12aa6e(){const _0x226101=_0xfc20b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b821b(_0x14071b(_0x1bd9f0)),_0xc96443=_0x3d3503(_0x4b821b(window[_0xfc20b0([0x4d,0x61,0x74,0x68])][_0xfc20b0([0x63,0x65,0x69,0x6c])](_0x56ccfa/_0x471422)));window[_0xfc20b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfc20b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x226101,_0xc96443);}function _0x5b7ff7(){const _0x1aea99=_0xfc20b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b821b(_0x14071b(_0x1bd9f0)),_0x5147b8=window[_0xfc20b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xfc20b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1aea99);return _0x5147b8?window[_0xfc20b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3503(_0x5147b8),0x10)*_0x471422:null;}function _0xad1f27(_0x1d3e7e){return new window[(_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b80fc,_0x4b2050)=>{_0x1d3e7e[_0xfc20b0([0x74,0x68,0x65,0x6e])](_0x2b80fc,_0x4b2050),window[_0xfc20b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b2050,0x1d4c0);});}}_0x563ab9[_0xfc20b0([0x6f,0x6e])](_0xfc20b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x496f24,_0x186c00)=>{if(_0x186c00[0x0]!=_0x1bd9f0)return _0x32f560(_0xfc20b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x186c00[0x1]={..._0x186c00[0x1],[_0xfc20b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50a718};},{[_0xfc20b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfc20b0([0x68,0x69,0x67,0x68])}),_0x563ab9[_0xfc20b0([0x6f,0x6e])](_0xfc20b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14a8e7=>{_0x137415(_0x14a8e7[_0xfc20b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37dd37=!0x0,_0x1595c0(_0x14a8e7[_0xfc20b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xfc20b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xfc20b0([0x6c,0x6f,0x77])}),_0xc457a6[_0xfc20b0([0x74,0x68,0x65,0x6e])](()=>{_0x37dd37||_0x32f560(_0xfc20b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f478e(){return _0x563ab9[_0xfc20b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfc20b0([0x76,0x69,0x65,0x77])][_0xfc20b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xfc20b0([0x61,0x75,0x74,0x6f]);}function _0x480e7d(){_0x563ab9[_0xfc20b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xfc20b0([0x76,0x69,0x65,0x77])][_0xfc20b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xfc20b0([0x61,0x75,0x74,0x6f]);}}(_0x4b5ed5[_0xfc20b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b5ed5[_0xfc20b0([0x6a,0x74,0x69])]));const _0x280cc9=await(async function(){let _0x3a52f7=!0x0;try{const _0x153801=_0x265bae[_0xfc20b0([0x73,0x70,0x6c,0x69,0x74])](_0xfc20b0([0x2e])),[_0x25a427,_0x462ff7,_0x1210c1]=_0x153801;return _0x185172(_0x25a427),await _0x2d2747(_0x25a427,_0x462ff7,_0x1210c1),_0x3a52f7;}catch{return!0x1;}function _0x185172(_0x5a4cec){const _0x1b7927=_0x2ef74e(_0x5a4cec);_0x1b7927&&_0x1b7927[_0xfc20b0([0x61,0x6c,0x67])]==_0xfc20b0([0x45,0x53,0x32,0x35,0x36])||(_0x3a52f7=!0x1);}async function _0x2d2747(_0x5d9e27,_0x4b26ef,_0x24ed5a){const _0x4f5b5a=window[_0xfc20b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xfc20b0([0x66,0x72,0x6f,0x6d])](_0x299f89(_0x24ed5a),_0x68bbc9=>_0x68bbc9[_0xfc20b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ff877=new window[(_0xfc20b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xfc20b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d9e27+_0xfc20b0([0x2e])+_0x4b26ef),_0x39a0a9=window[_0xfc20b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xfc20b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39a0a9)return;const _0x1b3c96=await _0x39a0a9[_0xfc20b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xfc20b0([0x6a,0x77,0x6b]),_0x46e5ee,{[_0xfc20b0([0x6e,0x61,0x6d,0x65])]:_0xfc20b0([0x45,0x43,0x44,0x53,0x41]),[_0xfc20b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xfc20b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xfc20b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39a0a9[_0xfc20b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xfc20b0([0x6e,0x61,0x6d,0x65])]:_0xfc20b0([0x45,0x43,0x44,0x53,0x41]),[_0xfc20b0([0x68,0x61,0x73,0x68])]:{[_0xfc20b0([0x6e,0x61,0x6d,0x65])]:_0xfc20b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b3c96,_0x4f5b5a,_0x2ff877)||(_0x3a52f7=!0x1);}}());return _0x280cc9?(function(){const _0x46ce26=_0x4b5ed5[_0xfc20b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46ce26)return!0x1;if(_0x46ce26[_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc20b0([0x2a])))return!0x0;if(_0x46ce26[_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc20b0([0x54,0x4f,0x43])))return!0x0;if(_0x46ce26[_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc20b0([0x50,0x50])))return!0x0;if(_0x46ce26[_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc20b0([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xfc20b0([0x67,0x6c,0x6f,0x62])]&&window[_0xfc20b0([0x67,0x6c,0x6f,0x62])][_0xfc20b0([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x25041e=[_0xfc20b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xfc20b0([0x74,0x72,0x69,0x61,0x6c])][_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ed5[_0xfc20b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56ccfa/0x3e8:0x6a03bf00;return _0x4b5ed5[_0xfc20b0([0x65,0x78,0x70])]<_0x25041e;}())?_0xfc20b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2ddd38=_0x4b5ed5[_0xfc20b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ddd38||0x0==_0x2ddd38[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58737f}=new URL(window[_0xfc20b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ddd38[_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58737f))return!0x0;const _0x14b3a6=_0x58737f[_0xfc20b0([0x73,0x70,0x6c,0x69,0x74])](_0xfc20b0([0x2e]));return _0x2ddd38[_0xfc20b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x392d72=>_0x392d72[_0xfc20b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc20b0([0x2a])))[_0xfc20b0([0x6d,0x61,0x70])](_0x79d548=>_0x79d548[_0xfc20b0([0x73,0x70,0x6c,0x69,0x74])](_0xfc20b0([0x2e])))[_0xfc20b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4035c9=>_0x4035c9[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14b3a6[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfc20b0([0x6d,0x61,0x70])](_0x2e1553=>Array(_0x14b3a6[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e1553[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xfc20b0([0x66,0x69,0x6c,0x6c])](_0x2e1553[0x0]===_0xfc20b0([0x2a])?_0xfc20b0([0x2a]):'')[_0xfc20b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e1553))[_0xfc20b0([0x73,0x6f,0x6d,0x65])](_0x2c1bb1=>_0x14b3a6[_0xfc20b0([0x65,0x76,0x65,0x72,0x79])]((_0x452d6b,_0x538eba)=>_0x2c1bb1[_0x538eba]===_0x452d6b||_0x2c1bb1[_0x538eba]===_0xfc20b0([0x2a])));}())?(_0x4b5ed5[_0xfc20b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xfc20b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b4c57=function(_0x214ba7){const _0x38f8c1=new window[(_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a579f=>setTimeout(_0x5a579f,0x93ecc)),_0x4dbfc3=_0xc457a6[_0xfc20b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3aaf=>{let _0x38e1d7=0x0;_0x563ab9[_0xfc20b0([0x6d,0x6f,0x64,0x65,0x6c])][_0xfc20b0([0x6f,0x6e])](_0xfc20b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2827d1,_0x2249b4)=>{_0x2249b4[0x0][_0xfc20b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38e1d7++,0x5e8==_0x38e1d7&&(_0x2c3aaf(),_0x2827d1[_0xfc20b0([0x6f,0x66,0x66])]());});})),_0x2b5e10=[_0x38f8c1,_0x4dbfc3];return window[_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xfc20b0([0x72,0x61,0x63,0x65])](_0x2b5e10)[_0xfc20b0([0x74,0x68,0x65,0x6e])](()=>_0x214ba7);}(_0xfc20b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x4b4c57&&_0x56499d)return new window[(_0xfc20b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e20eb,_0x505d72)=>{_0x4b4c57[_0xfc20b0([0x74,0x68,0x65,0x6e])](_0x1e20eb,_0x505d72),_0x56499d[_0xfc20b0([0x74,0x68,0x65,0x6e])](_0x1d4e52=>{_0x1d4e52!=_0xfc20b0([0x56,0x61,0x6c,0x69,0x64])&&_0x1e20eb(_0x1d4e52);},_0x505d72);});return _0x4b4c57||_0x56499d||_0xfc20b0([0x56,0x61,0x6c,0x69,0x64]);}())):_0xfc20b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xfc20b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xfc20b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xfc20b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2ef74e(_0xb93aad){return _0xb93aad[_0xfc20b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xfc20b0([0x65,0x79]))?JSON[_0xfc20b0([0x70,0x61,0x72,0x73,0x65])](_0x299f89(_0xb93aad)):null;}function _0x299f89(_0x22f766){return window[_0xfc20b0([0x61,0x74,0x6f,0x62])](_0x22f766[_0xfc20b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xfc20b0([0x2b]))[_0xfc20b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xfc20b0([0x2f])));}function _0x14071b(_0x3d415b){let _0xa7bf9c=0x1505;function _0x384c86(_0xee6bdc){for(let _0x486a05=0x0;_0x486a05<_0xee6bdc[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x486a05++){const _0x590f86=_0xee6bdc[_0xfc20b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x486a05);_0xa7bf9c=(_0xa7bf9c<<0x5)+_0xa7bf9c+_0x590f86,_0xa7bf9c&=_0xa7bf9c;}}return function _0x245474(_0x4a501b){Array[_0xfc20b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a501b)?_0x4a501b[_0xfc20b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x245474):_0x4a501b&&typeof _0x4a501b==_0xfc20b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xfc20b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a501b)[_0xfc20b0([0x73,0x6f,0x72,0x74])]()[_0xfc20b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3edb9c,_0x23a4bb])=>{_0x384c86(_0x3edb9c),_0x245474(_0x23a4bb);}):_0x384c86(window[_0xfc20b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a501b));}(_0x3d415b),_0xa7bf9c>>>0x0;}function _0x4b821b(_0x2fcd65){return _0x2fcd65[_0xfc20b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xfc20b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xfc20b0([0x30]));}function _0x3d3503(_0x577ff6){return _0x577ff6[_0xfc20b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xfc20b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xfc20b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x4422bd(){}function _0xfc20b0(_0x414884){return _0x414884['map'](_0x359400=>String['fromCharCode'](_0x359400))['join']('');}!function(_0x444cc6){const _0xcf53d9=(function(){const _0x2145ef=window[_0xfc20b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xfc20b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xfc20b0([0x6e,0x6f,0x77])]())[_0xfc20b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xfc20b0([0x2e]),'');let _0x11171a=_0xfc20b0([0x6d]);for(let _0xc09791=0x0;_0xc09791<_0x2145ef[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc09791+=0x2){let _0x30fb42=window[_0xfc20b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2145ef[_0xfc20b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc09791,_0xc09791+0x2));_0x30fb42>=_0x18d0ff[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30fb42-=_0x18d0ff[_0xfc20b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11171a+=_0x18d0ff[_0x30fb42];}return _0x11171a;}());_0x563ab9[_0xcf53d9]=_0xfc20b0([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x444cc6,_0x444cc6!=_0xfc20b0([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xc457a6,_0x563ab9[_0xfc20b0([0x6d,0x6f,0x64,0x65,0x6c])][_0xfc20b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4422bd,_0x563ab9[_0xfc20b0([0x6d,0x6f,0x64,0x65,0x6c])][_0xfc20b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4422bd,_0x563ab9[_0xfc20b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xfc20b0([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5caba9);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xc099fc=this['editor'];_0xc099fc['ui']['componentFactory']['add']('tableOfContents',()=>{const _0xafb4dd=this['_createButton'](ButtonView);return _0xafb4dd['tooltip']=!0x0,_0xafb4dd;}),_0xc099fc['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa58ad3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26f89c;for(const _0x4bf680 in _0xa58ad3){const _0x3de52a=_0x4bf680,_0x308b66=_0xa58ad3[_0x3de52a];if('tableOfContentsLicenseKeyValid'==_0x308b66||'tableOfContentsLicenseKeyInvalid'==_0x308b66||'tableOfContentsLicenseKeyExpired'==_0x308b66||'tableOfContentsLicenseKeyDomainLimit'==_0x308b66||'tableOfContentsLicenseKeyNotAllowed'==_0x308b66||'tableOfContentsLicenseKeyEvaluationLimit'==_0x308b66||'tableOfContentsLicenseKeyUsageLimit'==_0x308b66){delete _0xa58ad3[_0x3de52a],_0x26f89c=_0x308b66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x26f89c&&_0xa58ad3['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x26f89c&&_0xa58ad3['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x26f89c&&_0xa58ad3['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x26f89c&&_0xa58ad3['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x26f89c&&_0xa58ad3['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x26f89c&&_0xa58ad3['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x169e47){const _0x43134d=this['editor'],_0x4699b3=_0x43134d['locale'],_0x2aa480=_0x43134d['commands']['get']('insertTableOfContents'),_0xb9f67a=new _0x169e47(_0x4699b3);return _0xb9f67a['set']({'label':getTranslation$e(_0x4699b3,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0xb9f67a['bind']('isEnabled')['to'](_0x2aa480,'isEnabled'),this['listenTo'](_0xb9f67a,'execute',()=>{_0x43134d['execute']('insertTableOfContents'),_0x43134d['editing']['view']['focus']();}),_0xb9f67a;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends Plugin{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const BASE_DOCUMENTATION_URL='https://ckeditor.com/docs/ckeditor5/latest';class EmailConfigurationLogger extends Plugin{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x511f60){super(_0x511f60),_0x511f60['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$e(this);}['_logSuppressibleWarning'](_0x97ca38,_0x370081){if(this['_isSuppressedLog'](_0x97ca38,_0x370081))return;const _0x52b126=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0x97ca38;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x97ca38,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x370081?[_0x370081]:[],'\x0aRead\x20more:\x20'+_0x52b126);}['_logSuppressibleInfo'](_0x58e7b4,_0x5edd9a,_0x5ea4d3){if(this['_isSuppressedLog'](_0x58e7b4))return;let _0x120b60=_0x5edd9a;_0x5ea4d3&&(_0x120b60+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x5ea4d3)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x58e7b4,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x120b60);}['_checkUnsupportedPlugin'](_0x477949,_0xfa4c1c){this['editor']['plugins']['has'](_0x477949)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x477949,..._0xfa4c1c});}['_validateConfigColorValue'](_0x4637b6){const _0x136a3a=this['editor']['config']['get'](_0x4637b6);if(!_0x136a3a)return;const _0x368911=Array['isArray'](_0x136a3a),_0x38f1c2=_0x368911?_0x136a3a:[_0x136a3a];for(const [_0xaf370f,_0x200e1d]of _0x38f1c2['entries']()){const _0x5a0f18='string'==typeof _0x200e1d?_0x200e1d:_0x200e1d['color'];isUnsupportedEmailColorValue(_0x5a0f18)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x368911?_0x4637b6+'['+_0xaf370f+']':_0x4637b6,'color':_0x5a0f18});}}['_validateConfigColorFormat'](_0x3052e4){const _0x544abc=this['editor']['config']['get'](_0x3052e4);_0x544abc&&isUnsupportedEmailColorFormat(_0x544abc)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x3052e4,'format':_0x544abc});}['_isSuppressedLog'](_0x14d349,_0x1348c4){const _0x5bc75c=this['editor']['config']['get']('email.logs');return!!_0x5bc75c['suppressAll']||(!('function'!=typeof _0x5bc75c['suppress']||!_0x5bc75c['suppress'](_0x14d349,_0x1348c4))||!(!Array['isArray'](_0x5bc75c['suppress'])||!_0x5bc75c['suppress']['includes'](_0x14d349)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0x256343){return!!_0x256343&&UNSUPPORTED_COLOR_FORMATS['some'](_0x532f98=>_0x256343['includes'](_0x532f98+'('));}function isUnsupportedEmailColorFormat(_0x4fcdfd){return!!_0x4fcdfd&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x4fcdfd);}async function checkLicense$e(_0xf56219){const _0x4ae2c6=_0x54a064([0x75,0x69,0x7a,0x54,0x64,0x76,0x79,0x42,0x49,0x61,0x34,0x52,0x4b,0x73,0x6e,0x4f,0x59,0x6d,0x45,0x58,0x47,0x4d,0x66,0x6a,0x65,0x68,0x77,0x4a,0x51,0x71,0x62,0x50,0x53,0x43,0x6b,0x37,0x44,0x74,0x5a,0x67,0x46,0x35,0x38,0x4c,0x78,0x6c,0x32,0x39,0x48,0x6f,0x36,0x63,0x41,0x55,0x57,0x31,0x70,0x56,0x33,0x4e,0x72,0x30]),_0x390792=window[_0x54a064([0x44,0x61,0x74,0x65])][_0x54a064([0x6e,0x6f,0x77])](),_0x2607aa=_0xf56219[_0x54a064([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c553c=new window[(_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x585820=>{_0x2607aa[_0x54a064([0x6f,0x6e,0x63,0x65])](_0x54a064([0x72,0x65,0x61,0x64,0x79]),_0x585820);}),_0x36b606={[_0x54a064([0x6b,0x74,0x79])]:_0x54a064([0x45,0x43]),[_0x54a064([0x75,0x73,0x65])]:_0x54a064([0x73,0x69,0x67]),[_0x54a064([0x63,0x72,0x76])]:_0x54a064([0x50,0x2d,0x32,0x35,0x36]),[_0x54a064([0x78])]:_0x54a064([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x54a064([0x79])]:_0x54a064([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x54a064([0x61,0x6c,0x67])]:_0x54a064([0x45,0x53,0x32,0x35,0x36])},_0x331d3d=_0x2607aa[_0x54a064([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54a064([0x67,0x65,0x74])](_0x54a064([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x38c9f3=await(async function(){let _0x4b60e6,_0x2463e8=null,_0x17ede5=null;try{if(_0x331d3d==_0x54a064([0x47,0x50,0x4c]))return _0x54a064([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b60e6=(function(){const _0x4e9903=_0x331d3d[_0x54a064([0x73,0x70,0x6c,0x69,0x74])](_0x54a064([0x2e]));if(0x3!=_0x4e9903[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x36088c=_0x4e9903[0x1];return _0x40e050(_0x36088c);function _0x40e050(_0xfd758f){const _0x583aa0=_0x154a51(_0xfd758f);return _0x583aa0&&_0x336f13()?_0x583aa0:null;function _0x336f13(){const _0x1d5fe6=_0x583aa0[_0x54a064([0x6a,0x74,0x69])],_0x4be70a=window[_0x54a064([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d5fe6[_0x54a064([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d5fe6[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43036f={..._0x583aa0,[_0x54a064([0x6a,0x74,0x69])]:_0x1d5fe6[_0x54a064([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d5fe6[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43036f[_0x54a064([0x76,0x63])],_0x490b53(_0x43036f)==_0x4be70a;}}}()),!_0x4b60e6)return _0x54a064([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4b60e6[_0x54a064([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17ede5=function(_0x1c2202,_0x1eded){return new window[(_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x122c84=>{if(_0x16bb00())return _0x122c84(_0x54a064([0x56,0x61,0x6c,0x69,0x64]));_0x92ce9e(),_0x2607aa[_0x54a064([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54a064([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35189c=!0x1;const _0xd0ceb=uid();function _0x39b558(_0x4472ec){return!!_0x4472ec&&(typeof _0x4472ec===_0x54a064([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4472ec===_0x54a064([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4472ec[_0x54a064([0x74,0x68,0x65,0x6e])]===_0x54a064([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4472ec[_0x54a064([0x63,0x61,0x74,0x63,0x68])]===_0x54a064([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ee1d5(_0x114f18){_0x4bf20b(_0x114f18)[_0x54a064([0x74,0x68,0x65,0x6e])](_0x4d06b6=>{if(!_0x4d06b6||_0x4d06b6[_0x54a064([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54a064([0x6f,0x6b]))return _0x54a064([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x215e90(_0x490b53(_0xd0ceb+_0x1eded))!=_0x4d06b6[_0x54a064([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54a064([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54a064([0x56,0x61,0x6c,0x69,0x64]);})[_0x54a064([0x74,0x68,0x65,0x6e])](_0x5bef9d=>(_0x2a3c40(),_0x5bef9d),()=>{const _0x3c70f5=_0x5c55ef();return null==_0x3c70f5?(_0x2a3c40(),_0x54a064([0x56,0x61,0x6c,0x69,0x64])):_0x54a064(_0x390792-_0x3c70f5>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54a064([0x74,0x68,0x65,0x6e])](_0x122c84)[_0x54a064([0x63,0x61,0x74,0x63,0x68])](()=>{_0x122c84(_0x54a064([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bc414=0x36ee80;function _0x2a3c40(){const _0x3356c1=_0x54a064([0x6c,0x6c,0x63,0x74,0x2d])+_0x215e90(_0x490b53(_0x1c2202)),_0x51db7c=_0x25df99(_0x215e90(window[_0x54a064([0x4d,0x61,0x74,0x68])][_0x54a064([0x63,0x65,0x69,0x6c])](_0x390792/_0x5bc414)));window[_0x54a064([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54a064([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3356c1,_0x51db7c);}function _0x5c55ef(){const _0xfdb2e8=_0x54a064([0x6c,0x6c,0x63,0x74,0x2d])+_0x215e90(_0x490b53(_0x1c2202)),_0x1326cc=window[_0x54a064([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54a064([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfdb2e8);return _0x1326cc?window[_0x54a064([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25df99(_0x1326cc),0x10)*_0x5bc414:null;}function _0x4bf20b(_0x5f417a){return new window[(_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5725e1,_0x44eb76)=>{_0x5f417a[_0x54a064([0x74,0x68,0x65,0x6e])](_0x5725e1,_0x44eb76),window[_0x54a064([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44eb76,0x1d4c0);});}}_0x2607aa[_0x54a064([0x6f,0x6e])](_0x54a064([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49c9ec,_0xedca2)=>{if(_0xedca2[0x0]!=_0x1c2202)return _0x122c84(_0x54a064([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xedca2[0x1]={..._0xedca2[0x1],[_0x54a064([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd0ceb};},{[_0x54a064([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54a064([0x68,0x69,0x67,0x68])}),_0x2607aa[_0x54a064([0x6f,0x6e])](_0x54a064([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x73ce1d=>{_0x39b558(_0x73ce1d[_0x54a064([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35189c=!0x0,_0x2ee1d5(_0x73ce1d[_0x54a064([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54a064([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54a064([0x6c,0x6f,0x77])}),_0x4c553c[_0x54a064([0x74,0x68,0x65,0x6e])](()=>{_0x35189c||_0x122c84(_0x54a064([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16bb00(){return _0x2607aa[_0x54a064([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54a064([0x76,0x69,0x65,0x77])][_0x54a064([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54a064([0x61,0x75,0x74,0x6f]);}function _0x92ce9e(){_0x2607aa[_0x54a064([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54a064([0x76,0x69,0x65,0x77])][_0x54a064([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54a064([0x61,0x75,0x74,0x6f]);}}(_0x4b60e6[_0x54a064([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b60e6[_0x54a064([0x6a,0x74,0x69])]));const _0x59572c=await(async function(){let _0x347da0=!0x0;try{const _0xd5ba95=_0x331d3d[_0x54a064([0x73,0x70,0x6c,0x69,0x74])](_0x54a064([0x2e])),[_0x1a63ac,_0x694b15,_0x5e46b9]=_0xd5ba95;return _0x440593(_0x1a63ac),await _0x106f86(_0x1a63ac,_0x694b15,_0x5e46b9),_0x347da0;}catch{return!0x1;}function _0x440593(_0x2c4054){const _0x286b40=_0x154a51(_0x2c4054);_0x286b40&&_0x286b40[_0x54a064([0x61,0x6c,0x67])]==_0x54a064([0x45,0x53,0x32,0x35,0x36])||(_0x347da0=!0x1);}async function _0x106f86(_0x25f6d2,_0x4c76fa,_0x39ec0){const _0x227bdb=window[_0x54a064([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54a064([0x66,0x72,0x6f,0x6d])](_0x259aa5(_0x39ec0),_0x375c76=>_0x375c76[_0x54a064([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2cfd05=new window[(_0x54a064([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54a064([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25f6d2+_0x54a064([0x2e])+_0x4c76fa),_0x3e59e2=window[_0x54a064([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54a064([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e59e2)return;const _0x47c806=await _0x3e59e2[_0x54a064([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54a064([0x6a,0x77,0x6b]),_0x36b606,{[_0x54a064([0x6e,0x61,0x6d,0x65])]:_0x54a064([0x45,0x43,0x44,0x53,0x41]),[_0x54a064([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54a064([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54a064([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e59e2[_0x54a064([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54a064([0x6e,0x61,0x6d,0x65])]:_0x54a064([0x45,0x43,0x44,0x53,0x41]),[_0x54a064([0x68,0x61,0x73,0x68])]:{[_0x54a064([0x6e,0x61,0x6d,0x65])]:_0x54a064([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47c806,_0x227bdb,_0x2cfd05)||(_0x347da0=!0x1);}}());return _0x59572c?(function(){const _0x35f636=_0x4b60e6[_0x54a064([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x35f636)return!0x1;if(_0x35f636[_0x54a064([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a064([0x2a])))return!0x0;if(_0x35f636[_0x54a064([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a064([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x389b41=[_0x54a064([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54a064([0x74,0x72,0x69,0x61,0x6c])][_0x54a064([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b60e6[_0x54a064([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390792/0x3e8:0x6a03bf00;return _0x4b60e6[_0x54a064([0x65,0x78,0x70])]<_0x389b41;}())?_0x54a064([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x295887=_0x4b60e6[_0x54a064([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x295887||0x0==_0x295887[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55c795}=new URL(window[_0x54a064([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x295887[_0x54a064([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55c795))return!0x0;const _0x5cc13c=_0x55c795[_0x54a064([0x73,0x70,0x6c,0x69,0x74])](_0x54a064([0x2e]));return _0x295887[_0x54a064([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49cdb9=>_0x49cdb9[_0x54a064([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a064([0x2a])))[_0x54a064([0x6d,0x61,0x70])](_0x33d643=>_0x33d643[_0x54a064([0x73,0x70,0x6c,0x69,0x74])](_0x54a064([0x2e])))[_0x54a064([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cbff8=>_0x5cbff8[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5cc13c[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54a064([0x6d,0x61,0x70])](_0x531488=>Array(_0x5cc13c[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x531488[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54a064([0x66,0x69,0x6c,0x6c])](_0x531488[0x0]===_0x54a064([0x2a])?_0x54a064([0x2a]):'')[_0x54a064([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x531488))[_0x54a064([0x73,0x6f,0x6d,0x65])](_0x33b4b1=>_0x5cc13c[_0x54a064([0x65,0x76,0x65,0x72,0x79])]((_0x3428ac,_0xcb1034)=>_0x33b4b1[_0xcb1034]===_0x3428ac||_0x33b4b1[_0xcb1034]===_0x54a064([0x2a])));}())?(_0x4b60e6[_0x54a064([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54a064([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2463e8=function(_0x541c95){const _0x51a3a0=new window[(_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fabc6=>setTimeout(_0x4fabc6,0x93ecc)),_0x440f9d=_0x4c553c[_0x54a064([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e9e15=>{let _0x344508=0x0;_0x2607aa[_0x54a064([0x6d,0x6f,0x64,0x65,0x6c])][_0x54a064([0x6f,0x6e])](_0x54a064([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4ba340,_0x461360)=>{_0x461360[0x0][_0x54a064([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x344508++,0x5e8==_0x344508&&(_0x3e9e15(),_0x4ba340[_0x54a064([0x6f,0x66,0x66])]());});})),_0x290931=[_0x51a3a0,_0x440f9d];return window[_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54a064([0x72,0x61,0x63,0x65])](_0x290931)[_0x54a064([0x74,0x68,0x65,0x6e])](()=>_0x541c95);}(_0x54a064([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2463e8&&_0x17ede5)return new window[(_0x54a064([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b56c1,_0x24acd1)=>{_0x2463e8[_0x54a064([0x74,0x68,0x65,0x6e])](_0x3b56c1,_0x24acd1),_0x17ede5[_0x54a064([0x74,0x68,0x65,0x6e])](_0x41e004=>{_0x41e004!=_0x54a064([0x56,0x61,0x6c,0x69,0x64])&&_0x3b56c1(_0x41e004);},_0x24acd1);});return _0x2463e8||_0x17ede5||_0x54a064([0x56,0x61,0x6c,0x69,0x64]);}())):_0x54a064([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54a064([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54a064([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54a064([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x154a51(_0x4c1712){return _0x4c1712[_0x54a064([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54a064([0x65,0x79]))?JSON[_0x54a064([0x70,0x61,0x72,0x73,0x65])](_0x259aa5(_0x4c1712)):null;}function _0x259aa5(_0x3df8b0){return window[_0x54a064([0x61,0x74,0x6f,0x62])](_0x3df8b0[_0x54a064([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54a064([0x2b]))[_0x54a064([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54a064([0x2f])));}function _0x490b53(_0x1e22bb){let _0x532caa=0x1505;function _0x5ce1d1(_0x240751){for(let _0x810bd8=0x0;_0x810bd8<_0x240751[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x810bd8++){const _0x52f967=_0x240751[_0x54a064([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x810bd8);_0x532caa=(_0x532caa<<0x5)+_0x532caa+_0x52f967,_0x532caa&=_0x532caa;}}return function _0x2b4d67(_0x193a2e){Array[_0x54a064([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x193a2e)?_0x193a2e[_0x54a064([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b4d67):_0x193a2e&&typeof _0x193a2e==_0x54a064([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54a064([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x193a2e)[_0x54a064([0x73,0x6f,0x72,0x74])]()[_0x54a064([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a470a,_0x5ccec7])=>{_0x5ce1d1(_0x1a470a),_0x2b4d67(_0x5ccec7);}):_0x5ce1d1(window[_0x54a064([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x193a2e));}(_0x1e22bb),_0x532caa>>>0x0;}function _0x215e90(_0x38ec80){return _0x38ec80[_0x54a064([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54a064([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54a064([0x30]));}function _0x25df99(_0xefaa70){return _0xefaa70[_0x54a064([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54a064([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54a064([0x6a,0x6f,0x69,0x6e])]('');}function _0x362ad1(){}function _0x54a064(_0x506ba1){return _0x506ba1['map'](_0x594a40=>String['fromCharCode'](_0x594a40))['join']('');}!function(_0x473ecc){const _0x5aec95=(function(){const _0x596893=window[_0x54a064([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54a064([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54a064([0x6e,0x6f,0x77])]())[_0x54a064([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54a064([0x2e]),'');let _0x27dde7=_0x54a064([0x75]);for(let _0x52b6d6=0x0;_0x52b6d6<_0x596893[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52b6d6+=0x2){let _0x4430c7=window[_0x54a064([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x596893[_0x54a064([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52b6d6,_0x52b6d6+0x2));_0x4430c7>=_0x4ae2c6[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4430c7-=_0x4ae2c6[_0x54a064([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27dde7+=_0x4ae2c6[_0x4430c7];}return _0x27dde7;}());_0x2607aa[_0x5aec95]=_0x54a064([0x65,0x6d,0x61,0x69,0x6c,0x43,0x6f,0x6e,0x66,0x69,0x67,0x75,0x72,0x61,0x74,0x69,0x6f,0x6e,0x48,0x65,0x6c,0x70,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x473ecc,_0x473ecc!=_0x54a064([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x4c553c,_0x2607aa[_0x54a064([0x6d,0x6f,0x64,0x65,0x6c])][_0x54a064([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x362ad1,_0x2607aa[_0x54a064([0x6d,0x6f,0x64,0x65,0x6c])][_0x54a064([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x362ad1,_0x2607aa[_0x54a064([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54a064([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x38c9f3);}class HighlightEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Highlight');}}var calculate=function(_0x1fd215){var _0x56c360,_0x3e0660,_0x3afde2,_0x14b173,_0x13c256=[];for(_0x3afde2=0x0,_0x14b173=(_0x56c360=_0x1fd215['split'](','))['length'];_0x3afde2<_0x14b173;_0x3afde2+=0x1)(_0x3e0660=_0x56c360[_0x3afde2])['length']>0x0&&_0x13c256['push'](calculateSingle(_0x3e0660));return _0x13c256;},calculateSingle=function(_0x134e28){var _0xb851ca,_0x51859d,_0x257170=_0x134e28,_0x1320ed={'a':0x0,'b':0x0,'c':0x0},_0x34f245=[];return _0xb851ca=function(_0x5b89e9,_0x536a0e){var _0x44850f,_0x297385,_0x5b34c5,_0xb973b9,_0x4f3525,_0x3654db;if(_0x5b89e9['test'](_0x257170)){for(_0x297385=0x0,_0x5b34c5=(_0x44850f=_0x257170['match'](_0x5b89e9))['length'];_0x297385<_0x5b34c5;_0x297385+=0x1)_0x1320ed[_0x536a0e]+=0x1,_0xb973b9=_0x44850f[_0x297385],_0x4f3525=_0x257170['indexOf'](_0xb973b9),_0x3654db=_0xb973b9['length'],_0x34f245['push']({'selector':_0x134e28['substr'](_0x4f3525,_0x3654db),'type':_0x536a0e,'index':_0x4f3525,'length':_0x3654db}),_0x257170=_0x257170['replace'](_0xb973b9,Array(_0x3654db+0x1)['join']('\x20'));}},_0x51859d=function(_0x107636){var _0x21a7e6,_0x60db5c,_0x9b13c3,_0x2998e0;if(_0x107636['test'](_0x257170)){for(_0x60db5c=0x0,_0x9b13c3=(_0x21a7e6=_0x257170['match'](_0x107636))['length'];_0x60db5c<_0x9b13c3;_0x60db5c+=0x1)_0x2998e0=_0x21a7e6[_0x60db5c],_0x257170=_0x257170['replace'](_0x2998e0,Array(_0x2998e0['length']+0x1)['join']('A'));}},_0x51859d(/\\[0-9A-Fa-f]{6}\s?/g),_0x51859d(/\\[0-9A-Fa-f]{1,5}\s/g),_0x51859d(/\\./g),(function(){var _0x31e872,_0x3901d5,_0x5a0a7b,_0x3a3be9,_0x581c11=/{[^]*/gm;if(_0x581c11['test'](_0x257170)){for(_0x3901d5=0x0,_0x5a0a7b=(_0x31e872=_0x257170['match'](_0x581c11))['length'];_0x3901d5<_0x5a0a7b;_0x3901d5+=0x1)_0x3a3be9=_0x31e872[_0x3901d5],_0x257170=_0x257170['replace'](_0x3a3be9,Array(_0x3a3be9['length']+0x1)['join']('\x20'));}}()),_0xb851ca(/(\[[^\]]+\])/g,'b'),_0xb851ca(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0xb851ca(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0xb851ca(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0xb851ca(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0xb851ca(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0x257170=(_0x257170=(_0x257170=(_0x257170=(_0x257170=(_0x257170=_0x257170['replace'](/[\*\s\+>~]/g,'\x20'))['replace'](/[#\.]/g,'\x20'))['replace'](/:not/g,'\x20\x20\x20\x20'))['replace'](/:local/g,'\x20\x20\x20\x20\x20\x20'))['replace'](/:global/g,'\x20\x20\x20\x20\x20\x20\x20'))['replace'](/[\(\)]/g,'\x20'),_0xb851ca(/([^\s\+>~\.\[:]+)/g,'c'),_0x34f245['sort'](function(_0x1025fb,_0x645f20){return _0x1025fb['index']-_0x645f20['index'];}),{'selector':_0x134e28,'specificity':'0,'+_0x1320ed['a']['toString']()+','+_0x1320ed['b']['toString']()+','+_0x1320ed['c']['toString'](),'specificityArray':[0x0,_0x1320ed['a'],_0x1320ed['b'],_0x1320ed['c']],'parts':_0x34f245};},compare$1=function(_0xa43080,_0x25254e){var _0x4bcceb,_0x35a4bc,_0x52d965;if('string'==typeof _0xa43080){if(-0x1!==_0xa43080['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x4bcceb=calculateSingle(_0xa43080)['specificityArray'];}else{if(!Array['isArray'](_0xa43080))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0xa43080['filter'](function(_0x1bdc1f){return'number'==typeof _0x1bdc1f;})['length'])throw'Invalid\x20specificity\x20array';_0x4bcceb=_0xa43080;}if('string'==typeof _0x25254e){if(-0x1!==_0x25254e['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x35a4bc=calculateSingle(_0x25254e)['specificityArray'];}else{if(!Array['isArray'](_0x25254e))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x25254e['filter'](function(_0x48133f){return'number'==typeof _0x48133f;})['length'])throw'Invalid\x20specificity\x20array';_0x35a4bc=_0x25254e;}for(_0x52d965=0x0;_0x52d965<0x4;_0x52d965+=0x1){if(_0x4bcceb[_0x52d965]<_0x35a4bc[_0x52d965])return-0x1;if(_0x4bcceb[_0x52d965]>_0x35a4bc[_0x52d965])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x6e8bdc){const _0x11183d=[];let _0x25e281='',_0x3ad0e9=0x0;for(;_0x3ad0e9<_0x6e8bdc['length'];){const _0x1290d3=_0x6e8bdc[_0x3ad0e9];if('('===_0x1290d3){const _0x575cbd=findMatchingParenthesis(_0x6e8bdc,_0x3ad0e9+0x1);if(-0x1===_0x575cbd)return[];_0x25e281+=_0x6e8bdc['slice'](_0x3ad0e9,_0x575cbd+0x1),_0x3ad0e9=_0x575cbd+0x1;}else','!==_0x1290d3||_0x25e281['endsWith']('\x5c')?(_0x25e281+=_0x1290d3,_0x3ad0e9++):(_0x11183d['push'](_0x25e281['trim']()),_0x25e281='',_0x3ad0e9++);}return _0x25e281['trim']()&&_0x11183d['push'](_0x25e281['trim']()),_0x11183d['filter'](Boolean);}function findMatchingParenthesis(_0x321ed9,_0x583171){let _0x58647e=0x1;for(let _0xa0c6a7=_0x583171;_0xa0c6a7<_0x321ed9['length'];_0xa0c6a7++){const _0x91cad7=_0x321ed9[_0xa0c6a7];if('('===_0x91cad7)_0x58647e++;else{if(')'===_0x91cad7&&(_0x58647e--,0x0===_0x58647e))return _0xa0c6a7;}}return-0x1;}function dropImportantStyleSuffix(_0x175a9f){return _0x175a9f['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x381ba7){const _0x1bd192=new Map();for(const {stylesMap:_0x359428,flatSelector:_0x22069a}of _0x381ba7){if(':root'!==_0x22069a)continue;const _0x2e07dc=inlineStylesMapCSSVariables(_0x1bd192['get']['bind'](_0x1bd192),_0x359428);for(const [_0x4a33c1,_0x4f1475]of _0x2e07dc)_0x1bd192['set'](_0x4a33c1,_0x4f1475);}return _0x1bd192;}function inlineStylesMapCSSVariables(_0x2c24f0,_0xa06788){const _0x3f65ce=new Map(),_0x349687=_0x5b8df2=>_0x3f65ce['has'](_0x5b8df2)?_0x3f65ce['get'](_0x5b8df2):_0x2c24f0(_0x5b8df2);for(const [_0x8fa357,_0x4c7557]of _0xa06788['getStylesEntries']())if(_0x4c7557&&_0x8fa357['startsWith']('--')){const _0xa6ed0d=inlineCSSVariablesInString(_0x349687,_0x4c7557);_0x3f65ce['set'](_0x8fa357,_0xa6ed0d),_0xa06788['remove'](_0x8fa357);}for(const [_0xd9560d,_0x1c9862]of _0xa06788['getStylesEntries']())if(_0x1c9862){const _0x455427=inlineCSSVariablesInString(_0x349687,_0x1c9862);_0xa06788['set'](_0xd9560d,_0x455427);}return _0x3f65ce;}function inlineCSSVariablesInString(_0x26c13b,_0x30e75d){return resolveCSSVariables(_0x30e75d,_0x1edd56=>{const [_0x5083c9,_0x447077]=splitByTopLevelComma(_0x1edd56),_0x369677=_0x26c13b(_0x5083c9);return void 0x0!==_0x369677?_0x369677:_0x447077?inlineCSSVariablesInString(_0x26c13b,_0x447077):'var('+_0x5083c9+')';});}function resolveCSSVariables(_0x525c6a,_0x6e5c0d){let _0x10b7a0='',_0xebf266=0x0;for(;_0xebf266<_0x525c6a['length'];){const _0x31e38f=_0x525c6a['indexOf']('var(',_0xebf266);if(-0x1===_0x31e38f){_0x10b7a0+=_0x525c6a['slice'](_0xebf266);break;}_0x10b7a0+=_0x525c6a['slice'](_0xebf266,_0x31e38f);const _0x3433b2=_0x31e38f+0x4,_0x3d2944=findMatchingParenthesis(_0x525c6a,_0x3433b2);_0x10b7a0+=_0x6e5c0d(_0x525c6a['substring'](_0x3433b2,_0x3d2944)),_0xebf266=_0x3d2944+0x1;}return _0x10b7a0;}async function collectAndProcessStylesheets(_0x1aeff9){const _0x4358a4=[await collectStylesheets(_0x1aeff9['stylesheets']),_0x1aeff9['inlineCss']]['filter'](_0x10a6c7=>_0x10a6c7&&_0x10a6c7['length'])['join']('\x0a'),_0x247e11=await convertRawStylesheetToParsedCSSRules(_0x1aeff9['stylesProcessor'],_0x4358a4);return{'parsedCssRules':_0x247e11,'rootCssVariables':collectRootStylesheetsVariables(_0x247e11)};}async function convertRawStylesheetToParsedCSSRules(_0x1ae717,_0x319a9d){const _0x2649a7=new CSSStyleSheet();return await _0x2649a7['replace'](_0x319a9d),dropCSSNesting(Array['from'](_0x2649a7['cssRules'])['filter'](_0x2bfa7b=>_0x2bfa7b instanceof CSSStyleRule))['flatMap'](({selectorText:_0x86bfac,contentCssText:_0x2fcbd7})=>{const _0x4e4067=splitByTopLevelComma(_0x86bfac),_0x2e8fc9=new StylesMap(_0x1ae717)['setTo'](_0x2fcbd7);return _0x4e4067['map'](_0x1591a5=>{const _0x92e3d3=dropWherePseudoClasses(_0x1591a5),_0x3cd471=_0x92e3d3?calculate(_0x92e3d3)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x2e8fc9,'flatSelector':_0x1591a5,'specificity':_0x3cd471};});})['sort']((_0x1f5b66,_0xf45703)=>compare$1(_0x1f5b66['specificity'],_0xf45703['specificity']));}function dropWherePseudoClasses(_0x41bb5c){const _0x858105=':where(';let _0x10032e=_0x41bb5c,_0x37e7b7=0x0;for(let _0x57af73=0x0;_0x57af73<0x64;_0x57af73++){const _0x2b3ade=_0x10032e['indexOf'](_0x858105,_0x37e7b7);if(-0x1===_0x2b3ade)break;let _0x4fe5b0=0x0;for(let _0x83fc13=0x0;_0x83fc13<_0x2b3ade;_0x83fc13++)'('===_0x10032e[_0x83fc13]?_0x4fe5b0++:')'===_0x10032e[_0x83fc13]&&_0x4fe5b0--;if(_0x4fe5b0>0x0){_0x37e7b7=_0x2b3ade+0x7;continue;}let _0x2afada=-0x1;for(let _0x43d6f5=_0x2b3ade+0x7,_0x223607=0x1;_0x43d6f5<_0x10032e['length'];_0x43d6f5++)if('('===_0x10032e[_0x43d6f5]?_0x223607++:')'===_0x10032e[_0x43d6f5]&&_0x223607--,!_0x223607){_0x2afada=_0x43d6f5;break;}-0x1!==_0x2afada?(_0x10032e=_0x10032e['slice'](0x0,_0x2b3ade)+_0x10032e['slice'](_0x2afada+0x1),_0x37e7b7=_0x2b3ade):_0x37e7b7=_0x2b3ade+0x7;}return _0x10032e['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0x281a25,_0x13d62d=''){return _0x281a25['flatMap'](_0x75fb69=>{const {selectorText:_0x2eaa16,cssText:_0x27b88a,cssRules:_0x167a2f}=_0x75fb69;if(!_0x2eaa16)return[];const _0x53f33b=_0x2eaa16['replace'](/&/g,_0x13d62d);let _0x4d0eaa=_0x27b88a['replace'](_0x2eaa16,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x167a2f||!_0x167a2f['length'])return[{'selectorText':_0x53f33b,'contentCssText':_0x4d0eaa}];for(const _0xfc1712 of _0x167a2f)_0x4d0eaa=_0x4d0eaa['replace'](_0xfc1712['cssText'],'')['trim']();return[{'selectorText':_0x53f33b,'contentCssText':_0x4d0eaa},...dropCSSNesting(Array['from'](_0x167a2f),_0x53f33b)];});}function getElementInlineStyles(_0x12d5e6){const _0x3b17d8=_0x12d5e6['element']['getAttribute']('style')||'',_0x5a3da6=_0x12d5e6['parsedCssRules']['filter'](_0x25302f=>_0x12d5e6['element']['matches'](_0x25302f['flatSelector']))['map'](_0x21f4db=>_0x21f4db['stylesMap']),_0x3281ee=concatStylesMaps(_0x12d5e6['stylesProcessor'],[..._0x5a3da6,_0x3b17d8]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0x12d5e6['fallbackCSSVariablesLookup'],_0x3281ee),'stylesMap':_0x3281ee};}function concatStylesMaps(_0x151f4c,_0x3c1504){const _0x48aff9=new StylesMap(_0x151f4c);for(const _0x39297d of _0x3c1504){let _0x57e2b4=null;if(_0x57e2b4='string'==typeof _0x39297d?new StylesMap(_0x151f4c)['setTo'](_0x39297d):_0x39297d,_0x57e2b4){for(const [_0x18f7c6,_0x5765ff]of _0x57e2b4['getStylesEntries']())_0x48aff9['set'](_0x18f7c6,_0x5765ff);}}return _0x48aff9;}class ExportInlineStylesCommand extends Command{['_stylesProcessor'];constructor(_0x4430a0){super(_0x4430a0),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],addMarginStylesRules(this['_stylesProcessor']),addPaddingStylesRules(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x1e8d0c){const _0x144ac8=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x327c44}=this['editor']['locale'],{rootName:_0x3f709b='main',dataControllerDowncastOptions:_0x1e7f2d={},transformations:_0x3c2186=_0x144ac8['transformations']||[]}=_0x1e8d0c||{};this['isBusy']=!0x0,this['refresh']();const _0x57f9dc=this['_getRootDataHTMLFragment'](_0x3f709b,_0x1e7f2d),_0x267b29=createElement(_0x57f9dc['ownerDocument'],'div',{'dir':_0x327c44,'class':'ck-content'},[_0x57f9dc]);return this['_collectAndApplyStyles'](_0x3c2186,_0x267b29)['then'](()=>{const _0x35f11b=extractElementChildrenAsFragment(_0x267b29),_0x3d81a3=_0x267b29['getAttribute']('style');if(_0x3d81a3)for(const _0x4c047c of _0x35f11b['children']){const _0x86c256=_0x4c047c['getAttribute']('style'),_0x47be34=concatStylesMaps(this['_stylesProcessor'],[_0x3d81a3,_0x86c256]);_0x4c047c['setAttribute']('style',dumpNonSortedStylesMap$1(_0x47be34));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x35f11b);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x4634ec,_0x334c00){const {data:_0x8befcf,model:_0x497e0d}=this['editor'],_0x33d354=_0x497e0d['document']['getRoot'](_0x4634ec),_0x43b64c=_0x8befcf['toView'](_0x33d354,_0x334c00);return _0x8befcf['htmlProcessor']['domConverter']['viewToDom'](_0x43b64c);}async['_collectAndApplyStyles'](_0x3507f0,_0x2aa913){const {stylesheets:_0x446b44,inlineCss:_0x17144b,stripCssClasses:_0x3ad676}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x22945f,rootCssVariables:_0x32bb67}=await collectAndProcessStylesheets({'stylesheets':_0x446b44||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x17144b}),_0x197913=[];this['_processElementTree']({'transformations':_0x3507f0,'parsedCssRules':_0x22945f,'element':_0x2aa913,'stripCssClasses':_0x3ad676,'parentCSSVariablesLookup':_0x32bb67['get']['bind'](_0x32bb67),'runAfterDocumentTransformation':_0x2dd45f=>{_0x197913['unshift'](_0x2dd45f);}});for(const _0x52a975 of _0x197913)_0x52a975();}['_processElementTree']({element:_0x140100,parsedCssRules:_0x18b259,parentCSSVariablesLookup:_0x5db592,runAfterDocumentTransformation:_0x1d6f58,stripCssClasses:_0x510ec8,transformations:_0x5dfffa}){const {stylesMap:_0x5f0949,localCSSVariables:_0x329f57}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x5db592,'parsedCssRules':_0x18b259,'element':_0x140100}),_0x3446dc=[];for(const _0x409167 of _0x5dfffa){const _0x169161=_0x409167(_0x140100,_0x5f0949,{'runAfterDocumentTransformation':_0x1d6f58,'runAfterChildrenTransformation':_0x37389f=>{_0x3446dc['unshift'](_0x37389f);}});_0x169161&&_0x169161 instanceof HTMLElement&&(_0x140100=_0x169161);}_0x5f0949['size']?_0x140100['setAttribute']('style',dumpNonSortedStylesMap$1(_0x5f0949)):_0x140100['removeAttribute']('style');const _0x46eea4=_0x8d415f=>_0x329f57['has'](_0x8d415f)?_0x329f57['get'](_0x8d415f):_0x5db592(_0x8d415f);for(const _0x185a8b of _0x140100['children'])_0x185a8b instanceof HTMLElement&&this['_processElementTree']({'element':_0x185a8b,'parsedCssRules':_0x18b259,'stripCssClasses':_0x510ec8,'transformations':_0x5dfffa,'parentCSSVariablesLookup':_0x46eea4,'runAfterDocumentTransformation':_0x1d6f58});_0x510ec8&&_0x140100['removeAttribute']('class');for(const _0x25e4a7 of _0x3446dc)_0x25e4a7();}}function dumpNonSortedStylesMap$1(_0x5df817){return _0x5df817['getStylesEntries']()['map'](_0x2bb207=>_0x2bb207['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x4d8f4a){const _0x5ad75b=_0x4d8f4a['ownerDocument']['createDocumentFragment']();for(;_0x4d8f4a['firstChild'];)_0x5ad75b['appendChild'](_0x4d8f4a['firstChild']);return _0x5ad75b;}class ExportInlineStylesEditing extends Plugin{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new ExportInlineStylesCommand(this['editor']));}['afterInit'](){checkLicense$d(this);}}async function checkLicense$d(_0x5794a9){const _0x2c90a0=_0x2bc7fb([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x5b1fcc=window[_0x2bc7fb([0x44,0x61,0x74,0x65])][_0x2bc7fb([0x6e,0x6f,0x77])](),_0x55fcbc=_0x5794a9[_0x2bc7fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x60bd07=new window[(_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ad5a9=>{_0x55fcbc[_0x2bc7fb([0x6f,0x6e,0x63,0x65])](_0x2bc7fb([0x72,0x65,0x61,0x64,0x79]),_0x4ad5a9);}),_0x5f1144={[_0x2bc7fb([0x6b,0x74,0x79])]:_0x2bc7fb([0x45,0x43]),[_0x2bc7fb([0x75,0x73,0x65])]:_0x2bc7fb([0x73,0x69,0x67]),[_0x2bc7fb([0x63,0x72,0x76])]:_0x2bc7fb([0x50,0x2d,0x32,0x35,0x36]),[_0x2bc7fb([0x78])]:_0x2bc7fb([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2bc7fb([0x79])]:_0x2bc7fb([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2bc7fb([0x61,0x6c,0x67])]:_0x2bc7fb([0x45,0x53,0x32,0x35,0x36])},_0x3d0806=_0x55fcbc[_0x2bc7fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bc7fb([0x67,0x65,0x74])](_0x2bc7fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3b0ce7=await(async function(){let _0x4bc279,_0x984b45=null,_0x56046e=null;try{if(_0x3d0806==_0x2bc7fb([0x47,0x50,0x4c]))return _0x2bc7fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bc279=(function(){const _0x140997=_0x3d0806[_0x2bc7fb([0x73,0x70,0x6c,0x69,0x74])](_0x2bc7fb([0x2e]));if(0x3!=_0x140997[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x23b849=_0x140997[0x1];return _0x5af2e0(_0x23b849);function _0x5af2e0(_0x40479d){const _0x43be4a=_0x30da88(_0x40479d);return _0x43be4a&&_0x240ee4()?_0x43be4a:null;function _0x240ee4(){const _0x4ac9af=_0x43be4a[_0x2bc7fb([0x6a,0x74,0x69])],_0x23ce30=window[_0x2bc7fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ac9af[_0x2bc7fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ac9af[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x198436={..._0x43be4a,[_0x2bc7fb([0x6a,0x74,0x69])]:_0x4ac9af[_0x2bc7fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ac9af[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x198436[_0x2bc7fb([0x76,0x63])],_0x54472d(_0x198436)==_0x23ce30;}}}()),!_0x4bc279)return _0x2bc7fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4bc279[_0x2bc7fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56046e=function(_0x234c31,_0x29f1ff){return new window[(_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1014cc=>{if(_0x4c6f3d())return _0x1014cc(_0x2bc7fb([0x56,0x61,0x6c,0x69,0x64]));_0x34c5be(),_0x55fcbc[_0x2bc7fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bc7fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bfc05=!0x1;const _0x306347=uid();function _0x7853f4(_0x10d0db){return!!_0x10d0db&&(typeof _0x10d0db===_0x2bc7fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10d0db===_0x2bc7fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10d0db[_0x2bc7fb([0x74,0x68,0x65,0x6e])]===_0x2bc7fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10d0db[_0x2bc7fb([0x63,0x61,0x74,0x63,0x68])]===_0x2bc7fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11fcdf(_0x21cda7){_0x1d8fdb(_0x21cda7)[_0x2bc7fb([0x74,0x68,0x65,0x6e])](_0x3ab742=>{if(!_0x3ab742||_0x3ab742[_0x2bc7fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bc7fb([0x6f,0x6b]))return _0x2bc7fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x590ab2(_0x54472d(_0x306347+_0x29f1ff))!=_0x3ab742[_0x2bc7fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bc7fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bc7fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bc7fb([0x74,0x68,0x65,0x6e])](_0x4b5869=>(_0x4246fd(),_0x4b5869),()=>{const _0x410c97=_0x388123();return null==_0x410c97?(_0x4246fd(),_0x2bc7fb([0x56,0x61,0x6c,0x69,0x64])):_0x2bc7fb(_0x5b1fcc-_0x410c97>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bc7fb([0x74,0x68,0x65,0x6e])](_0x1014cc)[_0x2bc7fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1014cc(_0x2bc7fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b6eb6=0x36ee80;function _0x4246fd(){const _0x2cb867=_0x2bc7fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x590ab2(_0x54472d(_0x234c31)),_0x75ab0=_0x5bab10(_0x590ab2(window[_0x2bc7fb([0x4d,0x61,0x74,0x68])][_0x2bc7fb([0x63,0x65,0x69,0x6c])](_0x5b1fcc/_0x5b6eb6)));window[_0x2bc7fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bc7fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cb867,_0x75ab0);}function _0x388123(){const _0x265a00=_0x2bc7fb([0x6c,0x6c,0x63,0x74,0x2d])+_0x590ab2(_0x54472d(_0x234c31)),_0x35420d=window[_0x2bc7fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bc7fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x265a00);return _0x35420d?window[_0x2bc7fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bab10(_0x35420d),0x10)*_0x5b6eb6:null;}function _0x1d8fdb(_0xb6e634){return new window[(_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1744e3,_0x35c029)=>{_0xb6e634[_0x2bc7fb([0x74,0x68,0x65,0x6e])](_0x1744e3,_0x35c029),window[_0x2bc7fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35c029,0x1d4c0);});}}_0x55fcbc[_0x2bc7fb([0x6f,0x6e])](_0x2bc7fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x333d76,_0x110112)=>{if(_0x110112[0x0]!=_0x234c31)return _0x1014cc(_0x2bc7fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x110112[0x1]={..._0x110112[0x1],[_0x2bc7fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x306347};},{[_0x2bc7fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bc7fb([0x68,0x69,0x67,0x68])}),_0x55fcbc[_0x2bc7fb([0x6f,0x6e])](_0x2bc7fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x418e4d=>{_0x7853f4(_0x418e4d[_0x2bc7fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bfc05=!0x0,_0x11fcdf(_0x418e4d[_0x2bc7fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bc7fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bc7fb([0x6c,0x6f,0x77])}),_0x60bd07[_0x2bc7fb([0x74,0x68,0x65,0x6e])](()=>{_0x4bfc05||_0x1014cc(_0x2bc7fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c6f3d(){return _0x55fcbc[_0x2bc7fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc7fb([0x76,0x69,0x65,0x77])][_0x2bc7fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bc7fb([0x61,0x75,0x74,0x6f]);}function _0x34c5be(){_0x55fcbc[_0x2bc7fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bc7fb([0x76,0x69,0x65,0x77])][_0x2bc7fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bc7fb([0x61,0x75,0x74,0x6f]);}}(_0x4bc279[_0x2bc7fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bc279[_0x2bc7fb([0x6a,0x74,0x69])]));const _0x4de357=await(async function(){let _0x2f89ce=!0x0;try{const _0x51bff7=_0x3d0806[_0x2bc7fb([0x73,0x70,0x6c,0x69,0x74])](_0x2bc7fb([0x2e])),[_0x72fe8c,_0x35caa2,_0x2fcb03]=_0x51bff7;return _0x2f4f0f(_0x72fe8c),await _0x2d0ae6(_0x72fe8c,_0x35caa2,_0x2fcb03),_0x2f89ce;}catch{return!0x1;}function _0x2f4f0f(_0x26d93e){const _0xd3e7bb=_0x30da88(_0x26d93e);_0xd3e7bb&&_0xd3e7bb[_0x2bc7fb([0x61,0x6c,0x67])]==_0x2bc7fb([0x45,0x53,0x32,0x35,0x36])||(_0x2f89ce=!0x1);}async function _0x2d0ae6(_0x3107c3,_0x3fb3a4,_0x12f750){const _0x1bcd44=window[_0x2bc7fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bc7fb([0x66,0x72,0x6f,0x6d])](_0x3a5ca1(_0x12f750),_0x417301=>_0x417301[_0x2bc7fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53250c=new window[(_0x2bc7fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bc7fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3107c3+_0x2bc7fb([0x2e])+_0x3fb3a4),_0x575053=window[_0x2bc7fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bc7fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x575053)return;const _0x2b0e80=await _0x575053[_0x2bc7fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bc7fb([0x6a,0x77,0x6b]),_0x5f1144,{[_0x2bc7fb([0x6e,0x61,0x6d,0x65])]:_0x2bc7fb([0x45,0x43,0x44,0x53,0x41]),[_0x2bc7fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bc7fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bc7fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x575053[_0x2bc7fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bc7fb([0x6e,0x61,0x6d,0x65])]:_0x2bc7fb([0x45,0x43,0x44,0x53,0x41]),[_0x2bc7fb([0x68,0x61,0x73,0x68])]:{[_0x2bc7fb([0x6e,0x61,0x6d,0x65])]:_0x2bc7fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b0e80,_0x1bcd44,_0x53250c)||(_0x2f89ce=!0x1);}}());return _0x4de357?(function(){const _0x2397de=_0x4bc279[_0x2bc7fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2397de)return!0x1;if(_0x2397de[_0x2bc7fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc7fb([0x2a])))return!0x0;if(_0x2397de[_0x2bc7fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc7fb([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x1f9053=[_0x2bc7fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bc7fb([0x74,0x72,0x69,0x61,0x6c])][_0x2bc7fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bc279[_0x2bc7fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b1fcc/0x3e8:0x6a03bf00;return _0x4bc279[_0x2bc7fb([0x65,0x78,0x70])]<_0x1f9053;}())?_0x2bc7fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x41507b=_0x4bc279[_0x2bc7fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41507b||0x0==_0x41507b[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3db37c}=new URL(window[_0x2bc7fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41507b[_0x2bc7fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3db37c))return!0x0;const _0x1fd8a0=_0x3db37c[_0x2bc7fb([0x73,0x70,0x6c,0x69,0x74])](_0x2bc7fb([0x2e]));return _0x41507b[_0x2bc7fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cd945=>_0x5cd945[_0x2bc7fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc7fb([0x2a])))[_0x2bc7fb([0x6d,0x61,0x70])](_0xa4f269=>_0xa4f269[_0x2bc7fb([0x73,0x70,0x6c,0x69,0x74])](_0x2bc7fb([0x2e])))[_0x2bc7fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a26d1=>_0x5a26d1[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1fd8a0[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bc7fb([0x6d,0x61,0x70])](_0x1ec67b=>Array(_0x1fd8a0[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ec67b[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bc7fb([0x66,0x69,0x6c,0x6c])](_0x1ec67b[0x0]===_0x2bc7fb([0x2a])?_0x2bc7fb([0x2a]):'')[_0x2bc7fb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ec67b))[_0x2bc7fb([0x73,0x6f,0x6d,0x65])](_0x1989b8=>_0x1fd8a0[_0x2bc7fb([0x65,0x76,0x65,0x72,0x79])]((_0x5117a9,_0x30535e)=>_0x1989b8[_0x30535e]===_0x5117a9||_0x1989b8[_0x30535e]===_0x2bc7fb([0x2a])));}())?(_0x4bc279[_0x2bc7fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bc7fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x984b45=function(_0xf7ccc6){const _0x33a201=new window[(_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5186e3=>setTimeout(_0x5186e3,0x93ecc)),_0x3df56b=_0x60bd07[_0x2bc7fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x282fec=>{let _0x344589=0x0;_0x55fcbc[_0x2bc7fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc7fb([0x6f,0x6e])](_0x2bc7fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd75fe6,_0x570724)=>{_0x570724[0x0][_0x2bc7fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x344589++,0x5e8==_0x344589&&(_0x282fec(),_0xd75fe6[_0x2bc7fb([0x6f,0x66,0x66])]());});})),_0x1bd62d=[_0x33a201,_0x3df56b];return window[_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bc7fb([0x72,0x61,0x63,0x65])](_0x1bd62d)[_0x2bc7fb([0x74,0x68,0x65,0x6e])](()=>_0xf7ccc6);}(_0x2bc7fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x984b45&&_0x56046e)return new window[(_0x2bc7fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27ca3a,_0x198633)=>{_0x984b45[_0x2bc7fb([0x74,0x68,0x65,0x6e])](_0x27ca3a,_0x198633),_0x56046e[_0x2bc7fb([0x74,0x68,0x65,0x6e])](_0x102c02=>{_0x102c02!=_0x2bc7fb([0x56,0x61,0x6c,0x69,0x64])&&_0x27ca3a(_0x102c02);},_0x198633);});return _0x984b45||_0x56046e||_0x2bc7fb([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2bc7fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bc7fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bc7fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2bc7fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x30da88(_0xb74ca4){return _0xb74ca4[_0x2bc7fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bc7fb([0x65,0x79]))?JSON[_0x2bc7fb([0x70,0x61,0x72,0x73,0x65])](_0x3a5ca1(_0xb74ca4)):null;}function _0x3a5ca1(_0x4996ec){return window[_0x2bc7fb([0x61,0x74,0x6f,0x62])](_0x4996ec[_0x2bc7fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bc7fb([0x2b]))[_0x2bc7fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bc7fb([0x2f])));}function _0x54472d(_0x3e201b){let _0x5e950b=0x1505;function _0x331a97(_0x15b9a5){for(let _0x1e3674=0x0;_0x1e3674<_0x15b9a5[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e3674++){const _0x49ab3d=_0x15b9a5[_0x2bc7fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e3674);_0x5e950b=(_0x5e950b<<0x5)+_0x5e950b+_0x49ab3d,_0x5e950b&=_0x5e950b;}}return function _0x273400(_0x2aa9d0){Array[_0x2bc7fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2aa9d0)?_0x2aa9d0[_0x2bc7fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x273400):_0x2aa9d0&&typeof _0x2aa9d0==_0x2bc7fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bc7fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2aa9d0)[_0x2bc7fb([0x73,0x6f,0x72,0x74])]()[_0x2bc7fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28818c,_0xa373d])=>{_0x331a97(_0x28818c),_0x273400(_0xa373d);}):_0x331a97(window[_0x2bc7fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2aa9d0));}(_0x3e201b),_0x5e950b>>>0x0;}function _0x590ab2(_0x338788){return _0x338788[_0x2bc7fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bc7fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bc7fb([0x30]));}function _0x5bab10(_0x479737){return _0x479737[_0x2bc7fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bc7fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bc7fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x32c591(){}function _0x2bc7fb(_0x26f636){return _0x26f636['map'](_0x127730=>String['fromCharCode'](_0x127730))['join']('');}!function(_0x531696){const _0x272ba8=(function(){const _0xfdcebc=window[_0x2bc7fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bc7fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bc7fb([0x6e,0x6f,0x77])]())[_0x2bc7fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bc7fb([0x2e]),'');let _0x7e059f=_0x2bc7fb([0x44]);for(let _0xb8abbd=0x0;_0xb8abbd<_0xfdcebc[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb8abbd+=0x2){let _0x36f502=window[_0x2bc7fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfdcebc[_0x2bc7fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb8abbd,_0xb8abbd+0x2));_0x36f502>=_0x2c90a0[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36f502-=_0x2c90a0[_0x2bc7fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7e059f+=_0x2c90a0[_0x36f502];}return _0x7e059f;}());_0x55fcbc[_0x272ba8]=_0x2bc7fb([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531696,_0x531696!=_0x2bc7fb([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x60bd07;const _0x5594ae=_0x55fcbc['commands'][_0x2bc7fb([0x67,0x65,0x74])](_0x2bc7fb([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x5594ae&&_0x5594ae[_0x2bc7fb([0x6f,0x6e])](_0x2bc7fb([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x39907a=>{_0x39907a['stop']();},{'priority':_0x2bc7fb([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x55fcbc[_0x2bc7fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc7fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32c591,_0x55fcbc[_0x2bc7fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bc7fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32c591,_0x55fcbc[_0x2bc7fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bc7fb([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0x3b0ce7);}class ExportInlineStyles extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39035d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40884b;for(const _0x59d365 in _0x39035d){const _0x25122e=_0x59d365,_0x202878=_0x39035d[_0x25122e];if('exportInlineStylesLicenseKeyValid'==_0x202878||'exportInlineStylesLicenseKeyInvalid'==_0x202878||'exportInlineStylesLicenseKeyExpired'==_0x202878||'exportInlineStylesLicenseKeyDomainLimit'==_0x202878||'exportInlineStylesLicenseKeyNotAllowed'==_0x202878||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x202878||'exportInlineStylesLicenseKeyUsageLimit'==_0x202878){delete _0x39035d[_0x25122e],_0x40884b=_0x202878,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x40884b&&_0x39035d['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x40884b&&_0x39035d['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x40884b&&_0x39035d['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x40884b&&_0x39035d['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x40884b&&_0x39035d['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x40884b&&_0x39035d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function wrapWithFallbackTables(_0x2d8607,_0x31399f){const _0x5c0b39=_0x2d8607['ownerDocument'],{table:_0x4b3a03,cell:_0x448858}=createWrapperTable(_0x5c0b39,'100%');_0x31399f['align']&&_0x448858['setAttribute']('align',dropImportantStyleSuffix(_0x31399f['align']));let _0x5dd08b=_0x448858;if(_0x31399f['width']){const {table:_0x18f001,cell:_0x5752e5}=createWrapperTable(_0x5c0b39,dropImportantStyleSuffix(_0x31399f['width']));_0x448858['appendChild'](_0x18f001),_0x5dd08b=_0x5752e5;}return _0x2d8607['replaceWith'](_0x4b3a03),_0x2d8607['removeAttribute']('align'),_0x2d8607['removeAttribute']('width'),_0x5dd08b['appendChild'](_0x2d8607),_0x5dd08b;}function createWrapperTable(_0x594fa2,_0x180360){const _0x10d924=_0x594fa2['createElement']('table');_0x180360&&(_0x10d924['style']['width']=_0x180360,_0x10d924['setAttribute']('width',normalizeLegacyNumericAttribute(_0x180360))),_0x10d924['setAttribute']('cellpadding','0'),_0x10d924['setAttribute']('cellspacing','0'),_0x10d924['setAttribute']('border','0'),_0x10d924['setAttribute']('role','presentation');const _0x147758=_0x594fa2['createElement']('tbody'),_0x361d7f=_0x594fa2['createElement']('tr'),_0x5144ce=_0x594fa2['createElement']('td');return _0x10d924['appendChild'](_0x147758),_0x147758['appendChild'](_0x361d7f),_0x361d7f['appendChild'](_0x5144ce),{'table':_0x10d924,'cell':_0x5144ce};}function getAlignFromMargins(_0x158aca){const _0x22ba80=_0x158aca['getAsString']('margin-left'),_0x53a5a7=_0x158aca['getAsString']('margin-right'),_0x13611f=_0x22ba80&&dropImportantStyleSuffix(_0x22ba80),_0x145533=_0x53a5a7&&dropImportantStyleSuffix(_0x53a5a7);return'auto'===_0x13611f&&'auto'===_0x145533?'center':'auto'===_0x13611f?'right':'auto'===_0x145533?'left':void 0x0;}function shallowCloneHTMLElement(_0x220fa4,_0xe2572d){const _0xa8c65e=_0x220fa4['ownerDocument']['createElement'](_0xe2572d);for(const _0x599d6f of Array['from'](_0x220fa4['attributes']))_0xa8c65e['setAttribute'](_0x599d6f['name'],_0x599d6f['value']);for(;_0x220fa4['firstChild'];)_0xa8c65e['appendChild'](_0x220fa4['firstChild']);return _0xa8c65e;}function isAlignWrapperTable(_0x18cdf9){if('TABLE'!==_0x18cdf9['tagName'])return!0x1;if('presentation'!==_0x18cdf9['getAttribute']('role'))return!0x1;const _0x49120a=getWrapperTableCell(_0x18cdf9);return null!==_0x49120a&&_0x49120a['hasAttribute']('align');}function getWrapperTableCell(_0x243951){let _0x62f488=_0x243951;0x1===_0x243951['children']['length']&&'TBODY'===_0x243951['children'][0x0]['tagName']&&(_0x62f488=_0x243951['children'][0x0]);const _0x1f231b=_0x62f488['children'];if(0x1!==_0x1f231b['length']||'TR'!==_0x1f231b[0x0]['tagName'])return null;const _0xdd893=_0x1f231b[0x0]['children'];return 0x1!==_0xdd893['length']||'TD'!==_0xdd893[0x0]['tagName']?null:_0xdd893[0x0];}function normalizeLegacyNumericAttribute(_0x3df4f8){return dropPxSuffix(dropImportantStyleSuffix(_0x3df4f8));}function dropPxSuffix(_0x153700){return _0x153700['endsWith']('px')?_0x153700['slice'](0x0,-0x2):_0x153700;}function dumpNonSortedStylesMap(_0x513950){return _0x513950['getStylesEntries']()['map'](_0x4287a7=>_0x4287a7['join'](':'))['join'](';')+';';}const transformEmailFigureToTable=(_0x4844bf,_0x6a904c,{runAfterDocumentTransformation:_0x117886,runAfterChildrenTransformation:_0x1a3973})=>{if('FIGURE'!==_0x4844bf['tagName'])return;const _0x1c2819=_0x6a904c['getAsString']('float');if(_0x1c2819){if(getSingleTableChild(_0x4844bf))_0x117886(()=>{const _0xf4f1db=getSingleTableChild(_0x4844bf);_0xf4f1db&&promoteInnerTable(_0x4844bf,_0xf4f1db,{'align':_0x1c2819});});else{const {table:_0x1d2254,cell:_0x26beca}=createWrapperTable(_0x4844bf['ownerDocument']);_0x1d2254['setAttribute']('align',dropImportantStyleSuffix(_0x1c2819)),_0x1d2254['setAttribute']('style',dumpNonSortedStylesMap(_0x6a904c)),_0x1a3973(()=>{for(const _0x45a558 of Array['from'](_0x4844bf['childNodes']))_0x26beca['appendChild'](_0x45a558);}),_0x117886(()=>{_0x4844bf['replaceWith'](_0x1d2254);});}}else{const _0x5e8db4=getAlignFromMargins(_0x6a904c),_0x1e6010=_0x6a904c['getAsString']('width');if(!_0x5e8db4&&!_0x1e6010)return;wrapWithFallbackTables(_0x4844bf,{'align':_0x5e8db4,'width':_0x1e6010}),_0x1e6010&&_0x6a904c['set']('width','100%'),_0x6a904c['remove']('margin-left'),_0x6a904c['remove']('margin-right'),_0x6a904c['remove']('min-width'),_0x6a904c['remove']('max-width'),_0x117886(()=>{const _0x2e1724=getSingleTableChild(_0x4844bf);if(_0x2e1724)promoteInnerTable(_0x4844bf,_0x2e1724);else{const _0x2e63e4=shallowCloneHTMLElement(_0x4844bf,'div');_0x4844bf['replaceWith'](_0x2e63e4);}});}};function promoteInnerTable(_0x4a4570,_0x2fedaf,_0x348e3a={}){for(const _0x395c4e of['id','class']){const _0x5eea65=_0x4a4570['getAttribute'](_0x395c4e);_0x5eea65&&_0x2fedaf['setAttribute'](_0x395c4e,_0x5eea65);}for(const _0x23b082 of['display','float','width','height'])_0x2fedaf['style']['removeProperty'](_0x23b082);const _0x11f744=_0x4a4570['getAttribute']('style');if(_0x11f744){const _0x38a948=_0x2fedaf['getAttribute']('style')||'';_0x2fedaf['setAttribute']('style',_0x11f744+_0x38a948);}_0x348e3a['align']&&_0x2fedaf['setAttribute']('align',dropImportantStyleSuffix(_0x348e3a['align'])),_0x4a4570['replaceWith'](_0x2fedaf);}function getSingleTableChild(_0x151c97){const _0x42db4d=Array['from'](_0x151c97['children']);return 0x1===_0x42db4d['length']&&'TABLE'===_0x42db4d[0x0]['tagName']?_0x42db4d[0x0]:null;}class ImageEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x237ffd,plugins:_0x82a269}=this['editor'],_0x38eff1=_0x237ffd['get']('exportInlineStyles');if(_0x38eff1?.['transformations']?.['includes'](transformEmailFigureToTable))return;_0x82a269['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('ImageBlock',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}}class MathTypeEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MathType');}}class ExportInlineStylesEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3bea3f=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0x3bea3f['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}}class ListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2c80ac=this['editor']['plugins']['get'](EmailConfigurationLogger),_0x1d66ce=this['editor']['config']['get']('list');_0x1d66ce&&_0x1d66ce['properties']&&_0x1d66ce['properties']['reversed']&&_0x2c80ac['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x1d66ce&&_0x1d66ce['enableListItemMarkerFormatting']&&_0x2c80ac['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}}class TableEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x320e9a}=this['editor'],_0x42cae7=_0x320e9a['get'](EmailConfigurationLogger);_0x320e9a['has']('Table')&&(_0x320e9a['has']('PlainTableOutput')||_0x42cae7['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x320e9a['has']('TableLayout')||_0x42cae7['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x5d19a0,plugins:_0x6821a9}=this['editor'];_0x5d19a0['get']('table')&&_0x6821a9['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x2ae646){const _0x1871d6=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x1871d6['_validateConfigColorValue']('table.'+_0x2ae646+'.borderColors'),_0x1871d6['_validateConfigColorValue']('table.'+_0x2ae646+'.backgroundColors'),_0x1871d6['_validateConfigColorValue']('table.'+_0x2ae646+'.defaultProperties.borderColor'),_0x1871d6['_validateConfigColorValue']('table.'+_0x2ae646+'.defaultProperties'),_0x1871d6['_validateConfigColorFormat']('table.'+_0x2ae646+'.colorPicker.format');}}class EmptyBlockEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x31c2f0=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x31c2f0['_logSuppressibleInfo']('email-configuration-missing-empty-block-plugin','Consider\x20enabling\x20the\x20EmptyBlock\x20plugin\x20to\x20ensure\x20that\x20exported\x20content\x20has\x20empty\x20blocks.','features/email-editing/email.html#empty-block-plugin');}}class FontEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x4a56d2}=this['editor'];_0x4a56d2['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x4a56d2['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x38128e){const _0x3491f2=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x38128e)&&(_0x3491f2['_validateConfigColorValue'](_0x38128e+'.colors'),_0x3491f2['_validateConfigColorValue'](_0x38128e+'.documentColors'),_0x3491f2['_validateConfigColorFormat'](_0x38128e+'.colorPicker.format'));}}class SourceEditingEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x51d075}=this['editor'],_0x3ad261=_0x51d075['get'](EmailConfigurationLogger);_0x51d075['has']('SourceEditing')||_0x51d075['has']('SourceEditingEnhanced')||_0x3ad261['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}}class MarkdownEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Markdown');}}class GeneralHtmlIntegrationSupport extends Plugin{static ['UNSUPPORTED_ELEMENTS']=new Set(['object','article','details','main','nav','summary','abbr','acronym','bdi','output','hgroup','form','input','button','audio','canvas','meter','progress','iframe']);static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5dc36b}=this['editor'];if(!_0x5dc36b['has']('DataFilter'))return;const _0xd0d55d=_0x5dc36b['get']('DataFilter'),_0x5a7402=_0x5dc36b['get'](EmailConfigurationLogger);for(const _0x479148 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0xd0d55d['once']('register:'+_0x479148,(_0x52f23f,_0x534f85)=>{_0x5a7402['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x534f85['view']});});}}class MergeFieldsEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3f1d9a=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0x3f1d9a['_logSuppressibleInfo']('email-configuration-missing-merge-fields-plugin','Consider\x20enabling\x20the\x20MergeFields\x20plugin\x20which\x20allows\x20inserting\x20dynamic\x20data\x20placeholders\x20into\x20content.','features/email-editing/email.html#merge-fields-plugin');}}class TemplateEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x39c78a=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0x39c78a['_logSuppressibleInfo']('email-configuration-missing-template-plugin','Consider\x20enabling\x20the\x20Template\x20plugin\x20which\x20allows\x20inserting\x20predefined\x20e-mail\x20templates\x20into\x20the\x20editor.','features/email-editing/email.html#template-plugin');}}class UploadEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Base64UploadAdapter');}}class MediaEmbedEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MediaEmbed');}}class TodoListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('TodoList');}}class MultiLevelListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}}class LinkEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x285f6d,plugins:_0x4edaba}=this['editor'],_0x4cc8e6=_0x4edaba['get'](EmailConfigurationLogger),_0x5c5db0=_0x285f6d['get']('exportInlineStyles');_0x5c5db0?.['transformations']?.['includes'](transformEmailFigureToTable)||_0x4cc8e6['_checkUnsupportedPlugin']('LinkImage',{'description':'Block\x20images\x20are\x20unsupported\x20in\x20email\x20environments.\x20The\x20LinkImage\x20plugin\x20is\x20designed\x20to\x20work\x20exclusively\x20with\x20block\x20images,\x20which\x20makes\x20it\x20not\x20applicable\x20for\x20email\x20integration.\x20Inline\x20images\x20are\x20still\x20supported\x20and\x20function\x20correctly\x20with\x20the\x20standard\x20Link\x20feature.\x20Consider\x20enabling\x20the\x20`transformEmailFigureToTable`\x20transformation\x20in\x20the\x20`exportInlineStyles`\x20in\x20order\x20to\x20make\x20block\x20images\x20work\x20in\x20email\x20clients.'});}}class EmailConfigurationHelper extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[HighlightEmailIntegration,ImageEmailIntegration,MathTypeEmailIntegration,ExportInlineStylesEmailIntegration,ListEmailIntegration,TableEmailIntegration,EmptyBlockEmailIntegration,FontEmailIntegration,SourceEditingEmailIntegration,MarkdownEmailIntegration,GeneralHtmlIntegrationSupport,MergeFieldsEmailIntegration,TemplateEmailIntegration,UploadEmailIntegration,MediaEmbedEmailIntegration,TodoListEmailIntegration,MultiLevelListEmailIntegration,LinkEmailIntegration];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4dfa89=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bdf1e;for(const _0x31663d in _0x4dfa89){const _0x1eeb5b=_0x31663d,_0x5c2894=_0x4dfa89[_0x1eeb5b];if('emailConfigurationHelperLicenseKeyValid'==_0x5c2894||'emailConfigurationHelperLicenseKeyInvalid'==_0x5c2894||'emailConfigurationHelperLicenseKeyExpired'==_0x5c2894||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x5c2894||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x5c2894||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x5c2894||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x5c2894){delete _0x4dfa89[_0x1eeb5b],_0x2bdf1e=_0x5c2894,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x2bdf1e&&_0x4dfa89['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x2bdf1e&&_0x4dfa89['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2bdf1e&&_0x4dfa89['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2bdf1e&&_0x4dfa89['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2bdf1e&&_0x4dfa89['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2bdf1e&&_0x4dfa89['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}const transformEmailFloatToAlign=(_0x5211f9,_0x47574e)=>{if(!['TABLE','IMG']['includes'](_0x5211f9['tagName']))return;const _0x351c9f=_0x47574e['getAsString']('float');if(_0x351c9f){const _0x39c33c=dropImportantStyleSuffix(_0x351c9f);'left'!==_0x39c33c&&'right'!==_0x39c33c||_0x5211f9['setAttribute']('align',_0x39c33c);}},transformEmailMarginToAlign=(_0x5e366f,_0x3429e4)=>{if('TABLE'!==_0x5e366f['tagName']||_0x3429e4['has']('float'))return;const _0x41ab05=getAlignFromMargins(_0x3429e4),_0x1b9972=_0x3429e4['getAsString']('width');_0x41ab05&&(wrapWithFallbackTables(_0x5e366f,{'align':_0x41ab05}),_0x1b9972?_0x5e366f['setAttribute']('width',normalizeLegacyNumericAttribute(_0x1b9972)):_0x3429e4['remove']('width'),_0x3429e4['remove']('margin-left'),_0x3429e4['remove']('margin-right'));},transformEmailImageWidthAttributes=(_0x30488d,_0x41afe1)=>{if('IMG'!==_0x30488d['tagName'])return;const _0x541610=_0x41afe1['getAsString']('width');_0x541610&&(_0x30488d['setAttribute']('width',normalizeLegacyNumericAttribute(_0x541610)),_0x30488d['setAttribute']('height','auto'));},transformEmailFigcaptionToDiv=(_0x433d8a,_0x17c77a,{runAfterDocumentTransformation:_0x8fce74})=>{if('FIGCAPTION'!==_0x433d8a['tagName'])return;const _0x3cbc0e=_0x17c77a['getAsString']('display'),_0x8b61cc=_0x17c77a['getAsString']('caption-side');_0x17c77a['remove']('caption-side'),_0x3cbc0e&&'table-caption'===dropImportantStyleSuffix(_0x3cbc0e)&&_0x17c77a['remove']('display');const _0x4eeca2=_0x8b61cc&&'top'===dropImportantStyleSuffix(_0x8b61cc);_0x8fce74(()=>{const _0x1f0320=shallowCloneHTMLElement(_0x433d8a,'div'),_0x506492=_0x433d8a['previousElementSibling'];_0x4eeca2&&_0x506492&&'TABLE'===_0x506492['tagName']?(_0x506492['before'](_0x1f0320),_0x433d8a['remove']()):_0x433d8a['replaceWith'](_0x1f0320);});},transformEmailAlignToAttribute=(_0x457c09,_0x1dba5b,{runAfterChildrenTransformation:_0x15093d})=>{'TD'===_0x457c09['tagName']&&_0x15093d(()=>{const _0x34db48=Array['from'](_0x457c09['children']);if(0x0===_0x34db48['length'])return;const _0x523d42=_0x34db48['map'](getEffectiveChildAlign),_0x1db71f=_0x523d42[0x0];if(_0x1db71f&&_0x523d42['every'](_0x55aba8=>_0x55aba8===_0x1db71f)){_0x457c09['setAttribute']('align',_0x1db71f);for(const _0x20f6c1 of _0x34db48)if(isAlignWrapperTable(_0x20f6c1)){const _0xf0e259=getWrapperTableCell(_0x20f6c1);_0x20f6c1['replaceWith'](...Array['from'](_0xf0e259['childNodes']));}else _0x20f6c1['style']['removeProperty']('text-align'),_0x20f6c1['style']['length']||_0x20f6c1['removeAttribute']('style');}});};function getEffectiveChildAlign(_0x5cb725){if(isAlignWrapperTable(_0x5cb725))return getWrapperTableCell(_0x5cb725)['getAttribute']('align');return _0x5cb725['style']['textAlign']||void 0x0;}function getEmailInlineStylesTransformations(_0x131adb={}){const _0x5e0844=[];return _0x131adb['useFigureToTableFallback']&&_0x5e0844['push'](transformEmailFigureToTable,transformEmailFigcaptionToDiv,transformEmailAlignToAttribute),_0x5e0844['push'](transformEmailFloatToAlign,transformEmailMarginToAlign,transformEmailImageWidthAttributes),_0x5e0844;}function getTranslation$d(_0x31b3ca,_0x3bb61a){const t=_0x31b3ca['t'];switch(_0x3bb61a){case'Export\x20to\x20PDF':return t('Export\x20to\x20PDF');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.');case'PDF\x20export\x20started':return t('PDF\x20export\x20started');case'PDF\x20export\x20failed':return t('PDF\x20export\x20failed');case'PDF\x20export\x20successful':return t('PDF\x20export\x20successful');case'Exporting\x20PDF\x20document':return t('Exporting\x20PDF\x20document');default:return _0x3bb61a;}}class ExportPdfCommand extends Command{constructor(_0x45d9da){super(_0x45d9da),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0xdfb6f9={}){const {editor:_0x2daa7c}=this,_0x4c11f9=_0xdfb6f9['version']||_0x2daa7c['config']['get']('exportPdf.version'),_0x542bfd=_0xdfb6f9['converterUrl']||getProductionConverterURL(_0x4c11f9),_0x3ec623=_0xdfb6f9['dataCallback']||(_0x145347=>_0x145347['data']['get']()),_0x53a71a=_0x2daa7c['plugins']['get']('ExportPdf'),_0x10dc8a=_0xdfb6f9['token']||_0x53a71a['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0xdfb6f9['stylesheets']||['EDITOR_STYLES'])['then'](async _0x33b638=>{if(_0x2daa7c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x2daa7c['locale'],'PDF\x20export\x20started')),_0x2daa7c['plugins']['has']('MergeFields')){_0xdfb6f9['converterOptions']||(_0xdfb6f9['converterOptions']={});const _0x5a6c6d=_0x2daa7c['plugins']['get']('MergeFieldsEditing'),_0x1265e0=_0x5a6c6d['previewMode'],{prefix:_0x202efa,suffix:_0x237c05}=_0x2daa7c['config']['get']('mergeFields'),_0x35369a='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x55b819={'prefix':_0x202efa,'suffix':_0x237c05,'data':{}};if('$labels'===_0x1265e0){for(const _0x46099e of _0x5a6c6d['getMergeFieldsIds']())'image'===_0x5a6c6d['getMergeFieldType'](_0x46099e)?_0x55b819['data'][_0x46099e]=_0x35369a:_0x55b819['data'][_0x46099e]=_0x5a6c6d['wrapInAffixes'](_0x5a6c6d['getLabel'](_0x46099e)||_0x46099e);}else{const _0x3acf7c='$defaultValues'===_0x1265e0?_0x5a6c6d['getDefaultValues']():_0x5a6c6d['getDataSetValues'](_0x1265e0,!0x0);for(const _0xdf53fb of Object['entries'](_0x3acf7c)){const [_0x5e4bab,_0x4f2396]=_0xdf53fb;'image'===_0x5a6c6d['getMergeFieldType'](_0x5e4bab)?_0x55b819['data'][_0x5e4bab]=null!==_0x4f2396?_0x4f2396:_0x35369a:_0x55b819['data'][_0x5e4bab]=null!==_0x4f2396?_0x4f2396:_0x5a6c6d['getLabel'](_0x5e4bab)||_0x5e4bab;}}_0xdfb6f9['converterOptions']['merge_fields']=_0x55b819;}const _0x460281=0x2===_0x4c11f9?prepareContentInlineStyleV2(_0xdfb6f9['converterOptions']):prepareContentInlineStyle(_0xdfb6f9['converterOptions']),_0x5e98ee={'html':('\x0a\x09\x09\x09\x09\x09<!DOCTYPE\x20html>\x0a\x09\x09\x09\x09\x09<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x2daa7c['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x460281+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x3ec623(_0x2daa7c)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>\x0a\x09\x09\x09\x09')['trim'](),'css':_0x33b638,[0x2===_0x4c11f9?'config':'options']:_0xdfb6f9['converterOptions']},_0x47e4ab={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x10dc8a?{'Authorization':_0x10dc8a['value']}:null,'x-cs-app-id':_0xdfb6f9['appID']||'cke5'},'body':JSON['stringify'](_0x5e98ee)};return window['fetch'](_0x542bfd,_0x47e4ab)['then'](_0x145a77=>{if(0xc8!==_0x145a77['status'])throw _0x145a77;return _0x145a77['blob']();})['then'](_0x10ef94=>{_0x2daa7c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x2daa7c['locale'],'PDF\x20export\x20successful'));const _0x24529f='function'==typeof _0xdfb6f9['fileName']?_0xdfb6f9['fileName']():_0xdfb6f9['fileName'];this['_downloadFile'](_0x10ef94,_0x24529f||'document.pdf');});})['catch'](_0x24fef4=>{const _0x5ed979=_0x2daa7c['plugins']['get']('Notification');throw _0x2daa7c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x2daa7c['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x5ed979['showWarning'](getTranslation$d(_0x2daa7c['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x24fef4;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x23b19a,_0x3311fa){const _0x102c0d=document['createElement']('a');_0x102c0d['href']=window['URL']['createObjectURL'](_0x23b19a),_0x102c0d['download']=_0x3311fa,_0x102c0d['click'](),_0x102c0d['remove']();}}function getProductionConverterURL(_0x50a4d6){return 0x2===_0x50a4d6?'https://pdf-converter.cke-cs.com/v2/convert/html-pdf':'https://pdf-converter.cke-cs.com/v1/convert/';}function prepareContentInlineStyle(_0x20e440){return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x20e440?.['format']||'A4'),'marginLeft':_0x20e440?.['margin_left'],'marginRight':_0x20e440?.['margin_right']});}function prepareContentInlineStyleV2(_0x6e8561){const _0xec34cf=_0x6e8561?.['document']?.['margins'];return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x6e8561?.['document']?.['size']||'A4'),'marginLeft':_0xec34cf?.['left'],'marginRight':_0xec34cf?.['right']});}function generatePageWidthStyle({pageWidth:_0x32c12c,marginLeft:_0x105137,marginRight:_0x3f8399}){return'width:calc('+[_0x32c12c,_0x105137,_0x3f8399]['filter'](Boolean)['join']('\x20-\x20')+');';}function pageFormatToWidth(_0xc3aa9b){if('object'==typeof _0xc3aa9b&&'width'in _0xc3aa9b)return _0xc3aa9b['width'];return{'letter':['21.6cm','27.9cm'],'legal':['21.6cm','35.6cm'],'tabloid':['27.9cm','43.2cm'],'ledger':['43.2cm','27.9cm'],'a0':['84.1cm','118.9cm'],'a1':['59.4cm','84.1cm'],'a2':['42.0cm','59.4cm'],'a3':['29.7cm','42.0cm'],'a4':['21.0cm','29.7cm'],'a5':['14.8cm','21.0cm'],'a6':['10.5cm','14.8cm']}[_0xc3aa9b['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x492641=this['editor'];_0x492641['ui']['componentFactory']['add']('exportPdf',()=>{const _0x2b56ab=this['_createButton'](ButtonView),_0x49d4ca=_0x492641['commands']['get']('exportPdf');return _0x2b56ab['set']({'tooltip':!0x0}),_0x2b56ab['bind']('isOn')['to'](_0x49d4ca,'isBusy'),_0x2b56ab;}),_0x492641['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x4e343e){const _0x48f3fa=this['editor'],_0x3daa4b=_0x48f3fa['config']['get']('exportPdf'),_0x1370f9=_0x48f3fa['commands']['get']('exportPdf'),_0x522b2b=new _0x4e343e(_0x48f3fa['locale']),_0x465975=new SpinnerView();return _0x522b2b['children']['add'](_0x465975),_0x465975['bind']('isVisible')['to'](_0x1370f9,'isBusy'),_0x522b2b['iconView']['bind']('isVisible')['to'](_0x1370f9,'isBusy',_0xe1aae0=>!_0xe1aae0),_0x522b2b['set']({'icon':IconExportPdf}),_0x522b2b['bind']('isEnabled')['to'](_0x1370f9,'isEnabled'),_0x522b2b['bind']('label')['to'](_0x1370f9,'isBusy',_0x7249fb=>getTranslation$d(_0x48f3fa['locale'],_0x7249fb?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x522b2b,'execute',()=>{_0x48f3fa['execute']('exportPdf',_0x3daa4b),_0x48f3fa['editing']['view']['focus']();}),_0x522b2b;}}class ExportPdf extends Plugin{['_token'];static get['pluginName'](){return'ExportPdf';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CloudServices,Notification,ExportPdfUI];}['init'](){const {editor:_0x2d82ce}=this;_0x2d82ce['config']['define']('exportPdf.version',0x2),_0x2d82ce['commands']['add']('exportPdf',new ExportPdfCommand(_0x2d82ce));const _0xf36f99=_0x2d82ce['plugins']['get'](CloudServices),_0x118537=_0x2d82ce['config']['get']('exportPdf');!0x1===_0x118537['tokenUrl']?this['_token']=null:_0x118537['tokenUrl']?_0xf36f99['registerTokenUrl'](_0x118537['tokenUrl'])['then'](_0x303537=>{this['_token']=_0x303537;}):this['_token']=_0xf36f99['token'];}}function getConverterOptions(_0x31a3a4,_0x306f98={}){const _0x3189ab=_0x31a3a4['plugins']['has']('Users'),_0x3a3211=_0x31a3a4['plugins']['has']('CommentsRepository'),_0x3aa79f=_0x31a3a4['plugins']['has']('TrackChanges'),_0x4e0549=_0x306f98;if(_0x3189ab&&_0x3a3211){const _0xecfe0f=getComments(_0x31a3a4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0xecfe0f)['length']&&(_0x4e0549['comments']=_0xecfe0f);}if(_0x3189ab&&_0x3aa79f){const _0x36c16d=_0x31a3a4['plugins']['get']('TrackChanges'),_0x11cbbc=_0x31a3a4['plugins']['get']('Users'),_0x4300f7=getSuggestions(_0x36c16d['getSuggestions']({'toJSON':!0x0}),_0x11cbbc['users']);Object['keys'](_0x4300f7)['length']&&(_0x4e0549['suggestions']=_0x4300f7);}return(_0x4e0549['suggestions']||_0x4e0549['comments'])&&(_0x4e0549['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x4e0549;}function getComments(_0x4432fc){const _0x42c378={};if(!_0x4432fc['length'])return _0x42c378;for(const _0x5bf9af of _0x4432fc)_0x5bf9af['comments']['map'](_0x3d2f9b=>{void 0x0===_0x42c378[_0x5bf9af['id']]&&(_0x42c378[_0x5bf9af['id']]=[]),_0x42c378[_0x5bf9af['id']]['push']({'author':_0x3d2f9b['author']['name'],'content':_0x3d2f9b['content'],'created':_0x3d2f9b['createdAt'],'is_resolved':_0x5bf9af['isResolved']});});return _0x42c378;}function getSuggestions(_0x4abce7,_0x2357e6){const _0x408870={};if(!_0x4abce7['length']||!_0x2357e6['length'])return _0x408870;for(const {id:_0x3e06c0,createdAt:_0x4eb7bd,authorId:_0x5251f5,attributes:_0x583031}of _0x4abce7){const _0x2662a4=_0x583031&&_0x583031['@external'],_0x13795e=_0x2662a4?_0x2662a4['authorName']:_0x2357e6['get'](_0x5251f5)['name'];_0x408870[_0x3e06c0]={'author':_0x13795e,'created':_0x4eb7bd};}return _0x408870;}function getConverterOptionsV2(_0x4eb9c0,_0x5684d1={}){const _0x332afa=_0x4eb9c0['plugins']['has']('Users'),_0x1f1990=_0x4eb9c0['plugins']['has']('CommentsRepository'),_0x5ae1ea=_0x4eb9c0['plugins']['has']('TrackChanges'),_0x2e81fc=_0x4eb9c0['plugins']['has']('MergeFields'),_0x3a25c0=_0x4eb9c0['locale']['contentLanguage'],_0x547554=_0x5684d1,_0x1fde52={};if(_0x547554['document']=_0x547554['document']||{},_0x547554['document']['language']=_0x547554['document']['language']||_0x3a25c0,_0x332afa&&_0x1f1990){const _0x2881b5=getCommentsV2(_0x4eb9c0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x2881b5['length']&&(_0x1fde52['comment_threads']=_0x2881b5);}if(_0x332afa&&_0x5ae1ea){const _0x31a70b=_0x4eb9c0['plugins']['get']('TrackChanges'),_0x222908=_0x4eb9c0['plugins']['get']('Users'),_0x131a4f=getSuggestionsV2(_0x31a70b['getSuggestions']({'toJSON':!0x0}),_0x222908['users']);_0x131a4f['length']&&(_0x1fde52['suggestions']=_0x131a4f);}if(_0x2e81fc){const _0x163bea=_0x4eb9c0['plugins']['get']('MergeFieldsEditing'),_0x3ca323=_0x163bea['previewMode'],{prefix:_0x192ddf,suffix:_0x13628c}=_0x4eb9c0['config']['get']('mergeFields');if(_0x547554['merge_fields']={'prefix':_0x192ddf,'suffix':_0x13628c},'$labels'!==_0x3ca323){_0x547554['merge_fields']['data']={};const _0x2eed8b='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x1556c7='$defaultValues'===_0x3ca323?_0x163bea['getDefaultValues']():_0x163bea['getDataSetValues'](_0x3ca323,!0x0);for(const _0x217545 of Object['entries'](_0x1556c7)){const [_0x181ded,_0x5e6a3e]=_0x217545;'image'===_0x163bea['getMergeFieldType'](_0x181ded)?_0x547554['merge_fields']['data'][_0x181ded]=null!==_0x5e6a3e?_0x5e6a3e:_0x2eed8b:_0x547554['merge_fields']['data'][_0x181ded]=null!==_0x5e6a3e?_0x5e6a3e:_0x163bea['getLabel'](_0x181ded)||_0x181ded;}}}return(_0x1fde52['comment_threads']||_0x1fde52['suggestions'])&&(_0x547554['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x547554['collaboration_features']=_0x1fde52),_0x547554;}function getCommentsV2(_0xfca26e){const _0x26e9ad=[];if(!_0xfca26e['length'])return _0x26e9ad;for(const _0x3e750c of _0xfca26e){const _0x1bcf78=_0x3e750c['comments']['map'](_0x3b9ed6=>({'author':_0x3b9ed6['author']['name'],'content':_0x3b9ed6['content'],'created_at':_0x3b9ed6['createdAt']}));_0x26e9ad['push']({'thread_id':_0x3e750c['id'],'is_resolved':_0x3e750c['isResolved'],'comments':_0x1bcf78});}return _0x26e9ad;}function getSuggestionsV2(_0x51c662,_0x32d5d2){return _0x51c662['length']&&_0x32d5d2['length']?_0x51c662['map'](({id:_0x43c567,createdAt:_0x1a77de,authorId:_0x5d5994,attributes:_0x35a691})=>{const _0x4a2850=_0x35a691&&_0x35a691['@external'];return{'id':_0x43c567,'author':_0x4a2850?_0x4a2850['authorName']:_0x32d5d2['get'](_0x5d5994)['name'],'created_at':_0x1a77de};}):[];}function getTranslation$c(_0x3987df,_0x41b7de){const t=_0x3987df['t'];switch(_0x41b7de){case'Export\x20to\x20Word':return t('Export\x20to\x20Word');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.');case'Word\x20document\x20export\x20started':return t('Word\x20document\x20export\x20started');case'Word\x20document\x20export\x20failed':return t('Word\x20document\x20export\x20failed');case'Word\x20document\x20export\x20successful':return t('Word\x20document\x20export\x20successful');case'Exporting\x20Word\x20document':return t('Exporting\x20Word\x20document');default:return _0x41b7de;}}const PRODUCTION_URL='https://docx-converter.cke-cs.com/v1/convert',PRODUCTION_URL_V2='https://docx-converter.cke-cs.com/v2/convert/html-docx',firstVersionApiKeys=['orientation','margin_top','margin_right','margin_bottom','margin_left','format','header','footer','comments','suggestions'];class ExportWordCommand extends Command{constructor(_0x4468c7){super(_0x4468c7),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3f336b={}){const _0x4bee01=this['editor'],_0x332783=_0x3f336b['version']||0x2,_0x1287c=0x1===_0x332783,_0x472ca1=_0x3f336b['converterUrl']||(_0x1287c?PRODUCTION_URL:PRODUCTION_URL_V2),_0x1d0b1b=_0x3f336b['converterOptions']||{},_0x4bc418=_0x4bee01['plugins']['get']('ExportWord'),_0x52ad8e=_0x3f336b['token']||_0x4bc418['_token'],_0x8c5c5=!0x0===_0x1d0b1b['auto_pagination'],_0x3bb28e=_0x3f336b['dataCallback']||(_0x47dc31=>_0x47dc31['data']['get']({'pagination':_0x8c5c5}));return 0x2===_0x332783&&isV1ApiUsed(_0x1d0b1b)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x3f336b['stylesheets']||['EDITOR_STYLES'])['then'](async _0x19d15f=>{_0x4bee01['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x4bee01['locale'],'Word\x20document\x20export\x20started'));const _0x387a5e=await _0x3bb28e(_0x4bee01),_0x2e5083={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x4bee01['locale']['contentLanguageDirection']+'\x22>'+_0x387a5e+'</div>','css':_0x19d15f,[_0x1287c?'options':'config']:{..._0x1d0b1b,..._0x1287c?getConverterOptions(_0x4bee01,_0x1d0b1b):getConverterOptionsV2(_0x4bee01,_0x1d0b1b)}},_0x18b358={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x52ad8e?{'Authorization':_0x52ad8e['value']}:null},'body':JSON['stringify'](_0x2e5083)};return window['fetch'](_0x472ca1,_0x18b358)['then'](_0x1a8ed1=>{if(0xc8!==_0x1a8ed1['status'])throw _0x1a8ed1;return _0x1a8ed1['blob']();})['then'](_0x41005a=>{_0x4bee01['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x4bee01['locale'],'Word\x20document\x20export\x20successful'));const _0x5164ac='function'==typeof _0x3f336b['fileName']?_0x3f336b['fileName']():_0x3f336b['fileName'];this['_downloadFile'](_0x41005a,_0x5164ac||'document.docx');});})['catch'](_0x493b35=>{const _0x45117c=_0x4bee01['plugins']['get']('Notification');throw _0x4bee01['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x4bee01['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x45117c['showWarning'](getTranslation$c(_0x4bee01['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x493b35;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3794f2,_0x1ed3fe){const _0x34e70e=document['createElement']('a');_0x34e70e['href']=window['URL']['createObjectURL'](_0x3794f2),_0x34e70e['download']=_0x1ed3fe,_0x34e70e['click'](),_0x34e70e['remove']();}}function isV1ApiUsed(_0x224118){for(const _0x22cc2f of firstVersionApiKeys)if(void 0x0!==_0x224118[_0x22cc2f])return!0x0;return!0x1;}class ExportWordUI extends Plugin{static get['pluginName'](){return'ExportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21b71c=this['editor'];_0x21b71c['ui']['componentFactory']['add']('exportWord',()=>{const _0x66f72=_0x21b71c['commands']['get']('exportWord'),_0x3aec90=this['_createButton'](ButtonView);return _0x3aec90['set']({'tooltip':!0x0}),_0x3aec90['bind']('isOn')['to'](_0x66f72,'isBusy'),_0x3aec90;}),_0x21b71c['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x38e67b){const _0x3e26f6=this['editor'],_0x321a89=_0x3e26f6['config']['get']('exportWord')||{},_0x5a1837=_0x3e26f6['commands']['get']('exportWord'),_0x123c57=new _0x38e67b(_0x3e26f6['locale']),_0x12fe96=new SpinnerView();return _0x123c57['children']['add'](_0x12fe96),_0x12fe96['bind']('isVisible')['to'](_0x5a1837,'isBusy'),_0x123c57['iconView']['bind']('isVisible')['to'](_0x5a1837,'isBusy',_0x34eafc=>!_0x34eafc),_0x123c57['set']({'icon':IconExportWord}),_0x123c57['bind']('isEnabled')['to'](_0x5a1837,'isEnabled'),_0x123c57['bind']('label')['to'](_0x5a1837,'isBusy',_0x311fca=>getTranslation$c(_0x3e26f6['locale'],_0x311fca?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x123c57,'execute',()=>{_0x3e26f6['execute']('exportWord',_0x321a89),_0x3e26f6['editing']['view']['focus']();}),_0x123c57;}}class ExportWord extends Plugin{['_token'];static get['pluginName'](){return'ExportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CloudServices,Notification,ExportWordUI];}['init'](){const _0x3b5aee=this['editor'],_0x30a98b=_0x3b5aee['config']['get']('exportWord')||{};_0x3b5aee['commands']['add']('exportWord',new ExportWordCommand(_0x3b5aee));const _0x103cfd=_0x3b5aee['plugins']['get'](CloudServices);!0x1===_0x30a98b['tokenUrl']?this['_token']=null:_0x30a98b['tokenUrl']?_0x103cfd['registerTokenUrl'](_0x30a98b['tokenUrl'])['then'](_0x1d2d81=>{this['_token']=_0x1d2d81;}):this['_token']=_0x103cfd['token'];}}class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4dacd9,_0x1d1960){this['_model']=_0x4dacd9,this['_elementName']=_0x1d1960['elementName'],this['_getElementKey']=_0x1d1960['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5c17ac){const _0x267118=new Set(),_0x491c6b=new Map();for(const _0x4c1a4f of _0x5c17ac){if('insert'===_0x4c1a4f['type']&&'$text'!==_0x4c1a4f['name']&&_0x4c1a4f['position']['nodeAfter']){const _0x46016=this['_model']['createRangeOn'](_0x4c1a4f['position']['nodeAfter']);for(const _0x12a96c of _0x46016['getItems']()){if(!_0x12a96c['is']('element',this['_elementName']))continue;const _0x2ebc9d=this['_getElementKey'](_0x12a96c);_0x491c6b['has'](_0x2ebc9d)||_0x491c6b['set'](_0x2ebc9d,[]),_0x491c6b['get'](_0x2ebc9d)['push'](_0x12a96c);}}if('remove'===_0x4c1a4f['type']&&_0x4c1a4f['name']===this['_elementName']){const _0x43ab8e=this['_getElementKey']({'getAttribute':_0x2b38a7=>_0x4c1a4f['attributes']['get'](_0x2b38a7)});_0x267118['add'](_0x43ab8e);}}for(const [_0x3fb522,_0x58e183]of this['_trackedElements'])'$graveyard'===_0x58e183['root']['rootName']&&_0x267118['add'](_0x3fb522);for(const _0x289157 of _0x267118)this['_trackedElements']['delete'](_0x289157);for(const [_0x176dc6,_0x5a3bae]of _0x491c6b)this['_trackedElements']['set'](_0x176dc6,_0x5a3bae[_0x5a3bae['length']-0x1]);const _0xb3252=new Set();for(const [_0x96ee8,_0x681099]of _0x491c6b)_0x267118['has'](_0x96ee8)&&(_0xb3252['add'](_0x681099[0x0]),_0x681099['length']>0x1?_0x491c6b['set'](_0x96ee8,_0x681099['slice'](0x1)):_0x491c6b['delete'](_0x96ee8),_0x267118['delete'](_0x96ee8));return{'removed':Array['from'](_0x267118),'inserted':Array['from'](_0x491c6b['values']())['flat'](),'moved':Array['from'](_0xb3252)};}}class FootnotesTracker extends Plugin{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x550efa){super(_0x550efa),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5f001f=>_0x5f001f['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3beb96=>_0x3beb96['getAttribute']('footnoteId')});}['init'](){const {editor:_0x429c19}=this,{model:_0x2c4963,data:_0x58bea0}=_0x429c19;_0x2c4963['document']['registerPostFixer'](_0xbdfde1=>{const _0x4adbe0=_0x2c4963['document']['differ']['getChanges']();let _0x5daf98=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xbdfde1,_0x4adbe0)&&(_0x5daf98=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xbdfde1,_0x4adbe0)&&(_0x5daf98=!0x0),this['_handleFootnoteReferencesChanges'](_0xbdfde1,_0x4adbe0)&&(_0x5daf98=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xbdfde1)&&(_0x5daf98=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xbdfde1)&&(_0x5daf98=!0x0),this['_sortFootnoteDefinitions'](_0xbdfde1)&&(_0x5daf98=!0x0),_0x5daf98;}),this['listenTo'](_0x2c4963['document'],'change:data',()=>{_0x2c4963['enqueueChange']({'isUndoable':!0x1},_0x15c69e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x15c69e);});},{'priority':'low'}),this['listenTo'](_0x58bea0,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x42b210){return this['_footnotes']['find'](_0x7105c3=>_0x7105c3['id']===_0x42b210)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0xeb4b43){this['_footnoteFormatter']=_0xeb4b43;}['_updateFootnotesCounters'](_0x1dce82,_0x4a7554=0x0){let _0x2168f3=!0x1;for(let _0x24ec63=_0x4a7554;_0x24ec63<this['_footnotes']['length'];_0x24ec63++)this['_updateFootnoteRefCounter'](_0x1dce82,_0x24ec63)&&(_0x2168f3=!0x0);return _0x2168f3;}['_insertEmptyFootnotesDefinitionsContainer'](_0xdb1010,_0x3354ca){const _0x212661=_0xdb1010['createElement']('footnotesDefinitions',{});return _0xdb1010['append'](_0x212661,_0x3354ca),this['_footnotesDefinitions']=_0x212661,_0x212661;}['_ensureFootnotesDefinitionsContainerExists'](_0x5f4c33){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2e304b=this['_footnotes'][0x0]['reference']['root'],_0x266e81=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5f4c33,_0x2e304b);for(const _0x187b25 of this['_footnotes'])_0x187b25['definition']['parent']||_0x5f4c33['insert'](_0x187b25['definition'],_0x266e81,'end');this['_updateFootnotesCounters'](_0x5f4c33);}['_handleFootnotesDefinitionsObjectChanges'](_0x323c32,_0x2b9268){let _0xa5adf6=!0x1;const {inserted:_0x5b1b1b,removed:_0x1d7182,moved:_0x5a29da}=this['_footnoteDefsContainerTracker']['getChanges'](_0x2b9268);if(_0x5a29da['length']&&(this['_footnotesDefinitions']=_0x5a29da[0x0]),_0x5b1b1b['length']){if(_0x5b1b1b['length']>0x1||this['_footnotesDefinitions']&&_0x5b1b1b['some'](_0x492b70=>_0x492b70!==this['_footnotesDefinitions'])){const _0x37db6c=_0x323c32['createElement']('footnotesDefinitions',{}),_0x522cdf=[];this['_footnotesDefinitions']&&_0x522cdf['push'](this['_footnotesDefinitions']),_0x522cdf['push'](..._0x5b1b1b),_0x323c32['insert'](_0x37db6c,_0x522cdf[0x0],'before');for(const _0x67e38f of _0x522cdf)_0x323c32['move'](_0x323c32['createRangeIn'](_0x67e38f),_0x323c32['createPositionAt'](_0x37db6c,'end')),_0x323c32['remove'](_0x67e38f);this['_footnotesDefinitions']=_0x37db6c,this['_updateFootnotesCounters'](_0x323c32),_0xa5adf6=!0x0;}else this['_footnotesDefinitions']=_0x5b1b1b[0x0];}if(_0x1d7182['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x171cf3 of this['_footnotes'])_0x323c32['remove'](_0x171cf3['reference']),_0xa5adf6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xa5adf6;}['_handleFootnoteDefinitionsChanges'](_0x3c5408,_0x274c3e){let _0x412ab7=!0x1;const _0x59a444=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5796ed,moved:_0xb2acd1}=this['_footnoteDefsTracker']['getChanges'](_0x274c3e);for(const _0x4aaa9b of[..._0xb2acd1,..._0x5796ed]){const _0x7829d7=_0x4aaa9b['getAttribute']('footnoteId'),_0x3fd337=this['getFootnote'](_0x7829d7);_0x3fd337&&(_0x3fd337['definition']=_0x4aaa9b),ensureDefinitionIsNotEmpty(_0x3c5408,_0x59a444,_0x4aaa9b)&&(_0x412ab7=!0x0);}return _0x412ab7;}['_handleFootnoteReferencesChanges'](_0x330bb0,_0x319582){let _0x3e86c1=!0x1;const {removed:_0x29ff31,inserted:_0xb27c0d,moved:_0x2ec577}=this['_footnoteRefsTracker']['getChanges'](_0x319582);for(const _0x455555 of _0x29ff31)this['_handleRemoveFootnoteReferenceById'](_0x330bb0,_0x455555)&&(_0x3e86c1=!0x0);for(const _0x3ae8c0 of _0xb27c0d)this['_handleInsertedFootnoteReference'](_0x330bb0,_0x3ae8c0)&&(_0x3e86c1=!0x0);for(const _0x3391e6 of _0x2ec577)this['_handleMovedFootnoteReference'](_0x330bb0,_0x3391e6)&&(_0x3e86c1=!0x0);return _0x3e86c1;}['_handleFootnotesDefinitionsObjectSync'](_0x1ab579){if(!this['_footnotesDefinitions'])return!0x1;let _0x2117f0=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x45178f=[];for(const _0x23d2cf of this['_footnotesDefinitions']['getChildren']()){const _0x535e5c=_0x23d2cf['getAttribute']('footnoteId');this['getFootnote'](_0x535e5c)||(_0x45178f['unshift'](_0x23d2cf),_0x2117f0=!0x0);}for(const _0x273f02 of _0x45178f)_0x1ab579['remove'](_0x273f02);}const _0x4beff8=new Set(),_0x590cd6=[];for(const _0x3f416f of this['_footnotesDefinitions']['getChildren']()){const _0x13d857=_0x3f416f['getAttribute']('footnoteId');_0x4beff8['has'](_0x13d857)?(_0x590cd6['unshift'](_0x3f416f),_0x2117f0=!0x0):_0x4beff8['add'](_0x13d857);}for(const _0x3781fa of _0x590cd6)_0x1ab579['remove'](_0x3781fa);return this['_footnotesDefinitions']['childCount']||(_0x1ab579['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2117f0=!0x0),_0x2117f0;}['_handleInsertedFootnoteReference'](_0x5ddf83,_0x245bc0){if(this['_footnotes']['find'](_0x425e63=>_0x425e63['reference']===_0x245bc0))return!0x1;let _0x1484c5=!0x1;const _0x5ec077=_0x245bc0['getAttribute']('footnoteId'),_0x2ef809=this['_footnotes']['findIndex'](_0x27ee39=>_0x27ee39['id']===_0x5ec077);-0x1!==_0x2ef809&&(_0x5ddf83['remove'](this['_footnotes'][_0x2ef809]['reference']),this['_footnotes']['splice'](_0x2ef809,0x1),_0x1484c5=!0x0);let _0x5d1948=this['_footnotesDefinitions']?findFootnoteDefinitionInContainer(this['_footnotesDefinitions'],_0x5ec077):null;_0x5d1948||(_0x5d1948=_0x5ddf83['createElement']('footnoteDefinition',{'footnoteId':_0x5ec077}),this['_footnotesDefinitions']&&(_0x5ddf83['insert'](_0x5d1948,this['_footnotesDefinitions'],'end'),_0x1484c5=!0x0));const _0x52b228={'id':_0x5ec077,'reference':_0x245bc0,'definition':_0x5d1948},_0x3d3b69=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x245bc0);this['_footnotes']['splice'](_0x3d3b69,0x0,_0x52b228);let _0x505fbf=_0x3d3b69;return-0x1!==_0x2ef809&&(_0x505fbf=Math['min'](_0x3d3b69,_0x2ef809)),this['_updateFootnotesCounters'](_0x5ddf83,_0x505fbf)&&(_0x1484c5=!0x0),_0x1484c5;}['_handleRemoveFootnoteReferenceById'](_0x4b7d95,_0x5b4d30){const _0x4540be=this['_footnotes']['findIndex'](_0x4c1573=>_0x4c1573['id']===_0x5b4d30);if(-0x1===_0x4540be)return!0x1;let _0xb82b77=!0x1;const _0x443f75=this['_footnotes'][_0x4540be];return'$graveyard'!==_0x443f75['definition']['root']['rootName']&&(_0x4b7d95['remove'](_0x443f75['definition']),_0xb82b77=!0x0),this['_footnotes']['splice'](_0x4540be,0x1),this['_updateFootnotesCounters'](_0x4b7d95,_0x4540be)&&(_0xb82b77=!0x0),_0xb82b77;}['_handleMovedFootnoteReference'](_0x4c7d99,_0x3bf932){const _0x3f3b1e=_0x3bf932['getAttribute']('footnoteId'),_0x27b0e6=this['_footnotes']['findIndex'](_0x344783=>_0x344783['id']===_0x3f3b1e),_0x4aed4f=this['_footnotes'][_0x27b0e6];let _0x351719=!0x1;_0x4aed4f['reference']=_0x3bf932,this['_footnotes']['splice'](_0x27b0e6,0x1);const _0x63026c=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x3bf932);return this['_footnotes']['splice'](_0x63026c,0x0,_0x4aed4f),this['_updateFootnotesCounters'](_0x4c7d99,Math['min'](_0x27b0e6,_0x63026c))&&(_0x351719=!0x0),_0x351719;}['_updateFootnoteRefCounter'](_0x47a703,_0x1ad132){if(!this['_footnotesDefinitions'])return!0x1;const _0x186e91=this['_footnotes'][_0x1ad132];let _0x410074;return _0x410074=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x186e91,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1ad132+0x1}):String(_0x1ad132+0x1),_0x186e91['reference']['getAttribute']('footnoteCounter')!=_0x410074&&(_0x47a703['setAttribute']('footnoteCounter',_0x410074,_0x186e91['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x102202){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(areArraysEqual(this['_footnotes']['map'](_0x2b7de7=>_0x2b7de7['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x401f5f=>_0x401f5f['getAttribute']('footnoteId'))))return!0x1;let _0xdf8f10=!0x1;for(let _0x432b11=0x0;_0x432b11<this['_footnotes']['length'];_0x432b11++){const _0x2a0666=this['_footnotes'][_0x432b11],_0x4d6e41=_0x102202['createPositionBefore'](_0x2a0666['definition']),_0x10bf13=_0x102202['createPositionAt'](this['_footnotesDefinitions'],_0x432b11);_0x4d6e41['isEqual'](_0x10bf13)||(_0x102202['move'](_0x102202['createRangeOn'](_0x2a0666['definition']),_0x10bf13),_0xdf8f10=!0x0);}return _0xdf8f10;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5c084a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x10a51d}=this['editor'];let _0x7e6383=!0x1;for(let _0x4002ed=0x0;_0x4002ed<this['_footnotes']['length']-0x1;_0x4002ed++){const _0x19cb2b=this['_footnotes'][_0x4002ed],_0x4265d6=this['_footnotes'][_0x4002ed+0x1],_0x329535=_0x10a51d['createPositionBefore'](_0x19cb2b['reference']),_0x2a44d0=_0x10a51d['createPositionBefore'](_0x4265d6['reference']);'after'===_0x329535['compareWith'](_0x2a44d0)&&(this['_handleMovedFootnoteReference'](_0x5c084a,_0x19cb2b['reference']),_0x4002ed=-0x1,_0x7e6383=!0x0);}return _0x7e6383;}}function ensureDefinitionIsNotEmpty(_0x35275e,_0x2e7292,_0xd51dfb){if(_0xd51dfb['childCount'])return!0x1;const _0x591df6=_0x2e7292?'paragraph':'footnoteInlineContent';return _0x35275e['insert'](_0x35275e['createElement'](_0x591df6),_0xd51dfb),!0x0;}function findFootnoteDefinitionInContainer(_0x5d80b1,_0x1e90d7){for(const _0x459ea9 of _0x5d80b1['getChildren']())if(_0x459ea9['getAttribute']('footnoteId')===_0x1e90d7)return _0x459ea9;return null;}function findInsertFootnoteReferenceIndex(_0x3064ad,_0x439c6b,_0x33a372){if(0x0===_0x439c6b['length'])return 0x0;const _0x1b5774=_0x3064ad['createPositionBefore'](_0x33a372);for(let _0x1709ca=0x0;_0x1709ca<_0x439c6b['length'];_0x1709ca++){const _0x587dc3=_0x439c6b[_0x1709ca],_0x40e5e9=_0x3064ad['createPositionBefore'](_0x587dc3['reference']);if('before'===_0x1b5774['compareWith'](_0x40e5e9))return _0x1709ca;}const _0x484acd=_0x33a372['root'];let _0x1c0f66=-0x1;for(let _0x4a1b60=_0x439c6b['length']-0x1;_0x4a1b60>=0x0;_0x4a1b60--)if(_0x439c6b[_0x4a1b60]['reference']['root']===_0x484acd){_0x1c0f66=_0x4a1b60;break;}if(-0x1!==_0x1c0f66)return _0x1c0f66+0x1;const _0x579219=_0x3064ad['document']['getRootNames'](),_0x4e2ca9=_0x579219['indexOf'](_0x484acd['rootName']),_0x34768b=_0x579219[_0x4e2ca9+0x1];if(_0x34768b){for(let _0x83199=0x0;_0x83199<_0x439c6b['length'];_0x83199++)if(_0x439c6b[_0x83199]['reference']['root']['rootName']===_0x34768b)return _0x83199;}return _0x439c6b['length'];}function areArraysEqual(_0x29bf2e,_0x20449c){if(_0x29bf2e['length']!==_0x20449c['length'])return!0x1;for(let _0x3830a0=0x0;_0x3830a0<_0x29bf2e['length'];_0x3830a0++)if(_0x29bf2e[_0x3830a0]!==_0x20449c[_0x3830a0])return!0x1;return!0x0;}class InsertFootnoteCommand extends Command{['refresh'](){const _0x2e625f=this['editor']['model']['document']['selection'],_0x59b0af=this['_getPositionToInsertFootnote'](_0x2e625f);this['isEnabled']=!!_0x59b0af;}['execute'](_0x4ebbb4){const {editor:_0x11974f}=this,{model:_0x2e033c}=_0x11974f,{selection:_0x4f8988}=_0x2e033c['document'],_0x3f3084=this['_getPositionToInsertFootnote'](_0x4f8988);if(!_0x3f3084)return;const _0x48a34e=_0x11974f['plugins']['get']('FootnotesEditing'),_0x218f80=_0x4ebbb4?.['footnoteId']??uid();isFootnoteIdValid(_0x218f80)?(_0x2e033c['change'](_0x26f0da=>{const _0x454edb=_0x26f0da['createElement']('footnoteRef',{'footnoteId':_0x218f80});_0x2e033c['insertObject'](_0x454edb,_0x3f3084,null);}),_0x48a34e['_moveSelectionToFootnoteDefinition'](_0x218f80)):logWarning('insert-footnote-command-executed-with-invalid-id');}['_getPositionToInsertFootnote'](_0x268df8){const {model:_0x2ec808}=this['editor'],{schema:_0x40d5e2}=_0x2ec808,_0x657fad=_0x268df8['getFirstRange']();for(const _0x4ca47f of _0x657fad['getItems']())if(_0x40d5e2['isBlock'](_0x4ca47f)||_0x40d5e2['isObject'](_0x4ca47f))return null;const _0x167e64=_0x657fad['end'];return _0x40d5e2['checkChild'](_0x167e64,'footnoteRef')?_0x167e64:null;}}function isFootnoteIdValid(_0x14ceb0){return'string'==typeof _0x14ceb0&&_0x14ceb0['length']>0x0&&!/\s/['test'](_0x14ceb0)&&!/^\d/['test'](_0x14ceb0);}class FootnotesEditing extends Plugin{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x340c83}=this;_0x340c83['config']['define']('footnotes.multiBlock',!0x0),_0x340c83['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x340c83)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){checkLicense$c(this);}['_moveSelectionToFootnoteDefinition'](_0x77f8a1){const {plugins:_0x3c4068,editing:_0x21c042,model:_0x1da15b}=this['editor'],_0x1f3176=_0x3c4068['get'](FootnotesTracker)['getFootnote'](_0x77f8a1);return!!_0x1f3176&&(_0x1da15b['change'](_0x444b73=>{_0x444b73['setSelection'](_0x444b73['createPositionAt'](_0x1f3176['definition'],'end'));}),_0x21c042['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x546aa7){const {plugins:_0x5e57d4,editing:_0xa45033,model:_0xfa3951}=this['editor'],_0x15cd75=_0x5e57d4['get'](FootnotesTracker)['getFootnote'](_0x546aa7);return!!_0x15cd75&&(_0xfa3951['change'](_0x453fcf=>{_0x453fcf['setSelection'](_0x15cd75['reference'],'on');}),_0xa45033['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x38106f}=this['editor']['model'],_0xe6eb22=this['editor']['config']['get']('footnotes.multiBlock');_0x38106f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x38106f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x38106f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xe6eb22?_0x38106f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x38106f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x38106f['addChildCheck'](_0x45fe2b=>{for(const _0x4d462f of _0x45fe2b)if('footnoteDefinition'===_0x4d462f['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x708dc4}=this,{conversion:_0x4fbcc1,editing:_0x179d4e}=_0x708dc4,{t:t}=_0x708dc4['locale'];_0x4fbcc1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x544bf1,{writer:_0x411deb,consumable:_0x471ab6})=>{const _0x591d4d=_0x544bf1['getChild'](0x0);if(!_0x591d4d||!_0x591d4d['is']('element','a'))return null;const _0x1af923=_0x591d4d['getAttribute']('href')||'';if(!_0x1af923['startsWith']('#'))return null;const _0x3ce593=_0x1af923['replace'](/^#/,'');if(!_0x3ce593)return null;_0x471ab6['consume'](_0x591d4d,{'name':!0x0,'attributes':['href']});for(const {item:_0x46f8cc}of _0x179d4e['view']['createRangeIn'](_0x591d4d))_0x46f8cc['is']('$textProxy')?_0x471ab6['consume'](_0x46f8cc['textNode'],{'name':!0x0}):_0x46f8cc['is']('element')&&_0x471ab6['consume'](_0x46f8cc,{'name':!0x0});return _0x411deb['createElement']('footnoteRef',{'footnoteId':_0x3ce593});}}),_0x4fbcc1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x59b663,{writer:_0x6385c4})=>createFootnoteRefView(_0x59b663,_0x6385c4)}),_0x4fbcc1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5299d1,{writer:_0x1f4e36})=>{const _0x38e083=_0x5299d1['getAttribute']('footnoteCounter');return toWidget(createFootnoteRefView(_0x5299d1,_0x1f4e36),_0x1f4e36,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x38e083)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1465a5}=this,{t:t}=_0x1465a5['locale'],{conversion:_0x4d661a}=_0x1465a5;_0x4d661a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4d661a['for']('upcast')['add'](_0x2fdea4=>{_0x2fdea4['on']('element:ol',(_0x50c97b,_0x11356c,_0x448913)=>{const _0x274a47=_0x11356c['viewItem'];if(!_0x274a47['hasClass']('footnotes-list')||!_0x11356c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x448913['consumable']['consume'](_0x274a47,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3ef4e4,modelCursor:_0x11fd3f}=_0x448913['convertChildren'](_0x11356c['viewItem'],_0x11356c['modelCursor']);_0x11356c['modelRange']=_0x3ef4e4,_0x11356c['modelCursor']=_0x11fd3f;}),_0x2fdea4['on']('element:hr',(_0xe9a96f,_0x1672cf,_0x362db7)=>{const _0x4b5363=_0x1672cf['viewItem'];_0x4b5363['hasClass']('footnotes-divider')&&_0x1672cf['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x362db7['consumable']['consume'](_0x4b5363,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4d661a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x48bd15,{writer:_0xda95cf})=>createFootnotesWrapperView(_0xda95cf)}),_0x4d661a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5f4662,{writer:_0x91a241})=>{const _0x8d4d=createFootnotesWrapperView(_0x91a241,{'data-footnotes-list-label':t('Footnotes')}),_0x18ff4a=toWidget(_0x8d4d,_0x91a241,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x91a241['setCustomProperty']('footnotesDefinitions',!0x0,_0x18ff4a),_0x18ff4a;}});}['_defineDefinitionConverters'](){const {editor:_0x5d125a}=this,{conversion:_0x58a1bc,locale:_0x4465d4}=_0x5d125a,_0x4c79c3=_0x5d125a['config']['get']('footnotes.multiBlock');_0x58a1bc['for']('upcast')['add'](_0x4eff5e=>{_0x4eff5e['on']('element:li',(_0x5037fc,_0x4ff4c6,_0x441f6b)=>{const _0x549e2d=_0x4ff4c6['viewItem'];if(!_0x549e2d['hasClass']('footnote-definition')||!_0x549e2d['getAttribute']('id'))return;const _0x172109=_0x549e2d['parent'];if(!_0x172109['is']('element','ol')||!_0x172109['hasClass']('footnotes-list'))return;if(!_0x441f6b['consumable']['test'](_0x549e2d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x37b2ec=_0x441f6b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x549e2d['getAttribute']('id')});if(!_0x441f6b['safeInsert'](_0x37b2ec,_0x4ff4c6['modelCursor']))return;_0x441f6b['consumable']['consume'](_0x549e2d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x561cd3=Array['from'](_0x549e2d['getChildren']())['find'](_0x59eabc=>_0x59eabc['is']('element')&&_0x59eabc['hasClass']('footnote-content'));for(const _0x4498b9 of _0x549e2d['getChildren']())_0x4498b9['is']('element')&&(_0x441f6b['consumable']['consume'](_0x4498b9,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x441f6b['consumable']['consume'](_0x4498b9,{'name':!0x0,'classes':'footnote-content'}));if(_0x561cd3){if(_0x4c79c3)_0x441f6b['convertChildren'](_0x561cd3,_0x37b2ec);else{const _0x8f745=_0x441f6b['writer']['createElement']('footnoteInlineContent');_0x441f6b['writer']['insert'](_0x8f745,_0x37b2ec),_0x441f6b['convertChildren'](_0x561cd3,_0x8f745);}}_0x441f6b['updateConversionResult'](_0x37b2ec,_0x4ff4c6);});}),_0x58a1bc['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x36b3c9,{writer:_0x52a6b5})=>createFootnoteDefinitionView(_0x36b3c9,_0x52a6b5,_0x4465d4,{'dataPipeline':!0x0})}),_0x58a1bc['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x202651,{writer:_0x36ee77})=>createFootnoteDefinitionView(_0x202651,_0x36ee77,_0x4465d4)});}['_defineBogusParagraphConverters'](){const {editor:_0x2ec499}=this,{conversion:_0x1006e8}=_0x2ec499;_0x2ec499['config']['get']('footnotes.multiBlock')?(_0x1006e8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator(),'converterPriority':'high'}),_0x1006e8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2ec499['model']['document'],'change:data',()=>{footnoteDefinitionRefreshHandler(_0x2ec499['model'],_0x2ec499['editing']);})):(_0x1006e8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':footnoteBogusParagraphCreator()}),_0x1006e8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x51547f,{writer:_0x4f74cb})=>{const _0x17380d=_0x4f74cb['createContainerElement']('span');return _0x4f74cb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x17380d),_0x17380d;}}));}['_defineKeyboardHandlers'](){const {editor:_0x32c842}=this,{editing:_0x177094,t:t}=_0x32c842,_0x413278=_0x32c842['model']['document']['selection'];_0x32c842['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x32c842['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x177094['view']['document'],'enter',(_0x3baba9,_0x52ab48)=>{const _0x45e3bc=getSelectedFootnoteRef(_0x413278);if(_0x45e3bc){const _0x18047e=_0x45e3bc['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x18047e),_0x52ab48['preventDefault'](),_0x3baba9['stop']();}},{'context':isWidget});}['_defineClickHandlers'](){const {editor:_0x48314e}=this,{editing:_0xfaf834}=_0x48314e;_0x48314e['editing']['view']['addObserver'](PointerObserver),_0x48314e['editing']['view']['addObserver'](ClickObserver);let _0x579c45=!0x1;this['listenTo'](_0xfaf834['view']['document'],'pointerdown',(_0x41a28e,_0x404014)=>{const {target:_0x5e2d67}=_0x404014,_0x476bd7=_0xfaf834['view']['document']['selection'];_0x579c45=!!(_0x5e2d67?.['is']('element','a')&&_0x5e2d67['parent']?.['is']('element','sup')&&_0x5e2d67['parent']['hasClass']('footnote'))&&_0x476bd7['getSelectedElement']()===_0x5e2d67['parent'];},{'priority':'high'}),this['listenTo'](_0xfaf834['view']['document'],'click',(_0x358ef2,_0x35414e)=>{const {target:_0x30f9e9}=_0x35414e;if(!_0x30f9e9?.['is']('element','a'))return;if(_0x30f9e9['parent']?.['is']('element','sup')&&_0x30f9e9['parent']['hasClass']('footnote')&&!_0x579c45)return void _0x35414e['preventDefault']();let _0x4dd90b=_0x30f9e9['getAttribute']('href');if(!_0x4dd90b?.['startsWith']('#'))return;_0x4dd90b=_0x4dd90b['slice'](0x1);let _0x22a18b=!0x1;(_0x4dd90b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4dd90b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4dd90b))&&(_0x22a18b=!0x0),_0x22a18b&&(_0x35414e['preventDefault'](),_0x358ef2['stop']());},{'priority':'high','context':'$capture'});}}function getSelectedFootnoteRef(_0x597004){const _0x56b7e2=_0x597004['getSelectedElement']();return _0x56b7e2?.['is']('element','footnoteRef')?_0x56b7e2:null;}function footnoteBogusParagraphCreator({dataPipeline:_0x21b858}={}){return(_0x5cc7f3,{writer:_0x50cf61})=>{if(!shouldUseBogusParagraphInFootnote(_0x5cc7f3))return null;if(!_0x21b858)return _0x50cf61['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x11f3b7=_0x50cf61['createContainerElement']('p');return _0x50cf61['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11f3b7),_0x11f3b7;};}function shouldUseBogusParagraphInFootnote(_0xea94ee){const {parent:_0x5be97a}=_0xea94ee;if(!_0x5be97a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5be97a['childCount'])return!0x1;for(const _0xd37587 of _0xea94ee['getAttributeKeys']())if(!_0xd37587['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xd37587)return!0x1;return!0x0;}function footnoteDefinitionRefreshHandler(_0x9c4830,_0x234153){const _0x58581b=_0x9c4830['document']['differ'],_0x2c8901=new Set();for(const _0xa850d7 of _0x58581b['getChanges']()){const _0x3b2d72='attribute'==_0xa850d7['type']?_0xa850d7['range']['start']['parent']:_0xa850d7['position']['parent'];_0x3b2d72['is']('element','footnoteDefinition')&&_0x2c8901['add'](_0x3b2d72);}for(const _0x48cbdf of _0x2c8901['values']()){const _0x58fb03=Array['from'](_0x48cbdf['getChildren']())['filter'](_0x2c0c60=>shouldRefresh(_0x2c0c60,_0x234153['mapper']));for(const _0x430d58 of _0x58fb03)_0x234153['reconvertItem'](_0x430d58);}}function shouldRefresh(_0xe7db6c,_0xb5a17f){if(!_0xe7db6c['is']('element','paragraph'))return!0x1;const _0x450b87=_0xb5a17f['toViewElement'](_0xe7db6c);return!!_0x450b87&&shouldUseBogusParagraphInFootnote(_0xe7db6c)!==_0x450b87['is']('element','span');}function isFootnotesDefinitionsWidget(_0x3513f6){return isWidget(_0x3513f6)&&_0x3513f6['is']('containerElement')&&!!_0x3513f6['getCustomProperty']('footnotesDefinitions');}function createFootnotesWrapperView(_0x3019c2,_0xd97b49={}){const _0x5184fb=_0x3019c2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5f5c50=_0x3019c2['createContainerElement']('ol',{'class':'footnotes-list'},_0x3019c2['createSlot']());return _0x3019c2['createContainerElement']('div',{'class':'footnotes',..._0xd97b49},[_0x5184fb,_0x5f5c50]);}function createFootnoteRefView(_0x356e98,_0xdd4e3c){const _0x36be83=_0x356e98['getAttribute']('footnoteId'),_0x133918=_0x356e98['getAttribute']('footnoteCounter'),_0x4f54c8=_0xdd4e3c['createUIElement']('a',{'href':'#'+_0x36be83},function(_0x2a31ca){const _0x5270cb=this['toDomElement'](_0x2a31ca);return _0x5270cb['textContent']=_0x133918,_0x5270cb;}),_0x28b617=_0xdd4e3c['createContainerElement']('sup',{'id':'ref-'+_0x36be83,'class':'footnote'},[_0x4f54c8]);return _0x28b617['getFillerOffset']=()=>null,_0x28b617;}function createFootnoteDefinitionView(_0x406ef7,_0x478c16,_0x98d43a,{dataPipeline:_0x474b48}={}){const {t:t}=_0x98d43a,_0x97bf8=_0x406ef7['getAttribute']('footnoteId'),_0x3fb097=_0x478c16['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x97bf8},function(_0x34f59c){const _0x2e068d=this['toDomElement'](_0x34f59c);return _0x2e068d['innerText']='^',_0x2e068d;}),_0x12bfdb=_0x474b48?_0x478c16['createContainerElement']('div',{'class':'footnote-content'}):toWidgetEditable(_0x478c16['createEditableElement']('div',{'class':'footnote-content'}),_0x478c16,{'label':t('Footnote\x20content.')});return _0x478c16['insert'](_0x478c16['createPositionAt'](_0x12bfdb,0x0),_0x478c16['createSlot']()),_0x478c16['createContainerElement']('li',{'class':'footnote-definition','id':_0x97bf8},[_0x3fb097,_0x12bfdb]);}async function checkLicense$c(_0x44cc62){const _0x88c759=_0x582975([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x38d737=window[_0x582975([0x44,0x61,0x74,0x65])][_0x582975([0x6e,0x6f,0x77])](),_0x2bc50d=_0x44cc62[_0x582975([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20279b=new window[(_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcf3327=>{_0x2bc50d[_0x582975([0x6f,0x6e,0x63,0x65])](_0x582975([0x72,0x65,0x61,0x64,0x79]),_0xcf3327);}),_0x35d2ba={[_0x582975([0x6b,0x74,0x79])]:_0x582975([0x45,0x43]),[_0x582975([0x75,0x73,0x65])]:_0x582975([0x73,0x69,0x67]),[_0x582975([0x63,0x72,0x76])]:_0x582975([0x50,0x2d,0x32,0x35,0x36]),[_0x582975([0x78])]:_0x582975([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x582975([0x79])]:_0x582975([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x582975([0x61,0x6c,0x67])]:_0x582975([0x45,0x53,0x32,0x35,0x36])},_0x502cd3=_0x2bc50d[_0x582975([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x582975([0x67,0x65,0x74])](_0x582975([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2fddf6=await(async function(){let _0xe625e9,_0x41a480=null,_0x8f2a32=null;try{if(_0x502cd3==_0x582975([0x47,0x50,0x4c]))return _0x582975([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe625e9=(function(){const _0x31c24b=_0x502cd3[_0x582975([0x73,0x70,0x6c,0x69,0x74])](_0x582975([0x2e]));if(0x3!=_0x31c24b[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2c1940=_0x31c24b[0x1];return _0x484b46(_0x2c1940);function _0x484b46(_0x93298){const _0x5bdea7=_0x34aa3a(_0x93298);return _0x5bdea7&&_0x35c69a()?_0x5bdea7:null;function _0x35c69a(){const _0x5674be=_0x5bdea7[_0x582975([0x6a,0x74,0x69])],_0x3720aa=window[_0x582975([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5674be[_0x582975([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5674be[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x392e2a={..._0x5bdea7,[_0x582975([0x6a,0x74,0x69])]:_0x5674be[_0x582975([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5674be[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x392e2a[_0x582975([0x76,0x63])],_0x39f6de(_0x392e2a)==_0x3720aa;}}}()),!_0xe625e9)return _0x582975([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0xe625e9[_0x582975([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8f2a32=function(_0x114c2b,_0x1ddaa5){return new window[(_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40ee1a=>{if(_0x335eee())return _0x40ee1a(_0x582975([0x56,0x61,0x6c,0x69,0x64]));_0x255407(),_0x2bc50d[_0x582975([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x582975([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b0dab=!0x1;const _0x3b0c2f=uid();function _0x4dede0(_0x545e07){return!!_0x545e07&&(typeof _0x545e07===_0x582975([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x545e07===_0x582975([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x545e07[_0x582975([0x74,0x68,0x65,0x6e])]===_0x582975([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x545e07[_0x582975([0x63,0x61,0x74,0x63,0x68])]===_0x582975([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11e35d(_0xc44202){_0x2e7cd2(_0xc44202)[_0x582975([0x74,0x68,0x65,0x6e])](_0x18b538=>{if(!_0x18b538||_0x18b538[_0x582975([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x582975([0x6f,0x6b]))return _0x582975([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ec74f(_0x39f6de(_0x3b0c2f+_0x1ddaa5))!=_0x18b538[_0x582975([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x582975([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x582975([0x56,0x61,0x6c,0x69,0x64]);})[_0x582975([0x74,0x68,0x65,0x6e])](_0x1a57c2=>(_0x211c85(),_0x1a57c2),()=>{const _0x57887e=_0x123c5b();return null==_0x57887e?(_0x211c85(),_0x582975([0x56,0x61,0x6c,0x69,0x64])):_0x582975(_0x38d737-_0x57887e>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x582975([0x74,0x68,0x65,0x6e])](_0x40ee1a)[_0x582975([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40ee1a(_0x582975([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36f2da=0x36ee80;function _0x211c85(){const _0x394387=_0x582975([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ec74f(_0x39f6de(_0x114c2b)),_0x493ccc=_0x2e2d99(_0x2ec74f(window[_0x582975([0x4d,0x61,0x74,0x68])][_0x582975([0x63,0x65,0x69,0x6c])](_0x38d737/_0x36f2da)));window[_0x582975([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x582975([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x394387,_0x493ccc);}function _0x123c5b(){const _0x131829=_0x582975([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ec74f(_0x39f6de(_0x114c2b)),_0x52883c=window[_0x582975([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x582975([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x131829);return _0x52883c?window[_0x582975([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e2d99(_0x52883c),0x10)*_0x36f2da:null;}function _0x2e7cd2(_0x526987){return new window[(_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16ce62,_0x30cff2)=>{_0x526987[_0x582975([0x74,0x68,0x65,0x6e])](_0x16ce62,_0x30cff2),window[_0x582975([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30cff2,0x1d4c0);});}}_0x2bc50d[_0x582975([0x6f,0x6e])](_0x582975([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7ba30a,_0x3054ea)=>{if(_0x3054ea[0x0]!=_0x114c2b)return _0x40ee1a(_0x582975([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3054ea[0x1]={..._0x3054ea[0x1],[_0x582975([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b0c2f};},{[_0x582975([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x582975([0x68,0x69,0x67,0x68])}),_0x2bc50d[_0x582975([0x6f,0x6e])](_0x582975([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34a189=>{_0x4dede0(_0x34a189[_0x582975([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b0dab=!0x0,_0x11e35d(_0x34a189[_0x582975([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x582975([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x582975([0x6c,0x6f,0x77])}),_0x20279b[_0x582975([0x74,0x68,0x65,0x6e])](()=>{_0x5b0dab||_0x40ee1a(_0x582975([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x335eee(){return _0x2bc50d[_0x582975([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582975([0x76,0x69,0x65,0x77])][_0x582975([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x582975([0x61,0x75,0x74,0x6f]);}function _0x255407(){_0x2bc50d[_0x582975([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582975([0x76,0x69,0x65,0x77])][_0x582975([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x582975([0x61,0x75,0x74,0x6f]);}}(_0xe625e9[_0x582975([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe625e9[_0x582975([0x6a,0x74,0x69])]));const _0x1274ed=await(async function(){let _0x3c5b00=!0x0;try{const _0x1b74bf=_0x502cd3[_0x582975([0x73,0x70,0x6c,0x69,0x74])](_0x582975([0x2e])),[_0x54dd65,_0x227548,_0x1d0e57]=_0x1b74bf;return _0xa1cbc7(_0x54dd65),await _0x4bf6cf(_0x54dd65,_0x227548,_0x1d0e57),_0x3c5b00;}catch{return!0x1;}function _0xa1cbc7(_0x1b0f4f){const _0x50ce6b=_0x34aa3a(_0x1b0f4f);_0x50ce6b&&_0x50ce6b[_0x582975([0x61,0x6c,0x67])]==_0x582975([0x45,0x53,0x32,0x35,0x36])||(_0x3c5b00=!0x1);}async function _0x4bf6cf(_0x2502ca,_0xdfe2c0,_0x3929c3){const _0x44046c=window[_0x582975([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x582975([0x66,0x72,0x6f,0x6d])](_0x58fbbc(_0x3929c3),_0x5bc9a9=>_0x5bc9a9[_0x582975([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a7122=new window[(_0x582975([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x582975([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2502ca+_0x582975([0x2e])+_0xdfe2c0),_0x56dc4f=window[_0x582975([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x582975([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56dc4f)return;const _0x3a0941=await _0x56dc4f[_0x582975([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x582975([0x6a,0x77,0x6b]),_0x35d2ba,{[_0x582975([0x6e,0x61,0x6d,0x65])]:_0x582975([0x45,0x43,0x44,0x53,0x41]),[_0x582975([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x582975([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x582975([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56dc4f[_0x582975([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x582975([0x6e,0x61,0x6d,0x65])]:_0x582975([0x45,0x43,0x44,0x53,0x41]),[_0x582975([0x68,0x61,0x73,0x68])]:{[_0x582975([0x6e,0x61,0x6d,0x65])]:_0x582975([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a0941,_0x44046c,_0x5a7122)||(_0x3c5b00=!0x1);}}());return _0x1274ed?(function(){const _0x1d9e4f=_0xe625e9[_0x582975([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d9e4f)return!0x1;if(_0x1d9e4f[_0x582975([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582975([0x2a])))return!0x0;if(_0x1d9e4f[_0x582975([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582975([0x46,0x4f,0x4f])))return!0x0;return!0x1;}())?(function(){const _0x16d90f=[_0x582975([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x582975([0x74,0x72,0x69,0x61,0x6c])][_0x582975([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe625e9[_0x582975([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38d737/0x3e8:0x6a03bf00;return _0xe625e9[_0x582975([0x65,0x78,0x70])]<_0x16d90f;}())?_0x582975([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x5cc041=_0xe625e9[_0x582975([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5cc041||0x0==_0x5cc041[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3256ee}=new URL(window[_0x582975([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5cc041[_0x582975([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3256ee))return!0x0;const _0x2d3a21=_0x3256ee[_0x582975([0x73,0x70,0x6c,0x69,0x74])](_0x582975([0x2e]));return _0x5cc041[_0x582975([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37d34c=>_0x37d34c[_0x582975([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582975([0x2a])))[_0x582975([0x6d,0x61,0x70])](_0x40e5f8=>_0x40e5f8[_0x582975([0x73,0x70,0x6c,0x69,0x74])](_0x582975([0x2e])))[_0x582975([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d45d5=>_0x3d45d5[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d3a21[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x582975([0x6d,0x61,0x70])](_0xcde4b6=>Array(_0x2d3a21[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcde4b6[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x582975([0x66,0x69,0x6c,0x6c])](_0xcde4b6[0x0]===_0x582975([0x2a])?_0x582975([0x2a]):'')[_0x582975([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcde4b6))[_0x582975([0x73,0x6f,0x6d,0x65])](_0x5130e6=>_0x2d3a21[_0x582975([0x65,0x76,0x65,0x72,0x79])]((_0x24ab50,_0x1a1fd0)=>_0x5130e6[_0x1a1fd0]===_0x24ab50||_0x5130e6[_0x1a1fd0]===_0x582975([0x2a])));}())?(_0xe625e9[_0x582975([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x582975([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41a480=function(_0x3d3001){const _0x3bde87=new window[(_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56c32e=>setTimeout(_0x56c32e,0x93ecc)),_0x4d12c9=_0x20279b[_0x582975([0x74,0x68,0x65,0x6e])](()=>new window[(_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c35ea=>{let _0x1f85b1=0x0;_0x2bc50d[_0x582975([0x6d,0x6f,0x64,0x65,0x6c])][_0x582975([0x6f,0x6e])](_0x582975([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x514ccd,_0x29db15)=>{_0x29db15[0x0][_0x582975([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f85b1++,0x5e8==_0x1f85b1&&(_0x3c35ea(),_0x514ccd[_0x582975([0x6f,0x66,0x66])]());});})),_0x1c76d6=[_0x3bde87,_0x4d12c9];return window[_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x582975([0x72,0x61,0x63,0x65])](_0x1c76d6)[_0x582975([0x74,0x68,0x65,0x6e])](()=>_0x3d3001);}(_0x582975([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x41a480&&_0x8f2a32)return new window[(_0x582975([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ae4ce,_0x58db12)=>{_0x41a480[_0x582975([0x74,0x68,0x65,0x6e])](_0x5ae4ce,_0x58db12),_0x8f2a32[_0x582975([0x74,0x68,0x65,0x6e])](_0x4dedd5=>{_0x4dedd5!=_0x582975([0x56,0x61,0x6c,0x69,0x64])&&_0x5ae4ce(_0x4dedd5);},_0x58db12);});return _0x41a480||_0x8f2a32||_0x582975([0x56,0x61,0x6c,0x69,0x64]);}())):_0x582975([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x582975([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x582975([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x582975([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x34aa3a(_0x294de5){return _0x294de5[_0x582975([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x582975([0x65,0x79]))?JSON[_0x582975([0x70,0x61,0x72,0x73,0x65])](_0x58fbbc(_0x294de5)):null;}function _0x58fbbc(_0x103dd1){return window[_0x582975([0x61,0x74,0x6f,0x62])](_0x103dd1[_0x582975([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x582975([0x2b]))[_0x582975([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x582975([0x2f])));}function _0x39f6de(_0x14182d){let _0x48e49a=0x1505;function _0x590064(_0x2420b1){for(let _0x155e75=0x0;_0x155e75<_0x2420b1[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x155e75++){const _0x31842e=_0x2420b1[_0x582975([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x155e75);_0x48e49a=(_0x48e49a<<0x5)+_0x48e49a+_0x31842e,_0x48e49a&=_0x48e49a;}}return function _0x521d07(_0xe4f4ac){Array[_0x582975([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe4f4ac)?_0xe4f4ac[_0x582975([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x521d07):_0xe4f4ac&&typeof _0xe4f4ac==_0x582975([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x582975([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe4f4ac)[_0x582975([0x73,0x6f,0x72,0x74])]()[_0x582975([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x528dde,_0x399fd4])=>{_0x590064(_0x528dde),_0x521d07(_0x399fd4);}):_0x590064(window[_0x582975([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe4f4ac));}(_0x14182d),_0x48e49a>>>0x0;}function _0x2ec74f(_0x279027){return _0x279027[_0x582975([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x582975([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x582975([0x30]));}function _0x2e2d99(_0x4ab1b9){return _0x4ab1b9[_0x582975([0x73,0x70,0x6c,0x69,0x74])]('')[_0x582975([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x582975([0x6a,0x6f,0x69,0x6e])]('');}function _0x110aa(){}function _0x582975(_0x24c20b){return _0x24c20b['map'](_0x31fe0a=>String['fromCharCode'](_0x31fe0a))['join']('');}!function(_0x2b0c74){const _0x478ec9=(function(){const _0x500762=window[_0x582975([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x582975([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x582975([0x6e,0x6f,0x77])]())[_0x582975([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x582975([0x2e]),'');let _0x4dabb0=_0x582975([0x75]);for(let _0x32dfb5=0x0;_0x32dfb5<_0x500762[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32dfb5+=0x2){let _0x28ad1f=window[_0x582975([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x500762[_0x582975([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32dfb5,_0x32dfb5+0x2));_0x28ad1f>=_0x88c759[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28ad1f-=_0x88c759[_0x582975([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4dabb0+=_0x88c759[_0x28ad1f];}return _0x4dabb0;}());_0x2bc50d[_0x478ec9]=_0x582975([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b0c74,_0x2b0c74!=_0x582975([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x20279b,_0x2bc50d[_0x582975([0x6d,0x6f,0x64,0x65,0x6c])][_0x582975([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x110aa,_0x2bc50d[_0x582975([0x6d,0x6f,0x64,0x65,0x6c])][_0x582975([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x110aa,_0x2bc50d[_0x582975([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x582975([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2fddf6);}class FootnotesClipboard extends Plugin{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,ClipboardPipeline];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2cb086}=this,{plugins:_0x57073c,model:_0x2e2e09}=_0x2cb086,_0x32a4f0=_0x57073c['get'](ClipboardPipeline),_0x44e635=_0x57073c['get'](FootnotesTracker);this['listenTo'](_0x32a4f0,'outputTransformation',(_0x41f808,_0x379673)=>{const _0x23da0f=pickAllFootnotesRefsIdsFromRange(_0x2e2e09['createRangeIn'](_0x379673['content']));if(!_0x23da0f['length'])return;const _0x4933f3=_0x44e635['getFootnotes'](),_0x5a174a=_0x23da0f['reduce']((_0xc90d81,_0x217353)=>{const _0x1564ae=_0x4933f3['find'](_0x4ecfff=>_0x4ecfff['id']===_0x217353);if(_0x1564ae){const _0x3414e8=_0x2cb086['data']['toView'](_0x1564ae['definition'],{'isClipboardPipeline':!0x0}),_0x371562=_0x2cb086['data']['htmlProcessor']['toData'](_0x3414e8);_0xc90d81[_0x1564ae['id']]=_0x371562;}return _0xc90d81;},Object['create'](null));_0x379673['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5a174a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x517994}=this,{model:_0x47586a,plugins:_0x3ba263}=_0x517994,{view:_0x367c7d}=_0x517994['editing'],_0x2cfa54=_0x3ba263['get'](ClipboardPipeline),_0x1d6ff6=_0x3ba263['get'](FootnotesTracker),_0x5113fd=_0x517994['config']['get']('footnotes.multiBlock');let _0x1f403f=null;this['listenTo'](_0x367c7d['document'],'clipboardInput',(_0x4c15d7,_0x2b035a)=>{const _0x4bd11f=_0x2b035a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1f403f=_0x4bd11f?JSON['parse'](_0x4bd11f):null;}),this['listenTo'](_0x2cfa54,'contentInsertion',(_0x3db1b5,_0x41ac38)=>{const _0x17ad73=_0x41ac38['sourceEditorId']===this['editor']['id'];_0x17ad73&&'drop'===_0x41ac38['method']||_0x47586a['change'](_0x31a08e=>{let _0x38bd5c=_0x1d6ff6['getFootnotesDefinitionsObjectElement']();const _0x192d28=!!_0x38bd5c&&Array['from'](_0x47586a['document']['selection']['getSelectedBlocks']())['includes'](_0x38bd5c);if(!_0x1f403f&&areThereFootnotesRefsInRange(_0x47586a['createRangeIn'](_0x41ac38['content']))&&(_0x1f403f=extractFootnotesDefinitionsFromContent(_0x31a08e,_0x41ac38['content'])),(_0x38bd5c&&!_0x192d28||!_0x38bd5c&&!_0x1f403f)&&removeFootnoteDefinitionsFromFragment(_0x31a08e,_0x41ac38['content']),!_0x1f403f)return;const {selection:_0x419de0}=_0x47586a['document'],_0x1e2757=_0x419de0['getFirstRange']()['root'];_0x38bd5c&&!_0x192d28||(_0x38bd5c=findFootnoteDefinitionsElementInFragment(_0x31a08e,_0x41ac38['content']),_0x38bd5c||=_0x1d6ff6['_insertEmptyFootnotesDefinitionsContainer'](_0x31a08e,_0x1e2757));const _0x1404ff=Array['from'](_0x419de0['getRanges']())['flatMap'](pickAllFootnotesRefsIdsFromRange),_0x2dbf70=regenerateFootnoteIdsInFragment(_0x31a08e,_0x41ac38['content'],_0xee6bd1=>{if(!_0x17ad73)return!0x0;return!!_0x1d6ff6['getFootnote'](_0xee6bd1)&&!_0x1404ff['includes'](_0xee6bd1);});for(const [_0x366422,_0x5daed4]of Object['entries'](_0x1f403f)){const _0x4ca86e=_0x2dbf70[_0x366422]||_0x366422;let _0x56d1ce;if('string'!=typeof _0x5daed4)_0x56d1ce=_0x5daed4,_0x4ca86e!==_0x366422&&_0x31a08e['setAttribute']('footnoteId',_0x4ca86e,_0x56d1ce);else{_0x56d1ce=_0x31a08e['createElement']('footnoteDefinition',{'footnoteId':_0x4ca86e});const _0xc6ddb=_0x517994['data']['htmlProcessor']['toView'](_0x5daed4);let _0x4ba777;if(_0x5113fd)_0x4ba777=_0x517994['data']['toModel'](_0xc6ddb,_0x56d1ce);else{_0x4ba777=_0x31a08e['createElement']('footnoteInlineContent');const _0x16f154=_0x517994['data']['toModel'](_0xc6ddb,_0x4ba777);_0x31a08e['insert'](_0x16f154,_0x4ba777);}_0x31a08e['append'](_0x4ba777,_0x56d1ce);}_0x31a08e['insert'](_0x56d1ce,_0x38bd5c,'end');}_0x1f403f=null;});});}}function removeFootnoteDefinitionsFromFragment(_0x2104b5,_0x55ff26){const _0x55cfa7=[];for(const {item:_0x2cc061}of _0x2104b5['createRangeIn'](_0x55ff26))_0x2cc061['is']('element','footnotesDefinitions')&&_0x55cfa7['push'](_0x2cc061);for(const _0x2089e6 of _0x55cfa7)_0x2104b5['remove'](_0x2089e6);}function findFootnoteDefinitionsElementInFragment(_0x568fdb,_0x273e1a){for(const {item:_0x1d15a7}of _0x568fdb['createRangeIn'](_0x273e1a))if(_0x1d15a7['is']('element','footnotesDefinitions'))return _0x1d15a7;return null;}function pickAllFootnotesRefsIdsFromRange(_0x756381){const _0x48204f=new Set();for(const {item:_0x419c3d}of _0x756381)_0x419c3d['is']('element','footnoteRef')&&_0x48204f['add'](_0x419c3d['getAttribute']('footnoteId'));return Array['from'](_0x48204f);}function areThereFootnotesRefsInRange(_0x7bf0df){for(const {item:_0x136081}of _0x7bf0df)if(_0x136081['is']('element','footnoteRef'))return!0x0;return!0x1;}function extractFootnotesDefinitionsFromContent(_0x4c38bc,_0x50673e){const _0x3fdb2c=findFootnoteDefinitionsElementInFragment(_0x4c38bc,_0x50673e);if(!_0x3fdb2c)return null;const _0x4e7659=Object['create'](null);for(const _0x151ca6 of _0x3fdb2c['getChildren']())_0x151ca6['is']('element','footnoteDefinition')&&_0x151ca6['hasAttribute']('footnoteId')&&(_0x4e7659[_0x151ca6['getAttribute']('footnoteId')]=_0x4c38bc['cloneElement'](_0x151ca6,!0x0));return Object['keys'](_0x4e7659)['length']?_0x4e7659:null;}function regenerateFootnoteIdsInFragment(_0x2eed78,_0x2a131c,_0x339556){const _0x3d52bf=Object['create'](null);for(const {item:_0x5d6b68}of _0x2eed78['createRangeIn'](_0x2a131c))if(_0x5d6b68['is']('element','footnoteRef')){const _0x16c2c0=_0x5d6b68['getAttribute']('footnoteId');if(!_0x339556(_0x16c2c0))continue;_0x3d52bf[_0x16c2c0]||(_0x3d52bf[_0x16c2c0]=uid()),_0x2eed78['setAttribute']('footnoteId',_0x3d52bf[_0x16c2c0],_0x5d6b68);}return _0x3d52bf;}class FootnotesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x170319}=this,{componentFactory:_0x230ba4}=_0x170319['ui'];_0x230ba4['add']('insertFootnote',getInsertFootnoteButtonCreator(_0x170319,ButtonView)),_0x230ba4['add']('menuBar:insertFootnote',getInsertFootnoteButtonCreator(_0x170319,MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b145f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b945a;for(const _0x1438e9 in _0x1b145f){const _0x223ba3=_0x1438e9,_0x2f7d27=_0x1b145f[_0x223ba3];if('footnotesLicenseKeyValid'==_0x2f7d27||'footnotesLicenseKeyInvalid'==_0x2f7d27||'footnotesLicenseKeyExpired'==_0x2f7d27||'footnotesLicenseKeyDomainLimit'==_0x2f7d27||'footnotesLicenseKeyNotAllowed'==_0x2f7d27||'footnotesLicenseKeyEvaluationLimit'==_0x2f7d27||'footnotesLicenseKeyUsageLimit'==_0x2f7d27){delete _0x1b145f[_0x223ba3],_0x1b945a=_0x2f7d27,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1b945a&&_0x1b145f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1b945a&&_0x1b145f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1b945a&&_0x1b145f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1b945a&&_0x1b145f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1b945a&&_0x1b145f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x1b945a&&_0x1b145f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getInsertFootnoteButtonCreator(_0x3e9744,_0x1d4938){const _0x3a26ae=_0x3e9744['commands']['get']('insertFootnote');return _0xa66961=>{const {t:t}=_0xa66961,_0x2b1274=new _0x1d4938(_0xa66961),_0x1d554f=_0x2b1274 instanceof MenuBarMenuListItemButtonView;return _0x2b1274['bind']('isEnabled')['to'](_0x3a26ae,'isEnabled'),_0x2b1274['set']({'label':t(_0x1d554f?'Footnote':'Insert\x20footnote'),'icon':IconFootnote,'tooltip':!0x0}),_0x2b1274['on']('execute',()=>{_0x3a26ae['execute'](),_0x3e9744['editing']['view']['focus']();}),_0x2b1274;};}class Footnotes extends Plugin{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-roman','upper-roman'],FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES=['arabic-indic'],FOOTNOTES_DEFINITION_STYLES_ALIASES=Object['create']({'lower-alpha':'lower-latin','upper-alpha':'upper-latin'}),FOOTNOTES_DEFINITIONS_STYLES=[...FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES,...FOOTNOTES_ADDITIONAL_CANONICAL_DEFINITIONS_STYLES,'lower-alpha','upper-alpha'];class FootnotesStyleCommand extends Command{['refresh'](){const {editor:_0x2434c5}=this,_0x13102d=_0x2434c5['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x13102d,this['value']=_0x13102d?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1181b4}){const {editor:_0x100012}=this,_0x76babe=_0x100012['plugins']['get'](FootnotesTracker),_0x5b864f=_0x76babe['getFootnotesDefinitionsObjectElement']();_0x5b864f&&FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x1181b4)&&_0x100012['model']['change'](_0x39898e=>{_0x39898e['setAttribute']('footnotesListStyle',_0x1181b4,_0x5b864f),_0x76babe['_updateFootnotesCounters'](_0x39898e);});}}class FootnotesStartCommand extends Command{['refresh'](){const {editor:_0x48bfb2}=this,_0x4ad303=_0x48bfb2['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ad303,this['value']=_0x4ad303?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3b600b}){const {editor:_0x42b509}=this,_0x5956ed=_0x42b509['plugins']['get'](FootnotesTracker),_0x52f92b=_0x5956ed['getFootnotesDefinitionsObjectElement']();_0x52f92b&&Number['isInteger'](_0x3b600b)&&_0x42b509['model']['change'](_0x26e241=>{_0x26e241['setAttribute']('footnotesListStart',_0x3b600b,_0x52f92b),_0x5956ed['_updateFootnotesCounters'](_0x26e241);});}}function formatDecimalLeadingZeroFootnote(_0x2615e2,_0x3cd463){return String(_0x2615e2)['padStart'](_0x3cd463,'0');}function formatLatinFootnote(_0x2ca117,_0x30793e){let _0x345898='',_0x110499=_0x2ca117;for(;_0x110499>0x0;){const _0x3be2f9=(_0x110499-0x1)%0x1a;_0x345898=String['fromCharCode'](0x61+_0x3be2f9)+_0x345898,_0x110499=Math['floor']((_0x110499-0x1)/0x1a);}return _0x30793e?_0x345898['toUpperCase']():_0x345898;}const ROMAN_MAP=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function formatRomanFootnote(_0x2a1bb3,_0x42deaf){let _0x4ec0de='',_0x53339f=_0x2a1bb3;for(const {value:_0x347f23,numeral:_0x2718e7}of ROMAN_MAP)for(;_0x53339f>=_0x347f23;)_0x4ec0de+=_0x2718e7,_0x53339f-=_0x347f23;return _0x42deaf?_0x4ec0de:_0x4ec0de['toLowerCase']();}const ARABIC_INDIC_DIGITS=['٠','١','٢','٣','٤','٥','٦','٧','٨','٩'];function formatArabicIndicFootnote(_0xad2f5f){return String(_0xad2f5f)['replace'](/\d/g,_0x2235f6=>ARABIC_INDIC_DIGITS[Number(_0x2235f6)]);}class FootnotesPropertiesEditing extends Plugin{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2292d6}=this;_0x2292d6['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2292d6['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2292d6['config']['define']('footnotes.footnotesProperties.listStyles',[...FOOTNOTES_BASE_CANONICAL_DEFINITIONS_STYLES]),_0x2292d6['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x2292d6)),_0x2292d6['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x2292d6)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x52a3ba}=this,{schema:_0x383c32}=_0x52a3ba['model'];_0x383c32['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4d7153}=this,{conversion:_0x2b41d1,model:_0x6fb770}=_0x4d7153,{schema:_0x3c9556}=_0x6fb770;_0x2b41d1['for']('upcast')['add'](_0xcbd0e=>{_0xcbd0e['on']('element:ol',(_0x503a99,_0x30ff5f,_0x38f1a2)=>{const _0xae380d=_0x30ff5f['viewItem'],_0x4c44eb=_0x30ff5f['modelCursor']?.['parent'];_0xae380d['hasClass']('footnotes-list')&&_0x4c44eb?.['is']('element','footnotesDefinitions')&&(upcastFootnotesListStart(_0xae380d,_0x4c44eb,_0x38f1a2,_0x3c9556),upcastFootnotesListStyle(_0xae380d,_0x4c44eb,_0x38f1a2,_0x3c9556));});}),_0x2b41d1['for']('downcast')['add'](_0x415f41=>{_0x415f41['on']('attribute:footnotesListStart:footnotesDefinitions',downcastFootnotesListStart()),_0x415f41['on']('attribute:footnotesListStyle:footnotesDefinitions',downcastFootnotesListStyle());});}['_definePostfixer'](){const {editor:_0x32be2f}=this,{model:_0x40d871}=_0x32be2f,_0x1699c5=_0x32be2f['plugins']['get'](FootnotesTracker),_0x43d7d1=this['_getDefaultListStyle'](),_0x4b921a=this['_getDefaultStartIndex']();_0x40d871['document']['registerPostFixer'](_0x373c47=>{const _0x2af127=_0x40d871['document']['differ']['getChanges']();let _0x342da7=!0x1;for(const _0x3468d2 of _0x2af127){if('insert'!==_0x3468d2['type']||'$text'===_0x3468d2['name'])continue;const _0x4d66c9=_0x40d871['createRangeOn'](_0x3468d2['position']['nodeAfter']);for(const _0x35bd97 of _0x4d66c9['getItems']())_0x35bd97['is']('element','footnotesDefinitions')&&(!_0x35bd97['hasAttribute']('footnotesListStart')&&_0x40d871['schema']['checkAttribute'](_0x35bd97,'footnotesListStart')&&(_0x373c47['setAttribute']('footnotesListStart',_0x4b921a,_0x35bd97),_0x342da7=!0x0),!_0x35bd97['hasAttribute']('footnotesListStyle')&&_0x40d871['schema']['checkAttribute'](_0x35bd97,'footnotesListStyle')&&(_0x373c47['setAttribute']('footnotesListStyle',_0x43d7d1,_0x35bd97),_0x342da7=!0x0));}return _0x342da7&&_0x1699c5['_updateFootnotesCounters'](_0x373c47),_0x342da7;});}['_defineFormatter'](){const {editor:_0x28642f}=this;_0x28642f['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x1105e3=>this['_formatFootnoteListValue'](_0x1105e3));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x530ad2,value:_0x34fa0a,digits:_0x54dbcc}){const _0x359bf3=_0x530ad2['getAttribute']('footnotesListStyle'),_0x8ba5f5=_0x530ad2['getAttribute']('footnotesListStart'),_0x3d1df4=Math['floor'](_0x34fa0a)+(_0x8ba5f5??0x1)-0x1;switch(_0x359bf3){case'decimal-leading-zero':return formatDecimalLeadingZeroFootnote(_0x3d1df4,Math['max'](0x2,_0x54dbcc));case'lower-alpha':case'lower-latin':return formatLatinFootnote(_0x3d1df4,!0x1);case'upper-alpha':case'upper-latin':return formatLatinFootnote(_0x3d1df4,!0x0);case'lower-roman':return formatRomanFootnote(_0x3d1df4,!0x1);case'upper-roman':return formatRomanFootnote(_0x3d1df4,!0x0);case'arabic-indic':return formatArabicIndicFootnote(_0x3d1df4);default:return String(_0x3d1df4);}}}function upcastFootnotesListStart(_0x22dc3d,_0x39308d,_0x2eedf2,_0x21e912){if(!_0x21e912['checkAttribute'](_0x39308d,'footnotesListStart'))return;let _0x45a2dc=0x1;const _0x4481a0=_0x2eedf2['consumable']['consume'](_0x22dc3d,{'attributes':'start'});if(_0x4481a0){const _0x340dcb=Number['parseInt'](_0x22dc3d['getAttribute']('start'),0xa);Number['isNaN'](_0x340dcb)||(_0x45a2dc=_0x340dcb);}!_0x4481a0&&_0x39308d['hasAttribute']('footnotesListStart')||_0x2eedf2['writer']['setAttribute']('footnotesListStart',_0x45a2dc,_0x39308d);}function upcastFootnotesListStyle(_0x2c065b,_0x45d374,_0x520b63,_0x1dc1fb){if(!_0x1dc1fb['checkAttribute'](_0x45d374,'footnotesListStyle'))return;let _0x20ad89='decimal',_0x426b73=!0x1;if(_0x520b63['consumable']['consume'](_0x2c065b,{'attributes':'type'})){const _0x477fe5={0x1:'decimal','a':'lower-latin','A':'upper-latin','i':'lower-roman','I':'upper-roman'}[_0x2c065b['getAttribute']('type')];_0x477fe5&&(_0x20ad89=_0x477fe5),_0x426b73=!0x0;}if(_0x520b63['consumable']['consume'](_0x2c065b,{'styles':'list-style-type'})){const _0x26ba7c=toCanonicalFootnotesListStyle(_0x2c065b['getStyle']('list-style-type'));_0x26ba7c&&(_0x20ad89=_0x26ba7c),_0x426b73=!0x0;}!_0x426b73&&_0x45d374['hasAttribute']('footnotesListStyle')||_0x520b63['writer']['setAttribute']('footnotesListStyle',_0x20ad89,_0x45d374);}function toCanonicalFootnotesListStyle(_0x15e37b){if('string'==typeof _0x15e37b){const _0x47c11c=FOOTNOTES_DEFINITION_STYLES_ALIASES[_0x15e37b];if(_0x47c11c)return _0x47c11c;if(FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x15e37b))return _0x15e37b;}return null;}function downcastFootnotesListStart(){return(_0x2725b8,_0x50ded7,_0x39f3c0)=>{if(!_0x39f3c0['consumable']['consume'](_0x50ded7['item'],_0x2725b8['name']))return;const _0x535b4a=getOlElementFromFootnotesDefinitions(_0x50ded7['item'],_0x39f3c0['mapper']),{attributeNewValue:_0x296976}=_0x50ded7;null==_0x296976||0x1===_0x296976?_0x39f3c0['writer']['removeAttribute']('start',_0x535b4a):_0x39f3c0['writer']['setAttribute']('start',String(_0x296976),_0x535b4a);};}function downcastFootnotesListStyle(){return(_0x3818e2,_0x50c6fc,_0x59bb25)=>{if(!_0x59bb25['consumable']['consume'](_0x50c6fc['item'],_0x3818e2['name']))return;const _0x1e9b44=getOlElementFromFootnotesDefinitions(_0x50c6fc['item'],_0x59bb25['mapper']),{attributeNewValue:_0x9d75cd}=_0x50c6fc;_0x9d75cd&&'decimal'!==_0x9d75cd?_0x59bb25['writer']['setStyle']('list-style-type',_0x9d75cd,_0x1e9b44):_0x59bb25['writer']['removeStyle']('list-style-type',_0x1e9b44);};}function getOlElementFromFootnotesDefinitions(_0x136488,_0x5a5ce6){const _0x5d14a7=_0x5a5ce6['toViewElement'](_0x136488);return Array['from'](_0x5d14a7['getChildren']())['find'](_0x29d917=>_0x29d917['is']('element','ol')&&_0x29d917['hasClass']('footnotes-list'));}class FootnotesDefinitionsPropertiesView extends View{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x3f7e31,{styleButtonViews:_0x4ea652,styleGridAriaLabel:_0x216ec9}){super(_0x3f7e31),(this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4ea652,_0x216ec9),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x4f1df5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4f1df5['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1a0b09['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x33a16c=_0x2ebe39=>_0x2ebe39['stopPropagation']();this['keystrokes']['set']('arrowright',_0x33a16c),this['keystrokes']['set']('arrowleft',_0x33a16c),this['keystrokes']['set']('arrowup',_0x33a16c),this['keystrokes']['set']('arrowdown',_0x33a16c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3ea647,_0x2d2b4c){const _0x480404=new View(this['locale']);return _0x480404['children']=_0x480404['createCollection'](),_0x480404['children']['addMany'](_0x3ea647),_0x480404['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2d2b4c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x480404['children']}),_0x480404['children']['delegate']('execute')['to'](this),_0x480404['focus']=function(){for(const _0x19dcf9 of this['children'])if(_0x19dcf9 instanceof ButtonView&&_0x19dcf9['isOn'])return void _0x19dcf9['focus']();this['children']['first']['focus']();},_0x480404['focusTracker']=new FocusTracker(),_0x480404['keystrokes']=new KeystrokeHandler(),_0x480404['render'](),_0x480404['keystrokes']['listenTo'](_0x480404['element']),this['children']['add'](_0x480404),_0x480404;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x208e85=this['_createStartIndexPropertyView'](),_0x32be42=[_0x208e85],_0x1a5cd8=new CollapsibleView(this['locale'],_0x32be42);return _0x1a5cd8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1a5cd8['buttonView']['bind']('isEnabled')['toMany'](_0x32be42,'isEnabled',(..._0x38b8d9)=>_0x38b8d9['some'](_0x1d4c16=>_0x1d4c16)),_0x1a5cd8['buttonView']['on']('change:isEnabled',(_0x59a4c9,_0x10486d,_0x536218)=>{_0x536218||(_0x1a5cd8['isCollapsed']=!0x0);}),this['children']['add'](_0x1a5cd8),[_0x208e85,_0x1a5cd8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x48c7ab=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x48c7ab['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x48c7ab['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x48c7ab['fieldView']['on']('input',()=>{const _0x33cfc5=_0x48c7ab['fieldView']['element'],_0x61451e=_0x33cfc5['valueAsNumber'];Number['isNaN'](_0x61451e)?_0x48c7ab['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x33cfc5['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x61451e}):_0x48c7ab['errorText']=t(_0x61451e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x48c7ab;}}class FootnotesPropertiesUI extends Plugin{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[ContextualBalloon,WidgetToolbarRepository];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x413a36}=this,{componentFactory:_0x3ae488}=_0x413a36['ui'];_0x413a36['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3ae488['add']('footnotesStyle',getFootnotesStyleDropdownViewCreator(_0x413a36));}['afterInit'](){const {editor:_0x145451}=this,{t:t}=_0x145451['locale'],_0x38a840=_0x145451['plugins']['get'](WidgetToolbarRepository),{defaultPositions:_0x4de24f}=BalloonPanelView;_0x38a840['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x145451['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x54eb7c=>{let _0x3454ee=_0x54eb7c['getFirstPosition']()?.['parent'];return _0x3454ee?.['is']('$text')&&(_0x3454ee=_0x3454ee['parent']),_0x3454ee?.['is']('element')?_0x3454ee['findAncestor'](isFootnotesDefinitionsWidget):null;},'positions':[_0x4de24f['southArrowNorth'],_0x4de24f['southArrowNorthMiddleWest'],_0x4de24f['southArrowNorthMiddleEast'],_0x4de24f['southArrowNorthWest'],_0x4de24f['southArrowNorthEast'],_0x4de24f['northArrowSouth'],_0x4de24f['northArrowSouthMiddleWest'],_0x4de24f['northArrowSouthMiddleEast'],_0x4de24f['northArrowSouthWest'],_0x4de24f['northArrowSouthEast'],_0x4de24f['viewportStickyNorth']]});}}function getFootnotesStyleDropdownViewCreator(_0x47cd10){return _0x5661c7=>{const {t:t}=_0x5661c7,_0x217219=_0x47cd10['commands']['get']('footnotesStyle'),_0x406bcb=createDropdown(_0x5661c7),{buttonView:_0x67ec31}=_0x406bcb;return _0x406bcb['class']='ck-footnotes-styles-dropdown',_0x406bcb['bind']('isEnabled')['to'](_0x217219,'isEnabled'),_0x67ec31['set']({'label':t('Footnotes\x20style'),'icon':IconFootnote,'tooltip':!0x0}),_0x406bcb['once']('change:isOpen',()=>{const _0x20fef2=createFootnotesDefinitionsPropertiesView({'editor':_0x47cd10,'dropdownView':_0x406bcb});_0x406bcb['panelView']['children']['add'](_0x20fef2);}),_0x406bcb;};}function createFootnotesDefinitionsPropertiesView({editor:_0x181e8f,dropdownView:_0x197236}){const {t:t}=_0x181e8f['locale'],_0x309487=t('Footnotes\x20definitions\x20styles'),_0x23f308=createFootnotesDefinitionStyleButtons(_0x181e8f),_0x3fca6a=new FootnotesDefinitionsPropertiesView(_0x181e8f['locale'],{'styleGridAriaLabel':_0x309487,'styleButtonViews':_0x23f308}),_0x5f522b=_0x181e8f['commands']['get']('footnotesStart');return _0x3fca6a['startIndexFieldView']['bind']('isEnabled')['to'](_0x5f522b),_0x3fca6a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x5f522b),_0x3fca6a['on']('footnotesListStart',(_0x5a249f,_0xe3faaa)=>{_0x181e8f['execute']('footnotesStart',{'value':_0xe3faaa['startIndex']});}),_0x3fca6a['delegate']('execute')['to'](_0x197236),_0x3fca6a;}function createFootnotesDefinitionStyleButtons(_0x1af643){const {t:t}=_0x1af643['locale'],_0x3a24be=_0x1af643['config']['get']('footnotes.footnotesProperties.listStyles'),_0x13f83f=[{'style':'decimal','label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'icon':IconListStyleDecimal},{'style':'decimal-leading-zero','label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'icon':IconListStyleDecimalLeadingZero},{'style':'lower-roman','label':t('Toggle\x20the\x20lower-roman\x20footnotes\x20style'),'tooltip':t('Lower-roman\x20footnotes'),'icon':IconListStyleLowerRoman},{'style':'upper-roman','label':t('Toggle\x20the\x20upper-roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'icon':IconListStyleUpperRoman},{'style':'lower-latin','label':t('Toggle\x20the\x20lower-latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'icon':IconListStyleLowerLatin},{'style':'upper-latin','label':t('Toggle\x20the\x20upper-latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'icon':IconListStyleUpperLatin},{'style':'arabic-indic','label':t('Toggle\x20the\x20arabic-indic\x20footnotes\x20style'),'tooltip':t('Arabic-indic\x20footnotes'),'icon':IconListStyleArabicIndic}];return _0x3a24be['map'](_0x31b57f=>{const _0x6ea0ba=toCanonicalFootnotesListStyle(_0x31b57f),_0x593a37=_0x13f83f['find'](_0x4ca65f=>_0x4ca65f['style']===_0x6ea0ba);return createFootnoteStyleButton(_0x1af643,_0x593a37);});}function createFootnoteStyleButton(_0x3442b2,_0x3c783c){const {locale:_0x439222}=_0x3442b2,{label:_0x2d1778,icon:_0x8aceb6,tooltip:_0x518ab0,style:_0x2d1a47}=_0x3c783c,_0x3616aa=_0x3442b2['commands']['get']('footnotesStyle'),_0x55bda2=new ButtonView(_0x439222);return _0x55bda2['set']({'label':_0x2d1778,'icon':_0x8aceb6,'tooltip':_0x518ab0}),_0x55bda2['bind']('isOn')['to'](_0x3616aa,'value',_0x4d98d4=>_0x4d98d4===_0x2d1a47),_0x55bda2['bind']('isEnabled')['to'](_0x3616aa,'isEnabled'),_0x55bda2['on']('execute',()=>{_0x3442b2['execute']('footnotesStyle',{'value':_0x2d1a47}),_0x3442b2['editing']['view']['focus']();}),_0x55bda2;}class FootnotesProperties extends Plugin{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const COPY_FORMAT_COMMAND_NAME='copyFormat',PASTE_FORMAT_COMMAND_NAME='pasteFormat',CURSOR_ACTIVE_CSS_CLASS='ck-format-painter-active';class CopyFormatCommand extends Command{constructor(_0x26f609){super(_0x26f609),this['value']=void 0x0,this['on']('change:isEnabled',(_0x26316d,_0x36cc67,_0x286167)=>{_0x286167||this['reset']();}),this['on']('change:value',()=>_0x26f609['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x5048ff=this['editor']['model'],_0x3d486a=_0x5048ff['document']['selection'];return Object['fromEntries'](Array['from'](_0x3d486a['getAttributes']())['filter'](([_0x36d2a9])=>_0x5048ff['schema']['getAttributeProperties'](_0x36d2a9)['isFormatting']));}}class PasteFormatCommand extends Command{constructor(_0x1f12a3){super(_0x1f12a3),this['_removeFormatCommand']=new RemoveFormatCommand(_0x1f12a3);}['execute'](_0x202855={}){const _0x44a3b3=this['editor']['model'],_0x8d8339=_0x44a3b3['document']['selection'],_0x37879c=Array['from'](_0x8d8339['getRanges']()),_0x2e073c=_0x8d8339['isCollapsed']?[this['_createRangeOnEntireWord'](_0x44a3b3,_0x8d8339)]:_0x37879c;_0x44a3b3['change'](_0x9b1806=>{_0x9b1806['setSelection'](_0x2e073c),this['_removeFormatCommand']['execute']();for(const _0x2bf479 in _0x202855)for(const _0x1b3f25 of _0x44a3b3['schema']['getValidRanges'](_0x2e073c,_0x2bf479))_0x9b1806['setAttribute'](_0x2bf479,_0x202855[_0x2bf479],_0x1b3f25);_0x9b1806['setSelection'](_0x37879c);});}['_createRangeOnEntireWord'](_0x26e88c,_0x177162){const _0x229139=_0x26e88c['createSelection'](_0x177162);_0x26e88c['modifySelection'](_0x229139,{'unit':'word','direction':'backward'});const _0x273609=_0x229139['getFirstPosition']();_0x26e88c['modifySelection'](_0x229139,{'unit':'word','direction':'forward'});const _0x523574=_0x229139['getLastPosition']();return _0x26e88c['createRange'](_0x273609,_0x523574);}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x49bbed=this['editor'];_0x49bbed['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x49bbed)),_0x49bbed['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x49bbed)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a6828=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12cc00;for(const _0x12016b in _0x4a6828){const _0x4ca697=_0x12016b,_0x21c203=_0x4a6828[_0x4ca697];if('formatPainterLicenseKeyValid'==_0x21c203||'formatPainterLicenseKeyInvalid'==_0x21c203||'formatPainterLicenseKeyExpired'==_0x21c203||'formatPainterLicenseKeyDomainLimit'==_0x21c203||'formatPainterLicenseKeyNotAllowed'==_0x21c203||'formatPainterLicenseKeyEvaluationLimit'==_0x21c203||'formatPainterLicenseKeyUsageLimit'==_0x21c203){delete _0x4a6828[_0x4ca697],_0x12cc00=_0x21c203,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x12cc00&&_0x4a6828['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x12cc00&&_0x4a6828['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x12cc00&&_0x4a6828['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x12cc00&&_0x4a6828['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x12cc00&&_0x4a6828['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x12cc00&&_0x4a6828['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x5a66c1,_0x2a9499){const t=_0x5a66c1['t'];switch(_0x2a9499){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x2a9499;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e8eac=this['editor'];_0x2e8eac['editing']['view']['addObserver'](ClickObserver),_0x2e8eac['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x2e8eac['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x2e8eac['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x2e8eac['ui']['componentFactory']['add']('formatPainter',_0x8cd516=>{const _0x9a64e=createDropdown(_0x8cd516,SplitButtonView),_0x5e3e83=_0x2e8eac['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x9a64e['buttonView']['set']({'label':getTranslation$b(_0x2e8eac['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x9a64e['class']='ck-format-painter-dropdown',_0x5e3e83&&(_0x9a64e['bind']('isEnabled')['to'](_0x5e3e83,'isEnabled'),this['listenTo'](_0x5e3e83,'change:isEnabled',(_0x36d687,_0x12305b,_0x5be23c)=>{_0x5be23c||this['_finishPainting']();}),_0x9a64e['buttonView']['bind']('isOn')['to'](_0x5e3e83,'value',_0x4da5e6=>!!_0x4da5e6),this['listenTo'](_0x2e8eac,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x5e3e83,'change:value',(_0x1d232e,_0xfa14d3,_0x28d818)=>{this['_toggleSpecialCursor'](!!_0x28d818);}));const _0x44a7a3=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x2e8eac['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x2e8eac['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x9a64e,new Collection([{'type':'switchbutton','model':_0x44a7a3}]),{'role':'menu'});const _0x235652=()=>{this['_copyFormatting'](),this['listenTo'](_0x1a0b09['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x44a7a3['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x9a64e,'execute',()=>{_0x44a7a3['isOn']=!_0x44a7a3['isOn'];}),this['listenTo'](_0x9a64e['buttonView'],'execute',()=>{_0x2e8eac['editing']['view']['focus'](),_0x9a64e['buttonView']['isOn']?this['_finishPainting']():_0x235652();}),_0x2e8eac['keystrokes']['set']('Ctrl+Alt+C',(_0x19d2f1,_0x4d6677)=>{_0x235652(),_0x44a7a3['isOn']=!0x0,_0x4d6677();},{'priority':'high'}),_0x2e8eac['keystrokes']['set']('Ctrl+Alt+V',(_0x369d10,_0x285f4c)=>{_0x9a64e['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x44a7a3['isOn']||this['_finishPainting'](),_0x285f4c());},{'priority':'high'}),_0x2e8eac['keystrokes']['set']('Esc',(_0x3395eb,_0x2a83ec)=>{_0x9a64e['buttonView']['isOn']&&(_0x44a7a3['isOn']=!0x1,this['_finishPainting'](),_0x2e8eac['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x2e8eac['locale'],'Painting\x20cancelled.')),_0x2a83ec());}),_0x9a64e;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x3d684b){this['editor']['editing']['view']['change'](_0xc6e749=>{for(const _0x520c6f of this['editor']['editing']['view']['document']['roots'])_0x3d684b?_0xc6e749['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0x520c6f):_0xc6e749['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0x520c6f);});}['_copyFormatting'](){const {editor:_0x2c140d}=this;_0x2c140d['execute'](COPY_FORMAT_COMMAND_NAME),_0x2c140d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x2c140d['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x553567}=this,_0x901af4=_0x553567['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x553567['execute'](PASTE_FORMAT_COMMAND_NAME,_0x901af4),_0x553567['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x553567['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0x1a0b09['window']['document'],'mouseup');}}async function checkLicense$b(_0x17a269){const _0xfa58e4=_0x59eb90([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x68d649=window[_0x59eb90([0x44,0x61,0x74,0x65])][_0x59eb90([0x6e,0x6f,0x77])](),_0x3b6120=_0x17a269[_0x59eb90([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x323dc8=new window[(_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1359be=>{_0x3b6120[_0x59eb90([0x6f,0x6e,0x63,0x65])](_0x59eb90([0x72,0x65,0x61,0x64,0x79]),_0x1359be);}),_0x3ce790={[_0x59eb90([0x6b,0x74,0x79])]:_0x59eb90([0x45,0x43]),[_0x59eb90([0x75,0x73,0x65])]:_0x59eb90([0x73,0x69,0x67]),[_0x59eb90([0x63,0x72,0x76])]:_0x59eb90([0x50,0x2d,0x32,0x35,0x36]),[_0x59eb90([0x78])]:_0x59eb90([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x59eb90([0x79])]:_0x59eb90([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x59eb90([0x61,0x6c,0x67])]:_0x59eb90([0x45,0x53,0x32,0x35,0x36])},_0x4b7f61=_0x3b6120[_0x59eb90([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59eb90([0x67,0x65,0x74])](_0x59eb90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4ec8ef=await(async function(){let _0x167840,_0x972d43=null,_0x48eb25=null;try{if(_0x4b7f61==_0x59eb90([0x47,0x50,0x4c]))return _0x59eb90([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x167840=(function(){const _0x4679f7=_0x4b7f61[_0x59eb90([0x73,0x70,0x6c,0x69,0x74])](_0x59eb90([0x2e]));if(0x3!=_0x4679f7[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2302de=_0x4679f7[0x1];return _0x2f54e0(_0x2302de);function _0x2f54e0(_0x2a3eb1){const _0x330573=_0x3b0b7e(_0x2a3eb1);return _0x330573&&_0x328be5()?_0x330573:null;function _0x328be5(){const _0x1da7ab=_0x330573[_0x59eb90([0x6a,0x74,0x69])],_0x2aba6c=window[_0x59eb90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1da7ab[_0x59eb90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1da7ab[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1aca53={..._0x330573,[_0x59eb90([0x6a,0x74,0x69])]:_0x1da7ab[_0x59eb90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1da7ab[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1aca53[_0x59eb90([0x76,0x63])],_0x5a0882(_0x1aca53)==_0x2aba6c;}}}()),!_0x167840)return _0x59eb90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x167840[_0x59eb90([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48eb25=function(_0x173c96,_0x447107){return new window[(_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x193e93=>{if(_0x100b3f())return _0x193e93(_0x59eb90([0x56,0x61,0x6c,0x69,0x64]));_0x57d9dd(),_0x3b6120[_0x59eb90([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59eb90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x305ff3=!0x1;const _0xe85610=uid();function _0x3a62d3(_0x28276d){return!!_0x28276d&&(typeof _0x28276d===_0x59eb90([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28276d===_0x59eb90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28276d[_0x59eb90([0x74,0x68,0x65,0x6e])]===_0x59eb90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28276d[_0x59eb90([0x63,0x61,0x74,0x63,0x68])]===_0x59eb90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18c66d(_0x5996c0){_0x3c3b1f(_0x5996c0)[_0x59eb90([0x74,0x68,0x65,0x6e])](_0x1db76b=>{if(!_0x1db76b||_0x1db76b[_0x59eb90([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59eb90([0x6f,0x6b]))return _0x59eb90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb86a36(_0x5a0882(_0xe85610+_0x447107))!=_0x1db76b[_0x59eb90([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59eb90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59eb90([0x56,0x61,0x6c,0x69,0x64]);})[_0x59eb90([0x74,0x68,0x65,0x6e])](_0x416f56=>(_0x593574(),_0x416f56),()=>{const _0x3eab73=_0x1ab293();return null==_0x3eab73?(_0x593574(),_0x59eb90([0x56,0x61,0x6c,0x69,0x64])):_0x59eb90(_0x68d649-_0x3eab73>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59eb90([0x74,0x68,0x65,0x6e])](_0x193e93)[_0x59eb90([0x63,0x61,0x74,0x63,0x68])](()=>{_0x193e93(_0x59eb90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31e6a8=0x36ee80;function _0x593574(){const _0x6f70f0=_0x59eb90([0x6c,0x6c,0x63,0x74,0x2d])+_0xb86a36(_0x5a0882(_0x173c96)),_0x39c620=_0x1f9af0(_0xb86a36(window[_0x59eb90([0x4d,0x61,0x74,0x68])][_0x59eb90([0x63,0x65,0x69,0x6c])](_0x68d649/_0x31e6a8)));window[_0x59eb90([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59eb90([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6f70f0,_0x39c620);}function _0x1ab293(){const _0x204b3c=_0x59eb90([0x6c,0x6c,0x63,0x74,0x2d])+_0xb86a36(_0x5a0882(_0x173c96)),_0x475e64=window[_0x59eb90([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59eb90([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x204b3c);return _0x475e64?window[_0x59eb90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f9af0(_0x475e64),0x10)*_0x31e6a8:null;}function _0x3c3b1f(_0x353eae){return new window[(_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46ce2c,_0x48d37f)=>{_0x353eae[_0x59eb90([0x74,0x68,0x65,0x6e])](_0x46ce2c,_0x48d37f),window[_0x59eb90([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48d37f,0x1d4c0);});}}_0x3b6120[_0x59eb90([0x6f,0x6e])](_0x59eb90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d14f2,_0x57e83e)=>{if(_0x57e83e[0x0]!=_0x173c96)return _0x193e93(_0x59eb90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57e83e[0x1]={..._0x57e83e[0x1],[_0x59eb90([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe85610};},{[_0x59eb90([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59eb90([0x68,0x69,0x67,0x68])}),_0x3b6120[_0x59eb90([0x6f,0x6e])](_0x59eb90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3af07b=>{_0x3a62d3(_0x3af07b[_0x59eb90([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x305ff3=!0x0,_0x18c66d(_0x3af07b[_0x59eb90([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59eb90([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59eb90([0x6c,0x6f,0x77])}),_0x323dc8[_0x59eb90([0x74,0x68,0x65,0x6e])](()=>{_0x305ff3||_0x193e93(_0x59eb90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100b3f(){return _0x3b6120[_0x59eb90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59eb90([0x76,0x69,0x65,0x77])][_0x59eb90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59eb90([0x61,0x75,0x74,0x6f]);}function _0x57d9dd(){_0x3b6120[_0x59eb90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59eb90([0x76,0x69,0x65,0x77])][_0x59eb90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59eb90([0x61,0x75,0x74,0x6f]);}}(_0x167840[_0x59eb90([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x167840[_0x59eb90([0x6a,0x74,0x69])]));const _0x3ffbf5=await(async function(){let _0x18dd16=!0x0;try{const _0x1d49a4=_0x4b7f61[_0x59eb90([0x73,0x70,0x6c,0x69,0x74])](_0x59eb90([0x2e])),[_0x4de6be,_0x4be1e3,_0xd2801f]=_0x1d49a4;return _0x406303(_0x4de6be),await _0x509c94(_0x4de6be,_0x4be1e3,_0xd2801f),_0x18dd16;}catch{return!0x1;}function _0x406303(_0x198ea8){const _0x5a6586=_0x3b0b7e(_0x198ea8);_0x5a6586&&_0x5a6586[_0x59eb90([0x61,0x6c,0x67])]==_0x59eb90([0x45,0x53,0x32,0x35,0x36])||(_0x18dd16=!0x1);}async function _0x509c94(_0xa63036,_0x4ac4f,_0x5b9a77){const _0xd08ea7=window[_0x59eb90([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59eb90([0x66,0x72,0x6f,0x6d])](_0x2c71c7(_0x5b9a77),_0x1ab3e3=>_0x1ab3e3[_0x59eb90([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x445cf4=new window[(_0x59eb90([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59eb90([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa63036+_0x59eb90([0x2e])+_0x4ac4f),_0x2e8e0a=window[_0x59eb90([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59eb90([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e8e0a)return;const _0x58192a=await _0x2e8e0a[_0x59eb90([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59eb90([0x6a,0x77,0x6b]),_0x3ce790,{[_0x59eb90([0x6e,0x61,0x6d,0x65])]:_0x59eb90([0x45,0x43,0x44,0x53,0x41]),[_0x59eb90([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59eb90([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59eb90([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e8e0a[_0x59eb90([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59eb90([0x6e,0x61,0x6d,0x65])]:_0x59eb90([0x45,0x43,0x44,0x53,0x41]),[_0x59eb90([0x68,0x61,0x73,0x68])]:{[_0x59eb90([0x6e,0x61,0x6d,0x65])]:_0x59eb90([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58192a,_0xd08ea7,_0x445cf4)||(_0x18dd16=!0x1);}}());return _0x3ffbf5?(function(){const _0x1e2066=_0x167840[_0x59eb90([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1e2066)return!0x1;if(_0x1e2066[_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb90([0x2a])))return!0x0;if(_0x1e2066[_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb90([0x46,0x50])))return!0x0;if(_0x1e2066[_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb90([0x50,0x50])))return!0x0;if(_0x1e2066[_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb90([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x59eb90([0x67,0x6c,0x6f,0x62])]&&window[_0x59eb90([0x67,0x6c,0x6f,0x62])][_0x59eb90([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0xea1891=[_0x59eb90([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59eb90([0x74,0x72,0x69,0x61,0x6c])][_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x167840[_0x59eb90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x68d649/0x3e8:0x6a03bf00;return _0x167840[_0x59eb90([0x65,0x78,0x70])]<_0xea1891;}())?_0x59eb90([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2ecb26=_0x167840[_0x59eb90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ecb26||0x0==_0x2ecb26[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x483eb7}=new URL(window[_0x59eb90([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ecb26[_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483eb7))return!0x0;const _0x1f02ff=_0x483eb7[_0x59eb90([0x73,0x70,0x6c,0x69,0x74])](_0x59eb90([0x2e]));return _0x2ecb26[_0x59eb90([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x492559=>_0x492559[_0x59eb90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59eb90([0x2a])))[_0x59eb90([0x6d,0x61,0x70])](_0x48cc68=>_0x48cc68[_0x59eb90([0x73,0x70,0x6c,0x69,0x74])](_0x59eb90([0x2e])))[_0x59eb90([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d152c=>_0x1d152c[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f02ff[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59eb90([0x6d,0x61,0x70])](_0x240769=>Array(_0x1f02ff[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x240769[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59eb90([0x66,0x69,0x6c,0x6c])](_0x240769[0x0]===_0x59eb90([0x2a])?_0x59eb90([0x2a]):'')[_0x59eb90([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x240769))[_0x59eb90([0x73,0x6f,0x6d,0x65])](_0x2ca105=>_0x1f02ff[_0x59eb90([0x65,0x76,0x65,0x72,0x79])]((_0x1fc309,_0x40d845)=>_0x2ca105[_0x40d845]===_0x1fc309||_0x2ca105[_0x40d845]===_0x59eb90([0x2a])));}())?(_0x167840[_0x59eb90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59eb90([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x972d43=function(_0x255037){const _0xb112d0=new window[(_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x121260=>setTimeout(_0x121260,0x93ecc)),_0x2a72aa=_0x323dc8[_0x59eb90([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e849a=>{let _0x1a3bd9=0x0;_0x3b6120[_0x59eb90([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb90([0x6f,0x6e])](_0x59eb90([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x219bda,_0x8084b5)=>{_0x8084b5[0x0][_0x59eb90([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a3bd9++,0x5e8==_0x1a3bd9&&(_0x1e849a(),_0x219bda[_0x59eb90([0x6f,0x66,0x66])]());});})),_0x15048d=[_0xb112d0,_0x2a72aa];return window[_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59eb90([0x72,0x61,0x63,0x65])](_0x15048d)[_0x59eb90([0x74,0x68,0x65,0x6e])](()=>_0x255037);}(_0x59eb90([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x972d43&&_0x48eb25)return new window[(_0x59eb90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10c109,_0x2c4a78)=>{_0x972d43[_0x59eb90([0x74,0x68,0x65,0x6e])](_0x10c109,_0x2c4a78),_0x48eb25[_0x59eb90([0x74,0x68,0x65,0x6e])](_0x5b9fd7=>{_0x5b9fd7!=_0x59eb90([0x56,0x61,0x6c,0x69,0x64])&&_0x10c109(_0x5b9fd7);},_0x2c4a78);});return _0x972d43||_0x48eb25||_0x59eb90([0x56,0x61,0x6c,0x69,0x64]);}())):_0x59eb90([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59eb90([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59eb90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59eb90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3b0b7e(_0x3abb4f){return _0x3abb4f[_0x59eb90([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59eb90([0x65,0x79]))?JSON[_0x59eb90([0x70,0x61,0x72,0x73,0x65])](_0x2c71c7(_0x3abb4f)):null;}function _0x2c71c7(_0x219312){return window[_0x59eb90([0x61,0x74,0x6f,0x62])](_0x219312[_0x59eb90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59eb90([0x2b]))[_0x59eb90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59eb90([0x2f])));}function _0x5a0882(_0x4afc10){let _0x28e95a=0x1505;function _0x7c1b64(_0x3e8d91){for(let _0x5f18ba=0x0;_0x5f18ba<_0x3e8d91[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f18ba++){const _0x52a666=_0x3e8d91[_0x59eb90([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f18ba);_0x28e95a=(_0x28e95a<<0x5)+_0x28e95a+_0x52a666,_0x28e95a&=_0x28e95a;}}return function _0x4c9117(_0x5445e6){Array[_0x59eb90([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5445e6)?_0x5445e6[_0x59eb90([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c9117):_0x5445e6&&typeof _0x5445e6==_0x59eb90([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59eb90([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5445e6)[_0x59eb90([0x73,0x6f,0x72,0x74])]()[_0x59eb90([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x243dbe,_0x217405])=>{_0x7c1b64(_0x243dbe),_0x4c9117(_0x217405);}):_0x7c1b64(window[_0x59eb90([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5445e6));}(_0x4afc10),_0x28e95a>>>0x0;}function _0xb86a36(_0xbf3988){return _0xbf3988[_0x59eb90([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59eb90([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59eb90([0x30]));}function _0x1f9af0(_0x3b0758){return _0x3b0758[_0x59eb90([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59eb90([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59eb90([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d815b(){}function _0x59eb90(_0x4efc28){return _0x4efc28['map'](_0x48378f=>String['fromCharCode'](_0x48378f))['join']('');}!function(_0x2522d0){const _0x45c8f=(function(){const _0x5e5348=window[_0x59eb90([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59eb90([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59eb90([0x6e,0x6f,0x77])]())[_0x59eb90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59eb90([0x2e]),'');let _0x5e216d=_0x59eb90([0x51]);for(let _0x4cfd6b=0x0;_0x4cfd6b<_0x5e5348[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cfd6b+=0x2){let _0xdd102c=window[_0x59eb90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5348[_0x59eb90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cfd6b,_0x4cfd6b+0x2));_0xdd102c>=_0xfa58e4[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdd102c-=_0xfa58e4[_0x59eb90([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e216d+=_0xfa58e4[_0xdd102c];}return _0x5e216d;}());_0x3b6120[_0x45c8f]=_0x59eb90([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2522d0,_0x2522d0!=_0x59eb90([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x323dc8,_0x3b6120[_0x59eb90([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb90([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d815b,_0x3b6120[_0x59eb90([0x6d,0x6f,0x64,0x65,0x6c])][_0x59eb90([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d815b,_0x3b6120[_0x59eb90([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59eb90([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4ec8ef);}class FormatPainter extends Plugin{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$a(_0x4378c3,_0x1b03dc){const t=_0x4378c3['t'];switch(_0x1b03dc){case'Import\x20from\x20Word':return t('Import\x20from\x20Word');case'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');case'Importing\x20Word\x20document':return t('Importing\x20Word\x20document');default:return _0x1b03dc;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe23120=this['editor'];_0xe23120['ui']['componentFactory']['add']('importWord',()=>{const _0x2a6632=this['_createButton'](FileDialogButtonView),_0x4ad29a=_0xe23120['commands']['get']('importWord');return _0x2a6632['bind']('isOn')['to'](_0x4ad29a,'isBusy'),_0x2a6632['tooltip']=!0x0,_0x2a6632;}),_0xe23120['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0x143f15){const _0x323014=this['editor'],_0x5f3c90=_0x323014['commands']['get']('importWord'),_0x36ed81=new _0x143f15(_0x323014['locale']),_0x1511d6=new SpinnerView();return _0x36ed81['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x36ed81['set']({'icon':IconImportWord}),_0x36ed81['bind']('isEnabled')['to'](_0x5f3c90),_0x36ed81['bind']('label')['to'](_0x5f3c90,'isBusy',_0x49fd7a=>getTranslation$a(_0x323014['locale'],_0x49fd7a?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x1511d6['bind']('isVisible')['to'](_0x5f3c90,'isBusy'),_0x36ed81['iconView']['bind']('isVisible')['to'](_0x5f3c90,'isBusy',_0x22b1e1=>!_0x22b1e1),_0x36ed81['children']['add'](_0x1511d6),_0x36ed81['on']('done',(_0x51a08c,_0xfc4c8d)=>{_0x323014['execute']('importWord',_0xfc4c8d[0x0],{}),_0x323014['editing']['view']['focus']();}),_0x36ed81;}}class ImportWordCommand extends Command{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0x21be40){super(_0x21be40),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x297455,_0x24eaf9)=>{const _0x3a62ad=new DataTransfer();_0x3a62ad['setData']('text/html',_0x24eaf9['html']);const _0x217382=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0x23b3ad=>{this['_importMarker']['stopListening'](),_0x23b3ad['setSelection'](_0x217382),_0x21be40['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x3a62ad});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x432364,_0x1b8a05={}){if(this['isBusy'])return Promise['resolve']();const _0x30abdc=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0x53e493,suffix:_0x17e22d}=this['editor']['config']['get']('mergeFields');_0x1b8a05['merge_fields']={'prefix':_0x53e493,'suffix':_0x17e22d};}const _0x1505cf={'url':_0x30abdc['converterUrl'],'file':_0x432364,'serviceConfig':{..._0x1b8a05,'formatting':_0x30abdc['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x1505cf)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0xa9ecd4=this['editor']['model'],_0x4c9043=_0xa9ecd4['schema'],_0x2bdec8=_0xa9ecd4['document']['selection'],_0x553a7c=first(_0x2bdec8['getSelectedBlocks']());return!!_0x553a7c&&_0x4c9043['checkChild'](_0x553a7c['parent'],'paragraph');}['_prepareForImport'](){const _0x47cd5b=this['editor'],_0x163be1=_0x47cd5b['model'],_0x11b364=_0x163be1['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x47cd5b['model']['createBatch']({'isUndoable':!0x0}),_0x163be1['enqueueChange'](this['_undoStepBatch'],_0x555ec9=>{_0x11b364['isCollapsed']||_0x163be1['deleteContent'](_0x11b364,{'leaveUnmerged':!0x0});const _0x4f0947=_0x11b364['getFirstPosition'](),_0x23afe3=first(_0x11b364['getSelectedBlocks']());let _0x5b25ae;_0x5b25ae=_0x23afe3['is']('element','paragraph')&&_0x23afe3['isEmpty']?_0x4f0947:_0x4f0947['isAtStart']?_0x163be1['createPositionBefore'](_0x23afe3):_0x4f0947['isAtEnd']?_0x163be1['createPositionAfter'](_0x23afe3):_0x555ec9['split'](_0x4f0947)['position'],this['_importMarker']=_0x555ec9['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x5b25ae)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x2c3792=this['editor']['model'];_0x2c3792['markers']['has'](this['_importMarker'])&&_0x2c3792['enqueueChange'](this['_undoStepBatch'],_0x9e1eff=>{_0x9e1eff['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}async['_sendImportRequest']({url:_0x38069d,file:_0x2ee6b4,serviceConfig:_0x582ca7}){const _0x191227=this['editor'],_0x4e2ac0=await _0x191227['plugins']['get']('ImportWordEditing')['getToken'](),_0x19c17d=new FormData();_0x19c17d['set']('config',JSON['stringify'](_0x582ca7)),_0x19c17d['set']('file',_0x2ee6b4);const _0x1c813c={'method':'POST','headers':{},'body':_0x19c17d,'signal':this['_abortController']['signal']};return _0x4e2ac0&&(_0x1c813c['headers']['Authorization']=_0x4e2ac0['value']),fetch(_0x38069d,_0x1c813c);}['_handleImportResponse'](_0x4d8e77){return _0x4d8e77['ok']?_0x4d8e77['json']()['then'](_0x2cd084=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0x2cd084,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0x44f864=this['editor'],_0x22c1c0=getTranslation$a(_0x44f864['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x44f864['plugins']['get']('Notification')['showWarning'](_0x22c1c0),logError('import-word-plugin-conversion-failed');}}class ImportWordEditing extends Plugin{['_token'];static get['pluginName'](){return'ImportWordEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Notification,ClipboardPipeline,CloudServices];}['init'](){const _0x278895=this['editor'],_0x5a9171=_0x278895['plugins']['get'](CloudServices);_0x278895['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x278895['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x278895['commands']['add']('importWord',new ImportWordCommand(_0x278895));const {tokenUrl:_0x251e5e}=_0x278895['config']['get']('importWord');if(_0x251e5e){const {tokenUrl:_0xd3e74b}=_0x278895['config']['get']('cloudServices')||{};this['_token']=_0x251e5e===_0xd3e74b?Promise['resolve'](_0x5a9171['token']):_0x5a9171['registerTokenUrl'](_0x251e5e);}else this['_token']=Promise['resolve'](null);}['getToken'](){return this['_token'];}}class ImportWord extends Plugin{static get['pluginName'](){return'ImportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ImportWordEditing,ImportWordUI];}}class LineHeightCommand extends Command{['refresh'](){const _0x4bed4b=this['editor']['model']['document'],_0x21b894=first(_0x4bed4b['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x21b894)&&this['_canHaveLineHeight'](_0x21b894),this['value']=this['isEnabled']&&_0x21b894['getAttribute']('lineHeight');}['execute'](_0x100d70={}){const _0x4dbdb2=this['editor']['model'],_0x1c7bc4=_0x4dbdb2['document']['selection'],_0x2bba00=_0x100d70['value'];_0x4dbdb2['change'](_0x4f35a5=>{const _0x14d77b=Array['from'](_0x1c7bc4['getSelectedBlocks']())['filter'](_0x3ddee0=>this['_canHaveLineHeight'](_0x3ddee0));for(const _0x9a8c1d of _0x14d77b)_0x2bba00?_0x4f35a5['setAttribute']('lineHeight',_0x2bba00,_0x9a8c1d):_0x4f35a5['removeAttribute']('lineHeight',_0x9a8c1d);});}['_canHaveLineHeight'](_0x58b1b9){return this['editor']['model']['schema']['checkAttribute'](_0x58b1b9,'lineHeight');}}const namedPresets={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function isLineHeightDefaultValue(_0x5a6685){return'string'==typeof _0x5a6685&&'default'===_0x5a6685['toLowerCase']();}function normalizeOptions(_0x11dd41){return _0x11dd41['options']['map'](_0x411261=>isLineHeightDefaultValue(_0x411261)?{'title':String(_0x11dd41['defaultValue']),'model':'default'}:('number'==typeof _0x411261&&(_0x411261=String(_0x411261)),'string'!=typeof _0x411261?_0x411261:parseFloat(_0x411261)?{'title':_0x411261,'model':_0x411261,'view':{'name':'span','styles':{'line-height':_0x411261}}}:findPreset(_0x411261)))['filter'](_0x27bf75=>void 0x0!==_0x27bf75);}function findPreset(_0x5b5578){return'string'==typeof _0x5b5578?namedPresets[_0x5b5578]:namedPresets[_0x5b5578['model']];}function buildDefinition(_0x3a6a3d,_0x3500f3){const _0x1ce0e2={'model':{'key':_0x3a6a3d,'values':[]},'view':{}};for(const _0x228e54 of _0x3500f3)'class'===_0x228e54['view']?.['key']?(_0x1ce0e2['model']['values']['push'](_0x228e54['model']),_0x1ce0e2['view'][_0x228e54['model']]={'key':'class','value':_0x228e54['view']['value']}):(_0x1ce0e2['model']['values']['push'](_0x228e54['model']),_0x1ce0e2['view'][_0x228e54['model']]={'key':'style','value':'line-height:'+_0x228e54['model']+';'});return _0x1ce0e2;}class LineHeightTodoListIntegration extends Plugin{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x34afbf,conversion:_0x5e73cd}=this['editor'];if(!_0x34afbf['has']('ListEditing')||!_0x34afbf['has']('TodoListEditing'))return;_0x34afbf['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x8b3c05,_0x55408b,_0x45a18c,_0x4812b3,_0x726bf3){'todo'==_0x726bf3['getAttribute']('listType')&&_0x55408b&&(_0x8b3c05['addClass']('ck-list-marker-line-height',_0x45a18c),_0x8b3c05['setStyle']('--ck-content-list-marker-line-height',_0x55408b,_0x45a18c));}}),_0x5e73cd['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x5e73cd['for']('upcast')['add'](_0x5a4abe=>{_0x5a4abe['on']('element:li',attributeUpcastConsumingConverter({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}function attributeUpcastConsumingConverter(_0xdf1013){const _0x53ca85=new Matcher(_0xdf1013);return(_0x4bdd19,_0xa693c9,_0x912690)=>{const _0x322a97=_0x53ca85['match'](_0xa693c9['viewItem']);if(!_0x322a97)return;const _0x1ea9e0=_0x322a97['match'];_0x1ea9e0['name']=!0x1,_0x912690['consumable']['consume'](_0xa693c9['viewItem'],_0x1ea9e0);};}class LineHeightEditing extends Plugin{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40e2cd){super(_0x40e2cd),_0x40e2cd['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x421e05=this['editor'];this['_validateConfig'](),_0x421e05['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x421e05['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x421e05['commands']['add']('lineHeight',new LineHeightCommand(_0x421e05)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x1a1ce2=this['editor'];if(!_0x1a1ce2['config']['get']('lineHeight.supportAllValues'))return;const _0x148557=_0x1a1ce2['config']['get']('lineHeight.options')['filter'](_0x4b6809=>'string'==typeof _0x4b6809&&(!isLineHeightDefaultValue(_0x4b6809)&&isNaN(Number(_0x4b6809))));if(_0x148557['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x148557});}['_prepareAnyValueConverters'](){const _0x2d75e0=this['editor'],_0x160b00=this['editor']['config']['get']('lineHeight.defaultValue');_0x2d75e0['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x398af0=>String(_0x398af0)===String(_0x160b00)?null:{'key':'style','value':{'line-height':_0x398af0}}}),_0x2d75e0['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x1e765d=>{let _0x2963b8=_0x1e765d['getStyle']('line-height');return isPercentageStyleValue(_0x2963b8)&&(_0x2963b8=String(Number(_0x2963b8['slice'](0x0,-0x1))/0x64)),String(_0x2963b8)===String(_0x160b00)?null:_0x2963b8;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x52ce76=this['editor'],_0x47f924=this['editor']['config']['get']('lineHeight.defaultValue'),_0x57ec42=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x425f91=>_0x425f91['model']));_0x52ce76['conversion']['attributeToAttribute'](_0x57ec42),_0x52ce76['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x54efe3=>{let _0x198355=_0x54efe3['getStyle']('line-height');return isPercentageStyleValue(_0x198355)&&(_0x198355=String(Number(_0x198355['slice'](0x0,-0x1))/0x64)),_0x198355===String(_0x47f924)?null:_0x57ec42['model']['values']['includes'](_0x198355)?_0x198355:null;}}});}}async function checkLicense$a(_0x2953c9){const _0x4e377c=_0x520d06([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x1386c5=window[_0x520d06([0x44,0x61,0x74,0x65])][_0x520d06([0x6e,0x6f,0x77])](),_0xf2ffbc=_0x2953c9[_0x520d06([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x107d29=new window[(_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f628=>{_0xf2ffbc[_0x520d06([0x6f,0x6e,0x63,0x65])](_0x520d06([0x72,0x65,0x61,0x64,0x79]),_0x12f628);}),_0x4281d3={[_0x520d06([0x6b,0x74,0x79])]:_0x520d06([0x45,0x43]),[_0x520d06([0x75,0x73,0x65])]:_0x520d06([0x73,0x69,0x67]),[_0x520d06([0x63,0x72,0x76])]:_0x520d06([0x50,0x2d,0x32,0x35,0x36]),[_0x520d06([0x78])]:_0x520d06([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x520d06([0x79])]:_0x520d06([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x520d06([0x61,0x6c,0x67])]:_0x520d06([0x45,0x53,0x32,0x35,0x36])},_0x573c22=_0xf2ffbc[_0x520d06([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x520d06([0x67,0x65,0x74])](_0x520d06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x187f88=await(async function(){let _0x298595,_0x2dd12f=null,_0x1e9a23=null;try{if(_0x573c22==_0x520d06([0x47,0x50,0x4c]))return _0x520d06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x298595=(function(){const _0x169714=_0x573c22[_0x520d06([0x73,0x70,0x6c,0x69,0x74])](_0x520d06([0x2e]));if(0x3!=_0x169714[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x17bb19=_0x169714[0x1];return _0x17f217(_0x17bb19);function _0x17f217(_0x309a91){const _0x558762=_0x5d6c78(_0x309a91);return _0x558762&&_0x3147c5()?_0x558762:null;function _0x3147c5(){const _0x269332=_0x558762[_0x520d06([0x6a,0x74,0x69])],_0x250f1f=window[_0x520d06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x269332[_0x520d06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269332[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x438e20={..._0x558762,[_0x520d06([0x6a,0x74,0x69])]:_0x269332[_0x520d06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x269332[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x438e20[_0x520d06([0x76,0x63])],_0x4d506f(_0x438e20)==_0x250f1f;}}}()),!_0x298595)return _0x520d06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x298595[_0x520d06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e9a23=function(_0x3c7702,_0x5123c4){return new window[(_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39331f=>{if(_0x168f6e())return _0x39331f(_0x520d06([0x56,0x61,0x6c,0x69,0x64]));_0x5f931e(),_0xf2ffbc[_0x520d06([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x520d06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5117fb=!0x1;const _0x3ae7e9=uid();function _0x5f05d7(_0x40e84e){return!!_0x40e84e&&(typeof _0x40e84e===_0x520d06([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40e84e===_0x520d06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40e84e[_0x520d06([0x74,0x68,0x65,0x6e])]===_0x520d06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40e84e[_0x520d06([0x63,0x61,0x74,0x63,0x68])]===_0x520d06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d96f7(_0x53a620){_0x2cb552(_0x53a620)[_0x520d06([0x74,0x68,0x65,0x6e])](_0x1c76dc=>{if(!_0x1c76dc||_0x1c76dc[_0x520d06([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x520d06([0x6f,0x6b]))return _0x520d06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x506d72(_0x4d506f(_0x3ae7e9+_0x5123c4))!=_0x1c76dc[_0x520d06([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x520d06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x520d06([0x56,0x61,0x6c,0x69,0x64]);})[_0x520d06([0x74,0x68,0x65,0x6e])](_0x457d5c=>(_0x401fa1(),_0x457d5c),()=>{const _0x57dc82=_0x22909c();return null==_0x57dc82?(_0x401fa1(),_0x520d06([0x56,0x61,0x6c,0x69,0x64])):_0x520d06(_0x1386c5-_0x57dc82>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x520d06([0x74,0x68,0x65,0x6e])](_0x39331f)[_0x520d06([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39331f(_0x520d06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x563775=0x36ee80;function _0x401fa1(){const _0x58f2f8=_0x520d06([0x6c,0x6c,0x63,0x74,0x2d])+_0x506d72(_0x4d506f(_0x3c7702)),_0x1a3cc3=_0x2b46ce(_0x506d72(window[_0x520d06([0x4d,0x61,0x74,0x68])][_0x520d06([0x63,0x65,0x69,0x6c])](_0x1386c5/_0x563775)));window[_0x520d06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x520d06([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58f2f8,_0x1a3cc3);}function _0x22909c(){const _0x8daecb=_0x520d06([0x6c,0x6c,0x63,0x74,0x2d])+_0x506d72(_0x4d506f(_0x3c7702)),_0x4a56a2=window[_0x520d06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x520d06([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8daecb);return _0x4a56a2?window[_0x520d06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b46ce(_0x4a56a2),0x10)*_0x563775:null;}function _0x2cb552(_0x17a0c3){return new window[(_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fa8bc,_0x2992f6)=>{_0x17a0c3[_0x520d06([0x74,0x68,0x65,0x6e])](_0x3fa8bc,_0x2992f6),window[_0x520d06([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2992f6,0x1d4c0);});}}_0xf2ffbc[_0x520d06([0x6f,0x6e])](_0x520d06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40de68,_0x35449a)=>{if(_0x35449a[0x0]!=_0x3c7702)return _0x39331f(_0x520d06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35449a[0x1]={..._0x35449a[0x1],[_0x520d06([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ae7e9};},{[_0x520d06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x520d06([0x68,0x69,0x67,0x68])}),_0xf2ffbc[_0x520d06([0x6f,0x6e])](_0x520d06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ba5b7=>{_0x5f05d7(_0x4ba5b7[_0x520d06([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5117fb=!0x0,_0x1d96f7(_0x4ba5b7[_0x520d06([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x520d06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x520d06([0x6c,0x6f,0x77])}),_0x107d29[_0x520d06([0x74,0x68,0x65,0x6e])](()=>{_0x5117fb||_0x39331f(_0x520d06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x168f6e(){return _0xf2ffbc[_0x520d06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x520d06([0x76,0x69,0x65,0x77])][_0x520d06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x520d06([0x61,0x75,0x74,0x6f]);}function _0x5f931e(){_0xf2ffbc[_0x520d06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x520d06([0x76,0x69,0x65,0x77])][_0x520d06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x520d06([0x61,0x75,0x74,0x6f]);}}(_0x298595[_0x520d06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x298595[_0x520d06([0x6a,0x74,0x69])]));const _0x1273a5=await(async function(){let _0x4a2a83=!0x0;try{const _0x5bb091=_0x573c22[_0x520d06([0x73,0x70,0x6c,0x69,0x74])](_0x520d06([0x2e])),[_0x5b5913,_0x207b01,_0x2bcd03]=_0x5bb091;return _0x4e6ce9(_0x5b5913),await _0x4d4380(_0x5b5913,_0x207b01,_0x2bcd03),_0x4a2a83;}catch{return!0x1;}function _0x4e6ce9(_0x249a27){const _0x45213c=_0x5d6c78(_0x249a27);_0x45213c&&_0x45213c[_0x520d06([0x61,0x6c,0x67])]==_0x520d06([0x45,0x53,0x32,0x35,0x36])||(_0x4a2a83=!0x1);}async function _0x4d4380(_0x10232c,_0x4c0af3,_0x196a29){const _0x4fe899=window[_0x520d06([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x520d06([0x66,0x72,0x6f,0x6d])](_0x467027(_0x196a29),_0xe56e50=>_0xe56e50[_0x520d06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x301c6f=new window[(_0x520d06([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x520d06([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10232c+_0x520d06([0x2e])+_0x4c0af3),_0x44eac5=window[_0x520d06([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x520d06([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44eac5)return;const _0x405b48=await _0x44eac5[_0x520d06([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x520d06([0x6a,0x77,0x6b]),_0x4281d3,{[_0x520d06([0x6e,0x61,0x6d,0x65])]:_0x520d06([0x45,0x43,0x44,0x53,0x41]),[_0x520d06([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x520d06([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x520d06([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44eac5[_0x520d06([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x520d06([0x6e,0x61,0x6d,0x65])]:_0x520d06([0x45,0x43,0x44,0x53,0x41]),[_0x520d06([0x68,0x61,0x73,0x68])]:{[_0x520d06([0x6e,0x61,0x6d,0x65])]:_0x520d06([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x405b48,_0x4fe899,_0x301c6f)||(_0x4a2a83=!0x1);}}());return _0x1273a5?(function(){const _0x1a828d=_0x298595[_0x520d06([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1a828d)return!0x1;if(_0x1a828d[_0x520d06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520d06([0x2a])))return!0x0;if(_0x1a828d[_0x520d06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520d06([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x53a238=[_0x520d06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x520d06([0x74,0x72,0x69,0x61,0x6c])][_0x520d06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x298595[_0x520d06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1386c5/0x3e8:0x6a03bf00;return _0x298595[_0x520d06([0x65,0x78,0x70])]<_0x53a238;}())?_0x520d06([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xae95e2=_0x298595[_0x520d06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xae95e2||0x0==_0xae95e2[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f690b}=new URL(window[_0x520d06([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xae95e2[_0x520d06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f690b))return!0x0;const _0x20dce2=_0x1f690b[_0x520d06([0x73,0x70,0x6c,0x69,0x74])](_0x520d06([0x2e]));return _0xae95e2[_0x520d06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x172d5b=>_0x172d5b[_0x520d06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520d06([0x2a])))[_0x520d06([0x6d,0x61,0x70])](_0x1b265a=>_0x1b265a[_0x520d06([0x73,0x70,0x6c,0x69,0x74])](_0x520d06([0x2e])))[_0x520d06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x167937=>_0x167937[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20dce2[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x520d06([0x6d,0x61,0x70])](_0x42dd60=>Array(_0x20dce2[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42dd60[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x520d06([0x66,0x69,0x6c,0x6c])](_0x42dd60[0x0]===_0x520d06([0x2a])?_0x520d06([0x2a]):'')[_0x520d06([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42dd60))[_0x520d06([0x73,0x6f,0x6d,0x65])](_0x65f915=>_0x20dce2[_0x520d06([0x65,0x76,0x65,0x72,0x79])]((_0x18c6b3,_0x3f7147)=>_0x65f915[_0x3f7147]===_0x18c6b3||_0x65f915[_0x3f7147]===_0x520d06([0x2a])));}())?(_0x298595[_0x520d06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x520d06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dd12f=function(_0x14ad60){const _0xb5f83=new window[(_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ba39f=>setTimeout(_0x8ba39f,0x93ecc)),_0x29ff6d=_0x107d29[_0x520d06([0x74,0x68,0x65,0x6e])](()=>new window[(_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583df9=>{let _0x4df187=0x0;_0xf2ffbc[_0x520d06([0x6d,0x6f,0x64,0x65,0x6c])][_0x520d06([0x6f,0x6e])](_0x520d06([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ea8ee,_0x41c4e0)=>{_0x41c4e0[0x0][_0x520d06([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4df187++,0x5e8==_0x4df187&&(_0x583df9(),_0x1ea8ee[_0x520d06([0x6f,0x66,0x66])]());});})),_0x4a4ffe=[_0xb5f83,_0x29ff6d];return window[_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x520d06([0x72,0x61,0x63,0x65])](_0x4a4ffe)[_0x520d06([0x74,0x68,0x65,0x6e])](()=>_0x14ad60);}(_0x520d06([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2dd12f&&_0x1e9a23)return new window[(_0x520d06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35703c,_0x486de6)=>{_0x2dd12f[_0x520d06([0x74,0x68,0x65,0x6e])](_0x35703c,_0x486de6),_0x1e9a23[_0x520d06([0x74,0x68,0x65,0x6e])](_0x2ef0ff=>{_0x2ef0ff!=_0x520d06([0x56,0x61,0x6c,0x69,0x64])&&_0x35703c(_0x2ef0ff);},_0x486de6);});return _0x2dd12f||_0x1e9a23||_0x520d06([0x56,0x61,0x6c,0x69,0x64]);}())):_0x520d06([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x520d06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x520d06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x520d06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5d6c78(_0x4b48ee){return _0x4b48ee[_0x520d06([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x520d06([0x65,0x79]))?JSON[_0x520d06([0x70,0x61,0x72,0x73,0x65])](_0x467027(_0x4b48ee)):null;}function _0x467027(_0xa5d8){return window[_0x520d06([0x61,0x74,0x6f,0x62])](_0xa5d8[_0x520d06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x520d06([0x2b]))[_0x520d06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x520d06([0x2f])));}function _0x4d506f(_0x2e9600){let _0x5b8178=0x1505;function _0xbead5c(_0x42bc0f){for(let _0xafd578=0x0;_0xafd578<_0x42bc0f[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xafd578++){const _0x4cad0c=_0x42bc0f[_0x520d06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xafd578);_0x5b8178=(_0x5b8178<<0x5)+_0x5b8178+_0x4cad0c,_0x5b8178&=_0x5b8178;}}return function _0x58d01f(_0xcf6265){Array[_0x520d06([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xcf6265)?_0xcf6265[_0x520d06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58d01f):_0xcf6265&&typeof _0xcf6265==_0x520d06([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x520d06([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xcf6265)[_0x520d06([0x73,0x6f,0x72,0x74])]()[_0x520d06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3636cb,_0x42ee74])=>{_0xbead5c(_0x3636cb),_0x58d01f(_0x42ee74);}):_0xbead5c(window[_0x520d06([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xcf6265));}(_0x2e9600),_0x5b8178>>>0x0;}function _0x506d72(_0x4caf87){return _0x4caf87[_0x520d06([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x520d06([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x520d06([0x30]));}function _0x2b46ce(_0x323e13){return _0x323e13[_0x520d06([0x73,0x70,0x6c,0x69,0x74])]('')[_0x520d06([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x520d06([0x6a,0x6f,0x69,0x6e])]('');}function _0xa91519(){}function _0x520d06(_0x2723db){return _0x2723db['map'](_0x2480de=>String['fromCharCode'](_0x2480de))['join']('');}!function(_0x16a7e0){const _0x34435a=(function(){const _0x3ec7a5=window[_0x520d06([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x520d06([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x520d06([0x6e,0x6f,0x77])]())[_0x520d06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x520d06([0x2e]),'');let _0x366a68=_0x520d06([0x50]);for(let _0x437305=0x0;_0x437305<_0x3ec7a5[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x437305+=0x2){let _0x131b8c=window[_0x520d06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ec7a5[_0x520d06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437305,_0x437305+0x2));_0x131b8c>=_0x4e377c[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x131b8c-=_0x4e377c[_0x520d06([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x366a68+=_0x4e377c[_0x131b8c];}return _0x366a68;}());_0xf2ffbc[_0x34435a]=_0x520d06([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16a7e0,_0x16a7e0!=_0x520d06([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x107d29,_0xf2ffbc[_0x520d06([0x6d,0x6f,0x64,0x65,0x6c])][_0x520d06([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa91519,_0xf2ffbc[_0x520d06([0x6d,0x6f,0x64,0x65,0x6c])][_0x520d06([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa91519,_0xf2ffbc[_0x520d06([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x520d06([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x187f88);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20e421={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x20e421),this['_registerMenuBarComponent'](_0x20e421),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x11b75e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x868879;for(const _0x4c61ca in _0x11b75e){const _0x46fcf7=_0x4c61ca,_0x4f8680=_0x11b75e[_0x46fcf7];if('lineHeightLicenseKeyValid'==_0x4f8680||'lineHeightLicenseKeyInvalid'==_0x4f8680||'lineHeightLicenseKeyExpired'==_0x4f8680||'lineHeightLicenseKeyDomainLimit'==_0x4f8680||'lineHeightLicenseKeyNotAllowed'==_0x4f8680||'lineHeightLicenseKeyEvaluationLimit'==_0x4f8680||'lineHeightLicenseKeyUsageLimit'==_0x4f8680){delete _0x11b75e[_0x46fcf7],_0x868879=_0x4f8680,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x868879&&_0x11b75e['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x868879&&_0x11b75e['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x868879&&_0x11b75e['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x868879&&_0x11b75e['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x868879&&_0x11b75e['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x868879&&_0x11b75e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x1e5d01=this['editor'],t=_0x1e5d01['t'],_0x3e7a2e=_0x1e5d01['config']['get']('lineHeight'),_0x156053={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x3e7a2e)['map'](_0x4f18a1=>{const _0x5a7ae4=_0x156053[_0x4f18a1['title']];return _0x5a7ae4&&_0x5a7ae4!=_0x4f18a1['title']&&(_0x4f18a1=Object['assign']({},_0x4f18a1,{'title':_0x5a7ae4})),_0x4f18a1;});}['_prepareListOptions'](){const _0xd4af22=this['editor']['commands']['get']('lineHeight'),_0x282ea3=this['editor']['config']['get']('lineHeight.defaultValue'),_0x10c128=this['_getLocalizedLineHeightOptions'](),_0x30137c=new Collection(),_0x2b39c1=_0x59fd4a=>'default'===_0x59fd4a||String(_0x282ea3)===_0x59fd4a;for(const _0x557426 of _0x10c128){const _0x50ec13={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x557426['title'],'withText':!0x0})};_0x2b39c1(_0x557426['model'])?(_0x50ec13['model']['bind']('isOn')['to'](_0xd4af22,'value',_0x215b2b=>!_0x215b2b),_0x50ec13['model']['commandParam']=void 0x0):(_0x50ec13['model']['bind']('isOn')['to'](_0xd4af22,'value',_0x23c578=>_0x23c578===_0x557426['model']),_0x50ec13['model']['commandParam']=_0x557426['model']),_0x30137c['add'](_0x50ec13);}if(this['_shouldRenderCustomValueOption']()){const _0x3b76b3=this['_getCustomValueOptionDefinition'](_0x10c128);_0x30137c['add'](_0x3b76b3);}return _0x30137c;}['_getCustomValueOptionDefinition'](_0x2bff21){const _0x2a271a=this['editor'],t=_0x2a271a['t'],_0x3a34a3=_0x2a271a['commands']['get']('lineHeight'),_0x3c3e36=_0x2bff21['map'](_0xa5a3a6=>_0xa5a3a6['model']),_0x156d64={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x156d64['model']['bind']('commandParam')['to'](_0x3a34a3,'value'),_0x156d64['model']['bind']('isOn')['to'](_0x3a34a3,'value',_0x31ee02=>!!_0x31ee02&&!_0x3c3e36['includes'](String(_0x31ee02))),_0x156d64['model']['bind']('label')['to'](_0x3a34a3,'value',_0x3422cc=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x3422cc))),_0x156d64;}['_registerToolbarComponent']({accessibleLabel:_0x54627c,options:_0x2fc615}){const _0x5b7ffb=this['editor'],_0x441cbd=_0x5b7ffb['commands']['get']('lineHeight');_0x5b7ffb['ui']['componentFactory']['add']('lineHeight',_0x43121c=>{const _0x3cd87c=createDropdown(_0x43121c);return addListToDropdown(_0x3cd87c,_0x2fc615,{'role':'menu','ariaLabel':_0x54627c}),_0x3cd87c['buttonView']['set']({'label':_0x54627c,'tooltip':!0x0,'icon':IconLineHeight}),_0x3cd87c['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x3cd87c['bind']('isEnabled')['to'](_0x441cbd),this['listenTo'](_0x3cd87c,'execute',_0x37bb10=>{_0x5b7ffb['execute'](_0x37bb10['source']['commandName'],{'value':_0x37bb10['source']['commandParam']}),_0x5b7ffb['editing']['view']['focus']();}),_0x3cd87c['once']('change:isOpen',()=>{const _0x5666d6=_0x3cd87c['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x3cd87c,_0x2fc615,_0x5666d6);}),_0x3cd87c;});}['_registerMenuBarComponent']({accessibleLabel:_0x503406,options:_0xfd5168}){const _0x57595e=this['editor'],_0x529d6a=_0x57595e['commands']['get']('lineHeight');_0x57595e['ui']['componentFactory']['add']('menuBar:lineHeight',_0x4f8975=>{const _0x41c90c=new MenuBarMenuView(_0x4f8975);_0x41c90c['buttonView']['set']({'label':_0x503406,'icon':IconLineHeight}),_0x41c90c['bind']('isEnabled')['to'](_0x529d6a);const _0xda188f=new MenuBarMenuListView(_0x4f8975);for(const _0x47c649 of _0xfd5168){const _0x3af3c3=new MenuBarMenuListItemView(_0x4f8975,_0x41c90c),_0x579f7e=new MenuBarMenuListItemButtonView(_0x4f8975);_0x579f7e['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x579f7e['bind'](...Object['keys'](_0x47c649['model']))['to'](_0x47c649['model']),_0x579f7e['delegate']('execute')['to'](_0x41c90c),_0x579f7e['on']('execute',()=>{_0x57595e['execute'](_0x47c649['model']['commandName'],{'value':_0x47c649['model']['commandParam']}),_0x57595e['editing']['view']['focus']();}),_0x3af3c3['children']['add'](_0x579f7e),_0xda188f['items']['add'](_0x3af3c3);}return _0x41c90c['panelView']['children']['add'](_0xda188f),this['_attachCustomOptionVisibilityHandler'](_0x41c90c,_0xfd5168,_0xda188f),_0x41c90c;});}['_attachCustomOptionVisibilityHandler'](_0x1edaed,_0x17b701,_0x3c30c5){if(!this['_shouldRenderCustomValueOption']())return;const _0x5e4718=()=>{if(!_0x1edaed['isOpen'])return;_0x3c30c5['items']['last']['isVisible']=Boolean(_0x17b701['last']['model']['isOn']);};_0x5e4718(),_0x1edaed['on']('change:isOpen',()=>{_0x5e4718();});}}class LineHeight extends Plugin{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class MultiLevelListCommand extends Command{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x456b37,_0x1a5cf8,_0x759c2){super(_0x456b37),this['defaultListMarkerStyle']=_0x1a5cf8,this['_listDefinitions']=_0x759c2,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x37ea53={}){const _0x565a66=this['editor']['model'],_0x54975a=_0x37ea53['listMarkerStyle']||this['defaultListMarkerStyle'];_0x565a66['change'](()=>{const _0x5bed74=this['_getListTypeFromListMarkerStyle'](_0x54975a);if(!_0x5bed74)return;const _0x41a218=_0x5bed74+'List';this['editor']['execute'](_0x41a218,{'additionalAttributes':{'listMarkerStyle':_0x54975a}});});}['_getValue'](){const _0x24461c=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x24461c)?_0x24461c['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x4dace0=this['editor'],_0x19078=_0x4dace0['commands']['get']('customNumberedList'),_0x5333b1=_0x4dace0['commands']['get']('customBulletedList');return _0x19078['isEnabled']||_0x5333b1['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x2b3f5b){const _0x3d367a=this['_listDefinitions']['find'](_0x8bc0f=>_0x8bc0f['listMarkerStyle']==_0x2b3f5b);return _0x3d367a?_0x3d367a['listType']:null;}}class MultiLevelListEditing extends Plugin{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ListEditing];}constructor(_0x56a293){super(_0x56a293);const _0x16cce6=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x434b22=>_0x434b22+'.'}]},..._0x16cce6];}['init'](){const _0x3c998d=this['editor'],_0x129caf=_0x3c998d['model'],_0x9afb55=_0x3c998d['editing']['view'],_0x1420f0=_0x3c998d['plugins']['get'](ListEditing);_0x3c998d['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x3c998d,'legal',this['_listDefinitions'])),_0x129caf['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x129caf['schema']['addAttributeCheck']((_0x296dfa,_0xc92e10)=>{const _0x19bdcf=_0x296dfa['last'];if('listMarker'==_0xc92e10||'listMarkerStyle'==_0xc92e10)return!(!_0x19bdcf['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x499395=>_0x499395['listType']==_0x19bdcf['getAttribute']('listType')))&&void 0x0;});for(const _0x29e2ec of this['_listDefinitions'])_0x3c998d['conversion']['for']('upcast')['add'](_0x3cef43=>{_0x3cef43['on']('element:'+('customNumbered'==_0x29e2ec['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x29e2ec,_0x129caf['schema']),{'priority':'low'});}),_0x1420f0['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0xe45732,_0x5ea6f3,_0x269284){_0x5ea6f3==_0x29e2ec['listMarkerStyle']?(_0xe45732['addClass'](['multi-level-list',_0x29e2ec['className']],_0x269284),_0xe45732['setStyle']('list-style-type','none',_0x269284)):(_0xe45732['removeClass'](['multi-level-list',_0x29e2ec['className']],_0x269284),_0xe45732['removeStyle']('list-style-type',_0x269284));}}),_0x1420f0['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x3c740d,_0x585143,{dataPipeline:_0x5b1f35}){if(!_0x585143['hasAttribute']('listMarker'))return null;if(_0x585143['getAttribute']('listType')!=_0x29e2ec['listType']||_0x585143['getAttribute']('listMarkerStyle')!=_0x29e2ec['listMarkerStyle'])return null;const _0x3e1421=String(_0x585143['getAttribute']('listMarker')),_0x2eb532=this['canInjectMarkerIntoElement'](_0x585143);return _0x3c740d['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5b1f35&&{'contenteditable':'false','data-multi-level-list-marker':_0x3e1421}},function(_0x121817){const _0x100d8d=this['toDomElement'](_0x121817);return _0x2eb532?(_0x100d8d['appendChild'](createElement(_0x121817,'span',{},_0x5b1f35?_0x121817['createTextNode'](_0x3e1421):[])),_0x100d8d['appendChild'](_0x121817['createTextNode']('\u00a0'))):_0x5b1f35&&_0x100d8d['appendChild'](_0x121817['createTextNode'](_0x3e1421)),_0x100d8d;});},'canInjectMarkerIntoElement':_0x8a9105=>_0x129caf['schema']['checkChild'](_0x8a9105,'$text')&&_0x129caf['schema']['checkChild'](_0x8a9105,'$inlineObject')&&!_0x129caf['schema']['isLimit'](_0x8a9105)&&_0x8a9105['getAttribute']('listType')==_0x29e2ec['listType']&&_0x8a9105['getAttribute']('listMarkerStyle')==_0x29e2ec['listMarkerStyle']});_0x3c998d['conversion']['for']('upcast')['add'](_0x207dd2=>{_0x207dd2['on']('element:span',multiLevelListMarkerUpcastConverter(_0x9afb55));}),_0x1420f0['on']('postFixer',(_0xe714f9,{listNodes:_0x2ce63f,writer:_0x57debe})=>{const _0x4eb192=[];for(const {node:_0x5ebd76,previousNodeInList:_0x276339}of _0x2ce63f){const _0x13e463=_0x5ebd76['getAttribute']('listType'),_0x56ebe7=_0x5ebd76['getAttribute']('listMarkerStyle')||('customNumbered'==_0x13e463?'legal':void 0x0),_0xcf9c54=this['_listDefinitions']['find'](_0x5d1d7d=>_0x5d1d7d['listType']==_0x13e463&&_0x5d1d7d['listMarkerStyle']==_0x56ebe7);if('customNumbered'!=_0x13e463&&'customBulleted'!=_0x13e463&&(_0x5ebd76['hasAttribute']('listMarker')&&(_0x57debe['removeAttribute']('listMarker',_0x5ebd76),_0xe714f9['return']=!0x0),_0x5ebd76['hasAttribute']('listMarkerStyle')&&(_0x57debe['removeAttribute']('listMarkerStyle',_0x5ebd76),_0xe714f9['return']=!0x0)),!_0xcf9c54){'customBulleted'!=_0x13e463||_0x56ebe7||(_0x57debe['setAttribute']('listType','bulleted',_0x5ebd76),_0xe714f9['return']=!0x0);continue;}_0x5ebd76['hasAttribute']('listMarkerStyle')||(_0x57debe['setAttribute']('listMarkerStyle',_0x56ebe7,_0x5ebd76),_0xe714f9['return']=!0x0);const _0x137d3a=_0x5ebd76['getAttribute']('listIndent');if(_0x276339&&_0x276339['getAttribute']('listItemId')==_0x5ebd76['getAttribute']('listItemId'))continue;_0x4eb192['length']=_0x137d3a+0x1,_0x276339||_0x4eb192[_0x137d3a]?_0x276339&&_0x276339['getAttribute']('listType')!=_0xcf9c54['listType']?_0x4eb192[_0x137d3a]=0x1:_0x4eb192[_0x137d3a]++:_0x4eb192[_0x137d3a]=_0x5ebd76['getAttribute']('listStart')||0x1;const _0x4fae41=generateMarker(_0x137d3a,_0xcf9c54,_0x4eb192);_0x5ebd76['getAttribute']('listMarker')!=_0x4fae41&&(_0x57debe['setAttribute']('listMarker',_0x4fae41,_0x5ebd76),_0xe714f9['return']=!0x0);}}),_0x1420f0['on']('checkElement',(_0x4150a1,{modelElement:_0x20c5af,viewElement:_0x37078f})=>{const _0x5c5daa=_0x20c5af['getAttribute']('listType');if('customNumbered'!=_0x5c5daa&&'customBulleted'!=_0x5c5daa)return;if(_0x129caf['schema']['checkChild'](_0x20c5af,'$text'))return;const _0x402bbb=_isFirstBlockOfListItem(_0x20c5af);let _0x363bbe=!0x1;const _0x5600bc=_0x9afb55['createPositionBefore'](_0x37078f)['getWalker']({'direction':'backward'});for(const {item:_0x41e3a7}of _0x5600bc)if(_0x41e3a7['is']('element')){if(_0x3c998d['editing']['mapper']['toModelElement'](_0x41e3a7))break;if(_0x41e3a7['getCustomProperty']('listItemMarker')){_0x363bbe=!0x0;break;}}_0x363bbe!=_0x402bbb&&(_0x4150a1['return']=!0x0,_0x4150a1['stop']());});const _0x28a5ff=_0x3c998d['editing']['view']['document'];this['listenTo'](_0x28a5ff,'clipboardOutput',(_0x13f485,_0xbe1fb4)=>{const _0x1ea8ed=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0x1ee9ab=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x5c2431=new ViewUpcastWriter(_0xbe1fb4['content']['document']),_0x1d9521=[];for(const _0x16d9ee of _0x5c2431['createRangeIn'](_0xbe1fb4['content'])['getItems']())_0x16d9ee['is']('element')&&_0x1ea8ed['match'](_0x16d9ee)&&_0x1d9521['push'](_0x16d9ee),_0x16d9ee['is']('element')&&_0x1ee9ab['match'](_0x16d9ee)&&_0x5c2431['removeStyle']('list-style-type',_0x16d9ee);for(const _0x1b7243 of _0x1d9521)_0x5c2431['remove'](_0x1b7243);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0x522836,_0x31df2d,_0x35afbd){let _0x4d08e3=_0x31df2d['listMarkers'][_0x522836%_0x31df2d['listMarkers']['length']];if(void 0x0===_0x4d08e3['showMarkerPath']||_0x4d08e3['showMarkerPath'])return _0x35afbd['slice'](0x0,_0x522836+0x1)['map']((_0x3a1dfa,_0x47e963)=>(_0x4d08e3=_0x31df2d['listMarkers'][_0x47e963%_0x31df2d['listMarkers']['length']],getMarkerString(_0x4d08e3['marker'],_0x3a1dfa)))['join']('');{const _0x5d4b20=_0x35afbd[_0x35afbd['length']-0x1];return getMarkerString(_0x4d08e3['marker'],_0x5d4b20);}}function getMarkerString(_0x114bc2,_0xf8f331){return'function'==typeof _0x114bc2?_0x114bc2(_0xf8f331):_0x114bc2;}function multiLevelListUpcastConverter(_0x534732,_0x196d41){return(_0x4c80a0,_0x34346a,_0x50b4f6)=>{const _0x331105=_0x34346a['viewItem'];if(_0x34346a['modelRange']||Object['assign'](_0x34346a,_0x50b4f6['convertChildren'](_0x34346a['viewItem'],_0x34346a['modelCursor'])),!_0x50b4f6['consumable']['test'](_0x331105,{'classes':_0x534732['className']}))return;const _0x54f67f=Array['from'](_0x34346a['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x353b65=>_0x196d41['checkAttribute'](_0x353b65,'listItemId'));if(!_0x54f67f['length'])return;_0x50b4f6['consumable']['consume'](_0x331105,{'classes':_0x534732['className']}),_0x50b4f6['consumable']['consume'](_0x331105,{'classes':'multi-level-list'}),_0x50b4f6['consumable']['consume'](_0x331105,{'styles':'list-style-type'});const _0x4e507d=_0x54f67f[0x0]['getAttribute']('listIndent');for(const _0x4fe790 of _0x54f67f)_0x4fe790['getAttribute']('listIndent')==_0x4e507d&&(_0x50b4f6['writer']['setAttribute']('listType',_0x534732['listType'],_0x4fe790),_0x50b4f6['writer']['setAttribute']('listMarkerStyle',_0x534732['listMarkerStyle'],_0x4fe790));};}function multiLevelListMarkerUpcastConverter(_0x48b86e){return(_0xeb9bac,_0x357fda,{writer:_0x22ffee,consumable:_0x3f0c6b})=>{const _0x4fe39d=_0x357fda['modelCursor'],_0x48c000=_0x4fe39d['parent'],_0x39cc62=_0x357fda['viewItem'];if(_0x3f0c6b['consume'](_0x39cc62,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x4fe39d['isAtStart']&&_0x48c000['hasAttribute']('listType')&&_0x39cc62['childCount']>0x0){const _0x1589c3=_0x48b86e['createRangeIn'](_0x39cc62);let _0x36dd03='';for(const _0x533dd7 of _0x1589c3['getItems']())_0x533dd7['is']('$textProxy')?(_0x36dd03+=_0x533dd7['data']['trim'](),_0x3f0c6b['consume'](_0x533dd7['textNode'])):_0x3f0c6b['consume'](_0x533dd7,{'name':!0x0});_0x22ffee['setAttribute']('listMarker',_0x36dd03['trim'](),_0x48c000);}};}async function checkLicense$9(_0x4140f8){const _0x2170f0=_0x2bae40([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0x318056=window[_0x2bae40([0x44,0x61,0x74,0x65])][_0x2bae40([0x6e,0x6f,0x77])](),_0x30137e=_0x4140f8[_0x2bae40([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd89647=new window[(_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f141e=>{_0x30137e[_0x2bae40([0x6f,0x6e,0x63,0x65])](_0x2bae40([0x72,0x65,0x61,0x64,0x79]),_0x5f141e);}),_0x4cbb4d={[_0x2bae40([0x6b,0x74,0x79])]:_0x2bae40([0x45,0x43]),[_0x2bae40([0x75,0x73,0x65])]:_0x2bae40([0x73,0x69,0x67]),[_0x2bae40([0x63,0x72,0x76])]:_0x2bae40([0x50,0x2d,0x32,0x35,0x36]),[_0x2bae40([0x78])]:_0x2bae40([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2bae40([0x79])]:_0x2bae40([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2bae40([0x61,0x6c,0x67])]:_0x2bae40([0x45,0x53,0x32,0x35,0x36])},_0x4da223=_0x30137e[_0x2bae40([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bae40([0x67,0x65,0x74])](_0x2bae40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x2ec4ef=await(async function(){let _0x1b2d39,_0x1eef85=null,_0x150722=null;try{if(_0x4da223==_0x2bae40([0x47,0x50,0x4c]))return _0x2bae40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b2d39=(function(){const _0x28518e=_0x4da223[_0x2bae40([0x73,0x70,0x6c,0x69,0x74])](_0x2bae40([0x2e]));if(0x3!=_0x28518e[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1e987c=_0x28518e[0x1];return _0x3c5825(_0x1e987c);function _0x3c5825(_0x30be25){const _0x443f87=_0x1858c8(_0x30be25);return _0x443f87&&_0x29c730()?_0x443f87:null;function _0x29c730(){const _0x10e262=_0x443f87[_0x2bae40([0x6a,0x74,0x69])],_0x20ea75=window[_0x2bae40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e262[_0x2bae40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10e262[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3baa34={..._0x443f87,[_0x2bae40([0x6a,0x74,0x69])]:_0x10e262[_0x2bae40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10e262[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3baa34[_0x2bae40([0x76,0x63])],_0x23f666(_0x3baa34)==_0x20ea75;}}}()),!_0x1b2d39)return _0x2bae40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1b2d39[_0x2bae40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x150722=function(_0x2722c1,_0x3a7cd4){return new window[(_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x398f40=>{if(_0x182c36())return _0x398f40(_0x2bae40([0x56,0x61,0x6c,0x69,0x64]));_0x1d9dd9(),_0x30137e[_0x2bae40([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bae40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x96a51e=!0x1;const _0x2d8114=uid();function _0x2218ce(_0x2a518a){return!!_0x2a518a&&(typeof _0x2a518a===_0x2bae40([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a518a===_0x2bae40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a518a[_0x2bae40([0x74,0x68,0x65,0x6e])]===_0x2bae40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a518a[_0x2bae40([0x63,0x61,0x74,0x63,0x68])]===_0x2bae40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27c4e8(_0x1b2e8d){_0x21d074(_0x1b2e8d)[_0x2bae40([0x74,0x68,0x65,0x6e])](_0x1a4a7f=>{if(!_0x1a4a7f||_0x1a4a7f[_0x2bae40([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bae40([0x6f,0x6b]))return _0x2bae40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42033f(_0x23f666(_0x2d8114+_0x3a7cd4))!=_0x1a4a7f[_0x2bae40([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bae40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bae40([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bae40([0x74,0x68,0x65,0x6e])](_0x562e95=>(_0x571a5b(),_0x562e95),()=>{const _0x3dacd5=_0x36414e();return null==_0x3dacd5?(_0x571a5b(),_0x2bae40([0x56,0x61,0x6c,0x69,0x64])):_0x2bae40(_0x318056-_0x3dacd5>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bae40([0x74,0x68,0x65,0x6e])](_0x398f40)[_0x2bae40([0x63,0x61,0x74,0x63,0x68])](()=>{_0x398f40(_0x2bae40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x451be8=0x36ee80;function _0x571a5b(){const _0x22c5c5=_0x2bae40([0x6c,0x6c,0x63,0x74,0x2d])+_0x42033f(_0x23f666(_0x2722c1)),_0x3955a3=_0x5de045(_0x42033f(window[_0x2bae40([0x4d,0x61,0x74,0x68])][_0x2bae40([0x63,0x65,0x69,0x6c])](_0x318056/_0x451be8)));window[_0x2bae40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bae40([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22c5c5,_0x3955a3);}function _0x36414e(){const _0x29f63c=_0x2bae40([0x6c,0x6c,0x63,0x74,0x2d])+_0x42033f(_0x23f666(_0x2722c1)),_0x5502a6=window[_0x2bae40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bae40([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29f63c);return _0x5502a6?window[_0x2bae40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5de045(_0x5502a6),0x10)*_0x451be8:null;}function _0x21d074(_0x491948){return new window[(_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x930166,_0x344e54)=>{_0x491948[_0x2bae40([0x74,0x68,0x65,0x6e])](_0x930166,_0x344e54),window[_0x2bae40([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x344e54,0x1d4c0);});}}_0x30137e[_0x2bae40([0x6f,0x6e])](_0x2bae40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f4c6e,_0x464ed9)=>{if(_0x464ed9[0x0]!=_0x2722c1)return _0x398f40(_0x2bae40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x464ed9[0x1]={..._0x464ed9[0x1],[_0x2bae40([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d8114};},{[_0x2bae40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bae40([0x68,0x69,0x67,0x68])}),_0x30137e[_0x2bae40([0x6f,0x6e])](_0x2bae40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ed470=>{_0x2218ce(_0x1ed470[_0x2bae40([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x96a51e=!0x0,_0x27c4e8(_0x1ed470[_0x2bae40([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bae40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bae40([0x6c,0x6f,0x77])}),_0xd89647[_0x2bae40([0x74,0x68,0x65,0x6e])](()=>{_0x96a51e||_0x398f40(_0x2bae40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x182c36(){return _0x30137e[_0x2bae40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bae40([0x76,0x69,0x65,0x77])][_0x2bae40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bae40([0x61,0x75,0x74,0x6f]);}function _0x1d9dd9(){_0x30137e[_0x2bae40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bae40([0x76,0x69,0x65,0x77])][_0x2bae40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bae40([0x61,0x75,0x74,0x6f]);}}(_0x1b2d39[_0x2bae40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b2d39[_0x2bae40([0x6a,0x74,0x69])]));const _0xea4bfb=await(async function(){let _0x4871e6=!0x0;try{const _0x25f4df=_0x4da223[_0x2bae40([0x73,0x70,0x6c,0x69,0x74])](_0x2bae40([0x2e])),[_0x1b105d,_0x4d92f4,_0x22d613]=_0x25f4df;return _0x225a73(_0x1b105d),await _0x4f9f61(_0x1b105d,_0x4d92f4,_0x22d613),_0x4871e6;}catch{return!0x1;}function _0x225a73(_0x3d9acd){const _0x549cdc=_0x1858c8(_0x3d9acd);_0x549cdc&&_0x549cdc[_0x2bae40([0x61,0x6c,0x67])]==_0x2bae40([0x45,0x53,0x32,0x35,0x36])||(_0x4871e6=!0x1);}async function _0x4f9f61(_0x54c56c,_0x1aa125,_0x19ea23){const _0x236ca0=window[_0x2bae40([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bae40([0x66,0x72,0x6f,0x6d])](_0x35f3aa(_0x19ea23),_0x2cfcc7=>_0x2cfcc7[_0x2bae40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56d7d5=new window[(_0x2bae40([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bae40([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54c56c+_0x2bae40([0x2e])+_0x1aa125),_0x330830=window[_0x2bae40([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bae40([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x330830)return;const _0x26de6f=await _0x330830[_0x2bae40([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bae40([0x6a,0x77,0x6b]),_0x4cbb4d,{[_0x2bae40([0x6e,0x61,0x6d,0x65])]:_0x2bae40([0x45,0x43,0x44,0x53,0x41]),[_0x2bae40([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bae40([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bae40([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x330830[_0x2bae40([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bae40([0x6e,0x61,0x6d,0x65])]:_0x2bae40([0x45,0x43,0x44,0x53,0x41]),[_0x2bae40([0x68,0x61,0x73,0x68])]:{[_0x2bae40([0x6e,0x61,0x6d,0x65])]:_0x2bae40([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26de6f,_0x236ca0,_0x56d7d5)||(_0x4871e6=!0x1);}}());return _0xea4bfb?(function(){const _0x5d5491=_0x1b2d39[_0x2bae40([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5d5491)return!0x1;if(_0x5d5491[_0x2bae40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bae40([0x2a])))return!0x0;if(_0x5d5491[_0x2bae40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bae40([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0xcfa408=[_0x2bae40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bae40([0x74,0x72,0x69,0x61,0x6c])][_0x2bae40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b2d39[_0x2bae40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x318056/0x3e8:0x6a03bf00;return _0x1b2d39[_0x2bae40([0x65,0x78,0x70])]<_0xcfa408;}())?_0x2bae40([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xf4190b=_0x1b2d39[_0x2bae40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf4190b||0x0==_0xf4190b[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x350a66}=new URL(window[_0x2bae40([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf4190b[_0x2bae40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350a66))return!0x0;const _0xb08724=_0x350a66[_0x2bae40([0x73,0x70,0x6c,0x69,0x74])](_0x2bae40([0x2e]));return _0xf4190b[_0x2bae40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e0676=>_0x4e0676[_0x2bae40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bae40([0x2a])))[_0x2bae40([0x6d,0x61,0x70])](_0xff5782=>_0xff5782[_0x2bae40([0x73,0x70,0x6c,0x69,0x74])](_0x2bae40([0x2e])))[_0x2bae40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b6e4f=>_0x5b6e4f[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb08724[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bae40([0x6d,0x61,0x70])](_0x11d87e=>Array(_0xb08724[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11d87e[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bae40([0x66,0x69,0x6c,0x6c])](_0x11d87e[0x0]===_0x2bae40([0x2a])?_0x2bae40([0x2a]):'')[_0x2bae40([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11d87e))[_0x2bae40([0x73,0x6f,0x6d,0x65])](_0x2b02f1=>_0xb08724[_0x2bae40([0x65,0x76,0x65,0x72,0x79])]((_0x5f02,_0x462081)=>_0x2b02f1[_0x462081]===_0x5f02||_0x2b02f1[_0x462081]===_0x2bae40([0x2a])));}())?(_0x1b2d39[_0x2bae40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bae40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1eef85=function(_0x523904){const _0x351467=new window[(_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d8d81=>setTimeout(_0x2d8d81,0x93ecc)),_0x55fce2=_0xd89647[_0x2bae40([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5199bb=>{let _0x2f7900=0x0;_0x30137e[_0x2bae40([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bae40([0x6f,0x6e])](_0x2bae40([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c3978,_0x2eb0be)=>{_0x2eb0be[0x0][_0x2bae40([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f7900++,0x5e8==_0x2f7900&&(_0x5199bb(),_0x2c3978[_0x2bae40([0x6f,0x66,0x66])]());});})),_0x56a19c=[_0x351467,_0x55fce2];return window[_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bae40([0x72,0x61,0x63,0x65])](_0x56a19c)[_0x2bae40([0x74,0x68,0x65,0x6e])](()=>_0x523904);}(_0x2bae40([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1eef85&&_0x150722)return new window[(_0x2bae40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29b3bf,_0x19a900)=>{_0x1eef85[_0x2bae40([0x74,0x68,0x65,0x6e])](_0x29b3bf,_0x19a900),_0x150722[_0x2bae40([0x74,0x68,0x65,0x6e])](_0x263edc=>{_0x263edc!=_0x2bae40([0x56,0x61,0x6c,0x69,0x64])&&_0x29b3bf(_0x263edc);},_0x19a900);});return _0x1eef85||_0x150722||_0x2bae40([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2bae40([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bae40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bae40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2bae40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x1858c8(_0x4b3601){return _0x4b3601[_0x2bae40([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bae40([0x65,0x79]))?JSON[_0x2bae40([0x70,0x61,0x72,0x73,0x65])](_0x35f3aa(_0x4b3601)):null;}function _0x35f3aa(_0x98b4a4){return window[_0x2bae40([0x61,0x74,0x6f,0x62])](_0x98b4a4[_0x2bae40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bae40([0x2b]))[_0x2bae40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bae40([0x2f])));}function _0x23f666(_0x19bb23){let _0x51153c=0x1505;function _0xd12f47(_0x55b0eb){for(let _0x18658d=0x0;_0x18658d<_0x55b0eb[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18658d++){const _0x1d5906=_0x55b0eb[_0x2bae40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18658d);_0x51153c=(_0x51153c<<0x5)+_0x51153c+_0x1d5906,_0x51153c&=_0x51153c;}}return function _0x16c79c(_0x584529){Array[_0x2bae40([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x584529)?_0x584529[_0x2bae40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16c79c):_0x584529&&typeof _0x584529==_0x2bae40([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bae40([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x584529)[_0x2bae40([0x73,0x6f,0x72,0x74])]()[_0x2bae40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46bab4,_0x1a791f])=>{_0xd12f47(_0x46bab4),_0x16c79c(_0x1a791f);}):_0xd12f47(window[_0x2bae40([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x584529));}(_0x19bb23),_0x51153c>>>0x0;}function _0x42033f(_0x2c92c7){return _0x2c92c7[_0x2bae40([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bae40([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bae40([0x30]));}function _0x5de045(_0x1374f1){return _0x1374f1[_0x2bae40([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bae40([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bae40([0x6a,0x6f,0x69,0x6e])]('');}function _0x373d69(){}function _0x2bae40(_0x5b3b0b){return _0x5b3b0b['map'](_0x16fd9c=>String['fromCharCode'](_0x16fd9c))['join']('');}!function(_0x2b9677){const _0x222db0=(function(){const _0x8cc26d=window[_0x2bae40([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bae40([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bae40([0x6e,0x6f,0x77])]())[_0x2bae40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bae40([0x2e]),'');let _0x1b526c=_0x2bae40([0x75]);for(let _0x24df81=0x0;_0x24df81<_0x8cc26d[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24df81+=0x2){let _0x2b55d1=window[_0x2bae40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8cc26d[_0x2bae40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24df81,_0x24df81+0x2));_0x2b55d1>=_0x2170f0[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b55d1-=_0x2170f0[_0x2bae40([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b526c+=_0x2170f0[_0x2b55d1];}return _0x1b526c;}());_0x30137e[_0x222db0]=_0x2bae40([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b9677,_0x2b9677!=_0x2bae40([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xd89647,_0x30137e[_0x2bae40([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bae40([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x373d69,_0x30137e[_0x2bae40([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bae40([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x373d69,_0x30137e[_0x2bae40([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bae40([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x2ec4ef);}function getTranslation$9(_0x33e25f,_0x1c73fe){const _0x22093c=_0x33e25f['t'],t=_0x33e25f['t'];switch(_0x1c73fe){case'Start\x20at':return _0x22093c('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x22093c('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x22093c('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x22093c('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x1c73fe;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x59b91f,{enabledProperties:_0x2c4dd8,styleButtonViews:_0xec2679,styleGridAriaLabel:_0x57a0ba}){super(_0x59b91f);const _0x1f1f0d=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x2c4dd8['styles']?(this['stylesView']=this['_createStylesView'](_0xec2679,_0x57a0ba),this['children']['add'](this['stylesView'])):_0x1f1f0d['push']('ck-multi-level-list-properties_without-styles'),_0x2c4dd8['startIndex']&&(this['_addListPropertyViews'](_0x2c4dd8),_0x1f1f0d['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x1f1f0d},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x2174f7 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2174f7['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x1a0b09['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x1a09df=_0x3117c3=>_0x3117c3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1a09df),this['keystrokes']['set']('arrowleft',_0x1a09df),this['keystrokes']['set']('arrowup',_0x1a09df),this['keystrokes']['set']('arrowdown',_0x1a09df);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x63125a,_0x86a143){const _0x36a786=new View(this['locale']);return _0x36a786['children']=_0x36a786['createCollection'](),_0x36a786['children']['addMany'](_0x63125a),_0x36a786['setTemplate']({'tag':'div','attributes':{'aria-label':_0x86a143,'class':['ck','ck-multi-level-list-styles']},'children':_0x36a786['children']}),_0x36a786['children']['delegate']('execute')['to'](this),_0x36a786['focus']=function(){this['children']['first']['focus']();},_0x36a786['focusTracker']=new FocusTracker(),_0x36a786['keystrokes']=new KeystrokeHandler(),_0x36a786['render'](),_0x36a786['keystrokes']['listenTo'](_0x36a786['element']),_0x36a786;}['_addListPropertyViews'](_0x1d13f6){const _0x4b238b=[];_0x1d13f6['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x4b238b['push'](this['startIndexFieldView'])),_0x1d13f6['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x4b238b),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x4b238b,'isEnabled',(..._0x11b8b0)=>_0x11b8b0['some'](_0x2fcfac=>_0x2fcfac)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x456625,_0x5506ff,_0xc3f5d7)=>{_0xc3f5d7||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x4b238b);}['_createStartIndexField'](){const _0x58a465=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x58a465['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x58a465['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x58a465['fieldView']['on']('input',()=>{const _0x5e161b=_0x58a465['fieldView']['element'],_0x33ac32=_0x5e161b['valueAsNumber'];Number['isNaN'](_0x33ac32)?_0x58a465['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x5e161b['checkValidity']()?this['fire']('listStart',{'startIndex':_0x33ac32}):_0x58a465['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x58a465;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x32fad0=this['editor'];_0x32fad0['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0x32fad0,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0x32fad0['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0x32fad0['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x32fad0['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x47033a=_0x32fad0['commands']['get']('multiLevelList'),_0x3a56a5=new MenuBarMenuListItemButtonView(_0x32fad0['locale']);return _0x3a56a5['set']({'label':getTranslation$9(_0x32fad0['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x3a56a5['bind']('isEnabled')['to'](_0x47033a),_0x3a56a5['bind']('isOn')['to'](_0x47033a,'value',_0x3f2c7f=>!!_0x3f2c7f),_0x3a56a5['on']('execute',()=>{_0x32fad0['execute']('multiLevelList'),_0x32fad0['editing']['view']['focus']();}),_0x3a56a5;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf8cf08=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b5b13;for(const _0x5b64fe in _0xf8cf08){const _0x26cf44=_0x5b64fe,_0x167041=_0xf8cf08[_0x26cf44];if('multiLevelListLicenseKeyValid'==_0x167041||'multiLevelListLicenseKeyInvalid'==_0x167041||'multiLevelListLicenseKeyExpired'==_0x167041||'multiLevelListLicenseKeyDomainLimit'==_0x167041||'multiLevelListLicenseKeyNotAllowed'==_0x167041||'multiLevelListLicenseKeyEvaluationLimit'==_0x167041||'multiLevelListLicenseKeyUsageLimit'==_0x167041){delete _0xf8cf08[_0x26cf44],_0x1b5b13=_0x167041,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x1b5b13&&_0xf8cf08['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x1b5b13&&_0xf8cf08['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x1b5b13&&_0xf8cf08['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x1b5b13&&_0xf8cf08['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x1b5b13&&_0xf8cf08['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x1b5b13&&_0xf8cf08['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0x186526,parentCommandName:_0x361395,buttonLabel:_0xaa26c4,buttonIcon:_0x49ecdf,styleGridAriaLabel:_0x3cb203,styleDefinitions:_0x21e2c9}){const _0x2de97d=_0x186526['commands']['get'](_0x361395),_0x1aba18=_0x186526['config']['get']('list.properties')||{},_0x4f51d5=_0x186526['plugins']['has']('ListProperties'),_0x55a6e9=_0x1aba18['startIndex'];return _0x4f51d5&&_0x55a6e9?_0x1a1e23=>{const _0x4c5d38=createDropdown(_0x1a1e23,SplitButtonView),_0x305240=_0x4c5d38['buttonView'];return _0x4c5d38['bind']('isEnabled')['to'](_0x2de97d),_0x4c5d38['class']='ck-list-styles-dropdown',_0x305240['on']('execute',()=>{_0x186526['execute'](_0x361395),_0x186526['editing']['view']['focus']();}),_0x305240['set']({'label':_0xaa26c4,'icon':_0x49ecdf,'tooltip':!0x0,'isToggleable':!0x0}),_0x305240['bind']('isOn')['to'](_0x2de97d,'value',_0x187d48=>!!_0x187d48),_0x4c5d38['once']('change:isOpen',()=>{const _0x2158b7=createListPropertiesView({'editor':_0x186526,'dropdownView':_0x4c5d38,'styleGridAriaLabel':_0x3cb203,'styleDefinitions':_0x21e2c9});_0x4c5d38['panelView']['children']['add'](_0x2158b7);}),_0x4c5d38['on']('execute',()=>{_0x186526['editing']['view']['focus']();}),_0x4c5d38;}:_0x51e293=>{const _0x21a3e9=new ButtonView(_0x51e293);return _0x21a3e9['set']({'label':_0xaa26c4,'icon':_0x49ecdf,'tooltip':!0x0,'isToggleable':!0x0}),_0x21a3e9['bind']('isOn')['to'](_0x2de97d,'value',_0x2dccbe=>!!_0x2dccbe),_0x21a3e9['on']('execute',()=>{_0x186526['execute'](_0x361395),_0x186526['editing']['view']['focus']();}),_0x21a3e9;};}function createListPropertiesView({editor:_0x4fda41,dropdownView:_0x605d5c,styleDefinitions:_0x2adaba,styleGridAriaLabel:_0x37409c}){const _0x151db9=_0x4fda41['locale'],_0x4e1a75=_0x4fda41['config']['get']('list.properties');_0x4e1a75['reversed']=!0x1,_0x2adaba['length']||(_0x4e1a75['styles']=!0x1);const _0x21ac0a=new MultiLevelListView(_0x151db9,{'styleGridAriaLabel':_0x37409c,'enabledProperties':_0x4e1a75,'styleButtonViews':null});if(_0x4e1a75['startIndex']){const _0x1d4bfc=_0x4fda41['commands']['get']('listStart');_0x21ac0a['startIndexFieldView']['bind']('isEnabled')['to'](_0x1d4bfc),_0x21ac0a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1d4bfc),_0x21ac0a['on']('listStart',(_0x20f4d0,_0x21243d)=>_0x4fda41['execute']('listStart',_0x21243d));}return _0x21ac0a['delegate']('execute')['to'](_0x605d5c),_0x21ac0a;}class MultiLevelList extends Plugin{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}class InsertMergeFieldCommand extends Command{['refresh'](){const _0x356f1d=this['editor']['model'],_0x19174b=_0x356f1d['schema']['checkChild'](_0x356f1d['document']['selection']['focus'],'mergeField');this['isEnabled']=_0x19174b;}['execute'](_0x1f10f9){if(!_0x1f10f9||'string'!=typeof _0x1f10f9)return;const _0x3bdf23=this['editor']['model'];_0x3bdf23['change'](_0x13b4c9=>{_0x3bdf23['deleteContent'](_0x3bdf23['document']['selection']);const _0x4c3978=_0x13b4c9['createElement']('mergeField',{'id':_0x1f10f9});for(const [_0x4838de,_0x4df272]of _0x3bdf23['document']['selection']['getAttributes']())_0x3bdf23['schema']['checkAttribute'](_0x4c3978,_0x4838de)&&_0x13b4c9['setAttribute'](_0x4838de,_0x4df272,_0x4c3978);_0x3bdf23['insertContent'](_0x4c3978,_0x3bdf23['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends Command{['refresh'](){const _0x4d0cfa=this['editor']['model'],_0x473850=_0x4d0cfa['document']['selection'];this['isEnabled']=isAllowedInParent(_0x473850,_0x4d0cfa);}['execute'](_0x4d2448,_0x104c87){if(!_0x4d2448||'string'!=typeof _0x4d2448)return;const _0x246a8a=this['editor']['model'];_0x246a8a['change'](_0x4bad85=>{const _0xfd8d8d=_0x4bad85['createElement']('mergeFieldBlock',{'id':_0x4d2448});_0x246a8a['insertObject'](_0xfd8d8d,_0x246a8a['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0x104c87?void 0x0:'auto'});});}}function isAllowedInParent(_0x55b531,_0x6f283b){let _0x4afd17=findOptimalInsertionRange(_0x55b531,_0x6f283b)['start']['parent'];return _0x4afd17['isEmpty']&&!_0x6f283b['schema']['isLimit'](_0x4afd17)&&(_0x4afd17=_0x4afd17['parent']),_0x6f283b['schema']['checkChild'](_0x4afd17,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends Command{constructor(_0x39f9b1){super(_0x39f9b1),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x3355e5,_0x4ced41){if(!_0x3355e5||'string'!=typeof _0x3355e5)return;const _0x29cbcd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x718384=_0x29cbcd['getMergeFieldWidth'](_0x3355e5),_0x6b0565=_0x29cbcd['getMergeFieldHeight'](_0x3355e5);this['editor']['execute']('insertImage',{'source':{'src':_0x29cbcd['wrapInAffixes'](_0x3355e5),'width':_0x718384,'height':_0x6b0565},'breakBlock':_0x4ced41&&_0x4ced41['breakBlock']});}}class PreviewMergeFieldsCommand extends Command{constructor(_0x4a5ac4){super(_0x4a5ac4);const _0x170234=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x170234,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3fcb74){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x3fcb74;}}const DEFAULT_MERGE_FIELD_BLOCK_HEIGHT=0x78,DEFAULT_MERGE_FIELD_IMAGE_HEIGHT=0x190,DEFAULT_MERGE_FIELD_IMAGE_WIDTH=0x190,ALLOWED_IN_IDS=/^[a-zA-Z0-9_.-]+$/;class MergeFieldsEditing extends Plugin{['availablePreviewModes'];['flattenedMergeFieldDefinitions']=[];['_mergeFieldElements'];['_mergeFieldPrefix'];['_mergeFieldSuffix'];['_mergeFieldRegExp'];['_shouldPreviewHtmlValues'];static get['requires'](){return[ImageUtils,ImageEditing];}static get['pluginName'](){return'MergeFieldsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c9f4d){super(_0x2c9f4d),_0x2c9f4d['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0x2c9f4d['config']['define']('mergeFields.dataSets',[]),_0x2c9f4d['config']['define']('mergeFields.definitions',[]),_0x2c9f4d['config']['define']('mergeFields.prefix','{{'),_0x2c9f4d['config']['define']('mergeFields.suffix','}}'),_0x2c9f4d['config']['define']('mergeFields.previewHtmlValues',!0x1),_0x2c9f4d['config']['define']('mergeFields.sanitizeHtml',_0x1f958e=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x1f958e,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0x2c9f4d['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0x2c9f4d['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0x2c9f4d['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x1ecc60='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0x49da62='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x1ecc60+'[^'+(_0x1ecc60+_0x49da62)+'\x20]+'+_0x49da62+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0x5961df=_0x2c9f4d['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0x5961df),this['set']('previewMode',_0x5961df),this['_mergeFieldElements']=new Set();}['init'](){const _0x23c246=this['editor'];_0x23c246['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x23c246)),_0x23c246['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x23c246)),_0x23c246['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x23c246)),_0x23c246['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x23c246)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x3913a1,_0x30ab45,_0x2a1ab6)=>{this['_validatePreviewMode'](_0x2a1ab6),this['refreshMergeFields']();}),this['listenTo'](_0x23c246['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x23c246['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x23c246['model'],_0x2d67f8=>_0x2d67f8['hasClass']('ck-merge-field'))),_0x23c246['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x23c246['model'],_0x829ad=>_0x829ad['hasClass']('ck-merge-field-block'))),_0x23c246['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x3ffd4f){return'mergeField'===_0x3ffd4f['name']||'mergeFieldBlock'===_0x3ffd4f['name']||!!('imageBlock'===_0x3ffd4f['name']||'imageInline'===_0x3ffd4f['name']&&_0x3ffd4f['getAttribute']('src'))&&!!_0x3ffd4f['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x9fc995={},_0xd2aa7d=this['getMergeFieldsIds']();for(const _0x2fa707 of _0xd2aa7d)_0x9fc995[_0x2fa707]=this['getMergeFieldDefaultValue'](_0x2fa707);return _0x9fc995;}['getDataSetValues'](_0x1a06d6,_0x2d8662=!0x1){const _0x119e6f={},_0x11fbad=this['getMergeFieldsIds']();for(const _0x10f33f of _0x11fbad){let _0x535499=this['getMergeFieldValue'](_0x10f33f,_0x1a06d6);null===_0x535499&&_0x2d8662&&(_0x535499=this['getMergeFieldDefaultValue'](_0x10f33f)),_0x119e6f[_0x10f33f]=_0x535499;}return _0x119e6f;}['getLabel'](_0x1fc32f){const _0x48274c=this['getDefinition'](_0x1fc32f);return _0x48274c&&_0x48274c['label']?_0x48274c['label']:null;}['getMergeFieldDefaultValue'](_0x4b8b77){const _0x567648=this['getDefinition'](_0x4b8b77);if(!_0x567648||void 0x0===_0x567648['defaultValue'])return null;const _0x46a2a4='function'==typeof _0x567648['defaultValue']?_0x567648['defaultValue'](this['editor']):_0x567648['defaultValue'];return String(_0x46a2a4);}['getMergeFieldValue'](_0x2d17d4,_0x1ade27){const _0x17fde4=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x5e7d16=>_0x5e7d16['id']===_0x1ade27);if(!_0x17fde4)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x584cf7=_0x17fde4['values'][_0x2d17d4];if(void 0x0===_0x584cf7)return null;const _0x3dcef0='function'==typeof _0x584cf7?_0x584cf7(this['editor']):_0x584cf7;return String(_0x3dcef0);}['getMergeFieldType'](_0x2a1136){if('string'!=typeof _0x2a1136){const _0x2535b4=_0x2a1136;return'mergeField'===_0x2535b4['name']?'text':'mergeFieldBlock'===_0x2535b4['name']?'block':'imageBlock'!==_0x2535b4['name']&&'imageInline'!==_0x2535b4['name']||!_0x2535b4['getAttribute']('src')?null:_0x2535b4['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x1830f3=this['getDefinition'](_0x2a1136);return _0x1830f3&&_0x1830f3['type']?_0x1830f3['type']:'text';}['getMergeFieldHeight'](_0x45efae){const _0x465830=this['getDefinition'](_0x45efae);return _0x465830&&'block'===_0x465830['type']?_0x465830['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x465830&&'image'===_0x465830['type']?_0x465830['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x149519){const _0x25926a=this['getDefinition'](_0x149519);return _0x25926a&&'image'===_0x25926a['type']?_0x25926a['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x15e400=new Set();for(const _0xc72699 of this['_mergeFieldElements'])'$graveyard'!==_0xc72699['root']['rootName']&&('image'===this['getMergeFieldType'](_0xc72699)?_0x15e400['add'](this['unwrapAffixes'](_0xc72699['getAttribute']('src'))):_0x15e400['add'](_0xc72699['getAttribute']('id')));return Array['from'](_0x15e400);}['getMergeFieldsIds'](){const _0x3bd838=this['flattenedMergeFieldDefinitions']['map'](_0x426eac=>_0x426eac['id']),_0x25984=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x3bd838,..._0x25984]));}['getDefinition'](_0x196939){return this['flattenedMergeFieldDefinitions']['find'](_0x57c0a5=>_0x57c0a5['id']===_0x196939)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0x31d337=>{'$graveyard'!==_0x31d337['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0x31d337);});}['wrapInAffixes'](_0x260a83){return this['_mergeFieldPrefix']+_0x260a83+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x5d4fd8){return _0x5d4fd8['slice'](this['_mergeFieldPrefix']['length'],_0x5d4fd8['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x102443=new Set(),_0x5abc4c=this['editor'];return _0x5abc4c['config']['get']('mergeFields.definitions')['reduce']((_0x131838,_0xd97907)=>{if('groupId'in _0xd97907){if(_0x102443['has'](_0xd97907['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x5abc4c,{'duplicateId':_0xd97907['groupId']});_0x102443['add'](_0xd97907['groupId']);}return'groupId'in _0xd97907?function(_0x262c7b,_0xebc2d5){for(const _0x2aaa17 of _0xebc2d5['definitions'])_0x262c7b=_0x262c7b['concat'](_0x2aaa17);return _0x262c7b;}['bind'](_0x5abc4c)(_0x131838,_0xd97907):_0x131838['concat'](_0xd97907);},new Array());}['_validateConfig'](){const _0x55cd54=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x55cd54['test'](this['_mergeFieldPrefix'])||!_0x55cd54['test'](this['_mergeFieldSuffix']))throw new CKEditorError('merge-fields-invalid-prefix-or-suffix',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix']});if(this['_mergeFieldPrefix']['length']>0x8||this['_mergeFieldSuffix']['length']>0x8)throw new CKEditorError('merge-fields-prefix-or-suffix-too-long',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix'],'limit':0x8});const _0x5d1282=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x4fe825=>{if(!ALLOWED_IN_IDS['test'](_0x4fe825['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x4fe825['id']});if(_0x5d1282['has'](_0x4fe825['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x4fe825['id']});_0x5d1282['add'](_0x4fe825['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x56cd61=this['editor']['config']['get']('mergeFields.previewModes'),_0x42ab96=['$labels','$defaultValues','$dataSets'];if(!_0x56cd61['length']||!_0x56cd61['every'](_0x59cd41=>_0x42ab96['includes'](_0x59cd41)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x56cd61});const _0x2f6ca8=new Set(),_0x3573da=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x5916d0 of _0x3573da){if(_0x2f6ca8['has'](_0x5916d0['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x5916d0['id']});_0x2f6ca8['add'](_0x5916d0['id']);}}['_getAvailablePreviewModes'](){const _0x968ae5=this['editor']['config']['get']('mergeFields.previewModes'),_0x59083f=[];if(_0x968ae5['includes']('$labels')&&_0x59083f['push']('$labels'),_0x968ae5['includes']('$defaultValues')&&_0x59083f['push']('$defaultValues'),_0x968ae5['includes']('$dataSets')){const _0x2616ea=this['editor']['config']['get']('mergeFields.dataSets');_0x59083f['push'](..._0x2616ea['map'](_0x3cfaa2=>_0x3cfaa2['id']));}return _0x59083f;}['_defineSchema'](){const _0x191c5e=this['editor']['model']['schema'];_0x191c5e['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x191c5e['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x1c846e=this['editor']['conversion'];_0x1c846e['for']('upcast')['add'](_0x3ba1b5=>{_0x3ba1b5['on']('text',(_0x4dba9a,_0x40d9d9,_0x49aaa3)=>{const {writer:_0x50f68d,safeInsert:_0x1de941}=_0x49aaa3,{viewItem:_0xde8bf}=_0x40d9d9,_0x116161=_0xde8bf['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x2a8d74=>_0x2a8d74);if(0x1===_0x116161['length']&&!_0x116161[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x40d9d9['modelRange'])return;const _0xedbf4b=_0x50f68d['createElement']('$cursor');_0x50f68d['insert'](_0xedbf4b,_0x40d9d9['modelCursor']);const _0x3f702b=[];for(const _0x3f17f4 of _0x40d9d9['modelRange']['getItems']()){if(!_0x3f17f4['is']('$textProxy'))continue;const _0x13d9c3=_0x3f17f4['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x3ab410=_0x3f17f4['parent'],_0x553416=_0x3f17f4['textNode']['startOffset'];for(const _0x4fceba of[..._0x13d9c3]['reverse']()){const _0x486e58=_0x4fceba[0x0],_0x49cd08=_0x50f68d['createPositionAt'](_0x3ab410,_0x4fceba['index']+_0x553416),_0x48d47d=_0x49cd08['getShiftedBy'](_0x486e58['length']),_0x5cb2ed=_0x50f68d['createRange'](_0x49cd08,_0x48d47d),_0x33b0ca=this['unwrapAffixes'](_0x486e58),_0x5631db=this['getMergeFieldType'](_0x33b0ca),_0x47fe12='block'==_0x5631db?'mergeFieldBlock':'mergeField',_0x1d6f17=_0x50f68d['createElement'](_0x47fe12,{'id':_0x33b0ca});_0x50f68d['remove'](_0x5cb2ed),_0x50f68d['insert'](_0x1d6f17,_0x49cd08),'block'==_0x5631db&&_0x3f702b['push'](_0x1d6f17);}}_0x3f702b['reverse']();for(const _0x2cec1a of _0x3f702b){const _0x36ec7c=_0x50f68d['createPositionBefore'](_0x2cec1a),_0x4ba2fe=_0x2cec1a['nextSibling']==_0xedbf4b;_0x50f68d['remove'](_0x2cec1a),_0x1de941(_0x2cec1a,_0x36ec7c)&&_0x4ba2fe&&_0x50f68d['move'](_0x50f68d['createRangeOn'](_0xedbf4b),_0x50f68d['createPositionAfter'](_0x2cec1a));}_0x40d9d9['modelCursor']=_0x50f68d['createPositionBefore'](_0xedbf4b),_0x40d9d9['modelRange']=_0x50f68d['createRange'](_0x40d9d9['modelRange']['start'],_0x40d9d9['modelCursor']),_0x50f68d['remove'](_0xedbf4b);},{'priority':priorities['get']('lowest')-0x1});}),_0x1c846e['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0x393a83,{writer:_0x38228d})=>_0x38228d['createElement']('mergeField',{'id':_0x393a83['getAttribute']('data-ck-merge-field')})}),_0x1c846e['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x20bc5f,{writer:_0x407851})=>_0x407851['createElement']('mergeFieldBlock',{'id':_0x20bc5f['getAttribute']('data-ck-merge-field')})}),_0x1c846e['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x1c846e['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x4d2fea,{writer:_0x1b2281})=>this['_createMergeFieldWidget'](_0x4d2fea,_0x1b2281,'text')}),_0x1c846e['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x2cf337,{writer:_0x23f42d,options:_0x2ce7cb})=>this['_createTextualMergeField'](_0x2cf337,_0x23f42d,_0x2ce7cb)}),_0x1c846e['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x3df167,{writer:_0xb003c2})=>this['_createMergeFieldWidget'](_0x3df167,_0xb003c2,'block')}),_0x1c846e['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x1b144f,{writer:_0x5349b5,options:_0x23e35d})=>this['_createTextualMergeField'](_0x1b144f,_0x5349b5,_0x23e35d)}),_0x1c846e['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x1c846e['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x10a9a4=>{_0x10a9a4['on']('element:img',(_0x5e75bf,_0x5da7c3,_0x1b3650)=>{_0x1b3650['consumable']['test'](_0x5da7c3['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x1b3650['writer']['setAttribute']('src',this['wrapInAffixes'](_0x5da7c3['viewItem']['getAttribute']('data-ck-merge-field')),_0x5da7c3['modelCursor']['nodeBefore']),_0x1b3650['consumable']['consume'](_0x5da7c3['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x58a124){const _0x493c86=this['editor']['plugins']['get'](ImageUtils),_0x4ee4d5=(_0x5e8db8,_0x41d542,_0x38dcef)=>{if(!0x1!==_0x38dcef['consumable']['test'](_0x41d542['item'],_0x5e8db8['name']))return;if(!String(_0x41d542['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x56ad7c=_0x38dcef['writer'],_0x199e5f=_0x38dcef['mapper']['toViewElement'](_0x41d542['item']),_0xe5af22=_0x493c86['findViewImgElement'](_0x199e5f),_0x565981=String(_0x41d542['attributeNewValue']),_0x156527=this['unwrapAffixes'](_0x565981),_0x272719=_0x38dcef['options']['mergeFieldsData'];if(_0x38dcef['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x55594c;return _0x55594c='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x156527)||this['getLabel'](_0x156527)||this['wrapInAffixes'](_0x156527):this['getMergeFieldValue'](_0x156527,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x156527)||this['getLabel'](_0x156527)||this['wrapInAffixes'](_0x156527),_0x56ad7c['setAttribute']('data-ck-merge-field',_0x156527,_0xe5af22),void _0x56ad7c['setAttribute'](_0x41d542['attributeKey'],_0x55594c,_0xe5af22);}const _0xd387d=_0x272719&&_0x272719[_0x156527]?_0x272719[_0x156527]:_0x565981;_0x56ad7c['setAttribute'](_0x41d542['attributeKey'],_0xd387d,_0xe5af22);};return _0x489141=>{_0x489141['on']('attribute:src:'+_0x58a124,_0x4ee4d5,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x4129a1){const _0x22746c=this['editor']['plugins']['get'](ImageUtils),_0x54f14e=(_0x2e1b1b,_0x49f02b,_0x5ca6a8)=>{if(!0x1!==_0x5ca6a8['consumable']['test'](_0x49f02b['item'],_0x2e1b1b['name']))return;if(!String(_0x49f02b['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x328e6c=_0x5ca6a8['writer'],_0x1ae4af=_0x5ca6a8['mapper']['toViewElement'](_0x49f02b['item']),_0xa5430a=_0x22746c['findViewImgElement'](_0x1ae4af),_0x579eab=String(_0x49f02b['attributeNewValue']),_0x184540=this['unwrapAffixes'](_0x579eab),_0x4c55ba=this['getMergeFieldDefaultValue'](_0x184540),_0x55ad63='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x5337ed,_0x2c0d7e='',_0x20fdb0='';if('$labels'===this['previewMode'])_0x5337ed=_0x55ad63;else{if('$defaultValues'===this['previewMode'])_0x4c55ba?(_0x5337ed=_0x4c55ba,_0x20fdb0='\x20ck-merge-field-image_with-value'):(_0x5337ed=_0x55ad63,_0x2c0d7e='WARNING_MISSING_DEFAULT_VALUE',_0x20fdb0='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x2f5007=this['getMergeFieldValue'](_0x184540,this['previewMode']);_0x2f5007?(_0x5337ed=_0x2f5007,_0x20fdb0='\x20ck-merge-field-image_with-value'):_0x4c55ba?(_0x5337ed=_0x4c55ba,_0x20fdb0='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0x2c0d7e='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x5337ed=_0x55ad63,_0x20fdb0='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0x2c0d7e='WARNING_MISSING_DATA');}}if(_0x328e6c['addClass']('ck-merge-field-image'+_0x20fdb0,_0x1ae4af),_0x328e6c['setAttribute'](_0x49f02b['attributeKey'],_0x5337ed,_0xa5430a),'$labels'===this['previewMode']){const _0x1cac50='imageInline'===_0x4129a1?'span':'div',_0x577825=this['_mergeFieldPrefix'],_0x174bc2=this['_mergeFieldSuffix'],_0x276b29=_0x328e6c['createContainerElement'](_0x1cac50,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x328e6c['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x35efc3){const _0x53281d=this['toDomElement'](_0x35efc3);return _0x53281d['innerHTML']=_0x577825,_0x53281d;}),_0x328e6c['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x328e6c['createText'](this['getLabel'](_0x184540)||_0x184540)),_0x328e6c['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x59a21e){const _0x46e305=this['toDomElement'](_0x59a21e);return _0x46e305['innerHTML']=_0x174bc2,_0x46e305;})]);_0x328e6c['insert'](_0x328e6c['createPositionAt'](_0x1ae4af,'end'),_0x276b29),_0x328e6c['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x184540)||_0x184540,_0x276b29);}else{if(_0x2c0d7e&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x2c0d7e)){const _0xee9279='imageInline'===_0x4129a1?'span':'div',_0x438dc6=_0x20fdb0['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0xcb71a2=_0x328e6c['createContainerElement'](_0xee9279,{'class':'ck-merge-field'+_0x438dc6,'data-cke-tooltip-instant':'true'},[_0x328e6c['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x328e6c['createText'](this['getLabel'](_0x184540)||_0x184540))]),_0xbeae3d=_0x328e6c['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x293551){const _0x2cdeb2=this['toDomElement'](_0x293551),_0x287c1d=new IconView();return _0x287c1d['set']({'content':IconWarning}),_0x287c1d['render'](),_0x2cdeb2['appendChild'](_0x287c1d['element']),_0x2cdeb2;});_0x328e6c['insert'](_0x328e6c['createPositionAt'](_0xcb71a2,'end'),_0xbeae3d),_0x328e6c['insert'](_0x328e6c['createPositionAt'](_0x1ae4af,'end'),_0xcb71a2),_0x328e6c['setCustomProperty']('mergeFieldStatus',_0x2c0d7e,_0xcb71a2),_0x328e6c['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x184540)||_0x184540,_0xcb71a2);}}_0x328e6c['setAttribute']('data-merge-field-name',_0x184540,_0x1ae4af),_0x2c0d7e&&_0x328e6c['setCustomProperty']('mergeFieldStatus',_0x2c0d7e,_0x1ae4af);};return _0x1ae7cf=>{_0x1ae7cf['on']('attribute:src:'+_0x4129a1,_0x54f14e,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x5ef4ae,_0x34f0f1){if(!_0x34f0f1['target'])return null;const _0x247d16=_0x34f0f1['target']['parentElement'];return _0x247d16&&_0x247d16['classList']['contains']('ck-merge-field-image')?new _0x1b4a02(_0x247d16,_0x155321=>{const _0x12cc21=_0x155321['target'],_0x5c739f=_0x12cc21['querySelector']('.ck-merge-field'),_0x4e1128=_0x12cc21['querySelector']('.ck-merge-field__content');_0x5c739f&&_0x4e1128&&(_0x4e1128['scrollWidth']>_0x4e1128['getBoundingClientRect']()['width']?_0x5c739f['removeAttribute']('data-cke-tooltip-disabled'):_0x5c739f['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x1f572f,_0x4933be,_0x2829fb){const {label:_0x3da4f7,classes:_0x21d90f,status:_0x128dd8,height:_0x596f8c}=this['_prepareViewElementData'](_0x1f572f),_0x260eec=this['_mergeFieldPrefix'],_0x3a6b1e=this['_mergeFieldSuffix'],_0x5686d4=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x582216='text'===_0x2829fb?'span':'div';let _0xc21523;if('$labels'===this['previewMode'])_0xc21523=_0x4933be['createContainerElement'](_0x582216,{'class':_0x21d90f},[_0x4933be['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0xa4ce71){const _0x28a5c9=this['toDomElement'](_0xa4ce71);return _0x28a5c9['innerHTML']=_0x260eec,_0x28a5c9;}),_0x4933be['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x4933be['createText'](String(_0x3da4f7))),_0x4933be['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x4ab573){const _0x4da036=this['toDomElement'](_0x4ab573);return _0x4da036['innerHTML']=_0x3a6b1e,_0x4da036;})]);else{if(_0x128dd8){const _0x524ae1=this['_shouldPreviewHtmlValues']?_0x4933be['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x19c3f0,_0x550b3c){_0x550b3c['setContentOf'](_0x19c3f0,_0x5686d4(_0x3da4f7)['html']);}):_0x4933be['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x4933be['createText'](_0x3da4f7));if(_0xc21523=_0x4933be['createContainerElement'](_0x582216,{'class':_0x21d90f},[_0x524ae1]),'text'===_0x2829fb||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x128dd8)){const _0x259c5f=_0x4933be['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x19dc3e){const _0x1a1bfc=this['toDomElement'](_0x19dc3e),_0x4f8008=new IconView();return _0x4f8008['set']({'content':IconWarning}),_0x4f8008['render'](),_0x1a1bfc['appendChild'](_0x4f8008['element']),_0x1a1bfc;});_0x4933be['insert'](_0x4933be['createPositionAt'](_0xc21523,'end'),_0x259c5f);}_0x4933be['setCustomProperty']('mergeFieldStatus',_0x128dd8,_0xc21523);}else{const _0x8aa64=this['_shouldPreviewHtmlValues']?_0x4933be['createRawElement'](_0x582216,{},function(_0x1f35cc,_0xe3b477){_0xe3b477['setContentOf'](_0x1f35cc,_0x5686d4(_0x3da4f7)['html']);}):_0x4933be['createText'](_0x3da4f7);_0xc21523=_0x4933be['createContainerElement'](_0x582216,{'class':_0x21d90f},_0x8aa64);}}if('block'===_0x2829fb){const _0x4e6361=_0x4933be['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0xc21523]);if(('$labels'===this['previewMode']||_0x128dd8&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x128dd8))&&_0x4933be['setAttribute']('style','height:\x20'+_0x596f8c+'px',_0x4e6361),_0xc21523['hasClass']('ck-merge-field_with-value'))_0x4933be['addClass']('ck-merge-field-block_with-value',_0x4e6361);else{if(_0xc21523['hasClass']('ck-merge-field_with-warning')){for(const _0x35df75 of _0xc21523['getClassNames']())if('ck-merge-field'!==_0x35df75){const _0x5f1f42=_0x35df75['replace']('ck-merge-field','ck-merge-field-block');_0x4933be['addClass'](_0x5f1f42,_0x4e6361);}_0x4933be['setCustomProperty']('mergeFieldStatus',_0x128dd8,_0x4e6361);}}return _0x4933be['setCustomProperty']('mergeFieldBlock',!0x0,_0x4e6361),_0x4933be['setAttribute']('data-merge-field-name',_0x1f572f['getAttribute']('id'),_0x4e6361),toWidget(_0x4e6361,_0x4933be,{'hasSelectionHandle':!0x0});}return _0x4933be['setCustomProperty']('mergeField',!0x0,_0xc21523),_0x4933be['setAttribute']('data-merge-field-name',_0x1f572f['getAttribute']('id'),_0xc21523),toWidget(_0xc21523,_0x4933be);}['_prepareViewElementData'](_0x689e82){const _0x2432ec=_0x689e82['getAttribute']('id'),_0x3b8233=this['getDefinition'](_0x2432ec);if(!_0x3b8233)return'$labels'===this['previewMode']?{'label':_0x2432ec,'classes':'ck-merge-field'}:{'label':_0x2432ec,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x18916d=this['getLabel'](_0x2432ec)||_0x2432ec,_0x22127f=this['getMergeFieldDefaultValue'](_0x2432ec),_0x37d3a4=this['getMergeFieldHeight'](_0x2432ec);if('$labels'===this['previewMode'])return{'label':_0x18916d,'height':_0x37d3a4,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0x22127f?{'label':_0x22127f,'height':_0x37d3a4,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x18916d,'height':_0x37d3a4,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x525d9a=this['getMergeFieldValue'](_0x3b8233['id'],this['previewMode']);return _0x525d9a?{'label':_0x525d9a,'height':_0x37d3a4,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0x22127f?{'label':_0x22127f,'height':_0x37d3a4,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','status':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'}:{'label':_0x18916d,'height':_0x37d3a4,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x5cd014,_0x582b08,_0x301a15){const _0x545bba=_0x5cd014['getAttribute']('id');let _0x5ac165;if(_0x301a15['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x545bba,_0x582b08);const _0x52ecba=_0x301a15['mergeFieldsData'],_0x32b6b1=_0x52ecba&&_0x52ecba[_0x545bba]?_0x52ecba[_0x545bba]:this['wrapInAffixes'](_0x545bba);if(_0x52ecba)_0x5ac165=_0x582b08['createRawElement']('span',{},function(_0x216b3c,_0x45cb42){_0x45cb42['setContentOf'](_0x216b3c,String(_0x32b6b1));});else{_0x5ac165=_0x582b08['createContainerElement']('span');const _0x32817c=_0x582b08['createText'](_0x32b6b1);_0x582b08['insert'](_0x582b08['createPositionAt'](_0x5ac165,'end'),_0x32817c);}return _0x582b08['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5ac165),_0x5ac165;}['_downcastForClipboard'](_0x474633,_0x45bcaf){const _0xecd0f='block'===this['getMergeFieldType'](_0x474633)?'div':'span';let _0x5f4c64,_0x13358c;_0x5f4c64='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x474633)||this['getLabel'](_0x474633)||this['wrapInAffixes'](_0x474633):this['getMergeFieldValue'](_0x474633,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x474633)||this['getLabel'](_0x474633)||this['wrapInAffixes'](_0x474633);const _0x56787e=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x13358c=this['_shouldPreviewHtmlValues']?_0x45bcaf['createRawElement'](_0xecd0f,{'data-ck-merge-field':_0x474633},function(_0x1c1306,_0x122ef3){_0x122ef3['setContentOf'](_0x1c1306,_0x56787e(_0x5f4c64)['html']);}):_0x45bcaf['createContainerElement'](_0xecd0f,{'data-ck-merge-field':_0x474633},_0x45bcaf['createText'](_0x5f4c64)),_0x13358c;}['_validatePreviewMode'](_0x41ff1b){if(!this['availablePreviewModes']['includes'](_0x41ff1b))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x41ff1b});}['_trackAddedMergeFields'](){for(const _0x4d5788 of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x4d5788['type']||'$text'===_0x4d5788['name'])continue;if('mergeField'===_0x4d5788['name']||'mergeFieldBlock'===_0x4d5788['name']){this['_mergeFieldElements']['add'](_0x4d5788['position']['nodeAfter']);continue;}if('imageInline'===_0x4d5788['name']||'imageBlock'===_0x4d5788['name']&&_0x4d5788['attributes']['get']('src')&&String(_0x4d5788['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x4d5788['position']['nodeAfter']);continue;}const _0x29991a=this['editor']['model']['createRangeIn'](_0x4d5788['position']['nodeAfter']);for(const _0x16b162 of _0x29991a['getItems']())_0x16b162['is']('element')&&this['isMergeField'](_0x16b162)&&this['_mergeFieldElements']['add'](_0x16b162);}}['_registerConversionPostFixer'](){const _0xbd4263=this['editor'];_0xbd4263['model']['document']['registerPostFixer'](_0x17ec02=>{if(!_0x17ec02['batch']['isLocal'])return!0x1;const _0x59ca42=[],_0x147e8c=new Set(),_0x334ef0=this['_mergeFieldRegExp'];let _0x3c9be8=!0x1;for(const _0x58549e of _0xbd4263['model']['document']['differ']['getChanges']())if('insert'===_0x58549e['type']||'remove'===_0x58549e['type']){let _0x34250c='$text'==_0x58549e['name']?_0x58549e['position']['parent']:_0x58549e['position']['nodeAfter'];if(!_0x34250c)continue;_0x34250c['is']('$text')&&(_0x34250c=_0x34250c['parent']),_0x38cc7c(_0x34250c);}for(const _0x34a917 of _0x59ca42['reverse']()){const {match:_0x4850bd,item:_0x1d0860}=_0x34a917,_0x10a304=_0x17ec02['createPositionAt'](_0x1d0860,_0x4850bd['index']),_0x3b14b7=_0x10a304['getShiftedBy'](_0x4850bd[0x0]['length']),_0x41f544=_0x17ec02['createRange'](_0x10a304,_0x3b14b7),_0x2ef330=_0x4850bd[0x0],_0x35f685=this['unwrapAffixes'](_0x2ef330),_0x5cdf7f=_0x61fec9(_0x41f544),_0x4888ab=this['getMergeFieldType'](_0x35f685);if(ALLOWED_IN_IDS['test'](_0x35f685)){if(_0x5cdf7f['set']('id',_0x35f685),'block'===_0x4888ab){const _0x4556b4=_0x17ec02['createElement']('mergeFieldBlock',{'id':_0x35f685});_0x17ec02['remove'](_0x41f544),_0xbd4263['model']['insertObject'](_0x4556b4,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x4888ab){const _0x37e6dc=_0x17ec02['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x35f685)});_0x17ec02['remove'](_0x41f544),_0xbd4263['model']['insertObject'](_0x37e6dc,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x337b64=_0x17ec02['createElement']('mergeField',_0x5cdf7f);_0xbd4263['model']['schema']['checkChild'](_0x41f544['start'],'mergeField')?_0xbd4263['model']['insertObject'](_0x337b64,_0x41f544):_0x17ec02['remove'](_0x41f544);}}_0x3c9be8=!0x0;}}return _0x3c9be8;function _0x38cc7c(_0x2b4a3e){let _0x456a47='',_0x1c6a29=0x0;if(!_0x147e8c['has'](_0x2b4a3e))for(const _0x32e12a of _0x2b4a3e['getChildren']()){const _0x53ad7e=_0x32e12a['nextSibling'];if(_0x32e12a['is']('$text')&&(''===_0x456a47&&_0x32e12a['startOffset']&&(_0x1c6a29=_0x32e12a['startOffset']),_0x456a47+=_0x32e12a['data']),!_0x53ad7e||_0x53ad7e['is']('element')){for(const _0xbbf5e9 of _0x456a47['matchAll'](_0x334ef0))_0xbbf5e9['index']=_0xbbf5e9['index']+_0x1c6a29,_0x59ca42['push']({'match':_0xbbf5e9,'item':_0x2b4a3e});_0x147e8c['add'](_0x2b4a3e),_0x456a47='';}_0x32e12a['is']('element')&&_0x38cc7c(_0x32e12a);}}function _0x61fec9(_0x267420){const _0x29d645=_0x267420['getItems'](),_0x5f3595=_0x29d645['next']()['value'],_0x49d672=new Map(_0x5f3595['getAttributes']());for(const _0x199b0e of _0x29d645)for(const [_0x12337c,_0x2eba67]of _0x49d672)_0x199b0e['getAttribute'](_0x12337c)!==_0x2eba67&&_0x49d672['delete'](_0x12337c);return _0x49d672;}});}['_disableCommandOnMergeFields'](_0x2b75f7){const _0x133aa5=this['editor'],_0x56166c=_0x133aa5['commands']['get'](_0x2b75f7);_0x56166c&&_0x56166c['on']('set:isEnabled',(_0x1fbc6e,_0x2b189a,_0x31acd4)=>{if(0x1==_0x31acd4){const _0x3dd51f=_0x133aa5['model']['document']['selection']['getSelectedElement']();_0x3dd51f&&this['isMergeField'](_0x3dd51f)&&(_0x1fbc6e['return']=!0x1,_0x1fbc6e['stop']());}});}}async function checkLicense$8(_0x414c1c){const _0x321d75=_0x514918([0x63,0x76,0x71,0x43,0x59,0x4d,0x38,0x69,0x61,0x39,0x54,0x44,0x50,0x36,0x6e,0x35,0x64,0x6d,0x72,0x7a,0x62,0x4a,0x74,0x6c,0x6a,0x30,0x33,0x46,0x77,0x4c,0x78,0x49,0x70,0x45,0x57,0x53,0x55,0x47,0x37,0x41,0x52,0x75,0x32,0x31,0x4b,0x66,0x51,0x6f,0x58,0x4e,0x79,0x67,0x34,0x5a,0x42,0x65,0x4f,0x68,0x73,0x6b,0x48,0x56]),_0xbdc4c8=window[_0x514918([0x44,0x61,0x74,0x65])][_0x514918([0x6e,0x6f,0x77])](),_0x54516f=_0x414c1c[_0x514918([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16b0ac=new window[(_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16d36a=>{_0x54516f[_0x514918([0x6f,0x6e,0x63,0x65])](_0x514918([0x72,0x65,0x61,0x64,0x79]),_0x16d36a);}),_0x5b87ab={[_0x514918([0x6b,0x74,0x79])]:_0x514918([0x45,0x43]),[_0x514918([0x75,0x73,0x65])]:_0x514918([0x73,0x69,0x67]),[_0x514918([0x63,0x72,0x76])]:_0x514918([0x50,0x2d,0x32,0x35,0x36]),[_0x514918([0x78])]:_0x514918([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x514918([0x79])]:_0x514918([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x514918([0x61,0x6c,0x67])]:_0x514918([0x45,0x53,0x32,0x35,0x36])},_0x2b4baf=_0x54516f[_0x514918([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x514918([0x67,0x65,0x74])](_0x514918([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x1b9e20=await(async function(){let _0x2ce6f4,_0x787bfd=null,_0x17375f=null;try{if(_0x2b4baf==_0x514918([0x47,0x50,0x4c]))return _0x514918([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ce6f4=(function(){const _0x5068b4=_0x2b4baf[_0x514918([0x73,0x70,0x6c,0x69,0x74])](_0x514918([0x2e]));if(0x3!=_0x5068b4[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x215484=_0x5068b4[0x1];return _0x3f0d9b(_0x215484);function _0x3f0d9b(_0xc9e8d3){const _0x579b98=_0x415f75(_0xc9e8d3);return _0x579b98&&_0xd9cf73()?_0x579b98:null;function _0xd9cf73(){const _0x48e5f6=_0x579b98[_0x514918([0x6a,0x74,0x69])],_0x17e5e0=window[_0x514918([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48e5f6[_0x514918([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48e5f6[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e5862={..._0x579b98,[_0x514918([0x6a,0x74,0x69])]:_0x48e5f6[_0x514918([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48e5f6[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e5862[_0x514918([0x76,0x63])],_0x1ed519(_0x5e5862)==_0x17e5e0;}}}()),!_0x2ce6f4)return _0x514918([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2ce6f4[_0x514918([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17375f=function(_0x50fefa,_0xd0ba79){return new window[(_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182e3c=>{if(_0x150717())return _0x182e3c(_0x514918([0x56,0x61,0x6c,0x69,0x64]));_0x14d6e1(),_0x54516f[_0x514918([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x514918([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17d305=!0x1;const _0x24c061=uid();function _0x1cd68f(_0x6e53d2){return!!_0x6e53d2&&(typeof _0x6e53d2===_0x514918([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6e53d2===_0x514918([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6e53d2[_0x514918([0x74,0x68,0x65,0x6e])]===_0x514918([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6e53d2[_0x514918([0x63,0x61,0x74,0x63,0x68])]===_0x514918([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x374a61(_0x240d19){_0xce0216(_0x240d19)[_0x514918([0x74,0x68,0x65,0x6e])](_0x3ba6c4=>{if(!_0x3ba6c4||_0x3ba6c4[_0x514918([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x514918([0x6f,0x6b]))return _0x514918([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x480db6(_0x1ed519(_0x24c061+_0xd0ba79))!=_0x3ba6c4[_0x514918([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x514918([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x514918([0x56,0x61,0x6c,0x69,0x64]);})[_0x514918([0x74,0x68,0x65,0x6e])](_0x5099fb=>(_0x3f1330(),_0x5099fb),()=>{const _0x44976a=_0x2505f5();return null==_0x44976a?(_0x3f1330(),_0x514918([0x56,0x61,0x6c,0x69,0x64])):_0x514918(_0xbdc4c8-_0x44976a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x514918([0x74,0x68,0x65,0x6e])](_0x182e3c)[_0x514918([0x63,0x61,0x74,0x63,0x68])](()=>{_0x182e3c(_0x514918([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bdcc8=0x36ee80;function _0x3f1330(){const _0x427db1=_0x514918([0x6c,0x6c,0x63,0x74,0x2d])+_0x480db6(_0x1ed519(_0x50fefa)),_0x3e44c7=_0x21837c(_0x480db6(window[_0x514918([0x4d,0x61,0x74,0x68])][_0x514918([0x63,0x65,0x69,0x6c])](_0xbdc4c8/_0x2bdcc8)));window[_0x514918([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x514918([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x427db1,_0x3e44c7);}function _0x2505f5(){const _0x21c0fa=_0x514918([0x6c,0x6c,0x63,0x74,0x2d])+_0x480db6(_0x1ed519(_0x50fefa)),_0xa80390=window[_0x514918([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x514918([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21c0fa);return _0xa80390?window[_0x514918([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21837c(_0xa80390),0x10)*_0x2bdcc8:null;}function _0xce0216(_0x3d9edf){return new window[(_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fe00e,_0x1e8e45)=>{_0x3d9edf[_0x514918([0x74,0x68,0x65,0x6e])](_0x4fe00e,_0x1e8e45),window[_0x514918([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e8e45,0x1d4c0);});}}_0x54516f[_0x514918([0x6f,0x6e])](_0x514918([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e62fa,_0x4595d7)=>{if(_0x4595d7[0x0]!=_0x50fefa)return _0x182e3c(_0x514918([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4595d7[0x1]={..._0x4595d7[0x1],[_0x514918([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24c061};},{[_0x514918([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x514918([0x68,0x69,0x67,0x68])}),_0x54516f[_0x514918([0x6f,0x6e])](_0x514918([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45d6f5=>{_0x1cd68f(_0x45d6f5[_0x514918([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17d305=!0x0,_0x374a61(_0x45d6f5[_0x514918([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x514918([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x514918([0x6c,0x6f,0x77])}),_0x16b0ac[_0x514918([0x74,0x68,0x65,0x6e])](()=>{_0x17d305||_0x182e3c(_0x514918([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x150717(){return _0x54516f[_0x514918([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x514918([0x76,0x69,0x65,0x77])][_0x514918([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x514918([0x61,0x75,0x74,0x6f]);}function _0x14d6e1(){_0x54516f[_0x514918([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x514918([0x76,0x69,0x65,0x77])][_0x514918([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x514918([0x61,0x75,0x74,0x6f]);}}(_0x2ce6f4[_0x514918([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ce6f4[_0x514918([0x6a,0x74,0x69])]));const _0x35bd2e=await(async function(){let _0x546a76=!0x0;try{const _0x5b8859=_0x2b4baf[_0x514918([0x73,0x70,0x6c,0x69,0x74])](_0x514918([0x2e])),[_0x19bafe,_0x14a7e0,_0x5f960a]=_0x5b8859;return _0x2f2d16(_0x19bafe),await _0xfbee3e(_0x19bafe,_0x14a7e0,_0x5f960a),_0x546a76;}catch{return!0x1;}function _0x2f2d16(_0x5389d5){const _0x612257=_0x415f75(_0x5389d5);_0x612257&&_0x612257[_0x514918([0x61,0x6c,0x67])]==_0x514918([0x45,0x53,0x32,0x35,0x36])||(_0x546a76=!0x1);}async function _0xfbee3e(_0x17e492,_0x27cefc,_0x3d58c6){const _0x4a7cde=window[_0x514918([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x514918([0x66,0x72,0x6f,0x6d])](_0x419b8d(_0x3d58c6),_0x4e8c1b=>_0x4e8c1b[_0x514918([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1caa2d=new window[(_0x514918([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x514918([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17e492+_0x514918([0x2e])+_0x27cefc),_0x407f0c=window[_0x514918([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x514918([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x407f0c)return;const _0x53336c=await _0x407f0c[_0x514918([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x514918([0x6a,0x77,0x6b]),_0x5b87ab,{[_0x514918([0x6e,0x61,0x6d,0x65])]:_0x514918([0x45,0x43,0x44,0x53,0x41]),[_0x514918([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x514918([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x514918([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x407f0c[_0x514918([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x514918([0x6e,0x61,0x6d,0x65])]:_0x514918([0x45,0x43,0x44,0x53,0x41]),[_0x514918([0x68,0x61,0x73,0x68])]:{[_0x514918([0x6e,0x61,0x6d,0x65])]:_0x514918([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53336c,_0x4a7cde,_0x1caa2d)||(_0x546a76=!0x1);}}());return _0x35bd2e?(function(){const _0x147b96=_0x2ce6f4[_0x514918([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x147b96)return!0x1;if(_0x147b96[_0x514918([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x514918([0x2a])))return!0x0;if(_0x147b96[_0x514918([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x514918([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0xd9e8b6=[_0x514918([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x514918([0x74,0x72,0x69,0x61,0x6c])][_0x514918([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ce6f4[_0x514918([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbdc4c8/0x3e8:0x6a03bf00;return _0x2ce6f4[_0x514918([0x65,0x78,0x70])]<_0xd9e8b6;}())?_0x514918([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3dd1c8=_0x2ce6f4[_0x514918([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3dd1c8||0x0==_0x3dd1c8[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44045b}=new URL(window[_0x514918([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3dd1c8[_0x514918([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44045b))return!0x0;const _0x5d5027=_0x44045b[_0x514918([0x73,0x70,0x6c,0x69,0x74])](_0x514918([0x2e]));return _0x3dd1c8[_0x514918([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bbd16=>_0x4bbd16[_0x514918([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x514918([0x2a])))[_0x514918([0x6d,0x61,0x70])](_0x373ad7=>_0x373ad7[_0x514918([0x73,0x70,0x6c,0x69,0x74])](_0x514918([0x2e])))[_0x514918([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b217d=>_0x1b217d[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d5027[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x514918([0x6d,0x61,0x70])](_0x91a15b=>Array(_0x5d5027[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x91a15b[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x514918([0x66,0x69,0x6c,0x6c])](_0x91a15b[0x0]===_0x514918([0x2a])?_0x514918([0x2a]):'')[_0x514918([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x91a15b))[_0x514918([0x73,0x6f,0x6d,0x65])](_0x42fe89=>_0x5d5027[_0x514918([0x65,0x76,0x65,0x72,0x79])]((_0x522e58,_0x32b9e7)=>_0x42fe89[_0x32b9e7]===_0x522e58||_0x42fe89[_0x32b9e7]===_0x514918([0x2a])));}())?(_0x2ce6f4[_0x514918([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x514918([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x787bfd=function(_0x2401c8){const _0x2ae66c=new window[(_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c654=>setTimeout(_0x51c654,0x93ecc)),_0x11fdcc=_0x16b0ac[_0x514918([0x74,0x68,0x65,0x6e])](()=>new window[(_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0a1e=>{let _0x242e3b=0x0;_0x54516f[_0x514918([0x6d,0x6f,0x64,0x65,0x6c])][_0x514918([0x6f,0x6e])](_0x514918([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50e688,_0x180742)=>{_0x180742[0x0][_0x514918([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x242e3b++,0x5e8==_0x242e3b&&(_0x1b0a1e(),_0x50e688[_0x514918([0x6f,0x66,0x66])]());});})),_0x1ce7b0=[_0x2ae66c,_0x11fdcc];return window[_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x514918([0x72,0x61,0x63,0x65])](_0x1ce7b0)[_0x514918([0x74,0x68,0x65,0x6e])](()=>_0x2401c8);}(_0x514918([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x787bfd&&_0x17375f)return new window[(_0x514918([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cd23c,_0x282035)=>{_0x787bfd[_0x514918([0x74,0x68,0x65,0x6e])](_0x5cd23c,_0x282035),_0x17375f[_0x514918([0x74,0x68,0x65,0x6e])](_0x124f8f=>{_0x124f8f!=_0x514918([0x56,0x61,0x6c,0x69,0x64])&&_0x5cd23c(_0x124f8f);},_0x282035);});return _0x787bfd||_0x17375f||_0x514918([0x56,0x61,0x6c,0x69,0x64]);}())):_0x514918([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x514918([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x514918([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x514918([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x415f75(_0x16c54f){return _0x16c54f[_0x514918([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x514918([0x65,0x79]))?JSON[_0x514918([0x70,0x61,0x72,0x73,0x65])](_0x419b8d(_0x16c54f)):null;}function _0x419b8d(_0x426637){return window[_0x514918([0x61,0x74,0x6f,0x62])](_0x426637[_0x514918([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x514918([0x2b]))[_0x514918([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x514918([0x2f])));}function _0x1ed519(_0x15a863){let _0x3e509e=0x1505;function _0x2aa5b2(_0x18762d){for(let _0x5b76b7=0x0;_0x5b76b7<_0x18762d[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b76b7++){const _0x163ccc=_0x18762d[_0x514918([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b76b7);_0x3e509e=(_0x3e509e<<0x5)+_0x3e509e+_0x163ccc,_0x3e509e&=_0x3e509e;}}return function _0x4abd51(_0x1bd987){Array[_0x514918([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bd987)?_0x1bd987[_0x514918([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4abd51):_0x1bd987&&typeof _0x1bd987==_0x514918([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x514918([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bd987)[_0x514918([0x73,0x6f,0x72,0x74])]()[_0x514918([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1422cf,_0x46d13c])=>{_0x2aa5b2(_0x1422cf),_0x4abd51(_0x46d13c);}):_0x2aa5b2(window[_0x514918([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bd987));}(_0x15a863),_0x3e509e>>>0x0;}function _0x480db6(_0x501709){return _0x501709[_0x514918([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x514918([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x514918([0x30]));}function _0x21837c(_0x2b48b9){return _0x2b48b9[_0x514918([0x73,0x70,0x6c,0x69,0x74])]('')[_0x514918([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x514918([0x6a,0x6f,0x69,0x6e])]('');}function _0xe7577a(){}function _0x514918(_0x2e88ce){return _0x2e88ce['map'](_0x849cf5=>String['fromCharCode'](_0x849cf5))['join']('');}!function(_0x403b14){const _0x2881f5=(function(){const _0x4c2a88=window[_0x514918([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x514918([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x514918([0x6e,0x6f,0x77])]())[_0x514918([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x514918([0x2e]),'');let _0x23718b=_0x514918([0x63]);for(let _0x3f73f8=0x0;_0x3f73f8<_0x4c2a88[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f73f8+=0x2){let _0x44c2f0=window[_0x514918([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c2a88[_0x514918([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f73f8,_0x3f73f8+0x2));_0x44c2f0>=_0x321d75[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44c2f0-=_0x321d75[_0x514918([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23718b+=_0x321d75[_0x44c2f0];}return _0x23718b;}());_0x54516f[_0x2881f5]=_0x514918([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x403b14,_0x403b14!=_0x514918([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x16b0ac,_0x54516f[_0x514918([0x6d,0x6f,0x64,0x65,0x6c])][_0x514918([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe7577a,_0x54516f[_0x514918([0x6d,0x6f,0x64,0x65,0x6c])][_0x514918([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe7577a,_0x54516f[_0x514918([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x514918([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x1b9e20);}class MergeFieldsListView extends ListView{['filter'](_0xe593ad){return filterGroupAndItemNames(_0xe593ad,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x222f67){super(_0x222f67),this['set']('text','');const _0xc15497=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-merge-fields-form']},'children':[{'tag':'div','attributes':{'class':['ck','ck-merge-fields-form__status']},'children':[{'text':_0xc15497['to']('text')}]}]});}}function getTranslation$8(_0x508183,_0xc55dab){const t=_0x508183['t'];switch(_0xc55dab){case'Search\x20merge\x20field':return t('Search\x20merge\x20field');case'No\x20merge\x20fields\x20found':return t('No\x20merge\x20fields\x20found');case'No\x20merge\x20fields\x20available':return t('No\x20merge\x20fields\x20available');case'Insert\x20merge\x20field':return t('Insert\x20merge\x20field');case'Merge\x20field':return t('Merge\x20field');case'Merge\x20fields\x20preview':return t('Merge\x20fields\x20preview');case'Labels':return t('Labels');case'Default\x20values':return t('Default\x20values');case'WARNING_MISSING_DATA_USED_DEFAULT_VALUE':return t({'string':'Default\x20value\x20is\x20used.','id':'WARNING_MISSING_DATA_USED_DEFAULT_VALUE'});case'WARNING_MISSING_DEFAULT_VALUE':return t({'string':'Default\x20value\x20not\x20available.','id':'WARNING_MISSING_DEFAULT_VALUE'});case'WARNING_MISSING_DATA':return t({'string':'Value\x20not\x20available.','id':'WARNING_MISSING_DATA'});default:return _0xc55dab;}}class MergeFieldsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_balloon'];['_balloonPanelView']=null;static get['requires'](){return[Mention,MergeFieldsEditing,ContextualBalloon,Widget];}static get['pluginName'](){return'MergeFieldsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35adc4){super(_0x35adc4),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x319375=this['editor'];_0x319375['ui']['componentFactory']['add']('insertMergeField',_0x5dd1db=>{const _0x5d0a68=createInsertMergeFieldDropdown(_0x5dd1db);return _0x5d0a68['bind']('isEnabled')['toMany']([_0x319375['commands']['get']('insertMergeField'),_0x319375['commands']['get']('insertMergeFieldBlock'),_0x319375['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x3bfaca)=>_0x3bfaca['some'](_0x4282fa=>_0x4282fa)),_0x5d0a68['once']('change:isOpen',()=>{const _0x3f4c7d={'insertInline':_0x319375['commands']['get']('insertMergeField'),'insertBlock':_0x319375['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x319375['commands']['get']('insertMergeFieldImage')},_0x40dc97=createMergeFieldsListView(_0x5dd1db,_0x319375['config']['get']('mergeFields.definitions'),_0x3f4c7d);_0x40dc97['delegate']('execute')['to'](_0x5d0a68),_0x5d0a68['on']('execute',(_0x2268ee,_0x59e86d)=>{const _0x5cbf9e=_0x319375['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x59e86d);'image'===_0x5cbf9e?_0x319375['execute']('insertMergeFieldImage',_0x59e86d):'block'===_0x5cbf9e?_0x319375['execute']('insertMergeFieldBlock',_0x59e86d):_0x319375['execute']('insertMergeField',_0x59e86d),_0x319375['editing']['view']['focus']();});const _0x271f09=createMergeFieldsSearchTextView(_0x5dd1db,_0x40dc97);_0x5d0a68['panelView']['children']['add'](_0x271f09),_0x5d0a68['on']('change:isOpen',(_0x4e0bae,_0x292bbf,_0x744b81)=>{_0x744b81&&_0x271f09['reset']();});}),_0x5d0a68;}),_0x319375['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x16ecd4=>{const _0x4afa95=new MenuBarMenuView(_0x16ecd4),_0x1cd213={'insertInline':_0x319375['commands']['get']('insertMergeField'),'insertBlock':_0x319375['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x319375['commands']['get']('insertMergeFieldImage')};_0x4afa95['buttonView']['set']({'label':getTranslation$8(_0x16ecd4,'Merge\x20field'),'icon':IconInsertMergeField}),_0x4afa95['bind']('isEnabled')['toMany']([...Object['values'](_0x1cd213)],'isEnabled',(..._0x289ecd)=>_0x289ecd['some'](_0x585a8e=>_0x585a8e));const _0x3dcce6=[],_0x10c45a=new MenuBarMenuListView(_0x16ecd4);for(const _0x48b4ab of _0x319375['config']['get']('mergeFields.definitions'))if('groupId'in _0x48b4ab){const _0x54b546=new MenuBarMenuListItemView(_0x16ecd4,_0x4afa95),_0x44794f=createMenuBarSubmenu(_0x16ecd4,_0x48b4ab,_0x1cd213);_0x54b546['children']['add'](_0x44794f),_0x44794f['delegate']('execute')['to'](_0x4afa95),_0x10c45a['items']['add'](_0x54b546);}else _0x3dcce6['push'](_0x48b4ab);if(_0x3dcce6['length']){if(0x0===_0x10c45a['items']['length'])for(const _0x14434a of _0x3dcce6){let _0x45d17d;_0x45d17d='block'===_0x14434a['type']?_0x1cd213['insertBlock']:'image'===_0x14434a['type']?_0x1cd213['insertImage']:_0x1cd213['insertInline'];const _0x5b3dfa=createMenuBarListItem(_0x16ecd4,_0x14434a,_0x4afa95,_0x45d17d);_0x10c45a['items']['add'](_0x5b3dfa);}else{const _0x36c144=new MenuBarMenuListItemView(_0x16ecd4,_0x4afa95),_0x3c2c3f=createMenuBarSubmenu(_0x16ecd4,{'groupId':'Other','definitions':_0x3dcce6},_0x1cd213);_0x36c144['children']['add'](_0x3c2c3f),_0x3c2c3f['delegate']('execute')['to'](_0x4afa95),_0x10c45a['items']['add'](_0x36c144);}}return _0x4afa95['panelView']['children']['add'](_0x10c45a),_0x4afa95['on']('execute',(_0x29225d,_0x35829)=>{const _0x3f1d40=_0x319375['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x35829);'image'===_0x3f1d40?_0x319375['execute']('insertMergeFieldImage',_0x35829):'block'===_0x3f1d40?_0x319375['execute']('insertMergeFieldBlock',_0x35829):_0x319375['execute']('insertMergeField',_0x35829),_0x319375['editing']['view']['focus']();}),_0x4afa95;});const _0x1d2b63=_0x319375['config']['get']('mergeFields.previewModes'),_0x2e9753=[];if(_0x1d2b63['includes']('$labels')&&_0x2e9753['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x1d2b63['includes']('$defaultValues')&&_0x2e9753['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x1d2b63['includes']('$dataSets')){const _0xd0db61=_0x319375['config']['get']('mergeFields.dataSets');if(_0xd0db61['length']){for(const _0x24e4ae of _0xd0db61)_0x2e9753['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x24e4ae['label']||_0x24e4ae['id'],'commandValue':_0x24e4ae['id']})});}}_0x319375['ui']['componentFactory']['add']('previewMergeFields',_0x4c74e3=>{const _0x52f1a3=_0x319375['commands']['get']('previewMergeFields'),_0x10fdd1=new Collection();for(const _0x4a2e21 of cloneDeep(_0x2e9753))_0x4a2e21['model']['bind']('isOn')['to'](_0x52f1a3,'value',_0xc5798d=>_0xc5798d===_0x4a2e21['model']['commandValue']),_0x10fdd1['add'](_0x4a2e21);const _0x310004=createDropdown(_0x4c74e3),_0x4320ce=getTranslation$8(_0x4c74e3,'Merge\x20fields\x20preview');return _0x310004['bind']('isEnabled')['to'](_0x52f1a3),addListToDropdown(_0x310004,_0x10fdd1,{'ariaLabel':_0x4320ce,'role':'menu'}),_0x310004['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x310004['buttonView']['set']({'label':_0x4320ce,'ariaLabel':_0x4320ce,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x310004,'execute',_0x228b7d=>{const {commandValue:_0x49b69b}=_0x228b7d['source'];_0x319375['execute']('previewMergeFields',_0x49b69b),_0x319375['editing']['view']['focus']();}),_0x310004;}),_0x319375['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x1a7b13=>{const _0x3eb925=new MenuBarMenuView(_0x1a7b13),_0x69e7bf=_0x319375['commands']['get']('previewMergeFields');_0x3eb925['buttonView']['set']({'label':getTranslation$8(_0x1a7b13,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x3eb925['bind']('isEnabled')['to'](_0x69e7bf);const _0xfb0a9e=new MenuBarMenuListView(_0x1a7b13);_0xfb0a9e['set']({'ariaLabel':getTranslation$8(_0x1a7b13,'Merge\x20fields\x20preview')});for(const _0xf90db4 of cloneDeep(_0x2e9753)){const _0x3f691b=new MenuBarMenuListItemView(_0x1a7b13,_0x3eb925),_0x518322=new MenuBarMenuListItemButtonView(_0x1a7b13);_0xf90db4['model']['bind']('isOn')['to'](_0x69e7bf,'value',_0x2ce813=>_0x2ce813===_0xf90db4['model']['commandValue']),_0x518322['isToggleable']=!0x0,_0x518322['bind'](...Object['keys'](_0xf90db4['model']))['to'](_0xf90db4['model']),_0x518322['delegate']('execute')['to'](_0x3eb925),_0x518322['on']('execute',_0x17f487=>{const {commandValue:_0x2a993a}=_0x17f487['source'];_0x319375['execute']('previewMergeFields',_0x2a993a),_0x319375['editing']['view']['focus']();}),_0x3f691b['children']['add'](_0x518322),_0xfb0a9e['items']['add'](_0x3f691b);}return _0x3eb925['panelView']['children']['add'](_0xfb0a9e),_0x3eb925;}),this['_balloon']=_0x319375['plugins']['get'](ContextualBalloon),this['listenTo'](_0x319375['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x319375['ui']['focusTracker'],'change:isFocused',(_0x4b273d,_0x3e3768,_0x1bbe69)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x1bbe69?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b3121=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5289af;for(const _0x2f49f8 in _0x2b3121){const _0x41ac49=_0x2f49f8,_0x543659=_0x2b3121[_0x41ac49];if('mergeFieldsLicenseKeyValid'==_0x543659||'mergeFieldsLicenseKeyInvalid'==_0x543659||'mergeFieldsLicenseKeyExpired'==_0x543659||'mergeFieldsLicenseKeyDomainLimit'==_0x543659||'mergeFieldsLicenseKeyNotAllowed'==_0x543659||'mergeFieldsLicenseKeyEvaluationLimit'==_0x543659||'mergeFieldsLicenseKeyUsageLimit'==_0x543659){delete _0x2b3121[_0x41ac49],_0x5289af=_0x543659,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x5289af&&_0x2b3121['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x5289af&&_0x2b3121['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x5289af&&_0x2b3121['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x5289af&&_0x2b3121['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x5289af&&_0x2b3121['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x5289af&&_0x2b3121['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x11149a=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x4f2be9=!(!_0x11149a||!_0x11149a['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x4f2be9){const _0x125f6b=_0x11149a['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x125f6b),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x4f2be9){const _0x150c80=_0x11149a['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x150c80));}}}['_showBalloon'](_0x370306){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x370306),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x290488=this['editor']['editing']['view'];return{'target':()=>{const _0x36b936=_0x290488['document']['selection']['getFirstRange'](),_0xcf6e7a=_0x290488['domConverter']['mapViewToDom'](_0x36b936['getContainedElement']());return _0xcf6e7a?Array['from'](_0xcf6e7a['getClientRects']())[0x0]:_0x290488['domConverter']['viewRangeToDom'](_0x36b936);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0x277994=>_0x277994))return;const _0x2a8a88=this['editor']['config']['get']('mergeFields.previewModes');_0x2a8a88['indexOf']('$defaultValues')>-0x1&&_0x2a8a88['length']>0x1&&(_0x2a8a88['splice'](_0x2a8a88['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x2a8a88));}['_removeMenuBarButtonIfUnnecessary'](){const _0x54e40e=this['editor']['config'];if(_0x54e40e['get']('mergeFields.previewModes')){const _0x29912e=_0x54e40e['get']('mergeFields.previewModes');if(0x1===_0x29912e['length']){if(_0x29912e['includes']('$dataSets'))0x1===_0x54e40e['get']('mergeFields.dataSets')['length']&&_0x56e7db();else _0x56e7db();}}function _0x56e7db(){const _0xc19355=_0x54e40e['get']('menuBar.removeItems');_0xc19355?(_0xc19355['push']('menuBar:previewMergeFields'),_0x54e40e['set']('menuBar.removeItems',_0xc19355)):_0x54e40e['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x579310=this['editor'],_0xd2467b=_0x579310['config']['get']('mention.feeds'),_0x5912b6=_0x579310['config']['get']('mergeFields.prefix');_0xd2467b['push']({'marker':_0x5912b6,'dropdownLimit':0xa,'feed':_0x326a78=>_0x579310['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x5cf47a=>{const _0x2394c0=_0x579310['commands']['get']('insertMergeField')['isEnabled'],_0x155e72=_0x579310['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x534a41=_0x579310['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x38a9dd=_0x579310['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x5cf47a['id']);if('text'===_0x38a9dd&&!_0x2394c0)return!0x1;if('block'===_0x38a9dd&&!_0x155e72)return!0x1;if('image'===_0x38a9dd&&!_0x534a41)return!0x1;return(_0x579310['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5cf47a['id'])||_0x5cf47a['id'])['toLowerCase']()['includes'](_0x326a78['toLowerCase']());}),'itemRenderer':_0x24b53f=>{const _0x557c1a=document['createElement']('button');return _0x557c1a['innerHTML']=''+(_0x24b53f['label']||_0x24b53f['id']),_0x557c1a;}}),_0x579310['config']['set']('mention.feeds',_0xd2467b);}['_overrideMentionExecuteListener'](){const _0x329898=this['editor'];_0x329898['commands']['get']('mention')['on']('execute',(_0x355359,_0x4401f7)=>{const _0x1f15b9=_0x4401f7[0x0];_0x1f15b9['marker']===_0x329898['config']['get']('mergeFields.prefix')&&_0x329898['model']['change'](_0x3eea2d=>{_0x3eea2d['remove'](_0x1f15b9['range']);const _0x2a5c27=_0x1f15b9['mention']['id'],_0x4fd442=_0x329898['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x2a5c27);'text'===_0x4fd442?_0x329898['execute']('insertMergeField',_0x2a5c27):'block'===_0x4fd442?_0x329898['execute']('insertMergeFieldBlock',_0x2a5c27,!0x1):_0x329898['execute']('insertMergeFieldImage',_0x2a5c27,{'breakBlock':!0x0}),_0x355359['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x587ae7){const _0x15b167=createDropdown(_0x587ae7);return _0x15b167['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x15b167['buttonView']['set']({'label':getTranslation$8(_0x587ae7,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x15b167;}function createMergeFieldsListView(_0x20f4af,_0x1197c7,_0x4681ae){const _0x54c92d=new MergeFieldsListView(_0x20f4af),_0x4062ee=[],_0x2f74f0=[];for(const _0x2b3110 of _0x1197c7)if('groupId'in _0x2b3110){const _0x1f211b=createMergeFieldsGroupView(_0x20f4af,_0x2b3110['groupLabel']||_0x2b3110['groupId'],_0x2b3110['definitions'],_0x4681ae);_0x1f211b['delegate']('execute')['to'](_0x54c92d),_0x2f74f0['push'](_0x1f211b);}else _0x4062ee['push'](_0x2b3110);if(_0x4062ee['length']){const _0x4bdb13=createMergeFieldsGroupView(_0x20f4af,'Other',_0x4062ee,_0x4681ae);_0x4bdb13['delegate']('execute')['to'](_0x54c92d),_0x2f74f0['push'](_0x4bdb13);}return _0x54c92d['items']['addMany'](_0x2f74f0),_0x54c92d;}function createMergeFieldsGroupView(_0x6751fa,_0x1de17b,_0x1a5d58,_0x1462cb){const _0x4a605f=new ListItemGroupView(_0x6751fa,new LabelWithHighlightView());_0x4a605f['label']=_0x1de17b;for(const _0x54d1a4 of _0x1a5d58){let _0x56bc68;_0x56bc68='block'===_0x54d1a4['type']?_0x1462cb['insertBlock']:'image'===_0x54d1a4['type']?_0x1462cb['insertImage']:_0x1462cb['insertInline'];const _0x3136e0=createMergeFieldListItemView(_0x6751fa,_0x54d1a4,_0x56bc68);_0x3136e0['delegate']('execute')['to'](_0x4a605f),_0x4a605f['items']['add'](_0x3136e0);}return _0x4a605f;}function createMergeFieldListItemView(_0x25b3e8,_0x19e0dc,_0x51ab99){const _0x336bf2=new ListItemView(_0x25b3e8),_0x266521=new ButtonLabelWithHighlightView(),_0x530624=new ButtonView(_0x25b3e8,_0x266521);return _0x336bf2['children']['add'](_0x530624),_0x530624['set']({'label':_0x19e0dc['label']||_0x19e0dc['id'],'withText':!0x0}),_0x530624['bind']('isEnabled')['to'](_0x51ab99),_0x530624['on']('execute',()=>{_0x336bf2['fire']('execute',_0x19e0dc['id']);}),_0x336bf2;}function createMergeFieldsSearchTextView(_0x33fcb6,_0x2998a3){return new SearchTextView(_0x33fcb6,{'filteredView':_0x2998a3,'queryView':{'label':getTranslation$8(_0x33fcb6,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x33fcb6,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x33fcb6,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x5b9927,_0x2618a8,_0x1b7e8){const _0x1bf776=new MenuBarMenuView(_0x5b9927),_0x512956=new MenuBarMenuListView(_0x5b9927);for(const _0x4b0852 of _0x2618a8['definitions']){let _0x414711;_0x414711='block'===_0x4b0852['type']?_0x1b7e8['insertBlock']:'image'===_0x4b0852['type']?_0x1b7e8['insertImage']:_0x1b7e8['insertInline'];const _0x1d6816=createMenuBarListItem(_0x5b9927,_0x4b0852,_0x1bf776,_0x414711);_0x512956['items']['add'](_0x1d6816);}return _0x1bf776['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x1bf776['buttonView']['set']({'label':_0x2618a8['groupLabel']||_0x2618a8['groupId']}),_0x1bf776['panelView']['children']['add'](_0x512956),_0x1bf776;}function createMenuBarListItem(_0x5e03c3,_0x152c27,_0x34083a,_0x45fa96){const _0x316db0=new MenuBarMenuListItemView(_0x5e03c3,_0x34083a),_0x2dd624=new MenuBarMenuListItemButtonView(_0x5e03c3);return _0x2dd624['set']({'label':_0x152c27['label']||_0x152c27['id']}),_0x316db0['delegate']('execute')['to'](_0x34083a),_0x316db0['children']['add'](_0x2dd624),_0x2dd624['bind']('isEnabled')['to'](_0x45fa96),_0x2dd624['on']('execute',()=>{_0x316db0['fire']('execute',_0x152c27['id']);}),_0x316db0;}class MergeFields extends Plugin{static get['requires'](){return[MergeFieldsEditing,MergeFieldsUI];}static get['pluginName'](){return'MergeFields';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const COLUMN_GAP=0x64,EDITING_RENDER_TIMEOUT=0xc8;class PaginationLookup extends Plugin{['_recalculatePageBreaksDebounced']=debounce(()=>this['_recalculatePageBreaks'](),EDITING_RENDER_TIMEOUT);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void logWarning('pagination-config-not-found',this['editor']['config']);const _0x10d930=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x10d930),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x504d1d,_0x398516,_0x10a5a5)=>{_0x10a5a5&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x2c490e=this['editor'],_0x7ca7ac=_0x2c490e['editing']['view'],_0x15e87e=this['_getAttachedDomRoot']();if(!_0x15e87e||0x0===_0x15e87e['childElementCount'])return void _0x2c490e['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x40f417,pageHeight:_0x24e868}=_0x2c490e['config']['get']('pagination'),{top:_0xc6839d,left:_0x1086a0,bottom:_0x4658d2,right:_0x25df49}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x2c490e['locale']);const _0x12f0e1=this['_pagesContainer'];_0x12f0e1['set']('class',''),_0x12f0e1['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x40f417,'width':_0x40f417,'height':'calc(\x20'+_0x24e868+'\x20-\x20'+_0xc6839d+'\x20-\x20'+_0x4658d2+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x25df49+'\x200\x20'+_0x1086a0,'columnGap':'calc('+_0x1086a0+'\x20+\x20'+_0x25df49+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x12f0e1['bindTemplate']['to']('class')}}),_0x12f0e1['render'](),_0x15e87e['parentNode']['insertBefore'](_0x12f0e1['element'],_0x15e87e['nextSibling']),this['listenTo'](_0x7ca7ac,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x5794c2 of this['editor']['editing']['view']['domRoots']['values']())if(_0x5794c2['ownerDocument']['body']['contains'](_0x5794c2))return _0x5794c2;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x395dd7=this['editor']['editing']['view'],_0x75d5c2=this['_pagesContainer'],_0xedeb26=this['_getAttachedDomRoot']();if(!_0xedeb26)return Promise['resolve']();for(_0x75d5c2['class']=['ck-reset','ck-pagination-view',..._0xedeb26['classList']]['join']('\x20');_0x75d5c2['element']['firstChild'];)_0x75d5c2['element']['firstChild']['remove']();const _0x358abe=Array['from'](_0x395dd7['domRoots']);_0x358abe['sort'](([,_0x162334],[,_0x1a58c6])=>_0x162334['compareDocumentPosition'](_0x1a58c6)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x5ca485,_0x5c65eb]of _0x358abe){const _0x48e705=_0x5c65eb['cloneNode'](!0x0);'attributeStyleMap'in _0x48e705&&_0x48e705['attributeStyleMap']['clear'](),_0x48e705['dataset']['rootName']=_0x5ca485,_0x48e705['className']='ck-content\x20ck-pagination_enabled',_0x48e705['removeAttribute']('id'),_0x48e705['tabIndex']=-0x1,_0x75d5c2['element']['append'](_0x48e705);}const _0x16aa31=Array['from'](_0x75d5c2['element']['querySelectorAll']('img'));return allImagesAreReady(_0x16aa31)['then'](()=>{for(const _0x47c140 of _0x16aa31['filter'](_0xa4798b=>!_0xa4798b['closest']('table')))if(_0x47c140['offsetParent']){const _0x12c59a=_0x1a0b09['window']['getComputedStyle'](_0x47c140),_0x31a12d=_0x1a0b09['document']['createElement']('span');for(const _0x38dd82 of _0x12c59a)_0x31a12d['style']['setProperty'](_0x38dd82,_0x12c59a[_0x38dd82]);_0x31a12d['style']['backgroundImage']='url(\x20'+_0x47c140['src']+'\x20)',_0x31a12d['style']['breakInside']='avoid','PICTURE'==_0x47c140['parentElement']?.['tagName']?_0x47c140['parentElement']['replaceWith'](_0x31a12d):_0x47c140['replaceWith'](_0x31a12d);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x295dc2=this['_pagesContainer']['element'];if(!_0x295dc2['ownerDocument']['body']['contains'](_0x295dc2))return;const _0x5a7095=new Rect(_0x295dc2)['excludeScrollbarsAndBorders'](),_0x1a1589=Math['floor'](_0x5a7095['width']+COLUMN_GAP),_0x563e55=findPageStarterInfos(_0x295dc2,Math['floor'](_0x5a7095['left']-_0x295dc2['scrollLeft']),_0x1a1589,_0x5a7095['height'])['map'](_0x436707=>this['_mapPageStarterInfoToPageBreakInfo'](_0x436707))['filter'](_0x14f7ff=>!0x1!==_0x14f7ff);_0x563e55['every'](_0x2a9886=>!!_0x2a9886)&&(this['pageBreaks']=_0x563e55);}['_mapPageStarterInfoToPageBreakInfo'](_0x4e0a5){const _0x45107c=this['editor']['editing']['view'],_0x524bc6=this['editor']['editing']['mapper'],_0x4172fc=_0x45107c['domConverter'],_0x551b26=_0x4e0a5['path']['shift'](),_0x65a508=this['_pagesContainer']['element']['childNodes'][_0x551b26]['dataset']['rootName'],_0x5741cc=_0x45107c['getDomRoot'](_0x65a508);if(!_0x5741cc)return null;const _0x4df7b0=pageElementToViewElement(_0x5741cc,_0x4e0a5);if(!_0x4df7b0)return null;const _0x3445e9=_0x4172fc['domPositionToView'](_0x4df7b0,_0x4e0a5['textOffset']||0x0);return _0x3445e9?'manual'==_0x4e0a5['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x3445e9,_0x4df7b0):'text'==_0x4e0a5['type']&&_0x524bc6['toModelPosition'](_0x3445e9)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x3445e9,_0x4df7b0,_0x4e0a5['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x3445e9,_0x4df7b0,_0x4e0a5['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x153b64,_0x543dcd){const _0x4f5218=this['editor']['model'],_0xc25844=this['editor']['editing']['mapper']['toModelElement'](_0x153b64['parent']),_0x5d0219=_0x4f5218['createRangeOn'](_0xc25844);return new PageBreakInfo({'type':'manual','modelRange':_0x5d0219,'domNode':_0x543dcd,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x2165c3,_0x3d3a38,_0x787f82){const _0x35468a=this['editor']['model'],_0x39cc68=this['editor']['editing']['mapper'],_0xc46c1=this['editor']['editing']['view']['domConverter'];if(_0x787f82>=_0x3d3a38['length'])return null;const _0xb5b65d=_0x39cc68['toModelPosition'](_0x2165c3),_0x19094d=_0x35468a['createRange'](_0xb5b65d),_0x5f1a73=_0x39cc68['findMappedViewAncestor'](_0x2165c3),_0x49da7a=_0xc46c1['mapViewToDom'](_0x5f1a73);return new PageBreakInfo({'type':'text','modelRange':_0x19094d,'domNode':_0x3d3a38,'offset':findOffsetTopForTextOffset(_0x3d3a38,_0x787f82,_0x49da7a)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x363112,_0x8a4891,_0x14986c){const _0x567be4=this['editor']['model'],_0x555004=this['editor']['editing'],_0x5aef43=_0x555004['mapper'],_0x48b2b8=_0x555004['view']['domConverter'],_0x3fdfaf=_0x5aef43['findMappedViewAncestor'](_0x363112),_0xb7057e=_0x5aef43['toModelElement'](_0x3fdfaf);if(!_0xb7057e||_0xb7057e['is']('element','$root'))return!0x1;const _0x2f93b6=getTopMostParentBlockTouchingPosition(_0x567be4['createPositionBefore'](_0xb7057e))||_0xb7057e;let _0x532a4e=_0x5aef43['toViewElement'](_0x2f93b6),_0xee4dd8=_0x567be4['createRangeOn'](_0x2f93b6);const _0x1b199a=_0x567be4['createPositionBefore'](_0x2f93b6)['nodeBefore'];if(_0x1b199a&&_0x1b199a['is']('element','imageBlock')){const _0x43b700=_0x5aef43['toViewElement'](_0x1b199a),_0x5caeda=_0x48b2b8['mapViewToDom'](_0x43b700),_0x2f97eb=_0x1a0b09['window']['getComputedStyle'](_0x5caeda)['float'];'left'!=_0x2f97eb&&'right'!=_0x2f97eb||(_0xee4dd8=_0x567be4['createRangeOn'](_0x1b199a));}for(;_0x532a4e['parent']!==_0x532a4e['root']&&0x0===_0x532a4e['index'];)_0x532a4e=_0x532a4e['parent'];const _0x4c0edf=new Rect(isHTMLElement(_0x8a4891)?_0x8a4891:createDomRangeOn(_0x8a4891)),_0x571446=_0x14986c?_0x4c0edf['height']-_0x14986c:0x0,_0x3636ba=_0x48b2b8['mapViewToDom'](_0x532a4e),_0x43e83d=new Rect(_0x3636ba);return new PageBreakInfo({'type':'element','modelRange':_0xee4dd8,'domNode':_0x3636ba,'offset':Math['round'](_0x571446)||_0x3fdfaf!=findBlockAncestor(_0x363112)?_0x571446+_0x4c0edf['top']-_0x43e83d['top']:0x0});}get['_configuredPaddings'](){const _0x2f77fa=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x2f77fa);}static['_findPageStarterInfos'](_0x3e72fb,_0x5e9fea,_0x8078f,_0x597779,_0x2ac52a){return findPageStarterInfos(_0x3e72fb,_0x5e9fea,_0x8078f,_0x597779,_0x2ac52a);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x13c65a,modelRange:_0x38e125,domNode:_0x1c28c6,offset:_0x5ca187}){this['type']=_0x13c65a,this['modelRange']=_0x38e125,this['_domNode']=_0x1c28c6,this['_offset']=_0x5ca187;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x4d9193=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x4d9193['top']+_0x4d9193['height']/0x2:_0x4d9193['top']+this['_offset'];}}function isPageBreak(_0x7d53ee){return!(!_0x7d53ee||!isHTMLElement(_0x7d53ee))&&Boolean(_0x7d53ee['classList']['contains']('page-break')||_0x7d53ee['closest']('.page-break'));}function pageElementToViewElement(_0x4971b4,_0x17bfac){let _0x4e5b57=_0x4971b4;for(const _0xb63811 of _0x17bfac['path']){if(!_0x4e5b57)return null;_0x4e5b57=_0x4e5b57['childNodes'][_0xb63811];}return _0x4e5b57;}function findOffsetTopForTextOffset(_0xbb1752,_0x1f3913,_0x42b597){const _0x5f2103=createDomRangeOn(_0xbb1752),_0x253a5f=createDomRangeIn(_0x42b597);let _0x349553;_0x349553=0x0==_0x1f3913?createDomRangeMultiNode(_0x253a5f['startContainer'],_0x253a5f['startOffset'],_0xbb1752['parentNode'],Array['from'](_0xbb1752['parentNode']['childNodes'])['indexOf'](_0xbb1752)):createDomRangeMultiNode(_0x253a5f['startContainer'],_0x253a5f['startOffset'],_0xbb1752,_0x1f3913);const _0x303d0b=createDomRangeMultiNode(_0xbb1752,_0x1f3913,_0x253a5f['endContainer'],_0x253a5f['endOffset']),_0x27cf3=new Rect(_0x349553)['bottom'];return(new Rect(_0x303d0b)['top']+_0x27cf3)/0x2-new Rect(_0x5f2103)['top'];}function getTopMostParentBlockTouchingPosition(_0x13e002){const _0x4fffc7=_0x13e002['parent'],_0x1960a6=_0x4fffc7['root']['document']['model'],_0x55327f=_0x4fffc7['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x99921d=null;for(const _0x159afc of _0x55327f){if(_0x159afc['is']('rootElement'))return _0x99921d;if(!_0x1960a6['createPositionBefore'](_0x159afc)['isTouching'](_0x13e002))return _0x99921d;_0x99921d=_0x159afc;}}function findBlockAncestor(_0x31ba9a){let _0x424d28=_0x31ba9a['parent'];for(;_0x424d28['is']('$text')||_0x424d28['is']('attributeElement');)_0x424d28=_0x424d28['parent'];return _0x424d28;}function allImagesAreReady(_0x1118f9){return Promise['all'](_0x1118f9['map'](_0x4fdbe6=>Promise['race']([imageReady(_0x4fdbe6),timeout(0x3e8)])));}function imageReady(_0x154b97){return _0x154b97['hasAttribute']('width')&&_0x154b97['hasAttribute']('height')?Promise['resolve']():new Promise(_0x1a3cf4=>{function _0x56a66f(){_0x154b97['removeEventListener']('load',_0x56a66f),_0x154b97['removeEventListener']('error',_0x56a66f),_0x1a3cf4();}_0x154b97['complete']?_0x1a3cf4():(_0x154b97['addEventListener']('load',_0x56a66f),_0x154b97['addEventListener']('error',_0x56a66f));});}function timeout(_0x54a509){return new Promise(_0x32f0df=>setTimeout(_0x32f0df,_0x54a509));}function nextAnimationFrame(){return new Promise(_0x1f8c5f=>_0x1a0b09['window']['requestAnimationFrame'](()=>_0x1f8c5f()));}function createDomRangeOn(_0x8d6f30){const _0x54e734=_0x1a0b09['document']['createRange']();return _0x54e734['selectNode'](_0x8d6f30),_0x54e734;}function createDomRangeIn(_0x28c3d8){const _0x3eecc0=_0x1a0b09['document']['createRange']();return _0x3eecc0['selectNodeContents'](_0x28c3d8),_0x3eecc0;}function createDomRange(_0x22f0c1,_0x5eff10,_0x3afbe4){const _0x6760cf=_0x1a0b09['document']['createRange']();return _0x6760cf['setStart'](_0x22f0c1,_0x5eff10),_0x6760cf['setEnd'](_0x22f0c1,_0x3afbe4),_0x6760cf;}function createDomRangeMultiNode(_0x3cb399,_0x503fae,_0x12aa37,_0x16bc5b){const _0x1f425c=_0x1a0b09['document']['createRange']();return _0x1f425c['setStart'](_0x3cb399,_0x503fae),_0x1f425c['setEnd'](_0x12aa37,_0x16bc5b),_0x1f425c;}function findPageStarterInfos(_0x6cc500,_0x5cc056,_0x1718a3,_0x25d332,_0xa2efe6){const _0x199905=[];for(const [_0x370b89,_0x3fc44e]of _0x6cc500['childNodes']['entries']()){let _0xa9813d=[];isHTMLElement(_0x3fc44e)&&_0x3fc44e['offsetParent']&&['static','relative']['includes'](_0x1a0b09['window']['getComputedStyle'](_0x3fc44e)['position'])?_0xa9813d=findPageStartersInElementNode(_0x3fc44e,_0x370b89,_0x5cc056,_0x1718a3,_0x25d332,_0xa2efe6):isText(_0x3fc44e)&&(_0xa9813d=findPageStartersInTextNode(_0x3fc44e,_0x370b89,_0x5cc056,_0x1718a3,_0xa2efe6)),_0xa9813d['length']&&(_0x199905['push'](..._0xa9813d),_0x5cc056+=_0xa9813d['length']*_0x1718a3,_0xa2efe6=!0x1);}return _0x199905;}function findPageStartersInElementNode(_0x3fe5db,_0x104a5e,_0x478a37,_0x2f93ae,_0x263321,_0xf4eded){const _0x814551=[];if(isPageBreak(_0x3fe5db['previousSibling'])&&(_0x814551['push']({'type':'manual','offset':0x0,'path':[_0x104a5e-0x1]}),_0xf4eded=!0x0),'table-row'==_0x1a0b09['window']['getComputedStyle'](_0x3fe5db)['display']){let _0x3c1e21=0x0,_0x4905e4=!0x1;for(const _0x1f4fe0 of _0x3fe5db['getClientRects']())_0x3c1e21+=_0x1f4fe0['height'],_0x1f4fe0['left']>=_0x478a37&&(_0x4905e4=!0x0);if(_0x3c1e21<_0x263321&&_0x4905e4)return _0xf4eded||_0x814551['push']({'type':'element','offset':0x0,'path':[_0x104a5e]}),_0x814551;}const _0x26654e=_0x3fe5db['closest']('figure.image');if(_0x26654e&&shouldIgnoreFigure(_0x26654e)){const _0x4435e6=_0x1a0b09['window']['getComputedStyle'](_0x26654e)['float'];if('left'==_0x4435e6||'right'==_0x4435e6)return _0x814551;}const _0x411ca9=findPageStarterInfos(_0x3fe5db,_0x478a37,_0x2f93ae,_0x263321,_0xf4eded);if(_0x411ca9['length']){for(const _0x10edb3 of _0x411ca9)_0x814551['push']({'type':_0x10edb3['type'],'offset':_0x10edb3['offset'],'textOffset':_0x10edb3['textOffset'],'path':[_0x104a5e,..._0x10edb3['path']]}),_0x478a37+=_0x2f93ae,_0xf4eded=!0x1;return _0x814551;}return _0x814551['push'](...findPageStartersInLeafElementNode(_0x3fe5db,_0x104a5e,_0x478a37,_0x2f93ae,_0xf4eded)),_0x814551;}function findPageStartersInLeafElementNode(_0xc7e220,_0x48b501,_0x55ca0,_0x56c243,_0x191a7a){const _0x3b7170=[];if('table-cell'==_0x1a0b09['window']['getComputedStyle'](_0xc7e220)['display'])return[];const _0x2dd64a=[];for(const _0x4bec96 of _0xc7e220['getClientRects']())if(_0x4bec96['left']>=_0x55ca0){for(const _0x546c05 of _0x2dd64a)_0x546c05['height']+=_0x4bec96['height'];_0x2dd64a['push']({'height':_0x4bec96['height']}),_0x55ca0+=_0x56c243;}for(const _0x4916c of _0x2dd64a)_0x191a7a||_0x3b7170['push']({'type':'element','offset':_0x4916c['height'],'textOffset':0x0,'path':[_0x48b501]}),_0x191a7a=!0x1;return _0x3b7170;}function findPageStartersInTextNode(_0x3fb04d,_0x99728f,_0x1ba884,_0x331e9c,_0x4e69c0){const _0x901542=createDomRangeOn(_0x3fb04d),_0xafa4da=[];let _0x130e71=0x0;for(const _0x49cf27 of _0x901542['getClientRects']())if(_0x49cf27['left']>=_0x1ba884){const _0x2e192b=findLastTextOffsetOnPage(_0x3fb04d,_0x130e71,_0x1ba884,_0x331e9c);_0x4e69c0||_0xafa4da['push']({'type':'text','path':[_0x99728f],'textOffset':_0x2e192b}),_0x130e71=_0x2e192b,_0x1ba884+=_0x331e9c,_0x4e69c0=!0x1;}return _0xafa4da;}function findLastTextOffsetOnPage(_0x16ab59,_0x267c8f,_0x138075,_0x50146f){let _0x5aaa11=_0x267c8f,_0x2e686a=_0x16ab59['length'];for(;_0x2e686a-_0x5aaa11>0x1;){const _0x56d693=Math['ceil']((_0x5aaa11+_0x2e686a)/0x2);domRangeContainsPageBreak(createDomRange(_0x16ab59,_0x5aaa11,_0x56d693),_0x138075,_0x50146f)?_0x2e686a=_0x56d693:_0x5aaa11=_0x56d693;}return _0x5aaa11;}function domRangeContainsPageBreak(_0x194966,_0x22ebcd,_0x51fe28){for(const _0xa95f66 of _0x194966['getClientRects']())if(_0xa95f66['left']>=_0x22ebcd&&_0xa95f66['left']<_0x22ebcd+_0x51fe28)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x2ec90d){let _0x5d0aec=!0x1;const _0x4960a8=_0x2ec90d['parentElement']['dataset']['rootName'],_0x494d6d=_0x2ec90d['nextElementSibling'],_0x1ec20c=_0x2ec90d['previousElementSibling'],_0x58d2b9=_0x494d6d&&_0x1a0b09['window']['getComputedStyle'](_0x494d6d)['float'],_0x502026=_0x494d6d&&'ck-fake-selection-container'===_0x494d6d['className'];return!_0x4960a8||_0x494d6d||_0x1ec20c||(_0x5d0aec=!0x0),_0x4960a8&&!_0x1ec20c&&_0x502026&&(_0x5d0aec=!0x0),_0x4960a8&&!_0x1ec20c&&'none'!==_0x58d2b9&&(_0x5d0aec=!0x0),!_0x5d0aec;}function isHTMLElement(_0xcd5f25){return _0xcd5f25['nodeType']==Node['ELEMENT_NODE'];}function isText(_0x3e5f60){return _0x3e5f60['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0xbc2f10){const _0x5c63bf=_0xaec137([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x252abd=window[_0xaec137([0x44,0x61,0x74,0x65])][_0xaec137([0x6e,0x6f,0x77])](),_0x24357a=_0xbc2f10[_0xaec137([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22e2c6=new window[(_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x373825=>{_0x24357a[_0xaec137([0x6f,0x6e,0x63,0x65])](_0xaec137([0x72,0x65,0x61,0x64,0x79]),_0x373825);}),_0x3e2528={[_0xaec137([0x6b,0x74,0x79])]:_0xaec137([0x45,0x43]),[_0xaec137([0x75,0x73,0x65])]:_0xaec137([0x73,0x69,0x67]),[_0xaec137([0x63,0x72,0x76])]:_0xaec137([0x50,0x2d,0x32,0x35,0x36]),[_0xaec137([0x78])]:_0xaec137([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xaec137([0x79])]:_0xaec137([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xaec137([0x61,0x6c,0x67])]:_0xaec137([0x45,0x53,0x32,0x35,0x36])},_0x57fd0f=_0x24357a[_0xaec137([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xaec137([0x67,0x65,0x74])](_0xaec137([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x10d722=await(async function(){let _0x4aff51,_0x14384a=null,_0x46cd71=null;try{if(_0x57fd0f==_0xaec137([0x47,0x50,0x4c]))return _0xaec137([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4aff51=(function(){const _0x430c52=_0x57fd0f[_0xaec137([0x73,0x70,0x6c,0x69,0x74])](_0xaec137([0x2e]));if(0x3!=_0x430c52[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x3e88e8=_0x430c52[0x1];return _0x5aed1c(_0x3e88e8);function _0x5aed1c(_0x2ec6d9){const _0x6afffa=_0x55c653(_0x2ec6d9);return _0x6afffa&&_0x1b4b13()?_0x6afffa:null;function _0x1b4b13(){const _0x2feabb=_0x6afffa[_0xaec137([0x6a,0x74,0x69])],_0x79291a=window[_0xaec137([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2feabb[_0xaec137([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2feabb[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24b028={..._0x6afffa,[_0xaec137([0x6a,0x74,0x69])]:_0x2feabb[_0xaec137([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2feabb[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24b028[_0xaec137([0x76,0x63])],_0x5021c7(_0x24b028)==_0x79291a;}}}()),!_0x4aff51)return _0xaec137([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4aff51[_0xaec137([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x46cd71=function(_0x3e8629,_0x4547cb){return new window[(_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e6a32=>{if(_0x8d0129())return _0x3e6a32(_0xaec137([0x56,0x61,0x6c,0x69,0x64]));_0x242c69(),_0x24357a[_0xaec137([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xaec137([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3675c7=!0x1;const _0x453d55=uid();function _0x19e4e8(_0xff2420){return!!_0xff2420&&(typeof _0xff2420===_0xaec137([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xff2420===_0xaec137([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xff2420[_0xaec137([0x74,0x68,0x65,0x6e])]===_0xaec137([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xff2420[_0xaec137([0x63,0x61,0x74,0x63,0x68])]===_0xaec137([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1af09c(_0x34689e){_0x501f0c(_0x34689e)[_0xaec137([0x74,0x68,0x65,0x6e])](_0x21665b=>{if(!_0x21665b||_0x21665b[_0xaec137([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xaec137([0x6f,0x6b]))return _0xaec137([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23642f(_0x5021c7(_0x453d55+_0x4547cb))!=_0x21665b[_0xaec137([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xaec137([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xaec137([0x56,0x61,0x6c,0x69,0x64]);})[_0xaec137([0x74,0x68,0x65,0x6e])](_0x4cfd50=>(_0x4db535(),_0x4cfd50),()=>{const _0x26fa6a=_0x297742();return null==_0x26fa6a?(_0x4db535(),_0xaec137([0x56,0x61,0x6c,0x69,0x64])):_0xaec137(_0x252abd-_0x26fa6a>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xaec137([0x74,0x68,0x65,0x6e])](_0x3e6a32)[_0xaec137([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e6a32(_0xaec137([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fbbd9=0x36ee80;function _0x4db535(){const _0x452c15=_0xaec137([0x6c,0x6c,0x63,0x74,0x2d])+_0x23642f(_0x5021c7(_0x3e8629)),_0x14730d=_0x5d079b(_0x23642f(window[_0xaec137([0x4d,0x61,0x74,0x68])][_0xaec137([0x63,0x65,0x69,0x6c])](_0x252abd/_0x2fbbd9)));window[_0xaec137([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaec137([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x452c15,_0x14730d);}function _0x297742(){const _0x23c204=_0xaec137([0x6c,0x6c,0x63,0x74,0x2d])+_0x23642f(_0x5021c7(_0x3e8629)),_0x5f8647=window[_0xaec137([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaec137([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23c204);return _0x5f8647?window[_0xaec137([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d079b(_0x5f8647),0x10)*_0x2fbbd9:null;}function _0x501f0c(_0x3f29b9){return new window[(_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x421790,_0x32351d)=>{_0x3f29b9[_0xaec137([0x74,0x68,0x65,0x6e])](_0x421790,_0x32351d),window[_0xaec137([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32351d,0x1d4c0);});}}_0x24357a[_0xaec137([0x6f,0x6e])](_0xaec137([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1757cb,_0x453b93)=>{if(_0x453b93[0x0]!=_0x3e8629)return _0x3e6a32(_0xaec137([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x453b93[0x1]={..._0x453b93[0x1],[_0xaec137([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x453d55};},{[_0xaec137([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaec137([0x68,0x69,0x67,0x68])}),_0x24357a[_0xaec137([0x6f,0x6e])](_0xaec137([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17e734=>{_0x19e4e8(_0x17e734[_0xaec137([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3675c7=!0x0,_0x1af09c(_0x17e734[_0xaec137([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xaec137([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaec137([0x6c,0x6f,0x77])}),_0x22e2c6[_0xaec137([0x74,0x68,0x65,0x6e])](()=>{_0x3675c7||_0x3e6a32(_0xaec137([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8d0129(){return _0x24357a[_0xaec137([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaec137([0x76,0x69,0x65,0x77])][_0xaec137([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xaec137([0x61,0x75,0x74,0x6f]);}function _0x242c69(){_0x24357a[_0xaec137([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaec137([0x76,0x69,0x65,0x77])][_0xaec137([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaec137([0x61,0x75,0x74,0x6f]);}}(_0x4aff51[_0xaec137([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4aff51[_0xaec137([0x6a,0x74,0x69])]));const _0x172374=await(async function(){let _0x2384cc=!0x0;try{const _0x10f17e=_0x57fd0f[_0xaec137([0x73,0x70,0x6c,0x69,0x74])](_0xaec137([0x2e])),[_0x189d5f,_0x2592e6,_0x45d1b7]=_0x10f17e;return _0x4d116c(_0x189d5f),await _0x1f1052(_0x189d5f,_0x2592e6,_0x45d1b7),_0x2384cc;}catch{return!0x1;}function _0x4d116c(_0x4ccffe){const _0xa1fdca=_0x55c653(_0x4ccffe);_0xa1fdca&&_0xa1fdca[_0xaec137([0x61,0x6c,0x67])]==_0xaec137([0x45,0x53,0x32,0x35,0x36])||(_0x2384cc=!0x1);}async function _0x1f1052(_0x13e3e4,_0x4bbecb,_0x2dfc1d){const _0x2ceed8=window[_0xaec137([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xaec137([0x66,0x72,0x6f,0x6d])](_0x1bdfe2(_0x2dfc1d),_0x46b147=>_0x46b147[_0xaec137([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24612c=new window[(_0xaec137([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xaec137([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13e3e4+_0xaec137([0x2e])+_0x4bbecb),_0x1e47db=window[_0xaec137([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xaec137([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e47db)return;const _0x424205=await _0x1e47db[_0xaec137([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xaec137([0x6a,0x77,0x6b]),_0x3e2528,{[_0xaec137([0x6e,0x61,0x6d,0x65])]:_0xaec137([0x45,0x43,0x44,0x53,0x41]),[_0xaec137([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xaec137([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xaec137([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e47db[_0xaec137([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xaec137([0x6e,0x61,0x6d,0x65])]:_0xaec137([0x45,0x43,0x44,0x53,0x41]),[_0xaec137([0x68,0x61,0x73,0x68])]:{[_0xaec137([0x6e,0x61,0x6d,0x65])]:_0xaec137([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x424205,_0x2ceed8,_0x24612c)||(_0x2384cc=!0x1);}}());return _0x172374?(function(){const _0x2af893=_0x4aff51[_0xaec137([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2af893)return!0x1;if(_0x2af893[_0xaec137([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaec137([0x2a])))return!0x0;if(_0x2af893[_0xaec137([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaec137([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0x49055b=[_0xaec137([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xaec137([0x74,0x72,0x69,0x61,0x6c])][_0xaec137([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aff51[_0xaec137([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x252abd/0x3e8:0x6a03bf00;return _0x4aff51[_0xaec137([0x65,0x78,0x70])]<_0x49055b;}())?_0xaec137([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x38aa73=_0x4aff51[_0xaec137([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38aa73||0x0==_0x38aa73[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45d274}=new URL(window[_0xaec137([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38aa73[_0xaec137([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d274))return!0x0;const _0x52822d=_0x45d274[_0xaec137([0x73,0x70,0x6c,0x69,0x74])](_0xaec137([0x2e]));return _0x38aa73[_0xaec137([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f4c9f=>_0x4f4c9f[_0xaec137([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaec137([0x2a])))[_0xaec137([0x6d,0x61,0x70])](_0x37945c=>_0x37945c[_0xaec137([0x73,0x70,0x6c,0x69,0x74])](_0xaec137([0x2e])))[_0xaec137([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cdba3=>_0x4cdba3[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x52822d[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xaec137([0x6d,0x61,0x70])](_0x5c652e=>Array(_0x52822d[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c652e[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xaec137([0x66,0x69,0x6c,0x6c])](_0x5c652e[0x0]===_0xaec137([0x2a])?_0xaec137([0x2a]):'')[_0xaec137([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c652e))[_0xaec137([0x73,0x6f,0x6d,0x65])](_0x4121a6=>_0x52822d[_0xaec137([0x65,0x76,0x65,0x72,0x79])]((_0x7cea0d,_0x2f7653)=>_0x4121a6[_0x2f7653]===_0x7cea0d||_0x4121a6[_0x2f7653]===_0xaec137([0x2a])));}())?(_0x4aff51[_0xaec137([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaec137([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14384a=function(_0x2c8551){const _0x341c5d=new window[(_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9796=>setTimeout(_0x3a9796,0x93ecc)),_0x35b636=_0x22e2c6[_0xaec137([0x74,0x68,0x65,0x6e])](()=>new window[(_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdcb6a6=>{let _0x9f7dfd=0x0;_0x24357a[_0xaec137([0x6d,0x6f,0x64,0x65,0x6c])][_0xaec137([0x6f,0x6e])](_0xaec137([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x696bb3,_0x444192)=>{_0x444192[0x0][_0xaec137([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9f7dfd++,0x5e8==_0x9f7dfd&&(_0xdcb6a6(),_0x696bb3[_0xaec137([0x6f,0x66,0x66])]());});})),_0x4062a8=[_0x341c5d,_0x35b636];return window[_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaec137([0x72,0x61,0x63,0x65])](_0x4062a8)[_0xaec137([0x74,0x68,0x65,0x6e])](()=>_0x2c8551);}(_0xaec137([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x14384a&&_0x46cd71)return new window[(_0xaec137([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x562dc0,_0x3d2e68)=>{_0x14384a[_0xaec137([0x74,0x68,0x65,0x6e])](_0x562dc0,_0x3d2e68),_0x46cd71[_0xaec137([0x74,0x68,0x65,0x6e])](_0x15140b=>{_0x15140b!=_0xaec137([0x56,0x61,0x6c,0x69,0x64])&&_0x562dc0(_0x15140b);},_0x3d2e68);});return _0x14384a||_0x46cd71||_0xaec137([0x56,0x61,0x6c,0x69,0x64]);}())):_0xaec137([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xaec137([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xaec137([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xaec137([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x55c653(_0x5f3ebc){return _0x5f3ebc[_0xaec137([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xaec137([0x65,0x79]))?JSON[_0xaec137([0x70,0x61,0x72,0x73,0x65])](_0x1bdfe2(_0x5f3ebc)):null;}function _0x1bdfe2(_0x24821c){return window[_0xaec137([0x61,0x74,0x6f,0x62])](_0x24821c[_0xaec137([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xaec137([0x2b]))[_0xaec137([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xaec137([0x2f])));}function _0x5021c7(_0x318f9c){let _0x4f11f7=0x1505;function _0x21e351(_0x5605a9){for(let _0x2c66cc=0x0;_0x2c66cc<_0x5605a9[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c66cc++){const _0x3d45ef=_0x5605a9[_0xaec137([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c66cc);_0x4f11f7=(_0x4f11f7<<0x5)+_0x4f11f7+_0x3d45ef,_0x4f11f7&=_0x4f11f7;}}return function _0x202992(_0x35b508){Array[_0xaec137([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35b508)?_0x35b508[_0xaec137([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x202992):_0x35b508&&typeof _0x35b508==_0xaec137([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xaec137([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35b508)[_0xaec137([0x73,0x6f,0x72,0x74])]()[_0xaec137([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfbc80a,_0x5b9ea5])=>{_0x21e351(_0xfbc80a),_0x202992(_0x5b9ea5);}):_0x21e351(window[_0xaec137([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35b508));}(_0x318f9c),_0x4f11f7>>>0x0;}function _0x23642f(_0x2cbb0d){return _0x2cbb0d[_0xaec137([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xaec137([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xaec137([0x30]));}function _0x5d079b(_0x554428){return _0x554428[_0xaec137([0x73,0x70,0x6c,0x69,0x74])]('')[_0xaec137([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xaec137([0x6a,0x6f,0x69,0x6e])]('');}function _0x285356(){}function _0xaec137(_0x573a7e){return _0x573a7e['map'](_0x1f363c=>String['fromCharCode'](_0x1f363c))['join']('');}!function(_0x416dbb){const _0x42c1d5=(function(){const _0x1ec372=window[_0xaec137([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xaec137([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xaec137([0x6e,0x6f,0x77])]())[_0xaec137([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xaec137([0x2e]),'');let _0x21ed0c=_0xaec137([0x49]);for(let _0xa5f654=0x0;_0xa5f654<_0x1ec372[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa5f654+=0x2){let _0x1159ea=window[_0xaec137([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ec372[_0xaec137([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa5f654,_0xa5f654+0x2));_0x1159ea>=_0x5c63bf[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1159ea-=_0x5c63bf[_0xaec137([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21ed0c+=_0x5c63bf[_0x1159ea];}return _0x21ed0c;}());_0x24357a[_0x42c1d5]=_0xaec137([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x416dbb,_0x416dbb!=_0xaec137([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x22e2c6,_0x24357a[_0xaec137([0x6d,0x6f,0x64,0x65,0x6c])][_0xaec137([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x285356,_0x24357a[_0xaec137([0x6d,0x6f,0x64,0x65,0x6c])][_0xaec137([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x285356,_0x24357a[_0xaec137([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xaec137([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x10d722);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x5e52cb=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x5e52cb['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x5e52cb['if']('isVisible','ck-hidden',_0x3f5ca1=>!_0x3f5ca1)],'style':{'left':_0x5e52cb['to']('left',_0x44f99a=>toPx(_0x44f99a)),'top':_0x5e52cb['to']('top',_0x3ef70=>toPx(_0x3ef70)),'width':_0x5e52cb['to']('width',_0x4c523b=>toPx(_0x4c523b))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x318427){this['_viewCollection']=_0x318427['ui']['view']['body'];}['destroy'](){for(const _0x2fcc70 of this['_hiddenLines'])_0x2fcc70['destroy']();}['cleanLines'](){for(const _0x33b73e of this['_visibleLines'])_0x33b73e['isVisible']=!0x1,this['_hiddenLines']['add'](_0x33b73e);this['_visibleLines']['clear']();}['showLine'](_0x2295a9,_0x373176,_0x2c89b9,_0xf35c86){let _0x2cb1b5;this['_hiddenLines']['size']?(_0x2cb1b5=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x2cb1b5)):_0x2cb1b5=new LineView$1(),_0x2cb1b5['set']({'pageNumber':_0xf35c86,'left':_0x2295a9,'top':_0x373176,'width':_0x2c89b9}),_0x2cb1b5['isVisible']=!0x0,this['_viewCollection']['has'](_0x2cb1b5)||this['_viewCollection']['add'](_0x2cb1b5),this['_visibleLines']['add'](_0x2cb1b5);}['setViewCollection'](_0x372b65){for(const _0x263ea7 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x263ea7)&&this['_viewCollection']['remove'](_0x263ea7);this['_viewCollection']=_0x372b65;}}const PLUGIN_ENABLED_CLASS='ck-pagination_enabled';class PaginationRenderer extends Plugin{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS),this['on']('change:isEnabled',(_0x4fc80e,_0x72e68f,_0x17868e)=>{_0x17868e||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0x17868e);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1d92f8){if(!this['isEnabled'])return;const _0x187fcd=_0x1d92f8>0x1?this['_getPageBreakLineOffset'](_0x1d92f8-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x187fcd-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x547887['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4cadde=this['editor'],_0x2059cf=this['_getAttachedDomRoot']();_0x2059cf?(this['_scrollableEditingRootDomAncestor']&&_0x4cadde['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x2059cf),_0x4cadde['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x1b4a02(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4cadde['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x306c51=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x306c51['ui']['view']['listenTo'](_0x1a0b09['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x306c51['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0xf64fb9 of this['editor']['editing']['view']['domRoots']['values']())if(_0xf64fb9['ownerDocument']['body']['contains'](_0xf64fb9))return _0xf64fb9;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x5c7abd=this['_getAttachedDomRoot'](),_0x39d5f6=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x5c7abd||0x1==_0x39d5f6['length'])return void(this['pageNumber']=0x1);const _0x71666d=new Rect(_0x5c7abd)['excludeScrollbarsAndBorders'](),_0x108c1e=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x63436c=_0x108c1e['top']+_0x108c1e['height']/0x3;let _0x806687=!0x1;const _0x3b45e0=[];for(let _0x1688d5=0x1;_0x1688d5<_0x39d5f6['length'];_0x1688d5++){const _0x2e9931=this['_getPageBreakLineOffset'](_0x1688d5,_0x108c1e);if(!_0x2e9931)continue;const _0x1abf86=_0x108c1e['top']+_0x2e9931-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3b45e0['push']({'pageOffsetTop':_0x1abf86,'domRootRect':_0x71666d,'domScrollableRect':_0x108c1e,'pageNumber':_0x1688d5}),_0x1abf86>_0x63436c&&!_0x806687&&(this['pageNumber']=_0x1688d5,_0x806687=!0x0);}this['_renderPageBreakLines'](_0x3b45e0),_0x806687||(this['pageNumber']=_0x39d5f6['length']);}['_renderPageBreakLines'](_0x8ccc61){const {scrollX:_0x514ffc,scrollY:_0x20a610}=_0x1a0b09['window'];if(_0x8ccc61['length']){for(const {domScrollableRect:_0x534127,pageOffsetTop:_0x4cc340,domRootRect:_0x1b901a,pageNumber:_0xb7fa56}of _0x8ccc61)_0x534127['top']<_0x4cc340&&_0x4cc340<_0x534127['bottom']&&this['linesRepository']['showLine'](_0x1b901a['left']+_0x514ffc,_0x4cc340+_0x20a610,_0x1b901a['width'],_0xb7fa56+0x1);}}['_getPageBreakLineOffset'](_0x3cfa4e,_0x30bafe=null){const _0xcedeb7=this['_paginationLookupPlugin']['pageBreaks'][_0x3cfa4e]['offset'];return _0xcedeb7?(_0x30bafe||(_0x30bafe=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0xcedeb7-_0x30bafe['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0xf04ed2,_0x8b455c=!0x0){const _0x3a6db2=this['editor']['editing']['view'];_0x3a6db2['change'](_0x30da47=>{for(const _0x144f24 of _0x3a6db2['document']['roots'])_0x8b455c?_0x30da47['addClass'](_0xf04ed2,_0x144f24):_0x30da47['removeClass'](_0xf04ed2,_0x144f24);});}}function findScrollableElement(_0x11d88f){let _0x6a8a45=_0x11d88f;do{_0x6a8a45=_0x6a8a45['parentElement'];const _0x434089=_0x1a0b09['window']['getComputedStyle'](_0x6a8a45)['overflowY'];if('auto'==_0x434089||'scroll'==_0x434089)break;}while('BODY'!=_0x6a8a45['tagName']);return _0x6a8a45;}function getTranslation$7(_0x1893b8,_0x3a14b7,..._0x3d9a3a){const t=_0x1893b8['t'];switch(_0x3a14b7){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x3d9a3a);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x3a14b7;}}class PaginationEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x4668f9=this['editor']['plugins']['get']('Pagination'),_0x3ccc4f=this['editor']['plugins']['get'](PaginationLookup),_0x5552f9=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x4668f9),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x5552f9),this['listenTo'](_0x3ccc4f,'change:pageBreaks',(_0x349e67,_0x46e9d9,_0x121513,_0x56a662)=>{this['totalPages']=_0x121513['length'],this['_updatePageBreakMarkers'](_0x121513,_0x56a662);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42f24e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x572a08;for(const _0x2c05e0 in _0x42f24e){const _0x1c4744=_0x2c05e0,_0x373d9f=_0x42f24e[_0x1c4744];if('paginationLicenseKeyValid'==_0x373d9f||'paginationLicenseKeyInvalid'==_0x373d9f||'paginationLicenseKeyExpired'==_0x373d9f||'paginationLicenseKeyDomainLimit'==_0x373d9f||'paginationLicenseKeyNotAllowed'==_0x373d9f||'paginationLicenseKeyEvaluationLimit'==_0x373d9f||'paginationLicenseKeyUsageLimit'==_0x373d9f){delete _0x42f24e[_0x1c4744],_0x572a08=_0x373d9f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x572a08&&_0x42f24e['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x572a08&&_0x42f24e['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x572a08&&_0x42f24e['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x572a08&&_0x42f24e['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x572a08&&_0x42f24e['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x572a08&&_0x42f24e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x4233e9){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x4233e9));}['moveSelectionToPage'](_0x2f0298){if(!this['isEnabled'])return;const _0x4fb3fc=this['editor'],_0x5e2e17=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2f0298-0x1];_0x5e2e17&&_0x4fb3fc['model']['change'](_0x23f921=>{switch(_0x5e2e17['type']){case'manual':{const _0x1f8d43=_0x4fb3fc['model']['schema']['getNearestSelectionRange'](_0x5e2e17['modelRange']['end'],'forward');_0x23f921['setSelection'](_0x1f8d43);break;}case'element':{const _0x224db7=_0x4fb3fc['model']['schema']['getNearestSelectionRange'](_0x5e2e17['modelRange']['start'],'forward');_0x23f921['setSelection'](_0x224db7);break;}case'text':{const _0x2ab841=_0x5e2e17['modelRange']['start'];if(_0x2ab841['textNode']&&'\x20'===_0x2ab841['textNode']['data'][_0x2ab841['offset']]){const _0x1bd20d=_0x23f921['createPositionAt'](_0x2ab841['parent'],_0x2ab841['offset']+0x1);_0x23f921['setSelection'](_0x1bd20d);}else _0x23f921['setSelection'](_0x5e2e17['modelRange']);}}_0x4fb3fc['editing']['view']['focus']();});}['goToNextPage'](){const _0x1cbce7=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1cbce7),this['scrollToPage'](_0x1cbce7);}['goToPreviousPage'](){const _0x282a93=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x282a93),this['scrollToPage'](_0x282a93);}['_updatePageBreakMarkers'](_0x3ab1d7,_0x5c93bf){const _0x2835d0=this['editor']['model'];this['isEnabled']&&_0x2835d0['change'](_0x21ecaa=>{for(let _0x165b63=0x1;_0x165b63<_0x3ab1d7['length'];_0x165b63++){const _0x4da15c=_0x3ab1d7[_0x165b63]['modelRange'],_0x51c613='pagination:'+(_0x165b63+0x1);_0x2835d0['markers']['has'](_0x51c613)?_0x21ecaa['updateMarker'](_0x51c613,{'range':_0x4da15c}):_0x21ecaa['addMarker'](_0x51c613,{'range':_0x4da15c,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x28571d=_0x3ab1d7['length'];_0x28571d<_0x5c93bf['length'];_0x28571d++){const _0x76fecb='pagination:'+(_0x28571d+0x1);_0x2835d0['markers']['has'](_0x76fecb)&&_0x21ecaa['removeMarker'](_0x76fecb);}});}['_setUpDataDowncastConversion'](){const _0x3bb05d='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x37ebe6=>{_0x37ebe6['on']('addMarker:'+_0x3bb05d,(_0x377058,{markerRange:_0xfc0ee5,markerName:_0x43a88b},_0x161690)=>{if(!_0x161690['options']['pagination'])return;if(!_0x161690['consumable']['consume'](_0xfc0ee5,_0x377058['name']))return;const _0x263470=_0xfc0ee5['getContainedElement']();let _0x4fbbb3=_0x263470?_0x161690['mapper']['toViewElement'](_0x263470):null;if(!_0x4fbbb3){const _0x65915b=_0xfc0ee5['start'];if(_0x161690['schema']['checkChild'](_0x65915b,'$text')){const _0x4f5117=_0x161690['mapper']['toViewPosition'](_0x65915b);_0x4fbbb3=_0x161690['writer']['createContainerElement']('span'),_0x4fbbb3['getFillerOffset']=()=>null,_0x161690['writer']['insert'](_0x4f5117,_0x4fbbb3);}else{const _0x33ebb8=_0x65915b['nodeAfter'];_0x4fbbb3=_0x161690['mapper']['toViewElement'](_0x33ebb8);}}for(;_0x4fbbb3['parent']!==_0x4fbbb3['root']&&0x0===_0x4fbbb3['index'];)_0x4fbbb3=_0x4fbbb3['parent'];const _0x36ede4=_0x43a88b['substring'](0xb);_0x4fbbb3['hasClass']('page-break')||(_0x161690['writer']['setStyle']('page-break-before','always',_0x4fbbb3),_0x161690['writer']['setAttribute']('data-pagination-page',_0x36ede4,_0x4fbbb3),_0x161690['mapper']['bindElementToMarker'](_0x4fbbb3,_0x43a88b)),_0x377058['stop']();});});}['_setupKeystrokes'](){const _0x489856=this['editor'];_0x489856['keystrokes']['set']('Shift+Pageup',(_0x5b0d4c,_0x3a174e)=>{this['goToPreviousPage'](),_0x3a174e();}),_0x489856['keystrokes']['set']('Shift+Pagedown',(_0x78a6d3,_0x19fe1e)=>{this['goToNextPage'](),_0x19fe1e();}),_0x489856['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0x489856['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0x489856['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0x489856['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x2b6ee3){return _0x2b6ee3<0x1&&(_0x2b6ee3=0x1),_0x2b6ee3>this['totalPages']&&(_0x2b6ee3=this['totalPages']),_0x2b6ee3;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0x597f43){super(_0x597f43);const _0x2a314a=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0x597f43,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x56851a=>getTranslation$7(_0x597f43,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x56851a)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0xe0a180=>!_0xe0a180),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x2a314a['if']('isEnabled','ck-disabled',_0x1ccb64=>!_0x1ccb64)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x2a314a['to']('totalPages')}]}]});}['render'](){super['render']();const _0x5b0dbc=this['pageNumberView']['element'],_0x50231a=_0x18256a=>{this['pageNumberView']['element']['value']=String(_0x18256a);};_0x50231a(this['pageNumber']),this['on']('change:pageNumber',(_0x2cab1a,_0x4decff,_0x46c5fe)=>{_0x50231a(_0x46c5fe);}),this['listenTo'](_0x5b0dbc,'keydown',(_0x5f1fa6,_0x4c9172)=>{if('ArrowUp'===_0x4c9172['key']||'ArrowDown'===_0x4c9172['key'])return void _0x4c9172['stopPropagation']();if(_0x4c9172['keyCode']!==keyCodes['enter'])return;_0x4c9172['preventDefault']();const _0x24f0d4=_0x5b0dbc['valueAsNumber'];Number['isNaN'](_0x24f0d4)?_0x5b0dbc['value']=String(this['pageNumber']):(_0x5b0dbc['checkValidity']()?this['pageNumber']=_0x24f0d4:_0x24f0d4>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x5b0dbc['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x5b0dbc['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x5b0dbc,'blur',()=>{_0x5b0dbc['value']=String(this['pageNumber']);}),this['listenTo'](_0x5b0dbc,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends Plugin{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x26cd12=this['editor'],_0x46d0eb=_0x26cd12['plugins']['get']('PaginationEditing');_0x26cd12['ui']['componentFactory']['add']('pageNavigation',_0x2adbd0=>{const _0x327bef=new PageNavigatorView(_0x2adbd0);return _0x327bef['bind']('pageNumber')['to'](_0x46d0eb),_0x327bef['bind']('totalPages')['to'](_0x46d0eb),_0x327bef['bind']('isEnabled')['to'](_0x46d0eb),_0x327bef['on']('navigation',(_0x485c57,_0x4114ea)=>{_0x46d0eb['moveSelectionToPage'](_0x4114ea),_0x46d0eb['scrollToPage'](_0x4114ea);}),_0x327bef;}),_0x26cd12['ui']['componentFactory']['add']('nextPage',_0x25b8b0=>{const _0x199033=new ButtonView(_0x25b8b0);return _0x199033['isEnabled']=!0x0,_0x199033['label']=getTranslation$7(_0x26cd12['locale'],'Go\x20to\x20next\x20page'),_0x199033['icon']=IconArrowDown,_0x199033['tooltip']=!0x0,_0x199033['keystroke']='Shift+PageDown',_0x199033['bind']('isEnabled')['to'](_0x46d0eb),this['listenTo'](_0x199033,'execute',()=>{_0x46d0eb['goToNextPage']();}),_0x199033;}),_0x26cd12['ui']['componentFactory']['add']('previousPage',_0x4248f7=>{const _0x39390a=new ButtonView(_0x4248f7);return _0x39390a['isEnabled']=!0x0,_0x39390a['label']=getTranslation$7(_0x26cd12['locale'],'Go\x20to\x20previous\x20page'),_0x39390a['icon']=IconArrowUp,_0x39390a['tooltip']=!0x0,_0x39390a['keystroke']='Shift+PageUp',_0x39390a['bind']('isEnabled')['to'](_0x46d0eb),this['listenTo'](_0x39390a,'execute',()=>{_0x46d0eb['goToPreviousPage']();}),_0x39390a;});}}class Pagination extends Plugin{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x5210f3){super(_0x5210f3),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x1100e4=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x1100e4),this['bind']('totalPages')['to'](_0x1100e4),_0x547887['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x226787){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x226787);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x4ba818){return MS_EXCEL_META_REGEX['test'](_0x4ba818);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0xd325e5,_0x3e10a6){const _0x3fb96e=new Map();for(const [_0xb5ab76,_0x5834bd]of _0x3e10a6){if(!_0xb5ab76['tagName']&&!_0xb5ab76['className'])continue;const _0x4f0115=!_0xb5ab76['tagName']||_0xd325e5['name']===_0xb5ab76['tagName'],_0x8ae2dc=!_0xb5ab76['className']||_0xd325e5['hasClass'](_0xb5ab76['className']);_0x4f0115&&_0x8ae2dc&&_0x3fb96e['set'](_0xb5ab76,_0x5834bd);}return _0x3fb96e;}function extractStyles(_0x6b2522){const _0x1ea2dd={};for(const _0xa94295 of _0x6b2522)for(const _0xc6a4c5 of _0xa94295['cssRules'])if(_0xc6a4c5 instanceof CSSStyleRule){const _0x5df1ba=parseCSSStyleDeclaration(_0xc6a4c5['style']);_0x1ea2dd[_0xc6a4c5['selectorText']]=Object['assign']({},_0x1ea2dd[_0xc6a4c5['selectorText']]||{},_0x5df1ba);}return _0x1ea2dd;}function expandStyles(_0x137ab2){const _0x28260e=new Map();for(const _0x58d299 in _0x137ab2){const _0x16ecd1=parseCSSSelector(_0x58d299),_0x104059=_0x137ab2[_0x58d299];for(const _0x496ef1 of _0x16ecd1)_0x28260e['set'](_0x496ef1,_0x104059);}return _0x28260e;}function parseCSSStyleDeclaration(_0x1a8d6a){const _0xa51684={};for(let _0x6a48f1=0x0;_0x6a48f1<_0x1a8d6a['length'];_0x6a48f1++){const _0x24d730=_0x1a8d6a[_0x6a48f1],_0x46f06b=_0x1a8d6a['getPropertyValue'](_0x24d730);'initial'!==_0x46f06b&&(_0xa51684[_0x24d730]=_0x46f06b);}return _0xa51684;}function parseCSSSelector(_0x2d1e0a){const _0x29ccd3=_0x2d1e0a['split'](',')['map'](_0x452b8a=>_0x452b8a['trim']()),_0x2dfefa=[];for(const _0x192452 of _0x29ccd3){const _0x142b7f=CSS_SELECTOR_REGEX['exec'](_0x192452);_0x142b7f&&_0x2dfefa['push'](_0x142b7f['groups']);}return _0x2dfefa;}function extractMsoPatternBackgroundColors(_0x223dd4){const _0x1fda63={},_0x1841fe=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x33af8d=/\.(?<className>[\w-]+)/g;let _0x4dcb7e;for(;null!==(_0x4dcb7e=_0x1841fe['exec'](_0x223dd4));){const {selector:_0x33ce23,color:_0x51968d,patternType:_0x4bb43e}=_0x4dcb7e['groups'];if('auto'!==_0x51968d['toLowerCase']()&&'none'!==_0x4bb43e['toLowerCase']()&&'auto'!==_0x4bb43e['toLowerCase']()){for(const _0x406713 of _0x33ce23['matchAll'](_0x33af8d))_0x1fda63[_0x406713['groups']['className']]=_0x51968d;}}return _0x1fda63;}function flattenStyleDefinitions(_0x551fec){const _0x4a24b7={};for(const _0xe24d2a of _0x551fec)Object['assign'](_0x4a24b7,_0xe24d2a);return _0x4a24b7;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0x491658){const {body:_0x2c0f32,styles:_0xdde03c,stylesString:_0x328973}=_0x491658['_parsedData'],_0x45dca7=new ViewUpcastWriter(_0x2c0f32['document']),_0x4af87=_0x45dca7['createRangeIn'](_0x2c0f32),_0x167fee=expandStyles(extractStyles(_0xdde03c)),_0x18b271=extractMsoPatternBackgroundColors(_0x328973);for(const _0x3e655d of _0x4af87){if('elementStart'!==_0x3e655d['type'])continue;const _0x1cb04f=_0x3e655d['item'],_0x169838=getMatchingStyles(_0x1cb04f,_0x167fee),_0x41feea=_0x169838['size']?flattenStyleDefinitions(Array['from'](_0x169838['values']())):{};if(!('background-color'in _0x41feea)&&!('background'in _0x41feea)){for(const [_0x33efce,_0x32430f]of Object['entries'](_0x18b271))if(_0x1cb04f['hasClass'](_0x33efce)){_0x41feea['background-color']=_0x32430f;break;}}for(const _0x468207 in _0x41feea)_0x1cb04f['hasStyle'](_0x468207)||_0x45dca7['setStyle'](_0x468207,_0x41feea[_0x468207],_0x1cb04f);}_0x491658['content']=_0x2c0f32;}['isActive'](_0x1037c2){return super['isActive'](_0x1037c2)||isMSExcelContent(_0x1037c2);}}class PasteFromOfficeEnhancedInliner extends Plugin{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PasteFromOffice];}['init'](){const _0x29dccc=this['editor'],_0x4c06d1=_0x29dccc['plugins']['get']('ClipboardPipeline'),_0x1917ef=_0x29dccc['editing']['view']['document'],_0x504b50=new MSOfficeStylesInliner(_0x1917ef);_0x4c06d1['on']('inputTransformation',(_0x5bb915,_0x1734e7)=>{const _0x460ecb=_0x1734e7['dataTransfer']['getData']('text/html');_0x504b50['isActive'](_0x460ecb)&&(_0x1734e7['_parsedData']||(_0x1734e7['_parsedData']=parsePasteOfficeHtml(_0x460ecb,_0x1917ef['stylesProcessor'])),_0x504b50['execute'](_0x1734e7));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x306555){const _0x3ce0=_0x171610([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x287c6a=window[_0x171610([0x44,0x61,0x74,0x65])][_0x171610([0x6e,0x6f,0x77])](),_0x127461=_0x306555[_0x171610([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ecb55=new window[(_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a272=>{_0x127461[_0x171610([0x6f,0x6e,0x63,0x65])](_0x171610([0x72,0x65,0x61,0x64,0x79]),_0x37a272);}),_0x452c40={[_0x171610([0x6b,0x74,0x79])]:_0x171610([0x45,0x43]),[_0x171610([0x75,0x73,0x65])]:_0x171610([0x73,0x69,0x67]),[_0x171610([0x63,0x72,0x76])]:_0x171610([0x50,0x2d,0x32,0x35,0x36]),[_0x171610([0x78])]:_0x171610([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x171610([0x79])]:_0x171610([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x171610([0x61,0x6c,0x67])]:_0x171610([0x45,0x53,0x32,0x35,0x36])},_0x5893ac=_0x127461[_0x171610([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x171610([0x67,0x65,0x74])](_0x171610([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x57b559=await(async function(){let _0x250642,_0x5b9b2d=null,_0x3f5984=null;try{if(_0x5893ac==_0x171610([0x47,0x50,0x4c]))return _0x171610([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x250642=(function(){const _0x46f36c=_0x5893ac[_0x171610([0x73,0x70,0x6c,0x69,0x74])](_0x171610([0x2e]));if(0x3!=_0x46f36c[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x20517e=_0x46f36c[0x1];return _0x4e3477(_0x20517e);function _0x4e3477(_0xb79f22){const _0x9b7b0=_0x46fbcb(_0xb79f22);return _0x9b7b0&&_0xcd0321()?_0x9b7b0:null;function _0xcd0321(){const _0x47f4aa=_0x9b7b0[_0x171610([0x6a,0x74,0x69])],_0x13c94f=window[_0x171610([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47f4aa[_0x171610([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47f4aa[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4721d5={..._0x9b7b0,[_0x171610([0x6a,0x74,0x69])]:_0x47f4aa[_0x171610([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47f4aa[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4721d5[_0x171610([0x76,0x63])],_0x5a449e(_0x4721d5)==_0x13c94f;}}}()),!_0x250642)return _0x171610([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x250642[_0x171610([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f5984=function(_0x265520,_0x412459){return new window[(_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d0c22=>{if(_0x44823e())return _0x1d0c22(_0x171610([0x56,0x61,0x6c,0x69,0x64]));_0x5a443f(),_0x127461[_0x171610([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x171610([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1119e9=!0x1;const _0x2d287d=uid();function _0x2cc9f9(_0x103de5){return!!_0x103de5&&(typeof _0x103de5===_0x171610([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x103de5===_0x171610([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x103de5[_0x171610([0x74,0x68,0x65,0x6e])]===_0x171610([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x103de5[_0x171610([0x63,0x61,0x74,0x63,0x68])]===_0x171610([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eef96(_0x25147f){_0x1ed8a7(_0x25147f)[_0x171610([0x74,0x68,0x65,0x6e])](_0x5d3f4f=>{if(!_0x5d3f4f||_0x5d3f4f[_0x171610([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x171610([0x6f,0x6b]))return _0x171610([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35dce9(_0x5a449e(_0x2d287d+_0x412459))!=_0x5d3f4f[_0x171610([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x171610([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x171610([0x56,0x61,0x6c,0x69,0x64]);})[_0x171610([0x74,0x68,0x65,0x6e])](_0x2ad096=>(_0x52a49d(),_0x2ad096),()=>{const _0x5b7d3b=_0x3faa91();return null==_0x5b7d3b?(_0x52a49d(),_0x171610([0x56,0x61,0x6c,0x69,0x64])):_0x171610(_0x287c6a-_0x5b7d3b>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x171610([0x74,0x68,0x65,0x6e])](_0x1d0c22)[_0x171610([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d0c22(_0x171610([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34b895=0x36ee80;function _0x52a49d(){const _0x505c2d=_0x171610([0x6c,0x6c,0x63,0x74,0x2d])+_0x35dce9(_0x5a449e(_0x265520)),_0xbd68bd=_0x148b7c(_0x35dce9(window[_0x171610([0x4d,0x61,0x74,0x68])][_0x171610([0x63,0x65,0x69,0x6c])](_0x287c6a/_0x34b895)));window[_0x171610([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x171610([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x505c2d,_0xbd68bd);}function _0x3faa91(){const _0xd0fbe3=_0x171610([0x6c,0x6c,0x63,0x74,0x2d])+_0x35dce9(_0x5a449e(_0x265520)),_0x4e9847=window[_0x171610([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x171610([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd0fbe3);return _0x4e9847?window[_0x171610([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148b7c(_0x4e9847),0x10)*_0x34b895:null;}function _0x1ed8a7(_0x3ee2de){return new window[(_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4156,_0x3c4821)=>{_0x3ee2de[_0x171610([0x74,0x68,0x65,0x6e])](_0x3c4156,_0x3c4821),window[_0x171610([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4821,0x1d4c0);});}}_0x127461[_0x171610([0x6f,0x6e])](_0x171610([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fc484,_0x2f1f1a)=>{if(_0x2f1f1a[0x0]!=_0x265520)return _0x1d0c22(_0x171610([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f1f1a[0x1]={..._0x2f1f1a[0x1],[_0x171610([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d287d};},{[_0x171610([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x171610([0x68,0x69,0x67,0x68])}),_0x127461[_0x171610([0x6f,0x6e])](_0x171610([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50b488=>{_0x2cc9f9(_0x50b488[_0x171610([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1119e9=!0x0,_0x1eef96(_0x50b488[_0x171610([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x171610([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x171610([0x6c,0x6f,0x77])}),_0x1ecb55[_0x171610([0x74,0x68,0x65,0x6e])](()=>{_0x1119e9||_0x1d0c22(_0x171610([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44823e(){return _0x127461[_0x171610([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171610([0x76,0x69,0x65,0x77])][_0x171610([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x171610([0x61,0x75,0x74,0x6f]);}function _0x5a443f(){_0x127461[_0x171610([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171610([0x76,0x69,0x65,0x77])][_0x171610([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x171610([0x61,0x75,0x74,0x6f]);}}(_0x250642[_0x171610([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x250642[_0x171610([0x6a,0x74,0x69])]));const _0x391e06=await(async function(){let _0x5ddeb2=!0x0;try{const _0x1af027=_0x5893ac[_0x171610([0x73,0x70,0x6c,0x69,0x74])](_0x171610([0x2e])),[_0x304738,_0xeb270,_0x4bb2ee]=_0x1af027;return _0x5b4d42(_0x304738),await _0x465c16(_0x304738,_0xeb270,_0x4bb2ee),_0x5ddeb2;}catch{return!0x1;}function _0x5b4d42(_0x419244){const _0x13b4a6=_0x46fbcb(_0x419244);_0x13b4a6&&_0x13b4a6[_0x171610([0x61,0x6c,0x67])]==_0x171610([0x45,0x53,0x32,0x35,0x36])||(_0x5ddeb2=!0x1);}async function _0x465c16(_0x46de91,_0xae2061,_0x22193f){const _0x30ade7=window[_0x171610([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x171610([0x66,0x72,0x6f,0x6d])](_0xd05216(_0x22193f),_0x91c0e5=>_0x91c0e5[_0x171610([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40f706=new window[(_0x171610([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x171610([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46de91+_0x171610([0x2e])+_0xae2061),_0x408a23=window[_0x171610([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x171610([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x408a23)return;const _0x27278b=await _0x408a23[_0x171610([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x171610([0x6a,0x77,0x6b]),_0x452c40,{[_0x171610([0x6e,0x61,0x6d,0x65])]:_0x171610([0x45,0x43,0x44,0x53,0x41]),[_0x171610([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x171610([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x171610([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x408a23[_0x171610([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x171610([0x6e,0x61,0x6d,0x65])]:_0x171610([0x45,0x43,0x44,0x53,0x41]),[_0x171610([0x68,0x61,0x73,0x68])]:{[_0x171610([0x6e,0x61,0x6d,0x65])]:_0x171610([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27278b,_0x30ade7,_0x40f706)||(_0x5ddeb2=!0x1);}}());return _0x391e06?(function(){const _0x5438c4=_0x250642[_0x171610([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5438c4)return!0x1;if(_0x5438c4[_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171610([0x2a])))return!0x0;if(_0x5438c4[_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171610([0x50,0x4f,0x45])))return!0x0;if(_0x5438c4[_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171610([0x50,0x50])))return!0x0;if(_0x5438c4[_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171610([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x171610([0x67,0x6c,0x6f,0x62])]&&window[_0x171610([0x67,0x6c,0x6f,0x62])][_0x171610([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x254a65=[_0x171610([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x171610([0x74,0x72,0x69,0x61,0x6c])][_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x250642[_0x171610([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x287c6a/0x3e8:0x6a03bf00;return _0x250642[_0x171610([0x65,0x78,0x70])]<_0x254a65;}())?_0x171610([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xdfdce0=_0x250642[_0x171610([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdfdce0||0x0==_0xdfdce0[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17f24d}=new URL(window[_0x171610([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdfdce0[_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f24d))return!0x0;const _0xe039b7=_0x17f24d[_0x171610([0x73,0x70,0x6c,0x69,0x74])](_0x171610([0x2e]));return _0xdfdce0[_0x171610([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17747c=>_0x17747c[_0x171610([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171610([0x2a])))[_0x171610([0x6d,0x61,0x70])](_0x55e3cd=>_0x55e3cd[_0x171610([0x73,0x70,0x6c,0x69,0x74])](_0x171610([0x2e])))[_0x171610([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58c28e=>_0x58c28e[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe039b7[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x171610([0x6d,0x61,0x70])](_0x3d58ad=>Array(_0xe039b7[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d58ad[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x171610([0x66,0x69,0x6c,0x6c])](_0x3d58ad[0x0]===_0x171610([0x2a])?_0x171610([0x2a]):'')[_0x171610([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d58ad))[_0x171610([0x73,0x6f,0x6d,0x65])](_0x442e4a=>_0xe039b7[_0x171610([0x65,0x76,0x65,0x72,0x79])]((_0xf24d29,_0x3d6731)=>_0x442e4a[_0x3d6731]===_0xf24d29||_0x442e4a[_0x3d6731]===_0x171610([0x2a])));}())?(_0x250642[_0x171610([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x171610([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b9b2d=function(_0x443b69){const _0x444161=new window[(_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44512b=>setTimeout(_0x44512b,0x93ecc)),_0x522393=_0x1ecb55[_0x171610([0x74,0x68,0x65,0x6e])](()=>new window[(_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a8ea7=>{let _0x71b8b1=0x0;_0x127461[_0x171610([0x6d,0x6f,0x64,0x65,0x6c])][_0x171610([0x6f,0x6e])](_0x171610([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b04cf,_0x4802d1)=>{_0x4802d1[0x0][_0x171610([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x71b8b1++,0x5e8==_0x71b8b1&&(_0x3a8ea7(),_0x1b04cf[_0x171610([0x6f,0x66,0x66])]());});})),_0x417e0b=[_0x444161,_0x522393];return window[_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x171610([0x72,0x61,0x63,0x65])](_0x417e0b)[_0x171610([0x74,0x68,0x65,0x6e])](()=>_0x443b69);}(_0x171610([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5b9b2d&&_0x3f5984)return new window[(_0x171610([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36247a,_0x1450c9)=>{_0x5b9b2d[_0x171610([0x74,0x68,0x65,0x6e])](_0x36247a,_0x1450c9),_0x3f5984[_0x171610([0x74,0x68,0x65,0x6e])](_0x2c513e=>{_0x2c513e!=_0x171610([0x56,0x61,0x6c,0x69,0x64])&&_0x36247a(_0x2c513e);},_0x1450c9);});return _0x5b9b2d||_0x3f5984||_0x171610([0x56,0x61,0x6c,0x69,0x64]);}())):_0x171610([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x171610([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x171610([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x171610([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x46fbcb(_0x44aa07){return _0x44aa07[_0x171610([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x171610([0x65,0x79]))?JSON[_0x171610([0x70,0x61,0x72,0x73,0x65])](_0xd05216(_0x44aa07)):null;}function _0xd05216(_0x4f2909){return window[_0x171610([0x61,0x74,0x6f,0x62])](_0x4f2909[_0x171610([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x171610([0x2b]))[_0x171610([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x171610([0x2f])));}function _0x5a449e(_0x515791){let _0xc5a13=0x1505;function _0x36a15d(_0x3d7b5c){for(let _0xbfbfa2=0x0;_0xbfbfa2<_0x3d7b5c[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbfbfa2++){const _0x3edff7=_0x3d7b5c[_0x171610([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbfbfa2);_0xc5a13=(_0xc5a13<<0x5)+_0xc5a13+_0x3edff7,_0xc5a13&=_0xc5a13;}}return function _0x48a1df(_0x427fe3){Array[_0x171610([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x427fe3)?_0x427fe3[_0x171610([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48a1df):_0x427fe3&&typeof _0x427fe3==_0x171610([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x171610([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x427fe3)[_0x171610([0x73,0x6f,0x72,0x74])]()[_0x171610([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8d76dc,_0x6197e6])=>{_0x36a15d(_0x8d76dc),_0x48a1df(_0x6197e6);}):_0x36a15d(window[_0x171610([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x427fe3));}(_0x515791),_0xc5a13>>>0x0;}function _0x35dce9(_0x3fbdee){return _0x3fbdee[_0x171610([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x171610([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x171610([0x30]));}function _0x148b7c(_0x42ceaf){return _0x42ceaf[_0x171610([0x73,0x70,0x6c,0x69,0x74])]('')[_0x171610([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x171610([0x6a,0x6f,0x69,0x6e])]('');}function _0x271db5(){}function _0x171610(_0x595e2f){return _0x595e2f['map'](_0x31a18a=>String['fromCharCode'](_0x31a18a))['join']('');}!function(_0x59558c){const _0x562790=(function(){const _0x48d7ee=window[_0x171610([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x171610([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x171610([0x6e,0x6f,0x77])]())[_0x171610([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x171610([0x2e]),'');let _0x2a294f=_0x171610([0x73]);for(let _0x280c7e=0x0;_0x280c7e<_0x48d7ee[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x280c7e+=0x2){let _0x461b5e=window[_0x171610([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48d7ee[_0x171610([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280c7e,_0x280c7e+0x2));_0x461b5e>=_0x3ce0[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x461b5e-=_0x3ce0[_0x171610([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a294f+=_0x3ce0[_0x461b5e];}return _0x2a294f;}());_0x127461[_0x562790]=_0x171610([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59558c,_0x59558c!=_0x171610([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1ecb55,_0x127461[_0x171610([0x6d,0x6f,0x64,0x65,0x6c])][_0x171610([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x271db5,_0x127461[_0x171610([0x6d,0x6f,0x64,0x65,0x6c])][_0x171610([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x271db5,_0x127461[_0x171610([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x171610([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x57b559);}const CSS_PROPERTIES_TO_PROPAGATE=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],CSS_PROPERTIES_TO_BE_SPANS=['color','font-family','font-size'],CSS_PROPERTIES_TO_BE_HTML_ELEMENTS={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0xa99d1e=>Number(_0xa99d1e)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function isPropertyToBePropagated(_0x5c4954){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x5c4954);}function isPropertyToBePropagatedAsSpan(_0x567c0b){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x567c0b);}function isPropertyToBePropagatedAsHTMLElement(_0x2539e3){return _0x2539e3 in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x1f25d7){return Array['from'](_0x1f25d7['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0x4827f6,_0x42122c,_0x3aba93){const {spanStyles:_0xdec021,stylesToBeHtmlElements:_0x3e9f4e}=getStylesToPropagate(_0x4827f6,_0x3aba93);propagateStylesAsHTMLElements(_0x4827f6,_0x42122c,_0x3e9f4e),propagateStylesAsSpan(_0x4827f6,_0x42122c,_0xdec021);}function propagateStylesAsHTMLElements(_0x35ca6a,_0x2e4441,_0x278d46){for(const _0x592f01 in _0x278d46){_0x278d46[_0x592f01]['forEach'](([,_0x3e0220])=>{const _0x18e5a9=_0x2e4441['createElement'](_0x3e0220,[],_0x35ca6a['getChildren']());_0x2e4441['insertChild'](0x0,_0x18e5a9,_0x35ca6a);}),_0x2e4441['removeStyle'](_0x592f01,_0x35ca6a);}}function propagateSpanStylesToExistingChildren(_0x185f2a,_0x5039eb,_0x155ecc){const {spanStyles:_0x53a727}=getStylesToPropagate(_0x185f2a,_0x155ecc),_0x138e4b=Object['keys'](_0x53a727);if(!_0x138e4b['length'])return;let _0x29bd6e=!0x1;for(const _0x2b584a of _0x185f2a['getChildren']())if(_0x2b584a['is']('element','span')){_0x29bd6e=!0x0;for(const [_0x2f747b,_0x162e28]of Object['entries'](_0x53a727))_0x2b584a['hasStyle'](_0x2f747b)||_0x5039eb['setStyle']({[_0x2f747b]:_0x162e28},_0x2b584a);}_0x29bd6e&&_0x5039eb['removeStyle'](_0x138e4b,_0x185f2a);}function propagateStylesAsSpan(_0x2fe884,_0x22bb33,_0x2c03d8){if(!Object['keys'](_0x2c03d8)['length'])return;const _0x31edb0=_0x22bb33['createElement']('span',[],_0x2fe884['getChildren']());_0x22bb33['setStyle'](_0x2c03d8,_0x31edb0),_0x22bb33['insertChild'](0x0,_0x31edb0,_0x2fe884),_0x22bb33['removeStyle'](Object['keys'](_0x2c03d8),_0x2fe884);}function getStylesToPropagate(_0x13579d,_0xfea3e6){const _0x457227={},_0x14190a={};return _0xfea3e6['forEach'](_0x5f1e15=>{const _0x16b5dd=_0x13579d['getStyle'](_0x5f1e15);if(_0x16b5dd){if(isPropertyToBePropagatedAsSpan(_0x5f1e15))_0x457227[_0x5f1e15]=_0x16b5dd;else{if(isPropertyToBePropagatedAsHTMLElement(_0x5f1e15)){const _0x5717b6=_0x16b5dd['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x5f1e15]['forEach'](([_0x1cc785,_0x4001a5])=>{for(const _0x3049a6 of _0x5717b6){('function'==typeof _0x1cc785&&_0x1cc785(_0x3049a6)||_0x1cc785===_0x3049a6)&&(_0x14190a[_0x5f1e15]=[..._0x14190a[_0x5f1e15]||[],[_0x1cc785,_0x4001a5]]);}});}}}}),{'spanStyles':_0x457227,'stylesToBeHtmlElements':_0x14190a};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0x1af891){const {body:_0x1bb5df}=_0x1af891['_parsedData'],_0x41fb4=new ViewUpcastWriter(_0x1bb5df['document']),_0x20231d=_0x41fb4['createRangeIn'](_0x1bb5df),_0x56a697=new ViewDocument(_0x41fb4['document']['stylesProcessor']),_0x22f701=[...new ViewDomConverter(_0x56a697)['blockElements'],'font'],_0x40122a=_0x20231d['getItems']();for(const _0x2b885b of _0x40122a)if(_0x2b885b['is']('element')&&_0x22f701['includes'](_0x2b885b['name'])){if(_0x2b885b['hasStyle']('mso-list')&&'none'!==_0x2b885b['getStyle']('mso-list')){propagateSpanStylesToExistingChildren(_0x2b885b,_0x41fb4,getStylePropertyNamesToPropagate(_0x2b885b));continue;}propagateStyleProperties(_0x2b885b,_0x41fb4,getStylePropertyNamesToPropagate(_0x2b885b));}_0x1af891['content']=_0x1bb5df;}['isActive'](_0x4c419c){return super['isActive'](_0x4c419c)||isMSExcelContent(_0x4c419c);}}class PasteFromOfficeEnhancedPropagator extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PasteFromOffice];}['init'](){const _0x38bf94=this['editor'],_0x553619=_0x38bf94['plugins']['get']('ClipboardPipeline'),_0x5e3da7=_0x38bf94['editing']['view']['document'],_0xf66967=new MSOfficeInlineStylePropagator(_0x5e3da7);_0x553619['on']('inputTransformation',(_0x584246,_0x4e9f44)=>{const _0x4cd089=_0x4e9f44['dataTransfer']['getData']('text/html');_0xf66967['isActive'](_0x4cd089)&&(_0x4e9f44['_parsedData']||(_0x4e9f44['_parsedData']=parsePasteOfficeHtml(_0x4cd089,_0x5e3da7['stylesProcessor'])),_0xf66967['execute'](_0x4e9f44));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56ed07=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18382d;for(const _0x4622a9 in _0x56ed07){const _0x28ac9d=_0x4622a9,_0x28ac1d=_0x56ed07[_0x28ac9d];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x28ac1d||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x28ac1d||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x28ac1d||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x28ac1d||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x28ac1d||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x28ac1d||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x28ac1d){delete _0x56ed07[_0x28ac9d],_0x18382d=_0x28ac1d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x18382d&&_0x56ed07['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x18382d&&_0x56ed07['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x18382d&&_0x56ed07['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x18382d&&_0x56ed07['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x18382d&&_0x56ed07['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x18382d&&_0x56ed07['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends Plugin{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PasteFromOffice,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}var commonjsGlobal='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{},indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=0x1,aspromise=function(_0xc660ec,_0x108f26){var _0x5f1dd6=new Array(arguments['length']-0x1),_0x4c24f1=0x0,_0xa5263c=0x2,_0x1f0436=!0x0;for(;_0xa5263c<arguments['length'];)_0x5f1dd6[_0x4c24f1++]=arguments[_0xa5263c++];return new Promise(function(_0x367807,_0x3811f8){_0x5f1dd6[_0x4c24f1]=function(_0x26fbaf){if(_0x1f0436){if(_0x1f0436=!0x1,_0x26fbaf)_0x3811f8(_0x26fbaf);else{for(var _0x28af77=new Array(arguments['length']-0x1),_0x305bd5=0x0;_0x305bd5<_0x28af77['length'];)_0x28af77[_0x305bd5++]=arguments[_0x305bd5];_0x367807['apply'](null,_0x28af77);}}};try{_0xc660ec['apply'](_0x108f26||null,_0x5f1dd6);}catch(_0x29cfb6){_0x1f0436&&(_0x1f0436=!0x1,_0x3811f8(_0x29cfb6));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0x23dad4){var _0x41e9c0=_0x23dad4;_0x41e9c0['length']=function(_0x582b19){var _0x44f924=_0x582b19['length'];if(!_0x44f924)return 0x0;for(var _0x714e88=0x0;--_0x44f924%0x4>0x1&&'='===_0x582b19['charAt'](_0x44f924);)++_0x714e88;return Math['ceil'](0x3*_0x582b19['length'])/0x4-_0x714e88;};for(var _0x5fc3c1=new Array(0x40),_0x18d472=new Array(0x7b),_0x169e7c=0x0;_0x169e7c<0x40;)_0x18d472[_0x5fc3c1[_0x169e7c]=_0x169e7c<0x1a?_0x169e7c+0x41:_0x169e7c<0x34?_0x169e7c+0x47:_0x169e7c<0x3e?_0x169e7c-0x4:_0x169e7c-0x3b|0x2b]=_0x169e7c++;_0x41e9c0['encode']=function(_0x527ffa,_0x1c9d1c,_0x51c69c){for(var t,_0x21e377=null,_0x24d224=[],_0xe4c26a=0x0,_0x367a32=0x0;_0x1c9d1c<_0x51c69c;){var _0x2d7ad4=_0x527ffa[_0x1c9d1c++];switch(_0x367a32){case 0x0:_0x24d224[_0xe4c26a++]=_0x5fc3c1[_0x2d7ad4>>0x2],t=(0x3&_0x2d7ad4)<<0x4,_0x367a32=0x1;break;case 0x1:_0x24d224[_0xe4c26a++]=_0x5fc3c1[t|_0x2d7ad4>>0x4],t=(0xf&_0x2d7ad4)<<0x2,_0x367a32=0x2;break;case 0x2:_0x24d224[_0xe4c26a++]=_0x5fc3c1[t|_0x2d7ad4>>0x6],_0x24d224[_0xe4c26a++]=_0x5fc3c1[0x3f&_0x2d7ad4],_0x367a32=0x0;}_0xe4c26a>0x1fff&&((_0x21e377||(_0x21e377=[]))['push'](String['fromCharCode']['apply'](String,_0x24d224)),_0xe4c26a=0x0);}return _0x367a32&&(_0x24d224[_0xe4c26a++]=_0x5fc3c1[t],_0x24d224[_0xe4c26a++]=0x3d,0x1===_0x367a32&&(_0x24d224[_0xe4c26a++]=0x3d)),_0x21e377?(_0xe4c26a&&_0x21e377['push'](String['fromCharCode']['apply'](String,_0x24d224['slice'](0x0,_0xe4c26a))),_0x21e377['join']('')):String['fromCharCode']['apply'](String,_0x24d224['slice'](0x0,_0xe4c26a));};var _0x2ae2d6='invalid\x20encoding';_0x41e9c0['decode']=function(_0x410c1d,_0x40f957,_0x256ea4){for(var t,_0x35f93c=_0x256ea4,_0x3273d9=0x0,_0x5940de=0x0;_0x5940de<_0x410c1d['length'];){var _0x4e2da2=_0x410c1d['charCodeAt'](_0x5940de++);if(0x3d===_0x4e2da2&&_0x3273d9>0x1)break;if(void 0x0===(_0x4e2da2=_0x18d472[_0x4e2da2]))throw Error(_0x2ae2d6);switch(_0x3273d9){case 0x0:t=_0x4e2da2,_0x3273d9=0x1;break;case 0x1:_0x40f957[_0x256ea4++]=t<<0x2|(0x30&_0x4e2da2)>>0x4,t=_0x4e2da2,_0x3273d9=0x2;break;case 0x2:_0x40f957[_0x256ea4++]=(0xf&t)<<0x4|(0x3c&_0x4e2da2)>>0x2,t=_0x4e2da2,_0x3273d9=0x3;break;case 0x3:_0x40f957[_0x256ea4++]=(0x3&t)<<0x6|_0x4e2da2,_0x3273d9=0x0;}}if(0x1===_0x3273d9)throw Error(_0x2ae2d6);return _0x256ea4-_0x35f93c;},_0x41e9c0['test']=function(_0x149b9e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x149b9e);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x4a8e3a(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x4a8e3a,_0x4a8e3a['prototype']['on']=function(_0x187c4b,_0x5b05cc,_0x4ecc09){return(this['_listeners'][_0x187c4b]||(this['_listeners'][_0x187c4b]=[]))['push']({'fn':_0x5b05cc,'ctx':_0x4ecc09||this}),this;},_0x4a8e3a['prototype']['off']=function(_0x319d78,_0x4145c9){if(void 0x0===_0x319d78)this['_listeners']={};else{if(void 0x0===_0x4145c9)this['_listeners'][_0x319d78]=[];else{for(var _0x1223d3=this['_listeners'][_0x319d78],_0x4a0685=0x0;_0x4a0685<_0x1223d3['length'];)_0x1223d3[_0x4a0685]['fn']===_0x4145c9?_0x1223d3['splice'](_0x4a0685,0x1):++_0x4a0685;}}return this;},_0x4a8e3a['prototype']['emit']=function(_0x38915c){var _0x964f77=this['_listeners'][_0x38915c];if(_0x964f77){for(var _0x17f63d=[],_0x3793ab=0x1;_0x3793ab<arguments['length'];)_0x17f63d['push'](arguments[_0x3793ab++]);for(_0x3793ab=0x0;_0x3793ab<_0x964f77['length'];)_0x964f77[_0x3793ab]['fn']['apply'](_0x964f77[_0x3793ab++]['ctx'],_0x17f63d);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0xb605aa(_0x39b28f){return'undefined'!=typeof Float32Array?(function(){var _0x289842=new Float32Array([-0x0]),_0x31b5df=new Uint8Array(_0x289842['buffer']),_0x9be258=0x80===_0x31b5df[0x3];function _0x123b3c(_0x50fb20,_0x5ac6bb,_0x146e47){_0x289842[0x0]=_0x50fb20,_0x5ac6bb[_0x146e47]=_0x31b5df[0x0],_0x5ac6bb[_0x146e47+0x1]=_0x31b5df[0x1],_0x5ac6bb[_0x146e47+0x2]=_0x31b5df[0x2],_0x5ac6bb[_0x146e47+0x3]=_0x31b5df[0x3];}function _0x5da881(_0x5f28d1,_0x570546,_0x462d0c){_0x289842[0x0]=_0x5f28d1,_0x570546[_0x462d0c]=_0x31b5df[0x3],_0x570546[_0x462d0c+0x1]=_0x31b5df[0x2],_0x570546[_0x462d0c+0x2]=_0x31b5df[0x1],_0x570546[_0x462d0c+0x3]=_0x31b5df[0x0];}function _0x341afb(_0x430a92,_0x51fda4){return _0x31b5df[0x0]=_0x430a92[_0x51fda4],_0x31b5df[0x1]=_0x430a92[_0x51fda4+0x1],_0x31b5df[0x2]=_0x430a92[_0x51fda4+0x2],_0x31b5df[0x3]=_0x430a92[_0x51fda4+0x3],_0x289842[0x0];}function _0x56d04d(_0x4fc4a5,_0x28c9c5){return _0x31b5df[0x3]=_0x4fc4a5[_0x28c9c5],_0x31b5df[0x2]=_0x4fc4a5[_0x28c9c5+0x1],_0x31b5df[0x1]=_0x4fc4a5[_0x28c9c5+0x2],_0x31b5df[0x0]=_0x4fc4a5[_0x28c9c5+0x3],_0x289842[0x0];}_0x39b28f['writeFloatLE']=_0x9be258?_0x123b3c:_0x5da881,_0x39b28f['writeFloatBE']=_0x9be258?_0x5da881:_0x123b3c,_0x39b28f['readFloatLE']=_0x9be258?_0x341afb:_0x56d04d,_0x39b28f['readFloatBE']=_0x9be258?_0x56d04d:_0x341afb;}()):(function(){function _0x378f34(_0x2f3499,_0x460ed2,_0x5ed5de,_0xae13e1){var _0x2b326d=_0x460ed2<0x0?0x1:0x0;if(_0x2b326d&&(_0x460ed2=-_0x460ed2),0x0===_0x460ed2)_0x2f3499(0x1/_0x460ed2>0x0?0x0:0x80000000,_0x5ed5de,_0xae13e1);else{if(isNaN(_0x460ed2))_0x2f3499(0x7fc00000,_0x5ed5de,_0xae13e1);else{if(_0x460ed2>0xffffff00000000000000000000000000)_0x2f3499((_0x2b326d<<0x1f|0x7f800000)>>>0x0,_0x5ed5de,_0xae13e1);else{if(_0x460ed2<1.1754943508222875e-38)_0x2f3499((_0x2b326d<<0x1f|Math['round'](_0x460ed2/1.401298464324817e-45))>>>0x0,_0x5ed5de,_0xae13e1);else{var _0x2aeb99=Math['floor'](Math['log'](_0x460ed2)/Math['LN2']);_0x2f3499((_0x2b326d<<0x1f|_0x2aeb99+0x7f<<0x17|0x7fffff&Math['round'](_0x460ed2*Math['pow'](0x2,-_0x2aeb99)*0x800000))>>>0x0,_0x5ed5de,_0xae13e1);}}}}}function _0x336885(_0x232731,_0x169a4a,_0x4db3e8){var _0x55c9c8=_0x232731(_0x169a4a,_0x4db3e8),_0x7769c=0x2*(_0x55c9c8>>0x1f)+0x1,_0x3348d8=_0x55c9c8>>>0x17&0xff,_0x43478e=0x7fffff&_0x55c9c8;return 0xff===_0x3348d8?_0x43478e?NaN:_0x7769c*(0x1/0x0):0x0===_0x3348d8?1.401298464324817e-45*_0x7769c*_0x43478e:_0x7769c*Math['pow'](0x2,_0x3348d8-0x96)*(_0x43478e+0x800000);}_0x39b28f['writeFloatLE']=_0x378f34['bind'](null,_0x104826),_0x39b28f['writeFloatBE']=_0x378f34['bind'](null,_0x254d58),_0x39b28f['readFloatLE']=_0x336885['bind'](null,_0x4a573c),_0x39b28f['readFloatBE']=_0x336885['bind'](null,_0x21b3dc);}()),'undefined'!=typeof Float64Array?(function(){var _0x452663=new Float64Array([-0x0]),_0x3bc715=new Uint8Array(_0x452663['buffer']),_0x4c991c=0x80===_0x3bc715[0x7];function _0x50c2cf(_0x347034,_0x31b610,_0x175495){_0x452663[0x0]=_0x347034,_0x31b610[_0x175495]=_0x3bc715[0x0],_0x31b610[_0x175495+0x1]=_0x3bc715[0x1],_0x31b610[_0x175495+0x2]=_0x3bc715[0x2],_0x31b610[_0x175495+0x3]=_0x3bc715[0x3],_0x31b610[_0x175495+0x4]=_0x3bc715[0x4],_0x31b610[_0x175495+0x5]=_0x3bc715[0x5],_0x31b610[_0x175495+0x6]=_0x3bc715[0x6],_0x31b610[_0x175495+0x7]=_0x3bc715[0x7];}function _0x72c940(_0x1ed148,_0x498a2a,_0x290287){_0x452663[0x0]=_0x1ed148,_0x498a2a[_0x290287]=_0x3bc715[0x7],_0x498a2a[_0x290287+0x1]=_0x3bc715[0x6],_0x498a2a[_0x290287+0x2]=_0x3bc715[0x5],_0x498a2a[_0x290287+0x3]=_0x3bc715[0x4],_0x498a2a[_0x290287+0x4]=_0x3bc715[0x3],_0x498a2a[_0x290287+0x5]=_0x3bc715[0x2],_0x498a2a[_0x290287+0x6]=_0x3bc715[0x1],_0x498a2a[_0x290287+0x7]=_0x3bc715[0x0];}function _0x11d4a0(_0x289b4f,_0x4caae1){return _0x3bc715[0x0]=_0x289b4f[_0x4caae1],_0x3bc715[0x1]=_0x289b4f[_0x4caae1+0x1],_0x3bc715[0x2]=_0x289b4f[_0x4caae1+0x2],_0x3bc715[0x3]=_0x289b4f[_0x4caae1+0x3],_0x3bc715[0x4]=_0x289b4f[_0x4caae1+0x4],_0x3bc715[0x5]=_0x289b4f[_0x4caae1+0x5],_0x3bc715[0x6]=_0x289b4f[_0x4caae1+0x6],_0x3bc715[0x7]=_0x289b4f[_0x4caae1+0x7],_0x452663[0x0];}function _0x14b100(_0x68b2de,_0x8e65f6){return _0x3bc715[0x7]=_0x68b2de[_0x8e65f6],_0x3bc715[0x6]=_0x68b2de[_0x8e65f6+0x1],_0x3bc715[0x5]=_0x68b2de[_0x8e65f6+0x2],_0x3bc715[0x4]=_0x68b2de[_0x8e65f6+0x3],_0x3bc715[0x3]=_0x68b2de[_0x8e65f6+0x4],_0x3bc715[0x2]=_0x68b2de[_0x8e65f6+0x5],_0x3bc715[0x1]=_0x68b2de[_0x8e65f6+0x6],_0x3bc715[0x0]=_0x68b2de[_0x8e65f6+0x7],_0x452663[0x0];}_0x39b28f['writeDoubleLE']=_0x4c991c?_0x50c2cf:_0x72c940,_0x39b28f['writeDoubleBE']=_0x4c991c?_0x72c940:_0x50c2cf,_0x39b28f['readDoubleLE']=_0x4c991c?_0x11d4a0:_0x14b100,_0x39b28f['readDoubleBE']=_0x4c991c?_0x14b100:_0x11d4a0;}()):(function(){function _0x438c32(_0x4a6310,_0x4e3f96,_0x5776c5,_0x126c05,_0x2dee64,_0x38e260){var _0x50bfbc=_0x126c05<0x0?0x1:0x0;if(_0x50bfbc&&(_0x126c05=-_0x126c05),0x0===_0x126c05)_0x4a6310(0x0,_0x2dee64,_0x38e260+_0x4e3f96),_0x4a6310(0x1/_0x126c05>0x0?0x0:0x80000000,_0x2dee64,_0x38e260+_0x5776c5);else{if(isNaN(_0x126c05))_0x4a6310(0x0,_0x2dee64,_0x38e260+_0x4e3f96),_0x4a6310(0x7ff80000,_0x2dee64,_0x38e260+_0x5776c5);else{if(_0x126c05>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0x4a6310(0x0,_0x2dee64,_0x38e260+_0x4e3f96),_0x4a6310((_0x50bfbc<<0x1f|0x7ff00000)>>>0x0,_0x2dee64,_0x38e260+_0x5776c5);else{var _0x539ab8;if(_0x126c05<2.2250738585072014e-308)_0x4a6310((_0x539ab8=_0x126c05/5e-324)>>>0x0,_0x2dee64,_0x38e260+_0x4e3f96),_0x4a6310((_0x50bfbc<<0x1f|_0x539ab8/0x100000000)>>>0x0,_0x2dee64,_0x38e260+_0x5776c5);else{var _0xfee072=Math['floor'](Math['log'](_0x126c05)/Math['LN2']);0x400===_0xfee072&&(_0xfee072=0x3ff),_0x4a6310(0x10000000000000*(_0x539ab8=_0x126c05*Math['pow'](0x2,-_0xfee072))>>>0x0,_0x2dee64,_0x38e260+_0x4e3f96),_0x4a6310((_0x50bfbc<<0x1f|_0xfee072+0x3ff<<0x14|0x100000*_0x539ab8&0xfffff)>>>0x0,_0x2dee64,_0x38e260+_0x5776c5);}}}}}function _0x41251c(_0x522f15,_0x5d63ce,_0x47bb6a,_0x4122bc,_0x32f39b){var _0x249f2e=_0x522f15(_0x4122bc,_0x32f39b+_0x5d63ce),_0x1a8822=_0x522f15(_0x4122bc,_0x32f39b+_0x47bb6a),_0x1df55a=0x2*(_0x1a8822>>0x1f)+0x1,_0x13d786=_0x1a8822>>>0x14&0x7ff,_0x259ddc=0x100000000*(0xfffff&_0x1a8822)+_0x249f2e;return 0x7ff===_0x13d786?_0x259ddc?NaN:_0x1df55a*(0x1/0x0):0x0===_0x13d786?5e-324*_0x1df55a*_0x259ddc:_0x1df55a*Math['pow'](0x2,_0x13d786-0x433)*(_0x259ddc+0x10000000000000);}_0x39b28f['writeDoubleLE']=_0x438c32['bind'](null,_0x104826,0x0,0x4),_0x39b28f['writeDoubleBE']=_0x438c32['bind'](null,_0x254d58,0x4,0x0),_0x39b28f['readDoubleLE']=_0x41251c['bind'](null,_0x4a573c,0x0,0x4),_0x39b28f['readDoubleBE']=_0x41251c['bind'](null,_0x21b3dc,0x4,0x0);}()),_0x39b28f;}function _0x104826(_0x5735c2,_0x5ae49d,_0x30021e){_0x5ae49d[_0x30021e]=0xff&_0x5735c2,_0x5ae49d[_0x30021e+0x1]=_0x5735c2>>>0x8&0xff,_0x5ae49d[_0x30021e+0x2]=_0x5735c2>>>0x10&0xff,_0x5ae49d[_0x30021e+0x3]=_0x5735c2>>>0x18;}function _0x254d58(_0x1dcadc,_0x6804c8,_0x5281d4){_0x6804c8[_0x5281d4]=_0x1dcadc>>>0x18,_0x6804c8[_0x5281d4+0x1]=_0x1dcadc>>>0x10&0xff,_0x6804c8[_0x5281d4+0x2]=_0x1dcadc>>>0x8&0xff,_0x6804c8[_0x5281d4+0x3]=0xff&_0x1dcadc;}function _0x4a573c(_0x3981bf,_0xfd0d7e){return(_0x3981bf[_0xfd0d7e]|_0x3981bf[_0xfd0d7e+0x1]<<0x8|_0x3981bf[_0xfd0d7e+0x2]<<0x10|_0x3981bf[_0xfd0d7e+0x3]<<0x18)>>>0x0;}function _0x21b3dc(_0x263c75,_0x1d34d4){return(_0x263c75[_0x1d34d4]<<0x18|_0x263c75[_0x1d34d4+0x1]<<0x10|_0x263c75[_0x1d34d4+0x2]<<0x8|_0x263c75[_0x1d34d4+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0xb605aa(_0xb605aa);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x19cca5(_0x3fca4b){try{var _0x524d82=eval('quire'['replace'](/^/,'re'))(_0x3fca4b);if(_0x524d82&&(_0x524d82['length']||Object['keys'](_0x524d82)['length']))return _0x524d82;}catch(_0x2f939c){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x19cca5,inquire_1;}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=0x1,function(_0x13283c){var _0x136b45=_0x13283c;_0x136b45['length']=function(_0x48a876){for(var _0x58e395=0x0,_0x31c48f=0x0,_0x3e5f16=0x0;_0x3e5f16<_0x48a876['length'];++_0x3e5f16)(_0x31c48f=_0x48a876['charCodeAt'](_0x3e5f16))<0x80?_0x58e395+=0x1:_0x31c48f<0x800?_0x58e395+=0x2:0xd800==(0xfc00&_0x31c48f)&&0xdc00==(0xfc00&_0x48a876['charCodeAt'](_0x3e5f16+0x1))?(++_0x3e5f16,_0x58e395+=0x4):_0x58e395+=0x3;return _0x58e395;},_0x136b45['read']=function(_0x40f117,_0x37362f,_0x50d3c2){if(_0x50d3c2-_0x37362f<0x1)return'';for(var t,_0x335c40=null,_0x56d0bd=[],_0x2ac3e9=0x0;_0x37362f<_0x50d3c2;)(t=_0x40f117[_0x37362f++])<0x80?_0x56d0bd[_0x2ac3e9++]=t:t>0xbf&&t<0xe0?_0x56d0bd[_0x2ac3e9++]=(0x1f&t)<<0x6|0x3f&_0x40f117[_0x37362f++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x40f117[_0x37362f++])<<0xc|(0x3f&_0x40f117[_0x37362f++])<<0x6|0x3f&_0x40f117[_0x37362f++])-0x10000,_0x56d0bd[_0x2ac3e9++]=0xd800+(t>>0xa),_0x56d0bd[_0x2ac3e9++]=0xdc00+(0x3ff&t)):_0x56d0bd[_0x2ac3e9++]=(0xf&t)<<0xc|(0x3f&_0x40f117[_0x37362f++])<<0x6|0x3f&_0x40f117[_0x37362f++],_0x2ac3e9>0x1fff&&((_0x335c40||(_0x335c40=[]))['push'](String['fromCharCode']['apply'](String,_0x56d0bd)),_0x2ac3e9=0x0);return _0x335c40?(_0x2ac3e9&&_0x335c40['push'](String['fromCharCode']['apply'](String,_0x56d0bd['slice'](0x0,_0x2ac3e9))),_0x335c40['join']('')):String['fromCharCode']['apply'](String,_0x56d0bd['slice'](0x0,_0x2ac3e9));},_0x136b45['write']=function(_0x14f844,_0x3ab93d,_0x3fbe9d){for(var _0x1af783,_0x16e43d,_0x1c177f=_0x3fbe9d,_0x4656ef=0x0;_0x4656ef<_0x14f844['length'];++_0x4656ef)(_0x1af783=_0x14f844['charCodeAt'](_0x4656ef))<0x80?_0x3ab93d[_0x3fbe9d++]=_0x1af783:_0x1af783<0x800?(_0x3ab93d[_0x3fbe9d++]=_0x1af783>>0x6|0xc0,_0x3ab93d[_0x3fbe9d++]=0x3f&_0x1af783|0x80):0xd800==(0xfc00&_0x1af783)&&0xdc00==(0xfc00&(_0x16e43d=_0x14f844['charCodeAt'](_0x4656ef+0x1)))?(_0x1af783=0x10000+((0x3ff&_0x1af783)<<0xa)+(0x3ff&_0x16e43d),++_0x4656ef,_0x3ab93d[_0x3fbe9d++]=_0x1af783>>0x12|0xf0,_0x3ab93d[_0x3fbe9d++]=_0x1af783>>0xc&0x3f|0x80,_0x3ab93d[_0x3fbe9d++]=_0x1af783>>0x6&0x3f|0x80,_0x3ab93d[_0x3fbe9d++]=0x3f&_0x1af783|0x80):(_0x3ab93d[_0x3fbe9d++]=_0x1af783>>0xc|0xe0,_0x3ab93d[_0x3fbe9d++]=_0x1af783>>0x6&0x3f|0x80,_0x3ab93d[_0x3fbe9d++]=0x3f&_0x1af783|0x80);return _0x3fbe9d-_0x1c177f;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x7ea087,_0x23fae8,_0xd329ad){var _0x2f5238=_0xd329ad||0x2000,_0x2e8035=_0x2f5238>>>0x1,_0x200dc4=null,_0x1f8ec3=_0x2f5238;return function(_0x2f0aaf){if(_0x2f0aaf<0x1||_0x2f0aaf>_0x2e8035)return _0x7ea087(_0x2f0aaf);_0x1f8ec3+_0x2f0aaf>_0x2f5238&&(_0x200dc4=_0x7ea087(_0x2f5238),_0x1f8ec3=0x0);var _0x49af0a=_0x23fae8['call'](_0x200dc4,_0x1f8ec3,_0x1f8ec3+=_0x2f0aaf);return 0x7&_0x1f8ec3&&(_0x1f8ec3=0x1+(0x7|_0x1f8ec3)),_0x49af0a;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x519de8;var _0x1ef2ea=requireMinimal$1();function _0x519de8(_0x68c053,_0x1229a2){this['lo']=_0x68c053>>>0x0,this['hi']=_0x1229a2>>>0x0;}var _0x33c631=_0x519de8['zero']=new _0x519de8(0x0,0x0);_0x33c631['toNumber']=function(){return 0x0;},_0x33c631['zzEncode']=_0x33c631['zzDecode']=function(){return this;},_0x33c631['length']=function(){return 0x1;};var _0x40f52c=_0x519de8['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x519de8['fromNumber']=function(_0x1367f3){if(0x0===_0x1367f3)return _0x33c631;var _0x1161cb=_0x1367f3<0x0;_0x1161cb&&(_0x1367f3=-_0x1367f3);var _0x1e0d94=_0x1367f3>>>0x0,_0x1f4e84=(_0x1367f3-_0x1e0d94)/0x100000000>>>0x0;return _0x1161cb&&(_0x1f4e84=~_0x1f4e84>>>0x0,_0x1e0d94=~_0x1e0d94>>>0x0,++_0x1e0d94>0xffffffff&&(_0x1e0d94=0x0,++_0x1f4e84>0xffffffff&&(_0x1f4e84=0x0))),new _0x519de8(_0x1e0d94,_0x1f4e84);},_0x519de8['from']=function(_0xce9b0c){if('number'==typeof _0xce9b0c)return _0x519de8['fromNumber'](_0xce9b0c);if(_0x1ef2ea['isString'](_0xce9b0c)){if(!_0x1ef2ea['Long'])return _0x519de8['fromNumber'](parseInt(_0xce9b0c,0xa));_0xce9b0c=_0x1ef2ea['Long']['fromString'](_0xce9b0c);}return _0xce9b0c['low']||_0xce9b0c['high']?new _0x519de8(_0xce9b0c['low']>>>0x0,_0xce9b0c['high']>>>0x0):_0x33c631;},_0x519de8['prototype']['toNumber']=function(_0x56b46d){if(!_0x56b46d&&this['hi']>>>0x1f){var _0x57494d=0x1+~this['lo']>>>0x0,_0x4cf7cf=~this['hi']>>>0x0;return _0x57494d||(_0x4cf7cf=_0x4cf7cf+0x1>>>0x0),-(_0x57494d+0x100000000*_0x4cf7cf);}return this['lo']+0x100000000*this['hi'];},_0x519de8['prototype']['toLong']=function(_0x426819){return _0x1ef2ea['Long']?new _0x1ef2ea['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x426819)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x426819)};};var _0x1a3d03=String['prototype']['charCodeAt'];return _0x519de8['fromHash']=function(_0xadc01a){return _0xadc01a===_0x40f52c?_0x33c631:new _0x519de8((_0x1a3d03['call'](_0xadc01a,0x0)|_0x1a3d03['call'](_0xadc01a,0x1)<<0x8|_0x1a3d03['call'](_0xadc01a,0x2)<<0x10|_0x1a3d03['call'](_0xadc01a,0x3)<<0x18)>>>0x0,(_0x1a3d03['call'](_0xadc01a,0x4)|_0x1a3d03['call'](_0xadc01a,0x5)<<0x8|_0x1a3d03['call'](_0xadc01a,0x6)<<0x10|_0x1a3d03['call'](_0xadc01a,0x7)<<0x18)>>>0x0);},_0x519de8['prototype']['toHash']=function(){return String['fromCharCode'](0xff&this['lo'],this['lo']>>>0x8&0xff,this['lo']>>>0x10&0xff,this['lo']>>>0x18,0xff&this['hi'],this['hi']>>>0x8&0xff,this['hi']>>>0x10&0xff,this['hi']>>>0x18);},_0x519de8['prototype']['zzEncode']=function(){var _0x1bff0a=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x1bff0a)>>>0x0,this['lo']=(this['lo']<<0x1^_0x1bff0a)>>>0x0,this;},_0x519de8['prototype']['zzDecode']=function(){var _0x3b87e1=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x3b87e1)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x3b87e1)>>>0x0,this;},_0x519de8['prototype']['length']=function(){var _0x358127=this['lo'],_0x3f0e55=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x27a74c=this['hi']>>>0x18;return 0x0===_0x27a74c?0x0===_0x3f0e55?_0x358127<0x4000?_0x358127<0x80?0x1:0x2:_0x358127<0x200000?0x3:0x4:_0x3f0e55<0x4000?_0x3f0e55<0x80?0x5:0x6:_0x3f0e55<0x200000?0x7:0x8:_0x27a74c<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x1e1848=minimal$1;function _0x4a6285(_0x10fb1c,_0x4ef222,_0x467c77){for(var _0x21ec58=Object['keys'](_0x4ef222),_0x2271cc=0x0;_0x2271cc<_0x21ec58['length'];++_0x2271cc)void 0x0!==_0x10fb1c[_0x21ec58[_0x2271cc]]&&_0x467c77||(_0x10fb1c[_0x21ec58[_0x2271cc]]=_0x4ef222[_0x21ec58[_0x2271cc]]);return _0x10fb1c;}function _0x3ae11f(_0x45f92e){function _0x1a3d81(_0x55fcd6,_0x20d042){if(!(this instanceof _0x1a3d81))return new _0x1a3d81(_0x55fcd6,_0x20d042);Object['defineProperty'](this,'message',{'get':function(){return _0x55fcd6;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0x1a3d81):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x20d042&&_0x4a6285(this,_0x20d042);}return _0x1a3d81['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0x1a3d81,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x45f92e;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0x1a3d81;}_0x1e1848['asPromise']=requireAspromise(),_0x1e1848['base64']=requireBase64(),_0x1e1848['EventEmitter']=requireEventemitter(),_0x1e1848['float']=requireFloat(),_0x1e1848['inquire']=requireInquire(),_0x1e1848['utf8']=requireUtf8(),_0x1e1848['pool']=requirePool(),_0x1e1848['LongBits']=requireLongbits(),_0x1e1848['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x1e1848['global']=_0x1e1848['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x1e1848['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x1e1848['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x1e1848['isInteger']=Number['isInteger']||function(_0x5b8d3c){return'number'==typeof _0x5b8d3c&&isFinite(_0x5b8d3c)&&Math['floor'](_0x5b8d3c)===_0x5b8d3c;},_0x1e1848['isString']=function(_0x420a48){return'string'==typeof _0x420a48||_0x420a48 instanceof String;},_0x1e1848['isObject']=function(_0x48e01f){return _0x48e01f&&'object'==typeof _0x48e01f;},_0x1e1848['isset']=_0x1e1848['isSet']=function(_0x4dad9b,_0x1bed88){var _0x5695ce=_0x4dad9b[_0x1bed88];return!(null==_0x5695ce||!_0x4dad9b['hasOwnProperty'](_0x1bed88))&&('object'!=typeof _0x5695ce||(Array['isArray'](_0x5695ce)?_0x5695ce['length']:Object['keys'](_0x5695ce)['length'])>0x0);},_0x1e1848['Buffer']=(function(){try{var _0x3e29f7=_0x1e1848['inquire']('buffer')['Buffer'];return _0x3e29f7['prototype']['utf8Write']?_0x3e29f7:null;}catch(_0x5eab76){return null;}}()),_0x1e1848['_Buffer_from']=null,_0x1e1848['_Buffer_allocUnsafe']=null,_0x1e1848['newBuffer']=function(_0x2e2789){return'number'==typeof _0x2e2789?_0x1e1848['Buffer']?_0x1e1848['_Buffer_allocUnsafe'](_0x2e2789):new _0x1e1848['Array'](_0x2e2789):_0x1e1848['Buffer']?_0x1e1848['_Buffer_from'](_0x2e2789):'undefined'==typeof Uint8Array?_0x2e2789:new Uint8Array(_0x2e2789);},_0x1e1848['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x1e1848['Long']=_0x1e1848['global']['dcodeIO']&&_0x1e1848['global']['dcodeIO']['Long']||_0x1e1848['global']['Long']||_0x1e1848['inquire']('long'),_0x1e1848['key2Re']=/^true|false|0|1$/,_0x1e1848['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x1e1848['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x1e1848['longToHash']=function(_0xbbe0d7){return _0xbbe0d7?_0x1e1848['LongBits']['from'](_0xbbe0d7)['toHash']():_0x1e1848['LongBits']['zeroHash'];},_0x1e1848['longFromHash']=function(_0x465465,_0x4836bd){var _0x53bdb2=_0x1e1848['LongBits']['fromHash'](_0x465465);return _0x1e1848['Long']?_0x1e1848['Long']['fromBits'](_0x53bdb2['lo'],_0x53bdb2['hi'],_0x4836bd):_0x53bdb2['toNumber'](Boolean(_0x4836bd));},_0x1e1848['merge']=_0x4a6285,_0x1e1848['lcFirst']=function(_0x599965){return _0x599965['charAt'](0x0)['toLowerCase']()+_0x599965['substring'](0x1);},_0x1e1848['newError']=_0x3ae11f,_0x1e1848['ProtocolError']=_0x3ae11f('ProtocolError'),_0x1e1848['oneOfGetter']=function(_0x6f81b8){for(var _0x2e456d={},_0x178427=0x0;_0x178427<_0x6f81b8['length'];++_0x178427)_0x2e456d[_0x6f81b8[_0x178427]]=0x1;return function(){for(var _0x878df8=Object['keys'](this),_0x494970=_0x878df8['length']-0x1;_0x494970>-0x1;--_0x494970)if(0x1===_0x2e456d[_0x878df8[_0x494970]]&&void 0x0!==this[_0x878df8[_0x494970]]&&null!==this[_0x878df8[_0x494970]])return _0x878df8[_0x494970];};},_0x1e1848['oneOfSetter']=function(_0x52c745){return function(_0x32b83b){for(var _0x26404e=0x0;_0x26404e<_0x52c745['length'];++_0x26404e)_0x52c745[_0x26404e]!==_0x32b83b&&delete this[_0x52c745[_0x26404e]];};},_0x1e1848['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x1e1848['_configure']=function(){var _0x5f23fb=_0x1e1848['Buffer'];_0x5f23fb?(_0x1e1848['_Buffer_from']=_0x5f23fb['from']!==Uint8Array['from']&&_0x5f23fb['from']||function(_0x41cb7c,_0x5e0732){return new _0x5f23fb(_0x41cb7c,_0x5e0732);},_0x1e1848['_Buffer_allocUnsafe']=_0x5f23fb['allocUnsafe']||function(_0x545fa1){return new _0x5f23fb(_0x545fa1);}):_0x1e1848['_Buffer_from']=_0x1e1848['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x288676;var _0x4948d5,_0x3b344e=requireMinimal$1(),_0x596c87=_0x3b344e['LongBits'],_0x2063a4=_0x3b344e['base64'],_0x3e07f2=_0x3b344e['utf8'];function _0x52d15e(_0x4457aa,_0xefc8dd,_0x1fa9d3){this['fn']=_0x4457aa,this['len']=_0xefc8dd,this['next']=void 0x0,this['val']=_0x1fa9d3;}function _0x39411f(){}function _0x36405b(_0x5a1f90){this['head']=_0x5a1f90['head'],this['tail']=_0x5a1f90['tail'],this['len']=_0x5a1f90['len'],this['next']=_0x5a1f90['states'];}function _0x288676(){this['len']=0x0,this['head']=new _0x52d15e(_0x39411f,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x5641cf=function(){return _0x3b344e['Buffer']?function(){return(_0x288676['create']=function(){return new _0x4948d5();})();}:function(){return new _0x288676();};};function _0x4ba056(_0x2424af,_0x469fa3,_0x4df802){_0x469fa3[_0x4df802]=0xff&_0x2424af;}function _0x34771e(_0x3e06c5,_0xd3bd2a){this['len']=_0x3e06c5,this['next']=void 0x0,this['val']=_0xd3bd2a;}function _0x235215(_0x1b5edf,_0x50e0a7,_0x41fb29){for(;_0x1b5edf['hi'];)_0x50e0a7[_0x41fb29++]=0x7f&_0x1b5edf['lo']|0x80,_0x1b5edf['lo']=(_0x1b5edf['lo']>>>0x7|_0x1b5edf['hi']<<0x19)>>>0x0,_0x1b5edf['hi']>>>=0x7;for(;_0x1b5edf['lo']>0x7f;)_0x50e0a7[_0x41fb29++]=0x7f&_0x1b5edf['lo']|0x80,_0x1b5edf['lo']=_0x1b5edf['lo']>>>0x7;_0x50e0a7[_0x41fb29++]=_0x1b5edf['lo'];}function _0x10b4fc(_0x4f4f8d,_0x288224,_0x16d114){_0x288224[_0x16d114]=0xff&_0x4f4f8d,_0x288224[_0x16d114+0x1]=_0x4f4f8d>>>0x8&0xff,_0x288224[_0x16d114+0x2]=_0x4f4f8d>>>0x10&0xff,_0x288224[_0x16d114+0x3]=_0x4f4f8d>>>0x18;}_0x288676['create']=_0x5641cf(),_0x288676['alloc']=function(_0x39c48a){return new _0x3b344e['Array'](_0x39c48a);},_0x3b344e['Array']!==Array&&(_0x288676['alloc']=_0x3b344e['pool'](_0x288676['alloc'],_0x3b344e['Array']['prototype']['subarray'])),_0x288676['prototype']['_push']=function(_0x31e53a,_0x87b290,_0x3e6f61){return this['tail']=this['tail']['next']=new _0x52d15e(_0x31e53a,_0x87b290,_0x3e6f61),this['len']+=_0x87b290,this;},_0x34771e['prototype']=Object['create'](_0x52d15e['prototype']),_0x34771e['prototype']['fn']=function(_0x1ec42d,_0x5a0ad2,_0x20de86){for(;_0x1ec42d>0x7f;)_0x5a0ad2[_0x20de86++]=0x7f&_0x1ec42d|0x80,_0x1ec42d>>>=0x7;_0x5a0ad2[_0x20de86]=_0x1ec42d;},_0x288676['prototype']['uint32']=function(_0x44ba01){return this['len']+=(this['tail']=this['tail']['next']=new _0x34771e((_0x44ba01>>>=0x0)<0x80?0x1:_0x44ba01<0x4000?0x2:_0x44ba01<0x200000?0x3:_0x44ba01<0x10000000?0x4:0x5,_0x44ba01))['len'],this;},_0x288676['prototype']['int32']=function(_0x2c3e46){return _0x2c3e46<0x0?this['_push'](_0x235215,0xa,_0x596c87['fromNumber'](_0x2c3e46)):this['uint32'](_0x2c3e46);},_0x288676['prototype']['sint32']=function(_0x2e1a88){return this['uint32']((_0x2e1a88<<0x1^_0x2e1a88>>0x1f)>>>0x0);},_0x288676['prototype']['uint64']=function(_0x1d9a19){var _0x5f2b4d=_0x596c87['from'](_0x1d9a19);return this['_push'](_0x235215,_0x5f2b4d['length'](),_0x5f2b4d);},_0x288676['prototype']['int64']=_0x288676['prototype']['uint64'],_0x288676['prototype']['sint64']=function(_0x1837f9){var _0xb6d84e=_0x596c87['from'](_0x1837f9)['zzEncode']();return this['_push'](_0x235215,_0xb6d84e['length'](),_0xb6d84e);},_0x288676['prototype']['bool']=function(_0x3c7ee9){return this['_push'](_0x4ba056,0x1,_0x3c7ee9?0x1:0x0);},_0x288676['prototype']['fixed32']=function(_0x2c5ffe){return this['_push'](_0x10b4fc,0x4,_0x2c5ffe>>>0x0);},_0x288676['prototype']['sfixed32']=_0x288676['prototype']['fixed32'],_0x288676['prototype']['fixed64']=function(_0x2a3ad7){var _0x462664=_0x596c87['from'](_0x2a3ad7);return this['_push'](_0x10b4fc,0x4,_0x462664['lo'])['_push'](_0x10b4fc,0x4,_0x462664['hi']);},_0x288676['prototype']['sfixed64']=_0x288676['prototype']['fixed64'],_0x288676['prototype']['float']=function(_0x2ef7f1){return this['_push'](_0x3b344e['float']['writeFloatLE'],0x4,_0x2ef7f1);},_0x288676['prototype']['double']=function(_0x13e63b){return this['_push'](_0x3b344e['float']['writeDoubleLE'],0x8,_0x13e63b);};var _0x2cf2e2=_0x3b344e['Array']['prototype']['set']?function(_0x5c3b05,_0x1f46f8,_0x4893af){_0x1f46f8['set'](_0x5c3b05,_0x4893af);}:function(_0x20bb95,_0x282873,_0x509abb){for(var _0x2b5924=0x0;_0x2b5924<_0x20bb95['length'];++_0x2b5924)_0x282873[_0x509abb+_0x2b5924]=_0x20bb95[_0x2b5924];};return _0x288676['prototype']['bytes']=function(_0x5b704c){var _0x5f9aec=_0x5b704c['length']>>>0x0;if(!_0x5f9aec)return this['_push'](_0x4ba056,0x1,0x0);if(_0x3b344e['isString'](_0x5b704c)){var _0x5f39d8=_0x288676['alloc'](_0x5f9aec=_0x2063a4['length'](_0x5b704c));_0x2063a4['decode'](_0x5b704c,_0x5f39d8,0x0),_0x5b704c=_0x5f39d8;}return this['uint32'](_0x5f9aec)['_push'](_0x2cf2e2,_0x5f9aec,_0x5b704c);},_0x288676['prototype']['string']=function(_0x10390f){var _0x12526c=_0x3e07f2['length'](_0x10390f);return _0x12526c?this['uint32'](_0x12526c)['_push'](_0x3e07f2['write'],_0x12526c,_0x10390f):this['_push'](_0x4ba056,0x1,0x0);},_0x288676['prototype']['fork']=function(){return this['states']=new _0x36405b(this),this['head']=this['tail']=new _0x52d15e(_0x39411f,0x0,0x0),this['len']=0x0,this;},_0x288676['prototype']['reset']=function(){return this['states']?(this['head']=this['states']['head'],this['tail']=this['states']['tail'],this['len']=this['states']['len'],this['states']=this['states']['next']):(this['head']=this['tail']=new _0x52d15e(_0x39411f,0x0,0x0),this['len']=0x0),this;},_0x288676['prototype']['ldelim']=function(){var _0x3f468a=this['head'],_0x169412=this['tail'],_0x47eaf5=this['len'];return this['reset']()['uint32'](_0x47eaf5),_0x47eaf5&&(this['tail']['next']=_0x3f468a['next'],this['tail']=_0x169412,this['len']+=_0x47eaf5),this;},_0x288676['prototype']['finish']=function(){for(var _0x121d5d=this['head']['next'],_0x40d70b=this['constructor']['alloc'](this['len']),_0x351aaa=0x0;_0x121d5d;)_0x121d5d['fn'](_0x121d5d['val'],_0x40d70b,_0x351aaa),_0x351aaa+=_0x121d5d['len'],_0x121d5d=_0x121d5d['next'];return _0x40d70b;},_0x288676['_configure']=function(_0x27dbe8){_0x4948d5=_0x27dbe8,_0x288676['create']=_0x5641cf(),_0x4948d5['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0x4c70cd;var _0x58afc6=requireWriter();(_0x4c70cd['prototype']=Object['create'](_0x58afc6['prototype']))['constructor']=_0x4c70cd;var _0x1c5e34=requireMinimal$1();function _0x4c70cd(){_0x58afc6['call'](this);}function _0x1882c0(_0x536186,_0x588a13,_0x47caa1){_0x536186['length']<0x28?_0x1c5e34['utf8']['write'](_0x536186,_0x588a13,_0x47caa1):_0x588a13['utf8Write']?_0x588a13['utf8Write'](_0x536186,_0x47caa1):_0x588a13['write'](_0x536186,_0x47caa1);}return _0x4c70cd['_configure']=function(){_0x4c70cd['alloc']=_0x1c5e34['_Buffer_allocUnsafe'],_0x4c70cd['writeBytesBuffer']=_0x1c5e34['Buffer']&&_0x1c5e34['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x1c5e34['Buffer']['prototype']['set']['name']?function(_0x4ffd9a,_0x595d39,_0x3022c9){_0x595d39['set'](_0x4ffd9a,_0x3022c9);}:function(_0x36f27e,_0x3ef5b4,_0x133a0c){if(_0x36f27e['copy'])_0x36f27e['copy'](_0x3ef5b4,_0x133a0c,0x0,_0x36f27e['length']);else{for(var _0x4a0b2e=0x0;_0x4a0b2e<_0x36f27e['length'];)_0x3ef5b4[_0x133a0c++]=_0x36f27e[_0x4a0b2e++];}};},_0x4c70cd['prototype']['bytes']=function(_0x33dd9c){_0x1c5e34['isString'](_0x33dd9c)&&(_0x33dd9c=_0x1c5e34['_Buffer_from'](_0x33dd9c,'base64'));var _0x291d87=_0x33dd9c['length']>>>0x0;return this['uint32'](_0x291d87),_0x291d87&&this['_push'](_0x4c70cd['writeBytesBuffer'],_0x291d87,_0x33dd9c),this;},_0x4c70cd['prototype']['string']=function(_0x266b8c){var _0x299917=_0x1c5e34['Buffer']['byteLength'](_0x266b8c);return this['uint32'](_0x299917),_0x299917&&this['_push'](_0x1882c0,_0x299917,_0x266b8c),this;},_0x4c70cd['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0x3d4da9;var _0x4088d5,_0x10c5f1=requireMinimal$1(),_0x4ce622=_0x10c5f1['LongBits'],_0x3fb2ac=_0x10c5f1['utf8'];function _0x3889b8(_0x42818a,_0x4f5659){return RangeError('index\x20out\x20of\x20range:\x20'+_0x42818a['pos']+'\x20+\x20'+(_0x4f5659||0x1)+'\x20>\x20'+_0x42818a['len']);}function _0x3d4da9(_0x541e9b){this['buf']=_0x541e9b,this['pos']=0x0,this['len']=_0x541e9b['length'];}var _0x46af20='undefined'!=typeof Uint8Array?function(_0x32b1af){if(_0x32b1af instanceof Uint8Array||Array['isArray'](_0x32b1af))return new _0x3d4da9(_0x32b1af);throw Error('illegal\x20buffer');}:function(_0x40519e){if(Array['isArray'](_0x40519e))return new _0x3d4da9(_0x40519e);throw Error('illegal\x20buffer');},_0x25984d=function(){return _0x10c5f1['Buffer']?function(_0x12148d){return(_0x3d4da9['create']=function(_0x36b3b5){return _0x10c5f1['Buffer']['isBuffer'](_0x36b3b5)?new _0x4088d5(_0x36b3b5):_0x46af20(_0x36b3b5);})(_0x12148d);}:_0x46af20;};function _0x5e4b13(){var _0x19f496=new _0x4ce622(0x0,0x0),_0x5ae59a=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x5ae59a<0x3;++_0x5ae59a){if(this['pos']>=this['len'])throw _0x3889b8(this);if(_0x19f496['lo']=(_0x19f496['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5ae59a)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x19f496;}return _0x19f496['lo']=(_0x19f496['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x5ae59a)>>>0x0,_0x19f496;}for(;_0x5ae59a<0x4;++_0x5ae59a)if(_0x19f496['lo']=(_0x19f496['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5ae59a)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x19f496;if(_0x19f496['lo']=(_0x19f496['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x19f496['hi']=(_0x19f496['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x19f496;if(_0x5ae59a=0x0,this['len']-this['pos']>0x4){for(;_0x5ae59a<0x5;++_0x5ae59a)if(_0x19f496['hi']=(_0x19f496['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5ae59a+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x19f496;}else for(;_0x5ae59a<0x5;++_0x5ae59a){if(this['pos']>=this['len'])throw _0x3889b8(this);if(_0x19f496['hi']=(_0x19f496['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x5ae59a+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x19f496;}throw Error('invalid\x20varint\x20encoding');}function _0x40ba1b(_0x4bc13f,_0x34366a){return(_0x4bc13f[_0x34366a-0x4]|_0x4bc13f[_0x34366a-0x3]<<0x8|_0x4bc13f[_0x34366a-0x2]<<0x10|_0x4bc13f[_0x34366a-0x1]<<0x18)>>>0x0;}function _0x304f87(){if(this['pos']+0x8>this['len'])throw _0x3889b8(this,0x8);return new _0x4ce622(_0x40ba1b(this['buf'],this['pos']+=0x4),_0x40ba1b(this['buf'],this['pos']+=0x4));}return _0x3d4da9['create']=_0x25984d(),_0x3d4da9['prototype']['_slice']=_0x10c5f1['Array']['prototype']['subarray']||_0x10c5f1['Array']['prototype']['slice'],_0x3d4da9['prototype']['uint32']=(function(){var _0x31c9bb=0xffffffff;return function(){if(_0x31c9bb=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x31c9bb;if(_0x31c9bb=(_0x31c9bb|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x31c9bb;if(_0x31c9bb=(_0x31c9bb|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x31c9bb;if(_0x31c9bb=(_0x31c9bb|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x31c9bb;if(_0x31c9bb=(_0x31c9bb|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x31c9bb;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x3889b8(this,0xa);return _0x31c9bb;};}()),_0x3d4da9['prototype']['int32']=function(){return 0x0|this['uint32']();},_0x3d4da9['prototype']['sint32']=function(){var _0x495ff4=this['uint32']();return _0x495ff4>>>0x1^-(0x1&_0x495ff4);},_0x3d4da9['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0x3d4da9['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x3889b8(this,0x4);return _0x40ba1b(this['buf'],this['pos']+=0x4);},_0x3d4da9['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x3889b8(this,0x4);return 0x0|_0x40ba1b(this['buf'],this['pos']+=0x4);},_0x3d4da9['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x3889b8(this,0x4);var _0x565f4a=_0x10c5f1['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x565f4a;},_0x3d4da9['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x3889b8(this,0x4);var _0x13cf75=_0x10c5f1['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x13cf75;},_0x3d4da9['prototype']['bytes']=function(){var _0x1688ed=this['uint32'](),_0x3b10a9=this['pos'],_0x50b40e=this['pos']+_0x1688ed;if(_0x50b40e>this['len'])throw _0x3889b8(this,_0x1688ed);if(this['pos']+=_0x1688ed,Array['isArray'](this['buf']))return this['buf']['slice'](_0x3b10a9,_0x50b40e);if(_0x3b10a9===_0x50b40e){var _0x446d5d=_0x10c5f1['Buffer'];return _0x446d5d?_0x446d5d['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x3b10a9,_0x50b40e);},_0x3d4da9['prototype']['string']=function(){var _0x11d6ee=this['bytes']();return _0x3fb2ac['read'](_0x11d6ee,0x0,_0x11d6ee['length']);},_0x3d4da9['prototype']['skip']=function(_0x23d3ed){if('number'==typeof _0x23d3ed){if(this['pos']+_0x23d3ed>this['len'])throw _0x3889b8(this,_0x23d3ed);this['pos']+=_0x23d3ed;}else do{if(this['pos']>=this['len'])throw _0x3889b8(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0x3d4da9['prototype']['skipType']=function(_0x4d348d){switch(_0x4d348d){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x4d348d=0x7&this['uint32']());)this['skipType'](_0x4d348d);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x4d348d+'\x20at\x20offset\x20'+this['pos']);}return this;},_0x3d4da9['_configure']=function(_0x35eecd){_0x4088d5=_0x35eecd,_0x3d4da9['create']=_0x25984d(),_0x4088d5['_configure']();var _0x598cc8=_0x10c5f1['Long']?'toLong':'toNumber';_0x10c5f1['merge'](_0x3d4da9['prototype'],{'int64':function(){return _0x5e4b13['call'](this)[_0x598cc8](!0x1);},'uint64':function(){return _0x5e4b13['call'](this)[_0x598cc8](!0x0);},'sint64':function(){return _0x5e4b13['call'](this)['zzDecode']()[_0x598cc8](!0x1);},'fixed64':function(){return _0x304f87['call'](this)[_0x598cc8](!0x0);},'sfixed64':function(){return _0x304f87['call'](this)[_0x598cc8](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x2b8539;var _0x641f6c=requireReader();(_0x2b8539['prototype']=Object['create'](_0x641f6c['prototype']))['constructor']=_0x2b8539;var _0x4ba123=requireMinimal$1();function _0x2b8539(_0x44d267){_0x641f6c['call'](this,_0x44d267);}return _0x2b8539['_configure']=function(){_0x4ba123['Buffer']&&(_0x2b8539['prototype']['_slice']=_0x4ba123['Buffer']['prototype']['slice']);},_0x2b8539['prototype']['string']=function(){var _0x3c99f4=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x3c99f4,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x3c99f4,this['len']));},_0x2b8539['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0xf60d78;var _0x2f7625=requireMinimal$1();function _0xf60d78(_0x270f56,_0x276c0b,_0x2c4b60){if('function'!=typeof _0x270f56)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0x2f7625['EventEmitter']['call'](this),this['rpcImpl']=_0x270f56,this['requestDelimited']=Boolean(_0x276c0b),this['responseDelimited']=Boolean(_0x2c4b60);}return(_0xf60d78['prototype']=Object['create'](_0x2f7625['EventEmitter']['prototype']))['constructor']=_0xf60d78,_0xf60d78['prototype']['rpcCall']=function _0xaa2cfb(_0x5aad21,_0x40f183,_0x35b3f3,_0x88bf91,_0xd022bd){if(!_0x88bf91)throw TypeError('request\x20must\x20be\x20specified');var _0x289ac1=this;if(!_0xd022bd)return _0x2f7625['asPromise'](_0xaa2cfb,_0x289ac1,_0x5aad21,_0x40f183,_0x35b3f3,_0x88bf91);if(_0x289ac1['rpcImpl'])try{return _0x289ac1['rpcImpl'](_0x5aad21,_0x40f183[_0x289ac1['requestDelimited']?'encodeDelimited':'encode'](_0x88bf91)['finish'](),function(_0x2b7f19,_0x36e8c9){if(_0x2b7f19)return _0x289ac1['emit']('error',_0x2b7f19,_0x5aad21),_0xd022bd(_0x2b7f19);if(null!==_0x36e8c9){if(!(_0x36e8c9 instanceof _0x35b3f3))try{_0x36e8c9=_0x35b3f3[_0x289ac1['responseDelimited']?'decodeDelimited':'decode'](_0x36e8c9);}catch(_0x5960b1){return _0x289ac1['emit']('error',_0x5960b1,_0x5aad21),_0xd022bd(_0x5960b1);}return _0x289ac1['emit']('data',_0x36e8c9,_0x5aad21),_0xd022bd(null,_0x36e8c9);}_0x289ac1['end'](!0x0);});}catch(_0x4ed550){return _0x289ac1['emit']('error',_0x4ed550,_0x5aad21),void setTimeout(function(){_0xd022bd(_0x4ed550);},0x0);}else setTimeout(function(){_0xd022bd(Error('already\x20ended'));},0x0);},_0xf60d78['prototype']['end']=function(_0x1988ac){return this['rpcImpl']&&(_0x1988ac||this['rpcImpl'](null,null,null),this['rpcImpl']=null,this['emit']('end')['off']()),this;},service;}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=0x1,rpc['Service']=requireService()),rpc;}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=0x1,roots={});}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=0x1,(function(){var _0x451d80=indexMinimal;function _0x5e20b0(){_0x451d80['util']['_configure'](),_0x451d80['Writer']['_configure'](_0x451d80['BufferWriter']),_0x451d80['Reader']['_configure'](_0x451d80['BufferReader']);}_0x451d80['build']='minimal',_0x451d80['Writer']=requireWriter(),_0x451d80['BufferWriter']=requireWriter_buffer(),_0x451d80['Reader']=requireReader(),_0x451d80['BufferReader']=requireReader_buffer(),_0x451d80['util']=requireMinimal$1(),_0x451d80['rpc']=requireRpc(),_0x451d80['roots']=requireRoots(),_0x451d80['configure']=_0x5e20b0,_0x5e20b0();}())),indexMinimal;}function requireMinimal(){return hasRequiredMinimal?minimal:(hasRequiredMinimal=0x1,minimal=requireIndexMinimal());}var minimalExports=requireMinimal();const PACKET_TYPES=Object['create'](null);PACKET_TYPES['open']='0',PACKET_TYPES['close']='1',PACKET_TYPES['ping']='2',PACKET_TYPES['pong']='3',PACKET_TYPES['message']='4',PACKET_TYPES['upgrade']='5',PACKET_TYPES['noop']='6';const PACKET_TYPES_REVERSE=Object['create'](null);Object['keys'](PACKET_TYPES)['forEach'](_0x5f1f7b=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x5f1f7b]]=_0x5f1f7b;});const ERROR_PACKET={'type':'error','data':'parser\x20error'},withNativeBlob$1='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===Object['prototype']['toString']['call'](Blob),withNativeArrayBuffer$2='function'==typeof ArrayBuffer,isView$1=_0x4d965c=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4d965c):_0x4d965c&&_0x4d965c['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x462cac,data:_0x463b02},_0x22197e,_0x2aed21)=>withNativeBlob$1&&_0x463b02 instanceof Blob?_0x22197e?_0x2aed21(_0x463b02):encodeBlobAsBase64(_0x463b02,_0x2aed21):withNativeArrayBuffer$2&&(_0x463b02 instanceof ArrayBuffer||isView$1(_0x463b02))?_0x22197e?_0x2aed21(_0x463b02):encodeBlobAsBase64(new Blob([_0x463b02]),_0x2aed21):_0x2aed21(PACKET_TYPES[_0x462cac]+(_0x463b02||'')),encodeBlobAsBase64=(_0x386d85,_0x3562cb)=>{const _0x36b143=new FileReader();return _0x36b143['onload']=function(){const _0x33d02f=_0x36b143['result']['split'](',')[0x1];_0x3562cb('b'+(_0x33d02f||''));},_0x36b143['readAsDataURL'](_0x386d85);};function toArray(_0x5b66c6){return _0x5b66c6 instanceof Uint8Array?_0x5b66c6:_0x5b66c6 instanceof ArrayBuffer?new Uint8Array(_0x5b66c6):new Uint8Array(_0x5b66c6['buffer'],_0x5b66c6['byteOffset'],_0x5b66c6['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x4c0aff,_0x569044){return withNativeBlob$1&&_0x4c0aff['data']instanceof Blob?_0x4c0aff['data']['arrayBuffer']()['then'](toArray)['then'](_0x569044):withNativeArrayBuffer$2&&(_0x4c0aff['data']instanceof ArrayBuffer||isView$1(_0x4c0aff['data']))?_0x569044(toArray(_0x4c0aff['data'])):void encodePacket(_0x4c0aff,!0x1,_0x43ed09=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x569044(TEXT_ENCODER['encode'](_0x43ed09));});}const chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',lookup$1='undefined'==typeof Uint8Array?[]:new Uint8Array(0x100);for(let e=0x0;e<chars['length'];e++)lookup$1[chars['charCodeAt'](e)]=e;const decode$1=_0x3b17a2=>{let _0x4941bc,_0x234f0e,_0x18f1cb,_0x54eb86,_0x429fa5,_0x2fc6e6=0.75*_0x3b17a2['length'],_0x163f0d=_0x3b17a2['length'],_0x37e555=0x0;'='===_0x3b17a2[_0x3b17a2['length']-0x1]&&(_0x2fc6e6--,'='===_0x3b17a2[_0x3b17a2['length']-0x2]&&_0x2fc6e6--);const _0x86ce7d=new ArrayBuffer(_0x2fc6e6),_0x2711ae=new Uint8Array(_0x86ce7d);for(_0x4941bc=0x0;_0x4941bc<_0x163f0d;_0x4941bc+=0x4)_0x234f0e=lookup$1[_0x3b17a2['charCodeAt'](_0x4941bc)],_0x18f1cb=lookup$1[_0x3b17a2['charCodeAt'](_0x4941bc+0x1)],_0x54eb86=lookup$1[_0x3b17a2['charCodeAt'](_0x4941bc+0x2)],_0x429fa5=lookup$1[_0x3b17a2['charCodeAt'](_0x4941bc+0x3)],_0x2711ae[_0x37e555++]=_0x234f0e<<0x2|_0x18f1cb>>0x4,_0x2711ae[_0x37e555++]=(0xf&_0x18f1cb)<<0x4|_0x54eb86>>0x2,_0x2711ae[_0x37e555++]=(0x3&_0x54eb86)<<0x6|0x3f&_0x429fa5;return _0x86ce7d;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x2f1056,_0xc6ef59)=>{if('string'!=typeof _0x2f1056)return{'type':'message','data':mapBinary(_0x2f1056,_0xc6ef59)};const _0x91017b=_0x2f1056['charAt'](0x0);if('b'===_0x91017b)return{'type':'message','data':decodeBase64Packet(_0x2f1056['substring'](0x1),_0xc6ef59)};return PACKET_TYPES_REVERSE[_0x91017b]?_0x2f1056['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x91017b],'data':_0x2f1056['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x91017b]}:ERROR_PACKET;},decodeBase64Packet=(_0x17787f,_0x3bf4b5)=>{if(withNativeArrayBuffer$1){const _0x574ec0=decode$1(_0x17787f);return mapBinary(_0x574ec0,_0x3bf4b5);}return{'base64':!0x0,'data':_0x17787f};},mapBinary=(_0x51d48d,_0x43f6be)=>'blob'===_0x43f6be?_0x51d48d instanceof Blob?_0x51d48d:new Blob([_0x51d48d]):_0x51d48d instanceof ArrayBuffer?_0x51d48d:_0x51d48d['buffer'],SEPARATOR$1=String['fromCharCode'](0x1e),encodePayload=(_0x2f74c9,_0x318051)=>{const _0x3206f0=_0x2f74c9['length'],_0x10ad7a=new Array(_0x3206f0);let _0x309b4b=0x0;_0x2f74c9['forEach']((_0x28dcd3,_0x216754)=>{encodePacket(_0x28dcd3,!0x1,_0x3f2de6=>{_0x10ad7a[_0x216754]=_0x3f2de6,++_0x309b4b===_0x3206f0&&_0x318051(_0x10ad7a['join'](SEPARATOR$1));});});},decodePayload=(_0x49acb6,_0x4a2f3f)=>{const _0x388f97=_0x49acb6['split'](SEPARATOR$1),_0x41c6be=[];for(let _0x379b6a=0x0;_0x379b6a<_0x388f97['length'];_0x379b6a++){const _0x286798=decodePacket(_0x388f97[_0x379b6a],_0x4a2f3f);if(_0x41c6be['push'](_0x286798),'error'===_0x286798['type'])break;}return _0x41c6be;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x46a527,_0x16791c){encodePacketToBinary(_0x46a527,_0x14104f=>{const _0x1e3d8b=_0x14104f['length'];let _0xbcdf70;if(_0x1e3d8b<0x7e)_0xbcdf70=new Uint8Array(0x1),new DataView(_0xbcdf70['buffer'])['setUint8'](0x0,_0x1e3d8b);else{if(_0x1e3d8b<0x10000){_0xbcdf70=new Uint8Array(0x3);const _0x58aac2=new DataView(_0xbcdf70['buffer']);_0x58aac2['setUint8'](0x0,0x7e),_0x58aac2['setUint16'](0x1,_0x1e3d8b);}else{_0xbcdf70=new Uint8Array(0x9);const _0x28e6f0=new DataView(_0xbcdf70['buffer']);_0x28e6f0['setUint8'](0x0,0x7f),_0x28e6f0['setBigUint64'](0x1,BigInt(_0x1e3d8b));}}_0x46a527['data']&&'string'!=typeof _0x46a527['data']&&(_0xbcdf70[0x0]|=0x80),_0x16791c['enqueue'](_0xbcdf70),_0x16791c['enqueue'](_0x14104f);});}});}let TEXT_DECODER;function totalLength(_0x2ea475){return _0x2ea475['reduce']((_0x380561,_0x5c34a7)=>_0x380561+_0x5c34a7['length'],0x0);}function concatChunks(_0x259945,_0x4a60b9){if(_0x259945[0x0]['length']===_0x4a60b9)return _0x259945['shift']();const _0x3044d3=new Uint8Array(_0x4a60b9);let _0x43f2e2=0x0;for(let _0x23295f=0x0;_0x23295f<_0x4a60b9;_0x23295f++)_0x3044d3[_0x23295f]=_0x259945[0x0][_0x43f2e2++],_0x43f2e2===_0x259945[0x0]['length']&&(_0x259945['shift'](),_0x43f2e2=0x0);return _0x259945['length']&&_0x43f2e2<_0x259945[0x0]['length']&&(_0x259945[0x0]=_0x259945[0x0]['slice'](_0x43f2e2)),_0x3044d3;}function createPacketDecoderStream(_0x5dc4e4,_0x226edc){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x4baf9a=[];let _0x43606f=0x0,_0x58dc27=-0x1,_0x2373ff=!0x1;return new TransformStream({'transform'(_0x54a632,_0x5eff73){for(_0x4baf9a['push'](_0x54a632);;){if(0x0===_0x43606f){if(totalLength(_0x4baf9a)<0x1)break;const _0x2297ea=concatChunks(_0x4baf9a,0x1);_0x2373ff=!(0x80&~_0x2297ea[0x0]),_0x58dc27=0x7f&_0x2297ea[0x0],_0x43606f=_0x58dc27<0x7e?0x3:0x7e===_0x58dc27?0x1:0x2;}else{if(0x1===_0x43606f){if(totalLength(_0x4baf9a)<0x2)break;const _0xf56aa2=concatChunks(_0x4baf9a,0x2);_0x58dc27=new DataView(_0xf56aa2['buffer'],_0xf56aa2['byteOffset'],_0xf56aa2['length'])['getUint16'](0x0),_0x43606f=0x3;}else{if(0x2===_0x43606f){if(totalLength(_0x4baf9a)<0x8)break;const _0xed44e=concatChunks(_0x4baf9a,0x8),_0x160873=new DataView(_0xed44e['buffer'],_0xed44e['byteOffset'],_0xed44e['length']),_0x23f2a1=_0x160873['getUint32'](0x0);if(_0x23f2a1>Math['pow'](0x2,0x15)-0x1){_0x5eff73['enqueue'](ERROR_PACKET);break;}_0x58dc27=_0x23f2a1*Math['pow'](0x2,0x20)+_0x160873['getUint32'](0x4),_0x43606f=0x3;}else{if(totalLength(_0x4baf9a)<_0x58dc27)break;const _0x315e4d=concatChunks(_0x4baf9a,_0x58dc27);_0x5eff73['enqueue'](decodePacket(_0x2373ff?_0x315e4d:TEXT_DECODER['decode'](_0x315e4d),_0x226edc)),_0x43606f=0x0;}}}if(0x0===_0x58dc27||_0x58dc27>_0x5dc4e4){_0x5eff73['enqueue'](ERROR_PACKET);break;}}}});}const protocol=0x4;function Emitter(_0x263e96){if(_0x263e96)return mixin(_0x263e96);}function mixin(_0xd873fd){for(var _0x4aae04 in Emitter['prototype'])_0xd873fd[_0x4aae04]=Emitter['prototype'][_0x4aae04];return _0xd873fd;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0x1b6ae3,_0x12b146){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x1b6ae3]=this['_callbacks']['$'+_0x1b6ae3]||[])['push'](_0x12b146),this;},Emitter['prototype']['once']=function(_0x28fb9d,_0x11b9fd){function _0x5d431c(){this['off'](_0x28fb9d,_0x5d431c),_0x11b9fd['apply'](this,arguments);}return _0x5d431c['fn']=_0x11b9fd,this['on'](_0x28fb9d,_0x5d431c),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x147559,_0x38aef1){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x667efb,_0x13b475=this['_callbacks']['$'+_0x147559];if(!_0x13b475)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x147559],this;for(var _0x254f81=0x0;_0x254f81<_0x13b475['length'];_0x254f81++)if((_0x667efb=_0x13b475[_0x254f81])===_0x38aef1||_0x667efb['fn']===_0x38aef1){_0x13b475['splice'](_0x254f81,0x1);break;}return 0x0===_0x13b475['length']&&delete this['_callbacks']['$'+_0x147559],this;},Emitter['prototype']['emit']=function(_0x2bc4b5){this['_callbacks']=this['_callbacks']||{};for(var _0x3584af=new Array(arguments['length']-0x1),_0x54da95=this['_callbacks']['$'+_0x2bc4b5],_0x1636b2=0x1;_0x1636b2<arguments['length'];_0x1636b2++)_0x3584af[_0x1636b2-0x1]=arguments[_0x1636b2];if(_0x54da95){_0x1636b2=0x0;for(var _0x53f7c8=(_0x54da95=_0x54da95['slice'](0x0))['length'];_0x1636b2<_0x53f7c8;++_0x1636b2)_0x54da95[_0x1636b2]['apply'](this,_0x3584af);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x2fdabe){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x2fdabe]||[];},Emitter['prototype']['hasListeners']=function(_0x4c45ec){return!!this['listeners'](_0x4c45ec)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick(_0x5d780c,..._0x4628f3){return _0x4628f3['reduce']((_0x55d591,_0x4ff153)=>(_0x5d780c['hasOwnProperty'](_0x4ff153)&&(_0x55d591[_0x4ff153]=_0x5d780c[_0x4ff153]),_0x55d591),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x397410,_0x273966){_0x273966['useNativeTimers']?(_0x397410['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x397410['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x397410['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x397410['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x2392a8){return'string'==typeof _0x2392a8?utf8Length(_0x2392a8):Math['ceil']((_0x2392a8['byteLength']||_0x2392a8['size'])*BASE64_OVERHEAD);}function utf8Length(_0x2cab42){let _0x27f28b=0x0,_0x366b79=0x0;for(let _0x12d506=0x0,_0x50e402=_0x2cab42['length'];_0x12d506<_0x50e402;_0x12d506++)_0x27f28b=_0x2cab42['charCodeAt'](_0x12d506),_0x27f28b<0x80?_0x366b79+=0x1:_0x27f28b<0x800?_0x366b79+=0x2:_0x27f28b<0xd800||_0x27f28b>=0xe000?_0x366b79+=0x3:(_0x12d506++,_0x366b79+=0x4);return _0x366b79;}function encode$1(_0x19b7d7){let _0x42e70c='';for(let _0x17d38b in _0x19b7d7)_0x19b7d7['hasOwnProperty'](_0x17d38b)&&(_0x42e70c['length']&&(_0x42e70c+='&'),_0x42e70c+=encodeURIComponent(_0x17d38b)+'='+encodeURIComponent(_0x19b7d7[_0x17d38b]));return _0x42e70c;}function decode(_0x3923a7){let _0x4623db={},_0x206bf8=_0x3923a7['split']('&');for(let _0x55e54a=0x0,_0x3f40a4=_0x206bf8['length'];_0x55e54a<_0x3f40a4;_0x55e54a++){let _0x1ce95d=_0x206bf8[_0x55e54a]['split']('=');_0x4623db[decodeURIComponent(_0x1ce95d[0x0])]=decodeURIComponent(_0x1ce95d[0x1]);}return _0x4623db;}class TransportError extends Error{constructor(_0x3fe5ac,_0x4cc5ed,_0xa7a23c){super(_0x3fe5ac),this['description']=_0x4cc5ed,this['context']=_0xa7a23c,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x5328aa){super(),this['writable']=!0x1,installTimerFunctions(this,_0x5328aa),this['opts']=_0x5328aa,this['query']=_0x5328aa['query'],this['socket']=_0x5328aa['socket'];}['onError'](_0x2d0238,_0x200f01,_0x1a2511){return super['emitReserved']('error',new TransportError(_0x2d0238,_0x200f01,_0x1a2511)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0x384816){'open'===this['readyState']&&this['write'](_0x384816);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0x1cb5ef){const _0x3a08af=decodePacket(_0x1cb5ef,this['socket']['binaryType']);this['onPacket'](_0x3a08af);}['onPacket'](_0x2a720f){super['emitReserved']('packet',_0x2a720f);}['onClose'](_0x3306a7){this['readyState']='closed',super['emitReserved']('close',_0x3306a7);}['pause'](_0x18f8d7){}['createUri'](_0x47fb42,_0x4fce38={}){return _0x47fb42+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x4fce38);}['_hostname'](){const _0xa3a00c=this['opts']['hostname'];return-0x1===_0xa3a00c['indexOf'](':')?_0xa3a00c:'['+_0xa3a00c+']';}['_port'](){return this['opts']['port']&&(this['opts']['secure']&&Number(0x1bb!==this['opts']['port'])||!this['opts']['secure']&&0x50!==Number(this['opts']['port']))?':'+this['opts']['port']:'';}['_query'](_0x51a776){const _0x336670=encode$1(_0x51a776);return _0x336670['length']?'?'+_0x336670:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$1=0x0,prev;function encode(_0x208acc){let _0x5886af='';do{_0x5886af=alphabet[_0x208acc%length]+_0x5886af,_0x208acc=Math['floor'](_0x208acc/length);}while(_0x208acc>0x0);return _0x5886af;}function yeast(){const _0x558e17=encode(+new Date());return _0x558e17!==prev?(seed=0x0,prev=_0x558e17):_0x558e17+'.'+encode(seed++);}for(;i$1<length;i$1++)map[alphabet[i$1]]=i$1;let value=!0x1;try{value='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0x454b17){}const hasCORS=value;function XHR(_0x1c788f){const _0x51a556=_0x1c788f['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x51a556||hasCORS))return new XMLHttpRequest();}catch(_0xe60c23){}if(!_0x51a556)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x18c0b9){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x2392f4){if(super(_0x2392f4),this['polling']=!0x1,'undefined'!=typeof location){const _0x4b12ad='https:'===location['protocol'];let _0x1623bd=location['port'];_0x1623bd||(_0x1623bd=_0x4b12ad?'443':'80'),this['xd']='undefined'!=typeof location&&_0x2392f4['hostname']!==location['hostname']||_0x1623bd!==_0x2392f4['port'];}const _0x5085f0=_0x2392f4&&_0x2392f4['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x5085f0,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x575b21){this['readyState']='pausing';const _0x1debe8=()=>{this['readyState']='paused',_0x575b21();};if(this['polling']||!this['writable']){let _0x4a3930=0x0;this['polling']&&(_0x4a3930++,this['once']('pollComplete',function(){--_0x4a3930||_0x1debe8();})),this['writable']||(_0x4a3930++,this['once']('drain',function(){--_0x4a3930||_0x1debe8();}));}else _0x1debe8();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0x2a72db){decodePayload(_0x2a72db,this['socket']['binaryType'])['forEach'](_0x1f6d55=>{if('opening'===this['readyState']&&'open'===_0x1f6d55['type']&&this['onOpen'](),'close'===_0x1f6d55['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x1f6d55);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x1ec731=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x1ec731():this['once']('open',_0x1ec731);}['write'](_0x45ef6a){this['writable']=!0x1,encodePayload(_0x45ef6a,_0x1b29b4=>{this['doWrite'](_0x1b29b4,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0xd1559b=this['opts']['secure']?'https':'http',_0xd5c1d6=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0xd5c1d6[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0xd5c1d6['sid']||(_0xd5c1d6['b64']=0x1),this['createUri'](_0xd1559b,_0xd5c1d6);}['request'](_0xeee88c={}){return Object['assign'](_0xeee88c,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request(this['uri'](),_0xeee88c);}['doWrite'](_0xea093d,_0x2e350c){const _0x3db3d8=this['request']({'method':'POST','data':_0xea093d});_0x3db3d8['on']('success',_0x2e350c),_0x3db3d8['on']('error',(_0x4c1c7a,_0x27de6a)=>{this['onError']('xhr\x20post\x20error',_0x4c1c7a,_0x27de6a);});}['doPoll'](){const _0x1618d0=this['request']();_0x1618d0['on']('data',this['onData']['bind'](this)),_0x1618d0['on']('error',(_0x57d401,_0x40ae7f)=>{this['onError']('xhr\x20poll\x20error',_0x57d401,_0x40ae7f);}),this['pollXhr']=_0x1618d0;}}class Request extends Emitter{constructor(_0x294ed6,_0x317187){super(),installTimerFunctions(this,_0x317187),this['opts']=_0x317187,this['method']=_0x317187['method']||'GET',this['uri']=_0x294ed6,this['data']=void 0x0!==_0x317187['data']?_0x317187['data']:null,this['create']();}['create'](){var _0x317539;const _0x4a214c=pick(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x4a214c['xdomain']=!!this['opts']['xd'];const _0x4eef1c=this['xhr']=new XHR(_0x4a214c);try{_0x4eef1c['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x4eef1c['setDisableHeaderCheck']&&_0x4eef1c['setDisableHeaderCheck'](!0x0);for(let _0x455e0a in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x455e0a)&&_0x4eef1c['setRequestHeader'](_0x455e0a,this['opts']['extraHeaders'][_0x455e0a]);}}catch(_0x4acc3c){}if('POST'===this['method'])try{_0x4eef1c['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x5483ff){}try{_0x4eef1c['setRequestHeader']('Accept','*/*');}catch(_0x264685){}null===(_0x317539=this['opts']['cookieJar'])||void 0x0===_0x317539||_0x317539['addCookies'](_0x4eef1c),'withCredentials'in _0x4eef1c&&(_0x4eef1c['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x4eef1c['timeout']=this['opts']['requestTimeout']),_0x4eef1c['onreadystatechange']=()=>{var _0x371f3a;0x3===_0x4eef1c['readyState']&&(null===(_0x371f3a=this['opts']['cookieJar'])||void 0x0===_0x371f3a||_0x371f3a['parseCookies'](_0x4eef1c)),0x4===_0x4eef1c['readyState']&&(0xc8===_0x4eef1c['status']||0x4c7===_0x4eef1c['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x4eef1c['status']?_0x4eef1c['status']:0x0);},0x0));},_0x4eef1c['send'](this['data']);}catch(_0x30699f){return void this['setTimeoutFn'](()=>{this['onError'](_0x30699f);},0x0);}'undefined'!=typeof document&&(this['index']=Request['requestsCount']++,Request['requests'][this['index']]=this);}['onError'](_0x390b64){this['emitReserved']('error',_0x390b64,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x4f3b71){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x4f3b71)try{this['xhr']['abort']();}catch(_0x2f0f2b){}'undefined'!=typeof document&&delete Request['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0x1d9b74=this['xhr']['responseText'];null!==_0x1d9b74&&(this['emitReserved']('data',_0x1d9b74),this['emitReserved']('success'),this['cleanup']());}['abort'](){this['cleanup']();}}if(Request['requestsCount']=0x0,Request['requests']={},'undefined'!=typeof document){if('function'==typeof attachEvent)attachEvent('onunload',unloadHandler);else{if('function'==typeof addEventListener){const e='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(e,unloadHandler,!0x1);}}}function unloadHandler(){for(let _0x5cf936 in Request['requests'])Request['requests']['hasOwnProperty'](_0x5cf936)&&Request['requests'][_0x5cf936]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x25cebb=>Promise['resolve']()['then'](_0x25cebb):(_0x3fc52f,_0x3a143b)=>_0x3a143b(_0x3fc52f,0x0),WebSocket$1=globalThisShim['WebSocket']||globalThisShim['MozWebSocket'],usingBrowserWebSocket=!0x0,defaultBinaryType='arraybuffer',isReactNative='undefined'!=typeof navigator&&'string'==typeof navigator['product']&&'reactnative'===navigator['product']['toLowerCase']();class WS extends Transport{constructor(_0x1965c6){super(_0x1965c6),this['supportsBinary']=!_0x1965c6['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x5bfea5=this['uri'](),_0x5c561b=this['opts']['protocols'],_0xf11de8=isReactNative?{}:pick(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0xf11de8['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x5c561b?new WebSocket$1(_0x5bfea5,_0x5c561b):new WebSocket$1(_0x5bfea5):new WebSocket$1(_0x5bfea5,_0x5c561b,_0xf11de8);}catch(_0x30118b){return this['emitReserved']('error',_0x30118b);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x548e04=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x548e04}),this['ws']['onmessage']=_0x269c5b=>this['onData'](_0x269c5b['data']),this['ws']['onerror']=_0x487756=>this['onError']('websocket\x20error',_0x487756);}['write'](_0x5b9be5){this['writable']=!0x1;for(let _0x1778b1=0x0;_0x1778b1<_0x5b9be5['length'];_0x1778b1++){const _0x576675=_0x5b9be5[_0x1778b1],_0x2e6638=_0x1778b1===_0x5b9be5['length']-0x1;encodePacket(_0x576675,this['supportsBinary'],_0x5048f3=>{try{usingBrowserWebSocket&&this['ws']['send'](_0x5048f3);}catch(_0x44d773){}_0x2e6638&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0xce3639=this['opts']['secure']?'wss':'ws',_0x390039=this['query']||{};return this['opts']['timestampRequests']&&(_0x390039[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x390039['b64']=0x1),this['createUri'](_0xce3639,_0x390039);}['check'](){return!!WebSocket$1;}}class WT extends Transport{get['name'](){return'webtransport';}['doOpen'](){'function'==typeof WebTransport&&(this['transport']=new WebTransport(this['createUri']('https'),this['opts']['transportOptions'][this['name']]),this['transport']['closed']['then'](()=>{this['onClose']();})['catch'](_0x330c93=>{this['onError']('webtransport\x20error',_0x330c93);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x36f664=>{const _0x1940f4=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x37f955=_0x36f664['readable']['pipeThrough'](_0x1940f4)['getReader'](),_0x5e978c=createPacketEncoderStream();_0x5e978c['readable']['pipeTo'](_0x36f664['writable']),this['writer']=_0x5e978c['writable']['getWriter']();const _0x2eb7f3=()=>{_0x37f955['read']()['then'](({done:_0x5248cb,value:_0x9492e3})=>{_0x5248cb||(this['onPacket'](_0x9492e3),_0x2eb7f3());})['catch'](_0x49036a=>{});};_0x2eb7f3();const _0x14d21a={'type':'open'};this['query']['sid']&&(_0x14d21a['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x14d21a)['then'](()=>this['onOpen']());});}));}['write'](_0x402ad2){this['writable']=!0x1;for(let _0xc89898=0x0;_0xc89898<_0x402ad2['length'];_0xc89898++){const _0x1c5d3c=_0x402ad2[_0xc89898],_0x241855=_0xc89898===_0x402ad2['length']-0x1;this['writer']['write'](_0x1c5d3c)['then'](()=>{_0x241855&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x672ab2;null===(_0x672ab2=this['transport'])||void 0x0===_0x672ab2||_0x672ab2['close']();}}const transports={'websocket':WS,'webtransport':WT,'polling':Polling},re$1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];function parse(_0xe0ef75){if(_0xe0ef75['length']>0x7d0)throw'URI\x20too\x20long';const _0x40f077=_0xe0ef75,_0x265eae=_0xe0ef75['indexOf']('['),_0x1dfce7=_0xe0ef75['indexOf'](']');-0x1!=_0x265eae&&-0x1!=_0x1dfce7&&(_0xe0ef75=_0xe0ef75['substring'](0x0,_0x265eae)+_0xe0ef75['substring'](_0x265eae,_0x1dfce7)['replace'](/:/g,';')+_0xe0ef75['substring'](_0x1dfce7,_0xe0ef75['length']));let _0x14c46e=re$1['exec'](_0xe0ef75||''),_0x3c6fbf={},_0x9840f5=0xe;for(;_0x9840f5--;)_0x3c6fbf[parts[_0x9840f5]]=_0x14c46e[_0x9840f5]||'';return-0x1!=_0x265eae&&-0x1!=_0x1dfce7&&(_0x3c6fbf['source']=_0x40f077,_0x3c6fbf['host']=_0x3c6fbf['host']['substring'](0x1,_0x3c6fbf['host']['length']-0x1)['replace'](/;/g,':'),_0x3c6fbf['authority']=_0x3c6fbf['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x3c6fbf['ipv6uri']=!0x0),_0x3c6fbf['pathNames']=pathNames(_0x3c6fbf,_0x3c6fbf['path']),_0x3c6fbf['queryKey']=queryKey(_0x3c6fbf,_0x3c6fbf['query']),_0x3c6fbf;}function pathNames(_0x24791e,_0x36113f){const _0xd52fee=_0x36113f['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x36113f['slice'](0x0,0x1)&&0x0!==_0x36113f['length']||_0xd52fee['splice'](0x0,0x1),'/'==_0x36113f['slice'](-0x1)&&_0xd52fee['splice'](_0xd52fee['length']-0x1,0x1),_0xd52fee;}function queryKey(_0x51af77,_0x454b34){const _0x20529c={};return _0x454b34['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x21149f,_0x2f7643,_0x4a4232){_0x2f7643&&(_0x20529c[_0x2f7643]=_0x4a4232);}),_0x20529c;}let Socket$1=class e extends Emitter{constructor(_0x52619b,_0x3796dd={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x52619b&&'object'==typeof _0x52619b&&(_0x3796dd=_0x52619b,_0x52619b=null),_0x52619b?(_0x52619b=parse(_0x52619b),_0x3796dd['hostname']=_0x52619b['host'],_0x3796dd['secure']='https'===_0x52619b['protocol']||'wss'===_0x52619b['protocol'],_0x3796dd['port']=_0x52619b['port'],_0x52619b['query']&&(_0x3796dd['query']=_0x52619b['query'])):_0x3796dd['host']&&(_0x3796dd['hostname']=parse(_0x3796dd['host'])['host']),installTimerFunctions(this,_0x3796dd),this['secure']=null!=_0x3796dd['secure']?_0x3796dd['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x3796dd['hostname']&&!_0x3796dd['port']&&(_0x3796dd['port']=this['secure']?'443':'80'),this['hostname']=_0x3796dd['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x3796dd['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x3796dd['transports']||['polling','websocket','webtransport'],this['writeBuffer']=[],this['prevBufferLen']=0x0,this['opts']=Object['assign']({'path':'/engine.io','agent':!0x1,'withCredentials':!0x1,'upgrade':!0x0,'timestampParam':'t','rememberUpgrade':!0x1,'addTrailingSlash':!0x0,'rejectUnauthorized':!0x0,'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':!0x1},_0x3796dd),this['opts']['path']=this['opts']['path']['replace'](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),'string'==typeof this['opts']['query']&&(this['opts']['query']=decode(this['opts']['query'])),this['id']=null,this['upgrades']=null,this['pingInterval']=null,this['pingTimeout']=null,this['pingTimeoutTimer']=null,'function'==typeof addEventListener&&(this['opts']['closeOnBeforeunload']&&(this['beforeunloadEventListener']=()=>{this['transport']&&(this['transport']['removeAllListeners'](),this['transport']['close']());},addEventListener('beforeunload',this['beforeunloadEventListener'],!0x1)),'localhost'!==this['hostname']&&(this['offlineEventListener']=()=>{this['onClose']('transport\x20close',{'description':'network\x20connection\x20lost'});},addEventListener('offline',this['offlineEventListener'],!0x1))),this['open']();}['createTransport'](_0x32c060){const _0x1c8817=Object['assign']({},this['opts']['query']);_0x1c8817['EIO']=protocol,_0x1c8817['transport']=_0x32c060,this['id']&&(_0x1c8817['sid']=this['id']);const _0x55ba91=Object['assign']({},this['opts'],{'query':_0x1c8817,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0x32c060]);return new transports[_0x32c060](_0x55ba91);}['open'](){let _0x300dc1;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x300dc1='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x300dc1=this['transports'][0x0];}this['readyState']='opening';try{_0x300dc1=this['createTransport'](_0x300dc1);}catch(_0x2fecc8){return this['transports']['shift'](),void this['open']();}_0x300dc1['open'](),this['setTransport'](_0x300dc1);}['setTransport'](_0x424b8d){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x424b8d,_0x424b8d['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x2f4286=>this['onClose']('transport\x20close',_0x2f4286));}['probe'](_0x400ee6){let _0x2dad2c=this['createTransport'](_0x400ee6),_0x17819a=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x41eb35=()=>{_0x17819a||(_0x2dad2c['send']([{'type':'ping','data':'probe'}]),_0x2dad2c['once']('packet',_0x181ff0=>{if(!_0x17819a){if('pong'===_0x181ff0['type']&&'probe'===_0x181ff0['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x2dad2c),!_0x2dad2c)return;e['priorWebsocketSuccess']='websocket'===_0x2dad2c['name'],this['transport']['pause'](()=>{_0x17819a||'closed'!==this['readyState']&&(_0x3c147f(),this['setTransport'](_0x2dad2c),_0x2dad2c['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x2dad2c),_0x2dad2c=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x576748=new Error('probe\x20error');_0x576748['transport']=_0x2dad2c['name'],this['emitReserved']('upgradeError',_0x576748);}}}));};function _0x4a6f25(){_0x17819a||(_0x17819a=!0x0,_0x3c147f(),_0x2dad2c['close'](),_0x2dad2c=null);}const _0x5052c2=_0x33ffc4=>{const _0x3bdcae=new Error('probe\x20error:\x20'+_0x33ffc4);_0x3bdcae['transport']=_0x2dad2c['name'],_0x4a6f25(),this['emitReserved']('upgradeError',_0x3bdcae);};function _0xab1781(){_0x5052c2('transport\x20closed');}function _0x59a593(){_0x5052c2('socket\x20closed');}function _0xdc9fab(_0x2ea083){_0x2dad2c&&_0x2ea083['name']!==_0x2dad2c['name']&&_0x4a6f25();}const _0x3c147f=()=>{_0x2dad2c['removeListener']('open',_0x41eb35),_0x2dad2c['removeListener']('error',_0x5052c2),_0x2dad2c['removeListener']('close',_0xab1781),this['off']('close',_0x59a593),this['off']('upgrading',_0xdc9fab);};_0x2dad2c['once']('open',_0x41eb35),_0x2dad2c['once']('error',_0x5052c2),_0x2dad2c['once']('close',_0xab1781),this['once']('close',_0x59a593),this['once']('upgrading',_0xdc9fab),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x400ee6?this['setTimeoutFn'](()=>{_0x17819a||_0x2dad2c['open']();},0xc8):_0x2dad2c['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x38860d=0x0;const _0xb92143=this['upgrades']['length'];for(;_0x38860d<_0xb92143;_0x38860d++)this['probe'](this['upgrades'][_0x38860d]);}}['onPacket'](_0x27d761){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x27d761),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x27d761['type']){case'open':this['onHandshake'](JSON['parse'](_0x27d761['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x36c32a=new Error('server\x20error');_0x36c32a['code']=_0x27d761['data'],this['onError'](_0x36c32a);break;case'message':this['emitReserved']('data',_0x27d761['data']),this['emitReserved']('message',_0x27d761['data']);}}['onHandshake'](_0x448009){this['emitReserved']('handshake',_0x448009),this['id']=_0x448009['sid'],this['transport']['query']['sid']=_0x448009['sid'],this['upgrades']=this['filterUpgrades'](_0x448009['upgrades']),this['pingInterval']=_0x448009['pingInterval'],this['pingTimeout']=_0x448009['pingTimeout'],this['maxPayload']=_0x448009['maxPayload'],this['onOpen'](),'closed'!==this['readyState']&&this['resetPingTimeout']();}['resetPingTimeout'](){this['clearTimeoutFn'](this['pingTimeoutTimer']),this['pingTimeoutTimer']=this['setTimeoutFn'](()=>{this['onClose']('ping\x20timeout');},this['pingInterval']+this['pingTimeout']),this['opts']['autoUnref']&&this['pingTimeoutTimer']['unref']();}['onDrain'](){this['writeBuffer']['splice'](0x0,this['prevBufferLen']),this['prevBufferLen']=0x0,0x0===this['writeBuffer']['length']?this['emitReserved']('drain'):this['flush']();}['flush'](){if('closed'!==this['readyState']&&this['transport']['writable']&&!this['upgrading']&&this['writeBuffer']['length']){const _0x1f70c1=this['getWritablePackets']();this['transport']['send'](_0x1f70c1),this['prevBufferLen']=_0x1f70c1['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x5c89a6=0x1;for(let _0x575a19=0x0;_0x575a19<this['writeBuffer']['length'];_0x575a19++){const _0x1337c7=this['writeBuffer'][_0x575a19]['data'];if(_0x1337c7&&(_0x5c89a6+=byteLength(_0x1337c7)),_0x575a19>0x0&&_0x5c89a6>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x575a19);_0x5c89a6+=0x2;}return this['writeBuffer'];}['write'](_0x53ba8f,_0x1cd1b7,_0x41f12d){return this['sendPacket']('message',_0x53ba8f,_0x1cd1b7,_0x41f12d),this;}['send'](_0x59c29d,_0x27acf5,_0x152065){return this['sendPacket']('message',_0x59c29d,_0x27acf5,_0x152065),this;}['sendPacket'](_0x3e4f16,_0x38de64,_0x36496d,_0x3bf0be){if('function'==typeof _0x38de64&&(_0x3bf0be=_0x38de64,_0x38de64=void 0x0),'function'==typeof _0x36496d&&(_0x3bf0be=_0x36496d,_0x36496d=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x36496d=_0x36496d||{})['compress']=!0x1!==_0x36496d['compress'];const _0x7b4872={'type':_0x3e4f16,'data':_0x38de64,'options':_0x36496d};this['emitReserved']('packetCreate',_0x7b4872),this['writeBuffer']['push'](_0x7b4872),_0x3bf0be&&this['once']('flush',_0x3bf0be),this['flush']();}['close'](){const _0x19e044=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0xd9e362=()=>{this['off']('upgrade',_0xd9e362),this['off']('upgradeError',_0xd9e362),_0x19e044();},_0x4b8ce9=()=>{this['once']('upgrade',_0xd9e362),this['once']('upgradeError',_0xd9e362);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x4b8ce9():_0x19e044();}):this['upgrading']?_0x4b8ce9():_0x19e044()),this;}['onError'](_0x35eabd){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0x35eabd),this['onClose']('transport\x20error',_0x35eabd);}['onClose'](_0x44da61,_0x4b2860){'opening'!==this['readyState']&&'open'!==this['readyState']&&'closing'!==this['readyState']||(this['clearTimeoutFn'](this['pingTimeoutTimer']),this['transport']['removeAllListeners']('close'),this['transport']['close'](),this['transport']['removeAllListeners'](),'function'==typeof removeEventListener&&(removeEventListener('beforeunload',this['beforeunloadEventListener'],!0x1),removeEventListener('offline',this['offlineEventListener'],!0x1)),this['readyState']='closed',this['id']=null,this['emitReserved']('close',_0x44da61,_0x4b2860),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x48907a){const _0x3d49ec=[];let _0x442d7e=0x0;const _0x34d839=_0x48907a['length'];for(;_0x442d7e<_0x34d839;_0x442d7e++)~this['transports']['indexOf'](_0x48907a[_0x442d7e])&&_0x3d49ec['push'](_0x48907a[_0x442d7e]);return _0x3d49ec;}};function url(_0x30aecf,_0x14a768='',_0x5c2471){let _0x4d00f6=_0x30aecf;_0x5c2471=_0x5c2471||'undefined'!=typeof location&&location,null==_0x30aecf&&(_0x30aecf=_0x5c2471['protocol']+'//'+_0x5c2471['host']),'string'==typeof _0x30aecf&&('/'===_0x30aecf['charAt'](0x0)&&(_0x30aecf='/'===_0x30aecf['charAt'](0x1)?_0x5c2471['protocol']+_0x30aecf:_0x5c2471['host']+_0x30aecf),/^(https?|wss?):\/\//['test'](_0x30aecf)||(_0x30aecf=void 0x0!==_0x5c2471?_0x5c2471['protocol']+'//'+_0x30aecf:'https://'+_0x30aecf),_0x4d00f6=parse(_0x30aecf)),_0x4d00f6['port']||(/^(http|ws)$/['test'](_0x4d00f6['protocol'])?_0x4d00f6['port']='80':/^(http|ws)s$/['test'](_0x4d00f6['protocol'])&&(_0x4d00f6['port']='443')),_0x4d00f6['path']=_0x4d00f6['path']||'/';const _0x25d679=-0x1!==_0x4d00f6['host']['indexOf'](':')?'['+_0x4d00f6['host']+']':_0x4d00f6['host'];return _0x4d00f6['id']=_0x4d00f6['protocol']+'://'+_0x25d679+':'+_0x4d00f6['port']+_0x14a768,_0x4d00f6['href']=_0x4d00f6['protocol']+'://'+_0x25d679+(_0x5c2471&&_0x5c2471['port']===_0x4d00f6['port']?'':':'+_0x4d00f6['port']),_0x4d00f6;}Socket$1['protocol']=protocol;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x4b9936=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4b9936):_0x4b9936['buffer']instanceof ArrayBuffer,toString=Object['prototype']['toString'],withNativeBlob='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===toString['call'](Blob),withNativeFile='function'==typeof File||'undefined'!=typeof File&&'[object\x20FileConstructor]'===toString['call'](File);function isBinary(_0xfa2a18){return withNativeArrayBuffer&&(_0xfa2a18 instanceof ArrayBuffer||isView(_0xfa2a18))||withNativeBlob&&_0xfa2a18 instanceof Blob||withNativeFile&&_0xfa2a18 instanceof File;}function hasBinary(_0xac5bac,_0x229d59){if(!_0xac5bac||'object'!=typeof _0xac5bac)return!0x1;if(Array['isArray'](_0xac5bac)){for(let _0x374b4c=0x0,_0x1f873b=_0xac5bac['length'];_0x374b4c<_0x1f873b;_0x374b4c++)if(hasBinary(_0xac5bac[_0x374b4c]))return!0x0;return!0x1;}if(isBinary(_0xac5bac))return!0x0;if(_0xac5bac['toJSON']&&'function'==typeof _0xac5bac['toJSON']&&0x1===arguments['length'])return hasBinary(_0xac5bac['toJSON'](),!0x0);for(const _0x56a31a in _0xac5bac)if(Object['prototype']['hasOwnProperty']['call'](_0xac5bac,_0x56a31a)&&hasBinary(_0xac5bac[_0x56a31a]))return!0x0;return!0x1;}function deconstructPacket(_0xbb09fa){const _0x37c9e7=[],_0x5c0ced=_0xbb09fa['data'],_0x17a7a4=_0xbb09fa;return _0x17a7a4['data']=_deconstructPacket(_0x5c0ced,_0x37c9e7),_0x17a7a4['attachments']=_0x37c9e7['length'],{'packet':_0x17a7a4,'buffers':_0x37c9e7};}function _deconstructPacket(_0x5bbe91,_0x2dd77f){if(!_0x5bbe91)return _0x5bbe91;if(isBinary(_0x5bbe91)){const _0x5e40c9={'_placeholder':!0x0,'num':_0x2dd77f['length']};return _0x2dd77f['push'](_0x5bbe91),_0x5e40c9;}if(Array['isArray'](_0x5bbe91)){const _0x3a3c83=new Array(_0x5bbe91['length']);for(let _0x94aed2=0x0;_0x94aed2<_0x5bbe91['length'];_0x94aed2++)_0x3a3c83[_0x94aed2]=_deconstructPacket(_0x5bbe91[_0x94aed2],_0x2dd77f);return _0x3a3c83;}if('object'==typeof _0x5bbe91&&!(_0x5bbe91 instanceof Date)){const _0x5aa42d={};for(const _0x1273de in _0x5bbe91)Object['prototype']['hasOwnProperty']['call'](_0x5bbe91,_0x1273de)&&(_0x5aa42d[_0x1273de]=_deconstructPacket(_0x5bbe91[_0x1273de],_0x2dd77f));return _0x5aa42d;}return _0x5bbe91;}function reconstructPacket(_0x60fdaf,_0x99c322){return _0x60fdaf['data']=_reconstructPacket(_0x60fdaf['data'],_0x99c322),delete _0x60fdaf['attachments'],_0x60fdaf;}function _reconstructPacket(_0x5265cf,_0x8c40cd){if(!_0x5265cf)return _0x5265cf;if(_0x5265cf&&!0x0===_0x5265cf['_placeholder']){if('number'==typeof _0x5265cf['num']&&_0x5265cf['num']>=0x0&&_0x5265cf['num']<_0x8c40cd['length'])return _0x8c40cd[_0x5265cf['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x5265cf)){for(let _0x48d221=0x0;_0x48d221<_0x5265cf['length'];_0x48d221++)_0x5265cf[_0x48d221]=_reconstructPacket(_0x5265cf[_0x48d221],_0x8c40cd);}else{if('object'==typeof _0x5265cf){for(const _0xfb1e56 in _0x5265cf)Object['prototype']['hasOwnProperty']['call'](_0x5265cf,_0xfb1e56)&&(_0x5265cf[_0xfb1e56]=_reconstructPacket(_0x5265cf[_0xfb1e56],_0x8c40cd));}}return _0x5265cf;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'];var PacketType;!function(_0x159946){_0x159946[_0x159946['CONNECT']=0x0]='CONNECT',_0x159946[_0x159946['DISCONNECT']=0x1]='DISCONNECT',_0x159946[_0x159946['EVENT']=0x2]='EVENT',_0x159946[_0x159946['ACK']=0x3]='ACK',_0x159946[_0x159946['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x159946[_0x159946['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x159946[_0x159946['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x2355a8){this['replacer']=_0x2355a8;}['encode'](_0x17534d){return _0x17534d['type']!==PacketType['EVENT']&&_0x17534d['type']!==PacketType['ACK']||!hasBinary(_0x17534d)?[this['encodeAsString'](_0x17534d)]:this['encodeAsBinary']({'type':_0x17534d['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x17534d['nsp'],'data':_0x17534d['data'],'id':_0x17534d['id']});}['encodeAsString'](_0x7ac9c6){let _0x496705=''+_0x7ac9c6['type'];return _0x7ac9c6['type']!==PacketType['BINARY_EVENT']&&_0x7ac9c6['type']!==PacketType['BINARY_ACK']||(_0x496705+=_0x7ac9c6['attachments']+'-'),_0x7ac9c6['nsp']&&'/'!==_0x7ac9c6['nsp']&&(_0x496705+=_0x7ac9c6['nsp']+','),null!=_0x7ac9c6['id']&&(_0x496705+=_0x7ac9c6['id']),null!=_0x7ac9c6['data']&&(_0x496705+=JSON['stringify'](_0x7ac9c6['data'],this['replacer'])),_0x496705;}['encodeAsBinary'](_0x1971d4){const _0x56b1a1=deconstructPacket(_0x1971d4),_0x1c4c71=this['encodeAsString'](_0x56b1a1['packet']),_0x2bec70=_0x56b1a1['buffers'];return _0x2bec70['unshift'](_0x1c4c71),_0x2bec70;}},Decoder$1=class e extends Emitter{constructor(_0x1e47b7){super(),this['opts']=Object['assign']({'reviver':void 0x0,'maxAttachments':0xa},'function'==typeof _0x1e47b7?{'reviver':_0x1e47b7}:_0x1e47b7);}['add'](_0x4373cd){let _0x4c1650;if('string'==typeof _0x4373cd){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x4c1650=this['decodeString'](_0x4373cd);const _0x53b87d=_0x4c1650['type']===PacketType['BINARY_EVENT'];_0x53b87d||_0x4c1650['type']===PacketType['BINARY_ACK']?(_0x4c1650['type']=_0x53b87d?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x4c1650),0x0===_0x4c1650['attachments']&&super['emitReserved']('decoded',_0x4c1650)):super['emitReserved']('decoded',_0x4c1650);}else{if(!isBinary(_0x4373cd)&&!_0x4373cd['base64'])throw new Error('Unknown\x20type:\x20'+_0x4373cd);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x4c1650=this['reconstructor']['takeBinaryData'](_0x4373cd),_0x4c1650&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x4c1650));}}['decodeString'](_0x4adb8e){let _0xdbc52f=0x0;const _0x367d49={'type':Number(_0x4adb8e['charAt'](0x0))};if(void 0x0===PacketType[_0x367d49['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x367d49['type']);if(_0x367d49['type']===PacketType['BINARY_EVENT']||_0x367d49['type']===PacketType['BINARY_ACK']){const _0x4df6c4=_0xdbc52f+0x1;for(;'-'!==_0x4adb8e['charAt'](++_0xdbc52f)&&_0xdbc52f!=_0x4adb8e['length'];);const _0x1bb4c2=_0x4adb8e['substring'](_0x4df6c4,_0xdbc52f);if(_0x1bb4c2!=Number(_0x1bb4c2)||'-'!==_0x4adb8e['charAt'](_0xdbc52f))throw new Error('Illegal\x20attachments');const _0x2e836f=Number(_0x1bb4c2);if(!isInteger(_0x2e836f)||_0x2e836f<0x0)throw new Error('Illegal\x20attachments');if(_0x2e836f>this['opts']['maxAttachments'])throw new Error('too\x20many\x20attachments');_0x367d49['attachments']=_0x2e836f;}if('/'===_0x4adb8e['charAt'](_0xdbc52f+0x1)){const _0xa4cec4=_0xdbc52f+0x1;for(;++_0xdbc52f;){if(','===_0x4adb8e['charAt'](_0xdbc52f))break;if(_0xdbc52f===_0x4adb8e['length'])break;}_0x367d49['nsp']=_0x4adb8e['substring'](_0xa4cec4,_0xdbc52f);}else _0x367d49['nsp']='/';const _0x272139=_0x4adb8e['charAt'](_0xdbc52f+0x1);if(''!==_0x272139&&Number(_0x272139)==_0x272139){const _0x417f6e=_0xdbc52f+0x1;for(;++_0xdbc52f;){const _0x5a970e=_0x4adb8e['charAt'](_0xdbc52f);if(null==_0x5a970e||Number(_0x5a970e)!=_0x5a970e){--_0xdbc52f;break;}if(_0xdbc52f===_0x4adb8e['length'])break;}_0x367d49['id']=Number(_0x4adb8e['substring'](_0x417f6e,_0xdbc52f+0x1));}if(_0x4adb8e['charAt'](++_0xdbc52f)){const _0x2c3bdf=this['tryParse'](_0x4adb8e['substr'](_0xdbc52f));if(!e['isPayloadValid'](_0x367d49['type'],_0x2c3bdf))throw new Error('invalid\x20payload');_0x367d49['data']=_0x2c3bdf;}return _0x367d49;}['tryParse'](_0x4156c7){try{return JSON['parse'](_0x4156c7,this['opts']['reviver']);}catch(_0x127959){return!0x1;}}static['isPayloadValid'](_0x2b3f6f,_0x10cc9e){switch(_0x2b3f6f){case PacketType['CONNECT']:return isObject$1(_0x10cc9e);case PacketType['DISCONNECT']:return void 0x0===_0x10cc9e;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x10cc9e||isObject$1(_0x10cc9e);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x10cc9e)&&('number'==typeof _0x10cc9e[0x0]||'string'==typeof _0x10cc9e[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x10cc9e[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x10cc9e);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x83b3ab){this['packet']=_0x83b3ab,this['buffers']=[],this['reconPack']=_0x83b3ab;}['takeBinaryData'](_0x2acbcd){if(this['buffers']['push'](_0x2acbcd),this['buffers']['length']===this['reconPack']['attachments']){const _0x1d53f3=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x1d53f3;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}const isInteger=Number['isInteger']||function(_0x52c1e5){return'number'==typeof _0x52c1e5&&isFinite(_0x52c1e5)&&Math['floor'](_0x52c1e5)===_0x52c1e5;};function isObject$1(_0x17a9d6){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x17a9d6);}var parser$4=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;}});function on$1(_0x173a47,_0xe368f8,_0x527d13){return _0x173a47['on'](_0xe368f8,_0x527d13),function(){_0x173a47['off'](_0xe368f8,_0x527d13);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x2dfd0e,_0x343451,_0x570db8){super(),this['connected']=!0x1,this['recovered']=!0x1,this['receiveBuffer']=[],this['sendBuffer']=[],this['_queue']=[],this['_queueSeq']=0x0,this['ids']=0x0,this['acks']={},this['flags']={},this['io']=_0x2dfd0e,this['nsp']=_0x343451,_0x570db8&&_0x570db8['auth']&&(this['auth']=_0x570db8['auth']),this['_opts']=Object['assign']({},_0x570db8),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0x530f36=this['io'];this['subs']=[on$1(_0x530f36,'open',this['onopen']['bind'](this)),on$1(_0x530f36,'packet',this['onpacket']['bind'](this)),on$1(_0x530f36,'error',this['onerror']['bind'](this)),on$1(_0x530f36,'close',this['onclose']['bind'](this))];}get['active'](){return!!this['subs'];}['connect'](){return this['connected']||(this['subEvents'](),this['io']['_reconnecting']||this['io']['open'](),'open'===this['io']['_readyState']&&this['onopen']()),this;}['open'](){return this['connect']();}['send'](..._0x3a12ab){return _0x3a12ab['unshift']('message'),this['emit']['apply'](this,_0x3a12ab),this;}['emit'](_0x557ab8,..._0x20c044){if(RESERVED_EVENTS['hasOwnProperty'](_0x557ab8))throw new Error('\x22'+_0x557ab8['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x20c044['unshift'](_0x557ab8),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x20c044),this;const _0x33f0fc={'type':PacketType['EVENT'],'data':_0x20c044,'options':{}};if(_0x33f0fc['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x20c044[_0x20c044['length']-0x1]){const _0x404e18=this['ids']++,_0x459d1b=_0x20c044['pop']();this['_registerAckCallback'](_0x404e18,_0x459d1b),_0x33f0fc['id']=_0x404e18;}const _0x752a3c=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0x752a3c||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x33f0fc),this['packet'](_0x33f0fc)):this['sendBuffer']['push'](_0x33f0fc)),this['flags']={},this;}['_registerAckCallback'](_0xdfee02,_0x5df00a){var _0x1367e4;const _0x39d623=null!==(_0x1367e4=this['flags']['timeout'])&&void 0x0!==_0x1367e4?_0x1367e4:this['_opts']['ackTimeout'];if(void 0x0===_0x39d623)return void(this['acks'][_0xdfee02]=_0x5df00a);const _0x3fe9f1=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0xdfee02];for(let _0x2ade65=0x0;_0x2ade65<this['sendBuffer']['length'];_0x2ade65++)this['sendBuffer'][_0x2ade65]['id']===_0xdfee02&&this['sendBuffer']['splice'](_0x2ade65,0x1);_0x5df00a['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x39d623);this['acks'][_0xdfee02]=(..._0x5be138)=>{this['io']['clearTimeoutFn'](_0x3fe9f1),_0x5df00a['apply'](this,[null,..._0x5be138]);};}['emitWithAck'](_0x149973,..._0x2ba73e){const _0x53cdc1=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x50b612,_0x24d7b8)=>{_0x2ba73e['push']((_0x4b5594,_0x4f71cf)=>_0x53cdc1?_0x4b5594?_0x24d7b8(_0x4b5594):_0x50b612(_0x4f71cf):_0x50b612(_0x4b5594)),this['emit'](_0x149973,..._0x2ba73e);});}['_addToQueue'](_0x105f5e){let _0x418074;'function'==typeof _0x105f5e[_0x105f5e['length']-0x1]&&(_0x418074=_0x105f5e['pop']());const _0xadeea3={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x105f5e,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x105f5e['push']((_0x47b865,..._0x2cd704)=>{if(_0xadeea3!==this['_queue'][0x0])return;return null!==_0x47b865?_0xadeea3['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x418074&&_0x418074(_0x47b865)):(this['_queue']['shift'](),_0x418074&&_0x418074(null,..._0x2cd704)),_0xadeea3['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0xadeea3),this['_drainQueue']();}['_drainQueue'](_0x19b6f9=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x404b37=this['_queue'][0x0];_0x404b37['pending']&&!_0x19b6f9||(_0x404b37['pending']=!0x0,_0x404b37['tryCount']++,this['flags']=_0x404b37['flags'],this['emit']['apply'](this,_0x404b37['args']));}['packet'](_0xd26df0){_0xd26df0['nsp']=this['nsp'],this['io']['_packet'](_0xd26df0);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x2af11b=>{this['_sendConnectPacket'](_0x2af11b);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0x108209){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0x108209):_0x108209});}['onerror'](_0x5a8ddd){this['connected']||this['emitReserved']('connect_error',_0x5a8ddd);}['onclose'](_0x53897d,_0x596725){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x53897d,_0x596725);}['onpacket'](_0x2e860e){if(_0x2e860e['nsp']===this['nsp'])switch(_0x2e860e['type']){case PacketType['CONNECT']:_0x2e860e['data']&&_0x2e860e['data']['sid']?this['onconnect'](_0x2e860e['data']['sid'],_0x2e860e['data']['pid']):this['emitReserved']('connect_error',new Error('It\x20seems\x20you\x20are\x20trying\x20to\x20reach\x20a\x20Socket.IO\x20server\x20in\x20v2.x\x20with\x20a\x20v3.x\x20client,\x20but\x20they\x20are\x20not\x20compatible\x20(more\x20information\x20here:\x20https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)'));break;case PacketType['EVENT']:case PacketType['BINARY_EVENT']:this['onevent'](_0x2e860e);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x2e860e);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0x52d208=new Error(_0x2e860e['data']['message']);_0x52d208['data']=_0x2e860e['data']['data'],this['emitReserved']('connect_error',_0x52d208);}}['onevent'](_0x15d4fd){const _0x549614=_0x15d4fd['data']||[];null!=_0x15d4fd['id']&&_0x549614['push'](this['ack'](_0x15d4fd['id'])),this['connected']?this['emitEvent'](_0x549614):this['receiveBuffer']['push'](Object['freeze'](_0x549614));}['emitEvent'](_0x357d3b){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x38484b=this['_anyListeners']['slice']();for(const _0xeb9bee of _0x38484b)_0xeb9bee['apply'](this,_0x357d3b);}super['emit']['apply'](this,_0x357d3b),this['_pid']&&_0x357d3b['length']&&'string'==typeof _0x357d3b[_0x357d3b['length']-0x1]&&(this['_lastOffset']=_0x357d3b[_0x357d3b['length']-0x1]);}['ack'](_0x2e0666){const _0xcc1cbe=this;let _0x437472=!0x1;return function(..._0x836506){_0x437472||(_0x437472=!0x0,_0xcc1cbe['packet']({'type':PacketType['ACK'],'id':_0x2e0666,'data':_0x836506}));};}['onack'](_0x377857){const _0x4ac414=this['acks'][_0x377857['id']];'function'==typeof _0x4ac414&&(_0x4ac414['apply'](this,_0x377857['data']),delete this['acks'][_0x377857['id']]);}['onconnect'](_0x4abc17,_0x434976){this['id']=_0x4abc17,this['recovered']=_0x434976&&this['_pid']===_0x434976,this['_pid']=_0x434976,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x3cac5d=>this['emitEvent'](_0x3cac5d)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x90c896=>{this['notifyOutgoingListeners'](_0x90c896),this['packet'](_0x90c896);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0x13b286=>_0x13b286()),this['subs']=void 0x0),this['io']['_destroy'](this);}['disconnect'](){return this['connected']&&this['packet']({'type':PacketType['DISCONNECT']}),this['destroy'](),this['connected']&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){return this['disconnect']();}['compress'](_0x463c82){return this['flags']['compress']=_0x463c82,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0x361a6d){return this['flags']['timeout']=_0x361a6d,this;}['onAny'](_0x21f7a5){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x21f7a5),this;}['prependAny'](_0x44a50f){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x44a50f),this;}['offAny'](_0x4e5bcf){if(!this['_anyListeners'])return this;if(_0x4e5bcf){const _0x4ecd8c=this['_anyListeners'];for(let _0x57879e=0x0;_0x57879e<_0x4ecd8c['length'];_0x57879e++)if(_0x4e5bcf===_0x4ecd8c[_0x57879e])return _0x4ecd8c['splice'](_0x57879e,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x120cc4){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x120cc4),this;}['prependAnyOutgoing'](_0x4ac07e){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x4ac07e),this;}['offAnyOutgoing'](_0x4f8a8c){if(!this['_anyOutgoingListeners'])return this;if(_0x4f8a8c){const _0x4a4063=this['_anyOutgoingListeners'];for(let _0x2a8c64=0x0;_0x2a8c64<_0x4a4063['length'];_0x2a8c64++)if(_0x4f8a8c===_0x4a4063[_0x2a8c64])return _0x4a4063['splice'](_0x2a8c64,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x1a457f){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x35f203=this['_anyOutgoingListeners']['slice']();for(const _0x2a6a33 of _0x35f203)_0x2a6a33['apply'](this,_0x1a457f['data']);}}}function Backoff(_0x28bb6d){_0x28bb6d=_0x28bb6d||{},this['ms']=_0x28bb6d['min']||0x64,this['max']=_0x28bb6d['max']||0x2710,this['factor']=_0x28bb6d['factor']||0x2,this['jitter']=_0x28bb6d['jitter']>0x0&&_0x28bb6d['jitter']<=0x1?_0x28bb6d['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x39442f=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x4d5844=Math['random'](),_0x59264b=Math['floor'](_0x4d5844*this['jitter']*_0x39442f);_0x39442f=0x1&Math['floor'](0xa*_0x4d5844)?_0x39442f+_0x59264b:_0x39442f-_0x59264b;}return 0x0|Math['min'](_0x39442f,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x3aa210){this['ms']=_0x3aa210;},Backoff['prototype']['setMax']=function(_0x2114fd){this['max']=_0x2114fd;},Backoff['prototype']['setJitter']=function(_0x301ba0){this['jitter']=_0x301ba0;};class Manager extends Emitter{constructor(_0x2eeb86,_0x30ff47){var _0x377c2a;super(),this['nsps']={},this['subs']=[],_0x2eeb86&&'object'==typeof _0x2eeb86&&(_0x30ff47=_0x2eeb86,_0x2eeb86=void 0x0),(_0x30ff47=_0x30ff47||{})['path']=_0x30ff47['path']||'/socket.io',this['opts']=_0x30ff47,installTimerFunctions(this,_0x30ff47),this['reconnection'](!0x1!==_0x30ff47['reconnection']),this['reconnectionAttempts'](_0x30ff47['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x30ff47['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x30ff47['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x377c2a=_0x30ff47['randomizationFactor'])&&void 0x0!==_0x377c2a?_0x377c2a:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x30ff47['timeout']?0x4e20:_0x30ff47['timeout']),this['_readyState']='closed',this['uri']=_0x2eeb86;const _0x342f99=_0x30ff47['parser']||parser$4;this['encoder']=new _0x342f99['Encoder'](),this['decoder']=new _0x342f99['Decoder'](),this['_autoConnect']=!0x1!==_0x30ff47['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x401b25){return arguments['length']?(this['_reconnection']=!!_0x401b25,this):this['_reconnection'];}['reconnectionAttempts'](_0x1a2af5){return void 0x0===_0x1a2af5?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x1a2af5,this);}['reconnectionDelay'](_0xe2aa0e){var _0x4bfdb7;return void 0x0===_0xe2aa0e?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0xe2aa0e,null===(_0x4bfdb7=this['backoff'])||void 0x0===_0x4bfdb7||_0x4bfdb7['setMin'](_0xe2aa0e),this);}['randomizationFactor'](_0x3e501a){var _0x33559d;return void 0x0===_0x3e501a?this['_randomizationFactor']:(this['_randomizationFactor']=_0x3e501a,null===(_0x33559d=this['backoff'])||void 0x0===_0x33559d||_0x33559d['setJitter'](_0x3e501a),this);}['reconnectionDelayMax'](_0x497a46){var _0x1c677a;return void 0x0===_0x497a46?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x497a46,null===(_0x1c677a=this['backoff'])||void 0x0===_0x1c677a||_0x1c677a['setMax'](_0x497a46),this);}['timeout'](_0x2b713d){return arguments['length']?(this['_timeout']=_0x2b713d,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0xc67efb){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x2c249a=this['engine'],_0x43cb5d=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x441f4d=on$1(_0x2c249a,'open',function(){_0x43cb5d['onopen'](),_0xc67efb&&_0xc67efb();}),_0x163ec7=_0x340e09=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x340e09),_0xc67efb?_0xc67efb(_0x340e09):this['maybeReconnectOnOpen']();},_0xd6878=on$1(_0x2c249a,'error',_0x163ec7);if(!0x1!==this['_timeout']){const _0x22931a=this['_timeout'],_0x5cd73f=this['setTimeoutFn'](()=>{_0x441f4d(),_0x163ec7(new Error('timeout')),_0x2c249a['close']();},_0x22931a);this['opts']['autoUnref']&&_0x5cd73f['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x5cd73f);});}return this['subs']['push'](_0x441f4d),this['subs']['push'](_0xd6878),this;}['connect'](_0x1c1a77){return this['open'](_0x1c1a77);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x1d03c6=this['engine'];this['subs']['push'](on$1(_0x1d03c6,'ping',this['onping']['bind'](this)),on$1(_0x1d03c6,'data',this['ondata']['bind'](this)),on$1(_0x1d03c6,'error',this['onerror']['bind'](this)),on$1(_0x1d03c6,'close',this['onclose']['bind'](this)),on$1(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x4280c2){try{this['decoder']['add'](_0x4280c2);}catch(_0x1a2f5a){this['onclose']('parse\x20error',_0x1a2f5a);}}['ondecoded'](_0x4ee5c6){nextTick(()=>{this['emitReserved']('packet',_0x4ee5c6);},this['setTimeoutFn']);}['onerror'](_0x433a30){this['emitReserved']('error',_0x433a30);}['socket'](_0x5da689,_0x1d616c){let _0x19a8f2=this['nsps'][_0x5da689];return _0x19a8f2?this['_autoConnect']&&!_0x19a8f2['active']&&_0x19a8f2['connect']():(_0x19a8f2=new Socket(this,_0x5da689,_0x1d616c),this['nsps'][_0x5da689]=_0x19a8f2),_0x19a8f2;}['_destroy'](_0x3fb08b){const _0x30d887=Object['keys'](this['nsps']);for(const _0x4c0a07 of _0x30d887){if(this['nsps'][_0x4c0a07]['active'])return;}this['_close']();}['_packet'](_0x2f0cab){const _0x5091e7=this['encoder']['encode'](_0x2f0cab);for(let _0x380a4b=0x0;_0x380a4b<_0x5091e7['length'];_0x380a4b++)this['engine']['write'](_0x5091e7[_0x380a4b],_0x2f0cab['options']);}['cleanup'](){this['subs']['forEach'](_0x270068=>_0x270068()),this['subs']['length']=0x0,this['decoder']['destroy']();}['_close'](){this['skipReconnect']=!0x0,this['_reconnecting']=!0x1,this['onclose']('forced\x20close'),this['engine']&&this['engine']['close']();}['disconnect'](){return this['_close']();}['onclose'](_0x46b714,_0x1d2f42){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x46b714,_0x1d2f42),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x295883=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x445ee6=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x56e04f=this['setTimeoutFn'](()=>{_0x295883['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x295883['backoff']['attempts']),_0x295883['skipReconnect']||_0x295883['open'](_0x247cdf=>{_0x247cdf?(_0x295883['_reconnecting']=!0x1,_0x295883['reconnect'](),this['emitReserved']('reconnect_error',_0x247cdf)):_0x295883['onreconnect']();}));},_0x445ee6);this['opts']['autoUnref']&&_0x56e04f['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x56e04f);});}}['onreconnect'](){const _0xf207d1=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0xf207d1);}}const cache$1={};function lookup(_0x14de99,_0x1147d3){'object'==typeof _0x14de99&&(_0x1147d3=_0x14de99,_0x14de99=void 0x0);const _0x389f46=url(_0x14de99,(_0x1147d3=_0x1147d3||{})['path']||'/socket.io'),_0x36401e=_0x389f46['source'],_0x18f56b=_0x389f46['id'],_0x370d27=_0x389f46['path'],_0x5a1db7=cache$1[_0x18f56b]&&_0x370d27 in cache$1[_0x18f56b]['nsps'];let _0x1c1fe3;return _0x1147d3['forceNew']||_0x1147d3['force\x20new\x20connection']||!0x1===_0x1147d3['multiplex']||_0x5a1db7?_0x1c1fe3=new Manager(_0x36401e,_0x1147d3):(cache$1[_0x18f56b]||(cache$1[_0x18f56b]=new Manager(_0x36401e,_0x1147d3)),_0x1c1fe3=cache$1[_0x18f56b]),_0x389f46['query']&&!_0x1147d3['query']&&(_0x1147d3['query']=_0x389f46['queryKey']),_0x1c1fe3['socket'](_0x389f46['path'],_0x1147d3);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0x5af1c1,_0x309230){if(_0x309230=_0x309230['split'](':')[0x0],!(_0x5af1c1=+_0x5af1c1))return!0x1;switch(_0x309230){case'http':case'ws':return 0x50!==_0x5af1c1;case'https':case'wss':return 0x1bb!==_0x5af1c1;case'ftp':return 0x15!==_0x5af1c1;case'gopher':return 0x46!==_0x5af1c1;case'file':return!0x1;}return 0x0!==_0x5af1c1;}),requiresPort;}Object['assign'](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var querystringify={},hasRequiredQuerystringify,urlParse,hasRequiredUrlParse;function requireQuerystringify(){if(hasRequiredQuerystringify)return querystringify;hasRequiredQuerystringify=0x1;var _0x995494=Object['prototype']['hasOwnProperty'];function _0x66af26(_0x347a29){try{return decodeURIComponent(_0x347a29['replace'](/\+/g,'\x20'));}catch(_0x4215d3){return null;}}function _0x43bb2e(_0x34ff97){try{return encodeURIComponent(_0x34ff97);}catch(_0x6abf1b){return null;}}return querystringify['stringify']=function(_0x3db380,_0x54a827){_0x54a827=_0x54a827||'';var _0x357e9a,_0x78ba76,_0x451d1f=[];for(_0x78ba76 in('string'!=typeof _0x54a827&&(_0x54a827='?'),_0x3db380))if(_0x995494['call'](_0x3db380,_0x78ba76)){if((_0x357e9a=_0x3db380[_0x78ba76])||null!=_0x357e9a&&!isNaN(_0x357e9a)||(_0x357e9a=''),_0x78ba76=_0x43bb2e(_0x78ba76),_0x357e9a=_0x43bb2e(_0x357e9a),null===_0x78ba76||null===_0x357e9a)continue;_0x451d1f['push'](_0x78ba76+'='+_0x357e9a);}return _0x451d1f['length']?_0x54a827+_0x451d1f['join']('&'):'';},querystringify['parse']=function(_0x587ec3){for(var _0x46c1a2,_0x543289=/([^=?#&]+)=?([^&]*)/g,_0xcc5636={};_0x46c1a2=_0x543289['exec'](_0x587ec3);){var _0x55cd56=_0x66af26(_0x46c1a2[0x1]),_0x417a97=_0x66af26(_0x46c1a2[0x2]);null===_0x55cd56||null===_0x417a97||_0x55cd56 in _0xcc5636||(_0xcc5636[_0x55cd56]=_0x417a97);}return _0xcc5636;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x3383d3=requireRequiresPort(),_0x4606a3=requireQuerystringify(),_0x514fb5=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x3ec678=/[\n\r\t]/g,_0x3c769c=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x4639d3=/:\d+$/,_0x252508=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x49871b=/^[a-zA-Z]:/;function _0x126b14(_0x5ead6e){return(_0x5ead6e||'')['toString']()['replace'](_0x514fb5,'');}var _0x32f924=[['#','hash'],['?','query'],function(_0x41f1b4,_0x230483){return _0x1eb283(_0x230483['protocol'])?_0x41f1b4['replace'](/\\/g,'/'):_0x41f1b4;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x46fddb={'hash':0x1,'query':0x1};function _0x52f993(_0x40af6c){var _0x3c1b16,_0x412164=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0x433f7f={},_0x532243=typeof(_0x40af6c=_0x40af6c||_0x412164);if('blob:'===_0x40af6c['protocol'])_0x433f7f=new _0x303d48(unescape(_0x40af6c['pathname']),{});else{if('string'===_0x532243){for(_0x3c1b16 in(_0x433f7f=new _0x303d48(_0x40af6c,{}),_0x46fddb))delete _0x433f7f[_0x3c1b16];}else{if('object'===_0x532243){for(_0x3c1b16 in _0x40af6c)_0x3c1b16 in _0x46fddb||(_0x433f7f[_0x3c1b16]=_0x40af6c[_0x3c1b16]);void 0x0===_0x433f7f['slashes']&&(_0x433f7f['slashes']=_0x3c769c['test'](_0x40af6c['href']));}}}return _0x433f7f;}function _0x1eb283(_0x29be72){return'file:'===_0x29be72||'ftp:'===_0x29be72||'http:'===_0x29be72||'https:'===_0x29be72||'ws:'===_0x29be72||'wss:'===_0x29be72;}function _0x4062b4(_0x391aa1,_0x5e2663){_0x391aa1=(_0x391aa1=_0x126b14(_0x391aa1))['replace'](_0x3ec678,''),_0x5e2663=_0x5e2663||{};var _0xf94acc,_0x54584b=_0x252508['exec'](_0x391aa1),_0x1e7ae8=_0x54584b[0x1]?_0x54584b[0x1]['toLowerCase']():'',_0x4f4ef5=!!_0x54584b[0x2],_0x37ca24=!!_0x54584b[0x3],_0x11874a=0x0;return _0x4f4ef5?_0x37ca24?(_0xf94acc=_0x54584b[0x2]+_0x54584b[0x3]+_0x54584b[0x4],_0x11874a=_0x54584b[0x2]['length']+_0x54584b[0x3]['length']):(_0xf94acc=_0x54584b[0x2]+_0x54584b[0x4],_0x11874a=_0x54584b[0x2]['length']):_0x37ca24?(_0xf94acc=_0x54584b[0x3]+_0x54584b[0x4],_0x11874a=_0x54584b[0x3]['length']):_0xf94acc=_0x54584b[0x4],'file:'===_0x1e7ae8?_0x11874a>=0x2&&(_0xf94acc=_0xf94acc['slice'](0x2)):_0x1eb283(_0x1e7ae8)?_0xf94acc=_0x54584b[0x4]:_0x1e7ae8?_0x4f4ef5&&(_0xf94acc=_0xf94acc['slice'](0x2)):_0x11874a>=0x2&&_0x1eb283(_0x5e2663['protocol'])&&(_0xf94acc=_0x54584b[0x4]),{'protocol':_0x1e7ae8,'slashes':_0x4f4ef5||_0x1eb283(_0x1e7ae8),'slashesCount':_0x11874a,'rest':_0xf94acc};}function _0x303d48(_0x556b9f,_0x46651b,_0x5959b4){if(_0x556b9f=(_0x556b9f=_0x126b14(_0x556b9f))['replace'](_0x3ec678,''),!(this instanceof _0x303d48))return new _0x303d48(_0x556b9f,_0x46651b,_0x5959b4);var _0x5641e5,_0x552abe,_0x18dc16,_0x446a29,_0x13a6e5,_0x4b55b7,_0x484a7a=_0x32f924['slice'](),_0x35a04d=typeof _0x46651b,_0x2806de=this,_0x32e96f=0x0;for('object'!==_0x35a04d&&'string'!==_0x35a04d&&(_0x5959b4=_0x46651b,_0x46651b=null),_0x5959b4&&'function'!=typeof _0x5959b4&&(_0x5959b4=_0x4606a3['parse']),_0x5641e5=!(_0x552abe=_0x4062b4(_0x556b9f||'',_0x46651b=_0x52f993(_0x46651b)))['protocol']&&!_0x552abe['slashes'],_0x2806de['slashes']=_0x552abe['slashes']||_0x5641e5&&_0x46651b['slashes'],_0x2806de['protocol']=_0x552abe['protocol']||_0x46651b['protocol']||'',_0x556b9f=_0x552abe['rest'],('file:'===_0x552abe['protocol']&&(0x2!==_0x552abe['slashesCount']||_0x49871b['test'](_0x556b9f))||!_0x552abe['slashes']&&(_0x552abe['protocol']||_0x552abe['slashesCount']<0x2||!_0x1eb283(_0x2806de['protocol'])))&&(_0x484a7a[0x3]=[/(.*)/,'pathname']);_0x32e96f<_0x484a7a['length'];_0x32e96f++)'function'!=typeof(_0x446a29=_0x484a7a[_0x32e96f])?(_0x18dc16=_0x446a29[0x0],_0x4b55b7=_0x446a29[0x1],_0x18dc16!=_0x18dc16?_0x2806de[_0x4b55b7]=_0x556b9f:'string'==typeof _0x18dc16?~(_0x13a6e5='@'===_0x18dc16?_0x556b9f['lastIndexOf'](_0x18dc16):_0x556b9f['indexOf'](_0x18dc16))&&('number'==typeof _0x446a29[0x2]?(_0x2806de[_0x4b55b7]=_0x556b9f['slice'](0x0,_0x13a6e5),_0x556b9f=_0x556b9f['slice'](_0x13a6e5+_0x446a29[0x2])):(_0x2806de[_0x4b55b7]=_0x556b9f['slice'](_0x13a6e5),_0x556b9f=_0x556b9f['slice'](0x0,_0x13a6e5))):(_0x13a6e5=_0x18dc16['exec'](_0x556b9f))&&(_0x2806de[_0x4b55b7]=_0x13a6e5[0x1],_0x556b9f=_0x556b9f['slice'](0x0,_0x13a6e5['index'])),_0x2806de[_0x4b55b7]=_0x2806de[_0x4b55b7]||_0x5641e5&&_0x446a29[0x3]&&_0x46651b[_0x4b55b7]||'',_0x446a29[0x4]&&(_0x2806de[_0x4b55b7]=_0x2806de[_0x4b55b7]['toLowerCase']())):_0x556b9f=_0x446a29(_0x556b9f,_0x2806de);_0x5959b4&&(_0x2806de['query']=_0x5959b4(_0x2806de['query'])),_0x5641e5&&_0x46651b['slashes']&&'/'!==_0x2806de['pathname']['charAt'](0x0)&&(''!==_0x2806de['pathname']||''!==_0x46651b['pathname'])&&(_0x2806de['pathname']=function(_0x324ddc,_0x23abb9){if(''===_0x324ddc)return _0x23abb9;for(var _0x3bc70a=(_0x23abb9||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0x324ddc['split']('/')),_0x50001a=_0x3bc70a['length'],_0x13b5fa=_0x3bc70a[_0x50001a-0x1],_0x7b7678=!0x1,_0xb0dfa6=0x0;_0x50001a--;)'.'===_0x3bc70a[_0x50001a]?_0x3bc70a['splice'](_0x50001a,0x1):'..'===_0x3bc70a[_0x50001a]?(_0x3bc70a['splice'](_0x50001a,0x1),_0xb0dfa6++):_0xb0dfa6&&(0x0===_0x50001a&&(_0x7b7678=!0x0),_0x3bc70a['splice'](_0x50001a,0x1),_0xb0dfa6--);return _0x7b7678&&_0x3bc70a['unshift'](''),'.'!==_0x13b5fa&&'..'!==_0x13b5fa||_0x3bc70a['push'](''),_0x3bc70a['join']('/');}(_0x2806de['pathname'],_0x46651b['pathname'])),'/'!==_0x2806de['pathname']['charAt'](0x0)&&_0x1eb283(_0x2806de['protocol'])&&(_0x2806de['pathname']='/'+_0x2806de['pathname']),_0x3383d3(_0x2806de['port'],_0x2806de['protocol'])||(_0x2806de['host']=_0x2806de['hostname'],_0x2806de['port']=''),_0x2806de['username']=_0x2806de['password']='',_0x2806de['auth']&&(~(_0x13a6e5=_0x2806de['auth']['indexOf'](':'))?(_0x2806de['username']=_0x2806de['auth']['slice'](0x0,_0x13a6e5),_0x2806de['username']=encodeURIComponent(decodeURIComponent(_0x2806de['username'])),_0x2806de['password']=_0x2806de['auth']['slice'](_0x13a6e5+0x1),_0x2806de['password']=encodeURIComponent(decodeURIComponent(_0x2806de['password']))):_0x2806de['username']=encodeURIComponent(decodeURIComponent(_0x2806de['auth'])),_0x2806de['auth']=_0x2806de['password']?_0x2806de['username']+':'+_0x2806de['password']:_0x2806de['username']),_0x2806de['origin']='file:'!==_0x2806de['protocol']&&_0x1eb283(_0x2806de['protocol'])&&_0x2806de['host']?_0x2806de['protocol']+'//'+_0x2806de['host']:'null',_0x2806de['href']=_0x2806de['toString']();}return _0x303d48['prototype']={'set':function(_0x15dcc0,_0x494661,_0x30b537){var _0x437278=this;switch(_0x15dcc0){case'query':'string'==typeof _0x494661&&_0x494661['length']&&(_0x494661=(_0x30b537||_0x4606a3['parse'])(_0x494661)),_0x437278[_0x15dcc0]=_0x494661;break;case'port':_0x437278[_0x15dcc0]=_0x494661,_0x3383d3(_0x494661,_0x437278['protocol'])?_0x494661&&(_0x437278['host']=_0x437278['hostname']+':'+_0x494661):(_0x437278['host']=_0x437278['hostname'],_0x437278[_0x15dcc0]='');break;case'hostname':_0x437278[_0x15dcc0]=_0x494661,_0x437278['port']&&(_0x494661+=':'+_0x437278['port']),_0x437278['host']=_0x494661;break;case'host':_0x437278[_0x15dcc0]=_0x494661,_0x4639d3['test'](_0x494661)?(_0x494661=_0x494661['split'](':'),_0x437278['port']=_0x494661['pop'](),_0x437278['hostname']=_0x494661['join'](':')):(_0x437278['hostname']=_0x494661,_0x437278['port']='');break;case'protocol':_0x437278['protocol']=_0x494661['toLowerCase'](),_0x437278['slashes']=!_0x30b537;break;case'pathname':case'hash':if(_0x494661){var _0x242ad3='pathname'===_0x15dcc0?'/':'#';_0x437278[_0x15dcc0]=_0x494661['charAt'](0x0)!==_0x242ad3?_0x242ad3+_0x494661:_0x494661;}else _0x437278[_0x15dcc0]=_0x494661;break;case'username':case'password':_0x437278[_0x15dcc0]=encodeURIComponent(_0x494661);break;case'auth':var _0x4a73c2=_0x494661['indexOf'](':');~_0x4a73c2?(_0x437278['username']=_0x494661['slice'](0x0,_0x4a73c2),_0x437278['username']=encodeURIComponent(decodeURIComponent(_0x437278['username'])),_0x437278['password']=_0x494661['slice'](_0x4a73c2+0x1),_0x437278['password']=encodeURIComponent(decodeURIComponent(_0x437278['password']))):_0x437278['username']=encodeURIComponent(decodeURIComponent(_0x494661));}for(var _0x3e2fa1=0x0;_0x3e2fa1<_0x32f924['length'];_0x3e2fa1++){var _0xfb14f6=_0x32f924[_0x3e2fa1];_0xfb14f6[0x4]&&(_0x437278[_0xfb14f6[0x1]]=_0x437278[_0xfb14f6[0x1]]['toLowerCase']());}return _0x437278['auth']=_0x437278['password']?_0x437278['username']+':'+_0x437278['password']:_0x437278['username'],_0x437278['origin']='file:'!==_0x437278['protocol']&&_0x1eb283(_0x437278['protocol'])&&_0x437278['host']?_0x437278['protocol']+'//'+_0x437278['host']:'null',_0x437278['href']=_0x437278['toString'](),_0x437278;},'toString':function(_0x4ce586){_0x4ce586&&'function'==typeof _0x4ce586||(_0x4ce586=_0x4606a3['stringify']);var _0x311a95,_0x58d04f=this,_0x32d2e2=_0x58d04f['host'],_0x40551a=_0x58d04f['protocol'];_0x40551a&&':'!==_0x40551a['charAt'](_0x40551a['length']-0x1)&&(_0x40551a+=':');var _0x2707e1=_0x40551a+(_0x58d04f['protocol']&&_0x58d04f['slashes']||_0x1eb283(_0x58d04f['protocol'])?'//':'');return _0x58d04f['username']?(_0x2707e1+=_0x58d04f['username'],_0x58d04f['password']&&(_0x2707e1+=':'+_0x58d04f['password']),_0x2707e1+='@'):_0x58d04f['password']?(_0x2707e1+=':'+_0x58d04f['password'],_0x2707e1+='@'):'file:'!==_0x58d04f['protocol']&&_0x1eb283(_0x58d04f['protocol'])&&!_0x32d2e2&&'/'!==_0x58d04f['pathname']&&(_0x2707e1+='@'),(':'===_0x32d2e2[_0x32d2e2['length']-0x1]||_0x4639d3['test'](_0x58d04f['hostname'])&&!_0x58d04f['port'])&&(_0x32d2e2+=':'),_0x2707e1+=_0x32d2e2+_0x58d04f['pathname'],(_0x311a95='object'==typeof _0x58d04f['query']?_0x4ce586(_0x58d04f['query']):_0x58d04f['query'])&&(_0x2707e1+='?'!==_0x311a95['charAt'](0x0)?'?'+_0x311a95:_0x311a95),_0x58d04f['hash']&&(_0x2707e1+=_0x58d04f['hash']),_0x2707e1;}},_0x303d48['extractProtocol']=_0x4062b4,_0x303d48['location']=_0x52f993,_0x303d48['trimLeft']=_0x126b14,_0x303d48['qs']=_0x4606a3,urlParse=_0x303d48;}var urlParseExports=requireUrlParse();const byteToHex=[];for(let e=0x0;e<0x100;++e)byteToHex['push']((e+0x100)['toString'](0x10)['slice'](0x1));function unsafeStringify(_0x3a74f0,_0x45373e=0x0){return(byteToHex[_0x3a74f0[_0x45373e+0x0]]+byteToHex[_0x3a74f0[_0x45373e+0x1]]+byteToHex[_0x3a74f0[_0x45373e+0x2]]+byteToHex[_0x3a74f0[_0x45373e+0x3]]+'-'+byteToHex[_0x3a74f0[_0x45373e+0x4]]+byteToHex[_0x3a74f0[_0x45373e+0x5]]+'-'+byteToHex[_0x3a74f0[_0x45373e+0x6]]+byteToHex[_0x3a74f0[_0x45373e+0x7]]+'-'+byteToHex[_0x3a74f0[_0x45373e+0x8]]+byteToHex[_0x3a74f0[_0x45373e+0x9]]+'-'+byteToHex[_0x3a74f0[_0x45373e+0xa]]+byteToHex[_0x3a74f0[_0x45373e+0xb]]+byteToHex[_0x3a74f0[_0x45373e+0xc]]+byteToHex[_0x3a74f0[_0x45373e+0xd]]+byteToHex[_0x3a74f0[_0x45373e+0xe]]+byteToHex[_0x3a74f0[_0x45373e+0xf]])['toLowerCase']();}const rnds8=new Uint8Array(0x10);function rng(){return crypto['getRandomValues'](rnds8);}function v4(_0x3fe761,_0x2a0b08,_0x28b9c0){return crypto['randomUUID']?crypto['randomUUID']():_v4(_0x3fe761);}function _v4(_0x3b36e6,_0x2939cb,_0x483f5e){const _0x2004f0=(_0x3b36e6=_0x3b36e6||{})['random']??_0x3b36e6['rng']?.()??rng();if(_0x2004f0['length']<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');return _0x2004f0[0x6]=0xf&_0x2004f0[0x6]|0x40,_0x2004f0[0x8]=0x3f&_0x2004f0[0x8]|0x80,unsafeStringify(_0x2004f0);}class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x130181){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x116d45){super();}static['fromJSON'](_0x512163){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class GetUserMessage extends Message{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x781f25){super(),this['id']=_0x781f25;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x28e63c){return new GetUserMessage(_0x28e63c['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x46fd34){super(),this['attributes']=_0x46fd34;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x2d6e21=>({'key':_0x2d6e21,'value':JSON['stringify'](this['attributes'][_0x2d6e21])}))};}static['fromJSON'](_0x1d630e){const _0x257ecd=_0x1d630e['attributes']['reduce']((_0x440fcc,_0x5c443b)=>(_0x440fcc[_0x5c443b['key']]=_0x5c443b['value']?JSON['parse'](_0x5c443b['value']):null,_0x440fcc),{});return new GetUserResponse(_0x257ecd);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x150291=minimalExports['Reader'],_0x278790=minimalExports['Writer'],_0x4a15b3=minimalExports['util'],_0x2dfa82=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x2dfa82['StringStringPacketDataMessage']=(function(){function _0x51fa36(_0x4436ff){if(_0x4436ff){for(var _0x215bc2=Object['keys'](_0x4436ff),_0xa8ee04=0x0;_0xa8ee04<_0x215bc2['length'];++_0xa8ee04)null!=_0x4436ff[_0x215bc2[_0xa8ee04]]&&(this[_0x215bc2[_0xa8ee04]]=_0x4436ff[_0x215bc2[_0xa8ee04]]);}}return _0x51fa36['prototype']['data']='',_0x51fa36['prototype']['data1']='',_0x51fa36['create']=function(_0x54a7f3){return new _0x51fa36(_0x54a7f3);},_0x51fa36['encode']=function(_0x436d80,_0x45ffae){return _0x45ffae||(_0x45ffae=_0x278790['create']()),null!=_0x436d80['data']&&Object['hasOwnProperty']['call'](_0x436d80,'data')&&_0x45ffae['uint32'](0xa)['string'](_0x436d80['data']),null!=_0x436d80['data1']&&Object['hasOwnProperty']['call'](_0x436d80,'data1')&&_0x45ffae['uint32'](0x12)['string'](_0x436d80['data1']),_0x45ffae;},_0x51fa36['encodeDelimited']=function(_0x356afe,_0x47e118){return this['encode'](_0x356afe,_0x47e118)['ldelim']();},_0x51fa36['decode']=function(_0x49a55f,_0x53cfe3,_0x5de1bb){_0x49a55f instanceof _0x150291||(_0x49a55f=_0x150291['create'](_0x49a55f));for(var _0x5ca8d9=void 0x0===_0x53cfe3?_0x49a55f['len']:_0x49a55f['pos']+_0x53cfe3,_0x2cccca=new _0x2dfa82['StringStringPacketDataMessage']();_0x49a55f['pos']<_0x5ca8d9;){var _0x1ff98e=_0x49a55f['uint32']();if(_0x1ff98e===_0x5de1bb)break;switch(_0x1ff98e>>>0x3){case 0x1:_0x2cccca['data']=_0x49a55f['string']();break;case 0x2:_0x2cccca['data1']=_0x49a55f['string']();break;default:_0x49a55f['skipType'](0x7&_0x1ff98e);}}return _0x2cccca;},_0x51fa36['decodeDelimited']=function(_0x153dbe){return _0x153dbe instanceof _0x150291||(_0x153dbe=new _0x150291(_0x153dbe)),this['decode'](_0x153dbe,_0x153dbe['uint32']());},_0x51fa36['verify']=function(_0x37f7e7){return'object'!=typeof _0x37f7e7||null===_0x37f7e7?'object\x20expected':null!=_0x37f7e7['data']&&_0x37f7e7['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x37f7e7['data'])?'data:\x20string\x20expected':null!=_0x37f7e7['data1']&&_0x37f7e7['hasOwnProperty']('data1')&&!_0x4a15b3['isString'](_0x37f7e7['data1'])?'data1:\x20string\x20expected':null;},_0x51fa36['fromObject']=function(_0x2288f5){if(_0x2288f5 instanceof _0x2dfa82['StringStringPacketDataMessage'])return _0x2288f5;var _0x475f85=new _0x2dfa82['StringStringPacketDataMessage']();return null!=_0x2288f5['data']&&(_0x475f85['data']=String(_0x2288f5['data'])),null!=_0x2288f5['data1']&&(_0x475f85['data1']=String(_0x2288f5['data1'])),_0x475f85;},_0x51fa36['toObject']=function(_0x1f26eb,_0x18f0cb){_0x18f0cb||(_0x18f0cb={});var _0x5223ea={};return _0x18f0cb['defaults']&&(_0x5223ea['data']='',_0x5223ea['data1']=''),null!=_0x1f26eb['data']&&_0x1f26eb['hasOwnProperty']('data')&&(_0x5223ea['data']=_0x1f26eb['data']),null!=_0x1f26eb['data1']&&_0x1f26eb['hasOwnProperty']('data1')&&(_0x5223ea['data1']=_0x1f26eb['data1']),_0x5223ea;},_0x51fa36['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x51fa36['getTypeUrl']=function(_0x5a657a){return void 0x0===_0x5a657a&&(_0x5a657a='type.googleapis.com'),_0x5a657a+'/StringStringPacketDataMessage';},_0x51fa36;}()),_0x2dfa82['StringObjectPacketDataMessage']=(function(){function _0x287bf9(_0x16b4ee){if(_0x16b4ee){for(var _0xde4b9d=Object['keys'](_0x16b4ee),_0x3653fd=0x0;_0x3653fd<_0xde4b9d['length'];++_0x3653fd)null!=_0x16b4ee[_0xde4b9d[_0x3653fd]]&&(this[_0xde4b9d[_0x3653fd]]=_0x16b4ee[_0xde4b9d[_0x3653fd]]);}}return _0x287bf9['prototype']['data']='',_0x287bf9['prototype']['data1']='',_0x287bf9['create']=function(_0x571f0a){return new _0x287bf9(_0x571f0a);},_0x287bf9['encode']=function(_0x232708,_0x47dd45){return _0x47dd45||(_0x47dd45=_0x278790['create']()),null!=_0x232708['data']&&Object['hasOwnProperty']['call'](_0x232708,'data')&&_0x47dd45['uint32'](0xa)['string'](_0x232708['data']),null!=_0x232708['data1']&&Object['hasOwnProperty']['call'](_0x232708,'data1')&&_0x47dd45['uint32'](0x12)['string'](_0x232708['data1']),_0x47dd45;},_0x287bf9['encodeDelimited']=function(_0x4fd5d0,_0x3612e9){return this['encode'](_0x4fd5d0,_0x3612e9)['ldelim']();},_0x287bf9['decode']=function(_0x186a5c,_0x5e29b3,_0x4e50fb){_0x186a5c instanceof _0x150291||(_0x186a5c=_0x150291['create'](_0x186a5c));for(var _0x41c2fa=void 0x0===_0x5e29b3?_0x186a5c['len']:_0x186a5c['pos']+_0x5e29b3,_0x2a2af6=new _0x2dfa82['StringObjectPacketDataMessage']();_0x186a5c['pos']<_0x41c2fa;){var _0x35afcf=_0x186a5c['uint32']();if(_0x35afcf===_0x4e50fb)break;switch(_0x35afcf>>>0x3){case 0x1:_0x2a2af6['data']=_0x186a5c['string']();break;case 0x2:_0x2a2af6['data1']=_0x186a5c['string']();break;default:_0x186a5c['skipType'](0x7&_0x35afcf);}}return _0x2a2af6;},_0x287bf9['decodeDelimited']=function(_0x4b8e90){return _0x4b8e90 instanceof _0x150291||(_0x4b8e90=new _0x150291(_0x4b8e90)),this['decode'](_0x4b8e90,_0x4b8e90['uint32']());},_0x287bf9['verify']=function(_0x4efb5f){return'object'!=typeof _0x4efb5f||null===_0x4efb5f?'object\x20expected':null!=_0x4efb5f['data']&&_0x4efb5f['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x4efb5f['data'])?'data:\x20string\x20expected':null!=_0x4efb5f['data1']&&_0x4efb5f['hasOwnProperty']('data1')&&!_0x4a15b3['isString'](_0x4efb5f['data1'])?'data1:\x20string\x20expected':null;},_0x287bf9['fromObject']=function(_0xf95f97){if(_0xf95f97 instanceof _0x2dfa82['StringObjectPacketDataMessage'])return _0xf95f97;var _0x49671b=new _0x2dfa82['StringObjectPacketDataMessage']();return null!=_0xf95f97['data']&&(_0x49671b['data']=String(_0xf95f97['data'])),null!=_0xf95f97['data1']&&(_0x49671b['data1']=String(_0xf95f97['data1'])),_0x49671b;},_0x287bf9['toObject']=function(_0xffb380,_0x54a4df){_0x54a4df||(_0x54a4df={});var _0x399ffe={};return _0x54a4df['defaults']&&(_0x399ffe['data']='',_0x399ffe['data1']=''),null!=_0xffb380['data']&&_0xffb380['hasOwnProperty']('data')&&(_0x399ffe['data']=_0xffb380['data']),null!=_0xffb380['data1']&&_0xffb380['hasOwnProperty']('data1')&&(_0x399ffe['data1']=_0xffb380['data1']),_0x399ffe;},_0x287bf9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x287bf9['getTypeUrl']=function(_0x353f73){return void 0x0===_0x353f73&&(_0x353f73='type.googleapis.com'),_0x353f73+'/StringObjectPacketDataMessage';},_0x287bf9;}()),_0x2dfa82['StringNumberPacketDataMessage']=(function(){function _0x3aa963(_0x4421c1){if(_0x4421c1){for(var _0x328c9e=Object['keys'](_0x4421c1),_0xd07573=0x0;_0xd07573<_0x328c9e['length'];++_0xd07573)null!=_0x4421c1[_0x328c9e[_0xd07573]]&&(this[_0x328c9e[_0xd07573]]=_0x4421c1[_0x328c9e[_0xd07573]]);}}return _0x3aa963['prototype']['data']='',_0x3aa963['prototype']['data1']=0x0,_0x3aa963['create']=function(_0x440043){return new _0x3aa963(_0x440043);},_0x3aa963['encode']=function(_0x558765,_0x15bb08){return _0x15bb08||(_0x15bb08=_0x278790['create']()),null!=_0x558765['data']&&Object['hasOwnProperty']['call'](_0x558765,'data')&&_0x15bb08['uint32'](0xa)['string'](_0x558765['data']),null!=_0x558765['data1']&&Object['hasOwnProperty']['call'](_0x558765,'data1')&&_0x15bb08['uint32'](0x10)['uint32'](_0x558765['data1']),_0x15bb08;},_0x3aa963['encodeDelimited']=function(_0x1e9c06,_0x24f191){return this['encode'](_0x1e9c06,_0x24f191)['ldelim']();},_0x3aa963['decode']=function(_0x229773,_0x2002bf,_0x4e1a11){_0x229773 instanceof _0x150291||(_0x229773=_0x150291['create'](_0x229773));for(var _0x2d1409=void 0x0===_0x2002bf?_0x229773['len']:_0x229773['pos']+_0x2002bf,_0xc11df9=new _0x2dfa82['StringNumberPacketDataMessage']();_0x229773['pos']<_0x2d1409;){var _0x52c633=_0x229773['uint32']();if(_0x52c633===_0x4e1a11)break;switch(_0x52c633>>>0x3){case 0x1:_0xc11df9['data']=_0x229773['string']();break;case 0x2:_0xc11df9['data1']=_0x229773['uint32']();break;default:_0x229773['skipType'](0x7&_0x52c633);}}return _0xc11df9;},_0x3aa963['decodeDelimited']=function(_0x5d8bcf){return _0x5d8bcf instanceof _0x150291||(_0x5d8bcf=new _0x150291(_0x5d8bcf)),this['decode'](_0x5d8bcf,_0x5d8bcf['uint32']());},_0x3aa963['verify']=function(_0x58a5a8){return'object'!=typeof _0x58a5a8||null===_0x58a5a8?'object\x20expected':null!=_0x58a5a8['data']&&_0x58a5a8['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x58a5a8['data'])?'data:\x20string\x20expected':null!=_0x58a5a8['data1']&&_0x58a5a8['hasOwnProperty']('data1')&&!_0x4a15b3['isInteger'](_0x58a5a8['data1'])?'data1:\x20integer\x20expected':null;},_0x3aa963['fromObject']=function(_0x1aad3d){if(_0x1aad3d instanceof _0x2dfa82['StringNumberPacketDataMessage'])return _0x1aad3d;var _0x3ff221=new _0x2dfa82['StringNumberPacketDataMessage']();return null!=_0x1aad3d['data']&&(_0x3ff221['data']=String(_0x1aad3d['data'])),null!=_0x1aad3d['data1']&&(_0x3ff221['data1']=_0x1aad3d['data1']>>>0x0),_0x3ff221;},_0x3aa963['toObject']=function(_0x377402,_0x36e4d3){_0x36e4d3||(_0x36e4d3={});var _0x532e1c={};return _0x36e4d3['defaults']&&(_0x532e1c['data']='',_0x532e1c['data1']=0x0),null!=_0x377402['data']&&_0x377402['hasOwnProperty']('data')&&(_0x532e1c['data']=_0x377402['data']),null!=_0x377402['data1']&&_0x377402['hasOwnProperty']('data1')&&(_0x532e1c['data1']=_0x377402['data1']),_0x532e1c;},_0x3aa963['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3aa963['getTypeUrl']=function(_0x5c5295){return void 0x0===_0x5c5295&&(_0x5c5295='type.googleapis.com'),_0x5c5295+'/StringNumberPacketDataMessage';},_0x3aa963;}()),_0x2dfa82['StringBytesPacketDataMessage']=(function(){function _0x39e7d9(_0x1a5d36){if(_0x1a5d36){for(var _0x454705=Object['keys'](_0x1a5d36),_0x711599=0x0;_0x711599<_0x454705['length'];++_0x711599)null!=_0x1a5d36[_0x454705[_0x711599]]&&(this[_0x454705[_0x711599]]=_0x1a5d36[_0x454705[_0x711599]]);}}return _0x39e7d9['prototype']['data']='',_0x39e7d9['prototype']['data1']=_0x4a15b3['newBuffer']([]),_0x39e7d9['create']=function(_0x278ae2){return new _0x39e7d9(_0x278ae2);},_0x39e7d9['encode']=function(_0x10eff9,_0x5571dd){return _0x5571dd||(_0x5571dd=_0x278790['create']()),null!=_0x10eff9['data']&&Object['hasOwnProperty']['call'](_0x10eff9,'data')&&_0x5571dd['uint32'](0xa)['string'](_0x10eff9['data']),null!=_0x10eff9['data1']&&Object['hasOwnProperty']['call'](_0x10eff9,'data1')&&_0x5571dd['uint32'](0x12)['bytes'](_0x10eff9['data1']),_0x5571dd;},_0x39e7d9['encodeDelimited']=function(_0x3d0aa5,_0x28494f){return this['encode'](_0x3d0aa5,_0x28494f)['ldelim']();},_0x39e7d9['decode']=function(_0x3f842c,_0x58a100,_0x68a042){_0x3f842c instanceof _0x150291||(_0x3f842c=_0x150291['create'](_0x3f842c));for(var _0x55d1ac=void 0x0===_0x58a100?_0x3f842c['len']:_0x3f842c['pos']+_0x58a100,_0x4f5e13=new _0x2dfa82['StringBytesPacketDataMessage']();_0x3f842c['pos']<_0x55d1ac;){var _0x36134e=_0x3f842c['uint32']();if(_0x36134e===_0x68a042)break;switch(_0x36134e>>>0x3){case 0x1:_0x4f5e13['data']=_0x3f842c['string']();break;case 0x2:_0x4f5e13['data1']=_0x3f842c['bytes']();break;default:_0x3f842c['skipType'](0x7&_0x36134e);}}return _0x4f5e13;},_0x39e7d9['decodeDelimited']=function(_0x3ddd34){return _0x3ddd34 instanceof _0x150291||(_0x3ddd34=new _0x150291(_0x3ddd34)),this['decode'](_0x3ddd34,_0x3ddd34['uint32']());},_0x39e7d9['verify']=function(_0x289437){return'object'!=typeof _0x289437||null===_0x289437?'object\x20expected':null!=_0x289437['data']&&_0x289437['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x289437['data'])?'data:\x20string\x20expected':null!=_0x289437['data1']&&_0x289437['hasOwnProperty']('data1')&&!(_0x289437['data1']&&'number'==typeof _0x289437['data1']['length']||_0x4a15b3['isString'](_0x289437['data1']))?'data1:\x20buffer\x20expected':null;},_0x39e7d9['fromObject']=function(_0x23ac6f){if(_0x23ac6f instanceof _0x2dfa82['StringBytesPacketDataMessage'])return _0x23ac6f;var _0x44845a=new _0x2dfa82['StringBytesPacketDataMessage']();return null!=_0x23ac6f['data']&&(_0x44845a['data']=String(_0x23ac6f['data'])),null!=_0x23ac6f['data1']&&('string'==typeof _0x23ac6f['data1']?_0x4a15b3['base64']['decode'](_0x23ac6f['data1'],_0x44845a['data1']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x23ac6f['data1'])),0x0):_0x23ac6f['data1']['length']>=0x0&&(_0x44845a['data1']=_0x23ac6f['data1'])),_0x44845a;},_0x39e7d9['toObject']=function(_0x17af2c,_0x4dd86d){_0x4dd86d||(_0x4dd86d={});var _0x3677ee={};return _0x4dd86d['defaults']&&(_0x3677ee['data']='',_0x4dd86d['bytes']===String?_0x3677ee['data1']='':(_0x3677ee['data1']=[],_0x4dd86d['bytes']!==Array&&(_0x3677ee['data1']=_0x4a15b3['newBuffer'](_0x3677ee['data1'])))),null!=_0x17af2c['data']&&_0x17af2c['hasOwnProperty']('data')&&(_0x3677ee['data']=_0x17af2c['data']),null!=_0x17af2c['data1']&&_0x17af2c['hasOwnProperty']('data1')&&(_0x3677ee['data1']=_0x4dd86d['bytes']===String?_0x4a15b3['base64']['encode'](_0x17af2c['data1'],0x0,_0x17af2c['data1']['length']):_0x4dd86d['bytes']===Array?Array['prototype']['slice']['call'](_0x17af2c['data1']):_0x17af2c['data1']),_0x3677ee;},_0x39e7d9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x39e7d9['getTypeUrl']=function(_0x40e014){return void 0x0===_0x40e014&&(_0x40e014='type.googleapis.com'),_0x40e014+'/StringBytesPacketDataMessage';},_0x39e7d9;}()),_0x2dfa82['PacketOptionsMessage']=(function(){function _0x584517(_0x52940e){if(this['rooms']=[],this['except']=[],_0x52940e){for(var _0x23b433=Object['keys'](_0x52940e),_0x47239b=0x0;_0x47239b<_0x23b433['length'];++_0x47239b)null!=_0x52940e[_0x23b433[_0x47239b]]&&(this[_0x23b433[_0x47239b]]=_0x52940e[_0x23b433[_0x47239b]]);}}return _0x584517['prototype']['flags']='',_0x584517['prototype']['rooms']=_0x4a15b3['emptyArray'],_0x584517['prototype']['except']=_0x4a15b3['emptyArray'],_0x584517['create']=function(_0x35b642){return new _0x584517(_0x35b642);},_0x584517['encode']=function(_0xbed864,_0x23b844){if(_0x23b844||(_0x23b844=_0x278790['create']()),null!=_0xbed864['flags']&&Object['hasOwnProperty']['call'](_0xbed864,'flags')&&_0x23b844['uint32'](0xa)['string'](_0xbed864['flags']),null!=_0xbed864['rooms']&&_0xbed864['rooms']['length']){for(var _0x111b58=0x0;_0x111b58<_0xbed864['rooms']['length'];++_0x111b58)_0x23b844['uint32'](0x12)['string'](_0xbed864['rooms'][_0x111b58]);}if(null!=_0xbed864['except']&&_0xbed864['except']['length']){for(_0x111b58=0x0;_0x111b58<_0xbed864['except']['length'];++_0x111b58)_0x23b844['uint32'](0x1a)['string'](_0xbed864['except'][_0x111b58]);}return _0x23b844;},_0x584517['encodeDelimited']=function(_0xbea2e4,_0x2b61d0){return this['encode'](_0xbea2e4,_0x2b61d0)['ldelim']();},_0x584517['decode']=function(_0x2d1833,_0x2cf07b,_0x1cdd78){_0x2d1833 instanceof _0x150291||(_0x2d1833=_0x150291['create'](_0x2d1833));for(var _0x430ac8=void 0x0===_0x2cf07b?_0x2d1833['len']:_0x2d1833['pos']+_0x2cf07b,_0x5e0efd=new _0x2dfa82['PacketOptionsMessage']();_0x2d1833['pos']<_0x430ac8;){var _0x5cd3a9=_0x2d1833['uint32']();if(_0x5cd3a9===_0x1cdd78)break;switch(_0x5cd3a9>>>0x3){case 0x1:_0x5e0efd['flags']=_0x2d1833['string']();break;case 0x2:_0x5e0efd['rooms']&&_0x5e0efd['rooms']['length']||(_0x5e0efd['rooms']=[]),_0x5e0efd['rooms']['push'](_0x2d1833['string']());break;case 0x3:_0x5e0efd['except']&&_0x5e0efd['except']['length']||(_0x5e0efd['except']=[]),_0x5e0efd['except']['push'](_0x2d1833['string']());break;default:_0x2d1833['skipType'](0x7&_0x5cd3a9);}}return _0x5e0efd;},_0x584517['decodeDelimited']=function(_0x58b5d8){return _0x58b5d8 instanceof _0x150291||(_0x58b5d8=new _0x150291(_0x58b5d8)),this['decode'](_0x58b5d8,_0x58b5d8['uint32']());},_0x584517['verify']=function(_0x5dd218){if('object'!=typeof _0x5dd218||null===_0x5dd218)return'object\x20expected';if(null!=_0x5dd218['flags']&&_0x5dd218['hasOwnProperty']('flags')&&!_0x4a15b3['isString'](_0x5dd218['flags']))return'flags:\x20string\x20expected';if(null!=_0x5dd218['rooms']&&_0x5dd218['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x5dd218['rooms']))return'rooms:\x20array\x20expected';for(var _0x2b30ac=0x0;_0x2b30ac<_0x5dd218['rooms']['length'];++_0x2b30ac)if(!_0x4a15b3['isString'](_0x5dd218['rooms'][_0x2b30ac]))return'rooms:\x20string[]\x20expected';}if(null!=_0x5dd218['except']&&_0x5dd218['hasOwnProperty']('except')){if(!Array['isArray'](_0x5dd218['except']))return'except:\x20array\x20expected';for(_0x2b30ac=0x0;_0x2b30ac<_0x5dd218['except']['length'];++_0x2b30ac)if(!_0x4a15b3['isString'](_0x5dd218['except'][_0x2b30ac]))return'except:\x20string[]\x20expected';}return null;},_0x584517['fromObject']=function(_0x221515){if(_0x221515 instanceof _0x2dfa82['PacketOptionsMessage'])return _0x221515;var _0x1ce65d=new _0x2dfa82['PacketOptionsMessage']();if(null!=_0x221515['flags']&&(_0x1ce65d['flags']=String(_0x221515['flags'])),_0x221515['rooms']){if(!Array['isArray'](_0x221515['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x1ce65d['rooms']=[];for(var _0x45a340=0x0;_0x45a340<_0x221515['rooms']['length'];++_0x45a340)_0x1ce65d['rooms'][_0x45a340]=String(_0x221515['rooms'][_0x45a340]);}if(_0x221515['except']){if(!Array['isArray'](_0x221515['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x1ce65d['except']=[],_0x45a340=0x0;_0x45a340<_0x221515['except']['length'];++_0x45a340)_0x1ce65d['except'][_0x45a340]=String(_0x221515['except'][_0x45a340]);}return _0x1ce65d;},_0x584517['toObject']=function(_0x15fa53,_0x522d9b){_0x522d9b||(_0x522d9b={});var _0x1b2d0d={};if((_0x522d9b['arrays']||_0x522d9b['defaults'])&&(_0x1b2d0d['rooms']=[],_0x1b2d0d['except']=[]),_0x522d9b['defaults']&&(_0x1b2d0d['flags']=''),null!=_0x15fa53['flags']&&_0x15fa53['hasOwnProperty']('flags')&&(_0x1b2d0d['flags']=_0x15fa53['flags']),_0x15fa53['rooms']&&_0x15fa53['rooms']['length']){_0x1b2d0d['rooms']=[];for(var _0x1b85e7=0x0;_0x1b85e7<_0x15fa53['rooms']['length'];++_0x1b85e7)_0x1b2d0d['rooms'][_0x1b85e7]=_0x15fa53['rooms'][_0x1b85e7];}if(_0x15fa53['except']&&_0x15fa53['except']['length']){for(_0x1b2d0d['except']=[],_0x1b85e7=0x0;_0x1b85e7<_0x15fa53['except']['length'];++_0x1b85e7)_0x1b2d0d['except'][_0x1b85e7]=_0x15fa53['except'][_0x1b85e7];}return _0x1b2d0d;},_0x584517['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x584517['getTypeUrl']=function(_0x5e9833){return void 0x0===_0x5e9833&&(_0x5e9833='type.googleapis.com'),_0x5e9833+'/PacketOptionsMessage';},_0x584517;}()),_0x2dfa82['PacketMessage']=(function(){function _0x26eadf(_0x324b47){if(_0x324b47){for(var _0x55deba=Object['keys'](_0x324b47),_0x17bb3=0x0;_0x17bb3<_0x55deba['length'];++_0x17bb3)null!=_0x324b47[_0x55deba[_0x17bb3]]&&(this[_0x55deba[_0x17bb3]]=_0x324b47[_0x55deba[_0x17bb3]]);}}return _0x26eadf['prototype']['type']=0x0,_0x26eadf['prototype']['id']=0x0,_0x26eadf['prototype']['nsp']='',_0x26eadf['prototype']['data']=_0x4a15b3['newBuffer']([]),_0x26eadf['prototype']['options']=_0x4a15b3['newBuffer']([]),_0x26eadf['create']=function(_0x430362){return new _0x26eadf(_0x430362);},_0x26eadf['encode']=function(_0x15a71d,_0x2eb1bf){return _0x2eb1bf||(_0x2eb1bf=_0x278790['create']()),null!=_0x15a71d['type']&&Object['hasOwnProperty']['call'](_0x15a71d,'type')&&_0x2eb1bf['uint32'](0x8)['uint32'](_0x15a71d['type']),null!=_0x15a71d['id']&&Object['hasOwnProperty']['call'](_0x15a71d,'id')&&_0x2eb1bf['uint32'](0x10)['uint32'](_0x15a71d['id']),null!=_0x15a71d['nsp']&&Object['hasOwnProperty']['call'](_0x15a71d,'nsp')&&_0x2eb1bf['uint32'](0x1a)['string'](_0x15a71d['nsp']),null!=_0x15a71d['data']&&Object['hasOwnProperty']['call'](_0x15a71d,'data')&&_0x2eb1bf['uint32'](0x22)['bytes'](_0x15a71d['data']),null!=_0x15a71d['options']&&Object['hasOwnProperty']['call'](_0x15a71d,'options')&&_0x2eb1bf['uint32'](0x2a)['bytes'](_0x15a71d['options']),_0x2eb1bf;},_0x26eadf['encodeDelimited']=function(_0x2fe77f,_0x3a8ae7){return this['encode'](_0x2fe77f,_0x3a8ae7)['ldelim']();},_0x26eadf['decode']=function(_0x581865,_0x2202dd,_0x15c29c){_0x581865 instanceof _0x150291||(_0x581865=_0x150291['create'](_0x581865));for(var _0x2abbdf=void 0x0===_0x2202dd?_0x581865['len']:_0x581865['pos']+_0x2202dd,_0x361844=new _0x2dfa82['PacketMessage']();_0x581865['pos']<_0x2abbdf;){var _0x5c0738=_0x581865['uint32']();if(_0x5c0738===_0x15c29c)break;switch(_0x5c0738>>>0x3){case 0x1:_0x361844['type']=_0x581865['uint32']();break;case 0x2:_0x361844['id']=_0x581865['uint32']();break;case 0x3:_0x361844['nsp']=_0x581865['string']();break;case 0x4:_0x361844['data']=_0x581865['bytes']();break;case 0x5:_0x361844['options']=_0x581865['bytes']();break;default:_0x581865['skipType'](0x7&_0x5c0738);}}return _0x361844;},_0x26eadf['decodeDelimited']=function(_0x2a5c3d){return _0x2a5c3d instanceof _0x150291||(_0x2a5c3d=new _0x150291(_0x2a5c3d)),this['decode'](_0x2a5c3d,_0x2a5c3d['uint32']());},_0x26eadf['verify']=function(_0x2acb70){return'object'!=typeof _0x2acb70||null===_0x2acb70?'object\x20expected':null!=_0x2acb70['type']&&_0x2acb70['hasOwnProperty']('type')&&!_0x4a15b3['isInteger'](_0x2acb70['type'])?'type:\x20integer\x20expected':null!=_0x2acb70['id']&&_0x2acb70['hasOwnProperty']('id')&&!_0x4a15b3['isInteger'](_0x2acb70['id'])?'id:\x20integer\x20expected':null!=_0x2acb70['nsp']&&_0x2acb70['hasOwnProperty']('nsp')&&!_0x4a15b3['isString'](_0x2acb70['nsp'])?'nsp:\x20string\x20expected':null!=_0x2acb70['data']&&_0x2acb70['hasOwnProperty']('data')&&!(_0x2acb70['data']&&'number'==typeof _0x2acb70['data']['length']||_0x4a15b3['isString'](_0x2acb70['data']))?'data:\x20buffer\x20expected':null!=_0x2acb70['options']&&_0x2acb70['hasOwnProperty']('options')&&!(_0x2acb70['options']&&'number'==typeof _0x2acb70['options']['length']||_0x4a15b3['isString'](_0x2acb70['options']))?'options:\x20buffer\x20expected':null;},_0x26eadf['fromObject']=function(_0xc77363){if(_0xc77363 instanceof _0x2dfa82['PacketMessage'])return _0xc77363;var _0x548290=new _0x2dfa82['PacketMessage']();return null!=_0xc77363['type']&&(_0x548290['type']=_0xc77363['type']>>>0x0),null!=_0xc77363['id']&&(_0x548290['id']=_0xc77363['id']>>>0x0),null!=_0xc77363['nsp']&&(_0x548290['nsp']=String(_0xc77363['nsp'])),null!=_0xc77363['data']&&('string'==typeof _0xc77363['data']?_0x4a15b3['base64']['decode'](_0xc77363['data'],_0x548290['data']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0xc77363['data'])),0x0):_0xc77363['data']['length']>=0x0&&(_0x548290['data']=_0xc77363['data'])),null!=_0xc77363['options']&&('string'==typeof _0xc77363['options']?_0x4a15b3['base64']['decode'](_0xc77363['options'],_0x548290['options']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0xc77363['options'])),0x0):_0xc77363['options']['length']>=0x0&&(_0x548290['options']=_0xc77363['options'])),_0x548290;},_0x26eadf['toObject']=function(_0x4f96db,_0x1292ba){_0x1292ba||(_0x1292ba={});var _0x59faea={};return _0x1292ba['defaults']&&(_0x59faea['type']=0x0,_0x59faea['id']=0x0,_0x59faea['nsp']='',_0x1292ba['bytes']===String?_0x59faea['data']='':(_0x59faea['data']=[],_0x1292ba['bytes']!==Array&&(_0x59faea['data']=_0x4a15b3['newBuffer'](_0x59faea['data']))),_0x1292ba['bytes']===String?_0x59faea['options']='':(_0x59faea['options']=[],_0x1292ba['bytes']!==Array&&(_0x59faea['options']=_0x4a15b3['newBuffer'](_0x59faea['options'])))),null!=_0x4f96db['type']&&_0x4f96db['hasOwnProperty']('type')&&(_0x59faea['type']=_0x4f96db['type']),null!=_0x4f96db['id']&&_0x4f96db['hasOwnProperty']('id')&&(_0x59faea['id']=_0x4f96db['id']),null!=_0x4f96db['nsp']&&_0x4f96db['hasOwnProperty']('nsp')&&(_0x59faea['nsp']=_0x4f96db['nsp']),null!=_0x4f96db['data']&&_0x4f96db['hasOwnProperty']('data')&&(_0x59faea['data']=_0x1292ba['bytes']===String?_0x4a15b3['base64']['encode'](_0x4f96db['data'],0x0,_0x4f96db['data']['length']):_0x1292ba['bytes']===Array?Array['prototype']['slice']['call'](_0x4f96db['data']):_0x4f96db['data']),null!=_0x4f96db['options']&&_0x4f96db['hasOwnProperty']('options')&&(_0x59faea['options']=_0x1292ba['bytes']===String?_0x4a15b3['base64']['encode'](_0x4f96db['options'],0x0,_0x4f96db['options']['length']):_0x1292ba['bytes']===Array?Array['prototype']['slice']['call'](_0x4f96db['options']):_0x4f96db['options']),_0x59faea;},_0x26eadf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x26eadf['getTypeUrl']=function(_0x16c73b){return void 0x0===_0x16c73b&&(_0x16c73b='type.googleapis.com'),_0x16c73b+'/PacketMessage';},_0x26eadf;}()),_0x2dfa82['ObjectObjectPacketDataMessage']=(function(){function _0x4fb9bf(_0x261742){if(_0x261742){for(var _0x1b9f97=Object['keys'](_0x261742),_0x1caa8b=0x0;_0x1caa8b<_0x1b9f97['length'];++_0x1caa8b)null!=_0x261742[_0x1b9f97[_0x1caa8b]]&&(this[_0x1b9f97[_0x1caa8b]]=_0x261742[_0x1b9f97[_0x1caa8b]]);}}return _0x4fb9bf['prototype']['data']='',_0x4fb9bf['prototype']['data1']='',_0x4fb9bf['create']=function(_0x4b9a71){return new _0x4fb9bf(_0x4b9a71);},_0x4fb9bf['encode']=function(_0x501e2c,_0x3007bd){return _0x3007bd||(_0x3007bd=_0x278790['create']()),null!=_0x501e2c['data']&&Object['hasOwnProperty']['call'](_0x501e2c,'data')&&_0x3007bd['uint32'](0xa)['string'](_0x501e2c['data']),null!=_0x501e2c['data1']&&Object['hasOwnProperty']['call'](_0x501e2c,'data1')&&_0x3007bd['uint32'](0x12)['string'](_0x501e2c['data1']),_0x3007bd;},_0x4fb9bf['encodeDelimited']=function(_0x63677c,_0x4e713b){return this['encode'](_0x63677c,_0x4e713b)['ldelim']();},_0x4fb9bf['decode']=function(_0x15fa8a,_0x253618,_0xb3299b){_0x15fa8a instanceof _0x150291||(_0x15fa8a=_0x150291['create'](_0x15fa8a));for(var _0x4695a7=void 0x0===_0x253618?_0x15fa8a['len']:_0x15fa8a['pos']+_0x253618,_0x2c7e0c=new _0x2dfa82['ObjectObjectPacketDataMessage']();_0x15fa8a['pos']<_0x4695a7;){var _0x4fa9ba=_0x15fa8a['uint32']();if(_0x4fa9ba===_0xb3299b)break;switch(_0x4fa9ba>>>0x3){case 0x1:_0x2c7e0c['data']=_0x15fa8a['string']();break;case 0x2:_0x2c7e0c['data1']=_0x15fa8a['string']();break;default:_0x15fa8a['skipType'](0x7&_0x4fa9ba);}}return _0x2c7e0c;},_0x4fb9bf['decodeDelimited']=function(_0x3402ec){return _0x3402ec instanceof _0x150291||(_0x3402ec=new _0x150291(_0x3402ec)),this['decode'](_0x3402ec,_0x3402ec['uint32']());},_0x4fb9bf['verify']=function(_0x2b0289){return'object'!=typeof _0x2b0289||null===_0x2b0289?'object\x20expected':null!=_0x2b0289['data']&&_0x2b0289['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x2b0289['data'])?'data:\x20string\x20expected':null!=_0x2b0289['data1']&&_0x2b0289['hasOwnProperty']('data1')&&!_0x4a15b3['isString'](_0x2b0289['data1'])?'data1:\x20string\x20expected':null;},_0x4fb9bf['fromObject']=function(_0x1b085d){if(_0x1b085d instanceof _0x2dfa82['ObjectObjectPacketDataMessage'])return _0x1b085d;var _0xac4604=new _0x2dfa82['ObjectObjectPacketDataMessage']();return null!=_0x1b085d['data']&&(_0xac4604['data']=String(_0x1b085d['data'])),null!=_0x1b085d['data1']&&(_0xac4604['data1']=String(_0x1b085d['data1'])),_0xac4604;},_0x4fb9bf['toObject']=function(_0x59036e,_0x3b61a7){_0x3b61a7||(_0x3b61a7={});var _0x4b8ea4={};return _0x3b61a7['defaults']&&(_0x4b8ea4['data']='',_0x4b8ea4['data1']=''),null!=_0x59036e['data']&&_0x59036e['hasOwnProperty']('data')&&(_0x4b8ea4['data']=_0x59036e['data']),null!=_0x59036e['data1']&&_0x59036e['hasOwnProperty']('data1')&&(_0x4b8ea4['data1']=_0x59036e['data1']),_0x4b8ea4;},_0x4fb9bf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4fb9bf['getTypeUrl']=function(_0x236c5f){return void 0x0===_0x236c5f&&(_0x236c5f='type.googleapis.com'),_0x236c5f+'/ObjectObjectPacketDataMessage';},_0x4fb9bf;}()),_0x2dfa82['ObjectBufferPacketDataMessage']=(function(){function _0x4dd040(_0x4f194d){if(_0x4f194d){for(var _0x163c19=Object['keys'](_0x4f194d),_0x5b82f8=0x0;_0x5b82f8<_0x163c19['length'];++_0x5b82f8)null!=_0x4f194d[_0x163c19[_0x5b82f8]]&&(this[_0x163c19[_0x5b82f8]]=_0x4f194d[_0x163c19[_0x5b82f8]]);}}return _0x4dd040['prototype']['data']='',_0x4dd040['prototype']['data1']=_0x4a15b3['newBuffer']([]),_0x4dd040['create']=function(_0x4a6e42){return new _0x4dd040(_0x4a6e42);},_0x4dd040['encode']=function(_0x254fc9,_0x24a9d8){return _0x24a9d8||(_0x24a9d8=_0x278790['create']()),null!=_0x254fc9['data']&&Object['hasOwnProperty']['call'](_0x254fc9,'data')&&_0x24a9d8['uint32'](0xa)['string'](_0x254fc9['data']),null!=_0x254fc9['data1']&&Object['hasOwnProperty']['call'](_0x254fc9,'data1')&&_0x24a9d8['uint32'](0x12)['bytes'](_0x254fc9['data1']),_0x24a9d8;},_0x4dd040['encodeDelimited']=function(_0x4926ae,_0x274079){return this['encode'](_0x4926ae,_0x274079)['ldelim']();},_0x4dd040['decode']=function(_0x28f5e7,_0x42ce2d,_0xc5f0db){_0x28f5e7 instanceof _0x150291||(_0x28f5e7=_0x150291['create'](_0x28f5e7));for(var _0x154a11=void 0x0===_0x42ce2d?_0x28f5e7['len']:_0x28f5e7['pos']+_0x42ce2d,_0x1caf93=new _0x2dfa82['ObjectBufferPacketDataMessage']();_0x28f5e7['pos']<_0x154a11;){var _0x4cef3f=_0x28f5e7['uint32']();if(_0x4cef3f===_0xc5f0db)break;switch(_0x4cef3f>>>0x3){case 0x1:_0x1caf93['data']=_0x28f5e7['string']();break;case 0x2:_0x1caf93['data1']=_0x28f5e7['bytes']();break;default:_0x28f5e7['skipType'](0x7&_0x4cef3f);}}return _0x1caf93;},_0x4dd040['decodeDelimited']=function(_0x1e752a){return _0x1e752a instanceof _0x150291||(_0x1e752a=new _0x150291(_0x1e752a)),this['decode'](_0x1e752a,_0x1e752a['uint32']());},_0x4dd040['verify']=function(_0x3bd43d){return'object'!=typeof _0x3bd43d||null===_0x3bd43d?'object\x20expected':null!=_0x3bd43d['data']&&_0x3bd43d['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x3bd43d['data'])?'data:\x20string\x20expected':null!=_0x3bd43d['data1']&&_0x3bd43d['hasOwnProperty']('data1')&&!(_0x3bd43d['data1']&&'number'==typeof _0x3bd43d['data1']['length']||_0x4a15b3['isString'](_0x3bd43d['data1']))?'data1:\x20buffer\x20expected':null;},_0x4dd040['fromObject']=function(_0x5d179b){if(_0x5d179b instanceof _0x2dfa82['ObjectBufferPacketDataMessage'])return _0x5d179b;var _0xe71491=new _0x2dfa82['ObjectBufferPacketDataMessage']();return null!=_0x5d179b['data']&&(_0xe71491['data']=String(_0x5d179b['data'])),null!=_0x5d179b['data1']&&('string'==typeof _0x5d179b['data1']?_0x4a15b3['base64']['decode'](_0x5d179b['data1'],_0xe71491['data1']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x5d179b['data1'])),0x0):_0x5d179b['data1']['length']>=0x0&&(_0xe71491['data1']=_0x5d179b['data1'])),_0xe71491;},_0x4dd040['toObject']=function(_0x294466,_0x2cdd22){_0x2cdd22||(_0x2cdd22={});var _0x6ed446={};return _0x2cdd22['defaults']&&(_0x6ed446['data']='',_0x2cdd22['bytes']===String?_0x6ed446['data1']='':(_0x6ed446['data1']=[],_0x2cdd22['bytes']!==Array&&(_0x6ed446['data1']=_0x4a15b3['newBuffer'](_0x6ed446['data1'])))),null!=_0x294466['data']&&_0x294466['hasOwnProperty']('data')&&(_0x6ed446['data']=_0x294466['data']),null!=_0x294466['data1']&&_0x294466['hasOwnProperty']('data1')&&(_0x6ed446['data1']=_0x2cdd22['bytes']===String?_0x4a15b3['base64']['encode'](_0x294466['data1'],0x0,_0x294466['data1']['length']):_0x2cdd22['bytes']===Array?Array['prototype']['slice']['call'](_0x294466['data1']):_0x294466['data1']),_0x6ed446;},_0x4dd040['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4dd040['getTypeUrl']=function(_0x2e5a0c){return void 0x0===_0x2e5a0c&&(_0x2e5a0c='type.googleapis.com'),_0x2e5a0c+'/ObjectBufferPacketDataMessage';},_0x4dd040;}()),_0x2dfa82['NumberStringPacketDataMessage']=(function(){function _0x534063(_0x362070){if(_0x362070){for(var _0x7a8425=Object['keys'](_0x362070),_0xea81eb=0x0;_0xea81eb<_0x7a8425['length'];++_0xea81eb)null!=_0x362070[_0x7a8425[_0xea81eb]]&&(this[_0x7a8425[_0xea81eb]]=_0x362070[_0x7a8425[_0xea81eb]]);}}return _0x534063['prototype']['data']=0x0,_0x534063['prototype']['data1']='',_0x534063['create']=function(_0x5a964b){return new _0x534063(_0x5a964b);},_0x534063['encode']=function(_0x2d8bec,_0x28de97){return _0x28de97||(_0x28de97=_0x278790['create']()),null!=_0x2d8bec['data']&&Object['hasOwnProperty']['call'](_0x2d8bec,'data')&&_0x28de97['uint32'](0x8)['uint32'](_0x2d8bec['data']),null!=_0x2d8bec['data1']&&Object['hasOwnProperty']['call'](_0x2d8bec,'data1')&&_0x28de97['uint32'](0x12)['string'](_0x2d8bec['data1']),_0x28de97;},_0x534063['encodeDelimited']=function(_0x2d89f5,_0x78e676){return this['encode'](_0x2d89f5,_0x78e676)['ldelim']();},_0x534063['decode']=function(_0x2e8848,_0x4a849f,_0x2e7bee){_0x2e8848 instanceof _0x150291||(_0x2e8848=_0x150291['create'](_0x2e8848));for(var _0x2d8fe8=void 0x0===_0x4a849f?_0x2e8848['len']:_0x2e8848['pos']+_0x4a849f,_0x4081e8=new _0x2dfa82['NumberStringPacketDataMessage']();_0x2e8848['pos']<_0x2d8fe8;){var _0x3e34c1=_0x2e8848['uint32']();if(_0x3e34c1===_0x2e7bee)break;switch(_0x3e34c1>>>0x3){case 0x1:_0x4081e8['data']=_0x2e8848['uint32']();break;case 0x2:_0x4081e8['data1']=_0x2e8848['string']();break;default:_0x2e8848['skipType'](0x7&_0x3e34c1);}}return _0x4081e8;},_0x534063['decodeDelimited']=function(_0x325b40){return _0x325b40 instanceof _0x150291||(_0x325b40=new _0x150291(_0x325b40)),this['decode'](_0x325b40,_0x325b40['uint32']());},_0x534063['verify']=function(_0x16a14a){return'object'!=typeof _0x16a14a||null===_0x16a14a?'object\x20expected':null!=_0x16a14a['data']&&_0x16a14a['hasOwnProperty']('data')&&!_0x4a15b3['isInteger'](_0x16a14a['data'])?'data:\x20integer\x20expected':null!=_0x16a14a['data1']&&_0x16a14a['hasOwnProperty']('data1')&&!_0x4a15b3['isString'](_0x16a14a['data1'])?'data1:\x20string\x20expected':null;},_0x534063['fromObject']=function(_0x528eb5){if(_0x528eb5 instanceof _0x2dfa82['NumberStringPacketDataMessage'])return _0x528eb5;var _0x1f715e=new _0x2dfa82['NumberStringPacketDataMessage']();return null!=_0x528eb5['data']&&(_0x1f715e['data']=_0x528eb5['data']>>>0x0),null!=_0x528eb5['data1']&&(_0x1f715e['data1']=String(_0x528eb5['data1'])),_0x1f715e;},_0x534063['toObject']=function(_0x6931d,_0x5c13b4){_0x5c13b4||(_0x5c13b4={});var _0x111d8b={};return _0x5c13b4['defaults']&&(_0x111d8b['data']=0x0,_0x111d8b['data1']=''),null!=_0x6931d['data']&&_0x6931d['hasOwnProperty']('data')&&(_0x111d8b['data']=_0x6931d['data']),null!=_0x6931d['data1']&&_0x6931d['hasOwnProperty']('data1')&&(_0x111d8b['data1']=_0x6931d['data1']),_0x111d8b;},_0x534063['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x534063['getTypeUrl']=function(_0x13718b){return void 0x0===_0x13718b&&(_0x13718b='type.googleapis.com'),_0x13718b+'/NumberStringPacketDataMessage';},_0x534063;}()),_0x2dfa82['NumberObjectPacketDataMessage']=(function(){function _0x513e37(_0x24876e){if(_0x24876e){for(var _0xd2dc6c=Object['keys'](_0x24876e),_0x2082a3=0x0;_0x2082a3<_0xd2dc6c['length'];++_0x2082a3)null!=_0x24876e[_0xd2dc6c[_0x2082a3]]&&(this[_0xd2dc6c[_0x2082a3]]=_0x24876e[_0xd2dc6c[_0x2082a3]]);}}return _0x513e37['prototype']['data']=0x0,_0x513e37['prototype']['data1']='',_0x513e37['create']=function(_0x4f425c){return new _0x513e37(_0x4f425c);},_0x513e37['encode']=function(_0x2a0ef7,_0x2d33e1){return _0x2d33e1||(_0x2d33e1=_0x278790['create']()),null!=_0x2a0ef7['data']&&Object['hasOwnProperty']['call'](_0x2a0ef7,'data')&&_0x2d33e1['uint32'](0x8)['uint32'](_0x2a0ef7['data']),null!=_0x2a0ef7['data1']&&Object['hasOwnProperty']['call'](_0x2a0ef7,'data1')&&_0x2d33e1['uint32'](0x12)['string'](_0x2a0ef7['data1']),_0x2d33e1;},_0x513e37['encodeDelimited']=function(_0x23ae4d,_0x362535){return this['encode'](_0x23ae4d,_0x362535)['ldelim']();},_0x513e37['decode']=function(_0x3bbd60,_0x250dd5,_0x5353bc){_0x3bbd60 instanceof _0x150291||(_0x3bbd60=_0x150291['create'](_0x3bbd60));for(var _0x56edde=void 0x0===_0x250dd5?_0x3bbd60['len']:_0x3bbd60['pos']+_0x250dd5,_0x15c205=new _0x2dfa82['NumberObjectPacketDataMessage']();_0x3bbd60['pos']<_0x56edde;){var _0x1ff3a0=_0x3bbd60['uint32']();if(_0x1ff3a0===_0x5353bc)break;switch(_0x1ff3a0>>>0x3){case 0x1:_0x15c205['data']=_0x3bbd60['uint32']();break;case 0x2:_0x15c205['data1']=_0x3bbd60['string']();break;default:_0x3bbd60['skipType'](0x7&_0x1ff3a0);}}return _0x15c205;},_0x513e37['decodeDelimited']=function(_0x732767){return _0x732767 instanceof _0x150291||(_0x732767=new _0x150291(_0x732767)),this['decode'](_0x732767,_0x732767['uint32']());},_0x513e37['verify']=function(_0x27db07){return'object'!=typeof _0x27db07||null===_0x27db07?'object\x20expected':null!=_0x27db07['data']&&_0x27db07['hasOwnProperty']('data')&&!_0x4a15b3['isInteger'](_0x27db07['data'])?'data:\x20integer\x20expected':null!=_0x27db07['data1']&&_0x27db07['hasOwnProperty']('data1')&&!_0x4a15b3['isString'](_0x27db07['data1'])?'data1:\x20string\x20expected':null;},_0x513e37['fromObject']=function(_0x5bc43c){if(_0x5bc43c instanceof _0x2dfa82['NumberObjectPacketDataMessage'])return _0x5bc43c;var _0x48ed7d=new _0x2dfa82['NumberObjectPacketDataMessage']();return null!=_0x5bc43c['data']&&(_0x48ed7d['data']=_0x5bc43c['data']>>>0x0),null!=_0x5bc43c['data1']&&(_0x48ed7d['data1']=String(_0x5bc43c['data1'])),_0x48ed7d;},_0x513e37['toObject']=function(_0x2fddad,_0x3165f6){_0x3165f6||(_0x3165f6={});var _0x4df86a={};return _0x3165f6['defaults']&&(_0x4df86a['data']=0x0,_0x4df86a['data1']=''),null!=_0x2fddad['data']&&_0x2fddad['hasOwnProperty']('data')&&(_0x4df86a['data']=_0x2fddad['data']),null!=_0x2fddad['data1']&&_0x2fddad['hasOwnProperty']('data1')&&(_0x4df86a['data1']=_0x2fddad['data1']),_0x4df86a;},_0x513e37['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x513e37['getTypeUrl']=function(_0x2d7ef9){return void 0x0===_0x2d7ef9&&(_0x2d7ef9='type.googleapis.com'),_0x2d7ef9+'/NumberObjectPacketDataMessage';},_0x513e37;}()),_0x2dfa82['NumberNumberPacketDataMessage']=(function(){function _0x510337(_0x45924d){if(_0x45924d){for(var _0x459202=Object['keys'](_0x45924d),_0x5884c2=0x0;_0x5884c2<_0x459202['length'];++_0x5884c2)null!=_0x45924d[_0x459202[_0x5884c2]]&&(this[_0x459202[_0x5884c2]]=_0x45924d[_0x459202[_0x5884c2]]);}}return _0x510337['prototype']['data']=0x0,_0x510337['prototype']['data1']=0x0,_0x510337['create']=function(_0x216be2){return new _0x510337(_0x216be2);},_0x510337['encode']=function(_0x2d8a4e,_0x2d009d){return _0x2d009d||(_0x2d009d=_0x278790['create']()),null!=_0x2d8a4e['data']&&Object['hasOwnProperty']['call'](_0x2d8a4e,'data')&&_0x2d009d['uint32'](0x8)['uint32'](_0x2d8a4e['data']),null!=_0x2d8a4e['data1']&&Object['hasOwnProperty']['call'](_0x2d8a4e,'data1')&&_0x2d009d['uint32'](0x10)['uint32'](_0x2d8a4e['data1']),_0x2d009d;},_0x510337['encodeDelimited']=function(_0x51c5cd,_0x4805d9){return this['encode'](_0x51c5cd,_0x4805d9)['ldelim']();},_0x510337['decode']=function(_0x42eab7,_0x7fc974,_0x1dfeeb){_0x42eab7 instanceof _0x150291||(_0x42eab7=_0x150291['create'](_0x42eab7));for(var _0x2274bc=void 0x0===_0x7fc974?_0x42eab7['len']:_0x42eab7['pos']+_0x7fc974,_0x193b42=new _0x2dfa82['NumberNumberPacketDataMessage']();_0x42eab7['pos']<_0x2274bc;){var _0x1b7f5f=_0x42eab7['uint32']();if(_0x1b7f5f===_0x1dfeeb)break;switch(_0x1b7f5f>>>0x3){case 0x1:_0x193b42['data']=_0x42eab7['uint32']();break;case 0x2:_0x193b42['data1']=_0x42eab7['uint32']();break;default:_0x42eab7['skipType'](0x7&_0x1b7f5f);}}return _0x193b42;},_0x510337['decodeDelimited']=function(_0x599eed){return _0x599eed instanceof _0x150291||(_0x599eed=new _0x150291(_0x599eed)),this['decode'](_0x599eed,_0x599eed['uint32']());},_0x510337['verify']=function(_0x2d6873){return'object'!=typeof _0x2d6873||null===_0x2d6873?'object\x20expected':null!=_0x2d6873['data']&&_0x2d6873['hasOwnProperty']('data')&&!_0x4a15b3['isInteger'](_0x2d6873['data'])?'data:\x20integer\x20expected':null!=_0x2d6873['data1']&&_0x2d6873['hasOwnProperty']('data1')&&!_0x4a15b3['isInteger'](_0x2d6873['data1'])?'data1:\x20integer\x20expected':null;},_0x510337['fromObject']=function(_0x331a23){if(_0x331a23 instanceof _0x2dfa82['NumberNumberPacketDataMessage'])return _0x331a23;var _0x202581=new _0x2dfa82['NumberNumberPacketDataMessage']();return null!=_0x331a23['data']&&(_0x202581['data']=_0x331a23['data']>>>0x0),null!=_0x331a23['data1']&&(_0x202581['data1']=_0x331a23['data1']>>>0x0),_0x202581;},_0x510337['toObject']=function(_0x29f5f5,_0x48b906){_0x48b906||(_0x48b906={});var _0x34e8b1={};return _0x48b906['defaults']&&(_0x34e8b1['data']=0x0,_0x34e8b1['data1']=0x0),null!=_0x29f5f5['data']&&_0x29f5f5['hasOwnProperty']('data')&&(_0x34e8b1['data']=_0x29f5f5['data']),null!=_0x29f5f5['data1']&&_0x29f5f5['hasOwnProperty']('data1')&&(_0x34e8b1['data1']=_0x29f5f5['data1']),_0x34e8b1;},_0x510337['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x510337['getTypeUrl']=function(_0x19f83d){return void 0x0===_0x19f83d&&(_0x19f83d='type.googleapis.com'),_0x19f83d+'/NumberNumberPacketDataMessage';},_0x510337;}()),_0x2dfa82['NumberBytesPacketDataMessage']=(function(){function _0x444882(_0x2ec751){if(_0x2ec751){for(var _0x40d5ca=Object['keys'](_0x2ec751),_0x21d683=0x0;_0x21d683<_0x40d5ca['length'];++_0x21d683)null!=_0x2ec751[_0x40d5ca[_0x21d683]]&&(this[_0x40d5ca[_0x21d683]]=_0x2ec751[_0x40d5ca[_0x21d683]]);}}return _0x444882['prototype']['data']=0x0,_0x444882['prototype']['data1']=_0x4a15b3['newBuffer']([]),_0x444882['create']=function(_0x516120){return new _0x444882(_0x516120);},_0x444882['encode']=function(_0x4be7a4,_0x58a92b){return _0x58a92b||(_0x58a92b=_0x278790['create']()),null!=_0x4be7a4['data']&&Object['hasOwnProperty']['call'](_0x4be7a4,'data')&&_0x58a92b['uint32'](0x8)['uint32'](_0x4be7a4['data']),null!=_0x4be7a4['data1']&&Object['hasOwnProperty']['call'](_0x4be7a4,'data1')&&_0x58a92b['uint32'](0x12)['bytes'](_0x4be7a4['data1']),_0x58a92b;},_0x444882['encodeDelimited']=function(_0x38122e,_0x195bc7){return this['encode'](_0x38122e,_0x195bc7)['ldelim']();},_0x444882['decode']=function(_0x1a7caf,_0x1793ca,_0x496486){_0x1a7caf instanceof _0x150291||(_0x1a7caf=_0x150291['create'](_0x1a7caf));for(var _0x4d8cd2=void 0x0===_0x1793ca?_0x1a7caf['len']:_0x1a7caf['pos']+_0x1793ca,_0x93722e=new _0x2dfa82['NumberBytesPacketDataMessage']();_0x1a7caf['pos']<_0x4d8cd2;){var _0x4fc8df=_0x1a7caf['uint32']();if(_0x4fc8df===_0x496486)break;switch(_0x4fc8df>>>0x3){case 0x1:_0x93722e['data']=_0x1a7caf['uint32']();break;case 0x2:_0x93722e['data1']=_0x1a7caf['bytes']();break;default:_0x1a7caf['skipType'](0x7&_0x4fc8df);}}return _0x93722e;},_0x444882['decodeDelimited']=function(_0x9549ab){return _0x9549ab instanceof _0x150291||(_0x9549ab=new _0x150291(_0x9549ab)),this['decode'](_0x9549ab,_0x9549ab['uint32']());},_0x444882['verify']=function(_0x3bad79){return'object'!=typeof _0x3bad79||null===_0x3bad79?'object\x20expected':null!=_0x3bad79['data']&&_0x3bad79['hasOwnProperty']('data')&&!_0x4a15b3['isInteger'](_0x3bad79['data'])?'data:\x20integer\x20expected':null!=_0x3bad79['data1']&&_0x3bad79['hasOwnProperty']('data1')&&!(_0x3bad79['data1']&&'number'==typeof _0x3bad79['data1']['length']||_0x4a15b3['isString'](_0x3bad79['data1']))?'data1:\x20buffer\x20expected':null;},_0x444882['fromObject']=function(_0x2c13bf){if(_0x2c13bf instanceof _0x2dfa82['NumberBytesPacketDataMessage'])return _0x2c13bf;var _0xdccae1=new _0x2dfa82['NumberBytesPacketDataMessage']();return null!=_0x2c13bf['data']&&(_0xdccae1['data']=_0x2c13bf['data']>>>0x0),null!=_0x2c13bf['data1']&&('string'==typeof _0x2c13bf['data1']?_0x4a15b3['base64']['decode'](_0x2c13bf['data1'],_0xdccae1['data1']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x2c13bf['data1'])),0x0):_0x2c13bf['data1']['length']>=0x0&&(_0xdccae1['data1']=_0x2c13bf['data1'])),_0xdccae1;},_0x444882['toObject']=function(_0x558ed6,_0x2dbf72){_0x2dbf72||(_0x2dbf72={});var _0x493cac={};return _0x2dbf72['defaults']&&(_0x493cac['data']=0x0,_0x2dbf72['bytes']===String?_0x493cac['data1']='':(_0x493cac['data1']=[],_0x2dbf72['bytes']!==Array&&(_0x493cac['data1']=_0x4a15b3['newBuffer'](_0x493cac['data1'])))),null!=_0x558ed6['data']&&_0x558ed6['hasOwnProperty']('data')&&(_0x493cac['data']=_0x558ed6['data']),null!=_0x558ed6['data1']&&_0x558ed6['hasOwnProperty']('data1')&&(_0x493cac['data1']=_0x2dbf72['bytes']===String?_0x4a15b3['base64']['encode'](_0x558ed6['data1'],0x0,_0x558ed6['data1']['length']):_0x2dbf72['bytes']===Array?Array['prototype']['slice']['call'](_0x558ed6['data1']):_0x558ed6['data1']),_0x493cac;},_0x444882['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x444882['getTypeUrl']=function(_0x92e047){return void 0x0===_0x92e047&&(_0x92e047='type.googleapis.com'),_0x92e047+'/NumberBytesPacketDataMessage';},_0x444882;}()),_0x2dfa82['BytesBytesPacketDataMessage']=(function(){function _0x36848c(_0x35df69){if(_0x35df69){for(var _0x4d9b1a=Object['keys'](_0x35df69),_0x43daa5=0x0;_0x43daa5<_0x4d9b1a['length'];++_0x43daa5)null!=_0x35df69[_0x4d9b1a[_0x43daa5]]&&(this[_0x4d9b1a[_0x43daa5]]=_0x35df69[_0x4d9b1a[_0x43daa5]]);}}return _0x36848c['prototype']['data']=_0x4a15b3['newBuffer']([]),_0x36848c['prototype']['data1']=_0x4a15b3['newBuffer']([]),_0x36848c['create']=function(_0x325941){return new _0x36848c(_0x325941);},_0x36848c['encode']=function(_0x5f1ef6,_0x44e13c){return _0x44e13c||(_0x44e13c=_0x278790['create']()),null!=_0x5f1ef6['data']&&Object['hasOwnProperty']['call'](_0x5f1ef6,'data')&&_0x44e13c['uint32'](0xa)['bytes'](_0x5f1ef6['data']),null!=_0x5f1ef6['data1']&&Object['hasOwnProperty']['call'](_0x5f1ef6,'data1')&&_0x44e13c['uint32'](0x12)['bytes'](_0x5f1ef6['data1']),_0x44e13c;},_0x36848c['encodeDelimited']=function(_0x12c96a,_0x1dcb23){return this['encode'](_0x12c96a,_0x1dcb23)['ldelim']();},_0x36848c['decode']=function(_0x21f38f,_0x20b319,_0xb3de8e){_0x21f38f instanceof _0x150291||(_0x21f38f=_0x150291['create'](_0x21f38f));for(var _0xe59512=void 0x0===_0x20b319?_0x21f38f['len']:_0x21f38f['pos']+_0x20b319,_0x145e6a=new _0x2dfa82['BytesBytesPacketDataMessage']();_0x21f38f['pos']<_0xe59512;){var _0x39e1a0=_0x21f38f['uint32']();if(_0x39e1a0===_0xb3de8e)break;switch(_0x39e1a0>>>0x3){case 0x1:_0x145e6a['data']=_0x21f38f['bytes']();break;case 0x2:_0x145e6a['data1']=_0x21f38f['bytes']();break;default:_0x21f38f['skipType'](0x7&_0x39e1a0);}}return _0x145e6a;},_0x36848c['decodeDelimited']=function(_0x27ffcf){return _0x27ffcf instanceof _0x150291||(_0x27ffcf=new _0x150291(_0x27ffcf)),this['decode'](_0x27ffcf,_0x27ffcf['uint32']());},_0x36848c['verify']=function(_0x2e645e){return'object'!=typeof _0x2e645e||null===_0x2e645e?'object\x20expected':null!=_0x2e645e['data']&&_0x2e645e['hasOwnProperty']('data')&&!(_0x2e645e['data']&&'number'==typeof _0x2e645e['data']['length']||_0x4a15b3['isString'](_0x2e645e['data']))?'data:\x20buffer\x20expected':null!=_0x2e645e['data1']&&_0x2e645e['hasOwnProperty']('data1')&&!(_0x2e645e['data1']&&'number'==typeof _0x2e645e['data1']['length']||_0x4a15b3['isString'](_0x2e645e['data1']))?'data1:\x20buffer\x20expected':null;},_0x36848c['fromObject']=function(_0x4466ae){if(_0x4466ae instanceof _0x2dfa82['BytesBytesPacketDataMessage'])return _0x4466ae;var _0x5bb9bb=new _0x2dfa82['BytesBytesPacketDataMessage']();return null!=_0x4466ae['data']&&('string'==typeof _0x4466ae['data']?_0x4a15b3['base64']['decode'](_0x4466ae['data'],_0x5bb9bb['data']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x4466ae['data'])),0x0):_0x4466ae['data']['length']>=0x0&&(_0x5bb9bb['data']=_0x4466ae['data'])),null!=_0x4466ae['data1']&&('string'==typeof _0x4466ae['data1']?_0x4a15b3['base64']['decode'](_0x4466ae['data1'],_0x5bb9bb['data1']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x4466ae['data1'])),0x0):_0x4466ae['data1']['length']>=0x0&&(_0x5bb9bb['data1']=_0x4466ae['data1'])),_0x5bb9bb;},_0x36848c['toObject']=function(_0x5c9632,_0x564453){_0x564453||(_0x564453={});var _0x11b177={};return _0x564453['defaults']&&(_0x564453['bytes']===String?_0x11b177['data']='':(_0x11b177['data']=[],_0x564453['bytes']!==Array&&(_0x11b177['data']=_0x4a15b3['newBuffer'](_0x11b177['data']))),_0x564453['bytes']===String?_0x11b177['data1']='':(_0x11b177['data1']=[],_0x564453['bytes']!==Array&&(_0x11b177['data1']=_0x4a15b3['newBuffer'](_0x11b177['data1'])))),null!=_0x5c9632['data']&&_0x5c9632['hasOwnProperty']('data')&&(_0x11b177['data']=_0x564453['bytes']===String?_0x4a15b3['base64']['encode'](_0x5c9632['data'],0x0,_0x5c9632['data']['length']):_0x564453['bytes']===Array?Array['prototype']['slice']['call'](_0x5c9632['data']):_0x5c9632['data']),null!=_0x5c9632['data1']&&_0x5c9632['hasOwnProperty']('data1')&&(_0x11b177['data1']=_0x564453['bytes']===String?_0x4a15b3['base64']['encode'](_0x5c9632['data1'],0x0,_0x5c9632['data1']['length']):_0x564453['bytes']===Array?Array['prototype']['slice']['call'](_0x5c9632['data1']):_0x5c9632['data1']),_0x11b177;},_0x36848c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x36848c['getTypeUrl']=function(_0x51be40){return void 0x0===_0x51be40&&(_0x51be40='type.googleapis.com'),_0x51be40+'/BytesBytesPacketDataMessage';},_0x36848c;}()),_0x2dfa82['ChannelMessage']=(function(){function _0x1a2211(_0x42468d){if(_0x42468d){for(var _0x41e1c=Object['keys'](_0x42468d),_0x535b74=0x0;_0x535b74<_0x41e1c['length'];++_0x535b74)null!=_0x42468d[_0x41e1c[_0x535b74]]&&(this[_0x41e1c[_0x535b74]]=_0x42468d[_0x41e1c[_0x535b74]]);}}return _0x1a2211['prototype']['type']=0x0,_0x1a2211['prototype']['socketId']='',_0x1a2211['prototype']['data']=_0x4a15b3['newBuffer']([]),_0x1a2211['create']=function(_0x372f04){return new _0x1a2211(_0x372f04);},_0x1a2211['encode']=function(_0x4610ba,_0x1ce67f){return _0x1ce67f||(_0x1ce67f=_0x278790['create']()),null!=_0x4610ba['type']&&Object['hasOwnProperty']['call'](_0x4610ba,'type')&&_0x1ce67f['uint32'](0x8)['uint32'](_0x4610ba['type']),null!=_0x4610ba['socketId']&&Object['hasOwnProperty']['call'](_0x4610ba,'socketId')&&_0x1ce67f['uint32'](0x12)['string'](_0x4610ba['socketId']),null!=_0x4610ba['data']&&Object['hasOwnProperty']['call'](_0x4610ba,'data')&&_0x1ce67f['uint32'](0x1a)['bytes'](_0x4610ba['data']),_0x1ce67f;},_0x1a2211['encodeDelimited']=function(_0x49d457,_0x4ed93b){return this['encode'](_0x49d457,_0x4ed93b)['ldelim']();},_0x1a2211['decode']=function(_0x135057,_0x1ad9d9,_0x27e994){_0x135057 instanceof _0x150291||(_0x135057=_0x150291['create'](_0x135057));for(var _0x56e5e7=void 0x0===_0x1ad9d9?_0x135057['len']:_0x135057['pos']+_0x1ad9d9,_0x507135=new _0x2dfa82['ChannelMessage']();_0x135057['pos']<_0x56e5e7;){var _0x548dfd=_0x135057['uint32']();if(_0x548dfd===_0x27e994)break;switch(_0x548dfd>>>0x3){case 0x1:_0x507135['type']=_0x135057['uint32']();break;case 0x2:_0x507135['socketId']=_0x135057['string']();break;case 0x3:_0x507135['data']=_0x135057['bytes']();break;default:_0x135057['skipType'](0x7&_0x548dfd);}}return _0x507135;},_0x1a2211['decodeDelimited']=function(_0x1ce4f3){return _0x1ce4f3 instanceof _0x150291||(_0x1ce4f3=new _0x150291(_0x1ce4f3)),this['decode'](_0x1ce4f3,_0x1ce4f3['uint32']());},_0x1a2211['verify']=function(_0x2942e4){return'object'!=typeof _0x2942e4||null===_0x2942e4?'object\x20expected':null!=_0x2942e4['type']&&_0x2942e4['hasOwnProperty']('type')&&!_0x4a15b3['isInteger'](_0x2942e4['type'])?'type:\x20integer\x20expected':null!=_0x2942e4['socketId']&&_0x2942e4['hasOwnProperty']('socketId')&&!_0x4a15b3['isString'](_0x2942e4['socketId'])?'socketId:\x20string\x20expected':null!=_0x2942e4['data']&&_0x2942e4['hasOwnProperty']('data')&&!(_0x2942e4['data']&&'number'==typeof _0x2942e4['data']['length']||_0x4a15b3['isString'](_0x2942e4['data']))?'data:\x20buffer\x20expected':null;},_0x1a2211['fromObject']=function(_0x3b6d97){if(_0x3b6d97 instanceof _0x2dfa82['ChannelMessage'])return _0x3b6d97;var _0x3ad459=new _0x2dfa82['ChannelMessage']();return null!=_0x3b6d97['type']&&(_0x3ad459['type']=_0x3b6d97['type']>>>0x0),null!=_0x3b6d97['socketId']&&(_0x3ad459['socketId']=String(_0x3b6d97['socketId'])),null!=_0x3b6d97['data']&&('string'==typeof _0x3b6d97['data']?_0x4a15b3['base64']['decode'](_0x3b6d97['data'],_0x3ad459['data']=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x3b6d97['data'])),0x0):_0x3b6d97['data']['length']>=0x0&&(_0x3ad459['data']=_0x3b6d97['data'])),_0x3ad459;},_0x1a2211['toObject']=function(_0x2e55f6,_0x35963c){_0x35963c||(_0x35963c={});var _0x5b1e8c={};return _0x35963c['defaults']&&(_0x5b1e8c['type']=0x0,_0x5b1e8c['socketId']='',_0x35963c['bytes']===String?_0x5b1e8c['data']='':(_0x5b1e8c['data']=[],_0x35963c['bytes']!==Array&&(_0x5b1e8c['data']=_0x4a15b3['newBuffer'](_0x5b1e8c['data'])))),null!=_0x2e55f6['type']&&_0x2e55f6['hasOwnProperty']('type')&&(_0x5b1e8c['type']=_0x2e55f6['type']),null!=_0x2e55f6['socketId']&&_0x2e55f6['hasOwnProperty']('socketId')&&(_0x5b1e8c['socketId']=_0x2e55f6['socketId']),null!=_0x2e55f6['data']&&_0x2e55f6['hasOwnProperty']('data')&&(_0x5b1e8c['data']=_0x35963c['bytes']===String?_0x4a15b3['base64']['encode'](_0x2e55f6['data'],0x0,_0x2e55f6['data']['length']):_0x35963c['bytes']===Array?Array['prototype']['slice']['call'](_0x2e55f6['data']):_0x2e55f6['data']),_0x5b1e8c;},_0x1a2211['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a2211['getTypeUrl']=function(_0x1c3db5){return void 0x0===_0x1c3db5&&(_0x1c3db5='type.googleapis.com'),_0x1c3db5+'/ChannelMessage';},_0x1a2211;}()),_0x2dfa82['GetUserResponse']=(function(){function _0x52ef2c(_0x235327){if(this['attributes']=[],_0x235327){for(var _0xc45a35=Object['keys'](_0x235327),_0x113e7c=0x0;_0x113e7c<_0xc45a35['length'];++_0x113e7c)null!=_0x235327[_0xc45a35[_0x113e7c]]&&(this[_0xc45a35[_0x113e7c]]=_0x235327[_0xc45a35[_0x113e7c]]);}}return _0x52ef2c['prototype']['attributes']=_0x4a15b3['emptyArray'],_0x52ef2c['create']=function(_0x54786f){return new _0x52ef2c(_0x54786f);},_0x52ef2c['encode']=function(_0x50962c,_0x5e0c1b){if(_0x5e0c1b||(_0x5e0c1b=_0x278790['create']()),null!=_0x50962c['attributes']&&_0x50962c['attributes']['length']){for(var _0x3e2298=0x0;_0x3e2298<_0x50962c['attributes']['length'];++_0x3e2298)_0x2dfa82['KeyValueDescriptor']['encode'](_0x50962c['attributes'][_0x3e2298],_0x5e0c1b['uint32'](0xa)['fork']())['ldelim']();}return _0x5e0c1b;},_0x52ef2c['encodeDelimited']=function(_0x234de0,_0x1670f5){return this['encode'](_0x234de0,_0x1670f5)['ldelim']();},_0x52ef2c['decode']=function(_0x259a53,_0x4482eb,_0xb9c78e){_0x259a53 instanceof _0x150291||(_0x259a53=_0x150291['create'](_0x259a53));for(var _0x598b9a=void 0x0===_0x4482eb?_0x259a53['len']:_0x259a53['pos']+_0x4482eb,_0x330476=new _0x2dfa82['GetUserResponse']();_0x259a53['pos']<_0x598b9a;){var _0x38da3e=_0x259a53['uint32']();if(_0x38da3e===_0xb9c78e)break;_0x38da3e>>>0x3==0x1?(_0x330476['attributes']&&_0x330476['attributes']['length']||(_0x330476['attributes']=[]),_0x330476['attributes']['push'](_0x2dfa82['KeyValueDescriptor']['decode'](_0x259a53,_0x259a53['uint32']()))):_0x259a53['skipType'](0x7&_0x38da3e);}return _0x330476;},_0x52ef2c['decodeDelimited']=function(_0x5320d4){return _0x5320d4 instanceof _0x150291||(_0x5320d4=new _0x150291(_0x5320d4)),this['decode'](_0x5320d4,_0x5320d4['uint32']());},_0x52ef2c['verify']=function(_0x23b513){if('object'!=typeof _0x23b513||null===_0x23b513)return'object\x20expected';if(null!=_0x23b513['attributes']&&_0x23b513['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x23b513['attributes']))return'attributes:\x20array\x20expected';for(var _0x4cc8d0=0x0;_0x4cc8d0<_0x23b513['attributes']['length'];++_0x4cc8d0){var _0x79ff16=_0x2dfa82['KeyValueDescriptor']['verify'](_0x23b513['attributes'][_0x4cc8d0]);if(_0x79ff16)return'attributes.'+_0x79ff16;}}return null;},_0x52ef2c['fromObject']=function(_0x6ea380){if(_0x6ea380 instanceof _0x2dfa82['GetUserResponse'])return _0x6ea380;var _0x554d2f=new _0x2dfa82['GetUserResponse']();if(_0x6ea380['attributes']){if(!Array['isArray'](_0x6ea380['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x554d2f['attributes']=[];for(var _0x397db2=0x0;_0x397db2<_0x6ea380['attributes']['length'];++_0x397db2){if('object'!=typeof _0x6ea380['attributes'][_0x397db2])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x554d2f['attributes'][_0x397db2]=_0x2dfa82['KeyValueDescriptor']['fromObject'](_0x6ea380['attributes'][_0x397db2]);}}return _0x554d2f;},_0x52ef2c['toObject']=function(_0x2f28f4,_0x6936d2){_0x6936d2||(_0x6936d2={});var _0x25ed01={};if((_0x6936d2['arrays']||_0x6936d2['defaults'])&&(_0x25ed01['attributes']=[]),_0x2f28f4['attributes']&&_0x2f28f4['attributes']['length']){_0x25ed01['attributes']=[];for(var _0x5eaf6b=0x0;_0x5eaf6b<_0x2f28f4['attributes']['length'];++_0x5eaf6b)_0x25ed01['attributes'][_0x5eaf6b]=_0x2dfa82['KeyValueDescriptor']['toObject'](_0x2f28f4['attributes'][_0x5eaf6b],_0x6936d2);}return _0x25ed01;},_0x52ef2c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x52ef2c['getTypeUrl']=function(_0x22ed16){return void 0x0===_0x22ed16&&(_0x22ed16='type.googleapis.com'),_0x22ed16+'/GetUserResponse';},_0x52ef2c;}()),_0x2dfa82['GetManyUsersResponse']=(function(){function _0x5b2b7f(_0x2f67f6){if(this['users']=[],_0x2f67f6){for(var _0x324ae7=Object['keys'](_0x2f67f6),_0x38496d=0x0;_0x38496d<_0x324ae7['length'];++_0x38496d)null!=_0x2f67f6[_0x324ae7[_0x38496d]]&&(this[_0x324ae7[_0x38496d]]=_0x2f67f6[_0x324ae7[_0x38496d]]);}}return _0x5b2b7f['prototype']['users']=_0x4a15b3['emptyArray'],_0x5b2b7f['create']=function(_0x557f99){return new _0x5b2b7f(_0x557f99);},_0x5b2b7f['encode']=function(_0x1483a9,_0x559fbe){if(_0x559fbe||(_0x559fbe=_0x278790['create']()),null!=_0x1483a9['users']&&_0x1483a9['users']['length']){for(var _0x22e583=0x0;_0x22e583<_0x1483a9['users']['length'];++_0x22e583)_0x2dfa82['UserDescriptor']['encode'](_0x1483a9['users'][_0x22e583],_0x559fbe['uint32'](0xa)['fork']())['ldelim']();}return _0x559fbe;},_0x5b2b7f['encodeDelimited']=function(_0x2f71ee,_0x19c8a0){return this['encode'](_0x2f71ee,_0x19c8a0)['ldelim']();},_0x5b2b7f['decode']=function(_0x1f884b,_0x18aed5,_0x10b562){_0x1f884b instanceof _0x150291||(_0x1f884b=_0x150291['create'](_0x1f884b));for(var _0xc79060=void 0x0===_0x18aed5?_0x1f884b['len']:_0x1f884b['pos']+_0x18aed5,_0x28b7c8=new _0x2dfa82['GetManyUsersResponse']();_0x1f884b['pos']<_0xc79060;){var _0x1ed443=_0x1f884b['uint32']();if(_0x1ed443===_0x10b562)break;_0x1ed443>>>0x3==0x1?(_0x28b7c8['users']&&_0x28b7c8['users']['length']||(_0x28b7c8['users']=[]),_0x28b7c8['users']['push'](_0x2dfa82['UserDescriptor']['decode'](_0x1f884b,_0x1f884b['uint32']()))):_0x1f884b['skipType'](0x7&_0x1ed443);}return _0x28b7c8;},_0x5b2b7f['decodeDelimited']=function(_0x45a201){return _0x45a201 instanceof _0x150291||(_0x45a201=new _0x150291(_0x45a201)),this['decode'](_0x45a201,_0x45a201['uint32']());},_0x5b2b7f['verify']=function(_0x55323e){if('object'!=typeof _0x55323e||null===_0x55323e)return'object\x20expected';if(null!=_0x55323e['users']&&_0x55323e['hasOwnProperty']('users')){if(!Array['isArray'](_0x55323e['users']))return'users:\x20array\x20expected';for(var _0x5a7845=0x0;_0x5a7845<_0x55323e['users']['length'];++_0x5a7845){var _0x5bbabc=_0x2dfa82['UserDescriptor']['verify'](_0x55323e['users'][_0x5a7845]);if(_0x5bbabc)return'users.'+_0x5bbabc;}}return null;},_0x5b2b7f['fromObject']=function(_0x20dd1d){if(_0x20dd1d instanceof _0x2dfa82['GetManyUsersResponse'])return _0x20dd1d;var _0x4fb68b=new _0x2dfa82['GetManyUsersResponse']();if(_0x20dd1d['users']){if(!Array['isArray'](_0x20dd1d['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x4fb68b['users']=[];for(var _0x36974a=0x0;_0x36974a<_0x20dd1d['users']['length'];++_0x36974a){if('object'!=typeof _0x20dd1d['users'][_0x36974a])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x4fb68b['users'][_0x36974a]=_0x2dfa82['UserDescriptor']['fromObject'](_0x20dd1d['users'][_0x36974a]);}}return _0x4fb68b;},_0x5b2b7f['toObject']=function(_0x37eb27,_0xdf342b){_0xdf342b||(_0xdf342b={});var _0x4cd604={};if((_0xdf342b['arrays']||_0xdf342b['defaults'])&&(_0x4cd604['users']=[]),_0x37eb27['users']&&_0x37eb27['users']['length']){_0x4cd604['users']=[];for(var _0x2f65dd=0x0;_0x2f65dd<_0x37eb27['users']['length'];++_0x2f65dd)_0x4cd604['users'][_0x2f65dd]=_0x2dfa82['UserDescriptor']['toObject'](_0x37eb27['users'][_0x2f65dd],_0xdf342b);}return _0x4cd604;},_0x5b2b7f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5b2b7f['getTypeUrl']=function(_0x82339b){return void 0x0===_0x82339b&&(_0x82339b='type.googleapis.com'),_0x82339b+'/GetManyUsersResponse';},_0x5b2b7f;}()),_0x2dfa82['GetUserMessage']=(function(){function _0x2c0a7a(_0x1fb4cf){if(_0x1fb4cf){for(var _0x56a2ee=Object['keys'](_0x1fb4cf),_0x24379f=0x0;_0x24379f<_0x56a2ee['length'];++_0x24379f)null!=_0x1fb4cf[_0x56a2ee[_0x24379f]]&&(this[_0x56a2ee[_0x24379f]]=_0x1fb4cf[_0x56a2ee[_0x24379f]]);}}return _0x2c0a7a['prototype']['id']='',_0x2c0a7a['create']=function(_0xe11534){return new _0x2c0a7a(_0xe11534);},_0x2c0a7a['encode']=function(_0x3f468d,_0x1163a4){return _0x1163a4||(_0x1163a4=_0x278790['create']()),null!=_0x3f468d['id']&&Object['hasOwnProperty']['call'](_0x3f468d,'id')&&_0x1163a4['uint32'](0xa)['string'](_0x3f468d['id']),_0x1163a4;},_0x2c0a7a['encodeDelimited']=function(_0x5664b1,_0x2d7b5e){return this['encode'](_0x5664b1,_0x2d7b5e)['ldelim']();},_0x2c0a7a['decode']=function(_0xed2e32,_0x150490,_0x39b1e){_0xed2e32 instanceof _0x150291||(_0xed2e32=_0x150291['create'](_0xed2e32));for(var _0x12575c=void 0x0===_0x150490?_0xed2e32['len']:_0xed2e32['pos']+_0x150490,_0xd8e279=new _0x2dfa82['GetUserMessage']();_0xed2e32['pos']<_0x12575c;){var _0x2354f5=_0xed2e32['uint32']();if(_0x2354f5===_0x39b1e)break;_0x2354f5>>>0x3==0x1?_0xd8e279['id']=_0xed2e32['string']():_0xed2e32['skipType'](0x7&_0x2354f5);}return _0xd8e279;},_0x2c0a7a['decodeDelimited']=function(_0x8f934a){return _0x8f934a instanceof _0x150291||(_0x8f934a=new _0x150291(_0x8f934a)),this['decode'](_0x8f934a,_0x8f934a['uint32']());},_0x2c0a7a['verify']=function(_0x58b33c){return'object'!=typeof _0x58b33c||null===_0x58b33c?'object\x20expected':null!=_0x58b33c['id']&&_0x58b33c['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x58b33c['id'])?'id:\x20string\x20expected':null;},_0x2c0a7a['fromObject']=function(_0x390375){if(_0x390375 instanceof _0x2dfa82['GetUserMessage'])return _0x390375;var _0xfd1243=new _0x2dfa82['GetUserMessage']();return null!=_0x390375['id']&&(_0xfd1243['id']=String(_0x390375['id'])),_0xfd1243;},_0x2c0a7a['toObject']=function(_0x32ebae,_0x2497b8){_0x2497b8||(_0x2497b8={});var _0x5de7b7={};return _0x2497b8['defaults']&&(_0x5de7b7['id']=''),null!=_0x32ebae['id']&&_0x32ebae['hasOwnProperty']('id')&&(_0x5de7b7['id']=_0x32ebae['id']),_0x5de7b7;},_0x2c0a7a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c0a7a['getTypeUrl']=function(_0x1b412a){return void 0x0===_0x1b412a&&(_0x1b412a='type.googleapis.com'),_0x1b412a+'/GetUserMessage';},_0x2c0a7a;}()),_0x2dfa82['GetManyUsersMessage']=(function(){function _0x226179(_0x577111){if(this['ids']=[],_0x577111){for(var _0x4259e8=Object['keys'](_0x577111),_0x5f1adc=0x0;_0x5f1adc<_0x4259e8['length'];++_0x5f1adc)null!=_0x577111[_0x4259e8[_0x5f1adc]]&&(this[_0x4259e8[_0x5f1adc]]=_0x577111[_0x4259e8[_0x5f1adc]]);}}return _0x226179['prototype']['ids']=_0x4a15b3['emptyArray'],_0x226179['create']=function(_0x3133d9){return new _0x226179(_0x3133d9);},_0x226179['encode']=function(_0x224db4,_0x282349){if(_0x282349||(_0x282349=_0x278790['create']()),null!=_0x224db4['ids']&&_0x224db4['ids']['length']){for(var _0x47cff0=0x0;_0x47cff0<_0x224db4['ids']['length'];++_0x47cff0)_0x282349['uint32'](0xa)['string'](_0x224db4['ids'][_0x47cff0]);}return _0x282349;},_0x226179['encodeDelimited']=function(_0x29c821,_0x1bf676){return this['encode'](_0x29c821,_0x1bf676)['ldelim']();},_0x226179['decode']=function(_0x1251a2,_0x4f0582,_0x247d72){_0x1251a2 instanceof _0x150291||(_0x1251a2=_0x150291['create'](_0x1251a2));for(var _0x1f1ce3=void 0x0===_0x4f0582?_0x1251a2['len']:_0x1251a2['pos']+_0x4f0582,_0xd7ddb6=new _0x2dfa82['GetManyUsersMessage']();_0x1251a2['pos']<_0x1f1ce3;){var _0x26d9a5=_0x1251a2['uint32']();if(_0x26d9a5===_0x247d72)break;_0x26d9a5>>>0x3==0x1?(_0xd7ddb6['ids']&&_0xd7ddb6['ids']['length']||(_0xd7ddb6['ids']=[]),_0xd7ddb6['ids']['push'](_0x1251a2['string']())):_0x1251a2['skipType'](0x7&_0x26d9a5);}return _0xd7ddb6;},_0x226179['decodeDelimited']=function(_0x4c7500){return _0x4c7500 instanceof _0x150291||(_0x4c7500=new _0x150291(_0x4c7500)),this['decode'](_0x4c7500,_0x4c7500['uint32']());},_0x226179['verify']=function(_0x5b52e5){if('object'!=typeof _0x5b52e5||null===_0x5b52e5)return'object\x20expected';if(null!=_0x5b52e5['ids']&&_0x5b52e5['hasOwnProperty']('ids')){if(!Array['isArray'](_0x5b52e5['ids']))return'ids:\x20array\x20expected';for(var _0x1e58dd=0x0;_0x1e58dd<_0x5b52e5['ids']['length'];++_0x1e58dd)if(!_0x4a15b3['isString'](_0x5b52e5['ids'][_0x1e58dd]))return'ids:\x20string[]\x20expected';}return null;},_0x226179['fromObject']=function(_0x82225c){if(_0x82225c instanceof _0x2dfa82['GetManyUsersMessage'])return _0x82225c;var _0x50a517=new _0x2dfa82['GetManyUsersMessage']();if(_0x82225c['ids']){if(!Array['isArray'](_0x82225c['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x50a517['ids']=[];for(var _0x56acbf=0x0;_0x56acbf<_0x82225c['ids']['length'];++_0x56acbf)_0x50a517['ids'][_0x56acbf]=String(_0x82225c['ids'][_0x56acbf]);}return _0x50a517;},_0x226179['toObject']=function(_0x306b4f,_0x4a02aa){_0x4a02aa||(_0x4a02aa={});var _0x4bcd94={};if((_0x4a02aa['arrays']||_0x4a02aa['defaults'])&&(_0x4bcd94['ids']=[]),_0x306b4f['ids']&&_0x306b4f['ids']['length']){_0x4bcd94['ids']=[];for(var _0x48c9ff=0x0;_0x48c9ff<_0x306b4f['ids']['length'];++_0x48c9ff)_0x4bcd94['ids'][_0x48c9ff]=_0x306b4f['ids'][_0x48c9ff];}return _0x4bcd94;},_0x226179['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x226179['getTypeUrl']=function(_0x220e03){return void 0x0===_0x220e03&&(_0x220e03='type.googleapis.com'),_0x220e03+'/GetManyUsersMessage';},_0x226179;}()),_0x2dfa82['UserDescriptor']=(function(){function _0x409ac9(_0x15728e){if(this['attributes']=[],_0x15728e){for(var _0x3cd7e6=Object['keys'](_0x15728e),_0x577a12=0x0;_0x577a12<_0x3cd7e6['length'];++_0x577a12)null!=_0x15728e[_0x3cd7e6[_0x577a12]]&&(this[_0x3cd7e6[_0x577a12]]=_0x15728e[_0x3cd7e6[_0x577a12]]);}}return _0x409ac9['prototype']['attributes']=_0x4a15b3['emptyArray'],_0x409ac9['create']=function(_0x1115f5){return new _0x409ac9(_0x1115f5);},_0x409ac9['encode']=function(_0x3613f1,_0x12a4af){if(_0x12a4af||(_0x12a4af=_0x278790['create']()),null!=_0x3613f1['attributes']&&_0x3613f1['attributes']['length']){for(var _0x589b28=0x0;_0x589b28<_0x3613f1['attributes']['length'];++_0x589b28)_0x2dfa82['KeyValueDescriptor']['encode'](_0x3613f1['attributes'][_0x589b28],_0x12a4af['uint32'](0xa)['fork']())['ldelim']();}return _0x12a4af;},_0x409ac9['encodeDelimited']=function(_0x1bc130,_0x5e3f1a){return this['encode'](_0x1bc130,_0x5e3f1a)['ldelim']();},_0x409ac9['decode']=function(_0x51652c,_0x4b4d37,_0x98df71){_0x51652c instanceof _0x150291||(_0x51652c=_0x150291['create'](_0x51652c));for(var _0x39301e=void 0x0===_0x4b4d37?_0x51652c['len']:_0x51652c['pos']+_0x4b4d37,_0x209f32=new _0x2dfa82['UserDescriptor']();_0x51652c['pos']<_0x39301e;){var _0xde6f7b=_0x51652c['uint32']();if(_0xde6f7b===_0x98df71)break;_0xde6f7b>>>0x3==0x1?(_0x209f32['attributes']&&_0x209f32['attributes']['length']||(_0x209f32['attributes']=[]),_0x209f32['attributes']['push'](_0x2dfa82['KeyValueDescriptor']['decode'](_0x51652c,_0x51652c['uint32']()))):_0x51652c['skipType'](0x7&_0xde6f7b);}return _0x209f32;},_0x409ac9['decodeDelimited']=function(_0x4a4399){return _0x4a4399 instanceof _0x150291||(_0x4a4399=new _0x150291(_0x4a4399)),this['decode'](_0x4a4399,_0x4a4399['uint32']());},_0x409ac9['verify']=function(_0x2dd6c1){if('object'!=typeof _0x2dd6c1||null===_0x2dd6c1)return'object\x20expected';if(null!=_0x2dd6c1['attributes']&&_0x2dd6c1['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x2dd6c1['attributes']))return'attributes:\x20array\x20expected';for(var _0x35d305=0x0;_0x35d305<_0x2dd6c1['attributes']['length'];++_0x35d305){var _0x50251c=_0x2dfa82['KeyValueDescriptor']['verify'](_0x2dd6c1['attributes'][_0x35d305]);if(_0x50251c)return'attributes.'+_0x50251c;}}return null;},_0x409ac9['fromObject']=function(_0x5f20d0){if(_0x5f20d0 instanceof _0x2dfa82['UserDescriptor'])return _0x5f20d0;var _0x342651=new _0x2dfa82['UserDescriptor']();if(_0x5f20d0['attributes']){if(!Array['isArray'](_0x5f20d0['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x342651['attributes']=[];for(var _0x2ccb73=0x0;_0x2ccb73<_0x5f20d0['attributes']['length'];++_0x2ccb73){if('object'!=typeof _0x5f20d0['attributes'][_0x2ccb73])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x342651['attributes'][_0x2ccb73]=_0x2dfa82['KeyValueDescriptor']['fromObject'](_0x5f20d0['attributes'][_0x2ccb73]);}}return _0x342651;},_0x409ac9['toObject']=function(_0x47b469,_0x1d2904){_0x1d2904||(_0x1d2904={});var _0x45385d={};if((_0x1d2904['arrays']||_0x1d2904['defaults'])&&(_0x45385d['attributes']=[]),_0x47b469['attributes']&&_0x47b469['attributes']['length']){_0x45385d['attributes']=[];for(var _0x587543=0x0;_0x587543<_0x47b469['attributes']['length'];++_0x587543)_0x45385d['attributes'][_0x587543]=_0x2dfa82['KeyValueDescriptor']['toObject'](_0x47b469['attributes'][_0x587543],_0x1d2904);}return _0x45385d;},_0x409ac9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x409ac9['getTypeUrl']=function(_0x572c1d){return void 0x0===_0x572c1d&&(_0x572c1d='type.googleapis.com'),_0x572c1d+'/UserDescriptor';},_0x409ac9;}()),_0x2dfa82['TrackChangesGetSuggestionResponse']=(function(){function _0x2586ce(_0x203cde){if(_0x203cde){for(var _0x70a4c9=Object['keys'](_0x203cde),_0x4fbc2c=0x0;_0x4fbc2c<_0x70a4c9['length'];++_0x4fbc2c)null!=_0x203cde[_0x70a4c9[_0x4fbc2c]]&&(this[_0x70a4c9[_0x4fbc2c]]=_0x203cde[_0x70a4c9[_0x4fbc2c]]);}}return _0x2586ce['prototype']['id']='',_0x2586ce['prototype']['authorId']='',_0x2586ce['prototype']['type']='',_0x2586ce['prototype']['createdAt']='',_0x2586ce['prototype']['data']='',_0x2586ce['prototype']['hasComments']=!0x1,_0x2586ce['prototype']['state']='',_0x2586ce['prototype']['attributes']='',_0x2586ce['create']=function(_0x3bb9e5){return new _0x2586ce(_0x3bb9e5);},_0x2586ce['encode']=function(_0x2981ea,_0x1d5cfe){return _0x1d5cfe||(_0x1d5cfe=_0x278790['create']()),null!=_0x2981ea['id']&&Object['hasOwnProperty']['call'](_0x2981ea,'id')&&_0x1d5cfe['uint32'](0xa)['string'](_0x2981ea['id']),null!=_0x2981ea['authorId']&&Object['hasOwnProperty']['call'](_0x2981ea,'authorId')&&_0x1d5cfe['uint32'](0x12)['string'](_0x2981ea['authorId']),null!=_0x2981ea['type']&&Object['hasOwnProperty']['call'](_0x2981ea,'type')&&_0x1d5cfe['uint32'](0x1a)['string'](_0x2981ea['type']),null!=_0x2981ea['createdAt']&&Object['hasOwnProperty']['call'](_0x2981ea,'createdAt')&&_0x1d5cfe['uint32'](0x22)['string'](_0x2981ea['createdAt']),null!=_0x2981ea['data']&&Object['hasOwnProperty']['call'](_0x2981ea,'data')&&_0x1d5cfe['uint32'](0x2a)['string'](_0x2981ea['data']),null!=_0x2981ea['hasComments']&&Object['hasOwnProperty']['call'](_0x2981ea,'hasComments')&&_0x1d5cfe['uint32'](0x30)['bool'](_0x2981ea['hasComments']),null!=_0x2981ea['state']&&Object['hasOwnProperty']['call'](_0x2981ea,'state')&&_0x1d5cfe['uint32'](0x3a)['string'](_0x2981ea['state']),null!=_0x2981ea['attributes']&&Object['hasOwnProperty']['call'](_0x2981ea,'attributes')&&_0x1d5cfe['uint32'](0x42)['string'](_0x2981ea['attributes']),_0x1d5cfe;},_0x2586ce['encodeDelimited']=function(_0x3098d2,_0xbb4fa3){return this['encode'](_0x3098d2,_0xbb4fa3)['ldelim']();},_0x2586ce['decode']=function(_0x5f3532,_0x5d31ea,_0x23fadd){_0x5f3532 instanceof _0x150291||(_0x5f3532=_0x150291['create'](_0x5f3532));for(var _0x5a6f3f=void 0x0===_0x5d31ea?_0x5f3532['len']:_0x5f3532['pos']+_0x5d31ea,_0x2e87d3=new _0x2dfa82['TrackChangesGetSuggestionResponse']();_0x5f3532['pos']<_0x5a6f3f;){var _0x163eff=_0x5f3532['uint32']();if(_0x163eff===_0x23fadd)break;switch(_0x163eff>>>0x3){case 0x1:_0x2e87d3['id']=_0x5f3532['string']();break;case 0x2:_0x2e87d3['authorId']=_0x5f3532['string']();break;case 0x3:_0x2e87d3['type']=_0x5f3532['string']();break;case 0x4:_0x2e87d3['createdAt']=_0x5f3532['string']();break;case 0x5:_0x2e87d3['data']=_0x5f3532['string']();break;case 0x6:_0x2e87d3['hasComments']=_0x5f3532['bool']();break;case 0x7:_0x2e87d3['state']=_0x5f3532['string']();break;case 0x8:_0x2e87d3['attributes']=_0x5f3532['string']();break;default:_0x5f3532['skipType'](0x7&_0x163eff);}}return _0x2e87d3;},_0x2586ce['decodeDelimited']=function(_0x1ccee1){return _0x1ccee1 instanceof _0x150291||(_0x1ccee1=new _0x150291(_0x1ccee1)),this['decode'](_0x1ccee1,_0x1ccee1['uint32']());},_0x2586ce['verify']=function(_0x5bbbc1){return'object'!=typeof _0x5bbbc1||null===_0x5bbbc1?'object\x20expected':null!=_0x5bbbc1['id']&&_0x5bbbc1['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x5bbbc1['id'])?'id:\x20string\x20expected':null!=_0x5bbbc1['authorId']&&_0x5bbbc1['hasOwnProperty']('authorId')&&!_0x4a15b3['isString'](_0x5bbbc1['authorId'])?'authorId:\x20string\x20expected':null!=_0x5bbbc1['type']&&_0x5bbbc1['hasOwnProperty']('type')&&!_0x4a15b3['isString'](_0x5bbbc1['type'])?'type:\x20string\x20expected':null!=_0x5bbbc1['createdAt']&&_0x5bbbc1['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x5bbbc1['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5bbbc1['data']&&_0x5bbbc1['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x5bbbc1['data'])?'data:\x20string\x20expected':null!=_0x5bbbc1['hasComments']&&_0x5bbbc1['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x5bbbc1['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5bbbc1['state']&&_0x5bbbc1['hasOwnProperty']('state')&&!_0x4a15b3['isString'](_0x5bbbc1['state'])?'state:\x20string\x20expected':null!=_0x5bbbc1['attributes']&&_0x5bbbc1['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x5bbbc1['attributes'])?'attributes:\x20string\x20expected':null;},_0x2586ce['fromObject']=function(_0x5e0de6){if(_0x5e0de6 instanceof _0x2dfa82['TrackChangesGetSuggestionResponse'])return _0x5e0de6;var _0x43ffef=new _0x2dfa82['TrackChangesGetSuggestionResponse']();return null!=_0x5e0de6['id']&&(_0x43ffef['id']=String(_0x5e0de6['id'])),null!=_0x5e0de6['authorId']&&(_0x43ffef['authorId']=String(_0x5e0de6['authorId'])),null!=_0x5e0de6['type']&&(_0x43ffef['type']=String(_0x5e0de6['type'])),null!=_0x5e0de6['createdAt']&&(_0x43ffef['createdAt']=String(_0x5e0de6['createdAt'])),null!=_0x5e0de6['data']&&(_0x43ffef['data']=String(_0x5e0de6['data'])),null!=_0x5e0de6['hasComments']&&(_0x43ffef['hasComments']=Boolean(_0x5e0de6['hasComments'])),null!=_0x5e0de6['state']&&(_0x43ffef['state']=String(_0x5e0de6['state'])),null!=_0x5e0de6['attributes']&&(_0x43ffef['attributes']=String(_0x5e0de6['attributes'])),_0x43ffef;},_0x2586ce['toObject']=function(_0x15d43c,_0x2603d0){_0x2603d0||(_0x2603d0={});var _0x55e87c={};return _0x2603d0['defaults']&&(_0x55e87c['id']='',_0x55e87c['authorId']='',_0x55e87c['type']='',_0x55e87c['createdAt']='',_0x55e87c['data']='',_0x55e87c['hasComments']=!0x1,_0x55e87c['state']='',_0x55e87c['attributes']=''),null!=_0x15d43c['id']&&_0x15d43c['hasOwnProperty']('id')&&(_0x55e87c['id']=_0x15d43c['id']),null!=_0x15d43c['authorId']&&_0x15d43c['hasOwnProperty']('authorId')&&(_0x55e87c['authorId']=_0x15d43c['authorId']),null!=_0x15d43c['type']&&_0x15d43c['hasOwnProperty']('type')&&(_0x55e87c['type']=_0x15d43c['type']),null!=_0x15d43c['createdAt']&&_0x15d43c['hasOwnProperty']('createdAt')&&(_0x55e87c['createdAt']=_0x15d43c['createdAt']),null!=_0x15d43c['data']&&_0x15d43c['hasOwnProperty']('data')&&(_0x55e87c['data']=_0x15d43c['data']),null!=_0x15d43c['hasComments']&&_0x15d43c['hasOwnProperty']('hasComments')&&(_0x55e87c['hasComments']=_0x15d43c['hasComments']),null!=_0x15d43c['state']&&_0x15d43c['hasOwnProperty']('state')&&(_0x55e87c['state']=_0x15d43c['state']),null!=_0x15d43c['attributes']&&_0x15d43c['hasOwnProperty']('attributes')&&(_0x55e87c['attributes']=_0x15d43c['attributes']),_0x55e87c;},_0x2586ce['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2586ce['getTypeUrl']=function(_0x511079){return void 0x0===_0x511079&&(_0x511079='type.googleapis.com'),_0x511079+'/TrackChangesGetSuggestionResponse';},_0x2586ce;}()),_0x2dfa82['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x4e93b1(_0x4b9a26){if(this['suggestions']=[],this['suggestionsV2']=[],_0x4b9a26){for(var _0x3b126a=Object['keys'](_0x4b9a26),_0x51a229=0x0;_0x51a229<_0x3b126a['length'];++_0x51a229)null!=_0x4b9a26[_0x3b126a[_0x51a229]]&&(this[_0x3b126a[_0x51a229]]=_0x4b9a26[_0x3b126a[_0x51a229]]);}}return _0x4e93b1['prototype']['suggestions']=_0x4a15b3['emptyArray'],_0x4e93b1['prototype']['suggestionsV2']=_0x4a15b3['emptyArray'],_0x4e93b1['create']=function(_0x5bfbb1){return new _0x4e93b1(_0x5bfbb1);},_0x4e93b1['encode']=function(_0x18e453,_0x5af5c1){if(_0x5af5c1||(_0x5af5c1=_0x278790['create']()),null!=_0x18e453['suggestions']&&_0x18e453['suggestions']['length']){for(var _0x249099=0x0;_0x249099<_0x18e453['suggestions']['length'];++_0x249099)_0x5af5c1['uint32'](0xa)['string'](_0x18e453['suggestions'][_0x249099]);}if(null!=_0x18e453['suggestionsV2']&&_0x18e453['suggestionsV2']['length']){for(_0x249099=0x0;_0x249099<_0x18e453['suggestionsV2']['length'];++_0x249099)_0x2dfa82['SuggestionDescriptor']['encode'](_0x18e453['suggestionsV2'][_0x249099],_0x5af5c1['uint32'](0x12)['fork']())['ldelim']();}return _0x5af5c1;},_0x4e93b1['encodeDelimited']=function(_0x146318,_0x3db1cc){return this['encode'](_0x146318,_0x3db1cc)['ldelim']();},_0x4e93b1['decode']=function(_0x415a0e,_0x81f910,_0x5b28d8){_0x415a0e instanceof _0x150291||(_0x415a0e=_0x150291['create'](_0x415a0e));for(var _0x1c2d15=void 0x0===_0x81f910?_0x415a0e['len']:_0x415a0e['pos']+_0x81f910,_0x3acb14=new _0x2dfa82['TrackChangesGetAllSuggestionsResponse']();_0x415a0e['pos']<_0x1c2d15;){var _0x4f1abe=_0x415a0e['uint32']();if(_0x4f1abe===_0x5b28d8)break;switch(_0x4f1abe>>>0x3){case 0x1:_0x3acb14['suggestions']&&_0x3acb14['suggestions']['length']||(_0x3acb14['suggestions']=[]),_0x3acb14['suggestions']['push'](_0x415a0e['string']());break;case 0x2:_0x3acb14['suggestionsV2']&&_0x3acb14['suggestionsV2']['length']||(_0x3acb14['suggestionsV2']=[]),_0x3acb14['suggestionsV2']['push'](_0x2dfa82['SuggestionDescriptor']['decode'](_0x415a0e,_0x415a0e['uint32']()));break;default:_0x415a0e['skipType'](0x7&_0x4f1abe);}}return _0x3acb14;},_0x4e93b1['decodeDelimited']=function(_0x515dc3){return _0x515dc3 instanceof _0x150291||(_0x515dc3=new _0x150291(_0x515dc3)),this['decode'](_0x515dc3,_0x515dc3['uint32']());},_0x4e93b1['verify']=function(_0x1518a1){if('object'!=typeof _0x1518a1||null===_0x1518a1)return'object\x20expected';if(null!=_0x1518a1['suggestions']&&_0x1518a1['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x1518a1['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x4c00d5=0x0;_0x4c00d5<_0x1518a1['suggestions']['length'];++_0x4c00d5)if(!_0x4a15b3['isString'](_0x1518a1['suggestions'][_0x4c00d5]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x1518a1['suggestionsV2']&&_0x1518a1['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x1518a1['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x4c00d5=0x0;_0x4c00d5<_0x1518a1['suggestionsV2']['length'];++_0x4c00d5){var _0x21dcc5=_0x2dfa82['SuggestionDescriptor']['verify'](_0x1518a1['suggestionsV2'][_0x4c00d5]);if(_0x21dcc5)return'suggestionsV2.'+_0x21dcc5;}}return null;},_0x4e93b1['fromObject']=function(_0x5abb24){if(_0x5abb24 instanceof _0x2dfa82['TrackChangesGetAllSuggestionsResponse'])return _0x5abb24;var _0x4ade10=new _0x2dfa82['TrackChangesGetAllSuggestionsResponse']();if(_0x5abb24['suggestions']){if(!Array['isArray'](_0x5abb24['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x4ade10['suggestions']=[];for(var _0x6ddf68=0x0;_0x6ddf68<_0x5abb24['suggestions']['length'];++_0x6ddf68)_0x4ade10['suggestions'][_0x6ddf68]=String(_0x5abb24['suggestions'][_0x6ddf68]);}if(_0x5abb24['suggestionsV2']){if(!Array['isArray'](_0x5abb24['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x4ade10['suggestionsV2']=[],_0x6ddf68=0x0;_0x6ddf68<_0x5abb24['suggestionsV2']['length'];++_0x6ddf68){if('object'!=typeof _0x5abb24['suggestionsV2'][_0x6ddf68])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x4ade10['suggestionsV2'][_0x6ddf68]=_0x2dfa82['SuggestionDescriptor']['fromObject'](_0x5abb24['suggestionsV2'][_0x6ddf68]);}}return _0x4ade10;},_0x4e93b1['toObject']=function(_0x4b4964,_0x585337){_0x585337||(_0x585337={});var _0x18ffb3={};if((_0x585337['arrays']||_0x585337['defaults'])&&(_0x18ffb3['suggestions']=[],_0x18ffb3['suggestionsV2']=[]),_0x4b4964['suggestions']&&_0x4b4964['suggestions']['length']){_0x18ffb3['suggestions']=[];for(var _0x3f2056=0x0;_0x3f2056<_0x4b4964['suggestions']['length'];++_0x3f2056)_0x18ffb3['suggestions'][_0x3f2056]=_0x4b4964['suggestions'][_0x3f2056];}if(_0x4b4964['suggestionsV2']&&_0x4b4964['suggestionsV2']['length']){for(_0x18ffb3['suggestionsV2']=[],_0x3f2056=0x0;_0x3f2056<_0x4b4964['suggestionsV2']['length'];++_0x3f2056)_0x18ffb3['suggestionsV2'][_0x3f2056]=_0x2dfa82['SuggestionDescriptor']['toObject'](_0x4b4964['suggestionsV2'][_0x3f2056],_0x585337);}return _0x18ffb3;},_0x4e93b1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4e93b1['getTypeUrl']=function(_0x26e902){return void 0x0===_0x26e902&&(_0x26e902='type.googleapis.com'),_0x26e902+'/TrackChangesGetAllSuggestionsResponse';},_0x4e93b1;}()),_0x2dfa82['TrackChangesConnectResponse']=(function(){function _0x2c26ee(_0x300837){if(this['suggestions']=[],this['suggestionsV2']=[],_0x300837){for(var _0x5bbcc6=Object['keys'](_0x300837),_0x32f2ed=0x0;_0x32f2ed<_0x5bbcc6['length'];++_0x32f2ed)null!=_0x300837[_0x5bbcc6[_0x32f2ed]]&&(this[_0x5bbcc6[_0x32f2ed]]=_0x300837[_0x5bbcc6[_0x32f2ed]]);}}return _0x2c26ee['prototype']['channel']='',_0x2c26ee['prototype']['suggestions']=_0x4a15b3['emptyArray'],_0x2c26ee['prototype']['suggestionsV2']=_0x4a15b3['emptyArray'],_0x2c26ee['create']=function(_0x357b7f){return new _0x2c26ee(_0x357b7f);},_0x2c26ee['encode']=function(_0x54de07,_0x2e7270){if(_0x2e7270||(_0x2e7270=_0x278790['create']()),null!=_0x54de07['channel']&&Object['hasOwnProperty']['call'](_0x54de07,'channel')&&_0x2e7270['uint32'](0xa)['string'](_0x54de07['channel']),null!=_0x54de07['suggestions']&&_0x54de07['suggestions']['length']){for(var _0x488925=0x0;_0x488925<_0x54de07['suggestions']['length'];++_0x488925)_0x2e7270['uint32'](0x12)['string'](_0x54de07['suggestions'][_0x488925]);}if(null!=_0x54de07['suggestionsV2']&&_0x54de07['suggestionsV2']['length']){for(_0x488925=0x0;_0x488925<_0x54de07['suggestionsV2']['length'];++_0x488925)_0x2dfa82['SuggestionDescriptor']['encode'](_0x54de07['suggestionsV2'][_0x488925],_0x2e7270['uint32'](0x1a)['fork']())['ldelim']();}return _0x2e7270;},_0x2c26ee['encodeDelimited']=function(_0x16e940,_0x6879e6){return this['encode'](_0x16e940,_0x6879e6)['ldelim']();},_0x2c26ee['decode']=function(_0x31b1f0,_0x16de7c,_0x159e38){_0x31b1f0 instanceof _0x150291||(_0x31b1f0=_0x150291['create'](_0x31b1f0));for(var _0x2eaf82=void 0x0===_0x16de7c?_0x31b1f0['len']:_0x31b1f0['pos']+_0x16de7c,_0x26beb6=new _0x2dfa82['TrackChangesConnectResponse']();_0x31b1f0['pos']<_0x2eaf82;){var _0x8a21ea=_0x31b1f0['uint32']();if(_0x8a21ea===_0x159e38)break;switch(_0x8a21ea>>>0x3){case 0x1:_0x26beb6['channel']=_0x31b1f0['string']();break;case 0x2:_0x26beb6['suggestions']&&_0x26beb6['suggestions']['length']||(_0x26beb6['suggestions']=[]),_0x26beb6['suggestions']['push'](_0x31b1f0['string']());break;case 0x3:_0x26beb6['suggestionsV2']&&_0x26beb6['suggestionsV2']['length']||(_0x26beb6['suggestionsV2']=[]),_0x26beb6['suggestionsV2']['push'](_0x2dfa82['SuggestionDescriptor']['decode'](_0x31b1f0,_0x31b1f0['uint32']()));break;default:_0x31b1f0['skipType'](0x7&_0x8a21ea);}}return _0x26beb6;},_0x2c26ee['decodeDelimited']=function(_0x2b6fd1){return _0x2b6fd1 instanceof _0x150291||(_0x2b6fd1=new _0x150291(_0x2b6fd1)),this['decode'](_0x2b6fd1,_0x2b6fd1['uint32']());},_0x2c26ee['verify']=function(_0x2ad33e){if('object'!=typeof _0x2ad33e||null===_0x2ad33e)return'object\x20expected';if(null!=_0x2ad33e['channel']&&_0x2ad33e['hasOwnProperty']('channel')&&!_0x4a15b3['isString'](_0x2ad33e['channel']))return'channel:\x20string\x20expected';if(null!=_0x2ad33e['suggestions']&&_0x2ad33e['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x2ad33e['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x3d49c1=0x0;_0x3d49c1<_0x2ad33e['suggestions']['length'];++_0x3d49c1)if(!_0x4a15b3['isString'](_0x2ad33e['suggestions'][_0x3d49c1]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x2ad33e['suggestionsV2']&&_0x2ad33e['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x2ad33e['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x3d49c1=0x0;_0x3d49c1<_0x2ad33e['suggestionsV2']['length'];++_0x3d49c1){var _0x1f8e4e=_0x2dfa82['SuggestionDescriptor']['verify'](_0x2ad33e['suggestionsV2'][_0x3d49c1]);if(_0x1f8e4e)return'suggestionsV2.'+_0x1f8e4e;}}return null;},_0x2c26ee['fromObject']=function(_0x2d2f2b){if(_0x2d2f2b instanceof _0x2dfa82['TrackChangesConnectResponse'])return _0x2d2f2b;var _0x4f30e3=new _0x2dfa82['TrackChangesConnectResponse']();if(null!=_0x2d2f2b['channel']&&(_0x4f30e3['channel']=String(_0x2d2f2b['channel'])),_0x2d2f2b['suggestions']){if(!Array['isArray'](_0x2d2f2b['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x4f30e3['suggestions']=[];for(var _0x5a9ae1=0x0;_0x5a9ae1<_0x2d2f2b['suggestions']['length'];++_0x5a9ae1)_0x4f30e3['suggestions'][_0x5a9ae1]=String(_0x2d2f2b['suggestions'][_0x5a9ae1]);}if(_0x2d2f2b['suggestionsV2']){if(!Array['isArray'](_0x2d2f2b['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0x4f30e3['suggestionsV2']=[],_0x5a9ae1=0x0;_0x5a9ae1<_0x2d2f2b['suggestionsV2']['length'];++_0x5a9ae1){if('object'!=typeof _0x2d2f2b['suggestionsV2'][_0x5a9ae1])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x4f30e3['suggestionsV2'][_0x5a9ae1]=_0x2dfa82['SuggestionDescriptor']['fromObject'](_0x2d2f2b['suggestionsV2'][_0x5a9ae1]);}}return _0x4f30e3;},_0x2c26ee['toObject']=function(_0xe89597,_0x113c9f){_0x113c9f||(_0x113c9f={});var _0x38ce61={};if((_0x113c9f['arrays']||_0x113c9f['defaults'])&&(_0x38ce61['suggestions']=[],_0x38ce61['suggestionsV2']=[]),_0x113c9f['defaults']&&(_0x38ce61['channel']=''),null!=_0xe89597['channel']&&_0xe89597['hasOwnProperty']('channel')&&(_0x38ce61['channel']=_0xe89597['channel']),_0xe89597['suggestions']&&_0xe89597['suggestions']['length']){_0x38ce61['suggestions']=[];for(var _0x4b8292=0x0;_0x4b8292<_0xe89597['suggestions']['length'];++_0x4b8292)_0x38ce61['suggestions'][_0x4b8292]=_0xe89597['suggestions'][_0x4b8292];}if(_0xe89597['suggestionsV2']&&_0xe89597['suggestionsV2']['length']){for(_0x38ce61['suggestionsV2']=[],_0x4b8292=0x0;_0x4b8292<_0xe89597['suggestionsV2']['length'];++_0x4b8292)_0x38ce61['suggestionsV2'][_0x4b8292]=_0x2dfa82['SuggestionDescriptor']['toObject'](_0xe89597['suggestionsV2'][_0x4b8292],_0x113c9f);}return _0x38ce61;},_0x2c26ee['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c26ee['getTypeUrl']=function(_0x1a32b2){return void 0x0===_0x1a32b2&&(_0x1a32b2='type.googleapis.com'),_0x1a32b2+'/TrackChangesConnectResponse';},_0x2c26ee;}()),_0x2dfa82['TrackChangesAddSuggestionResponse']=(function(){function _0x113954(_0x1c3695){if(_0x1c3695){for(var _0x52363e=Object['keys'](_0x1c3695),_0x32ba15=0x0;_0x32ba15<_0x52363e['length'];++_0x32ba15)null!=_0x1c3695[_0x52363e[_0x32ba15]]&&(this[_0x52363e[_0x32ba15]]=_0x1c3695[_0x52363e[_0x32ba15]]);}}return _0x113954['prototype']['id']='',_0x113954['prototype']['authorId']='',_0x113954['prototype']['type']='',_0x113954['prototype']['createdAt']='',_0x113954['prototype']['data']='',_0x113954['prototype']['hasComments']=!0x1,_0x113954['prototype']['state']='',_0x113954['prototype']['attributes']='',_0x113954['create']=function(_0x540b99){return new _0x113954(_0x540b99);},_0x113954['encode']=function(_0x2ac142,_0x10e1ba){return _0x10e1ba||(_0x10e1ba=_0x278790['create']()),null!=_0x2ac142['id']&&Object['hasOwnProperty']['call'](_0x2ac142,'id')&&_0x10e1ba['uint32'](0xa)['string'](_0x2ac142['id']),null!=_0x2ac142['authorId']&&Object['hasOwnProperty']['call'](_0x2ac142,'authorId')&&_0x10e1ba['uint32'](0x12)['string'](_0x2ac142['authorId']),null!=_0x2ac142['type']&&Object['hasOwnProperty']['call'](_0x2ac142,'type')&&_0x10e1ba['uint32'](0x1a)['string'](_0x2ac142['type']),null!=_0x2ac142['createdAt']&&Object['hasOwnProperty']['call'](_0x2ac142,'createdAt')&&_0x10e1ba['uint32'](0x22)['string'](_0x2ac142['createdAt']),null!=_0x2ac142['data']&&Object['hasOwnProperty']['call'](_0x2ac142,'data')&&_0x10e1ba['uint32'](0x2a)['string'](_0x2ac142['data']),null!=_0x2ac142['hasComments']&&Object['hasOwnProperty']['call'](_0x2ac142,'hasComments')&&_0x10e1ba['uint32'](0x30)['bool'](_0x2ac142['hasComments']),null!=_0x2ac142['state']&&Object['hasOwnProperty']['call'](_0x2ac142,'state')&&_0x10e1ba['uint32'](0x3a)['string'](_0x2ac142['state']),null!=_0x2ac142['attributes']&&Object['hasOwnProperty']['call'](_0x2ac142,'attributes')&&_0x10e1ba['uint32'](0x42)['string'](_0x2ac142['attributes']),_0x10e1ba;},_0x113954['encodeDelimited']=function(_0x5c412a,_0x4064c9){return this['encode'](_0x5c412a,_0x4064c9)['ldelim']();},_0x113954['decode']=function(_0x180bfc,_0x2cfca1,_0x1c4a6d){_0x180bfc instanceof _0x150291||(_0x180bfc=_0x150291['create'](_0x180bfc));for(var _0x5d270c=void 0x0===_0x2cfca1?_0x180bfc['len']:_0x180bfc['pos']+_0x2cfca1,_0x5a05f6=new _0x2dfa82['TrackChangesAddSuggestionResponse']();_0x180bfc['pos']<_0x5d270c;){var _0x5d9927=_0x180bfc['uint32']();if(_0x5d9927===_0x1c4a6d)break;switch(_0x5d9927>>>0x3){case 0x1:_0x5a05f6['id']=_0x180bfc['string']();break;case 0x2:_0x5a05f6['authorId']=_0x180bfc['string']();break;case 0x3:_0x5a05f6['type']=_0x180bfc['string']();break;case 0x4:_0x5a05f6['createdAt']=_0x180bfc['string']();break;case 0x5:_0x5a05f6['data']=_0x180bfc['string']();break;case 0x6:_0x5a05f6['hasComments']=_0x180bfc['bool']();break;case 0x7:_0x5a05f6['state']=_0x180bfc['string']();break;case 0x8:_0x5a05f6['attributes']=_0x180bfc['string']();break;default:_0x180bfc['skipType'](0x7&_0x5d9927);}}return _0x5a05f6;},_0x113954['decodeDelimited']=function(_0x3bdfab){return _0x3bdfab instanceof _0x150291||(_0x3bdfab=new _0x150291(_0x3bdfab)),this['decode'](_0x3bdfab,_0x3bdfab['uint32']());},_0x113954['verify']=function(_0x1e033f){return'object'!=typeof _0x1e033f||null===_0x1e033f?'object\x20expected':null!=_0x1e033f['id']&&_0x1e033f['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x1e033f['id'])?'id:\x20string\x20expected':null!=_0x1e033f['authorId']&&_0x1e033f['hasOwnProperty']('authorId')&&!_0x4a15b3['isString'](_0x1e033f['authorId'])?'authorId:\x20string\x20expected':null!=_0x1e033f['type']&&_0x1e033f['hasOwnProperty']('type')&&!_0x4a15b3['isString'](_0x1e033f['type'])?'type:\x20string\x20expected':null!=_0x1e033f['createdAt']&&_0x1e033f['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x1e033f['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x1e033f['data']&&_0x1e033f['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x1e033f['data'])?'data:\x20string\x20expected':null!=_0x1e033f['hasComments']&&_0x1e033f['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x1e033f['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1e033f['state']&&_0x1e033f['hasOwnProperty']('state')&&!_0x4a15b3['isString'](_0x1e033f['state'])?'state:\x20string\x20expected':null!=_0x1e033f['attributes']&&_0x1e033f['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x1e033f['attributes'])?'attributes:\x20string\x20expected':null;},_0x113954['fromObject']=function(_0x3d0f3d){if(_0x3d0f3d instanceof _0x2dfa82['TrackChangesAddSuggestionResponse'])return _0x3d0f3d;var _0x122392=new _0x2dfa82['TrackChangesAddSuggestionResponse']();return null!=_0x3d0f3d['id']&&(_0x122392['id']=String(_0x3d0f3d['id'])),null!=_0x3d0f3d['authorId']&&(_0x122392['authorId']=String(_0x3d0f3d['authorId'])),null!=_0x3d0f3d['type']&&(_0x122392['type']=String(_0x3d0f3d['type'])),null!=_0x3d0f3d['createdAt']&&(_0x122392['createdAt']=String(_0x3d0f3d['createdAt'])),null!=_0x3d0f3d['data']&&(_0x122392['data']=String(_0x3d0f3d['data'])),null!=_0x3d0f3d['hasComments']&&(_0x122392['hasComments']=Boolean(_0x3d0f3d['hasComments'])),null!=_0x3d0f3d['state']&&(_0x122392['state']=String(_0x3d0f3d['state'])),null!=_0x3d0f3d['attributes']&&(_0x122392['attributes']=String(_0x3d0f3d['attributes'])),_0x122392;},_0x113954['toObject']=function(_0x148b43,_0xd170c2){_0xd170c2||(_0xd170c2={});var _0x5775df={};return _0xd170c2['defaults']&&(_0x5775df['id']='',_0x5775df['authorId']='',_0x5775df['type']='',_0x5775df['createdAt']='',_0x5775df['data']='',_0x5775df['hasComments']=!0x1,_0x5775df['state']='',_0x5775df['attributes']=''),null!=_0x148b43['id']&&_0x148b43['hasOwnProperty']('id')&&(_0x5775df['id']=_0x148b43['id']),null!=_0x148b43['authorId']&&_0x148b43['hasOwnProperty']('authorId')&&(_0x5775df['authorId']=_0x148b43['authorId']),null!=_0x148b43['type']&&_0x148b43['hasOwnProperty']('type')&&(_0x5775df['type']=_0x148b43['type']),null!=_0x148b43['createdAt']&&_0x148b43['hasOwnProperty']('createdAt')&&(_0x5775df['createdAt']=_0x148b43['createdAt']),null!=_0x148b43['data']&&_0x148b43['hasOwnProperty']('data')&&(_0x5775df['data']=_0x148b43['data']),null!=_0x148b43['hasComments']&&_0x148b43['hasOwnProperty']('hasComments')&&(_0x5775df['hasComments']=_0x148b43['hasComments']),null!=_0x148b43['state']&&_0x148b43['hasOwnProperty']('state')&&(_0x5775df['state']=_0x148b43['state']),null!=_0x148b43['attributes']&&_0x148b43['hasOwnProperty']('attributes')&&(_0x5775df['attributes']=_0x148b43['attributes']),_0x5775df;},_0x113954['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x113954['getTypeUrl']=function(_0x30868b){return void 0x0===_0x30868b&&(_0x30868b='type.googleapis.com'),_0x30868b+'/TrackChangesAddSuggestionResponse';},_0x113954;}()),_0x2dfa82['TrackChangesUpdateSuggestionMessage']=(function(){function _0x37a361(_0x42081c){if(_0x42081c){for(var _0x156b9f=Object['keys'](_0x42081c),_0xbc0fe1=0x0;_0xbc0fe1<_0x156b9f['length'];++_0xbc0fe1)null!=_0x42081c[_0x156b9f[_0xbc0fe1]]&&(this[_0x156b9f[_0xbc0fe1]]=_0x42081c[_0x156b9f[_0xbc0fe1]]);}}return _0x37a361['prototype']['id']='',_0x37a361['prototype']['documentId']='',_0x37a361['prototype']['hasComments']=!0x1,_0x37a361['prototype']['isHasCommentsModified']=!0x1,_0x37a361['prototype']['state']='',_0x37a361['prototype']['attributes']='',_0x37a361['create']=function(_0x12bb5a){return new _0x37a361(_0x12bb5a);},_0x37a361['encode']=function(_0x3f682f,_0x529373){return _0x529373||(_0x529373=_0x278790['create']()),null!=_0x3f682f['id']&&Object['hasOwnProperty']['call'](_0x3f682f,'id')&&_0x529373['uint32'](0xa)['string'](_0x3f682f['id']),null!=_0x3f682f['documentId']&&Object['hasOwnProperty']['call'](_0x3f682f,'documentId')&&_0x529373['uint32'](0x12)['string'](_0x3f682f['documentId']),null!=_0x3f682f['hasComments']&&Object['hasOwnProperty']['call'](_0x3f682f,'hasComments')&&_0x529373['uint32'](0x18)['bool'](_0x3f682f['hasComments']),null!=_0x3f682f['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x3f682f,'isHasCommentsModified')&&_0x529373['uint32'](0x20)['bool'](_0x3f682f['isHasCommentsModified']),null!=_0x3f682f['state']&&Object['hasOwnProperty']['call'](_0x3f682f,'state')&&_0x529373['uint32'](0x2a)['string'](_0x3f682f['state']),null!=_0x3f682f['attributes']&&Object['hasOwnProperty']['call'](_0x3f682f,'attributes')&&_0x529373['uint32'](0x32)['string'](_0x3f682f['attributes']),_0x529373;},_0x37a361['encodeDelimited']=function(_0x15e99b,_0x55d13d){return this['encode'](_0x15e99b,_0x55d13d)['ldelim']();},_0x37a361['decode']=function(_0x18cea8,_0x50d3ed,_0xe90ab){_0x18cea8 instanceof _0x150291||(_0x18cea8=_0x150291['create'](_0x18cea8));for(var _0x2fe26b=void 0x0===_0x50d3ed?_0x18cea8['len']:_0x18cea8['pos']+_0x50d3ed,_0x57c783=new _0x2dfa82['TrackChangesUpdateSuggestionMessage']();_0x18cea8['pos']<_0x2fe26b;){var _0x3a526a=_0x18cea8['uint32']();if(_0x3a526a===_0xe90ab)break;switch(_0x3a526a>>>0x3){case 0x1:_0x57c783['id']=_0x18cea8['string']();break;case 0x2:_0x57c783['documentId']=_0x18cea8['string']();break;case 0x3:_0x57c783['hasComments']=_0x18cea8['bool']();break;case 0x4:_0x57c783['isHasCommentsModified']=_0x18cea8['bool']();break;case 0x5:_0x57c783['state']=_0x18cea8['string']();break;case 0x6:_0x57c783['attributes']=_0x18cea8['string']();break;default:_0x18cea8['skipType'](0x7&_0x3a526a);}}return _0x57c783;},_0x37a361['decodeDelimited']=function(_0x32bfce){return _0x32bfce instanceof _0x150291||(_0x32bfce=new _0x150291(_0x32bfce)),this['decode'](_0x32bfce,_0x32bfce['uint32']());},_0x37a361['verify']=function(_0x1e304a){return'object'!=typeof _0x1e304a||null===_0x1e304a?'object\x20expected':null!=_0x1e304a['id']&&_0x1e304a['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x1e304a['id'])?'id:\x20string\x20expected':null!=_0x1e304a['documentId']&&_0x1e304a['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x1e304a['documentId'])?'documentId:\x20string\x20expected':null!=_0x1e304a['hasComments']&&_0x1e304a['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x1e304a['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1e304a['isHasCommentsModified']&&_0x1e304a['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x1e304a['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x1e304a['state']&&_0x1e304a['hasOwnProperty']('state')&&!_0x4a15b3['isString'](_0x1e304a['state'])?'state:\x20string\x20expected':null!=_0x1e304a['attributes']&&_0x1e304a['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x1e304a['attributes'])?'attributes:\x20string\x20expected':null;},_0x37a361['fromObject']=function(_0x5470a9){if(_0x5470a9 instanceof _0x2dfa82['TrackChangesUpdateSuggestionMessage'])return _0x5470a9;var _0x4a583f=new _0x2dfa82['TrackChangesUpdateSuggestionMessage']();return null!=_0x5470a9['id']&&(_0x4a583f['id']=String(_0x5470a9['id'])),null!=_0x5470a9['documentId']&&(_0x4a583f['documentId']=String(_0x5470a9['documentId'])),null!=_0x5470a9['hasComments']&&(_0x4a583f['hasComments']=Boolean(_0x5470a9['hasComments'])),null!=_0x5470a9['isHasCommentsModified']&&(_0x4a583f['isHasCommentsModified']=Boolean(_0x5470a9['isHasCommentsModified'])),null!=_0x5470a9['state']&&(_0x4a583f['state']=String(_0x5470a9['state'])),null!=_0x5470a9['attributes']&&(_0x4a583f['attributes']=String(_0x5470a9['attributes'])),_0x4a583f;},_0x37a361['toObject']=function(_0x5cd3c4,_0x19d260){_0x19d260||(_0x19d260={});var _0x4e82b1={};return _0x19d260['defaults']&&(_0x4e82b1['id']='',_0x4e82b1['documentId']='',_0x4e82b1['hasComments']=!0x1,_0x4e82b1['isHasCommentsModified']=!0x1,_0x4e82b1['state']='',_0x4e82b1['attributes']=''),null!=_0x5cd3c4['id']&&_0x5cd3c4['hasOwnProperty']('id')&&(_0x4e82b1['id']=_0x5cd3c4['id']),null!=_0x5cd3c4['documentId']&&_0x5cd3c4['hasOwnProperty']('documentId')&&(_0x4e82b1['documentId']=_0x5cd3c4['documentId']),null!=_0x5cd3c4['hasComments']&&_0x5cd3c4['hasOwnProperty']('hasComments')&&(_0x4e82b1['hasComments']=_0x5cd3c4['hasComments']),null!=_0x5cd3c4['isHasCommentsModified']&&_0x5cd3c4['hasOwnProperty']('isHasCommentsModified')&&(_0x4e82b1['isHasCommentsModified']=_0x5cd3c4['isHasCommentsModified']),null!=_0x5cd3c4['state']&&_0x5cd3c4['hasOwnProperty']('state')&&(_0x4e82b1['state']=_0x5cd3c4['state']),null!=_0x5cd3c4['attributes']&&_0x5cd3c4['hasOwnProperty']('attributes')&&(_0x4e82b1['attributes']=_0x5cd3c4['attributes']),_0x4e82b1;},_0x37a361['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x37a361['getTypeUrl']=function(_0x5e41f6){return void 0x0===_0x5e41f6&&(_0x5e41f6='type.googleapis.com'),_0x5e41f6+'/TrackChangesUpdateSuggestionMessage';},_0x37a361;}()),_0x2dfa82['TrackChangesGetSuggestionMessage']=(function(){function _0x379942(_0x552d5c){if(_0x552d5c){for(var _0x3c40a5=Object['keys'](_0x552d5c),_0x4ea4e4=0x0;_0x4ea4e4<_0x3c40a5['length'];++_0x4ea4e4)null!=_0x552d5c[_0x3c40a5[_0x4ea4e4]]&&(this[_0x3c40a5[_0x4ea4e4]]=_0x552d5c[_0x3c40a5[_0x4ea4e4]]);}}return _0x379942['prototype']['id']='',_0x379942['prototype']['documentId']='',_0x379942['create']=function(_0x18053a){return new _0x379942(_0x18053a);},_0x379942['encode']=function(_0x2a5774,_0x211943){return _0x211943||(_0x211943=_0x278790['create']()),null!=_0x2a5774['id']&&Object['hasOwnProperty']['call'](_0x2a5774,'id')&&_0x211943['uint32'](0xa)['string'](_0x2a5774['id']),null!=_0x2a5774['documentId']&&Object['hasOwnProperty']['call'](_0x2a5774,'documentId')&&_0x211943['uint32'](0x12)['string'](_0x2a5774['documentId']),_0x211943;},_0x379942['encodeDelimited']=function(_0x45bc2a,_0x314750){return this['encode'](_0x45bc2a,_0x314750)['ldelim']();},_0x379942['decode']=function(_0x5020fc,_0x59923d,_0x4bb86b){_0x5020fc instanceof _0x150291||(_0x5020fc=_0x150291['create'](_0x5020fc));for(var _0x46929a=void 0x0===_0x59923d?_0x5020fc['len']:_0x5020fc['pos']+_0x59923d,_0x2641ec=new _0x2dfa82['TrackChangesGetSuggestionMessage']();_0x5020fc['pos']<_0x46929a;){var _0x49f7d9=_0x5020fc['uint32']();if(_0x49f7d9===_0x4bb86b)break;switch(_0x49f7d9>>>0x3){case 0x1:_0x2641ec['id']=_0x5020fc['string']();break;case 0x2:_0x2641ec['documentId']=_0x5020fc['string']();break;default:_0x5020fc['skipType'](0x7&_0x49f7d9);}}return _0x2641ec;},_0x379942['decodeDelimited']=function(_0xce6e1b){return _0xce6e1b instanceof _0x150291||(_0xce6e1b=new _0x150291(_0xce6e1b)),this['decode'](_0xce6e1b,_0xce6e1b['uint32']());},_0x379942['verify']=function(_0x1068ff){return'object'!=typeof _0x1068ff||null===_0x1068ff?'object\x20expected':null!=_0x1068ff['id']&&_0x1068ff['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x1068ff['id'])?'id:\x20string\x20expected':null!=_0x1068ff['documentId']&&_0x1068ff['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x1068ff['documentId'])?'documentId:\x20string\x20expected':null;},_0x379942['fromObject']=function(_0x25044f){if(_0x25044f instanceof _0x2dfa82['TrackChangesGetSuggestionMessage'])return _0x25044f;var _0x4e587b=new _0x2dfa82['TrackChangesGetSuggestionMessage']();return null!=_0x25044f['id']&&(_0x4e587b['id']=String(_0x25044f['id'])),null!=_0x25044f['documentId']&&(_0x4e587b['documentId']=String(_0x25044f['documentId'])),_0x4e587b;},_0x379942['toObject']=function(_0xa5e4b2,_0x1ec35d){_0x1ec35d||(_0x1ec35d={});var _0xc3fc14={};return _0x1ec35d['defaults']&&(_0xc3fc14['id']='',_0xc3fc14['documentId']=''),null!=_0xa5e4b2['id']&&_0xa5e4b2['hasOwnProperty']('id')&&(_0xc3fc14['id']=_0xa5e4b2['id']),null!=_0xa5e4b2['documentId']&&_0xa5e4b2['hasOwnProperty']('documentId')&&(_0xc3fc14['documentId']=_0xa5e4b2['documentId']),_0xc3fc14;},_0x379942['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x379942['getTypeUrl']=function(_0x402dde){return void 0x0===_0x402dde&&(_0x402dde='type.googleapis.com'),_0x402dde+'/TrackChangesGetSuggestionMessage';},_0x379942;}()),_0x2dfa82['TrackChangesGetAllSuggestionMessage']=(function(){function _0x51af67(_0x15a0cd){if(_0x15a0cd){for(var _0x3b6ece=Object['keys'](_0x15a0cd),_0x4b0d50=0x0;_0x4b0d50<_0x3b6ece['length'];++_0x4b0d50)null!=_0x15a0cd[_0x3b6ece[_0x4b0d50]]&&(this[_0x3b6ece[_0x4b0d50]]=_0x15a0cd[_0x3b6ece[_0x4b0d50]]);}}return _0x51af67['prototype']['documentId']='',_0x51af67['create']=function(_0x51e982){return new _0x51af67(_0x51e982);},_0x51af67['encode']=function(_0x51ca6d,_0x420811){return _0x420811||(_0x420811=_0x278790['create']()),null!=_0x51ca6d['documentId']&&Object['hasOwnProperty']['call'](_0x51ca6d,'documentId')&&_0x420811['uint32'](0xa)['string'](_0x51ca6d['documentId']),_0x420811;},_0x51af67['encodeDelimited']=function(_0x52be22,_0x5757f2){return this['encode'](_0x52be22,_0x5757f2)['ldelim']();},_0x51af67['decode']=function(_0x116312,_0x464988,_0x15a410){_0x116312 instanceof _0x150291||(_0x116312=_0x150291['create'](_0x116312));for(var _0x1a2d4c=void 0x0===_0x464988?_0x116312['len']:_0x116312['pos']+_0x464988,_0x1d6944=new _0x2dfa82['TrackChangesGetAllSuggestionMessage']();_0x116312['pos']<_0x1a2d4c;){var _0x138ace=_0x116312['uint32']();if(_0x138ace===_0x15a410)break;_0x138ace>>>0x3==0x1?_0x1d6944['documentId']=_0x116312['string']():_0x116312['skipType'](0x7&_0x138ace);}return _0x1d6944;},_0x51af67['decodeDelimited']=function(_0x30a7f7){return _0x30a7f7 instanceof _0x150291||(_0x30a7f7=new _0x150291(_0x30a7f7)),this['decode'](_0x30a7f7,_0x30a7f7['uint32']());},_0x51af67['verify']=function(_0x48c2ac){return'object'!=typeof _0x48c2ac||null===_0x48c2ac?'object\x20expected':null!=_0x48c2ac['documentId']&&_0x48c2ac['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x48c2ac['documentId'])?'documentId:\x20string\x20expected':null;},_0x51af67['fromObject']=function(_0x4c6657){if(_0x4c6657 instanceof _0x2dfa82['TrackChangesGetAllSuggestionMessage'])return _0x4c6657;var _0x5361a9=new _0x2dfa82['TrackChangesGetAllSuggestionMessage']();return null!=_0x4c6657['documentId']&&(_0x5361a9['documentId']=String(_0x4c6657['documentId'])),_0x5361a9;},_0x51af67['toObject']=function(_0x4897f1,_0x273d47){_0x273d47||(_0x273d47={});var _0x5cc59f={};return _0x273d47['defaults']&&(_0x5cc59f['documentId']=''),null!=_0x4897f1['documentId']&&_0x4897f1['hasOwnProperty']('documentId')&&(_0x5cc59f['documentId']=_0x4897f1['documentId']),_0x5cc59f;},_0x51af67['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x51af67['getTypeUrl']=function(_0x389f3a){return void 0x0===_0x389f3a&&(_0x389f3a='type.googleapis.com'),_0x389f3a+'/TrackChangesGetAllSuggestionMessage';},_0x51af67;}()),_0x2dfa82['TrackChangesConnectMessage']=(function(){function _0x1bfb52(_0x196047){if(_0x196047){for(var _0x41d0c1=Object['keys'](_0x196047),_0x1031ef=0x0;_0x1031ef<_0x41d0c1['length'];++_0x1031ef)null!=_0x196047[_0x41d0c1[_0x1031ef]]&&(this[_0x41d0c1[_0x1031ef]]=_0x196047[_0x41d0c1[_0x1031ef]]);}}return _0x1bfb52['prototype']['documentId']='',_0x1bfb52['create']=function(_0x23f8c9){return new _0x1bfb52(_0x23f8c9);},_0x1bfb52['encode']=function(_0x83940f,_0x6d2a96){return _0x6d2a96||(_0x6d2a96=_0x278790['create']()),null!=_0x83940f['documentId']&&Object['hasOwnProperty']['call'](_0x83940f,'documentId')&&_0x6d2a96['uint32'](0xa)['string'](_0x83940f['documentId']),_0x6d2a96;},_0x1bfb52['encodeDelimited']=function(_0x31417d,_0x5580d7){return this['encode'](_0x31417d,_0x5580d7)['ldelim']();},_0x1bfb52['decode']=function(_0x532a3a,_0x2bb6b2,_0x10cda1){_0x532a3a instanceof _0x150291||(_0x532a3a=_0x150291['create'](_0x532a3a));for(var _0x5a52b0=void 0x0===_0x2bb6b2?_0x532a3a['len']:_0x532a3a['pos']+_0x2bb6b2,_0x3ec903=new _0x2dfa82['TrackChangesConnectMessage']();_0x532a3a['pos']<_0x5a52b0;){var _0xfcee32=_0x532a3a['uint32']();if(_0xfcee32===_0x10cda1)break;_0xfcee32>>>0x3==0x1?_0x3ec903['documentId']=_0x532a3a['string']():_0x532a3a['skipType'](0x7&_0xfcee32);}return _0x3ec903;},_0x1bfb52['decodeDelimited']=function(_0x239ff8){return _0x239ff8 instanceof _0x150291||(_0x239ff8=new _0x150291(_0x239ff8)),this['decode'](_0x239ff8,_0x239ff8['uint32']());},_0x1bfb52['verify']=function(_0x8bd901){return'object'!=typeof _0x8bd901||null===_0x8bd901?'object\x20expected':null!=_0x8bd901['documentId']&&_0x8bd901['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x8bd901['documentId'])?'documentId:\x20string\x20expected':null;},_0x1bfb52['fromObject']=function(_0x2d1357){if(_0x2d1357 instanceof _0x2dfa82['TrackChangesConnectMessage'])return _0x2d1357;var _0x43f59c=new _0x2dfa82['TrackChangesConnectMessage']();return null!=_0x2d1357['documentId']&&(_0x43f59c['documentId']=String(_0x2d1357['documentId'])),_0x43f59c;},_0x1bfb52['toObject']=function(_0x1f3263,_0x29d294){_0x29d294||(_0x29d294={});var _0x2fd80e={};return _0x29d294['defaults']&&(_0x2fd80e['documentId']=''),null!=_0x1f3263['documentId']&&_0x1f3263['hasOwnProperty']('documentId')&&(_0x2fd80e['documentId']=_0x1f3263['documentId']),_0x2fd80e;},_0x1bfb52['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1bfb52['getTypeUrl']=function(_0x39020a){return void 0x0===_0x39020a&&(_0x39020a='type.googleapis.com'),_0x39020a+'/TrackChangesConnectMessage';},_0x1bfb52;}()),_0x2dfa82['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x477839(_0x3b7574){if(this['ids']=[],_0x3b7574){for(var _0xaba931=Object['keys'](_0x3b7574),_0x508666=0x0;_0x508666<_0xaba931['length'];++_0x508666)null!=_0x3b7574[_0xaba931[_0x508666]]&&(this[_0xaba931[_0x508666]]=_0x3b7574[_0xaba931[_0x508666]]);}}return _0x477839['prototype']['ids']=_0x4a15b3['emptyArray'],_0x477839['prototype']['documentId']='',_0x477839['prototype']['state']='',_0x477839['create']=function(_0x914cc0){return new _0x477839(_0x914cc0);},_0x477839['encode']=function(_0x35c102,_0x50b2c0){if(_0x50b2c0||(_0x50b2c0=_0x278790['create']()),null!=_0x35c102['ids']&&_0x35c102['ids']['length']){for(var _0x5c195d=0x0;_0x5c195d<_0x35c102['ids']['length'];++_0x5c195d)_0x50b2c0['uint32'](0xa)['string'](_0x35c102['ids'][_0x5c195d]);}return null!=_0x35c102['documentId']&&Object['hasOwnProperty']['call'](_0x35c102,'documentId')&&_0x50b2c0['uint32'](0x12)['string'](_0x35c102['documentId']),null!=_0x35c102['state']&&Object['hasOwnProperty']['call'](_0x35c102,'state')&&_0x50b2c0['uint32'](0x1a)['string'](_0x35c102['state']),_0x50b2c0;},_0x477839['encodeDelimited']=function(_0x5b089d,_0x25dcba){return this['encode'](_0x5b089d,_0x25dcba)['ldelim']();},_0x477839['decode']=function(_0x5cf252,_0x497ee2,_0x16e789){_0x5cf252 instanceof _0x150291||(_0x5cf252=_0x150291['create'](_0x5cf252));for(var _0x1652d3=void 0x0===_0x497ee2?_0x5cf252['len']:_0x5cf252['pos']+_0x497ee2,_0x123cff=new _0x2dfa82['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x5cf252['pos']<_0x1652d3;){var _0x465bde=_0x5cf252['uint32']();if(_0x465bde===_0x16e789)break;switch(_0x465bde>>>0x3){case 0x1:_0x123cff['ids']&&_0x123cff['ids']['length']||(_0x123cff['ids']=[]),_0x123cff['ids']['push'](_0x5cf252['string']());break;case 0x2:_0x123cff['documentId']=_0x5cf252['string']();break;case 0x3:_0x123cff['state']=_0x5cf252['string']();break;default:_0x5cf252['skipType'](0x7&_0x465bde);}}return _0x123cff;},_0x477839['decodeDelimited']=function(_0x74ecb9){return _0x74ecb9 instanceof _0x150291||(_0x74ecb9=new _0x150291(_0x74ecb9)),this['decode'](_0x74ecb9,_0x74ecb9['uint32']());},_0x477839['verify']=function(_0x39253d){if('object'!=typeof _0x39253d||null===_0x39253d)return'object\x20expected';if(null!=_0x39253d['ids']&&_0x39253d['hasOwnProperty']('ids')){if(!Array['isArray'](_0x39253d['ids']))return'ids:\x20array\x20expected';for(var _0x141a74=0x0;_0x141a74<_0x39253d['ids']['length'];++_0x141a74)if(!_0x4a15b3['isString'](_0x39253d['ids'][_0x141a74]))return'ids:\x20string[]\x20expected';}return null!=_0x39253d['documentId']&&_0x39253d['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x39253d['documentId'])?'documentId:\x20string\x20expected':null!=_0x39253d['state']&&_0x39253d['hasOwnProperty']('state')&&!_0x4a15b3['isString'](_0x39253d['state'])?'state:\x20string\x20expected':null;},_0x477839['fromObject']=function(_0x22aed4){if(_0x22aed4 instanceof _0x2dfa82['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x22aed4;var _0x20d9ed=new _0x2dfa82['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x22aed4['ids']){if(!Array['isArray'](_0x22aed4['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x20d9ed['ids']=[];for(var _0x4f4107=0x0;_0x4f4107<_0x22aed4['ids']['length'];++_0x4f4107)_0x20d9ed['ids'][_0x4f4107]=String(_0x22aed4['ids'][_0x4f4107]);}return null!=_0x22aed4['documentId']&&(_0x20d9ed['documentId']=String(_0x22aed4['documentId'])),null!=_0x22aed4['state']&&(_0x20d9ed['state']=String(_0x22aed4['state'])),_0x20d9ed;},_0x477839['toObject']=function(_0x3b4e5d,_0x9e2cca){_0x9e2cca||(_0x9e2cca={});var _0x39dcfb={};if((_0x9e2cca['arrays']||_0x9e2cca['defaults'])&&(_0x39dcfb['ids']=[]),_0x9e2cca['defaults']&&(_0x39dcfb['documentId']='',_0x39dcfb['state']=''),_0x3b4e5d['ids']&&_0x3b4e5d['ids']['length']){_0x39dcfb['ids']=[];for(var _0x13b5c1=0x0;_0x13b5c1<_0x3b4e5d['ids']['length'];++_0x13b5c1)_0x39dcfb['ids'][_0x13b5c1]=_0x3b4e5d['ids'][_0x13b5c1];}return null!=_0x3b4e5d['documentId']&&_0x3b4e5d['hasOwnProperty']('documentId')&&(_0x39dcfb['documentId']=_0x3b4e5d['documentId']),null!=_0x3b4e5d['state']&&_0x3b4e5d['hasOwnProperty']('state')&&(_0x39dcfb['state']=_0x3b4e5d['state']),_0x39dcfb;},_0x477839['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x477839['getTypeUrl']=function(_0xad250c){return void 0x0===_0xad250c&&(_0xad250c='type.googleapis.com'),_0xad250c+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x477839;}()),_0x2dfa82['TrackChangesAddSuggestionMessage']=(function(){function _0x96361e(_0x4dd387){if(_0x4dd387){for(var _0x15d7b8=Object['keys'](_0x4dd387),_0x21f20f=0x0;_0x21f20f<_0x15d7b8['length'];++_0x21f20f)null!=_0x4dd387[_0x15d7b8[_0x21f20f]]&&(this[_0x15d7b8[_0x21f20f]]=_0x4dd387[_0x15d7b8[_0x21f20f]]);}}return _0x96361e['prototype']['id']='',_0x96361e['prototype']['documentId']='',_0x96361e['prototype']['type']='',_0x96361e['prototype']['data']='',_0x96361e['prototype']['originalSuggestionId']='',_0x96361e['prototype']['attributes']='',_0x96361e['create']=function(_0x18422d){return new _0x96361e(_0x18422d);},_0x96361e['encode']=function(_0x1a9d12,_0x34334b){return _0x34334b||(_0x34334b=_0x278790['create']()),null!=_0x1a9d12['id']&&Object['hasOwnProperty']['call'](_0x1a9d12,'id')&&_0x34334b['uint32'](0xa)['string'](_0x1a9d12['id']),null!=_0x1a9d12['documentId']&&Object['hasOwnProperty']['call'](_0x1a9d12,'documentId')&&_0x34334b['uint32'](0x12)['string'](_0x1a9d12['documentId']),null!=_0x1a9d12['type']&&Object['hasOwnProperty']['call'](_0x1a9d12,'type')&&_0x34334b['uint32'](0x1a)['string'](_0x1a9d12['type']),null!=_0x1a9d12['data']&&Object['hasOwnProperty']['call'](_0x1a9d12,'data')&&_0x34334b['uint32'](0x22)['string'](_0x1a9d12['data']),null!=_0x1a9d12['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x1a9d12,'originalSuggestionId')&&_0x34334b['uint32'](0x2a)['string'](_0x1a9d12['originalSuggestionId']),null!=_0x1a9d12['attributes']&&Object['hasOwnProperty']['call'](_0x1a9d12,'attributes')&&_0x34334b['uint32'](0x32)['string'](_0x1a9d12['attributes']),_0x34334b;},_0x96361e['encodeDelimited']=function(_0x44e1ac,_0x506416){return this['encode'](_0x44e1ac,_0x506416)['ldelim']();},_0x96361e['decode']=function(_0x221d31,_0x439315,_0x15ef0f){_0x221d31 instanceof _0x150291||(_0x221d31=_0x150291['create'](_0x221d31));for(var _0x2a0f89=void 0x0===_0x439315?_0x221d31['len']:_0x221d31['pos']+_0x439315,_0x492b2c=new _0x2dfa82['TrackChangesAddSuggestionMessage']();_0x221d31['pos']<_0x2a0f89;){var _0x3458bf=_0x221d31['uint32']();if(_0x3458bf===_0x15ef0f)break;switch(_0x3458bf>>>0x3){case 0x1:_0x492b2c['id']=_0x221d31['string']();break;case 0x2:_0x492b2c['documentId']=_0x221d31['string']();break;case 0x3:_0x492b2c['type']=_0x221d31['string']();break;case 0x4:_0x492b2c['data']=_0x221d31['string']();break;case 0x5:_0x492b2c['originalSuggestionId']=_0x221d31['string']();break;case 0x6:_0x492b2c['attributes']=_0x221d31['string']();break;default:_0x221d31['skipType'](0x7&_0x3458bf);}}return _0x492b2c;},_0x96361e['decodeDelimited']=function(_0x150d97){return _0x150d97 instanceof _0x150291||(_0x150d97=new _0x150291(_0x150d97)),this['decode'](_0x150d97,_0x150d97['uint32']());},_0x96361e['verify']=function(_0x22545a){return'object'!=typeof _0x22545a||null===_0x22545a?'object\x20expected':null!=_0x22545a['id']&&_0x22545a['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x22545a['id'])?'id:\x20string\x20expected':null!=_0x22545a['documentId']&&_0x22545a['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x22545a['documentId'])?'documentId:\x20string\x20expected':null!=_0x22545a['type']&&_0x22545a['hasOwnProperty']('type')&&!_0x4a15b3['isString'](_0x22545a['type'])?'type:\x20string\x20expected':null!=_0x22545a['data']&&_0x22545a['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x22545a['data'])?'data:\x20string\x20expected':null!=_0x22545a['originalSuggestionId']&&_0x22545a['hasOwnProperty']('originalSuggestionId')&&!_0x4a15b3['isString'](_0x22545a['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x22545a['attributes']&&_0x22545a['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x22545a['attributes'])?'attributes:\x20string\x20expected':null;},_0x96361e['fromObject']=function(_0x22d723){if(_0x22d723 instanceof _0x2dfa82['TrackChangesAddSuggestionMessage'])return _0x22d723;var _0x13b471=new _0x2dfa82['TrackChangesAddSuggestionMessage']();return null!=_0x22d723['id']&&(_0x13b471['id']=String(_0x22d723['id'])),null!=_0x22d723['documentId']&&(_0x13b471['documentId']=String(_0x22d723['documentId'])),null!=_0x22d723['type']&&(_0x13b471['type']=String(_0x22d723['type'])),null!=_0x22d723['data']&&(_0x13b471['data']=String(_0x22d723['data'])),null!=_0x22d723['originalSuggestionId']&&(_0x13b471['originalSuggestionId']=String(_0x22d723['originalSuggestionId'])),null!=_0x22d723['attributes']&&(_0x13b471['attributes']=String(_0x22d723['attributes'])),_0x13b471;},_0x96361e['toObject']=function(_0x508808,_0x5a3c00){_0x5a3c00||(_0x5a3c00={});var _0x27181c={};return _0x5a3c00['defaults']&&(_0x27181c['id']='',_0x27181c['documentId']='',_0x27181c['type']='',_0x27181c['data']='',_0x27181c['originalSuggestionId']='',_0x27181c['attributes']=''),null!=_0x508808['id']&&_0x508808['hasOwnProperty']('id')&&(_0x27181c['id']=_0x508808['id']),null!=_0x508808['documentId']&&_0x508808['hasOwnProperty']('documentId')&&(_0x27181c['documentId']=_0x508808['documentId']),null!=_0x508808['type']&&_0x508808['hasOwnProperty']('type')&&(_0x27181c['type']=_0x508808['type']),null!=_0x508808['data']&&_0x508808['hasOwnProperty']('data')&&(_0x27181c['data']=_0x508808['data']),null!=_0x508808['originalSuggestionId']&&_0x508808['hasOwnProperty']('originalSuggestionId')&&(_0x27181c['originalSuggestionId']=_0x508808['originalSuggestionId']),null!=_0x508808['attributes']&&_0x508808['hasOwnProperty']('attributes')&&(_0x27181c['attributes']=_0x508808['attributes']),_0x27181c;},_0x96361e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x96361e['getTypeUrl']=function(_0x161742){return void 0x0===_0x161742&&(_0x161742='type.googleapis.com'),_0x161742+'/TrackChangesAddSuggestionMessage';},_0x96361e;}()),_0x2dfa82['SuggestionDescriptor']=(function(){function _0x3b0ed9(_0x4c070d){if(_0x4c070d){for(var _0x5552d7=Object['keys'](_0x4c070d),_0x43ef1b=0x0;_0x43ef1b<_0x5552d7['length'];++_0x43ef1b)null!=_0x4c070d[_0x5552d7[_0x43ef1b]]&&(this[_0x5552d7[_0x43ef1b]]=_0x4c070d[_0x5552d7[_0x43ef1b]]);}}return _0x3b0ed9['prototype']['id']='',_0x3b0ed9['prototype']['authorId']='',_0x3b0ed9['prototype']['type']='',_0x3b0ed9['prototype']['createdAt']='',_0x3b0ed9['prototype']['data']='',_0x3b0ed9['prototype']['hasComments']=!0x1,_0x3b0ed9['prototype']['state']='',_0x3b0ed9['prototype']['attributes']='',_0x3b0ed9['create']=function(_0x1e5242){return new _0x3b0ed9(_0x1e5242);},_0x3b0ed9['encode']=function(_0x55bd9d,_0xb87697){return _0xb87697||(_0xb87697=_0x278790['create']()),null!=_0x55bd9d['id']&&Object['hasOwnProperty']['call'](_0x55bd9d,'id')&&_0xb87697['uint32'](0xa)['string'](_0x55bd9d['id']),null!=_0x55bd9d['authorId']&&Object['hasOwnProperty']['call'](_0x55bd9d,'authorId')&&_0xb87697['uint32'](0x12)['string'](_0x55bd9d['authorId']),null!=_0x55bd9d['type']&&Object['hasOwnProperty']['call'](_0x55bd9d,'type')&&_0xb87697['uint32'](0x1a)['string'](_0x55bd9d['type']),null!=_0x55bd9d['createdAt']&&Object['hasOwnProperty']['call'](_0x55bd9d,'createdAt')&&_0xb87697['uint32'](0x22)['string'](_0x55bd9d['createdAt']),null!=_0x55bd9d['data']&&Object['hasOwnProperty']['call'](_0x55bd9d,'data')&&_0xb87697['uint32'](0x2a)['string'](_0x55bd9d['data']),null!=_0x55bd9d['hasComments']&&Object['hasOwnProperty']['call'](_0x55bd9d,'hasComments')&&_0xb87697['uint32'](0x30)['bool'](_0x55bd9d['hasComments']),null!=_0x55bd9d['state']&&Object['hasOwnProperty']['call'](_0x55bd9d,'state')&&_0xb87697['uint32'](0x3a)['string'](_0x55bd9d['state']),null!=_0x55bd9d['attributes']&&Object['hasOwnProperty']['call'](_0x55bd9d,'attributes')&&_0xb87697['uint32'](0x42)['string'](_0x55bd9d['attributes']),_0xb87697;},_0x3b0ed9['encodeDelimited']=function(_0x263012,_0x2d4c74){return this['encode'](_0x263012,_0x2d4c74)['ldelim']();},_0x3b0ed9['decode']=function(_0x506aae,_0x699d55,_0x7b5724){_0x506aae instanceof _0x150291||(_0x506aae=_0x150291['create'](_0x506aae));for(var _0x5a8ef5=void 0x0===_0x699d55?_0x506aae['len']:_0x506aae['pos']+_0x699d55,_0x14ed4c=new _0x2dfa82['SuggestionDescriptor']();_0x506aae['pos']<_0x5a8ef5;){var _0x4fdb71=_0x506aae['uint32']();if(_0x4fdb71===_0x7b5724)break;switch(_0x4fdb71>>>0x3){case 0x1:_0x14ed4c['id']=_0x506aae['string']();break;case 0x2:_0x14ed4c['authorId']=_0x506aae['string']();break;case 0x3:_0x14ed4c['type']=_0x506aae['string']();break;case 0x4:_0x14ed4c['createdAt']=_0x506aae['string']();break;case 0x5:_0x14ed4c['data']=_0x506aae['string']();break;case 0x6:_0x14ed4c['hasComments']=_0x506aae['bool']();break;case 0x7:_0x14ed4c['state']=_0x506aae['string']();break;case 0x8:_0x14ed4c['attributes']=_0x506aae['string']();break;default:_0x506aae['skipType'](0x7&_0x4fdb71);}}return _0x14ed4c;},_0x3b0ed9['decodeDelimited']=function(_0x5ae62c){return _0x5ae62c instanceof _0x150291||(_0x5ae62c=new _0x150291(_0x5ae62c)),this['decode'](_0x5ae62c,_0x5ae62c['uint32']());},_0x3b0ed9['verify']=function(_0x2c9584){return'object'!=typeof _0x2c9584||null===_0x2c9584?'object\x20expected':null!=_0x2c9584['id']&&_0x2c9584['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x2c9584['id'])?'id:\x20string\x20expected':null!=_0x2c9584['authorId']&&_0x2c9584['hasOwnProperty']('authorId')&&!_0x4a15b3['isString'](_0x2c9584['authorId'])?'authorId:\x20string\x20expected':null!=_0x2c9584['type']&&_0x2c9584['hasOwnProperty']('type')&&!_0x4a15b3['isString'](_0x2c9584['type'])?'type:\x20string\x20expected':null!=_0x2c9584['createdAt']&&_0x2c9584['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x2c9584['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2c9584['data']&&_0x2c9584['hasOwnProperty']('data')&&!_0x4a15b3['isString'](_0x2c9584['data'])?'data:\x20string\x20expected':null!=_0x2c9584['hasComments']&&_0x2c9584['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x2c9584['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x2c9584['state']&&_0x2c9584['hasOwnProperty']('state')&&!_0x4a15b3['isString'](_0x2c9584['state'])?'state:\x20string\x20expected':null!=_0x2c9584['attributes']&&_0x2c9584['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x2c9584['attributes'])?'attributes:\x20string\x20expected':null;},_0x3b0ed9['fromObject']=function(_0x289904){if(_0x289904 instanceof _0x2dfa82['SuggestionDescriptor'])return _0x289904;var _0x568c07=new _0x2dfa82['SuggestionDescriptor']();return null!=_0x289904['id']&&(_0x568c07['id']=String(_0x289904['id'])),null!=_0x289904['authorId']&&(_0x568c07['authorId']=String(_0x289904['authorId'])),null!=_0x289904['type']&&(_0x568c07['type']=String(_0x289904['type'])),null!=_0x289904['createdAt']&&(_0x568c07['createdAt']=String(_0x289904['createdAt'])),null!=_0x289904['data']&&(_0x568c07['data']=String(_0x289904['data'])),null!=_0x289904['hasComments']&&(_0x568c07['hasComments']=Boolean(_0x289904['hasComments'])),null!=_0x289904['state']&&(_0x568c07['state']=String(_0x289904['state'])),null!=_0x289904['attributes']&&(_0x568c07['attributes']=String(_0x289904['attributes'])),_0x568c07;},_0x3b0ed9['toObject']=function(_0x63f498,_0x5bcda1){_0x5bcda1||(_0x5bcda1={});var _0x36b5d1={};return _0x5bcda1['defaults']&&(_0x36b5d1['id']='',_0x36b5d1['authorId']='',_0x36b5d1['type']='',_0x36b5d1['createdAt']='',_0x36b5d1['data']='',_0x36b5d1['hasComments']=!0x1,_0x36b5d1['state']='',_0x36b5d1['attributes']=''),null!=_0x63f498['id']&&_0x63f498['hasOwnProperty']('id')&&(_0x36b5d1['id']=_0x63f498['id']),null!=_0x63f498['authorId']&&_0x63f498['hasOwnProperty']('authorId')&&(_0x36b5d1['authorId']=_0x63f498['authorId']),null!=_0x63f498['type']&&_0x63f498['hasOwnProperty']('type')&&(_0x36b5d1['type']=_0x63f498['type']),null!=_0x63f498['createdAt']&&_0x63f498['hasOwnProperty']('createdAt')&&(_0x36b5d1['createdAt']=_0x63f498['createdAt']),null!=_0x63f498['data']&&_0x63f498['hasOwnProperty']('data')&&(_0x36b5d1['data']=_0x63f498['data']),null!=_0x63f498['hasComments']&&_0x63f498['hasOwnProperty']('hasComments')&&(_0x36b5d1['hasComments']=_0x63f498['hasComments']),null!=_0x63f498['state']&&_0x63f498['hasOwnProperty']('state')&&(_0x36b5d1['state']=_0x63f498['state']),null!=_0x63f498['attributes']&&_0x63f498['hasOwnProperty']('attributes')&&(_0x36b5d1['attributes']=_0x63f498['attributes']),_0x36b5d1;},_0x3b0ed9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3b0ed9['getTypeUrl']=function(_0x455154){return void 0x0===_0x455154&&(_0x455154='type.googleapis.com'),_0x455154+'/SuggestionDescriptor';},_0x3b0ed9;}()),_0x2dfa82['SessionsConnectResponse']=(function(){function _0x53bcb8(_0x39cd54){if(this['sockets']=[],_0x39cd54){for(var _0x44eb02=Object['keys'](_0x39cd54),_0x14af13=0x0;_0x14af13<_0x44eb02['length'];++_0x14af13)null!=_0x39cd54[_0x44eb02[_0x14af13]]&&(this[_0x44eb02[_0x14af13]]=_0x39cd54[_0x44eb02[_0x14af13]]);}}return _0x53bcb8['prototype']['channel']='',_0x53bcb8['prototype']['sockets']=_0x4a15b3['emptyArray'],_0x53bcb8['create']=function(_0x27b196){return new _0x53bcb8(_0x27b196);},_0x53bcb8['encode']=function(_0x463cf6,_0x1fb39e){if(_0x1fb39e||(_0x1fb39e=_0x278790['create']()),null!=_0x463cf6['channel']&&Object['hasOwnProperty']['call'](_0x463cf6,'channel')&&_0x1fb39e['uint32'](0xa)['string'](_0x463cf6['channel']),null!=_0x463cf6['sockets']&&_0x463cf6['sockets']['length']){for(var _0x56df96=0x0;_0x56df96<_0x463cf6['sockets']['length'];++_0x56df96)_0x2dfa82['SessionsSocketDescriptor']['encode'](_0x463cf6['sockets'][_0x56df96],_0x1fb39e['uint32'](0x12)['fork']())['ldelim']();}return _0x1fb39e;},_0x53bcb8['encodeDelimited']=function(_0x137919,_0x28fa09){return this['encode'](_0x137919,_0x28fa09)['ldelim']();},_0x53bcb8['decode']=function(_0x34c0ac,_0x437ec2,_0x583ead){_0x34c0ac instanceof _0x150291||(_0x34c0ac=_0x150291['create'](_0x34c0ac));for(var _0xc06a24=void 0x0===_0x437ec2?_0x34c0ac['len']:_0x34c0ac['pos']+_0x437ec2,_0x16149d=new _0x2dfa82['SessionsConnectResponse']();_0x34c0ac['pos']<_0xc06a24;){var _0x27c038=_0x34c0ac['uint32']();if(_0x27c038===_0x583ead)break;switch(_0x27c038>>>0x3){case 0x1:_0x16149d['channel']=_0x34c0ac['string']();break;case 0x2:_0x16149d['sockets']&&_0x16149d['sockets']['length']||(_0x16149d['sockets']=[]),_0x16149d['sockets']['push'](_0x2dfa82['SessionsSocketDescriptor']['decode'](_0x34c0ac,_0x34c0ac['uint32']()));break;default:_0x34c0ac['skipType'](0x7&_0x27c038);}}return _0x16149d;},_0x53bcb8['decodeDelimited']=function(_0x31bac0){return _0x31bac0 instanceof _0x150291||(_0x31bac0=new _0x150291(_0x31bac0)),this['decode'](_0x31bac0,_0x31bac0['uint32']());},_0x53bcb8['verify']=function(_0x1f9b5e){if('object'!=typeof _0x1f9b5e||null===_0x1f9b5e)return'object\x20expected';if(null!=_0x1f9b5e['channel']&&_0x1f9b5e['hasOwnProperty']('channel')&&!_0x4a15b3['isString'](_0x1f9b5e['channel']))return'channel:\x20string\x20expected';if(null!=_0x1f9b5e['sockets']&&_0x1f9b5e['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x1f9b5e['sockets']))return'sockets:\x20array\x20expected';for(var _0x122b48=0x0;_0x122b48<_0x1f9b5e['sockets']['length'];++_0x122b48){var _0xe3832=_0x2dfa82['SessionsSocketDescriptor']['verify'](_0x1f9b5e['sockets'][_0x122b48]);if(_0xe3832)return'sockets.'+_0xe3832;}}return null;},_0x53bcb8['fromObject']=function(_0x59a543){if(_0x59a543 instanceof _0x2dfa82['SessionsConnectResponse'])return _0x59a543;var _0x2480a6=new _0x2dfa82['SessionsConnectResponse']();if(null!=_0x59a543['channel']&&(_0x2480a6['channel']=String(_0x59a543['channel'])),_0x59a543['sockets']){if(!Array['isArray'](_0x59a543['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x2480a6['sockets']=[];for(var _0x12c7d8=0x0;_0x12c7d8<_0x59a543['sockets']['length'];++_0x12c7d8){if('object'!=typeof _0x59a543['sockets'][_0x12c7d8])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x2480a6['sockets'][_0x12c7d8]=_0x2dfa82['SessionsSocketDescriptor']['fromObject'](_0x59a543['sockets'][_0x12c7d8]);}}return _0x2480a6;},_0x53bcb8['toObject']=function(_0x1b8d8d,_0x317bc0){_0x317bc0||(_0x317bc0={});var _0x30e58f={};if((_0x317bc0['arrays']||_0x317bc0['defaults'])&&(_0x30e58f['sockets']=[]),_0x317bc0['defaults']&&(_0x30e58f['channel']=''),null!=_0x1b8d8d['channel']&&_0x1b8d8d['hasOwnProperty']('channel')&&(_0x30e58f['channel']=_0x1b8d8d['channel']),_0x1b8d8d['sockets']&&_0x1b8d8d['sockets']['length']){_0x30e58f['sockets']=[];for(var _0x3acef2=0x0;_0x3acef2<_0x1b8d8d['sockets']['length'];++_0x3acef2)_0x30e58f['sockets'][_0x3acef2]=_0x2dfa82['SessionsSocketDescriptor']['toObject'](_0x1b8d8d['sockets'][_0x3acef2],_0x317bc0);}return _0x30e58f;},_0x53bcb8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53bcb8['getTypeUrl']=function(_0x47c171){return void 0x0===_0x47c171&&(_0x47c171='type.googleapis.com'),_0x47c171+'/SessionsConnectResponse';},_0x53bcb8;}()),_0x2dfa82['SocketDisconnectMessage']=(function(){function _0x290cfa(_0x4d4a51){if(_0x4d4a51){for(var _0x56b066=Object['keys'](_0x4d4a51),_0x5aa670=0x0;_0x5aa670<_0x56b066['length'];++_0x5aa670)null!=_0x4d4a51[_0x56b066[_0x5aa670]]&&(this[_0x56b066[_0x5aa670]]=_0x4d4a51[_0x56b066[_0x5aa670]]);}}return _0x290cfa['prototype']['id']='',_0x290cfa['create']=function(_0x561c1a){return new _0x290cfa(_0x561c1a);},_0x290cfa['encode']=function(_0x542ba1,_0x2eca10){return _0x2eca10||(_0x2eca10=_0x278790['create']()),null!=_0x542ba1['id']&&Object['hasOwnProperty']['call'](_0x542ba1,'id')&&_0x2eca10['uint32'](0xa)['string'](_0x542ba1['id']),_0x2eca10;},_0x290cfa['encodeDelimited']=function(_0x27d719,_0x3a726f){return this['encode'](_0x27d719,_0x3a726f)['ldelim']();},_0x290cfa['decode']=function(_0x16227d,_0x485f84,_0x1ef1c9){_0x16227d instanceof _0x150291||(_0x16227d=_0x150291['create'](_0x16227d));for(var _0x13c2c7=void 0x0===_0x485f84?_0x16227d['len']:_0x16227d['pos']+_0x485f84,_0x370fdb=new _0x2dfa82['SocketDisconnectMessage']();_0x16227d['pos']<_0x13c2c7;){var _0x4c2b19=_0x16227d['uint32']();if(_0x4c2b19===_0x1ef1c9)break;_0x4c2b19>>>0x3==0x1?_0x370fdb['id']=_0x16227d['string']():_0x16227d['skipType'](0x7&_0x4c2b19);}return _0x370fdb;},_0x290cfa['decodeDelimited']=function(_0x52b8f0){return _0x52b8f0 instanceof _0x150291||(_0x52b8f0=new _0x150291(_0x52b8f0)),this['decode'](_0x52b8f0,_0x52b8f0['uint32']());},_0x290cfa['verify']=function(_0x352f84){return'object'!=typeof _0x352f84||null===_0x352f84?'object\x20expected':null!=_0x352f84['id']&&_0x352f84['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x352f84['id'])?'id:\x20string\x20expected':null;},_0x290cfa['fromObject']=function(_0x21b1f5){if(_0x21b1f5 instanceof _0x2dfa82['SocketDisconnectMessage'])return _0x21b1f5;var _0x521978=new _0x2dfa82['SocketDisconnectMessage']();return null!=_0x21b1f5['id']&&(_0x521978['id']=String(_0x21b1f5['id'])),_0x521978;},_0x290cfa['toObject']=function(_0x5ec5f3,_0x3c944b){_0x3c944b||(_0x3c944b={});var _0x5a0572={};return _0x3c944b['defaults']&&(_0x5a0572['id']=''),null!=_0x5ec5f3['id']&&_0x5ec5f3['hasOwnProperty']('id')&&(_0x5a0572['id']=_0x5ec5f3['id']),_0x5a0572;},_0x290cfa['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x290cfa['getTypeUrl']=function(_0x401b4f){return void 0x0===_0x401b4f&&(_0x401b4f='type.googleapis.com'),_0x401b4f+'/SocketDisconnectMessage';},_0x290cfa;}()),_0x2dfa82['SocketConnectMessage']=(function(){function _0xb3adf(_0x33f346){if(this['permissions']=[],_0x33f346){for(var _0x24aa81=Object['keys'](_0x33f346),_0x30dbb1=0x0;_0x30dbb1<_0x24aa81['length'];++_0x30dbb1)null!=_0x33f346[_0x24aa81[_0x30dbb1]]&&(this[_0x24aa81[_0x30dbb1]]=_0x33f346[_0x24aa81[_0x30dbb1]]);}}return _0xb3adf['prototype']['id']='',_0xb3adf['prototype']['userId']='',_0xb3adf['prototype']['role']='',_0xb3adf['prototype']['permissions']=_0x4a15b3['emptyArray'],_0xb3adf['create']=function(_0x130e3b){return new _0xb3adf(_0x130e3b);},_0xb3adf['encode']=function(_0x8d9ed6,_0xf64cb3){if(_0xf64cb3||(_0xf64cb3=_0x278790['create']()),null!=_0x8d9ed6['id']&&Object['hasOwnProperty']['call'](_0x8d9ed6,'id')&&_0xf64cb3['uint32'](0xa)['string'](_0x8d9ed6['id']),null!=_0x8d9ed6['userId']&&Object['hasOwnProperty']['call'](_0x8d9ed6,'userId')&&_0xf64cb3['uint32'](0x12)['string'](_0x8d9ed6['userId']),null!=_0x8d9ed6['role']&&Object['hasOwnProperty']['call'](_0x8d9ed6,'role')&&_0xf64cb3['uint32'](0x1a)['string'](_0x8d9ed6['role']),null!=_0x8d9ed6['permissions']&&_0x8d9ed6['permissions']['length']){for(var _0x94f563=0x0;_0x94f563<_0x8d9ed6['permissions']['length'];++_0x94f563)_0xf64cb3['uint32'](0x22)['string'](_0x8d9ed6['permissions'][_0x94f563]);}return _0xf64cb3;},_0xb3adf['encodeDelimited']=function(_0x548a47,_0x5905f9){return this['encode'](_0x548a47,_0x5905f9)['ldelim']();},_0xb3adf['decode']=function(_0x14e58e,_0x374bf3,_0x85e38e){_0x14e58e instanceof _0x150291||(_0x14e58e=_0x150291['create'](_0x14e58e));for(var _0x404a09=void 0x0===_0x374bf3?_0x14e58e['len']:_0x14e58e['pos']+_0x374bf3,_0x37594d=new _0x2dfa82['SocketConnectMessage']();_0x14e58e['pos']<_0x404a09;){var _0x32da18=_0x14e58e['uint32']();if(_0x32da18===_0x85e38e)break;switch(_0x32da18>>>0x3){case 0x1:_0x37594d['id']=_0x14e58e['string']();break;case 0x2:_0x37594d['userId']=_0x14e58e['string']();break;case 0x3:_0x37594d['role']=_0x14e58e['string']();break;case 0x4:_0x37594d['permissions']&&_0x37594d['permissions']['length']||(_0x37594d['permissions']=[]),_0x37594d['permissions']['push'](_0x14e58e['string']());break;default:_0x14e58e['skipType'](0x7&_0x32da18);}}return _0x37594d;},_0xb3adf['decodeDelimited']=function(_0x377dda){return _0x377dda instanceof _0x150291||(_0x377dda=new _0x150291(_0x377dda)),this['decode'](_0x377dda,_0x377dda['uint32']());},_0xb3adf['verify']=function(_0x4006e5){if('object'!=typeof _0x4006e5||null===_0x4006e5)return'object\x20expected';if(null!=_0x4006e5['id']&&_0x4006e5['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x4006e5['id']))return'id:\x20string\x20expected';if(null!=_0x4006e5['userId']&&_0x4006e5['hasOwnProperty']('userId')&&!_0x4a15b3['isString'](_0x4006e5['userId']))return'userId:\x20string\x20expected';if(null!=_0x4006e5['role']&&_0x4006e5['hasOwnProperty']('role')&&!_0x4a15b3['isString'](_0x4006e5['role']))return'role:\x20string\x20expected';if(null!=_0x4006e5['permissions']&&_0x4006e5['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x4006e5['permissions']))return'permissions:\x20array\x20expected';for(var _0x49cbd9=0x0;_0x49cbd9<_0x4006e5['permissions']['length'];++_0x49cbd9)if(!_0x4a15b3['isString'](_0x4006e5['permissions'][_0x49cbd9]))return'permissions:\x20string[]\x20expected';}return null;},_0xb3adf['fromObject']=function(_0x84040b){if(_0x84040b instanceof _0x2dfa82['SocketConnectMessage'])return _0x84040b;var _0x14178d=new _0x2dfa82['SocketConnectMessage']();if(null!=_0x84040b['id']&&(_0x14178d['id']=String(_0x84040b['id'])),null!=_0x84040b['userId']&&(_0x14178d['userId']=String(_0x84040b['userId'])),null!=_0x84040b['role']&&(_0x14178d['role']=String(_0x84040b['role'])),_0x84040b['permissions']){if(!Array['isArray'](_0x84040b['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x14178d['permissions']=[];for(var _0x38f1dc=0x0;_0x38f1dc<_0x84040b['permissions']['length'];++_0x38f1dc)_0x14178d['permissions'][_0x38f1dc]=String(_0x84040b['permissions'][_0x38f1dc]);}return _0x14178d;},_0xb3adf['toObject']=function(_0x5e84f3,_0xd7d40a){_0xd7d40a||(_0xd7d40a={});var _0x50398e={};if((_0xd7d40a['arrays']||_0xd7d40a['defaults'])&&(_0x50398e['permissions']=[]),_0xd7d40a['defaults']&&(_0x50398e['id']='',_0x50398e['userId']='',_0x50398e['role']=''),null!=_0x5e84f3['id']&&_0x5e84f3['hasOwnProperty']('id')&&(_0x50398e['id']=_0x5e84f3['id']),null!=_0x5e84f3['userId']&&_0x5e84f3['hasOwnProperty']('userId')&&(_0x50398e['userId']=_0x5e84f3['userId']),null!=_0x5e84f3['role']&&_0x5e84f3['hasOwnProperty']('role')&&(_0x50398e['role']=_0x5e84f3['role']),_0x5e84f3['permissions']&&_0x5e84f3['permissions']['length']){_0x50398e['permissions']=[];for(var _0x18e21c=0x0;_0x18e21c<_0x5e84f3['permissions']['length'];++_0x18e21c)_0x50398e['permissions'][_0x18e21c]=_0x5e84f3['permissions'][_0x18e21c];}return _0x50398e;},_0xb3adf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb3adf['getTypeUrl']=function(_0x1bcbbb){return void 0x0===_0x1bcbbb&&(_0x1bcbbb='type.googleapis.com'),_0x1bcbbb+'/SocketConnectMessage';},_0xb3adf;}()),_0x2dfa82['SessionsConnectMessage']=(function(){function _0xb58344(_0xd978aa){if(_0xd978aa){for(var _0x5d9d66=Object['keys'](_0xd978aa),_0x57dc6d=0x0;_0x57dc6d<_0x5d9d66['length'];++_0x57dc6d)null!=_0xd978aa[_0x5d9d66[_0x57dc6d]]&&(this[_0x5d9d66[_0x57dc6d]]=_0xd978aa[_0x5d9d66[_0x57dc6d]]);}}return _0xb58344['prototype']['id']='',_0xb58344['prototype']['sessionType']=0x0,_0xb58344['create']=function(_0x5ead45){return new _0xb58344(_0x5ead45);},_0xb58344['encode']=function(_0x4e5824,_0xc9aa45){return _0xc9aa45||(_0xc9aa45=_0x278790['create']()),null!=_0x4e5824['id']&&Object['hasOwnProperty']['call'](_0x4e5824,'id')&&_0xc9aa45['uint32'](0xa)['string'](_0x4e5824['id']),null!=_0x4e5824['sessionType']&&Object['hasOwnProperty']['call'](_0x4e5824,'sessionType')&&_0xc9aa45['uint32'](0x10)['uint32'](_0x4e5824['sessionType']),_0xc9aa45;},_0xb58344['encodeDelimited']=function(_0x1f486d,_0x2424ec){return this['encode'](_0x1f486d,_0x2424ec)['ldelim']();},_0xb58344['decode']=function(_0x58ee11,_0x2e3d95,_0x115978){_0x58ee11 instanceof _0x150291||(_0x58ee11=_0x150291['create'](_0x58ee11));for(var _0x5102f6=void 0x0===_0x2e3d95?_0x58ee11['len']:_0x58ee11['pos']+_0x2e3d95,_0x1d35f3=new _0x2dfa82['SessionsConnectMessage']();_0x58ee11['pos']<_0x5102f6;){var _0x1e407f=_0x58ee11['uint32']();if(_0x1e407f===_0x115978)break;switch(_0x1e407f>>>0x3){case 0x1:_0x1d35f3['id']=_0x58ee11['string']();break;case 0x2:_0x1d35f3['sessionType']=_0x58ee11['uint32']();break;default:_0x58ee11['skipType'](0x7&_0x1e407f);}}return _0x1d35f3;},_0xb58344['decodeDelimited']=function(_0x2299e6){return _0x2299e6 instanceof _0x150291||(_0x2299e6=new _0x150291(_0x2299e6)),this['decode'](_0x2299e6,_0x2299e6['uint32']());},_0xb58344['verify']=function(_0x37d27e){return'object'!=typeof _0x37d27e||null===_0x37d27e?'object\x20expected':null!=_0x37d27e['id']&&_0x37d27e['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x37d27e['id'])?'id:\x20string\x20expected':null!=_0x37d27e['sessionType']&&_0x37d27e['hasOwnProperty']('sessionType')&&!_0x4a15b3['isInteger'](_0x37d27e['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0xb58344['fromObject']=function(_0x58a1b1){if(_0x58a1b1 instanceof _0x2dfa82['SessionsConnectMessage'])return _0x58a1b1;var _0x1ecc24=new _0x2dfa82['SessionsConnectMessage']();return null!=_0x58a1b1['id']&&(_0x1ecc24['id']=String(_0x58a1b1['id'])),null!=_0x58a1b1['sessionType']&&(_0x1ecc24['sessionType']=_0x58a1b1['sessionType']>>>0x0),_0x1ecc24;},_0xb58344['toObject']=function(_0x48f37c,_0x4d5431){_0x4d5431||(_0x4d5431={});var _0x4193eb={};return _0x4d5431['defaults']&&(_0x4193eb['id']='',_0x4193eb['sessionType']=0x0),null!=_0x48f37c['id']&&_0x48f37c['hasOwnProperty']('id')&&(_0x4193eb['id']=_0x48f37c['id']),null!=_0x48f37c['sessionType']&&_0x48f37c['hasOwnProperty']('sessionType')&&(_0x4193eb['sessionType']=_0x48f37c['sessionType']),_0x4193eb;},_0xb58344['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb58344['getTypeUrl']=function(_0x397949){return void 0x0===_0x397949&&(_0x397949='type.googleapis.com'),_0x397949+'/SessionsConnectMessage';},_0xb58344;}()),_0x2dfa82['SessionsSocketDescriptor']=(function(){function _0x5c46b0(_0x55e5d5){if(this['permissions']=[],_0x55e5d5){for(var _0x541a1a=Object['keys'](_0x55e5d5),_0x1df84b=0x0;_0x1df84b<_0x541a1a['length'];++_0x1df84b)null!=_0x55e5d5[_0x541a1a[_0x1df84b]]&&(this[_0x541a1a[_0x1df84b]]=_0x55e5d5[_0x541a1a[_0x1df84b]]);}}return _0x5c46b0['prototype']['session']='',_0x5c46b0['prototype']['user']='',_0x5c46b0['prototype']['role']='',_0x5c46b0['prototype']['permissions']=_0x4a15b3['emptyArray'],_0x5c46b0['create']=function(_0x419f6b){return new _0x5c46b0(_0x419f6b);},_0x5c46b0['encode']=function(_0x29fbff,_0x23bd47){if(_0x23bd47||(_0x23bd47=_0x278790['create']()),null!=_0x29fbff['session']&&Object['hasOwnProperty']['call'](_0x29fbff,'session')&&_0x23bd47['uint32'](0xa)['string'](_0x29fbff['session']),null!=_0x29fbff['user']&&Object['hasOwnProperty']['call'](_0x29fbff,'user')&&_0x23bd47['uint32'](0x12)['string'](_0x29fbff['user']),null!=_0x29fbff['role']&&Object['hasOwnProperty']['call'](_0x29fbff,'role')&&_0x23bd47['uint32'](0x1a)['string'](_0x29fbff['role']),null!=_0x29fbff['permissions']&&_0x29fbff['permissions']['length']){for(var _0x252a00=0x0;_0x252a00<_0x29fbff['permissions']['length'];++_0x252a00)_0x23bd47['uint32'](0x22)['string'](_0x29fbff['permissions'][_0x252a00]);}return _0x23bd47;},_0x5c46b0['encodeDelimited']=function(_0x3bf599,_0x1d9f6c){return this['encode'](_0x3bf599,_0x1d9f6c)['ldelim']();},_0x5c46b0['decode']=function(_0x47eaa3,_0x1a3fa2,_0x37920d){_0x47eaa3 instanceof _0x150291||(_0x47eaa3=_0x150291['create'](_0x47eaa3));for(var _0x5eaa1e=void 0x0===_0x1a3fa2?_0x47eaa3['len']:_0x47eaa3['pos']+_0x1a3fa2,_0x548408=new _0x2dfa82['SessionsSocketDescriptor']();_0x47eaa3['pos']<_0x5eaa1e;){var _0x56724b=_0x47eaa3['uint32']();if(_0x56724b===_0x37920d)break;switch(_0x56724b>>>0x3){case 0x1:_0x548408['session']=_0x47eaa3['string']();break;case 0x2:_0x548408['user']=_0x47eaa3['string']();break;case 0x3:_0x548408['role']=_0x47eaa3['string']();break;case 0x4:_0x548408['permissions']&&_0x548408['permissions']['length']||(_0x548408['permissions']=[]),_0x548408['permissions']['push'](_0x47eaa3['string']());break;default:_0x47eaa3['skipType'](0x7&_0x56724b);}}return _0x548408;},_0x5c46b0['decodeDelimited']=function(_0x26036a){return _0x26036a instanceof _0x150291||(_0x26036a=new _0x150291(_0x26036a)),this['decode'](_0x26036a,_0x26036a['uint32']());},_0x5c46b0['verify']=function(_0x214f12){if('object'!=typeof _0x214f12||null===_0x214f12)return'object\x20expected';if(null!=_0x214f12['session']&&_0x214f12['hasOwnProperty']('session')&&!_0x4a15b3['isString'](_0x214f12['session']))return'session:\x20string\x20expected';if(null!=_0x214f12['user']&&_0x214f12['hasOwnProperty']('user')&&!_0x4a15b3['isString'](_0x214f12['user']))return'user:\x20string\x20expected';if(null!=_0x214f12['role']&&_0x214f12['hasOwnProperty']('role')&&!_0x4a15b3['isString'](_0x214f12['role']))return'role:\x20string\x20expected';if(null!=_0x214f12['permissions']&&_0x214f12['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x214f12['permissions']))return'permissions:\x20array\x20expected';for(var _0x35066a=0x0;_0x35066a<_0x214f12['permissions']['length'];++_0x35066a)if(!_0x4a15b3['isString'](_0x214f12['permissions'][_0x35066a]))return'permissions:\x20string[]\x20expected';}return null;},_0x5c46b0['fromObject']=function(_0x1244f4){if(_0x1244f4 instanceof _0x2dfa82['SessionsSocketDescriptor'])return _0x1244f4;var _0x2ac37c=new _0x2dfa82['SessionsSocketDescriptor']();if(null!=_0x1244f4['session']&&(_0x2ac37c['session']=String(_0x1244f4['session'])),null!=_0x1244f4['user']&&(_0x2ac37c['user']=String(_0x1244f4['user'])),null!=_0x1244f4['role']&&(_0x2ac37c['role']=String(_0x1244f4['role'])),_0x1244f4['permissions']){if(!Array['isArray'](_0x1244f4['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x2ac37c['permissions']=[];for(var _0x36f2d9=0x0;_0x36f2d9<_0x1244f4['permissions']['length'];++_0x36f2d9)_0x2ac37c['permissions'][_0x36f2d9]=String(_0x1244f4['permissions'][_0x36f2d9]);}return _0x2ac37c;},_0x5c46b0['toObject']=function(_0x376509,_0x2c5f8e){_0x2c5f8e||(_0x2c5f8e={});var _0x2cf02c={};if((_0x2c5f8e['arrays']||_0x2c5f8e['defaults'])&&(_0x2cf02c['permissions']=[]),_0x2c5f8e['defaults']&&(_0x2cf02c['session']='',_0x2cf02c['user']='',_0x2cf02c['role']=''),null!=_0x376509['session']&&_0x376509['hasOwnProperty']('session')&&(_0x2cf02c['session']=_0x376509['session']),null!=_0x376509['user']&&_0x376509['hasOwnProperty']('user')&&(_0x2cf02c['user']=_0x376509['user']),null!=_0x376509['role']&&_0x376509['hasOwnProperty']('role')&&(_0x2cf02c['role']=_0x376509['role']),_0x376509['permissions']&&_0x376509['permissions']['length']){_0x2cf02c['permissions']=[];for(var _0x2f76b4=0x0;_0x2f76b4<_0x376509['permissions']['length'];++_0x2f76b4)_0x2cf02c['permissions'][_0x2f76b4]=_0x376509['permissions'][_0x2f76b4];}return _0x2cf02c;},_0x5c46b0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5c46b0['getTypeUrl']=function(_0x12f14e){return void 0x0===_0x12f14e&&(_0x12f14e='type.googleapis.com'),_0x12f14e+'/SessionsSocketDescriptor';},_0x5c46b0;}()),_0x2dfa82['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x2f8d49(_0x1b1459){if(_0x1b1459){for(var _0x3e7e93=Object['keys'](_0x1b1459),_0x252df3=0x0;_0x252df3<_0x3e7e93['length'];++_0x252df3)null!=_0x1b1459[_0x3e7e93[_0x252df3]]&&(this[_0x3e7e93[_0x252df3]]=_0x1b1459[_0x3e7e93[_0x252df3]]);}}return _0x2f8d49['prototype']['requestId']=0x0,_0x2f8d49['create']=function(_0x613801){return new _0x2f8d49(_0x613801);},_0x2f8d49['encode']=function(_0x7ca29d,_0x4f865c){return _0x4f865c||(_0x4f865c=_0x278790['create']()),null!=_0x7ca29d['requestId']&&Object['hasOwnProperty']['call'](_0x7ca29d,'requestId')&&_0x4f865c['uint32'](0x8)['uint32'](_0x7ca29d['requestId']),_0x4f865c;},_0x2f8d49['encodeDelimited']=function(_0x42c236,_0x4a45f7){return this['encode'](_0x42c236,_0x4a45f7)['ldelim']();},_0x2f8d49['decode']=function(_0x3eaf44,_0x34a6c2,_0x11dc75){_0x3eaf44 instanceof _0x150291||(_0x3eaf44=_0x150291['create'](_0x3eaf44));for(var _0x20c1cf=void 0x0===_0x34a6c2?_0x3eaf44['len']:_0x3eaf44['pos']+_0x34a6c2,_0xc89f43=new _0x2dfa82['RevisionHistoryUpdateRevisionsResponse']();_0x3eaf44['pos']<_0x20c1cf;){var _0x59ff07=_0x3eaf44['uint32']();if(_0x59ff07===_0x11dc75)break;_0x59ff07>>>0x3==0x1?_0xc89f43['requestId']=_0x3eaf44['uint32']():_0x3eaf44['skipType'](0x7&_0x59ff07);}return _0xc89f43;},_0x2f8d49['decodeDelimited']=function(_0x4ea7ab){return _0x4ea7ab instanceof _0x150291||(_0x4ea7ab=new _0x150291(_0x4ea7ab)),this['decode'](_0x4ea7ab,_0x4ea7ab['uint32']());},_0x2f8d49['verify']=function(_0x29b727){return'object'!=typeof _0x29b727||null===_0x29b727?'object\x20expected':null!=_0x29b727['requestId']&&_0x29b727['hasOwnProperty']('requestId')&&!_0x4a15b3['isInteger'](_0x29b727['requestId'])?'requestId:\x20integer\x20expected':null;},_0x2f8d49['fromObject']=function(_0x514626){if(_0x514626 instanceof _0x2dfa82['RevisionHistoryUpdateRevisionsResponse'])return _0x514626;var _0x43bb32=new _0x2dfa82['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x514626['requestId']&&(_0x43bb32['requestId']=_0x514626['requestId']>>>0x0),_0x43bb32;},_0x2f8d49['toObject']=function(_0x125602,_0x37bac7){_0x37bac7||(_0x37bac7={});var _0x244d50={};return _0x37bac7['defaults']&&(_0x244d50['requestId']=0x0),null!=_0x125602['requestId']&&_0x125602['hasOwnProperty']('requestId')&&(_0x244d50['requestId']=_0x125602['requestId']),_0x244d50;},_0x2f8d49['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f8d49['getTypeUrl']=function(_0xb8baa7){return void 0x0===_0xb8baa7&&(_0xb8baa7='type.googleapis.com'),_0xb8baa7+'/RevisionHistoryUpdateRevisionsResponse';},_0x2f8d49;}()),_0x2dfa82['RevisionHistoryGetRevisionResponse']=(function(){function _0x39ea06(_0x356c6e){if(_0x356c6e){for(var _0x9fa234=Object['keys'](_0x356c6e),_0x4ec821=0x0;_0x4ec821<_0x9fa234['length'];++_0x4ec821)null!=_0x356c6e[_0x9fa234[_0x4ec821]]&&(this[_0x9fa234[_0x4ec821]]=_0x356c6e[_0x9fa234[_0x4ec821]]);}}return _0x39ea06['prototype']['revisionId']='',_0x39ea06['prototype']['name']='',_0x39ea06['prototype']['creatorId']='',_0x39ea06['prototype']['authorsIds']='',_0x39ea06['prototype']['diffData']='',_0x39ea06['prototype']['createdAt']='',_0x39ea06['prototype']['attributes']='',_0x39ea06['prototype']['toVersion']=0x0,_0x39ea06['prototype']['fromVersion']=0x0,_0x39ea06['prototype']['isEmptyCurrent']=!0x1,_0x39ea06['create']=function(_0x3ca0d5){return new _0x39ea06(_0x3ca0d5);},_0x39ea06['encode']=function(_0x5c7897,_0x398c3f){return _0x398c3f||(_0x398c3f=_0x278790['create']()),null!=_0x5c7897['revisionId']&&Object['hasOwnProperty']['call'](_0x5c7897,'revisionId')&&_0x398c3f['uint32'](0xa)['string'](_0x5c7897['revisionId']),null!=_0x5c7897['name']&&Object['hasOwnProperty']['call'](_0x5c7897,'name')&&_0x398c3f['uint32'](0x12)['string'](_0x5c7897['name']),null!=_0x5c7897['creatorId']&&Object['hasOwnProperty']['call'](_0x5c7897,'creatorId')&&_0x398c3f['uint32'](0x1a)['string'](_0x5c7897['creatorId']),null!=_0x5c7897['authorsIds']&&Object['hasOwnProperty']['call'](_0x5c7897,'authorsIds')&&_0x398c3f['uint32'](0x22)['string'](_0x5c7897['authorsIds']),null!=_0x5c7897['diffData']&&Object['hasOwnProperty']['call'](_0x5c7897,'diffData')&&_0x398c3f['uint32'](0x2a)['string'](_0x5c7897['diffData']),null!=_0x5c7897['createdAt']&&Object['hasOwnProperty']['call'](_0x5c7897,'createdAt')&&_0x398c3f['uint32'](0x32)['string'](_0x5c7897['createdAt']),null!=_0x5c7897['attributes']&&Object['hasOwnProperty']['call'](_0x5c7897,'attributes')&&_0x398c3f['uint32'](0x3a)['string'](_0x5c7897['attributes']),null!=_0x5c7897['toVersion']&&Object['hasOwnProperty']['call'](_0x5c7897,'toVersion')&&_0x398c3f['uint32'](0x40)['uint32'](_0x5c7897['toVersion']),null!=_0x5c7897['fromVersion']&&Object['hasOwnProperty']['call'](_0x5c7897,'fromVersion')&&_0x398c3f['uint32'](0x48)['uint32'](_0x5c7897['fromVersion']),null!=_0x5c7897['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x5c7897,'isEmptyCurrent')&&_0x398c3f['uint32'](0x50)['bool'](_0x5c7897['isEmptyCurrent']),_0x398c3f;},_0x39ea06['encodeDelimited']=function(_0x51bd11,_0x248dea){return this['encode'](_0x51bd11,_0x248dea)['ldelim']();},_0x39ea06['decode']=function(_0x500796,_0x351f76,_0x313320){_0x500796 instanceof _0x150291||(_0x500796=_0x150291['create'](_0x500796));for(var _0x19ac49=void 0x0===_0x351f76?_0x500796['len']:_0x500796['pos']+_0x351f76,_0x5c1a07=new _0x2dfa82['RevisionHistoryGetRevisionResponse']();_0x500796['pos']<_0x19ac49;){var _0x5aec5a=_0x500796['uint32']();if(_0x5aec5a===_0x313320)break;switch(_0x5aec5a>>>0x3){case 0x1:_0x5c1a07['revisionId']=_0x500796['string']();break;case 0x2:_0x5c1a07['name']=_0x500796['string']();break;case 0x3:_0x5c1a07['creatorId']=_0x500796['string']();break;case 0x4:_0x5c1a07['authorsIds']=_0x500796['string']();break;case 0x5:_0x5c1a07['diffData']=_0x500796['string']();break;case 0x6:_0x5c1a07['createdAt']=_0x500796['string']();break;case 0x7:_0x5c1a07['attributes']=_0x500796['string']();break;case 0x8:_0x5c1a07['toVersion']=_0x500796['uint32']();break;case 0x9:_0x5c1a07['fromVersion']=_0x500796['uint32']();break;case 0xa:_0x5c1a07['isEmptyCurrent']=_0x500796['bool']();break;default:_0x500796['skipType'](0x7&_0x5aec5a);}}return _0x5c1a07;},_0x39ea06['decodeDelimited']=function(_0x7dec2e){return _0x7dec2e instanceof _0x150291||(_0x7dec2e=new _0x150291(_0x7dec2e)),this['decode'](_0x7dec2e,_0x7dec2e['uint32']());},_0x39ea06['verify']=function(_0x59e74e){return'object'!=typeof _0x59e74e||null===_0x59e74e?'object\x20expected':null!=_0x59e74e['revisionId']&&_0x59e74e['hasOwnProperty']('revisionId')&&!_0x4a15b3['isString'](_0x59e74e['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x59e74e['name']&&_0x59e74e['hasOwnProperty']('name')&&!_0x4a15b3['isString'](_0x59e74e['name'])?'name:\x20string\x20expected':null!=_0x59e74e['creatorId']&&_0x59e74e['hasOwnProperty']('creatorId')&&!_0x4a15b3['isString'](_0x59e74e['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x59e74e['authorsIds']&&_0x59e74e['hasOwnProperty']('authorsIds')&&!_0x4a15b3['isString'](_0x59e74e['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x59e74e['diffData']&&_0x59e74e['hasOwnProperty']('diffData')&&!_0x4a15b3['isString'](_0x59e74e['diffData'])?'diffData:\x20string\x20expected':null!=_0x59e74e['createdAt']&&_0x59e74e['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x59e74e['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x59e74e['attributes']&&_0x59e74e['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x59e74e['attributes'])?'attributes:\x20string\x20expected':null!=_0x59e74e['toVersion']&&_0x59e74e['hasOwnProperty']('toVersion')&&!_0x4a15b3['isInteger'](_0x59e74e['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x59e74e['fromVersion']&&_0x59e74e['hasOwnProperty']('fromVersion')&&!_0x4a15b3['isInteger'](_0x59e74e['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x59e74e['isEmptyCurrent']&&_0x59e74e['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x59e74e['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x39ea06['fromObject']=function(_0x2f86ed){if(_0x2f86ed instanceof _0x2dfa82['RevisionHistoryGetRevisionResponse'])return _0x2f86ed;var _0x4d9abb=new _0x2dfa82['RevisionHistoryGetRevisionResponse']();return null!=_0x2f86ed['revisionId']&&(_0x4d9abb['revisionId']=String(_0x2f86ed['revisionId'])),null!=_0x2f86ed['name']&&(_0x4d9abb['name']=String(_0x2f86ed['name'])),null!=_0x2f86ed['creatorId']&&(_0x4d9abb['creatorId']=String(_0x2f86ed['creatorId'])),null!=_0x2f86ed['authorsIds']&&(_0x4d9abb['authorsIds']=String(_0x2f86ed['authorsIds'])),null!=_0x2f86ed['diffData']&&(_0x4d9abb['diffData']=String(_0x2f86ed['diffData'])),null!=_0x2f86ed['createdAt']&&(_0x4d9abb['createdAt']=String(_0x2f86ed['createdAt'])),null!=_0x2f86ed['attributes']&&(_0x4d9abb['attributes']=String(_0x2f86ed['attributes'])),null!=_0x2f86ed['toVersion']&&(_0x4d9abb['toVersion']=_0x2f86ed['toVersion']>>>0x0),null!=_0x2f86ed['fromVersion']&&(_0x4d9abb['fromVersion']=_0x2f86ed['fromVersion']>>>0x0),null!=_0x2f86ed['isEmptyCurrent']&&(_0x4d9abb['isEmptyCurrent']=Boolean(_0x2f86ed['isEmptyCurrent'])),_0x4d9abb;},_0x39ea06['toObject']=function(_0x56cd7d,_0x4d3347){_0x4d3347||(_0x4d3347={});var _0x1595b4={};return _0x4d3347['defaults']&&(_0x1595b4['revisionId']='',_0x1595b4['name']='',_0x1595b4['creatorId']='',_0x1595b4['authorsIds']='',_0x1595b4['diffData']='',_0x1595b4['createdAt']='',_0x1595b4['attributes']='',_0x1595b4['toVersion']=0x0,_0x1595b4['fromVersion']=0x0,_0x1595b4['isEmptyCurrent']=!0x1),null!=_0x56cd7d['revisionId']&&_0x56cd7d['hasOwnProperty']('revisionId')&&(_0x1595b4['revisionId']=_0x56cd7d['revisionId']),null!=_0x56cd7d['name']&&_0x56cd7d['hasOwnProperty']('name')&&(_0x1595b4['name']=_0x56cd7d['name']),null!=_0x56cd7d['creatorId']&&_0x56cd7d['hasOwnProperty']('creatorId')&&(_0x1595b4['creatorId']=_0x56cd7d['creatorId']),null!=_0x56cd7d['authorsIds']&&_0x56cd7d['hasOwnProperty']('authorsIds')&&(_0x1595b4['authorsIds']=_0x56cd7d['authorsIds']),null!=_0x56cd7d['diffData']&&_0x56cd7d['hasOwnProperty']('diffData')&&(_0x1595b4['diffData']=_0x56cd7d['diffData']),null!=_0x56cd7d['createdAt']&&_0x56cd7d['hasOwnProperty']('createdAt')&&(_0x1595b4['createdAt']=_0x56cd7d['createdAt']),null!=_0x56cd7d['attributes']&&_0x56cd7d['hasOwnProperty']('attributes')&&(_0x1595b4['attributes']=_0x56cd7d['attributes']),null!=_0x56cd7d['toVersion']&&_0x56cd7d['hasOwnProperty']('toVersion')&&(_0x1595b4['toVersion']=_0x56cd7d['toVersion']),null!=_0x56cd7d['fromVersion']&&_0x56cd7d['hasOwnProperty']('fromVersion')&&(_0x1595b4['fromVersion']=_0x56cd7d['fromVersion']),null!=_0x56cd7d['isEmptyCurrent']&&_0x56cd7d['hasOwnProperty']('isEmptyCurrent')&&(_0x1595b4['isEmptyCurrent']=_0x56cd7d['isEmptyCurrent']),_0x1595b4;},_0x39ea06['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x39ea06['getTypeUrl']=function(_0x1187b8){return void 0x0===_0x1187b8&&(_0x1187b8='type.googleapis.com'),_0x1187b8+'/RevisionHistoryGetRevisionResponse';},_0x39ea06;}()),_0x2dfa82['RevisionHistoryConnectResponse']=(function(){function _0x476fe8(_0x3b20ec){if(this['revisions']=[],_0x3b20ec){for(var _0x38f5c7=Object['keys'](_0x3b20ec),_0x4abb6d=0x0;_0x4abb6d<_0x38f5c7['length'];++_0x4abb6d)null!=_0x3b20ec[_0x38f5c7[_0x4abb6d]]&&(this[_0x38f5c7[_0x4abb6d]]=_0x3b20ec[_0x38f5c7[_0x4abb6d]]);}}return _0x476fe8['prototype']['channel']='',_0x476fe8['prototype']['requestId']=0x0,_0x476fe8['prototype']['revisions']=_0x4a15b3['emptyArray'],_0x476fe8['create']=function(_0x4efac8){return new _0x476fe8(_0x4efac8);},_0x476fe8['encode']=function(_0x583821,_0x552da0){if(_0x552da0||(_0x552da0=_0x278790['create']()),null!=_0x583821['channel']&&Object['hasOwnProperty']['call'](_0x583821,'channel')&&_0x552da0['uint32'](0xa)['string'](_0x583821['channel']),null!=_0x583821['requestId']&&Object['hasOwnProperty']['call'](_0x583821,'requestId')&&_0x552da0['uint32'](0x10)['uint32'](_0x583821['requestId']),null!=_0x583821['revisions']&&_0x583821['revisions']['length']){for(var _0x27a0a4=0x0;_0x27a0a4<_0x583821['revisions']['length'];++_0x27a0a4)_0x2dfa82['RevisionDescriptor']['encode'](_0x583821['revisions'][_0x27a0a4],_0x552da0['uint32'](0x1a)['fork']())['ldelim']();}return _0x552da0;},_0x476fe8['encodeDelimited']=function(_0x4a09bf,_0x20ab07){return this['encode'](_0x4a09bf,_0x20ab07)['ldelim']();},_0x476fe8['decode']=function(_0x9f0bf8,_0x163073,_0x276583){_0x9f0bf8 instanceof _0x150291||(_0x9f0bf8=_0x150291['create'](_0x9f0bf8));for(var _0x5d581c=void 0x0===_0x163073?_0x9f0bf8['len']:_0x9f0bf8['pos']+_0x163073,_0x485b8c=new _0x2dfa82['RevisionHistoryConnectResponse']();_0x9f0bf8['pos']<_0x5d581c;){var _0x41608d=_0x9f0bf8['uint32']();if(_0x41608d===_0x276583)break;switch(_0x41608d>>>0x3){case 0x1:_0x485b8c['channel']=_0x9f0bf8['string']();break;case 0x2:_0x485b8c['requestId']=_0x9f0bf8['uint32']();break;case 0x3:_0x485b8c['revisions']&&_0x485b8c['revisions']['length']||(_0x485b8c['revisions']=[]),_0x485b8c['revisions']['push'](_0x2dfa82['RevisionDescriptor']['decode'](_0x9f0bf8,_0x9f0bf8['uint32']()));break;default:_0x9f0bf8['skipType'](0x7&_0x41608d);}}return _0x485b8c;},_0x476fe8['decodeDelimited']=function(_0x442b56){return _0x442b56 instanceof _0x150291||(_0x442b56=new _0x150291(_0x442b56)),this['decode'](_0x442b56,_0x442b56['uint32']());},_0x476fe8['verify']=function(_0x28a035){if('object'!=typeof _0x28a035||null===_0x28a035)return'object\x20expected';if(null!=_0x28a035['channel']&&_0x28a035['hasOwnProperty']('channel')&&!_0x4a15b3['isString'](_0x28a035['channel']))return'channel:\x20string\x20expected';if(null!=_0x28a035['requestId']&&_0x28a035['hasOwnProperty']('requestId')&&!_0x4a15b3['isInteger'](_0x28a035['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x28a035['revisions']&&_0x28a035['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x28a035['revisions']))return'revisions:\x20array\x20expected';for(var _0x4971b5=0x0;_0x4971b5<_0x28a035['revisions']['length'];++_0x4971b5){var _0x4b550c=_0x2dfa82['RevisionDescriptor']['verify'](_0x28a035['revisions'][_0x4971b5]);if(_0x4b550c)return'revisions.'+_0x4b550c;}}return null;},_0x476fe8['fromObject']=function(_0x530e71){if(_0x530e71 instanceof _0x2dfa82['RevisionHistoryConnectResponse'])return _0x530e71;var _0x3aa9f2=new _0x2dfa82['RevisionHistoryConnectResponse']();if(null!=_0x530e71['channel']&&(_0x3aa9f2['channel']=String(_0x530e71['channel'])),null!=_0x530e71['requestId']&&(_0x3aa9f2['requestId']=_0x530e71['requestId']>>>0x0),_0x530e71['revisions']){if(!Array['isArray'](_0x530e71['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x3aa9f2['revisions']=[];for(var _0xdbbbf3=0x0;_0xdbbbf3<_0x530e71['revisions']['length'];++_0xdbbbf3){if('object'!=typeof _0x530e71['revisions'][_0xdbbbf3])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x3aa9f2['revisions'][_0xdbbbf3]=_0x2dfa82['RevisionDescriptor']['fromObject'](_0x530e71['revisions'][_0xdbbbf3]);}}return _0x3aa9f2;},_0x476fe8['toObject']=function(_0x6f9b20,_0x1ee0f9){_0x1ee0f9||(_0x1ee0f9={});var _0x49e62c={};if((_0x1ee0f9['arrays']||_0x1ee0f9['defaults'])&&(_0x49e62c['revisions']=[]),_0x1ee0f9['defaults']&&(_0x49e62c['channel']='',_0x49e62c['requestId']=0x0),null!=_0x6f9b20['channel']&&_0x6f9b20['hasOwnProperty']('channel')&&(_0x49e62c['channel']=_0x6f9b20['channel']),null!=_0x6f9b20['requestId']&&_0x6f9b20['hasOwnProperty']('requestId')&&(_0x49e62c['requestId']=_0x6f9b20['requestId']),_0x6f9b20['revisions']&&_0x6f9b20['revisions']['length']){_0x49e62c['revisions']=[];for(var _0x315500=0x0;_0x315500<_0x6f9b20['revisions']['length'];++_0x315500)_0x49e62c['revisions'][_0x315500]=_0x2dfa82['RevisionDescriptor']['toObject'](_0x6f9b20['revisions'][_0x315500],_0x1ee0f9);}return _0x49e62c;},_0x476fe8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x476fe8['getTypeUrl']=function(_0x407bd2){return void 0x0===_0x407bd2&&(_0x407bd2='type.googleapis.com'),_0x407bd2+'/RevisionHistoryConnectResponse';},_0x476fe8;}()),_0x2dfa82['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x4bd271(_0x14943c){if(this['revisions']=[],_0x14943c){for(var _0x4855fd=Object['keys'](_0x14943c),_0x5256b0=0x0;_0x5256b0<_0x4855fd['length'];++_0x5256b0)null!=_0x14943c[_0x4855fd[_0x5256b0]]&&(this[_0x4855fd[_0x5256b0]]=_0x14943c[_0x4855fd[_0x5256b0]]);}}return _0x4bd271['prototype']['documentId']='',_0x4bd271['prototype']['requestId']=0x0,_0x4bd271['prototype']['revisions']=_0x4a15b3['emptyArray'],_0x4bd271['create']=function(_0x2af0b5){return new _0x4bd271(_0x2af0b5);},_0x4bd271['encode']=function(_0x13fe4f,_0x44462f){if(_0x44462f||(_0x44462f=_0x278790['create']()),null!=_0x13fe4f['documentId']&&Object['hasOwnProperty']['call'](_0x13fe4f,'documentId')&&_0x44462f['uint32'](0xa)['string'](_0x13fe4f['documentId']),null!=_0x13fe4f['requestId']&&Object['hasOwnProperty']['call'](_0x13fe4f,'requestId')&&_0x44462f['uint32'](0x10)['uint32'](_0x13fe4f['requestId']),null!=_0x13fe4f['revisions']&&_0x13fe4f['revisions']['length']){for(var _0x20d870=0x0;_0x20d870<_0x13fe4f['revisions']['length'];++_0x20d870)_0x2dfa82['RevisionDescriptor']['encode'](_0x13fe4f['revisions'][_0x20d870],_0x44462f['uint32'](0x1a)['fork']())['ldelim']();}return _0x44462f;},_0x4bd271['encodeDelimited']=function(_0x2e5fb6,_0xe738){return this['encode'](_0x2e5fb6,_0xe738)['ldelim']();},_0x4bd271['decode']=function(_0x55df83,_0x1c8d37,_0xbbda6f){_0x55df83 instanceof _0x150291||(_0x55df83=_0x150291['create'](_0x55df83));for(var _0x4c5040=void 0x0===_0x1c8d37?_0x55df83['len']:_0x55df83['pos']+_0x1c8d37,_0x26cb01=new _0x2dfa82['RevisionHistoryUpdateRevisionsMessage']();_0x55df83['pos']<_0x4c5040;){var _0x4c10ba=_0x55df83['uint32']();if(_0x4c10ba===_0xbbda6f)break;switch(_0x4c10ba>>>0x3){case 0x1:_0x26cb01['documentId']=_0x55df83['string']();break;case 0x2:_0x26cb01['requestId']=_0x55df83['uint32']();break;case 0x3:_0x26cb01['revisions']&&_0x26cb01['revisions']['length']||(_0x26cb01['revisions']=[]),_0x26cb01['revisions']['push'](_0x2dfa82['RevisionDescriptor']['decode'](_0x55df83,_0x55df83['uint32']()));break;default:_0x55df83['skipType'](0x7&_0x4c10ba);}}return _0x26cb01;},_0x4bd271['decodeDelimited']=function(_0x3d8218){return _0x3d8218 instanceof _0x150291||(_0x3d8218=new _0x150291(_0x3d8218)),this['decode'](_0x3d8218,_0x3d8218['uint32']());},_0x4bd271['verify']=function(_0x3905e1){if('object'!=typeof _0x3905e1||null===_0x3905e1)return'object\x20expected';if(null!=_0x3905e1['documentId']&&_0x3905e1['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x3905e1['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x3905e1['requestId']&&_0x3905e1['hasOwnProperty']('requestId')&&!_0x4a15b3['isInteger'](_0x3905e1['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x3905e1['revisions']&&_0x3905e1['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x3905e1['revisions']))return'revisions:\x20array\x20expected';for(var _0x44c969=0x0;_0x44c969<_0x3905e1['revisions']['length'];++_0x44c969){var _0x12dfac=_0x2dfa82['RevisionDescriptor']['verify'](_0x3905e1['revisions'][_0x44c969]);if(_0x12dfac)return'revisions.'+_0x12dfac;}}return null;},_0x4bd271['fromObject']=function(_0x3b6889){if(_0x3b6889 instanceof _0x2dfa82['RevisionHistoryUpdateRevisionsMessage'])return _0x3b6889;var _0x25f515=new _0x2dfa82['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x3b6889['documentId']&&(_0x25f515['documentId']=String(_0x3b6889['documentId'])),null!=_0x3b6889['requestId']&&(_0x25f515['requestId']=_0x3b6889['requestId']>>>0x0),_0x3b6889['revisions']){if(!Array['isArray'](_0x3b6889['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x25f515['revisions']=[];for(var _0x3ad3fb=0x0;_0x3ad3fb<_0x3b6889['revisions']['length'];++_0x3ad3fb){if('object'!=typeof _0x3b6889['revisions'][_0x3ad3fb])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x25f515['revisions'][_0x3ad3fb]=_0x2dfa82['RevisionDescriptor']['fromObject'](_0x3b6889['revisions'][_0x3ad3fb]);}}return _0x25f515;},_0x4bd271['toObject']=function(_0x421980,_0x5b9900){_0x5b9900||(_0x5b9900={});var _0x2c0d50={};if((_0x5b9900['arrays']||_0x5b9900['defaults'])&&(_0x2c0d50['revisions']=[]),_0x5b9900['defaults']&&(_0x2c0d50['documentId']='',_0x2c0d50['requestId']=0x0),null!=_0x421980['documentId']&&_0x421980['hasOwnProperty']('documentId')&&(_0x2c0d50['documentId']=_0x421980['documentId']),null!=_0x421980['requestId']&&_0x421980['hasOwnProperty']('requestId')&&(_0x2c0d50['requestId']=_0x421980['requestId']),_0x421980['revisions']&&_0x421980['revisions']['length']){_0x2c0d50['revisions']=[];for(var _0x4d6398=0x0;_0x4d6398<_0x421980['revisions']['length'];++_0x4d6398)_0x2c0d50['revisions'][_0x4d6398]=_0x2dfa82['RevisionDescriptor']['toObject'](_0x421980['revisions'][_0x4d6398],_0x5b9900);}return _0x2c0d50;},_0x4bd271['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4bd271['getTypeUrl']=function(_0xf2196f){return void 0x0===_0xf2196f&&(_0xf2196f='type.googleapis.com'),_0xf2196f+'/RevisionHistoryUpdateRevisionsMessage';},_0x4bd271;}()),_0x2dfa82['RevisionHistoryReconnectMessage']=(function(){function _0x3dc0f5(_0x2bf7b5){if(_0x2bf7b5){for(var _0x5f1343=Object['keys'](_0x2bf7b5),_0x2c455d=0x0;_0x2c455d<_0x5f1343['length'];++_0x2c455d)null!=_0x2bf7b5[_0x5f1343[_0x2c455d]]&&(this[_0x5f1343[_0x2c455d]]=_0x2bf7b5[_0x5f1343[_0x2c455d]]);}}return _0x3dc0f5['prototype']['documentId']='',_0x3dc0f5['prototype']['requestId']=0x0,_0x3dc0f5['create']=function(_0x19053e){return new _0x3dc0f5(_0x19053e);},_0x3dc0f5['encode']=function(_0x2bd269,_0x3a1a2f){return _0x3a1a2f||(_0x3a1a2f=_0x278790['create']()),null!=_0x2bd269['documentId']&&Object['hasOwnProperty']['call'](_0x2bd269,'documentId')&&_0x3a1a2f['uint32'](0xa)['string'](_0x2bd269['documentId']),null!=_0x2bd269['requestId']&&Object['hasOwnProperty']['call'](_0x2bd269,'requestId')&&_0x3a1a2f['uint32'](0x10)['uint32'](_0x2bd269['requestId']),_0x3a1a2f;},_0x3dc0f5['encodeDelimited']=function(_0x1cb53f,_0x558c1f){return this['encode'](_0x1cb53f,_0x558c1f)['ldelim']();},_0x3dc0f5['decode']=function(_0x42ba0f,_0x1bdb62,_0x5379d5){_0x42ba0f instanceof _0x150291||(_0x42ba0f=_0x150291['create'](_0x42ba0f));for(var _0x196fa6=void 0x0===_0x1bdb62?_0x42ba0f['len']:_0x42ba0f['pos']+_0x1bdb62,_0x4965d0=new _0x2dfa82['RevisionHistoryReconnectMessage']();_0x42ba0f['pos']<_0x196fa6;){var _0x4ad8cc=_0x42ba0f['uint32']();if(_0x4ad8cc===_0x5379d5)break;switch(_0x4ad8cc>>>0x3){case 0x1:_0x4965d0['documentId']=_0x42ba0f['string']();break;case 0x2:_0x4965d0['requestId']=_0x42ba0f['uint32']();break;default:_0x42ba0f['skipType'](0x7&_0x4ad8cc);}}return _0x4965d0;},_0x3dc0f5['decodeDelimited']=function(_0x4c8394){return _0x4c8394 instanceof _0x150291||(_0x4c8394=new _0x150291(_0x4c8394)),this['decode'](_0x4c8394,_0x4c8394['uint32']());},_0x3dc0f5['verify']=function(_0x957295){return'object'!=typeof _0x957295||null===_0x957295?'object\x20expected':null!=_0x957295['documentId']&&_0x957295['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x957295['documentId'])?'documentId:\x20string\x20expected':null!=_0x957295['requestId']&&_0x957295['hasOwnProperty']('requestId')&&!_0x4a15b3['isInteger'](_0x957295['requestId'])?'requestId:\x20integer\x20expected':null;},_0x3dc0f5['fromObject']=function(_0x46aee2){if(_0x46aee2 instanceof _0x2dfa82['RevisionHistoryReconnectMessage'])return _0x46aee2;var _0x54ea2c=new _0x2dfa82['RevisionHistoryReconnectMessage']();return null!=_0x46aee2['documentId']&&(_0x54ea2c['documentId']=String(_0x46aee2['documentId'])),null!=_0x46aee2['requestId']&&(_0x54ea2c['requestId']=_0x46aee2['requestId']>>>0x0),_0x54ea2c;},_0x3dc0f5['toObject']=function(_0x893d42,_0x412dde){_0x412dde||(_0x412dde={});var _0x322534={};return _0x412dde['defaults']&&(_0x322534['documentId']='',_0x322534['requestId']=0x0),null!=_0x893d42['documentId']&&_0x893d42['hasOwnProperty']('documentId')&&(_0x322534['documentId']=_0x893d42['documentId']),null!=_0x893d42['requestId']&&_0x893d42['hasOwnProperty']('requestId')&&(_0x322534['requestId']=_0x893d42['requestId']),_0x322534;},_0x3dc0f5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3dc0f5['getTypeUrl']=function(_0x3efc3b){return void 0x0===_0x3efc3b&&(_0x3efc3b='type.googleapis.com'),_0x3efc3b+'/RevisionHistoryReconnectMessage';},_0x3dc0f5;}()),_0x2dfa82['RevisionHistoryGetRevisionMessage']=(function(){function _0xc69c17(_0xcf4387){if(_0xcf4387){for(var _0x31da92=Object['keys'](_0xcf4387),_0x503968=0x0;_0x503968<_0x31da92['length'];++_0x503968)null!=_0xcf4387[_0x31da92[_0x503968]]&&(this[_0x31da92[_0x503968]]=_0xcf4387[_0x31da92[_0x503968]]);}}return _0xc69c17['prototype']['documentId']='',_0xc69c17['prototype']['revisionId']='',_0xc69c17['create']=function(_0x17f8f7){return new _0xc69c17(_0x17f8f7);},_0xc69c17['encode']=function(_0x247e97,_0xaca04b){return _0xaca04b||(_0xaca04b=_0x278790['create']()),null!=_0x247e97['documentId']&&Object['hasOwnProperty']['call'](_0x247e97,'documentId')&&_0xaca04b['uint32'](0xa)['string'](_0x247e97['documentId']),null!=_0x247e97['revisionId']&&Object['hasOwnProperty']['call'](_0x247e97,'revisionId')&&_0xaca04b['uint32'](0x12)['string'](_0x247e97['revisionId']),_0xaca04b;},_0xc69c17['encodeDelimited']=function(_0x33f2a2,_0x41b608){return this['encode'](_0x33f2a2,_0x41b608)['ldelim']();},_0xc69c17['decode']=function(_0x6a8612,_0x19183c,_0x2a5ca4){_0x6a8612 instanceof _0x150291||(_0x6a8612=_0x150291['create'](_0x6a8612));for(var _0x133c7b=void 0x0===_0x19183c?_0x6a8612['len']:_0x6a8612['pos']+_0x19183c,_0x17d05b=new _0x2dfa82['RevisionHistoryGetRevisionMessage']();_0x6a8612['pos']<_0x133c7b;){var _0x3d53bc=_0x6a8612['uint32']();if(_0x3d53bc===_0x2a5ca4)break;switch(_0x3d53bc>>>0x3){case 0x1:_0x17d05b['documentId']=_0x6a8612['string']();break;case 0x2:_0x17d05b['revisionId']=_0x6a8612['string']();break;default:_0x6a8612['skipType'](0x7&_0x3d53bc);}}return _0x17d05b;},_0xc69c17['decodeDelimited']=function(_0x56a33d){return _0x56a33d instanceof _0x150291||(_0x56a33d=new _0x150291(_0x56a33d)),this['decode'](_0x56a33d,_0x56a33d['uint32']());},_0xc69c17['verify']=function(_0x1e54da){return'object'!=typeof _0x1e54da||null===_0x1e54da?'object\x20expected':null!=_0x1e54da['documentId']&&_0x1e54da['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x1e54da['documentId'])?'documentId:\x20string\x20expected':null!=_0x1e54da['revisionId']&&_0x1e54da['hasOwnProperty']('revisionId')&&!_0x4a15b3['isString'](_0x1e54da['revisionId'])?'revisionId:\x20string\x20expected':null;},_0xc69c17['fromObject']=function(_0x5be16e){if(_0x5be16e instanceof _0x2dfa82['RevisionHistoryGetRevisionMessage'])return _0x5be16e;var _0xf83add=new _0x2dfa82['RevisionHistoryGetRevisionMessage']();return null!=_0x5be16e['documentId']&&(_0xf83add['documentId']=String(_0x5be16e['documentId'])),null!=_0x5be16e['revisionId']&&(_0xf83add['revisionId']=String(_0x5be16e['revisionId'])),_0xf83add;},_0xc69c17['toObject']=function(_0x113cb8,_0x5ab3dc){_0x5ab3dc||(_0x5ab3dc={});var _0x381112={};return _0x5ab3dc['defaults']&&(_0x381112['documentId']='',_0x381112['revisionId']=''),null!=_0x113cb8['documentId']&&_0x113cb8['hasOwnProperty']('documentId')&&(_0x381112['documentId']=_0x113cb8['documentId']),null!=_0x113cb8['revisionId']&&_0x113cb8['hasOwnProperty']('revisionId')&&(_0x381112['revisionId']=_0x113cb8['revisionId']),_0x381112;},_0xc69c17['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xc69c17['getTypeUrl']=function(_0x4d5351){return void 0x0===_0x4d5351&&(_0x4d5351='type.googleapis.com'),_0x4d5351+'/RevisionHistoryGetRevisionMessage';},_0xc69c17;}()),_0x2dfa82['RevisionHistoryConnectMessage']=(function(){function _0x1c9e7d(_0x1977de){if(_0x1977de){for(var _0x3f34ab=Object['keys'](_0x1977de),_0x1892ad=0x0;_0x1892ad<_0x3f34ab['length'];++_0x1892ad)null!=_0x1977de[_0x3f34ab[_0x1892ad]]&&(this[_0x3f34ab[_0x1892ad]]=_0x1977de[_0x3f34ab[_0x1892ad]]);}}return _0x1c9e7d['prototype']['documentId']='',_0x1c9e7d['create']=function(_0x4984a2){return new _0x1c9e7d(_0x4984a2);},_0x1c9e7d['encode']=function(_0x557301,_0x40a692){return _0x40a692||(_0x40a692=_0x278790['create']()),null!=_0x557301['documentId']&&Object['hasOwnProperty']['call'](_0x557301,'documentId')&&_0x40a692['uint32'](0xa)['string'](_0x557301['documentId']),_0x40a692;},_0x1c9e7d['encodeDelimited']=function(_0x5b2eed,_0x41fee7){return this['encode'](_0x5b2eed,_0x41fee7)['ldelim']();},_0x1c9e7d['decode']=function(_0x14a74e,_0x585f47,_0x4aba16){_0x14a74e instanceof _0x150291||(_0x14a74e=_0x150291['create'](_0x14a74e));for(var _0x4a94ac=void 0x0===_0x585f47?_0x14a74e['len']:_0x14a74e['pos']+_0x585f47,_0x3f34e4=new _0x2dfa82['RevisionHistoryConnectMessage']();_0x14a74e['pos']<_0x4a94ac;){var _0xe083b0=_0x14a74e['uint32']();if(_0xe083b0===_0x4aba16)break;_0xe083b0>>>0x3==0x1?_0x3f34e4['documentId']=_0x14a74e['string']():_0x14a74e['skipType'](0x7&_0xe083b0);}return _0x3f34e4;},_0x1c9e7d['decodeDelimited']=function(_0xb8a52c){return _0xb8a52c instanceof _0x150291||(_0xb8a52c=new _0x150291(_0xb8a52c)),this['decode'](_0xb8a52c,_0xb8a52c['uint32']());},_0x1c9e7d['verify']=function(_0x3ab6cf){return'object'!=typeof _0x3ab6cf||null===_0x3ab6cf?'object\x20expected':null!=_0x3ab6cf['documentId']&&_0x3ab6cf['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x3ab6cf['documentId'])?'documentId:\x20string\x20expected':null;},_0x1c9e7d['fromObject']=function(_0x3172f2){if(_0x3172f2 instanceof _0x2dfa82['RevisionHistoryConnectMessage'])return _0x3172f2;var _0x575359=new _0x2dfa82['RevisionHistoryConnectMessage']();return null!=_0x3172f2['documentId']&&(_0x575359['documentId']=String(_0x3172f2['documentId'])),_0x575359;},_0x1c9e7d['toObject']=function(_0xe0a14a,_0x3e7476){_0x3e7476||(_0x3e7476={});var _0x812708={};return _0x3e7476['defaults']&&(_0x812708['documentId']=''),null!=_0xe0a14a['documentId']&&_0xe0a14a['hasOwnProperty']('documentId')&&(_0x812708['documentId']=_0xe0a14a['documentId']),_0x812708;},_0x1c9e7d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1c9e7d['getTypeUrl']=function(_0x8d8b43){return void 0x0===_0x8d8b43&&(_0x8d8b43='type.googleapis.com'),_0x8d8b43+'/RevisionHistoryConnectMessage';},_0x1c9e7d;}()),_0x2dfa82['RevisionDescriptor']=(function(){function _0xaf5eeb(_0xaca4c){if(_0xaca4c){for(var _0x1fd2d7=Object['keys'](_0xaca4c),_0x2dafb1=0x0;_0x2dafb1<_0x1fd2d7['length'];++_0x2dafb1)null!=_0xaca4c[_0x1fd2d7[_0x2dafb1]]&&(this[_0x1fd2d7[_0x2dafb1]]=_0xaca4c[_0x1fd2d7[_0x2dafb1]]);}}return _0xaf5eeb['prototype']['revisionId']='',_0xaf5eeb['prototype']['name']='',_0xaf5eeb['prototype']['creatorId']='',_0xaf5eeb['prototype']['authorsIds']='',_0xaf5eeb['prototype']['diffData']='',_0xaf5eeb['prototype']['createdAt']='',_0xaf5eeb['prototype']['attributes']='',_0xaf5eeb['prototype']['toVersion']=0x0,_0xaf5eeb['prototype']['fromVersion']=0x0,_0xaf5eeb['prototype']['isEmptyCurrent']=!0x1,_0xaf5eeb['create']=function(_0x3354cc){return new _0xaf5eeb(_0x3354cc);},_0xaf5eeb['encode']=function(_0x1f2d44,_0x17e599){return _0x17e599||(_0x17e599=_0x278790['create']()),null!=_0x1f2d44['revisionId']&&Object['hasOwnProperty']['call'](_0x1f2d44,'revisionId')&&_0x17e599['uint32'](0xa)['string'](_0x1f2d44['revisionId']),null!=_0x1f2d44['name']&&Object['hasOwnProperty']['call'](_0x1f2d44,'name')&&_0x17e599['uint32'](0x12)['string'](_0x1f2d44['name']),null!=_0x1f2d44['creatorId']&&Object['hasOwnProperty']['call'](_0x1f2d44,'creatorId')&&_0x17e599['uint32'](0x1a)['string'](_0x1f2d44['creatorId']),null!=_0x1f2d44['authorsIds']&&Object['hasOwnProperty']['call'](_0x1f2d44,'authorsIds')&&_0x17e599['uint32'](0x22)['string'](_0x1f2d44['authorsIds']),null!=_0x1f2d44['diffData']&&Object['hasOwnProperty']['call'](_0x1f2d44,'diffData')&&_0x17e599['uint32'](0x2a)['string'](_0x1f2d44['diffData']),null!=_0x1f2d44['createdAt']&&Object['hasOwnProperty']['call'](_0x1f2d44,'createdAt')&&_0x17e599['uint32'](0x32)['string'](_0x1f2d44['createdAt']),null!=_0x1f2d44['attributes']&&Object['hasOwnProperty']['call'](_0x1f2d44,'attributes')&&_0x17e599['uint32'](0x3a)['string'](_0x1f2d44['attributes']),null!=_0x1f2d44['toVersion']&&Object['hasOwnProperty']['call'](_0x1f2d44,'toVersion')&&_0x17e599['uint32'](0x40)['uint32'](_0x1f2d44['toVersion']),null!=_0x1f2d44['fromVersion']&&Object['hasOwnProperty']['call'](_0x1f2d44,'fromVersion')&&_0x17e599['uint32'](0x48)['uint32'](_0x1f2d44['fromVersion']),null!=_0x1f2d44['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x1f2d44,'isEmptyCurrent')&&_0x17e599['uint32'](0x50)['bool'](_0x1f2d44['isEmptyCurrent']),_0x17e599;},_0xaf5eeb['encodeDelimited']=function(_0x333970,_0x4f507f){return this['encode'](_0x333970,_0x4f507f)['ldelim']();},_0xaf5eeb['decode']=function(_0x32a96e,_0x40098a,_0x58fc37){_0x32a96e instanceof _0x150291||(_0x32a96e=_0x150291['create'](_0x32a96e));for(var _0x9f8e53=void 0x0===_0x40098a?_0x32a96e['len']:_0x32a96e['pos']+_0x40098a,_0x59b3da=new _0x2dfa82['RevisionDescriptor']();_0x32a96e['pos']<_0x9f8e53;){var _0x2ac8a5=_0x32a96e['uint32']();if(_0x2ac8a5===_0x58fc37)break;switch(_0x2ac8a5>>>0x3){case 0x1:_0x59b3da['revisionId']=_0x32a96e['string']();break;case 0x2:_0x59b3da['name']=_0x32a96e['string']();break;case 0x3:_0x59b3da['creatorId']=_0x32a96e['string']();break;case 0x4:_0x59b3da['authorsIds']=_0x32a96e['string']();break;case 0x5:_0x59b3da['diffData']=_0x32a96e['string']();break;case 0x6:_0x59b3da['createdAt']=_0x32a96e['string']();break;case 0x7:_0x59b3da['attributes']=_0x32a96e['string']();break;case 0x8:_0x59b3da['toVersion']=_0x32a96e['uint32']();break;case 0x9:_0x59b3da['fromVersion']=_0x32a96e['uint32']();break;case 0xa:_0x59b3da['isEmptyCurrent']=_0x32a96e['bool']();break;default:_0x32a96e['skipType'](0x7&_0x2ac8a5);}}return _0x59b3da;},_0xaf5eeb['decodeDelimited']=function(_0x4386b1){return _0x4386b1 instanceof _0x150291||(_0x4386b1=new _0x150291(_0x4386b1)),this['decode'](_0x4386b1,_0x4386b1['uint32']());},_0xaf5eeb['verify']=function(_0x55a673){return'object'!=typeof _0x55a673||null===_0x55a673?'object\x20expected':null!=_0x55a673['revisionId']&&_0x55a673['hasOwnProperty']('revisionId')&&!_0x4a15b3['isString'](_0x55a673['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x55a673['name']&&_0x55a673['hasOwnProperty']('name')&&!_0x4a15b3['isString'](_0x55a673['name'])?'name:\x20string\x20expected':null!=_0x55a673['creatorId']&&_0x55a673['hasOwnProperty']('creatorId')&&!_0x4a15b3['isString'](_0x55a673['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x55a673['authorsIds']&&_0x55a673['hasOwnProperty']('authorsIds')&&!_0x4a15b3['isString'](_0x55a673['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x55a673['diffData']&&_0x55a673['hasOwnProperty']('diffData')&&!_0x4a15b3['isString'](_0x55a673['diffData'])?'diffData:\x20string\x20expected':null!=_0x55a673['createdAt']&&_0x55a673['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x55a673['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x55a673['attributes']&&_0x55a673['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x55a673['attributes'])?'attributes:\x20string\x20expected':null!=_0x55a673['toVersion']&&_0x55a673['hasOwnProperty']('toVersion')&&!_0x4a15b3['isInteger'](_0x55a673['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x55a673['fromVersion']&&_0x55a673['hasOwnProperty']('fromVersion')&&!_0x4a15b3['isInteger'](_0x55a673['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x55a673['isEmptyCurrent']&&_0x55a673['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x55a673['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0xaf5eeb['fromObject']=function(_0x4242ee){if(_0x4242ee instanceof _0x2dfa82['RevisionDescriptor'])return _0x4242ee;var _0x44d8b4=new _0x2dfa82['RevisionDescriptor']();return null!=_0x4242ee['revisionId']&&(_0x44d8b4['revisionId']=String(_0x4242ee['revisionId'])),null!=_0x4242ee['name']&&(_0x44d8b4['name']=String(_0x4242ee['name'])),null!=_0x4242ee['creatorId']&&(_0x44d8b4['creatorId']=String(_0x4242ee['creatorId'])),null!=_0x4242ee['authorsIds']&&(_0x44d8b4['authorsIds']=String(_0x4242ee['authorsIds'])),null!=_0x4242ee['diffData']&&(_0x44d8b4['diffData']=String(_0x4242ee['diffData'])),null!=_0x4242ee['createdAt']&&(_0x44d8b4['createdAt']=String(_0x4242ee['createdAt'])),null!=_0x4242ee['attributes']&&(_0x44d8b4['attributes']=String(_0x4242ee['attributes'])),null!=_0x4242ee['toVersion']&&(_0x44d8b4['toVersion']=_0x4242ee['toVersion']>>>0x0),null!=_0x4242ee['fromVersion']&&(_0x44d8b4['fromVersion']=_0x4242ee['fromVersion']>>>0x0),null!=_0x4242ee['isEmptyCurrent']&&(_0x44d8b4['isEmptyCurrent']=Boolean(_0x4242ee['isEmptyCurrent'])),_0x44d8b4;},_0xaf5eeb['toObject']=function(_0x278f3b,_0x3bd554){_0x3bd554||(_0x3bd554={});var _0xba2e99={};return _0x3bd554['defaults']&&(_0xba2e99['revisionId']='',_0xba2e99['name']='',_0xba2e99['creatorId']='',_0xba2e99['authorsIds']='',_0xba2e99['diffData']='',_0xba2e99['createdAt']='',_0xba2e99['attributes']='',_0xba2e99['toVersion']=0x0,_0xba2e99['fromVersion']=0x0,_0xba2e99['isEmptyCurrent']=!0x1),null!=_0x278f3b['revisionId']&&_0x278f3b['hasOwnProperty']('revisionId')&&(_0xba2e99['revisionId']=_0x278f3b['revisionId']),null!=_0x278f3b['name']&&_0x278f3b['hasOwnProperty']('name')&&(_0xba2e99['name']=_0x278f3b['name']),null!=_0x278f3b['creatorId']&&_0x278f3b['hasOwnProperty']('creatorId')&&(_0xba2e99['creatorId']=_0x278f3b['creatorId']),null!=_0x278f3b['authorsIds']&&_0x278f3b['hasOwnProperty']('authorsIds')&&(_0xba2e99['authorsIds']=_0x278f3b['authorsIds']),null!=_0x278f3b['diffData']&&_0x278f3b['hasOwnProperty']('diffData')&&(_0xba2e99['diffData']=_0x278f3b['diffData']),null!=_0x278f3b['createdAt']&&_0x278f3b['hasOwnProperty']('createdAt')&&(_0xba2e99['createdAt']=_0x278f3b['createdAt']),null!=_0x278f3b['attributes']&&_0x278f3b['hasOwnProperty']('attributes')&&(_0xba2e99['attributes']=_0x278f3b['attributes']),null!=_0x278f3b['toVersion']&&_0x278f3b['hasOwnProperty']('toVersion')&&(_0xba2e99['toVersion']=_0x278f3b['toVersion']),null!=_0x278f3b['fromVersion']&&_0x278f3b['hasOwnProperty']('fromVersion')&&(_0xba2e99['fromVersion']=_0x278f3b['fromVersion']),null!=_0x278f3b['isEmptyCurrent']&&_0x278f3b['hasOwnProperty']('isEmptyCurrent')&&(_0xba2e99['isEmptyCurrent']=_0x278f3b['isEmptyCurrent']),_0xba2e99;},_0xaf5eeb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xaf5eeb['getTypeUrl']=function(_0x59ca12){return void 0x0===_0x59ca12&&(_0x59ca12='type.googleapis.com'),_0x59ca12+'/RevisionDescriptor';},_0xaf5eeb;}()),_0x2dfa82['IsEditorBundleUploadedResponse']=(function(){function _0x377b15(_0x4d47fa){if(_0x4d47fa){for(var _0x17c878=Object['keys'](_0x4d47fa),_0x1905fd=0x0;_0x1905fd<_0x17c878['length'];++_0x1905fd)null!=_0x4d47fa[_0x17c878[_0x1905fd]]&&(this[_0x17c878[_0x1905fd]]=_0x4d47fa[_0x17c878[_0x1905fd]]);}}return _0x377b15['prototype']['isUploaded']=!0x1,_0x377b15['create']=function(_0x5aaff9){return new _0x377b15(_0x5aaff9);},_0x377b15['encode']=function(_0x1b657b,_0x910a02){return _0x910a02||(_0x910a02=_0x278790['create']()),null!=_0x1b657b['isUploaded']&&Object['hasOwnProperty']['call'](_0x1b657b,'isUploaded')&&_0x910a02['uint32'](0x8)['bool'](_0x1b657b['isUploaded']),_0x910a02;},_0x377b15['encodeDelimited']=function(_0x41a187,_0x4277e5){return this['encode'](_0x41a187,_0x4277e5)['ldelim']();},_0x377b15['decode']=function(_0x2dd389,_0x42ac71,_0x351e77){_0x2dd389 instanceof _0x150291||(_0x2dd389=_0x150291['create'](_0x2dd389));for(var _0x28acd0=void 0x0===_0x42ac71?_0x2dd389['len']:_0x2dd389['pos']+_0x42ac71,_0x45949c=new _0x2dfa82['IsEditorBundleUploadedResponse']();_0x2dd389['pos']<_0x28acd0;){var _0x467e82=_0x2dd389['uint32']();if(_0x467e82===_0x351e77)break;_0x467e82>>>0x3==0x1?_0x45949c['isUploaded']=_0x2dd389['bool']():_0x2dd389['skipType'](0x7&_0x467e82);}return _0x45949c;},_0x377b15['decodeDelimited']=function(_0x1a14e1){return _0x1a14e1 instanceof _0x150291||(_0x1a14e1=new _0x150291(_0x1a14e1)),this['decode'](_0x1a14e1,_0x1a14e1['uint32']());},_0x377b15['verify']=function(_0x26fee2){return'object'!=typeof _0x26fee2||null===_0x26fee2?'object\x20expected':null!=_0x26fee2['isUploaded']&&_0x26fee2['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x26fee2['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0x377b15['fromObject']=function(_0x681c51){if(_0x681c51 instanceof _0x2dfa82['IsEditorBundleUploadedResponse'])return _0x681c51;var _0x50ee8c=new _0x2dfa82['IsEditorBundleUploadedResponse']();return null!=_0x681c51['isUploaded']&&(_0x50ee8c['isUploaded']=Boolean(_0x681c51['isUploaded'])),_0x50ee8c;},_0x377b15['toObject']=function(_0x37a2ee,_0x185e8a){_0x185e8a||(_0x185e8a={});var _0x5a8043={};return _0x185e8a['defaults']&&(_0x5a8043['isUploaded']=!0x1),null!=_0x37a2ee['isUploaded']&&_0x37a2ee['hasOwnProperty']('isUploaded')&&(_0x5a8043['isUploaded']=_0x37a2ee['isUploaded']),_0x5a8043;},_0x377b15['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x377b15['getTypeUrl']=function(_0x286045){return void 0x0===_0x286045&&(_0x286045='type.googleapis.com'),_0x286045+'/IsEditorBundleUploadedResponse';},_0x377b15;}()),_0x2dfa82['IsEditorBundleUploadedMessage']=(function(){function _0x5d9c62(_0x365f76){if(_0x365f76){for(var _0x3f83e7=Object['keys'](_0x365f76),_0xd29943=0x0;_0xd29943<_0x3f83e7['length'];++_0xd29943)null!=_0x365f76[_0x3f83e7[_0xd29943]]&&(this[_0x3f83e7[_0xd29943]]=_0x365f76[_0x3f83e7[_0xd29943]]);}}return _0x5d9c62['prototype']['bundleVersion']='',_0x5d9c62['create']=function(_0x2fce9d){return new _0x5d9c62(_0x2fce9d);},_0x5d9c62['encode']=function(_0x113108,_0x4406e5){return _0x4406e5||(_0x4406e5=_0x278790['create']()),null!=_0x113108['bundleVersion']&&Object['hasOwnProperty']['call'](_0x113108,'bundleVersion')&&_0x4406e5['uint32'](0xa)['string'](_0x113108['bundleVersion']),_0x4406e5;},_0x5d9c62['encodeDelimited']=function(_0x1b1a69,_0x3a0cc6){return this['encode'](_0x1b1a69,_0x3a0cc6)['ldelim']();},_0x5d9c62['decode']=function(_0x19fd2e,_0x55b883,_0x1f5386){_0x19fd2e instanceof _0x150291||(_0x19fd2e=_0x150291['create'](_0x19fd2e));for(var _0x4f64bc=void 0x0===_0x55b883?_0x19fd2e['len']:_0x19fd2e['pos']+_0x55b883,_0x316c76=new _0x2dfa82['IsEditorBundleUploadedMessage']();_0x19fd2e['pos']<_0x4f64bc;){var _0x4cc432=_0x19fd2e['uint32']();if(_0x4cc432===_0x1f5386)break;_0x4cc432>>>0x3==0x1?_0x316c76['bundleVersion']=_0x19fd2e['string']():_0x19fd2e['skipType'](0x7&_0x4cc432);}return _0x316c76;},_0x5d9c62['decodeDelimited']=function(_0x45be49){return _0x45be49 instanceof _0x150291||(_0x45be49=new _0x150291(_0x45be49)),this['decode'](_0x45be49,_0x45be49['uint32']());},_0x5d9c62['verify']=function(_0x275de1){return'object'!=typeof _0x275de1||null===_0x275de1?'object\x20expected':null!=_0x275de1['bundleVersion']&&_0x275de1['hasOwnProperty']('bundleVersion')&&!_0x4a15b3['isString'](_0x275de1['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x5d9c62['fromObject']=function(_0x916b7f){if(_0x916b7f instanceof _0x2dfa82['IsEditorBundleUploadedMessage'])return _0x916b7f;var _0x4e1ea3=new _0x2dfa82['IsEditorBundleUploadedMessage']();return null!=_0x916b7f['bundleVersion']&&(_0x4e1ea3['bundleVersion']=String(_0x916b7f['bundleVersion'])),_0x4e1ea3;},_0x5d9c62['toObject']=function(_0x376bb3,_0x3b86d9){_0x3b86d9||(_0x3b86d9={});var _0x576f57={};return _0x3b86d9['defaults']&&(_0x576f57['bundleVersion']=''),null!=_0x376bb3['bundleVersion']&&_0x376bb3['hasOwnProperty']('bundleVersion')&&(_0x576f57['bundleVersion']=_0x376bb3['bundleVersion']),_0x576f57;},_0x5d9c62['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5d9c62['getTypeUrl']=function(_0x685819){return void 0x0===_0x685819&&(_0x685819='type.googleapis.com'),_0x685819+'/IsEditorBundleUploadedMessage';},_0x5d9c62;}()),_0x2dfa82['KeyValueDescriptor']=(function(){function _0x400722(_0x37a61a){if(_0x37a61a){for(var _0xec8470=Object['keys'](_0x37a61a),_0x32f9db=0x0;_0x32f9db<_0xec8470['length'];++_0x32f9db)null!=_0x37a61a[_0xec8470[_0x32f9db]]&&(this[_0xec8470[_0x32f9db]]=_0x37a61a[_0xec8470[_0x32f9db]]);}}return _0x400722['prototype']['key']='',_0x400722['prototype']['value']='',_0x400722['create']=function(_0x325a34){return new _0x400722(_0x325a34);},_0x400722['encode']=function(_0x2a4a5e,_0x214f08){return _0x214f08||(_0x214f08=_0x278790['create']()),null!=_0x2a4a5e['key']&&Object['hasOwnProperty']['call'](_0x2a4a5e,'key')&&_0x214f08['uint32'](0xa)['string'](_0x2a4a5e['key']),null!=_0x2a4a5e['value']&&Object['hasOwnProperty']['call'](_0x2a4a5e,'value')&&_0x214f08['uint32'](0x12)['string'](_0x2a4a5e['value']),_0x214f08;},_0x400722['encodeDelimited']=function(_0x179113,_0x43e110){return this['encode'](_0x179113,_0x43e110)['ldelim']();},_0x400722['decode']=function(_0x409cad,_0x574b5d,_0x27dec4){_0x409cad instanceof _0x150291||(_0x409cad=_0x150291['create'](_0x409cad));for(var _0x4465b4=void 0x0===_0x574b5d?_0x409cad['len']:_0x409cad['pos']+_0x574b5d,_0x22f7e4=new _0x2dfa82['KeyValueDescriptor']();_0x409cad['pos']<_0x4465b4;){var _0xb30eb0=_0x409cad['uint32']();if(_0xb30eb0===_0x27dec4)break;switch(_0xb30eb0>>>0x3){case 0x1:_0x22f7e4['key']=_0x409cad['string']();break;case 0x2:_0x22f7e4['value']=_0x409cad['string']();break;default:_0x409cad['skipType'](0x7&_0xb30eb0);}}return _0x22f7e4;},_0x400722['decodeDelimited']=function(_0x4e75d2){return _0x4e75d2 instanceof _0x150291||(_0x4e75d2=new _0x150291(_0x4e75d2)),this['decode'](_0x4e75d2,_0x4e75d2['uint32']());},_0x400722['verify']=function(_0x207493){return'object'!=typeof _0x207493||null===_0x207493?'object\x20expected':null!=_0x207493['key']&&_0x207493['hasOwnProperty']('key')&&!_0x4a15b3['isString'](_0x207493['key'])?'key:\x20string\x20expected':null!=_0x207493['value']&&_0x207493['hasOwnProperty']('value')&&!_0x4a15b3['isString'](_0x207493['value'])?'value:\x20string\x20expected':null;},_0x400722['fromObject']=function(_0xc41b61){if(_0xc41b61 instanceof _0x2dfa82['KeyValueDescriptor'])return _0xc41b61;var _0x51a693=new _0x2dfa82['KeyValueDescriptor']();return null!=_0xc41b61['key']&&(_0x51a693['key']=String(_0xc41b61['key'])),null!=_0xc41b61['value']&&(_0x51a693['value']=String(_0xc41b61['value'])),_0x51a693;},_0x400722['toObject']=function(_0x1a4685,_0x5bebea){_0x5bebea||(_0x5bebea={});var _0x243df9={};return _0x5bebea['defaults']&&(_0x243df9['key']='',_0x243df9['value']=''),null!=_0x1a4685['key']&&_0x1a4685['hasOwnProperty']('key')&&(_0x243df9['key']=_0x1a4685['key']),null!=_0x1a4685['value']&&_0x1a4685['hasOwnProperty']('value')&&(_0x243df9['value']=_0x1a4685['value']),_0x243df9;},_0x400722['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x400722['getTypeUrl']=function(_0x36b53c){return void 0x0===_0x36b53c&&(_0x36b53c='type.googleapis.com'),_0x36b53c+'/KeyValueDescriptor';},_0x400722;}()),_0x2dfa82['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x2651f2(_0x246796){if(this['threads']=[],this['threadsV2']=[],_0x246796){for(var _0x4661d1=Object['keys'](_0x246796),_0x428a4b=0x0;_0x428a4b<_0x4661d1['length'];++_0x428a4b)null!=_0x246796[_0x4661d1[_0x428a4b]]&&(this[_0x4661d1[_0x428a4b]]=_0x246796[_0x4661d1[_0x428a4b]]);}}return _0x2651f2['prototype']['threads']=_0x4a15b3['emptyArray'],_0x2651f2['prototype']['threadsV2']=_0x4a15b3['emptyArray'],_0x2651f2['create']=function(_0x2081fe){return new _0x2651f2(_0x2081fe);},_0x2651f2['encode']=function(_0x54ec44,_0x19581c){if(_0x19581c||(_0x19581c=_0x278790['create']()),null!=_0x54ec44['threads']&&_0x54ec44['threads']['length']){for(var _0x384294=0x0;_0x384294<_0x54ec44['threads']['length'];++_0x384294)_0x19581c['uint32'](0xa)['string'](_0x54ec44['threads'][_0x384294]);}if(null!=_0x54ec44['threadsV2']&&_0x54ec44['threadsV2']['length']){for(_0x384294=0x0;_0x384294<_0x54ec44['threadsV2']['length'];++_0x384294)_0x2dfa82['CommentsThreadDescriptor']['encode'](_0x54ec44['threadsV2'][_0x384294],_0x19581c['uint32'](0x12)['fork']())['ldelim']();}return _0x19581c;},_0x2651f2['encodeDelimited']=function(_0x90a87f,_0x4f558a){return this['encode'](_0x90a87f,_0x4f558a)['ldelim']();},_0x2651f2['decode']=function(_0x1e6207,_0x1bd1eb,_0x145fb0){_0x1e6207 instanceof _0x150291||(_0x1e6207=_0x150291['create'](_0x1e6207));for(var _0x27b34d=void 0x0===_0x1bd1eb?_0x1e6207['len']:_0x1e6207['pos']+_0x1bd1eb,_0x525cd1=new _0x2dfa82['CommentsV2GetDocumentThreadsResponse']();_0x1e6207['pos']<_0x27b34d;){var _0x5b889a=_0x1e6207['uint32']();if(_0x5b889a===_0x145fb0)break;switch(_0x5b889a>>>0x3){case 0x1:_0x525cd1['threads']&&_0x525cd1['threads']['length']||(_0x525cd1['threads']=[]),_0x525cd1['threads']['push'](_0x1e6207['string']());break;case 0x2:_0x525cd1['threadsV2']&&_0x525cd1['threadsV2']['length']||(_0x525cd1['threadsV2']=[]),_0x525cd1['threadsV2']['push'](_0x2dfa82['CommentsThreadDescriptor']['decode'](_0x1e6207,_0x1e6207['uint32']()));break;default:_0x1e6207['skipType'](0x7&_0x5b889a);}}return _0x525cd1;},_0x2651f2['decodeDelimited']=function(_0x413559){return _0x413559 instanceof _0x150291||(_0x413559=new _0x150291(_0x413559)),this['decode'](_0x413559,_0x413559['uint32']());},_0x2651f2['verify']=function(_0x508eba){if('object'!=typeof _0x508eba||null===_0x508eba)return'object\x20expected';if(null!=_0x508eba['threads']&&_0x508eba['hasOwnProperty']('threads')){if(!Array['isArray'](_0x508eba['threads']))return'threads:\x20array\x20expected';for(var _0x5d88d0=0x0;_0x5d88d0<_0x508eba['threads']['length'];++_0x5d88d0)if(!_0x4a15b3['isString'](_0x508eba['threads'][_0x5d88d0]))return'threads:\x20string[]\x20expected';}if(null!=_0x508eba['threadsV2']&&_0x508eba['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x508eba['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x5d88d0=0x0;_0x5d88d0<_0x508eba['threadsV2']['length'];++_0x5d88d0){var _0x472297=_0x2dfa82['CommentsThreadDescriptor']['verify'](_0x508eba['threadsV2'][_0x5d88d0]);if(_0x472297)return'threadsV2.'+_0x472297;}}return null;},_0x2651f2['fromObject']=function(_0x2e2400){if(_0x2e2400 instanceof _0x2dfa82['CommentsV2GetDocumentThreadsResponse'])return _0x2e2400;var _0x4712ef=new _0x2dfa82['CommentsV2GetDocumentThreadsResponse']();if(_0x2e2400['threads']){if(!Array['isArray'](_0x2e2400['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x4712ef['threads']=[];for(var _0x47769b=0x0;_0x47769b<_0x2e2400['threads']['length'];++_0x47769b)_0x4712ef['threads'][_0x47769b]=String(_0x2e2400['threads'][_0x47769b]);}if(_0x2e2400['threadsV2']){if(!Array['isArray'](_0x2e2400['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x4712ef['threadsV2']=[],_0x47769b=0x0;_0x47769b<_0x2e2400['threadsV2']['length'];++_0x47769b){if('object'!=typeof _0x2e2400['threadsV2'][_0x47769b])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x4712ef['threadsV2'][_0x47769b]=_0x2dfa82['CommentsThreadDescriptor']['fromObject'](_0x2e2400['threadsV2'][_0x47769b]);}}return _0x4712ef;},_0x2651f2['toObject']=function(_0x13a7a2,_0x199025){_0x199025||(_0x199025={});var _0x3263ca={};if((_0x199025['arrays']||_0x199025['defaults'])&&(_0x3263ca['threads']=[],_0x3263ca['threadsV2']=[]),_0x13a7a2['threads']&&_0x13a7a2['threads']['length']){_0x3263ca['threads']=[];for(var _0x88b39e=0x0;_0x88b39e<_0x13a7a2['threads']['length'];++_0x88b39e)_0x3263ca['threads'][_0x88b39e]=_0x13a7a2['threads'][_0x88b39e];}if(_0x13a7a2['threadsV2']&&_0x13a7a2['threadsV2']['length']){for(_0x3263ca['threadsV2']=[],_0x88b39e=0x0;_0x88b39e<_0x13a7a2['threadsV2']['length'];++_0x88b39e)_0x3263ca['threadsV2'][_0x88b39e]=_0x2dfa82['CommentsThreadDescriptor']['toObject'](_0x13a7a2['threadsV2'][_0x88b39e],_0x199025);}return _0x3263ca;},_0x2651f2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2651f2['getTypeUrl']=function(_0x3dd5f4){return void 0x0===_0x3dd5f4&&(_0x3dd5f4='type.googleapis.com'),_0x3dd5f4+'/CommentsV2GetDocumentThreadsResponse';},_0x2651f2;}()),_0x2dfa82['CommentsV2GetCommentThreadResponse']=(function(){function _0xc44a01(_0x3bc2cf){if(this['comments']=[],this['commentsV2']=[],_0x3bc2cf){for(var _0x417401=Object['keys'](_0x3bc2cf),_0x923255=0x0;_0x923255<_0x417401['length'];++_0x923255)null!=_0x3bc2cf[_0x417401[_0x923255]]&&(this[_0x417401[_0x923255]]=_0x3bc2cf[_0x417401[_0x923255]]);}}return _0xc44a01['prototype']['commentThreadId']='',_0xc44a01['prototype']['comments']=_0x4a15b3['emptyArray'],_0xc44a01['prototype']['commentsV2']=_0x4a15b3['emptyArray'],_0xc44a01['prototype']['resolvedAt']='',_0xc44a01['prototype']['resolvedBy']='',_0xc44a01['prototype']['context']='',_0xc44a01['prototype']['createdAt']='',_0xc44a01['prototype']['deletedAt']='',_0xc44a01['prototype']['attributes']='',_0xc44a01['prototype']['unlinkedAt']='',_0xc44a01['create']=function(_0x1e40e2){return new _0xc44a01(_0x1e40e2);},_0xc44a01['encode']=function(_0x4cd38e,_0x4f38c9){if(_0x4f38c9||(_0x4f38c9=_0x278790['create']()),null!=_0x4cd38e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4cd38e,'commentThreadId')&&_0x4f38c9['uint32'](0xa)['string'](_0x4cd38e['commentThreadId']),null!=_0x4cd38e['comments']&&_0x4cd38e['comments']['length']){for(var _0x319c86=0x0;_0x319c86<_0x4cd38e['comments']['length'];++_0x319c86)_0x4f38c9['uint32'](0x12)['string'](_0x4cd38e['comments'][_0x319c86]);}if(null!=_0x4cd38e['commentsV2']&&_0x4cd38e['commentsV2']['length']){for(_0x319c86=0x0;_0x319c86<_0x4cd38e['commentsV2']['length'];++_0x319c86)_0x2dfa82['CommentDescriptor']['encode'](_0x4cd38e['commentsV2'][_0x319c86],_0x4f38c9['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x4cd38e['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4cd38e,'resolvedAt')&&_0x4f38c9['uint32'](0x22)['string'](_0x4cd38e['resolvedAt']),null!=_0x4cd38e['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4cd38e,'resolvedBy')&&_0x4f38c9['uint32'](0x2a)['string'](_0x4cd38e['resolvedBy']),null!=_0x4cd38e['context']&&Object['hasOwnProperty']['call'](_0x4cd38e,'context')&&_0x4f38c9['uint32'](0x32)['string'](_0x4cd38e['context']),null!=_0x4cd38e['createdAt']&&Object['hasOwnProperty']['call'](_0x4cd38e,'createdAt')&&_0x4f38c9['uint32'](0x3a)['string'](_0x4cd38e['createdAt']),null!=_0x4cd38e['deletedAt']&&Object['hasOwnProperty']['call'](_0x4cd38e,'deletedAt')&&_0x4f38c9['uint32'](0x42)['string'](_0x4cd38e['deletedAt']),null!=_0x4cd38e['attributes']&&Object['hasOwnProperty']['call'](_0x4cd38e,'attributes')&&_0x4f38c9['uint32'](0x4a)['string'](_0x4cd38e['attributes']),null!=_0x4cd38e['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x4cd38e,'unlinkedAt')&&_0x4f38c9['uint32'](0x52)['string'](_0x4cd38e['unlinkedAt']),_0x4f38c9;},_0xc44a01['encodeDelimited']=function(_0x3ad053,_0x2ea424){return this['encode'](_0x3ad053,_0x2ea424)['ldelim']();},_0xc44a01['decode']=function(_0x51e41f,_0x22cf27,_0x5a1dce){_0x51e41f instanceof _0x150291||(_0x51e41f=_0x150291['create'](_0x51e41f));for(var _0x377d22=void 0x0===_0x22cf27?_0x51e41f['len']:_0x51e41f['pos']+_0x22cf27,_0x10241a=new _0x2dfa82['CommentsV2GetCommentThreadResponse']();_0x51e41f['pos']<_0x377d22;){var _0x1460df=_0x51e41f['uint32']();if(_0x1460df===_0x5a1dce)break;switch(_0x1460df>>>0x3){case 0x1:_0x10241a['commentThreadId']=_0x51e41f['string']();break;case 0x2:_0x10241a['comments']&&_0x10241a['comments']['length']||(_0x10241a['comments']=[]),_0x10241a['comments']['push'](_0x51e41f['string']());break;case 0x3:_0x10241a['commentsV2']&&_0x10241a['commentsV2']['length']||(_0x10241a['commentsV2']=[]),_0x10241a['commentsV2']['push'](_0x2dfa82['CommentDescriptor']['decode'](_0x51e41f,_0x51e41f['uint32']()));break;case 0x4:_0x10241a['resolvedAt']=_0x51e41f['string']();break;case 0x5:_0x10241a['resolvedBy']=_0x51e41f['string']();break;case 0x6:_0x10241a['context']=_0x51e41f['string']();break;case 0x7:_0x10241a['createdAt']=_0x51e41f['string']();break;case 0x8:_0x10241a['deletedAt']=_0x51e41f['string']();break;case 0x9:_0x10241a['attributes']=_0x51e41f['string']();break;case 0xa:_0x10241a['unlinkedAt']=_0x51e41f['string']();break;default:_0x51e41f['skipType'](0x7&_0x1460df);}}return _0x10241a;},_0xc44a01['decodeDelimited']=function(_0x1d6362){return _0x1d6362 instanceof _0x150291||(_0x1d6362=new _0x150291(_0x1d6362)),this['decode'](_0x1d6362,_0x1d6362['uint32']());},_0xc44a01['verify']=function(_0x4f783b){if('object'!=typeof _0x4f783b||null===_0x4f783b)return'object\x20expected';if(null!=_0x4f783b['commentThreadId']&&_0x4f783b['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x4f783b['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4f783b['comments']&&_0x4f783b['hasOwnProperty']('comments')){if(!Array['isArray'](_0x4f783b['comments']))return'comments:\x20array\x20expected';for(var _0xc97a5=0x0;_0xc97a5<_0x4f783b['comments']['length'];++_0xc97a5)if(!_0x4a15b3['isString'](_0x4f783b['comments'][_0xc97a5]))return'comments:\x20string[]\x20expected';}if(null!=_0x4f783b['commentsV2']&&_0x4f783b['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x4f783b['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0xc97a5=0x0;_0xc97a5<_0x4f783b['commentsV2']['length'];++_0xc97a5){var _0xfde26b=_0x2dfa82['CommentDescriptor']['verify'](_0x4f783b['commentsV2'][_0xc97a5]);if(_0xfde26b)return'commentsV2.'+_0xfde26b;}}return null!=_0x4f783b['resolvedAt']&&_0x4f783b['hasOwnProperty']('resolvedAt')&&!_0x4a15b3['isString'](_0x4f783b['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x4f783b['resolvedBy']&&_0x4f783b['hasOwnProperty']('resolvedBy')&&!_0x4a15b3['isString'](_0x4f783b['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x4f783b['context']&&_0x4f783b['hasOwnProperty']('context')&&!_0x4a15b3['isString'](_0x4f783b['context'])?'context:\x20string\x20expected':null!=_0x4f783b['createdAt']&&_0x4f783b['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x4f783b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4f783b['deletedAt']&&_0x4f783b['hasOwnProperty']('deletedAt')&&!_0x4a15b3['isString'](_0x4f783b['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x4f783b['attributes']&&_0x4f783b['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x4f783b['attributes'])?'attributes:\x20string\x20expected':null!=_0x4f783b['unlinkedAt']&&_0x4f783b['hasOwnProperty']('unlinkedAt')&&!_0x4a15b3['isString'](_0x4f783b['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0xc44a01['fromObject']=function(_0x197bc2){if(_0x197bc2 instanceof _0x2dfa82['CommentsV2GetCommentThreadResponse'])return _0x197bc2;var _0x585916=new _0x2dfa82['CommentsV2GetCommentThreadResponse']();if(null!=_0x197bc2['commentThreadId']&&(_0x585916['commentThreadId']=String(_0x197bc2['commentThreadId'])),_0x197bc2['comments']){if(!Array['isArray'](_0x197bc2['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x585916['comments']=[];for(var _0x3ddc47=0x0;_0x3ddc47<_0x197bc2['comments']['length'];++_0x3ddc47)_0x585916['comments'][_0x3ddc47]=String(_0x197bc2['comments'][_0x3ddc47]);}if(_0x197bc2['commentsV2']){if(!Array['isArray'](_0x197bc2['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x585916['commentsV2']=[],_0x3ddc47=0x0;_0x3ddc47<_0x197bc2['commentsV2']['length'];++_0x3ddc47){if('object'!=typeof _0x197bc2['commentsV2'][_0x3ddc47])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x585916['commentsV2'][_0x3ddc47]=_0x2dfa82['CommentDescriptor']['fromObject'](_0x197bc2['commentsV2'][_0x3ddc47]);}}return null!=_0x197bc2['resolvedAt']&&(_0x585916['resolvedAt']=String(_0x197bc2['resolvedAt'])),null!=_0x197bc2['resolvedBy']&&(_0x585916['resolvedBy']=String(_0x197bc2['resolvedBy'])),null!=_0x197bc2['context']&&(_0x585916['context']=String(_0x197bc2['context'])),null!=_0x197bc2['createdAt']&&(_0x585916['createdAt']=String(_0x197bc2['createdAt'])),null!=_0x197bc2['deletedAt']&&(_0x585916['deletedAt']=String(_0x197bc2['deletedAt'])),null!=_0x197bc2['attributes']&&(_0x585916['attributes']=String(_0x197bc2['attributes'])),null!=_0x197bc2['unlinkedAt']&&(_0x585916['unlinkedAt']=String(_0x197bc2['unlinkedAt'])),_0x585916;},_0xc44a01['toObject']=function(_0x34237d,_0x1e6f92){_0x1e6f92||(_0x1e6f92={});var _0x5e52aa={};if((_0x1e6f92['arrays']||_0x1e6f92['defaults'])&&(_0x5e52aa['comments']=[],_0x5e52aa['commentsV2']=[]),_0x1e6f92['defaults']&&(_0x5e52aa['commentThreadId']='',_0x5e52aa['resolvedAt']='',_0x5e52aa['resolvedBy']='',_0x5e52aa['context']='',_0x5e52aa['createdAt']='',_0x5e52aa['deletedAt']='',_0x5e52aa['attributes']='',_0x5e52aa['unlinkedAt']=''),null!=_0x34237d['commentThreadId']&&_0x34237d['hasOwnProperty']('commentThreadId')&&(_0x5e52aa['commentThreadId']=_0x34237d['commentThreadId']),_0x34237d['comments']&&_0x34237d['comments']['length']){_0x5e52aa['comments']=[];for(var _0x5248bf=0x0;_0x5248bf<_0x34237d['comments']['length'];++_0x5248bf)_0x5e52aa['comments'][_0x5248bf]=_0x34237d['comments'][_0x5248bf];}if(_0x34237d['commentsV2']&&_0x34237d['commentsV2']['length']){for(_0x5e52aa['commentsV2']=[],_0x5248bf=0x0;_0x5248bf<_0x34237d['commentsV2']['length'];++_0x5248bf)_0x5e52aa['commentsV2'][_0x5248bf]=_0x2dfa82['CommentDescriptor']['toObject'](_0x34237d['commentsV2'][_0x5248bf],_0x1e6f92);}return null!=_0x34237d['resolvedAt']&&_0x34237d['hasOwnProperty']('resolvedAt')&&(_0x5e52aa['resolvedAt']=_0x34237d['resolvedAt']),null!=_0x34237d['resolvedBy']&&_0x34237d['hasOwnProperty']('resolvedBy')&&(_0x5e52aa['resolvedBy']=_0x34237d['resolvedBy']),null!=_0x34237d['context']&&_0x34237d['hasOwnProperty']('context')&&(_0x5e52aa['context']=_0x34237d['context']),null!=_0x34237d['createdAt']&&_0x34237d['hasOwnProperty']('createdAt')&&(_0x5e52aa['createdAt']=_0x34237d['createdAt']),null!=_0x34237d['deletedAt']&&_0x34237d['hasOwnProperty']('deletedAt')&&(_0x5e52aa['deletedAt']=_0x34237d['deletedAt']),null!=_0x34237d['attributes']&&_0x34237d['hasOwnProperty']('attributes')&&(_0x5e52aa['attributes']=_0x34237d['attributes']),null!=_0x34237d['unlinkedAt']&&_0x34237d['hasOwnProperty']('unlinkedAt')&&(_0x5e52aa['unlinkedAt']=_0x34237d['unlinkedAt']),_0x5e52aa;},_0xc44a01['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xc44a01['getTypeUrl']=function(_0x38e4ba){return void 0x0===_0x38e4ba&&(_0x38e4ba='type.googleapis.com'),_0x38e4ba+'/CommentsV2GetCommentThreadResponse';},_0xc44a01;}()),_0x2dfa82['CommentsV2ConnectResponse']=(function(){function _0x5b8eb1(_0x18a013){if(this['threads']=[],this['threadsV2']=[],_0x18a013){for(var _0x396d81=Object['keys'](_0x18a013),_0x256c5f=0x0;_0x256c5f<_0x396d81['length'];++_0x256c5f)null!=_0x18a013[_0x396d81[_0x256c5f]]&&(this[_0x396d81[_0x256c5f]]=_0x18a013[_0x396d81[_0x256c5f]]);}}return _0x5b8eb1['prototype']['channel']='',_0x5b8eb1['prototype']['threads']=_0x4a15b3['emptyArray'],_0x5b8eb1['prototype']['threadsV2']=_0x4a15b3['emptyArray'],_0x5b8eb1['create']=function(_0x5a0810){return new _0x5b8eb1(_0x5a0810);},_0x5b8eb1['encode']=function(_0x41b140,_0x3249ea){if(_0x3249ea||(_0x3249ea=_0x278790['create']()),null!=_0x41b140['channel']&&Object['hasOwnProperty']['call'](_0x41b140,'channel')&&_0x3249ea['uint32'](0xa)['string'](_0x41b140['channel']),null!=_0x41b140['threads']&&_0x41b140['threads']['length']){for(var _0x12a237=0x0;_0x12a237<_0x41b140['threads']['length'];++_0x12a237)_0x3249ea['uint32'](0x12)['string'](_0x41b140['threads'][_0x12a237]);}if(null!=_0x41b140['threadsV2']&&_0x41b140['threadsV2']['length']){for(_0x12a237=0x0;_0x12a237<_0x41b140['threadsV2']['length'];++_0x12a237)_0x2dfa82['CommentsThreadDescriptor']['encode'](_0x41b140['threadsV2'][_0x12a237],_0x3249ea['uint32'](0x1a)['fork']())['ldelim']();}return _0x3249ea;},_0x5b8eb1['encodeDelimited']=function(_0x2266a6,_0x4d5c35){return this['encode'](_0x2266a6,_0x4d5c35)['ldelim']();},_0x5b8eb1['decode']=function(_0x5c4eed,_0x515ff4,_0x429d8a){_0x5c4eed instanceof _0x150291||(_0x5c4eed=_0x150291['create'](_0x5c4eed));for(var _0x5980c7=void 0x0===_0x515ff4?_0x5c4eed['len']:_0x5c4eed['pos']+_0x515ff4,_0x2a8db2=new _0x2dfa82['CommentsV2ConnectResponse']();_0x5c4eed['pos']<_0x5980c7;){var _0x396e41=_0x5c4eed['uint32']();if(_0x396e41===_0x429d8a)break;switch(_0x396e41>>>0x3){case 0x1:_0x2a8db2['channel']=_0x5c4eed['string']();break;case 0x2:_0x2a8db2['threads']&&_0x2a8db2['threads']['length']||(_0x2a8db2['threads']=[]),_0x2a8db2['threads']['push'](_0x5c4eed['string']());break;case 0x3:_0x2a8db2['threadsV2']&&_0x2a8db2['threadsV2']['length']||(_0x2a8db2['threadsV2']=[]),_0x2a8db2['threadsV2']['push'](_0x2dfa82['CommentsThreadDescriptor']['decode'](_0x5c4eed,_0x5c4eed['uint32']()));break;default:_0x5c4eed['skipType'](0x7&_0x396e41);}}return _0x2a8db2;},_0x5b8eb1['decodeDelimited']=function(_0x2cfde0){return _0x2cfde0 instanceof _0x150291||(_0x2cfde0=new _0x150291(_0x2cfde0)),this['decode'](_0x2cfde0,_0x2cfde0['uint32']());},_0x5b8eb1['verify']=function(_0x395786){if('object'!=typeof _0x395786||null===_0x395786)return'object\x20expected';if(null!=_0x395786['channel']&&_0x395786['hasOwnProperty']('channel')&&!_0x4a15b3['isString'](_0x395786['channel']))return'channel:\x20string\x20expected';if(null!=_0x395786['threads']&&_0x395786['hasOwnProperty']('threads')){if(!Array['isArray'](_0x395786['threads']))return'threads:\x20array\x20expected';for(var _0x2e2c5c=0x0;_0x2e2c5c<_0x395786['threads']['length'];++_0x2e2c5c)if(!_0x4a15b3['isString'](_0x395786['threads'][_0x2e2c5c]))return'threads:\x20string[]\x20expected';}if(null!=_0x395786['threadsV2']&&_0x395786['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x395786['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x2e2c5c=0x0;_0x2e2c5c<_0x395786['threadsV2']['length'];++_0x2e2c5c){var _0x1e954c=_0x2dfa82['CommentsThreadDescriptor']['verify'](_0x395786['threadsV2'][_0x2e2c5c]);if(_0x1e954c)return'threadsV2.'+_0x1e954c;}}return null;},_0x5b8eb1['fromObject']=function(_0x151d9a){if(_0x151d9a instanceof _0x2dfa82['CommentsV2ConnectResponse'])return _0x151d9a;var _0x465b25=new _0x2dfa82['CommentsV2ConnectResponse']();if(null!=_0x151d9a['channel']&&(_0x465b25['channel']=String(_0x151d9a['channel'])),_0x151d9a['threads']){if(!Array['isArray'](_0x151d9a['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x465b25['threads']=[];for(var _0x501bb7=0x0;_0x501bb7<_0x151d9a['threads']['length'];++_0x501bb7)_0x465b25['threads'][_0x501bb7]=String(_0x151d9a['threads'][_0x501bb7]);}if(_0x151d9a['threadsV2']){if(!Array['isArray'](_0x151d9a['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x465b25['threadsV2']=[],_0x501bb7=0x0;_0x501bb7<_0x151d9a['threadsV2']['length'];++_0x501bb7){if('object'!=typeof _0x151d9a['threadsV2'][_0x501bb7])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x465b25['threadsV2'][_0x501bb7]=_0x2dfa82['CommentsThreadDescriptor']['fromObject'](_0x151d9a['threadsV2'][_0x501bb7]);}}return _0x465b25;},_0x5b8eb1['toObject']=function(_0x43a56e,_0x5db1c9){_0x5db1c9||(_0x5db1c9={});var _0x2917ff={};if((_0x5db1c9['arrays']||_0x5db1c9['defaults'])&&(_0x2917ff['threads']=[],_0x2917ff['threadsV2']=[]),_0x5db1c9['defaults']&&(_0x2917ff['channel']=''),null!=_0x43a56e['channel']&&_0x43a56e['hasOwnProperty']('channel')&&(_0x2917ff['channel']=_0x43a56e['channel']),_0x43a56e['threads']&&_0x43a56e['threads']['length']){_0x2917ff['threads']=[];for(var _0x4f917c=0x0;_0x4f917c<_0x43a56e['threads']['length'];++_0x4f917c)_0x2917ff['threads'][_0x4f917c]=_0x43a56e['threads'][_0x4f917c];}if(_0x43a56e['threadsV2']&&_0x43a56e['threadsV2']['length']){for(_0x2917ff['threadsV2']=[],_0x4f917c=0x0;_0x4f917c<_0x43a56e['threadsV2']['length'];++_0x4f917c)_0x2917ff['threadsV2'][_0x4f917c]=_0x2dfa82['CommentsThreadDescriptor']['toObject'](_0x43a56e['threadsV2'][_0x4f917c],_0x5db1c9);}return _0x2917ff;},_0x5b8eb1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5b8eb1['getTypeUrl']=function(_0x50a339){return void 0x0===_0x50a339&&(_0x50a339='type.googleapis.com'),_0x50a339+'/CommentsV2ConnectResponse';},_0x5b8eb1;}()),_0x2dfa82['CommentsV2AddCommentResponse']=(function(){function _0x335f40(_0xfb7055){if(_0xfb7055){for(var _0x2e77b7=Object['keys'](_0xfb7055),_0x5a8041=0x0;_0x5a8041<_0x2e77b7['length'];++_0x5a8041)null!=_0xfb7055[_0x2e77b7[_0x5a8041]]&&(this[_0x2e77b7[_0x5a8041]]=_0xfb7055[_0x2e77b7[_0x5a8041]]);}}return _0x335f40['prototype']['commentThreadId']='',_0x335f40['prototype']['commentId']='',_0x335f40['prototype']['createdAt']='',_0x335f40['create']=function(_0x4c573f){return new _0x335f40(_0x4c573f);},_0x335f40['encode']=function(_0x2e3976,_0x4e58d1){return _0x4e58d1||(_0x4e58d1=_0x278790['create']()),null!=_0x2e3976['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2e3976,'commentThreadId')&&_0x4e58d1['uint32'](0xa)['string'](_0x2e3976['commentThreadId']),null!=_0x2e3976['commentId']&&Object['hasOwnProperty']['call'](_0x2e3976,'commentId')&&_0x4e58d1['uint32'](0x12)['string'](_0x2e3976['commentId']),null!=_0x2e3976['createdAt']&&Object['hasOwnProperty']['call'](_0x2e3976,'createdAt')&&_0x4e58d1['uint32'](0x1a)['string'](_0x2e3976['createdAt']),_0x4e58d1;},_0x335f40['encodeDelimited']=function(_0x59533e,_0x4c69ea){return this['encode'](_0x59533e,_0x4c69ea)['ldelim']();},_0x335f40['decode']=function(_0x22603f,_0x271ed5,_0x9222d2){_0x22603f instanceof _0x150291||(_0x22603f=_0x150291['create'](_0x22603f));for(var _0x321518=void 0x0===_0x271ed5?_0x22603f['len']:_0x22603f['pos']+_0x271ed5,_0x573b5c=new _0x2dfa82['CommentsV2AddCommentResponse']();_0x22603f['pos']<_0x321518;){var _0x57485e=_0x22603f['uint32']();if(_0x57485e===_0x9222d2)break;switch(_0x57485e>>>0x3){case 0x1:_0x573b5c['commentThreadId']=_0x22603f['string']();break;case 0x2:_0x573b5c['commentId']=_0x22603f['string']();break;case 0x3:_0x573b5c['createdAt']=_0x22603f['string']();break;default:_0x22603f['skipType'](0x7&_0x57485e);}}return _0x573b5c;},_0x335f40['decodeDelimited']=function(_0x3e7d45){return _0x3e7d45 instanceof _0x150291||(_0x3e7d45=new _0x150291(_0x3e7d45)),this['decode'](_0x3e7d45,_0x3e7d45['uint32']());},_0x335f40['verify']=function(_0x41cf63){return'object'!=typeof _0x41cf63||null===_0x41cf63?'object\x20expected':null!=_0x41cf63['commentThreadId']&&_0x41cf63['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x41cf63['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x41cf63['commentId']&&_0x41cf63['hasOwnProperty']('commentId')&&!_0x4a15b3['isString'](_0x41cf63['commentId'])?'commentId:\x20string\x20expected':null!=_0x41cf63['createdAt']&&_0x41cf63['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x41cf63['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x335f40['fromObject']=function(_0x641dbb){if(_0x641dbb instanceof _0x2dfa82['CommentsV2AddCommentResponse'])return _0x641dbb;var _0x49f128=new _0x2dfa82['CommentsV2AddCommentResponse']();return null!=_0x641dbb['commentThreadId']&&(_0x49f128['commentThreadId']=String(_0x641dbb['commentThreadId'])),null!=_0x641dbb['commentId']&&(_0x49f128['commentId']=String(_0x641dbb['commentId'])),null!=_0x641dbb['createdAt']&&(_0x49f128['createdAt']=String(_0x641dbb['createdAt'])),_0x49f128;},_0x335f40['toObject']=function(_0x405dc4,_0x42a536){_0x42a536||(_0x42a536={});var _0x4c19ec={};return _0x42a536['defaults']&&(_0x4c19ec['commentThreadId']='',_0x4c19ec['commentId']='',_0x4c19ec['createdAt']=''),null!=_0x405dc4['commentThreadId']&&_0x405dc4['hasOwnProperty']('commentThreadId')&&(_0x4c19ec['commentThreadId']=_0x405dc4['commentThreadId']),null!=_0x405dc4['commentId']&&_0x405dc4['hasOwnProperty']('commentId')&&(_0x4c19ec['commentId']=_0x405dc4['commentId']),null!=_0x405dc4['createdAt']&&_0x405dc4['hasOwnProperty']('createdAt')&&(_0x4c19ec['createdAt']=_0x405dc4['createdAt']),_0x4c19ec;},_0x335f40['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x335f40['getTypeUrl']=function(_0x1e1a90){return void 0x0===_0x1e1a90&&(_0x1e1a90='type.googleapis.com'),_0x1e1a90+'/CommentsV2AddCommentResponse';},_0x335f40;}()),_0x2dfa82['CommentsV2ResolveCommentThreadResponse']=(function(){function _0xeb21ea(_0x883d8e){if(_0x883d8e){for(var _0x264764=Object['keys'](_0x883d8e),_0x30ffc1=0x0;_0x30ffc1<_0x264764['length'];++_0x30ffc1)null!=_0x883d8e[_0x264764[_0x30ffc1]]&&(this[_0x264764[_0x30ffc1]]=_0x883d8e[_0x264764[_0x30ffc1]]);}}return _0xeb21ea['prototype']['commentThreadId']='',_0xeb21ea['prototype']['documentId']='',_0xeb21ea['prototype']['resolvedAt']='',_0xeb21ea['prototype']['resolvedBy']='',_0xeb21ea['create']=function(_0x390483){return new _0xeb21ea(_0x390483);},_0xeb21ea['encode']=function(_0x409f3b,_0x4e730f){return _0x4e730f||(_0x4e730f=_0x278790['create']()),null!=_0x409f3b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x409f3b,'commentThreadId')&&_0x4e730f['uint32'](0xa)['string'](_0x409f3b['commentThreadId']),null!=_0x409f3b['documentId']&&Object['hasOwnProperty']['call'](_0x409f3b,'documentId')&&_0x4e730f['uint32'](0x12)['string'](_0x409f3b['documentId']),null!=_0x409f3b['resolvedAt']&&Object['hasOwnProperty']['call'](_0x409f3b,'resolvedAt')&&_0x4e730f['uint32'](0x1a)['string'](_0x409f3b['resolvedAt']),null!=_0x409f3b['resolvedBy']&&Object['hasOwnProperty']['call'](_0x409f3b,'resolvedBy')&&_0x4e730f['uint32'](0x22)['string'](_0x409f3b['resolvedBy']),_0x4e730f;},_0xeb21ea['encodeDelimited']=function(_0x1791c3,_0x2c134c){return this['encode'](_0x1791c3,_0x2c134c)['ldelim']();},_0xeb21ea['decode']=function(_0x4e349f,_0x56d471,_0x446840){_0x4e349f instanceof _0x150291||(_0x4e349f=_0x150291['create'](_0x4e349f));for(var _0x4ee4c1=void 0x0===_0x56d471?_0x4e349f['len']:_0x4e349f['pos']+_0x56d471,_0x51a20c=new _0x2dfa82['CommentsV2ResolveCommentThreadResponse']();_0x4e349f['pos']<_0x4ee4c1;){var _0x3e1f37=_0x4e349f['uint32']();if(_0x3e1f37===_0x446840)break;switch(_0x3e1f37>>>0x3){case 0x1:_0x51a20c['commentThreadId']=_0x4e349f['string']();break;case 0x2:_0x51a20c['documentId']=_0x4e349f['string']();break;case 0x3:_0x51a20c['resolvedAt']=_0x4e349f['string']();break;case 0x4:_0x51a20c['resolvedBy']=_0x4e349f['string']();break;default:_0x4e349f['skipType'](0x7&_0x3e1f37);}}return _0x51a20c;},_0xeb21ea['decodeDelimited']=function(_0x38de18){return _0x38de18 instanceof _0x150291||(_0x38de18=new _0x150291(_0x38de18)),this['decode'](_0x38de18,_0x38de18['uint32']());},_0xeb21ea['verify']=function(_0x432f1b){return'object'!=typeof _0x432f1b||null===_0x432f1b?'object\x20expected':null!=_0x432f1b['commentThreadId']&&_0x432f1b['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x432f1b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x432f1b['documentId']&&_0x432f1b['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x432f1b['documentId'])?'documentId:\x20string\x20expected':null!=_0x432f1b['resolvedAt']&&_0x432f1b['hasOwnProperty']('resolvedAt')&&!_0x4a15b3['isString'](_0x432f1b['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x432f1b['resolvedBy']&&_0x432f1b['hasOwnProperty']('resolvedBy')&&!_0x4a15b3['isString'](_0x432f1b['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0xeb21ea['fromObject']=function(_0x3aae81){if(_0x3aae81 instanceof _0x2dfa82['CommentsV2ResolveCommentThreadResponse'])return _0x3aae81;var _0x5cf60b=new _0x2dfa82['CommentsV2ResolveCommentThreadResponse']();return null!=_0x3aae81['commentThreadId']&&(_0x5cf60b['commentThreadId']=String(_0x3aae81['commentThreadId'])),null!=_0x3aae81['documentId']&&(_0x5cf60b['documentId']=String(_0x3aae81['documentId'])),null!=_0x3aae81['resolvedAt']&&(_0x5cf60b['resolvedAt']=String(_0x3aae81['resolvedAt'])),null!=_0x3aae81['resolvedBy']&&(_0x5cf60b['resolvedBy']=String(_0x3aae81['resolvedBy'])),_0x5cf60b;},_0xeb21ea['toObject']=function(_0xb56c61,_0xe6c4a1){_0xe6c4a1||(_0xe6c4a1={});var _0x375c6e={};return _0xe6c4a1['defaults']&&(_0x375c6e['commentThreadId']='',_0x375c6e['documentId']='',_0x375c6e['resolvedAt']='',_0x375c6e['resolvedBy']=''),null!=_0xb56c61['commentThreadId']&&_0xb56c61['hasOwnProperty']('commentThreadId')&&(_0x375c6e['commentThreadId']=_0xb56c61['commentThreadId']),null!=_0xb56c61['documentId']&&_0xb56c61['hasOwnProperty']('documentId')&&(_0x375c6e['documentId']=_0xb56c61['documentId']),null!=_0xb56c61['resolvedAt']&&_0xb56c61['hasOwnProperty']('resolvedAt')&&(_0x375c6e['resolvedAt']=_0xb56c61['resolvedAt']),null!=_0xb56c61['resolvedBy']&&_0xb56c61['hasOwnProperty']('resolvedBy')&&(_0x375c6e['resolvedBy']=_0xb56c61['resolvedBy']),_0x375c6e;},_0xeb21ea['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xeb21ea['getTypeUrl']=function(_0x48c871){return void 0x0===_0x48c871&&(_0x48c871='type.googleapis.com'),_0x48c871+'/CommentsV2ResolveCommentThreadResponse';},_0xeb21ea;}()),_0x2dfa82['CommentsV2AddCommentThreadResponse']=(function(){function _0x20b9a3(_0x153a24){if(this['comments']=[],_0x153a24){for(var _0x481893=Object['keys'](_0x153a24),_0x2a5c99=0x0;_0x2a5c99<_0x481893['length'];++_0x2a5c99)null!=_0x153a24[_0x481893[_0x2a5c99]]&&(this[_0x481893[_0x2a5c99]]=_0x153a24[_0x481893[_0x2a5c99]]);}}return _0x20b9a3['prototype']['commentThreadId']='',_0x20b9a3['prototype']['createdAt']='',_0x20b9a3['prototype']['comments']=_0x4a15b3['emptyArray'],_0x20b9a3['create']=function(_0x1463e3){return new _0x20b9a3(_0x1463e3);},_0x20b9a3['encode']=function(_0x2f5c03,_0x14e4c0){if(_0x14e4c0||(_0x14e4c0=_0x278790['create']()),null!=_0x2f5c03['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2f5c03,'commentThreadId')&&_0x14e4c0['uint32'](0xa)['string'](_0x2f5c03['commentThreadId']),null!=_0x2f5c03['createdAt']&&Object['hasOwnProperty']['call'](_0x2f5c03,'createdAt')&&_0x14e4c0['uint32'](0x12)['string'](_0x2f5c03['createdAt']),null!=_0x2f5c03['comments']&&_0x2f5c03['comments']['length']){for(var _0x28d02b=0x0;_0x28d02b<_0x2f5c03['comments']['length'];++_0x28d02b)_0x2dfa82['CommentThreadAddedCommentDescriptor']['encode'](_0x2f5c03['comments'][_0x28d02b],_0x14e4c0['uint32'](0x1a)['fork']())['ldelim']();}return _0x14e4c0;},_0x20b9a3['encodeDelimited']=function(_0x2e8134,_0x8d9908){return this['encode'](_0x2e8134,_0x8d9908)['ldelim']();},_0x20b9a3['decode']=function(_0x1fe487,_0x106ceb,_0xbe62b8){_0x1fe487 instanceof _0x150291||(_0x1fe487=_0x150291['create'](_0x1fe487));for(var _0x698fde=void 0x0===_0x106ceb?_0x1fe487['len']:_0x1fe487['pos']+_0x106ceb,_0x4bebec=new _0x2dfa82['CommentsV2AddCommentThreadResponse']();_0x1fe487['pos']<_0x698fde;){var _0x5f468c=_0x1fe487['uint32']();if(_0x5f468c===_0xbe62b8)break;switch(_0x5f468c>>>0x3){case 0x1:_0x4bebec['commentThreadId']=_0x1fe487['string']();break;case 0x2:_0x4bebec['createdAt']=_0x1fe487['string']();break;case 0x3:_0x4bebec['comments']&&_0x4bebec['comments']['length']||(_0x4bebec['comments']=[]),_0x4bebec['comments']['push'](_0x2dfa82['CommentThreadAddedCommentDescriptor']['decode'](_0x1fe487,_0x1fe487['uint32']()));break;default:_0x1fe487['skipType'](0x7&_0x5f468c);}}return _0x4bebec;},_0x20b9a3['decodeDelimited']=function(_0x4c28ff){return _0x4c28ff instanceof _0x150291||(_0x4c28ff=new _0x150291(_0x4c28ff)),this['decode'](_0x4c28ff,_0x4c28ff['uint32']());},_0x20b9a3['verify']=function(_0xda7543){if('object'!=typeof _0xda7543||null===_0xda7543)return'object\x20expected';if(null!=_0xda7543['commentThreadId']&&_0xda7543['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0xda7543['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xda7543['createdAt']&&_0xda7543['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0xda7543['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0xda7543['comments']&&_0xda7543['hasOwnProperty']('comments')){if(!Array['isArray'](_0xda7543['comments']))return'comments:\x20array\x20expected';for(var _0x384c80=0x0;_0x384c80<_0xda7543['comments']['length'];++_0x384c80){var _0x130724=_0x2dfa82['CommentThreadAddedCommentDescriptor']['verify'](_0xda7543['comments'][_0x384c80]);if(_0x130724)return'comments.'+_0x130724;}}return null;},_0x20b9a3['fromObject']=function(_0x4ada31){if(_0x4ada31 instanceof _0x2dfa82['CommentsV2AddCommentThreadResponse'])return _0x4ada31;var _0x53a769=new _0x2dfa82['CommentsV2AddCommentThreadResponse']();if(null!=_0x4ada31['commentThreadId']&&(_0x53a769['commentThreadId']=String(_0x4ada31['commentThreadId'])),null!=_0x4ada31['createdAt']&&(_0x53a769['createdAt']=String(_0x4ada31['createdAt'])),_0x4ada31['comments']){if(!Array['isArray'](_0x4ada31['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x53a769['comments']=[];for(var _0x3c17f7=0x0;_0x3c17f7<_0x4ada31['comments']['length'];++_0x3c17f7){if('object'!=typeof _0x4ada31['comments'][_0x3c17f7])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x53a769['comments'][_0x3c17f7]=_0x2dfa82['CommentThreadAddedCommentDescriptor']['fromObject'](_0x4ada31['comments'][_0x3c17f7]);}}return _0x53a769;},_0x20b9a3['toObject']=function(_0x51002e,_0x4a7dde){_0x4a7dde||(_0x4a7dde={});var _0x118061={};if((_0x4a7dde['arrays']||_0x4a7dde['defaults'])&&(_0x118061['comments']=[]),_0x4a7dde['defaults']&&(_0x118061['commentThreadId']='',_0x118061['createdAt']=''),null!=_0x51002e['commentThreadId']&&_0x51002e['hasOwnProperty']('commentThreadId')&&(_0x118061['commentThreadId']=_0x51002e['commentThreadId']),null!=_0x51002e['createdAt']&&_0x51002e['hasOwnProperty']('createdAt')&&(_0x118061['createdAt']=_0x51002e['createdAt']),_0x51002e['comments']&&_0x51002e['comments']['length']){_0x118061['comments']=[];for(var _0x46a299=0x0;_0x46a299<_0x51002e['comments']['length'];++_0x46a299)_0x118061['comments'][_0x46a299]=_0x2dfa82['CommentThreadAddedCommentDescriptor']['toObject'](_0x51002e['comments'][_0x46a299],_0x4a7dde);}return _0x118061;},_0x20b9a3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x20b9a3['getTypeUrl']=function(_0x299858){return void 0x0===_0x299858&&(_0x299858='type.googleapis.com'),_0x299858+'/CommentsV2AddCommentThreadResponse';},_0x20b9a3;}()),_0x2dfa82['CommentsV2UpdateCommentMessage']=(function(){function _0x17dfb7(_0x21c007){if(_0x21c007){for(var _0x4544b5=Object['keys'](_0x21c007),_0x348d6b=0x0;_0x348d6b<_0x4544b5['length'];++_0x348d6b)null!=_0x21c007[_0x4544b5[_0x348d6b]]&&(this[_0x4544b5[_0x348d6b]]=_0x21c007[_0x4544b5[_0x348d6b]]);}}return _0x17dfb7['prototype']['commentThreadId']='',_0x17dfb7['prototype']['commentId']='',_0x17dfb7['prototype']['content']='',_0x17dfb7['prototype']['documentId']='',_0x17dfb7['prototype']['attributes']='',_0x17dfb7['prototype']['isAttributesUpdated']=!0x1,_0x17dfb7['prototype']['commentThread']=null,_0x17dfb7['create']=function(_0x12e9fb){return new _0x17dfb7(_0x12e9fb);},_0x17dfb7['encode']=function(_0x4002fe,_0x5a79a9){return _0x5a79a9||(_0x5a79a9=_0x278790['create']()),null!=_0x4002fe['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4002fe,'commentThreadId')&&_0x5a79a9['uint32'](0xa)['string'](_0x4002fe['commentThreadId']),null!=_0x4002fe['commentId']&&Object['hasOwnProperty']['call'](_0x4002fe,'commentId')&&_0x5a79a9['uint32'](0x12)['string'](_0x4002fe['commentId']),null!=_0x4002fe['content']&&Object['hasOwnProperty']['call'](_0x4002fe,'content')&&_0x5a79a9['uint32'](0x1a)['string'](_0x4002fe['content']),null!=_0x4002fe['documentId']&&Object['hasOwnProperty']['call'](_0x4002fe,'documentId')&&_0x5a79a9['uint32'](0x22)['string'](_0x4002fe['documentId']),null!=_0x4002fe['attributes']&&Object['hasOwnProperty']['call'](_0x4002fe,'attributes')&&_0x5a79a9['uint32'](0x2a)['string'](_0x4002fe['attributes']),null!=_0x4002fe['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x4002fe,'isAttributesUpdated')&&_0x5a79a9['uint32'](0x30)['bool'](_0x4002fe['isAttributesUpdated']),null!=_0x4002fe['commentThread']&&Object['hasOwnProperty']['call'](_0x4002fe,'commentThread')&&_0x2dfa82['CommentsThreadDescriptor']['encode'](_0x4002fe['commentThread'],_0x5a79a9['uint32'](0x3a)['fork']())['ldelim'](),_0x5a79a9;},_0x17dfb7['encodeDelimited']=function(_0x45d2e7,_0x19ea60){return this['encode'](_0x45d2e7,_0x19ea60)['ldelim']();},_0x17dfb7['decode']=function(_0x17bba3,_0x24cb05,_0x585e13){_0x17bba3 instanceof _0x150291||(_0x17bba3=_0x150291['create'](_0x17bba3));for(var _0x4421f7=void 0x0===_0x24cb05?_0x17bba3['len']:_0x17bba3['pos']+_0x24cb05,_0x5fa7bc=new _0x2dfa82['CommentsV2UpdateCommentMessage']();_0x17bba3['pos']<_0x4421f7;){var _0x4f6e3b=_0x17bba3['uint32']();if(_0x4f6e3b===_0x585e13)break;switch(_0x4f6e3b>>>0x3){case 0x1:_0x5fa7bc['commentThreadId']=_0x17bba3['string']();break;case 0x2:_0x5fa7bc['commentId']=_0x17bba3['string']();break;case 0x3:_0x5fa7bc['content']=_0x17bba3['string']();break;case 0x4:_0x5fa7bc['documentId']=_0x17bba3['string']();break;case 0x5:_0x5fa7bc['attributes']=_0x17bba3['string']();break;case 0x6:_0x5fa7bc['isAttributesUpdated']=_0x17bba3['bool']();break;case 0x7:_0x5fa7bc['commentThread']=_0x2dfa82['CommentsThreadDescriptor']['decode'](_0x17bba3,_0x17bba3['uint32']());break;default:_0x17bba3['skipType'](0x7&_0x4f6e3b);}}return _0x5fa7bc;},_0x17dfb7['decodeDelimited']=function(_0x41df6b){return _0x41df6b instanceof _0x150291||(_0x41df6b=new _0x150291(_0x41df6b)),this['decode'](_0x41df6b,_0x41df6b['uint32']());},_0x17dfb7['verify']=function(_0x18c7d0){if('object'!=typeof _0x18c7d0||null===_0x18c7d0)return'object\x20expected';if(null!=_0x18c7d0['commentThreadId']&&_0x18c7d0['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x18c7d0['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x18c7d0['commentId']&&_0x18c7d0['hasOwnProperty']('commentId')&&!_0x4a15b3['isString'](_0x18c7d0['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x18c7d0['content']&&_0x18c7d0['hasOwnProperty']('content')&&!_0x4a15b3['isString'](_0x18c7d0['content']))return'content:\x20string\x20expected';if(null!=_0x18c7d0['documentId']&&_0x18c7d0['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x18c7d0['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x18c7d0['attributes']&&_0x18c7d0['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x18c7d0['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x18c7d0['isAttributesUpdated']&&_0x18c7d0['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x18c7d0['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x18c7d0['commentThread']&&_0x18c7d0['hasOwnProperty']('commentThread')){var _0x150820=_0x2dfa82['CommentsThreadDescriptor']['verify'](_0x18c7d0['commentThread']);if(_0x150820)return'commentThread.'+_0x150820;}return null;},_0x17dfb7['fromObject']=function(_0xe74c8f){if(_0xe74c8f instanceof _0x2dfa82['CommentsV2UpdateCommentMessage'])return _0xe74c8f;var _0x29e766=new _0x2dfa82['CommentsV2UpdateCommentMessage']();if(null!=_0xe74c8f['commentThreadId']&&(_0x29e766['commentThreadId']=String(_0xe74c8f['commentThreadId'])),null!=_0xe74c8f['commentId']&&(_0x29e766['commentId']=String(_0xe74c8f['commentId'])),null!=_0xe74c8f['content']&&(_0x29e766['content']=String(_0xe74c8f['content'])),null!=_0xe74c8f['documentId']&&(_0x29e766['documentId']=String(_0xe74c8f['documentId'])),null!=_0xe74c8f['attributes']&&(_0x29e766['attributes']=String(_0xe74c8f['attributes'])),null!=_0xe74c8f['isAttributesUpdated']&&(_0x29e766['isAttributesUpdated']=Boolean(_0xe74c8f['isAttributesUpdated'])),null!=_0xe74c8f['commentThread']){if('object'!=typeof _0xe74c8f['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x29e766['commentThread']=_0x2dfa82['CommentsThreadDescriptor']['fromObject'](_0xe74c8f['commentThread']);}return _0x29e766;},_0x17dfb7['toObject']=function(_0x595233,_0x4be2e9){_0x4be2e9||(_0x4be2e9={});var _0x5864a1={};return _0x4be2e9['defaults']&&(_0x5864a1['commentThreadId']='',_0x5864a1['commentId']='',_0x5864a1['content']='',_0x5864a1['documentId']='',_0x5864a1['attributes']='',_0x5864a1['isAttributesUpdated']=!0x1,_0x5864a1['commentThread']=null),null!=_0x595233['commentThreadId']&&_0x595233['hasOwnProperty']('commentThreadId')&&(_0x5864a1['commentThreadId']=_0x595233['commentThreadId']),null!=_0x595233['commentId']&&_0x595233['hasOwnProperty']('commentId')&&(_0x5864a1['commentId']=_0x595233['commentId']),null!=_0x595233['content']&&_0x595233['hasOwnProperty']('content')&&(_0x5864a1['content']=_0x595233['content']),null!=_0x595233['documentId']&&_0x595233['hasOwnProperty']('documentId')&&(_0x5864a1['documentId']=_0x595233['documentId']),null!=_0x595233['attributes']&&_0x595233['hasOwnProperty']('attributes')&&(_0x5864a1['attributes']=_0x595233['attributes']),null!=_0x595233['isAttributesUpdated']&&_0x595233['hasOwnProperty']('isAttributesUpdated')&&(_0x5864a1['isAttributesUpdated']=_0x595233['isAttributesUpdated']),null!=_0x595233['commentThread']&&_0x595233['hasOwnProperty']('commentThread')&&(_0x5864a1['commentThread']=_0x2dfa82['CommentsThreadDescriptor']['toObject'](_0x595233['commentThread'],_0x4be2e9)),_0x5864a1;},_0x17dfb7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x17dfb7['getTypeUrl']=function(_0x13ea8c){return void 0x0===_0x13ea8c&&(_0x13ea8c='type.googleapis.com'),_0x13ea8c+'/CommentsV2UpdateCommentMessage';},_0x17dfb7;}()),_0x2dfa82['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x23e522(_0x455621){if(_0x455621){for(var _0x1f88b3=Object['keys'](_0x455621),_0x14271d=0x0;_0x14271d<_0x1f88b3['length'];++_0x14271d)null!=_0x455621[_0x1f88b3[_0x14271d]]&&(this[_0x1f88b3[_0x14271d]]=_0x455621[_0x1f88b3[_0x14271d]]);}}return _0x23e522['prototype']['commentThreadId']='',_0x23e522['prototype']['documentId']='',_0x23e522['create']=function(_0x5ba8f1){return new _0x23e522(_0x5ba8f1);},_0x23e522['encode']=function(_0x2af510,_0x218542){return _0x218542||(_0x218542=_0x278790['create']()),null!=_0x2af510['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2af510,'commentThreadId')&&_0x218542['uint32'](0xa)['string'](_0x2af510['commentThreadId']),null!=_0x2af510['documentId']&&Object['hasOwnProperty']['call'](_0x2af510,'documentId')&&_0x218542['uint32'](0x12)['string'](_0x2af510['documentId']),_0x218542;},_0x23e522['encodeDelimited']=function(_0x3aac72,_0x2a32ec){return this['encode'](_0x3aac72,_0x2a32ec)['ldelim']();},_0x23e522['decode']=function(_0x4ec9d5,_0x400717,_0x3f3767){_0x4ec9d5 instanceof _0x150291||(_0x4ec9d5=_0x150291['create'](_0x4ec9d5));for(var _0x30afe8=void 0x0===_0x400717?_0x4ec9d5['len']:_0x4ec9d5['pos']+_0x400717,_0x36d299=new _0x2dfa82['CommentsV2RemoveCommentThreadMessage']();_0x4ec9d5['pos']<_0x30afe8;){var _0x329cf2=_0x4ec9d5['uint32']();if(_0x329cf2===_0x3f3767)break;switch(_0x329cf2>>>0x3){case 0x1:_0x36d299['commentThreadId']=_0x4ec9d5['string']();break;case 0x2:_0x36d299['documentId']=_0x4ec9d5['string']();break;default:_0x4ec9d5['skipType'](0x7&_0x329cf2);}}return _0x36d299;},_0x23e522['decodeDelimited']=function(_0xe4ba6){return _0xe4ba6 instanceof _0x150291||(_0xe4ba6=new _0x150291(_0xe4ba6)),this['decode'](_0xe4ba6,_0xe4ba6['uint32']());},_0x23e522['verify']=function(_0x28334b){return'object'!=typeof _0x28334b||null===_0x28334b?'object\x20expected':null!=_0x28334b['commentThreadId']&&_0x28334b['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x28334b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x28334b['documentId']&&_0x28334b['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x28334b['documentId'])?'documentId:\x20string\x20expected':null;},_0x23e522['fromObject']=function(_0x2ecd1f){if(_0x2ecd1f instanceof _0x2dfa82['CommentsV2RemoveCommentThreadMessage'])return _0x2ecd1f;var _0x37dd8f=new _0x2dfa82['CommentsV2RemoveCommentThreadMessage']();return null!=_0x2ecd1f['commentThreadId']&&(_0x37dd8f['commentThreadId']=String(_0x2ecd1f['commentThreadId'])),null!=_0x2ecd1f['documentId']&&(_0x37dd8f['documentId']=String(_0x2ecd1f['documentId'])),_0x37dd8f;},_0x23e522['toObject']=function(_0x3e2a82,_0x13a92){_0x13a92||(_0x13a92={});var _0x2e11dd={};return _0x13a92['defaults']&&(_0x2e11dd['commentThreadId']='',_0x2e11dd['documentId']=''),null!=_0x3e2a82['commentThreadId']&&_0x3e2a82['hasOwnProperty']('commentThreadId')&&(_0x2e11dd['commentThreadId']=_0x3e2a82['commentThreadId']),null!=_0x3e2a82['documentId']&&_0x3e2a82['hasOwnProperty']('documentId')&&(_0x2e11dd['documentId']=_0x3e2a82['documentId']),_0x2e11dd;},_0x23e522['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x23e522['getTypeUrl']=function(_0x4bc726){return void 0x0===_0x4bc726&&(_0x4bc726='type.googleapis.com'),_0x4bc726+'/CommentsV2RemoveCommentThreadMessage';},_0x23e522;}()),_0x2dfa82['CommentsV2RemoveCommentMessage']=(function(){function _0x2f4af0(_0x29afaf){if(_0x29afaf){for(var _0x5b0418=Object['keys'](_0x29afaf),_0x17ee39=0x0;_0x17ee39<_0x5b0418['length'];++_0x17ee39)null!=_0x29afaf[_0x5b0418[_0x17ee39]]&&(this[_0x5b0418[_0x17ee39]]=_0x29afaf[_0x5b0418[_0x17ee39]]);}}return _0x2f4af0['prototype']['commentThreadId']='',_0x2f4af0['prototype']['commentId']='',_0x2f4af0['prototype']['documentId']='',_0x2f4af0['create']=function(_0x592623){return new _0x2f4af0(_0x592623);},_0x2f4af0['encode']=function(_0x40a711,_0x14a9ca){return _0x14a9ca||(_0x14a9ca=_0x278790['create']()),null!=_0x40a711['commentThreadId']&&Object['hasOwnProperty']['call'](_0x40a711,'commentThreadId')&&_0x14a9ca['uint32'](0xa)['string'](_0x40a711['commentThreadId']),null!=_0x40a711['commentId']&&Object['hasOwnProperty']['call'](_0x40a711,'commentId')&&_0x14a9ca['uint32'](0x12)['string'](_0x40a711['commentId']),null!=_0x40a711['documentId']&&Object['hasOwnProperty']['call'](_0x40a711,'documentId')&&_0x14a9ca['uint32'](0x1a)['string'](_0x40a711['documentId']),_0x14a9ca;},_0x2f4af0['encodeDelimited']=function(_0x488b89,_0x484fae){return this['encode'](_0x488b89,_0x484fae)['ldelim']();},_0x2f4af0['decode']=function(_0xc0ad88,_0x6892f3,_0x19287e){_0xc0ad88 instanceof _0x150291||(_0xc0ad88=_0x150291['create'](_0xc0ad88));for(var _0x2b358b=void 0x0===_0x6892f3?_0xc0ad88['len']:_0xc0ad88['pos']+_0x6892f3,_0x5b9471=new _0x2dfa82['CommentsV2RemoveCommentMessage']();_0xc0ad88['pos']<_0x2b358b;){var _0x1c2f86=_0xc0ad88['uint32']();if(_0x1c2f86===_0x19287e)break;switch(_0x1c2f86>>>0x3){case 0x1:_0x5b9471['commentThreadId']=_0xc0ad88['string']();break;case 0x2:_0x5b9471['commentId']=_0xc0ad88['string']();break;case 0x3:_0x5b9471['documentId']=_0xc0ad88['string']();break;default:_0xc0ad88['skipType'](0x7&_0x1c2f86);}}return _0x5b9471;},_0x2f4af0['decodeDelimited']=function(_0x550405){return _0x550405 instanceof _0x150291||(_0x550405=new _0x150291(_0x550405)),this['decode'](_0x550405,_0x550405['uint32']());},_0x2f4af0['verify']=function(_0x4649da){return'object'!=typeof _0x4649da||null===_0x4649da?'object\x20expected':null!=_0x4649da['commentThreadId']&&_0x4649da['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x4649da['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4649da['commentId']&&_0x4649da['hasOwnProperty']('commentId')&&!_0x4a15b3['isString'](_0x4649da['commentId'])?'commentId:\x20string\x20expected':null!=_0x4649da['documentId']&&_0x4649da['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x4649da['documentId'])?'documentId:\x20string\x20expected':null;},_0x2f4af0['fromObject']=function(_0x5a564b){if(_0x5a564b instanceof _0x2dfa82['CommentsV2RemoveCommentMessage'])return _0x5a564b;var _0x1fb584=new _0x2dfa82['CommentsV2RemoveCommentMessage']();return null!=_0x5a564b['commentThreadId']&&(_0x1fb584['commentThreadId']=String(_0x5a564b['commentThreadId'])),null!=_0x5a564b['commentId']&&(_0x1fb584['commentId']=String(_0x5a564b['commentId'])),null!=_0x5a564b['documentId']&&(_0x1fb584['documentId']=String(_0x5a564b['documentId'])),_0x1fb584;},_0x2f4af0['toObject']=function(_0x5c1297,_0x23c4e3){_0x23c4e3||(_0x23c4e3={});var _0x57f2dc={};return _0x23c4e3['defaults']&&(_0x57f2dc['commentThreadId']='',_0x57f2dc['commentId']='',_0x57f2dc['documentId']=''),null!=_0x5c1297['commentThreadId']&&_0x5c1297['hasOwnProperty']('commentThreadId')&&(_0x57f2dc['commentThreadId']=_0x5c1297['commentThreadId']),null!=_0x5c1297['commentId']&&_0x5c1297['hasOwnProperty']('commentId')&&(_0x57f2dc['commentId']=_0x5c1297['commentId']),null!=_0x5c1297['documentId']&&_0x5c1297['hasOwnProperty']('documentId')&&(_0x57f2dc['documentId']=_0x5c1297['documentId']),_0x57f2dc;},_0x2f4af0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f4af0['getTypeUrl']=function(_0x1cac21){return void 0x0===_0x1cac21&&(_0x1cac21='type.googleapis.com'),_0x1cac21+'/CommentsV2RemoveCommentMessage';},_0x2f4af0;}()),_0x2dfa82['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x1cbd4b(_0x205542){if(_0x205542){for(var _0x19b98f=Object['keys'](_0x205542),_0xb5afbd=0x0;_0xb5afbd<_0x19b98f['length'];++_0xb5afbd)null!=_0x205542[_0x19b98f[_0xb5afbd]]&&(this[_0x19b98f[_0xb5afbd]]=_0x205542[_0x19b98f[_0xb5afbd]]);}}return _0x1cbd4b['prototype']['documentId']='',_0x1cbd4b['create']=function(_0x1d704b){return new _0x1cbd4b(_0x1d704b);},_0x1cbd4b['encode']=function(_0xfe0e4a,_0x4de7a8){return _0x4de7a8||(_0x4de7a8=_0x278790['create']()),null!=_0xfe0e4a['documentId']&&Object['hasOwnProperty']['call'](_0xfe0e4a,'documentId')&&_0x4de7a8['uint32'](0xa)['string'](_0xfe0e4a['documentId']),_0x4de7a8;},_0x1cbd4b['encodeDelimited']=function(_0x536f0e,_0x19e8db){return this['encode'](_0x536f0e,_0x19e8db)['ldelim']();},_0x1cbd4b['decode']=function(_0x18edde,_0x505d8f,_0x3b7940){_0x18edde instanceof _0x150291||(_0x18edde=_0x150291['create'](_0x18edde));for(var _0x359540=void 0x0===_0x505d8f?_0x18edde['len']:_0x18edde['pos']+_0x505d8f,_0x48ebca=new _0x2dfa82['CommentsV2GetDocumentThreadsMessage']();_0x18edde['pos']<_0x359540;){var _0x36694b=_0x18edde['uint32']();if(_0x36694b===_0x3b7940)break;_0x36694b>>>0x3==0x1?_0x48ebca['documentId']=_0x18edde['string']():_0x18edde['skipType'](0x7&_0x36694b);}return _0x48ebca;},_0x1cbd4b['decodeDelimited']=function(_0x1ed179){return _0x1ed179 instanceof _0x150291||(_0x1ed179=new _0x150291(_0x1ed179)),this['decode'](_0x1ed179,_0x1ed179['uint32']());},_0x1cbd4b['verify']=function(_0xb88f63){return'object'!=typeof _0xb88f63||null===_0xb88f63?'object\x20expected':null!=_0xb88f63['documentId']&&_0xb88f63['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0xb88f63['documentId'])?'documentId:\x20string\x20expected':null;},_0x1cbd4b['fromObject']=function(_0x48adb5){if(_0x48adb5 instanceof _0x2dfa82['CommentsV2GetDocumentThreadsMessage'])return _0x48adb5;var _0xc6faa0=new _0x2dfa82['CommentsV2GetDocumentThreadsMessage']();return null!=_0x48adb5['documentId']&&(_0xc6faa0['documentId']=String(_0x48adb5['documentId'])),_0xc6faa0;},_0x1cbd4b['toObject']=function(_0x14150c,_0x4aca93){_0x4aca93||(_0x4aca93={});var _0x3774fb={};return _0x4aca93['defaults']&&(_0x3774fb['documentId']=''),null!=_0x14150c['documentId']&&_0x14150c['hasOwnProperty']('documentId')&&(_0x3774fb['documentId']=_0x14150c['documentId']),_0x3774fb;},_0x1cbd4b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1cbd4b['getTypeUrl']=function(_0x257620){return void 0x0===_0x257620&&(_0x257620='type.googleapis.com'),_0x257620+'/CommentsV2GetDocumentThreadsMessage';},_0x1cbd4b;}()),_0x2dfa82['CommentsV2GetCommentThreadMessage']=(function(){function _0x5704df(_0x34710a){if(_0x34710a){for(var _0x1d0ce6=Object['keys'](_0x34710a),_0x34c78f=0x0;_0x34c78f<_0x1d0ce6['length'];++_0x34c78f)null!=_0x34710a[_0x1d0ce6[_0x34c78f]]&&(this[_0x1d0ce6[_0x34c78f]]=_0x34710a[_0x1d0ce6[_0x34c78f]]);}}return _0x5704df['prototype']['commentThreadId']='',_0x5704df['prototype']['documentId']='',_0x5704df['create']=function(_0x12b2e6){return new _0x5704df(_0x12b2e6);},_0x5704df['encode']=function(_0x504413,_0x506dc8){return _0x506dc8||(_0x506dc8=_0x278790['create']()),null!=_0x504413['commentThreadId']&&Object['hasOwnProperty']['call'](_0x504413,'commentThreadId')&&_0x506dc8['uint32'](0xa)['string'](_0x504413['commentThreadId']),null!=_0x504413['documentId']&&Object['hasOwnProperty']['call'](_0x504413,'documentId')&&_0x506dc8['uint32'](0x12)['string'](_0x504413['documentId']),_0x506dc8;},_0x5704df['encodeDelimited']=function(_0x2a19a2,_0x111f55){return this['encode'](_0x2a19a2,_0x111f55)['ldelim']();},_0x5704df['decode']=function(_0x4e17ae,_0x16727b,_0x4d48db){_0x4e17ae instanceof _0x150291||(_0x4e17ae=_0x150291['create'](_0x4e17ae));for(var _0x1aba28=void 0x0===_0x16727b?_0x4e17ae['len']:_0x4e17ae['pos']+_0x16727b,_0x169b79=new _0x2dfa82['CommentsV2GetCommentThreadMessage']();_0x4e17ae['pos']<_0x1aba28;){var _0x1fad5d=_0x4e17ae['uint32']();if(_0x1fad5d===_0x4d48db)break;switch(_0x1fad5d>>>0x3){case 0x1:_0x169b79['commentThreadId']=_0x4e17ae['string']();break;case 0x2:_0x169b79['documentId']=_0x4e17ae['string']();break;default:_0x4e17ae['skipType'](0x7&_0x1fad5d);}}return _0x169b79;},_0x5704df['decodeDelimited']=function(_0x5edafc){return _0x5edafc instanceof _0x150291||(_0x5edafc=new _0x150291(_0x5edafc)),this['decode'](_0x5edafc,_0x5edafc['uint32']());},_0x5704df['verify']=function(_0x2107fc){return'object'!=typeof _0x2107fc||null===_0x2107fc?'object\x20expected':null!=_0x2107fc['commentThreadId']&&_0x2107fc['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x2107fc['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x2107fc['documentId']&&_0x2107fc['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x2107fc['documentId'])?'documentId:\x20string\x20expected':null;},_0x5704df['fromObject']=function(_0xe39f7b){if(_0xe39f7b instanceof _0x2dfa82['CommentsV2GetCommentThreadMessage'])return _0xe39f7b;var _0x5332ba=new _0x2dfa82['CommentsV2GetCommentThreadMessage']();return null!=_0xe39f7b['commentThreadId']&&(_0x5332ba['commentThreadId']=String(_0xe39f7b['commentThreadId'])),null!=_0xe39f7b['documentId']&&(_0x5332ba['documentId']=String(_0xe39f7b['documentId'])),_0x5332ba;},_0x5704df['toObject']=function(_0xefb257,_0x52db0d){_0x52db0d||(_0x52db0d={});var _0x38f53c={};return _0x52db0d['defaults']&&(_0x38f53c['commentThreadId']='',_0x38f53c['documentId']=''),null!=_0xefb257['commentThreadId']&&_0xefb257['hasOwnProperty']('commentThreadId')&&(_0x38f53c['commentThreadId']=_0xefb257['commentThreadId']),null!=_0xefb257['documentId']&&_0xefb257['hasOwnProperty']('documentId')&&(_0x38f53c['documentId']=_0xefb257['documentId']),_0x38f53c;},_0x5704df['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5704df['getTypeUrl']=function(_0x4e91d5){return void 0x0===_0x4e91d5&&(_0x4e91d5='type.googleapis.com'),_0x4e91d5+'/CommentsV2GetCommentThreadMessage';},_0x5704df;}()),_0x2dfa82['CommentsV2ConnectMessage']=(function(){function _0x43083f(_0x54098e){if(_0x54098e){for(var _0x21f2e9=Object['keys'](_0x54098e),_0x5081d4=0x0;_0x5081d4<_0x21f2e9['length'];++_0x5081d4)null!=_0x54098e[_0x21f2e9[_0x5081d4]]&&(this[_0x21f2e9[_0x5081d4]]=_0x54098e[_0x21f2e9[_0x5081d4]]);}}return _0x43083f['prototype']['documentId']='',_0x43083f['create']=function(_0xfdf547){return new _0x43083f(_0xfdf547);},_0x43083f['encode']=function(_0x318948,_0x435c50){return _0x435c50||(_0x435c50=_0x278790['create']()),null!=_0x318948['documentId']&&Object['hasOwnProperty']['call'](_0x318948,'documentId')&&_0x435c50['uint32'](0xa)['string'](_0x318948['documentId']),_0x435c50;},_0x43083f['encodeDelimited']=function(_0xb0d143,_0x39f4ac){return this['encode'](_0xb0d143,_0x39f4ac)['ldelim']();},_0x43083f['decode']=function(_0x4fa312,_0x14e94b,_0x1a5524){_0x4fa312 instanceof _0x150291||(_0x4fa312=_0x150291['create'](_0x4fa312));for(var _0x190e41=void 0x0===_0x14e94b?_0x4fa312['len']:_0x4fa312['pos']+_0x14e94b,_0x266832=new _0x2dfa82['CommentsV2ConnectMessage']();_0x4fa312['pos']<_0x190e41;){var _0x2875cd=_0x4fa312['uint32']();if(_0x2875cd===_0x1a5524)break;_0x2875cd>>>0x3==0x1?_0x266832['documentId']=_0x4fa312['string']():_0x4fa312['skipType'](0x7&_0x2875cd);}return _0x266832;},_0x43083f['decodeDelimited']=function(_0x363f08){return _0x363f08 instanceof _0x150291||(_0x363f08=new _0x150291(_0x363f08)),this['decode'](_0x363f08,_0x363f08['uint32']());},_0x43083f['verify']=function(_0x2aeeaf){return'object'!=typeof _0x2aeeaf||null===_0x2aeeaf?'object\x20expected':null!=_0x2aeeaf['documentId']&&_0x2aeeaf['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x2aeeaf['documentId'])?'documentId:\x20string\x20expected':null;},_0x43083f['fromObject']=function(_0x2e92bb){if(_0x2e92bb instanceof _0x2dfa82['CommentsV2ConnectMessage'])return _0x2e92bb;var _0x2155f7=new _0x2dfa82['CommentsV2ConnectMessage']();return null!=_0x2e92bb['documentId']&&(_0x2155f7['documentId']=String(_0x2e92bb['documentId'])),_0x2155f7;},_0x43083f['toObject']=function(_0x1abe9d,_0xf6604d){_0xf6604d||(_0xf6604d={});var _0x34ada2={};return _0xf6604d['defaults']&&(_0x34ada2['documentId']=''),null!=_0x1abe9d['documentId']&&_0x1abe9d['hasOwnProperty']('documentId')&&(_0x34ada2['documentId']=_0x1abe9d['documentId']),_0x34ada2;},_0x43083f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x43083f['getTypeUrl']=function(_0x27408d){return void 0x0===_0x27408d&&(_0x27408d='type.googleapis.com'),_0x27408d+'/CommentsV2ConnectMessage';},_0x43083f;}()),_0x2dfa82['CommentsV2AddCommentMessage']=(function(){function _0x1298b7(_0xa341a5){if(_0xa341a5){for(var _0xbe739a=Object['keys'](_0xa341a5),_0x3c9247=0x0;_0x3c9247<_0xbe739a['length'];++_0x3c9247)null!=_0xa341a5[_0xbe739a[_0x3c9247]]&&(this[_0xbe739a[_0x3c9247]]=_0xa341a5[_0xbe739a[_0x3c9247]]);}}return _0x1298b7['prototype']['commentThreadId']='',_0x1298b7['prototype']['content']='',_0x1298b7['prototype']['documentId']='',_0x1298b7['prototype']['commentId']='',_0x1298b7['prototype']['createdAt']='',_0x1298b7['prototype']['userId']='',_0x1298b7['prototype']['attributes']='',_0x1298b7['prototype']['commentThread']=null,_0x1298b7['create']=function(_0x174d51){return new _0x1298b7(_0x174d51);},_0x1298b7['encode']=function(_0x5130b1,_0x3c828a){return _0x3c828a||(_0x3c828a=_0x278790['create']()),null!=_0x5130b1['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5130b1,'commentThreadId')&&_0x3c828a['uint32'](0xa)['string'](_0x5130b1['commentThreadId']),null!=_0x5130b1['content']&&Object['hasOwnProperty']['call'](_0x5130b1,'content')&&_0x3c828a['uint32'](0x12)['string'](_0x5130b1['content']),null!=_0x5130b1['documentId']&&Object['hasOwnProperty']['call'](_0x5130b1,'documentId')&&_0x3c828a['uint32'](0x1a)['string'](_0x5130b1['documentId']),null!=_0x5130b1['commentId']&&Object['hasOwnProperty']['call'](_0x5130b1,'commentId')&&_0x3c828a['uint32'](0x22)['string'](_0x5130b1['commentId']),null!=_0x5130b1['createdAt']&&Object['hasOwnProperty']['call'](_0x5130b1,'createdAt')&&_0x3c828a['uint32'](0x2a)['string'](_0x5130b1['createdAt']),null!=_0x5130b1['userId']&&Object['hasOwnProperty']['call'](_0x5130b1,'userId')&&_0x3c828a['uint32'](0x32)['string'](_0x5130b1['userId']),null!=_0x5130b1['attributes']&&Object['hasOwnProperty']['call'](_0x5130b1,'attributes')&&_0x3c828a['uint32'](0x3a)['string'](_0x5130b1['attributes']),null!=_0x5130b1['commentThread']&&Object['hasOwnProperty']['call'](_0x5130b1,'commentThread')&&_0x2dfa82['CommentsThreadDescriptor']['encode'](_0x5130b1['commentThread'],_0x3c828a['uint32'](0x42)['fork']())['ldelim'](),_0x3c828a;},_0x1298b7['encodeDelimited']=function(_0xe529eb,_0xab1597){return this['encode'](_0xe529eb,_0xab1597)['ldelim']();},_0x1298b7['decode']=function(_0x50bd26,_0x222643,_0x3862bc){_0x50bd26 instanceof _0x150291||(_0x50bd26=_0x150291['create'](_0x50bd26));for(var _0x288b2e=void 0x0===_0x222643?_0x50bd26['len']:_0x50bd26['pos']+_0x222643,_0x5c0cf4=new _0x2dfa82['CommentsV2AddCommentMessage']();_0x50bd26['pos']<_0x288b2e;){var _0xaca5ab=_0x50bd26['uint32']();if(_0xaca5ab===_0x3862bc)break;switch(_0xaca5ab>>>0x3){case 0x1:_0x5c0cf4['commentThreadId']=_0x50bd26['string']();break;case 0x2:_0x5c0cf4['content']=_0x50bd26['string']();break;case 0x3:_0x5c0cf4['documentId']=_0x50bd26['string']();break;case 0x4:_0x5c0cf4['commentId']=_0x50bd26['string']();break;case 0x5:_0x5c0cf4['createdAt']=_0x50bd26['string']();break;case 0x6:_0x5c0cf4['userId']=_0x50bd26['string']();break;case 0x7:_0x5c0cf4['attributes']=_0x50bd26['string']();break;case 0x8:_0x5c0cf4['commentThread']=_0x2dfa82['CommentsThreadDescriptor']['decode'](_0x50bd26,_0x50bd26['uint32']());break;default:_0x50bd26['skipType'](0x7&_0xaca5ab);}}return _0x5c0cf4;},_0x1298b7['decodeDelimited']=function(_0x51d347){return _0x51d347 instanceof _0x150291||(_0x51d347=new _0x150291(_0x51d347)),this['decode'](_0x51d347,_0x51d347['uint32']());},_0x1298b7['verify']=function(_0x5af0f5){if('object'!=typeof _0x5af0f5||null===_0x5af0f5)return'object\x20expected';if(null!=_0x5af0f5['commentThreadId']&&_0x5af0f5['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x5af0f5['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x5af0f5['content']&&_0x5af0f5['hasOwnProperty']('content')&&!_0x4a15b3['isString'](_0x5af0f5['content']))return'content:\x20string\x20expected';if(null!=_0x5af0f5['documentId']&&_0x5af0f5['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x5af0f5['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x5af0f5['commentId']&&_0x5af0f5['hasOwnProperty']('commentId')&&!_0x4a15b3['isString'](_0x5af0f5['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x5af0f5['createdAt']&&_0x5af0f5['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x5af0f5['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x5af0f5['userId']&&_0x5af0f5['hasOwnProperty']('userId')&&!_0x4a15b3['isString'](_0x5af0f5['userId']))return'userId:\x20string\x20expected';if(null!=_0x5af0f5['attributes']&&_0x5af0f5['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x5af0f5['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x5af0f5['commentThread']&&_0x5af0f5['hasOwnProperty']('commentThread')){var _0x1405e7=_0x2dfa82['CommentsThreadDescriptor']['verify'](_0x5af0f5['commentThread']);if(_0x1405e7)return'commentThread.'+_0x1405e7;}return null;},_0x1298b7['fromObject']=function(_0x184328){if(_0x184328 instanceof _0x2dfa82['CommentsV2AddCommentMessage'])return _0x184328;var _0x599d7a=new _0x2dfa82['CommentsV2AddCommentMessage']();if(null!=_0x184328['commentThreadId']&&(_0x599d7a['commentThreadId']=String(_0x184328['commentThreadId'])),null!=_0x184328['content']&&(_0x599d7a['content']=String(_0x184328['content'])),null!=_0x184328['documentId']&&(_0x599d7a['documentId']=String(_0x184328['documentId'])),null!=_0x184328['commentId']&&(_0x599d7a['commentId']=String(_0x184328['commentId'])),null!=_0x184328['createdAt']&&(_0x599d7a['createdAt']=String(_0x184328['createdAt'])),null!=_0x184328['userId']&&(_0x599d7a['userId']=String(_0x184328['userId'])),null!=_0x184328['attributes']&&(_0x599d7a['attributes']=String(_0x184328['attributes'])),null!=_0x184328['commentThread']){if('object'!=typeof _0x184328['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x599d7a['commentThread']=_0x2dfa82['CommentsThreadDescriptor']['fromObject'](_0x184328['commentThread']);}return _0x599d7a;},_0x1298b7['toObject']=function(_0x2e21fe,_0x32ff7b){_0x32ff7b||(_0x32ff7b={});var _0x139ca9={};return _0x32ff7b['defaults']&&(_0x139ca9['commentThreadId']='',_0x139ca9['content']='',_0x139ca9['documentId']='',_0x139ca9['commentId']='',_0x139ca9['createdAt']='',_0x139ca9['userId']='',_0x139ca9['attributes']='',_0x139ca9['commentThread']=null),null!=_0x2e21fe['commentThreadId']&&_0x2e21fe['hasOwnProperty']('commentThreadId')&&(_0x139ca9['commentThreadId']=_0x2e21fe['commentThreadId']),null!=_0x2e21fe['content']&&_0x2e21fe['hasOwnProperty']('content')&&(_0x139ca9['content']=_0x2e21fe['content']),null!=_0x2e21fe['documentId']&&_0x2e21fe['hasOwnProperty']('documentId')&&(_0x139ca9['documentId']=_0x2e21fe['documentId']),null!=_0x2e21fe['commentId']&&_0x2e21fe['hasOwnProperty']('commentId')&&(_0x139ca9['commentId']=_0x2e21fe['commentId']),null!=_0x2e21fe['createdAt']&&_0x2e21fe['hasOwnProperty']('createdAt')&&(_0x139ca9['createdAt']=_0x2e21fe['createdAt']),null!=_0x2e21fe['userId']&&_0x2e21fe['hasOwnProperty']('userId')&&(_0x139ca9['userId']=_0x2e21fe['userId']),null!=_0x2e21fe['attributes']&&_0x2e21fe['hasOwnProperty']('attributes')&&(_0x139ca9['attributes']=_0x2e21fe['attributes']),null!=_0x2e21fe['commentThread']&&_0x2e21fe['hasOwnProperty']('commentThread')&&(_0x139ca9['commentThread']=_0x2dfa82['CommentsThreadDescriptor']['toObject'](_0x2e21fe['commentThread'],_0x32ff7b)),_0x139ca9;},_0x1298b7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1298b7['getTypeUrl']=function(_0x254629){return void 0x0===_0x254629&&(_0x254629='type.googleapis.com'),_0x254629+'/CommentsV2AddCommentMessage';},_0x1298b7;}()),_0x2dfa82['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x2710dc(_0x5196fd){if(_0x5196fd){for(var _0x12bbab=Object['keys'](_0x5196fd),_0x2875a3=0x0;_0x2875a3<_0x12bbab['length'];++_0x2875a3)null!=_0x5196fd[_0x12bbab[_0x2875a3]]&&(this[_0x12bbab[_0x2875a3]]=_0x5196fd[_0x12bbab[_0x2875a3]]);}}return _0x2710dc['prototype']['commentThreadId']='',_0x2710dc['prototype']['documentId']='',_0x2710dc['prototype']['context']='',_0x2710dc['prototype']['attributes']='',_0x2710dc['prototype']['unlinkedAt']='',_0x2710dc['create']=function(_0x3b241a){return new _0x2710dc(_0x3b241a);},_0x2710dc['encode']=function(_0x3cfbb7,_0x52f75b){return _0x52f75b||(_0x52f75b=_0x278790['create']()),null!=_0x3cfbb7['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3cfbb7,'commentThreadId')&&_0x52f75b['uint32'](0xa)['string'](_0x3cfbb7['commentThreadId']),null!=_0x3cfbb7['documentId']&&Object['hasOwnProperty']['call'](_0x3cfbb7,'documentId')&&_0x52f75b['uint32'](0x12)['string'](_0x3cfbb7['documentId']),null!=_0x3cfbb7['context']&&Object['hasOwnProperty']['call'](_0x3cfbb7,'context')&&_0x52f75b['uint32'](0x1a)['string'](_0x3cfbb7['context']),null!=_0x3cfbb7['attributes']&&Object['hasOwnProperty']['call'](_0x3cfbb7,'attributes')&&_0x52f75b['uint32'](0x22)['string'](_0x3cfbb7['attributes']),null!=_0x3cfbb7['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x3cfbb7,'unlinkedAt')&&_0x52f75b['uint32'](0x2a)['string'](_0x3cfbb7['unlinkedAt']),_0x52f75b;},_0x2710dc['encodeDelimited']=function(_0x722f42,_0x5135e3){return this['encode'](_0x722f42,_0x5135e3)['ldelim']();},_0x2710dc['decode']=function(_0x3a8739,_0x5c949b,_0x26a73d){_0x3a8739 instanceof _0x150291||(_0x3a8739=_0x150291['create'](_0x3a8739));for(var _0x4326e0=void 0x0===_0x5c949b?_0x3a8739['len']:_0x3a8739['pos']+_0x5c949b,_0x3f6b69=new _0x2dfa82['CommentsV2UpdateCommentThreadMessage']();_0x3a8739['pos']<_0x4326e0;){var _0x1c1fbf=_0x3a8739['uint32']();if(_0x1c1fbf===_0x26a73d)break;switch(_0x1c1fbf>>>0x3){case 0x1:_0x3f6b69['commentThreadId']=_0x3a8739['string']();break;case 0x2:_0x3f6b69['documentId']=_0x3a8739['string']();break;case 0x3:_0x3f6b69['context']=_0x3a8739['string']();break;case 0x4:_0x3f6b69['attributes']=_0x3a8739['string']();break;case 0x5:_0x3f6b69['unlinkedAt']=_0x3a8739['string']();break;default:_0x3a8739['skipType'](0x7&_0x1c1fbf);}}return _0x3f6b69;},_0x2710dc['decodeDelimited']=function(_0x7e3ec){return _0x7e3ec instanceof _0x150291||(_0x7e3ec=new _0x150291(_0x7e3ec)),this['decode'](_0x7e3ec,_0x7e3ec['uint32']());},_0x2710dc['verify']=function(_0x3d19e6){return'object'!=typeof _0x3d19e6||null===_0x3d19e6?'object\x20expected':null!=_0x3d19e6['commentThreadId']&&_0x3d19e6['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x3d19e6['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3d19e6['documentId']&&_0x3d19e6['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x3d19e6['documentId'])?'documentId:\x20string\x20expected':null!=_0x3d19e6['context']&&_0x3d19e6['hasOwnProperty']('context')&&!_0x4a15b3['isString'](_0x3d19e6['context'])?'context:\x20string\x20expected':null!=_0x3d19e6['attributes']&&_0x3d19e6['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x3d19e6['attributes'])?'attributes:\x20string\x20expected':null!=_0x3d19e6['unlinkedAt']&&_0x3d19e6['hasOwnProperty']('unlinkedAt')&&!_0x4a15b3['isString'](_0x3d19e6['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x2710dc['fromObject']=function(_0x431a05){if(_0x431a05 instanceof _0x2dfa82['CommentsV2UpdateCommentThreadMessage'])return _0x431a05;var _0x3fea84=new _0x2dfa82['CommentsV2UpdateCommentThreadMessage']();return null!=_0x431a05['commentThreadId']&&(_0x3fea84['commentThreadId']=String(_0x431a05['commentThreadId'])),null!=_0x431a05['documentId']&&(_0x3fea84['documentId']=String(_0x431a05['documentId'])),null!=_0x431a05['context']&&(_0x3fea84['context']=String(_0x431a05['context'])),null!=_0x431a05['attributes']&&(_0x3fea84['attributes']=String(_0x431a05['attributes'])),null!=_0x431a05['unlinkedAt']&&(_0x3fea84['unlinkedAt']=String(_0x431a05['unlinkedAt'])),_0x3fea84;},_0x2710dc['toObject']=function(_0x2c702a,_0xd03dbe){_0xd03dbe||(_0xd03dbe={});var _0x2369ae={};return _0xd03dbe['defaults']&&(_0x2369ae['commentThreadId']='',_0x2369ae['documentId']='',_0x2369ae['context']='',_0x2369ae['attributes']='',_0x2369ae['unlinkedAt']=''),null!=_0x2c702a['commentThreadId']&&_0x2c702a['hasOwnProperty']('commentThreadId')&&(_0x2369ae['commentThreadId']=_0x2c702a['commentThreadId']),null!=_0x2c702a['documentId']&&_0x2c702a['hasOwnProperty']('documentId')&&(_0x2369ae['documentId']=_0x2c702a['documentId']),null!=_0x2c702a['context']&&_0x2c702a['hasOwnProperty']('context')&&(_0x2369ae['context']=_0x2c702a['context']),null!=_0x2c702a['attributes']&&_0x2c702a['hasOwnProperty']('attributes')&&(_0x2369ae['attributes']=_0x2c702a['attributes']),null!=_0x2c702a['unlinkedAt']&&_0x2c702a['hasOwnProperty']('unlinkedAt')&&(_0x2369ae['unlinkedAt']=_0x2c702a['unlinkedAt']),_0x2369ae;},_0x2710dc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2710dc['getTypeUrl']=function(_0x3ad619){return void 0x0===_0x3ad619&&(_0x3ad619='type.googleapis.com'),_0x3ad619+'/CommentsV2UpdateCommentThreadMessage';},_0x2710dc;}()),_0x2dfa82['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x516e4b(_0x2f146b){if(_0x2f146b){for(var _0x1b49cd=Object['keys'](_0x2f146b),_0x3f38ee=0x0;_0x3f38ee<_0x1b49cd['length'];++_0x3f38ee)null!=_0x2f146b[_0x1b49cd[_0x3f38ee]]&&(this[_0x1b49cd[_0x3f38ee]]=_0x2f146b[_0x1b49cd[_0x3f38ee]]);}}return _0x516e4b['prototype']['commentThreadId']='',_0x516e4b['prototype']['documentId']='',_0x516e4b['prototype']['resolvedBy']='',_0x516e4b['prototype']['resolvedAt']='',_0x516e4b['create']=function(_0xbffcd2){return new _0x516e4b(_0xbffcd2);},_0x516e4b['encode']=function(_0x55aea4,_0x30f6ec){return _0x30f6ec||(_0x30f6ec=_0x278790['create']()),null!=_0x55aea4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x55aea4,'commentThreadId')&&_0x30f6ec['uint32'](0xa)['string'](_0x55aea4['commentThreadId']),null!=_0x55aea4['documentId']&&Object['hasOwnProperty']['call'](_0x55aea4,'documentId')&&_0x30f6ec['uint32'](0x12)['string'](_0x55aea4['documentId']),null!=_0x55aea4['resolvedBy']&&Object['hasOwnProperty']['call'](_0x55aea4,'resolvedBy')&&_0x30f6ec['uint32'](0x1a)['string'](_0x55aea4['resolvedBy']),null!=_0x55aea4['resolvedAt']&&Object['hasOwnProperty']['call'](_0x55aea4,'resolvedAt')&&_0x30f6ec['uint32'](0x22)['string'](_0x55aea4['resolvedAt']),_0x30f6ec;},_0x516e4b['encodeDelimited']=function(_0x4a65e4,_0x1e11dd){return this['encode'](_0x4a65e4,_0x1e11dd)['ldelim']();},_0x516e4b['decode']=function(_0x5eaa4f,_0x1b32bb,_0x2a08dd){_0x5eaa4f instanceof _0x150291||(_0x5eaa4f=_0x150291['create'](_0x5eaa4f));for(var _0x2576e2=void 0x0===_0x1b32bb?_0x5eaa4f['len']:_0x5eaa4f['pos']+_0x1b32bb,_0x22c38f=new _0x2dfa82['CommentsV2ResolveCommentThreadMessage']();_0x5eaa4f['pos']<_0x2576e2;){var _0x5c28f7=_0x5eaa4f['uint32']();if(_0x5c28f7===_0x2a08dd)break;switch(_0x5c28f7>>>0x3){case 0x1:_0x22c38f['commentThreadId']=_0x5eaa4f['string']();break;case 0x2:_0x22c38f['documentId']=_0x5eaa4f['string']();break;case 0x3:_0x22c38f['resolvedBy']=_0x5eaa4f['string']();break;case 0x4:_0x22c38f['resolvedAt']=_0x5eaa4f['string']();break;default:_0x5eaa4f['skipType'](0x7&_0x5c28f7);}}return _0x22c38f;},_0x516e4b['decodeDelimited']=function(_0x1f8069){return _0x1f8069 instanceof _0x150291||(_0x1f8069=new _0x150291(_0x1f8069)),this['decode'](_0x1f8069,_0x1f8069['uint32']());},_0x516e4b['verify']=function(_0x1bd7e9){return'object'!=typeof _0x1bd7e9||null===_0x1bd7e9?'object\x20expected':null!=_0x1bd7e9['commentThreadId']&&_0x1bd7e9['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x1bd7e9['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1bd7e9['documentId']&&_0x1bd7e9['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x1bd7e9['documentId'])?'documentId:\x20string\x20expected':null!=_0x1bd7e9['resolvedBy']&&_0x1bd7e9['hasOwnProperty']('resolvedBy')&&!_0x4a15b3['isString'](_0x1bd7e9['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x1bd7e9['resolvedAt']&&_0x1bd7e9['hasOwnProperty']('resolvedAt')&&!_0x4a15b3['isString'](_0x1bd7e9['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x516e4b['fromObject']=function(_0x10fe05){if(_0x10fe05 instanceof _0x2dfa82['CommentsV2ResolveCommentThreadMessage'])return _0x10fe05;var _0x1c5fea=new _0x2dfa82['CommentsV2ResolveCommentThreadMessage']();return null!=_0x10fe05['commentThreadId']&&(_0x1c5fea['commentThreadId']=String(_0x10fe05['commentThreadId'])),null!=_0x10fe05['documentId']&&(_0x1c5fea['documentId']=String(_0x10fe05['documentId'])),null!=_0x10fe05['resolvedBy']&&(_0x1c5fea['resolvedBy']=String(_0x10fe05['resolvedBy'])),null!=_0x10fe05['resolvedAt']&&(_0x1c5fea['resolvedAt']=String(_0x10fe05['resolvedAt'])),_0x1c5fea;},_0x516e4b['toObject']=function(_0x5826fa,_0x15e5f8){_0x15e5f8||(_0x15e5f8={});var _0x18cdbf={};return _0x15e5f8['defaults']&&(_0x18cdbf['commentThreadId']='',_0x18cdbf['documentId']='',_0x18cdbf['resolvedBy']='',_0x18cdbf['resolvedAt']=''),null!=_0x5826fa['commentThreadId']&&_0x5826fa['hasOwnProperty']('commentThreadId')&&(_0x18cdbf['commentThreadId']=_0x5826fa['commentThreadId']),null!=_0x5826fa['documentId']&&_0x5826fa['hasOwnProperty']('documentId')&&(_0x18cdbf['documentId']=_0x5826fa['documentId']),null!=_0x5826fa['resolvedBy']&&_0x5826fa['hasOwnProperty']('resolvedBy')&&(_0x18cdbf['resolvedBy']=_0x5826fa['resolvedBy']),null!=_0x5826fa['resolvedAt']&&_0x5826fa['hasOwnProperty']('resolvedAt')&&(_0x18cdbf['resolvedAt']=_0x5826fa['resolvedAt']),_0x18cdbf;},_0x516e4b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x516e4b['getTypeUrl']=function(_0x53117a){return void 0x0===_0x53117a&&(_0x53117a='type.googleapis.com'),_0x53117a+'/CommentsV2ResolveCommentThreadMessage';},_0x516e4b;}()),_0x2dfa82['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x27a7a5(_0x3cd801){if(_0x3cd801){for(var _0x2ecda1=Object['keys'](_0x3cd801),_0x125f6e=0x0;_0x125f6e<_0x2ecda1['length'];++_0x125f6e)null!=_0x3cd801[_0x2ecda1[_0x125f6e]]&&(this[_0x2ecda1[_0x125f6e]]=_0x3cd801[_0x2ecda1[_0x125f6e]]);}}return _0x27a7a5['prototype']['commentThreadId']='',_0x27a7a5['prototype']['documentId']='',_0x27a7a5['create']=function(_0x24eb58){return new _0x27a7a5(_0x24eb58);},_0x27a7a5['encode']=function(_0x3d7864,_0x2ee248){return _0x2ee248||(_0x2ee248=_0x278790['create']()),null!=_0x3d7864['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3d7864,'commentThreadId')&&_0x2ee248['uint32'](0xa)['string'](_0x3d7864['commentThreadId']),null!=_0x3d7864['documentId']&&Object['hasOwnProperty']['call'](_0x3d7864,'documentId')&&_0x2ee248['uint32'](0x12)['string'](_0x3d7864['documentId']),_0x2ee248;},_0x27a7a5['encodeDelimited']=function(_0x42a840,_0x2b2fca){return this['encode'](_0x42a840,_0x2b2fca)['ldelim']();},_0x27a7a5['decode']=function(_0x1dc3a4,_0x3317d3,_0x5ebd2a){_0x1dc3a4 instanceof _0x150291||(_0x1dc3a4=_0x150291['create'](_0x1dc3a4));for(var _0x38f673=void 0x0===_0x3317d3?_0x1dc3a4['len']:_0x1dc3a4['pos']+_0x3317d3,_0x592d82=new _0x2dfa82['CommentsV2ReopenCommentThreadMessage']();_0x1dc3a4['pos']<_0x38f673;){var _0x18b469=_0x1dc3a4['uint32']();if(_0x18b469===_0x5ebd2a)break;switch(_0x18b469>>>0x3){case 0x1:_0x592d82['commentThreadId']=_0x1dc3a4['string']();break;case 0x2:_0x592d82['documentId']=_0x1dc3a4['string']();break;default:_0x1dc3a4['skipType'](0x7&_0x18b469);}}return _0x592d82;},_0x27a7a5['decodeDelimited']=function(_0xefd78){return _0xefd78 instanceof _0x150291||(_0xefd78=new _0x150291(_0xefd78)),this['decode'](_0xefd78,_0xefd78['uint32']());},_0x27a7a5['verify']=function(_0x383761){return'object'!=typeof _0x383761||null===_0x383761?'object\x20expected':null!=_0x383761['commentThreadId']&&_0x383761['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x383761['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x383761['documentId']&&_0x383761['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x383761['documentId'])?'documentId:\x20string\x20expected':null;},_0x27a7a5['fromObject']=function(_0x5a94e5){if(_0x5a94e5 instanceof _0x2dfa82['CommentsV2ReopenCommentThreadMessage'])return _0x5a94e5;var _0x38b706=new _0x2dfa82['CommentsV2ReopenCommentThreadMessage']();return null!=_0x5a94e5['commentThreadId']&&(_0x38b706['commentThreadId']=String(_0x5a94e5['commentThreadId'])),null!=_0x5a94e5['documentId']&&(_0x38b706['documentId']=String(_0x5a94e5['documentId'])),_0x38b706;},_0x27a7a5['toObject']=function(_0x5c12c1,_0x4573a8){_0x4573a8||(_0x4573a8={});var _0x328a8b={};return _0x4573a8['defaults']&&(_0x328a8b['commentThreadId']='',_0x328a8b['documentId']=''),null!=_0x5c12c1['commentThreadId']&&_0x5c12c1['hasOwnProperty']('commentThreadId')&&(_0x328a8b['commentThreadId']=_0x5c12c1['commentThreadId']),null!=_0x5c12c1['documentId']&&_0x5c12c1['hasOwnProperty']('documentId')&&(_0x328a8b['documentId']=_0x5c12c1['documentId']),_0x328a8b;},_0x27a7a5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x27a7a5['getTypeUrl']=function(_0x188414){return void 0x0===_0x188414&&(_0x188414='type.googleapis.com'),_0x188414+'/CommentsV2ReopenCommentThreadMessage';},_0x27a7a5;}()),_0x2dfa82['CommentsV2AddCommentThreadMessage']=(function(){function _0x251c4a(_0x4fe152){if(this['comments']=[],_0x4fe152){for(var _0x121c9=Object['keys'](_0x4fe152),_0x49e204=0x0;_0x49e204<_0x121c9['length'];++_0x49e204)null!=_0x4fe152[_0x121c9[_0x49e204]]&&(this[_0x121c9[_0x49e204]]=_0x4fe152[_0x121c9[_0x49e204]]);}}return _0x251c4a['prototype']['documentId']='',_0x251c4a['prototype']['commentThreadId']='',_0x251c4a['prototype']['context']='',_0x251c4a['prototype']['createdAt']='',_0x251c4a['prototype']['resolvedAt']='',_0x251c4a['prototype']['resolvedBy']='',_0x251c4a['prototype']['attributes']='',_0x251c4a['prototype']['deletedAt']='',_0x251c4a['prototype']['comments']=_0x4a15b3['emptyArray'],_0x251c4a['create']=function(_0x5e2040){return new _0x251c4a(_0x5e2040);},_0x251c4a['encode']=function(_0x1d9dc7,_0x245802){if(_0x245802||(_0x245802=_0x278790['create']()),null!=_0x1d9dc7['documentId']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'documentId')&&_0x245802['uint32'](0xa)['string'](_0x1d9dc7['documentId']),null!=_0x1d9dc7['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'commentThreadId')&&_0x245802['uint32'](0x12)['string'](_0x1d9dc7['commentThreadId']),null!=_0x1d9dc7['context']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'context')&&_0x245802['uint32'](0x1a)['string'](_0x1d9dc7['context']),null!=_0x1d9dc7['createdAt']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'createdAt')&&_0x245802['uint32'](0x22)['string'](_0x1d9dc7['createdAt']),null!=_0x1d9dc7['resolvedAt']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'resolvedAt')&&_0x245802['uint32'](0x2a)['string'](_0x1d9dc7['resolvedAt']),null!=_0x1d9dc7['resolvedBy']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'resolvedBy')&&_0x245802['uint32'](0x32)['string'](_0x1d9dc7['resolvedBy']),null!=_0x1d9dc7['attributes']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'attributes')&&_0x245802['uint32'](0x3a)['string'](_0x1d9dc7['attributes']),null!=_0x1d9dc7['deletedAt']&&Object['hasOwnProperty']['call'](_0x1d9dc7,'deletedAt')&&_0x245802['uint32'](0x42)['string'](_0x1d9dc7['deletedAt']),null!=_0x1d9dc7['comments']&&_0x1d9dc7['comments']['length']){for(var _0x4b6657=0x0;_0x4b6657<_0x1d9dc7['comments']['length'];++_0x4b6657)_0x2dfa82['CommentDescriptor']['encode'](_0x1d9dc7['comments'][_0x4b6657],_0x245802['uint32'](0x4a)['fork']())['ldelim']();}return _0x245802;},_0x251c4a['encodeDelimited']=function(_0xdeb30d,_0x3f3800){return this['encode'](_0xdeb30d,_0x3f3800)['ldelim']();},_0x251c4a['decode']=function(_0x30322f,_0x546706,_0x4e622a){_0x30322f instanceof _0x150291||(_0x30322f=_0x150291['create'](_0x30322f));for(var _0x2f247a=void 0x0===_0x546706?_0x30322f['len']:_0x30322f['pos']+_0x546706,_0x58816f=new _0x2dfa82['CommentsV2AddCommentThreadMessage']();_0x30322f['pos']<_0x2f247a;){var _0x23801d=_0x30322f['uint32']();if(_0x23801d===_0x4e622a)break;switch(_0x23801d>>>0x3){case 0x1:_0x58816f['documentId']=_0x30322f['string']();break;case 0x2:_0x58816f['commentThreadId']=_0x30322f['string']();break;case 0x3:_0x58816f['context']=_0x30322f['string']();break;case 0x4:_0x58816f['createdAt']=_0x30322f['string']();break;case 0x5:_0x58816f['resolvedAt']=_0x30322f['string']();break;case 0x6:_0x58816f['resolvedBy']=_0x30322f['string']();break;case 0x7:_0x58816f['attributes']=_0x30322f['string']();break;case 0x8:_0x58816f['deletedAt']=_0x30322f['string']();break;case 0x9:_0x58816f['comments']&&_0x58816f['comments']['length']||(_0x58816f['comments']=[]),_0x58816f['comments']['push'](_0x2dfa82['CommentDescriptor']['decode'](_0x30322f,_0x30322f['uint32']()));break;default:_0x30322f['skipType'](0x7&_0x23801d);}}return _0x58816f;},_0x251c4a['decodeDelimited']=function(_0x17821c){return _0x17821c instanceof _0x150291||(_0x17821c=new _0x150291(_0x17821c)),this['decode'](_0x17821c,_0x17821c['uint32']());},_0x251c4a['verify']=function(_0x5c1517){if('object'!=typeof _0x5c1517||null===_0x5c1517)return'object\x20expected';if(null!=_0x5c1517['documentId']&&_0x5c1517['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x5c1517['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x5c1517['commentThreadId']&&_0x5c1517['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x5c1517['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x5c1517['context']&&_0x5c1517['hasOwnProperty']('context')&&!_0x4a15b3['isString'](_0x5c1517['context']))return'context:\x20string\x20expected';if(null!=_0x5c1517['createdAt']&&_0x5c1517['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x5c1517['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x5c1517['resolvedAt']&&_0x5c1517['hasOwnProperty']('resolvedAt')&&!_0x4a15b3['isString'](_0x5c1517['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x5c1517['resolvedBy']&&_0x5c1517['hasOwnProperty']('resolvedBy')&&!_0x4a15b3['isString'](_0x5c1517['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x5c1517['attributes']&&_0x5c1517['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x5c1517['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x5c1517['deletedAt']&&_0x5c1517['hasOwnProperty']('deletedAt')&&!_0x4a15b3['isString'](_0x5c1517['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x5c1517['comments']&&_0x5c1517['hasOwnProperty']('comments')){if(!Array['isArray'](_0x5c1517['comments']))return'comments:\x20array\x20expected';for(var _0xb5fe36=0x0;_0xb5fe36<_0x5c1517['comments']['length'];++_0xb5fe36){var _0x5b3ae5=_0x2dfa82['CommentDescriptor']['verify'](_0x5c1517['comments'][_0xb5fe36]);if(_0x5b3ae5)return'comments.'+_0x5b3ae5;}}return null;},_0x251c4a['fromObject']=function(_0x20179d){if(_0x20179d instanceof _0x2dfa82['CommentsV2AddCommentThreadMessage'])return _0x20179d;var _0x132d57=new _0x2dfa82['CommentsV2AddCommentThreadMessage']();if(null!=_0x20179d['documentId']&&(_0x132d57['documentId']=String(_0x20179d['documentId'])),null!=_0x20179d['commentThreadId']&&(_0x132d57['commentThreadId']=String(_0x20179d['commentThreadId'])),null!=_0x20179d['context']&&(_0x132d57['context']=String(_0x20179d['context'])),null!=_0x20179d['createdAt']&&(_0x132d57['createdAt']=String(_0x20179d['createdAt'])),null!=_0x20179d['resolvedAt']&&(_0x132d57['resolvedAt']=String(_0x20179d['resolvedAt'])),null!=_0x20179d['resolvedBy']&&(_0x132d57['resolvedBy']=String(_0x20179d['resolvedBy'])),null!=_0x20179d['attributes']&&(_0x132d57['attributes']=String(_0x20179d['attributes'])),null!=_0x20179d['deletedAt']&&(_0x132d57['deletedAt']=String(_0x20179d['deletedAt'])),_0x20179d['comments']){if(!Array['isArray'](_0x20179d['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x132d57['comments']=[];for(var _0x3fe571=0x0;_0x3fe571<_0x20179d['comments']['length'];++_0x3fe571){if('object'!=typeof _0x20179d['comments'][_0x3fe571])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x132d57['comments'][_0x3fe571]=_0x2dfa82['CommentDescriptor']['fromObject'](_0x20179d['comments'][_0x3fe571]);}}return _0x132d57;},_0x251c4a['toObject']=function(_0x18c091,_0xfb693c){_0xfb693c||(_0xfb693c={});var _0x221c03={};if((_0xfb693c['arrays']||_0xfb693c['defaults'])&&(_0x221c03['comments']=[]),_0xfb693c['defaults']&&(_0x221c03['documentId']='',_0x221c03['commentThreadId']='',_0x221c03['context']='',_0x221c03['createdAt']='',_0x221c03['resolvedAt']='',_0x221c03['resolvedBy']='',_0x221c03['attributes']='',_0x221c03['deletedAt']=''),null!=_0x18c091['documentId']&&_0x18c091['hasOwnProperty']('documentId')&&(_0x221c03['documentId']=_0x18c091['documentId']),null!=_0x18c091['commentThreadId']&&_0x18c091['hasOwnProperty']('commentThreadId')&&(_0x221c03['commentThreadId']=_0x18c091['commentThreadId']),null!=_0x18c091['context']&&_0x18c091['hasOwnProperty']('context')&&(_0x221c03['context']=_0x18c091['context']),null!=_0x18c091['createdAt']&&_0x18c091['hasOwnProperty']('createdAt')&&(_0x221c03['createdAt']=_0x18c091['createdAt']),null!=_0x18c091['resolvedAt']&&_0x18c091['hasOwnProperty']('resolvedAt')&&(_0x221c03['resolvedAt']=_0x18c091['resolvedAt']),null!=_0x18c091['resolvedBy']&&_0x18c091['hasOwnProperty']('resolvedBy')&&(_0x221c03['resolvedBy']=_0x18c091['resolvedBy']),null!=_0x18c091['attributes']&&_0x18c091['hasOwnProperty']('attributes')&&(_0x221c03['attributes']=_0x18c091['attributes']),null!=_0x18c091['deletedAt']&&_0x18c091['hasOwnProperty']('deletedAt')&&(_0x221c03['deletedAt']=_0x18c091['deletedAt']),_0x18c091['comments']&&_0x18c091['comments']['length']){_0x221c03['comments']=[];for(var _0x560810=0x0;_0x560810<_0x18c091['comments']['length'];++_0x560810)_0x221c03['comments'][_0x560810]=_0x2dfa82['CommentDescriptor']['toObject'](_0x18c091['comments'][_0x560810],_0xfb693c);}return _0x221c03;},_0x251c4a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x251c4a['getTypeUrl']=function(_0xb7a7a1){return void 0x0===_0xb7a7a1&&(_0xb7a7a1='type.googleapis.com'),_0xb7a7a1+'/CommentsV2AddCommentThreadMessage';},_0x251c4a;}()),_0x2dfa82['CommentThreadAddedCommentDescriptor']=(function(){function _0x33bf8a(_0x231f38){if(_0x231f38){for(var _0x286830=Object['keys'](_0x231f38),_0x470ef0=0x0;_0x470ef0<_0x286830['length'];++_0x470ef0)null!=_0x231f38[_0x286830[_0x470ef0]]&&(this[_0x286830[_0x470ef0]]=_0x231f38[_0x286830[_0x470ef0]]);}}return _0x33bf8a['prototype']['commentId']='',_0x33bf8a['prototype']['createdAt']='',_0x33bf8a['create']=function(_0x38ac2c){return new _0x33bf8a(_0x38ac2c);},_0x33bf8a['encode']=function(_0x515d49,_0x3b9a5b){return _0x3b9a5b||(_0x3b9a5b=_0x278790['create']()),null!=_0x515d49['commentId']&&Object['hasOwnProperty']['call'](_0x515d49,'commentId')&&_0x3b9a5b['uint32'](0xa)['string'](_0x515d49['commentId']),null!=_0x515d49['createdAt']&&Object['hasOwnProperty']['call'](_0x515d49,'createdAt')&&_0x3b9a5b['uint32'](0x12)['string'](_0x515d49['createdAt']),_0x3b9a5b;},_0x33bf8a['encodeDelimited']=function(_0x4d1e3f,_0x230386){return this['encode'](_0x4d1e3f,_0x230386)['ldelim']();},_0x33bf8a['decode']=function(_0x1dda02,_0x13b74a,_0xce5ee4){_0x1dda02 instanceof _0x150291||(_0x1dda02=_0x150291['create'](_0x1dda02));for(var _0x39bef8=void 0x0===_0x13b74a?_0x1dda02['len']:_0x1dda02['pos']+_0x13b74a,_0x2c1dd9=new _0x2dfa82['CommentThreadAddedCommentDescriptor']();_0x1dda02['pos']<_0x39bef8;){var _0x727128=_0x1dda02['uint32']();if(_0x727128===_0xce5ee4)break;switch(_0x727128>>>0x3){case 0x1:_0x2c1dd9['commentId']=_0x1dda02['string']();break;case 0x2:_0x2c1dd9['createdAt']=_0x1dda02['string']();break;default:_0x1dda02['skipType'](0x7&_0x727128);}}return _0x2c1dd9;},_0x33bf8a['decodeDelimited']=function(_0x5bcaee){return _0x5bcaee instanceof _0x150291||(_0x5bcaee=new _0x150291(_0x5bcaee)),this['decode'](_0x5bcaee,_0x5bcaee['uint32']());},_0x33bf8a['verify']=function(_0x124699){return'object'!=typeof _0x124699||null===_0x124699?'object\x20expected':null!=_0x124699['commentId']&&_0x124699['hasOwnProperty']('commentId')&&!_0x4a15b3['isString'](_0x124699['commentId'])?'commentId:\x20string\x20expected':null!=_0x124699['createdAt']&&_0x124699['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x124699['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x33bf8a['fromObject']=function(_0x24a0d8){if(_0x24a0d8 instanceof _0x2dfa82['CommentThreadAddedCommentDescriptor'])return _0x24a0d8;var _0x4957a7=new _0x2dfa82['CommentThreadAddedCommentDescriptor']();return null!=_0x24a0d8['commentId']&&(_0x4957a7['commentId']=String(_0x24a0d8['commentId'])),null!=_0x24a0d8['createdAt']&&(_0x4957a7['createdAt']=String(_0x24a0d8['createdAt'])),_0x4957a7;},_0x33bf8a['toObject']=function(_0x371280,_0x268415){_0x268415||(_0x268415={});var _0x3b354d={};return _0x268415['defaults']&&(_0x3b354d['commentId']='',_0x3b354d['createdAt']=''),null!=_0x371280['commentId']&&_0x371280['hasOwnProperty']('commentId')&&(_0x3b354d['commentId']=_0x371280['commentId']),null!=_0x371280['createdAt']&&_0x371280['hasOwnProperty']('createdAt')&&(_0x3b354d['createdAt']=_0x371280['createdAt']),_0x3b354d;},_0x33bf8a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x33bf8a['getTypeUrl']=function(_0x29ac1f){return void 0x0===_0x29ac1f&&(_0x29ac1f='type.googleapis.com'),_0x29ac1f+'/CommentThreadAddedCommentDescriptor';},_0x33bf8a;}()),_0x2dfa82['CommentsThreadDescriptor']=(function(){function _0x4ed988(_0x3b6ad7){if(this['comments']=[],_0x3b6ad7){for(var _0x42a44a=Object['keys'](_0x3b6ad7),_0x3ee5eb=0x0;_0x3ee5eb<_0x42a44a['length'];++_0x3ee5eb)null!=_0x3b6ad7[_0x42a44a[_0x3ee5eb]]&&(this[_0x42a44a[_0x3ee5eb]]=_0x3b6ad7[_0x42a44a[_0x3ee5eb]]);}}return _0x4ed988['prototype']['commentThreadId']='',_0x4ed988['prototype']['comments']=_0x4a15b3['emptyArray'],_0x4ed988['prototype']['resolvedAt']='',_0x4ed988['prototype']['resolvedBy']='',_0x4ed988['prototype']['context']='',_0x4ed988['prototype']['createdAt']='',_0x4ed988['prototype']['deletedAt']='',_0x4ed988['prototype']['attributes']='',_0x4ed988['prototype']['unlinkedAt']='',_0x4ed988['create']=function(_0x2e902c){return new _0x4ed988(_0x2e902c);},_0x4ed988['encode']=function(_0x3fdc52,_0x438a5f){if(_0x438a5f||(_0x438a5f=_0x278790['create']()),null!=_0x3fdc52['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3fdc52,'commentThreadId')&&_0x438a5f['uint32'](0xa)['string'](_0x3fdc52['commentThreadId']),null!=_0x3fdc52['comments']&&_0x3fdc52['comments']['length']){for(var _0x18fa66=0x0;_0x18fa66<_0x3fdc52['comments']['length'];++_0x18fa66)_0x2dfa82['CommentDescriptor']['encode'](_0x3fdc52['comments'][_0x18fa66],_0x438a5f['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x3fdc52['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3fdc52,'resolvedAt')&&_0x438a5f['uint32'](0x1a)['string'](_0x3fdc52['resolvedAt']),null!=_0x3fdc52['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3fdc52,'resolvedBy')&&_0x438a5f['uint32'](0x22)['string'](_0x3fdc52['resolvedBy']),null!=_0x3fdc52['context']&&Object['hasOwnProperty']['call'](_0x3fdc52,'context')&&_0x438a5f['uint32'](0x2a)['string'](_0x3fdc52['context']),null!=_0x3fdc52['createdAt']&&Object['hasOwnProperty']['call'](_0x3fdc52,'createdAt')&&_0x438a5f['uint32'](0x32)['string'](_0x3fdc52['createdAt']),null!=_0x3fdc52['deletedAt']&&Object['hasOwnProperty']['call'](_0x3fdc52,'deletedAt')&&_0x438a5f['uint32'](0x3a)['string'](_0x3fdc52['deletedAt']),null!=_0x3fdc52['attributes']&&Object['hasOwnProperty']['call'](_0x3fdc52,'attributes')&&_0x438a5f['uint32'](0x42)['string'](_0x3fdc52['attributes']),null!=_0x3fdc52['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x3fdc52,'unlinkedAt')&&_0x438a5f['uint32'](0x4a)['string'](_0x3fdc52['unlinkedAt']),_0x438a5f;},_0x4ed988['encodeDelimited']=function(_0x1fc381,_0x4d3b07){return this['encode'](_0x1fc381,_0x4d3b07)['ldelim']();},_0x4ed988['decode']=function(_0x4923a5,_0x397c02,_0x221af5){_0x4923a5 instanceof _0x150291||(_0x4923a5=_0x150291['create'](_0x4923a5));for(var _0x24b29a=void 0x0===_0x397c02?_0x4923a5['len']:_0x4923a5['pos']+_0x397c02,_0x5971dc=new _0x2dfa82['CommentsThreadDescriptor']();_0x4923a5['pos']<_0x24b29a;){var _0xf54063=_0x4923a5['uint32']();if(_0xf54063===_0x221af5)break;switch(_0xf54063>>>0x3){case 0x1:_0x5971dc['commentThreadId']=_0x4923a5['string']();break;case 0x2:_0x5971dc['comments']&&_0x5971dc['comments']['length']||(_0x5971dc['comments']=[]),_0x5971dc['comments']['push'](_0x2dfa82['CommentDescriptor']['decode'](_0x4923a5,_0x4923a5['uint32']()));break;case 0x3:_0x5971dc['resolvedAt']=_0x4923a5['string']();break;case 0x4:_0x5971dc['resolvedBy']=_0x4923a5['string']();break;case 0x5:_0x5971dc['context']=_0x4923a5['string']();break;case 0x6:_0x5971dc['createdAt']=_0x4923a5['string']();break;case 0x7:_0x5971dc['deletedAt']=_0x4923a5['string']();break;case 0x8:_0x5971dc['attributes']=_0x4923a5['string']();break;case 0x9:_0x5971dc['unlinkedAt']=_0x4923a5['string']();break;default:_0x4923a5['skipType'](0x7&_0xf54063);}}return _0x5971dc;},_0x4ed988['decodeDelimited']=function(_0x48ffa7){return _0x48ffa7 instanceof _0x150291||(_0x48ffa7=new _0x150291(_0x48ffa7)),this['decode'](_0x48ffa7,_0x48ffa7['uint32']());},_0x4ed988['verify']=function(_0x50c853){if('object'!=typeof _0x50c853||null===_0x50c853)return'object\x20expected';if(null!=_0x50c853['commentThreadId']&&_0x50c853['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x50c853['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x50c853['comments']&&_0x50c853['hasOwnProperty']('comments')){if(!Array['isArray'](_0x50c853['comments']))return'comments:\x20array\x20expected';for(var _0x2ee917=0x0;_0x2ee917<_0x50c853['comments']['length'];++_0x2ee917){var _0xe0c99f=_0x2dfa82['CommentDescriptor']['verify'](_0x50c853['comments'][_0x2ee917]);if(_0xe0c99f)return'comments.'+_0xe0c99f;}}return null!=_0x50c853['resolvedAt']&&_0x50c853['hasOwnProperty']('resolvedAt')&&!_0x4a15b3['isString'](_0x50c853['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x50c853['resolvedBy']&&_0x50c853['hasOwnProperty']('resolvedBy')&&!_0x4a15b3['isString'](_0x50c853['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x50c853['context']&&_0x50c853['hasOwnProperty']('context')&&!_0x4a15b3['isString'](_0x50c853['context'])?'context:\x20string\x20expected':null!=_0x50c853['createdAt']&&_0x50c853['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x50c853['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x50c853['deletedAt']&&_0x50c853['hasOwnProperty']('deletedAt')&&!_0x4a15b3['isString'](_0x50c853['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x50c853['attributes']&&_0x50c853['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x50c853['attributes'])?'attributes:\x20string\x20expected':null!=_0x50c853['unlinkedAt']&&_0x50c853['hasOwnProperty']('unlinkedAt')&&!_0x4a15b3['isString'](_0x50c853['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x4ed988['fromObject']=function(_0x22c3c4){if(_0x22c3c4 instanceof _0x2dfa82['CommentsThreadDescriptor'])return _0x22c3c4;var _0x42f071=new _0x2dfa82['CommentsThreadDescriptor']();if(null!=_0x22c3c4['commentThreadId']&&(_0x42f071['commentThreadId']=String(_0x22c3c4['commentThreadId'])),_0x22c3c4['comments']){if(!Array['isArray'](_0x22c3c4['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x42f071['comments']=[];for(var _0x30fb74=0x0;_0x30fb74<_0x22c3c4['comments']['length'];++_0x30fb74){if('object'!=typeof _0x22c3c4['comments'][_0x30fb74])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x42f071['comments'][_0x30fb74]=_0x2dfa82['CommentDescriptor']['fromObject'](_0x22c3c4['comments'][_0x30fb74]);}}return null!=_0x22c3c4['resolvedAt']&&(_0x42f071['resolvedAt']=String(_0x22c3c4['resolvedAt'])),null!=_0x22c3c4['resolvedBy']&&(_0x42f071['resolvedBy']=String(_0x22c3c4['resolvedBy'])),null!=_0x22c3c4['context']&&(_0x42f071['context']=String(_0x22c3c4['context'])),null!=_0x22c3c4['createdAt']&&(_0x42f071['createdAt']=String(_0x22c3c4['createdAt'])),null!=_0x22c3c4['deletedAt']&&(_0x42f071['deletedAt']=String(_0x22c3c4['deletedAt'])),null!=_0x22c3c4['attributes']&&(_0x42f071['attributes']=String(_0x22c3c4['attributes'])),null!=_0x22c3c4['unlinkedAt']&&(_0x42f071['unlinkedAt']=String(_0x22c3c4['unlinkedAt'])),_0x42f071;},_0x4ed988['toObject']=function(_0x26f1ef,_0x41a2f6){_0x41a2f6||(_0x41a2f6={});var _0x41a306={};if((_0x41a2f6['arrays']||_0x41a2f6['defaults'])&&(_0x41a306['comments']=[]),_0x41a2f6['defaults']&&(_0x41a306['commentThreadId']='',_0x41a306['resolvedAt']='',_0x41a306['resolvedBy']='',_0x41a306['context']='',_0x41a306['createdAt']='',_0x41a306['deletedAt']='',_0x41a306['attributes']='',_0x41a306['unlinkedAt']=''),null!=_0x26f1ef['commentThreadId']&&_0x26f1ef['hasOwnProperty']('commentThreadId')&&(_0x41a306['commentThreadId']=_0x26f1ef['commentThreadId']),_0x26f1ef['comments']&&_0x26f1ef['comments']['length']){_0x41a306['comments']=[];for(var _0x1a2328=0x0;_0x1a2328<_0x26f1ef['comments']['length'];++_0x1a2328)_0x41a306['comments'][_0x1a2328]=_0x2dfa82['CommentDescriptor']['toObject'](_0x26f1ef['comments'][_0x1a2328],_0x41a2f6);}return null!=_0x26f1ef['resolvedAt']&&_0x26f1ef['hasOwnProperty']('resolvedAt')&&(_0x41a306['resolvedAt']=_0x26f1ef['resolvedAt']),null!=_0x26f1ef['resolvedBy']&&_0x26f1ef['hasOwnProperty']('resolvedBy')&&(_0x41a306['resolvedBy']=_0x26f1ef['resolvedBy']),null!=_0x26f1ef['context']&&_0x26f1ef['hasOwnProperty']('context')&&(_0x41a306['context']=_0x26f1ef['context']),null!=_0x26f1ef['createdAt']&&_0x26f1ef['hasOwnProperty']('createdAt')&&(_0x41a306['createdAt']=_0x26f1ef['createdAt']),null!=_0x26f1ef['deletedAt']&&_0x26f1ef['hasOwnProperty']('deletedAt')&&(_0x41a306['deletedAt']=_0x26f1ef['deletedAt']),null!=_0x26f1ef['attributes']&&_0x26f1ef['hasOwnProperty']('attributes')&&(_0x41a306['attributes']=_0x26f1ef['attributes']),null!=_0x26f1ef['unlinkedAt']&&_0x26f1ef['hasOwnProperty']('unlinkedAt')&&(_0x41a306['unlinkedAt']=_0x26f1ef['unlinkedAt']),_0x41a306;},_0x4ed988['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4ed988['getTypeUrl']=function(_0x40892d){return void 0x0===_0x40892d&&(_0x40892d='type.googleapis.com'),_0x40892d+'/CommentsThreadDescriptor';},_0x4ed988;}()),_0x2dfa82['CommentDescriptor']=(function(){function _0x53941c(_0x149141){if(_0x149141){for(var _0x308c07=Object['keys'](_0x149141),_0x4a2440=0x0;_0x4a2440<_0x308c07['length'];++_0x4a2440)null!=_0x149141[_0x308c07[_0x4a2440]]&&(this[_0x308c07[_0x4a2440]]=_0x149141[_0x308c07[_0x4a2440]]);}}return _0x53941c['prototype']['commentId']='',_0x53941c['prototype']['commentThreadId']='',_0x53941c['prototype']['userId']='',_0x53941c['prototype']['content']='',_0x53941c['prototype']['documentId']='',_0x53941c['prototype']['createdAt']='',_0x53941c['prototype']['attributes']='',_0x53941c['create']=function(_0x531ad8){return new _0x53941c(_0x531ad8);},_0x53941c['encode']=function(_0x3008e2,_0x1c322e){return _0x1c322e||(_0x1c322e=_0x278790['create']()),null!=_0x3008e2['commentId']&&Object['hasOwnProperty']['call'](_0x3008e2,'commentId')&&_0x1c322e['uint32'](0xa)['string'](_0x3008e2['commentId']),null!=_0x3008e2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3008e2,'commentThreadId')&&_0x1c322e['uint32'](0x12)['string'](_0x3008e2['commentThreadId']),null!=_0x3008e2['userId']&&Object['hasOwnProperty']['call'](_0x3008e2,'userId')&&_0x1c322e['uint32'](0x1a)['string'](_0x3008e2['userId']),null!=_0x3008e2['content']&&Object['hasOwnProperty']['call'](_0x3008e2,'content')&&_0x1c322e['uint32'](0x22)['string'](_0x3008e2['content']),null!=_0x3008e2['documentId']&&Object['hasOwnProperty']['call'](_0x3008e2,'documentId')&&_0x1c322e['uint32'](0x2a)['string'](_0x3008e2['documentId']),null!=_0x3008e2['createdAt']&&Object['hasOwnProperty']['call'](_0x3008e2,'createdAt')&&_0x1c322e['uint32'](0x32)['string'](_0x3008e2['createdAt']),null!=_0x3008e2['attributes']&&Object['hasOwnProperty']['call'](_0x3008e2,'attributes')&&_0x1c322e['uint32'](0x3a)['string'](_0x3008e2['attributes']),_0x1c322e;},_0x53941c['encodeDelimited']=function(_0x4ba879,_0x5611d1){return this['encode'](_0x4ba879,_0x5611d1)['ldelim']();},_0x53941c['decode']=function(_0x168439,_0x2617e9,_0x203778){_0x168439 instanceof _0x150291||(_0x168439=_0x150291['create'](_0x168439));for(var _0x174e7f=void 0x0===_0x2617e9?_0x168439['len']:_0x168439['pos']+_0x2617e9,_0x55954d=new _0x2dfa82['CommentDescriptor']();_0x168439['pos']<_0x174e7f;){var _0x3d45f8=_0x168439['uint32']();if(_0x3d45f8===_0x203778)break;switch(_0x3d45f8>>>0x3){case 0x1:_0x55954d['commentId']=_0x168439['string']();break;case 0x2:_0x55954d['commentThreadId']=_0x168439['string']();break;case 0x3:_0x55954d['userId']=_0x168439['string']();break;case 0x4:_0x55954d['content']=_0x168439['string']();break;case 0x5:_0x55954d['documentId']=_0x168439['string']();break;case 0x6:_0x55954d['createdAt']=_0x168439['string']();break;case 0x7:_0x55954d['attributes']=_0x168439['string']();break;default:_0x168439['skipType'](0x7&_0x3d45f8);}}return _0x55954d;},_0x53941c['decodeDelimited']=function(_0x507f47){return _0x507f47 instanceof _0x150291||(_0x507f47=new _0x150291(_0x507f47)),this['decode'](_0x507f47,_0x507f47['uint32']());},_0x53941c['verify']=function(_0x5b33d8){return'object'!=typeof _0x5b33d8||null===_0x5b33d8?'object\x20expected':null!=_0x5b33d8['commentId']&&_0x5b33d8['hasOwnProperty']('commentId')&&!_0x4a15b3['isString'](_0x5b33d8['commentId'])?'commentId:\x20string\x20expected':null!=_0x5b33d8['commentThreadId']&&_0x5b33d8['hasOwnProperty']('commentThreadId')&&!_0x4a15b3['isString'](_0x5b33d8['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5b33d8['userId']&&_0x5b33d8['hasOwnProperty']('userId')&&!_0x4a15b3['isString'](_0x5b33d8['userId'])?'userId:\x20string\x20expected':null!=_0x5b33d8['content']&&_0x5b33d8['hasOwnProperty']('content')&&!_0x4a15b3['isString'](_0x5b33d8['content'])?'content:\x20string\x20expected':null!=_0x5b33d8['documentId']&&_0x5b33d8['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0x5b33d8['documentId'])?'documentId:\x20string\x20expected':null!=_0x5b33d8['createdAt']&&_0x5b33d8['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x5b33d8['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5b33d8['attributes']&&_0x5b33d8['hasOwnProperty']('attributes')&&!_0x4a15b3['isString'](_0x5b33d8['attributes'])?'attributes:\x20string\x20expected':null;},_0x53941c['fromObject']=function(_0x55bba9){if(_0x55bba9 instanceof _0x2dfa82['CommentDescriptor'])return _0x55bba9;var _0x3863d3=new _0x2dfa82['CommentDescriptor']();return null!=_0x55bba9['commentId']&&(_0x3863d3['commentId']=String(_0x55bba9['commentId'])),null!=_0x55bba9['commentThreadId']&&(_0x3863d3['commentThreadId']=String(_0x55bba9['commentThreadId'])),null!=_0x55bba9['userId']&&(_0x3863d3['userId']=String(_0x55bba9['userId'])),null!=_0x55bba9['content']&&(_0x3863d3['content']=String(_0x55bba9['content'])),null!=_0x55bba9['documentId']&&(_0x3863d3['documentId']=String(_0x55bba9['documentId'])),null!=_0x55bba9['createdAt']&&(_0x3863d3['createdAt']=String(_0x55bba9['createdAt'])),null!=_0x55bba9['attributes']&&(_0x3863d3['attributes']=String(_0x55bba9['attributes'])),_0x3863d3;},_0x53941c['toObject']=function(_0xa5c4ed,_0x342ebd){_0x342ebd||(_0x342ebd={});var _0x25705c={};return _0x342ebd['defaults']&&(_0x25705c['commentId']='',_0x25705c['commentThreadId']='',_0x25705c['userId']='',_0x25705c['content']='',_0x25705c['documentId']='',_0x25705c['createdAt']='',_0x25705c['attributes']=''),null!=_0xa5c4ed['commentId']&&_0xa5c4ed['hasOwnProperty']('commentId')&&(_0x25705c['commentId']=_0xa5c4ed['commentId']),null!=_0xa5c4ed['commentThreadId']&&_0xa5c4ed['hasOwnProperty']('commentThreadId')&&(_0x25705c['commentThreadId']=_0xa5c4ed['commentThreadId']),null!=_0xa5c4ed['userId']&&_0xa5c4ed['hasOwnProperty']('userId')&&(_0x25705c['userId']=_0xa5c4ed['userId']),null!=_0xa5c4ed['content']&&_0xa5c4ed['hasOwnProperty']('content')&&(_0x25705c['content']=_0xa5c4ed['content']),null!=_0xa5c4ed['documentId']&&_0xa5c4ed['hasOwnProperty']('documentId')&&(_0x25705c['documentId']=_0xa5c4ed['documentId']),null!=_0xa5c4ed['createdAt']&&_0xa5c4ed['hasOwnProperty']('createdAt')&&(_0x25705c['createdAt']=_0xa5c4ed['createdAt']),null!=_0xa5c4ed['attributes']&&_0xa5c4ed['hasOwnProperty']('attributes')&&(_0x25705c['attributes']=_0xa5c4ed['attributes']),_0x25705c;},_0x53941c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53941c['getTypeUrl']=function(_0x36f76d){return void 0x0===_0x36f76d&&(_0x36f76d='type.googleapis.com'),_0x36f76d+'/CommentDescriptor';},_0x53941c;}()),_0x2dfa82['GetDocumentDetailsResponse']=(function(){function _0x4b25f4(_0x2d3c3c){if(_0x2d3c3c){for(var _0x1cf20e=Object['keys'](_0x2d3c3c),_0x35f24e=0x0;_0x35f24e<_0x1cf20e['length'];++_0x35f24e)null!=_0x2d3c3c[_0x1cf20e[_0x35f24e]]&&(this[_0x1cf20e[_0x35f24e]]=_0x2d3c3c[_0x1cf20e[_0x35f24e]]);}}return _0x4b25f4['prototype']['lastDocumentSessionId']='',_0x4b25f4['prototype']['lastDocumentSessionOperationId']='',_0x4b25f4['prototype']['currentDocumentSessionId']='',_0x4b25f4['prototype']['currentDocumentSessionVersion']=0x0,_0x4b25f4['prototype']['currentDocumentSessionOperationId']='',_0x4b25f4['create']=function(_0x513fea){return new _0x4b25f4(_0x513fea);},_0x4b25f4['encode']=function(_0x460581,_0x288f7c){return _0x288f7c||(_0x288f7c=_0x278790['create']()),null!=_0x460581['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x460581,'lastDocumentSessionId')&&_0x288f7c['uint32'](0xa)['string'](_0x460581['lastDocumentSessionId']),null!=_0x460581['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x460581,'lastDocumentSessionOperationId')&&_0x288f7c['uint32'](0x12)['string'](_0x460581['lastDocumentSessionOperationId']),null!=_0x460581['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x460581,'currentDocumentSessionId')&&_0x288f7c['uint32'](0x1a)['string'](_0x460581['currentDocumentSessionId']),null!=_0x460581['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x460581,'currentDocumentSessionVersion')&&_0x288f7c['uint32'](0x20)['uint32'](_0x460581['currentDocumentSessionVersion']),null!=_0x460581['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x460581,'currentDocumentSessionOperationId')&&_0x288f7c['uint32'](0x2a)['string'](_0x460581['currentDocumentSessionOperationId']),_0x288f7c;},_0x4b25f4['encodeDelimited']=function(_0x3de719,_0xfb3366){return this['encode'](_0x3de719,_0xfb3366)['ldelim']();},_0x4b25f4['decode']=function(_0x4af86d,_0x1b0a6b,_0x9d85e9){_0x4af86d instanceof _0x150291||(_0x4af86d=_0x150291['create'](_0x4af86d));for(var _0x339645=void 0x0===_0x1b0a6b?_0x4af86d['len']:_0x4af86d['pos']+_0x1b0a6b,_0x4a27aa=new _0x2dfa82['GetDocumentDetailsResponse']();_0x4af86d['pos']<_0x339645;){var _0xe023a2=_0x4af86d['uint32']();if(_0xe023a2===_0x9d85e9)break;switch(_0xe023a2>>>0x3){case 0x1:_0x4a27aa['lastDocumentSessionId']=_0x4af86d['string']();break;case 0x2:_0x4a27aa['lastDocumentSessionOperationId']=_0x4af86d['string']();break;case 0x3:_0x4a27aa['currentDocumentSessionId']=_0x4af86d['string']();break;case 0x4:_0x4a27aa['currentDocumentSessionVersion']=_0x4af86d['uint32']();break;case 0x5:_0x4a27aa['currentDocumentSessionOperationId']=_0x4af86d['string']();break;default:_0x4af86d['skipType'](0x7&_0xe023a2);}}return _0x4a27aa;},_0x4b25f4['decodeDelimited']=function(_0x261c59){return _0x261c59 instanceof _0x150291||(_0x261c59=new _0x150291(_0x261c59)),this['decode'](_0x261c59,_0x261c59['uint32']());},_0x4b25f4['verify']=function(_0x3af658){return'object'!=typeof _0x3af658||null===_0x3af658?'object\x20expected':null!=_0x3af658['lastDocumentSessionId']&&_0x3af658['hasOwnProperty']('lastDocumentSessionId')&&!_0x4a15b3['isString'](_0x3af658['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x3af658['lastDocumentSessionOperationId']&&_0x3af658['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x4a15b3['isString'](_0x3af658['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x3af658['currentDocumentSessionId']&&_0x3af658['hasOwnProperty']('currentDocumentSessionId')&&!_0x4a15b3['isString'](_0x3af658['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x3af658['currentDocumentSessionVersion']&&_0x3af658['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x4a15b3['isInteger'](_0x3af658['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x3af658['currentDocumentSessionOperationId']&&_0x3af658['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x4a15b3['isString'](_0x3af658['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0x4b25f4['fromObject']=function(_0x2b7223){if(_0x2b7223 instanceof _0x2dfa82['GetDocumentDetailsResponse'])return _0x2b7223;var _0xe414f8=new _0x2dfa82['GetDocumentDetailsResponse']();return null!=_0x2b7223['lastDocumentSessionId']&&(_0xe414f8['lastDocumentSessionId']=String(_0x2b7223['lastDocumentSessionId'])),null!=_0x2b7223['lastDocumentSessionOperationId']&&(_0xe414f8['lastDocumentSessionOperationId']=String(_0x2b7223['lastDocumentSessionOperationId'])),null!=_0x2b7223['currentDocumentSessionId']&&(_0xe414f8['currentDocumentSessionId']=String(_0x2b7223['currentDocumentSessionId'])),null!=_0x2b7223['currentDocumentSessionVersion']&&(_0xe414f8['currentDocumentSessionVersion']=_0x2b7223['currentDocumentSessionVersion']>>>0x0),null!=_0x2b7223['currentDocumentSessionOperationId']&&(_0xe414f8['currentDocumentSessionOperationId']=String(_0x2b7223['currentDocumentSessionOperationId'])),_0xe414f8;},_0x4b25f4['toObject']=function(_0x5d6004,_0x4f20fe){_0x4f20fe||(_0x4f20fe={});var _0xacac0c={};return _0x4f20fe['defaults']&&(_0xacac0c['lastDocumentSessionId']='',_0xacac0c['lastDocumentSessionOperationId']='',_0xacac0c['currentDocumentSessionId']='',_0xacac0c['currentDocumentSessionVersion']=0x0,_0xacac0c['currentDocumentSessionOperationId']=''),null!=_0x5d6004['lastDocumentSessionId']&&_0x5d6004['hasOwnProperty']('lastDocumentSessionId')&&(_0xacac0c['lastDocumentSessionId']=_0x5d6004['lastDocumentSessionId']),null!=_0x5d6004['lastDocumentSessionOperationId']&&_0x5d6004['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0xacac0c['lastDocumentSessionOperationId']=_0x5d6004['lastDocumentSessionOperationId']),null!=_0x5d6004['currentDocumentSessionId']&&_0x5d6004['hasOwnProperty']('currentDocumentSessionId')&&(_0xacac0c['currentDocumentSessionId']=_0x5d6004['currentDocumentSessionId']),null!=_0x5d6004['currentDocumentSessionVersion']&&_0x5d6004['hasOwnProperty']('currentDocumentSessionVersion')&&(_0xacac0c['currentDocumentSessionVersion']=_0x5d6004['currentDocumentSessionVersion']),null!=_0x5d6004['currentDocumentSessionOperationId']&&_0x5d6004['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0xacac0c['currentDocumentSessionOperationId']=_0x5d6004['currentDocumentSessionOperationId']),_0xacac0c;},_0x4b25f4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4b25f4['getTypeUrl']=function(_0x165331){return void 0x0===_0x165331&&(_0x165331='type.googleapis.com'),_0x165331+'/GetDocumentDetailsResponse';},_0x4b25f4;}()),_0x2dfa82['CollaborativeEditingResponse']=(function(){function _0x531af4(_0x375647){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x375647){for(var _0x263232=Object['keys'](_0x375647),_0x4afb5a=0x0;_0x4afb5a<_0x263232['length'];++_0x4afb5a)null!=_0x375647[_0x263232[_0x4afb5a]]&&(this[_0x263232[_0x4afb5a]]=_0x375647[_0x263232[_0x4afb5a]]);}}return _0x531af4['prototype']['version']=0x0,_0x531af4['prototype']['buffers']=_0x4a15b3['emptyArray'],_0x531af4['prototype']['types']=_0x4a15b3['emptyArray'],_0x531af4['prototype']['metadata']=_0x4a15b3['emptyArray'],_0x531af4['prototype']['lastOperationId']='',_0x531af4['prototype']['lastOperationAcceptedAt']='',_0x531af4['create']=function(_0x175382){return new _0x531af4(_0x175382);},_0x531af4['encode']=function(_0x14ce5d,_0x37414c){if(_0x37414c||(_0x37414c=_0x278790['create']()),null!=_0x14ce5d['version']&&Object['hasOwnProperty']['call'](_0x14ce5d,'version')&&_0x37414c['uint32'](0x8)['uint32'](_0x14ce5d['version']),null!=_0x14ce5d['buffers']&&_0x14ce5d['buffers']['length']){for(var _0x3da5a4=0x0;_0x3da5a4<_0x14ce5d['buffers']['length'];++_0x3da5a4)_0x37414c['uint32'](0x12)['bytes'](_0x14ce5d['buffers'][_0x3da5a4]);}if(null!=_0x14ce5d['types']&&_0x14ce5d['types']['length']){for(_0x37414c['uint32'](0x1a)['fork'](),_0x3da5a4=0x0;_0x3da5a4<_0x14ce5d['types']['length'];++_0x3da5a4)_0x37414c['uint32'](_0x14ce5d['types'][_0x3da5a4]);_0x37414c['ldelim']();}if(null!=_0x14ce5d['metadata']&&_0x14ce5d['metadata']['length']){for(_0x3da5a4=0x0;_0x3da5a4<_0x14ce5d['metadata']['length'];++_0x3da5a4)_0x2dfa82['OperationMetadataDescriptor']['encode'](_0x14ce5d['metadata'][_0x3da5a4],_0x37414c['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x14ce5d['lastOperationId']&&Object['hasOwnProperty']['call'](_0x14ce5d,'lastOperationId')&&_0x37414c['uint32'](0x32)['string'](_0x14ce5d['lastOperationId']),null!=_0x14ce5d['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x14ce5d,'lastOperationAcceptedAt')&&_0x37414c['uint32'](0x3a)['string'](_0x14ce5d['lastOperationAcceptedAt']),_0x37414c;},_0x531af4['encodeDelimited']=function(_0xc86f00,_0x105052){return this['encode'](_0xc86f00,_0x105052)['ldelim']();},_0x531af4['decode']=function(_0x430e66,_0x3232c6,_0x19fd29){_0x430e66 instanceof _0x150291||(_0x430e66=_0x150291['create'](_0x430e66));for(var _0x27acf0=void 0x0===_0x3232c6?_0x430e66['len']:_0x430e66['pos']+_0x3232c6,_0x3774d7=new _0x2dfa82['CollaborativeEditingResponse']();_0x430e66['pos']<_0x27acf0;){var _0x4e7cea=_0x430e66['uint32']();if(_0x4e7cea===_0x19fd29)break;switch(_0x4e7cea>>>0x3){case 0x1:_0x3774d7['version']=_0x430e66['uint32']();break;case 0x2:_0x3774d7['buffers']&&_0x3774d7['buffers']['length']||(_0x3774d7['buffers']=[]),_0x3774d7['buffers']['push'](_0x430e66['bytes']());break;case 0x3:if(_0x3774d7['types']&&_0x3774d7['types']['length']||(_0x3774d7['types']=[]),0x2==(0x7&_0x4e7cea)){for(var _0x55b745=_0x430e66['uint32']()+_0x430e66['pos'];_0x430e66['pos']<_0x55b745;)_0x3774d7['types']['push'](_0x430e66['uint32']());}else _0x3774d7['types']['push'](_0x430e66['uint32']());break;case 0x5:_0x3774d7['metadata']&&_0x3774d7['metadata']['length']||(_0x3774d7['metadata']=[]),_0x3774d7['metadata']['push'](_0x2dfa82['OperationMetadataDescriptor']['decode'](_0x430e66,_0x430e66['uint32']()));break;case 0x6:_0x3774d7['lastOperationId']=_0x430e66['string']();break;case 0x7:_0x3774d7['lastOperationAcceptedAt']=_0x430e66['string']();break;default:_0x430e66['skipType'](0x7&_0x4e7cea);}}return _0x3774d7;},_0x531af4['decodeDelimited']=function(_0x51cc7d){return _0x51cc7d instanceof _0x150291||(_0x51cc7d=new _0x150291(_0x51cc7d)),this['decode'](_0x51cc7d,_0x51cc7d['uint32']());},_0x531af4['verify']=function(_0x5bafba){if('object'!=typeof _0x5bafba||null===_0x5bafba)return'object\x20expected';if(null!=_0x5bafba['version']&&_0x5bafba['hasOwnProperty']('version')&&!_0x4a15b3['isInteger'](_0x5bafba['version']))return'version:\x20integer\x20expected';if(null!=_0x5bafba['buffers']&&_0x5bafba['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x5bafba['buffers']))return'buffers:\x20array\x20expected';for(var _0x17bcce=0x0;_0x17bcce<_0x5bafba['buffers']['length'];++_0x17bcce)if(!(_0x5bafba['buffers'][_0x17bcce]&&'number'==typeof _0x5bafba['buffers'][_0x17bcce]['length']||_0x4a15b3['isString'](_0x5bafba['buffers'][_0x17bcce])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x5bafba['types']&&_0x5bafba['hasOwnProperty']('types')){if(!Array['isArray'](_0x5bafba['types']))return'types:\x20array\x20expected';for(_0x17bcce=0x0;_0x17bcce<_0x5bafba['types']['length'];++_0x17bcce)if(!_0x4a15b3['isInteger'](_0x5bafba['types'][_0x17bcce]))return'types:\x20integer[]\x20expected';}if(null!=_0x5bafba['metadata']&&_0x5bafba['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x5bafba['metadata']))return'metadata:\x20array\x20expected';for(_0x17bcce=0x0;_0x17bcce<_0x5bafba['metadata']['length'];++_0x17bcce){var _0x379b47=_0x2dfa82['OperationMetadataDescriptor']['verify'](_0x5bafba['metadata'][_0x17bcce]);if(_0x379b47)return'metadata.'+_0x379b47;}}return null!=_0x5bafba['lastOperationId']&&_0x5bafba['hasOwnProperty']('lastOperationId')&&!_0x4a15b3['isString'](_0x5bafba['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x5bafba['lastOperationAcceptedAt']&&_0x5bafba['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x4a15b3['isString'](_0x5bafba['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x531af4['fromObject']=function(_0x2b828d){if(_0x2b828d instanceof _0x2dfa82['CollaborativeEditingResponse'])return _0x2b828d;var _0xfd5d3a=new _0x2dfa82['CollaborativeEditingResponse']();if(null!=_0x2b828d['version']&&(_0xfd5d3a['version']=_0x2b828d['version']>>>0x0),_0x2b828d['buffers']){if(!Array['isArray'](_0x2b828d['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0xfd5d3a['buffers']=[];for(var _0x3e296e=0x0;_0x3e296e<_0x2b828d['buffers']['length'];++_0x3e296e)'string'==typeof _0x2b828d['buffers'][_0x3e296e]?_0x4a15b3['base64']['decode'](_0x2b828d['buffers'][_0x3e296e],_0xfd5d3a['buffers'][_0x3e296e]=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x2b828d['buffers'][_0x3e296e])),0x0):_0x2b828d['buffers'][_0x3e296e]['length']>=0x0&&(_0xfd5d3a['buffers'][_0x3e296e]=_0x2b828d['buffers'][_0x3e296e]);}if(_0x2b828d['types']){if(!Array['isArray'](_0x2b828d['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0xfd5d3a['types']=[],_0x3e296e=0x0;_0x3e296e<_0x2b828d['types']['length'];++_0x3e296e)_0xfd5d3a['types'][_0x3e296e]=_0x2b828d['types'][_0x3e296e]>>>0x0;}if(_0x2b828d['metadata']){if(!Array['isArray'](_0x2b828d['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0xfd5d3a['metadata']=[],_0x3e296e=0x0;_0x3e296e<_0x2b828d['metadata']['length'];++_0x3e296e){if('object'!=typeof _0x2b828d['metadata'][_0x3e296e])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0xfd5d3a['metadata'][_0x3e296e]=_0x2dfa82['OperationMetadataDescriptor']['fromObject'](_0x2b828d['metadata'][_0x3e296e]);}}return null!=_0x2b828d['lastOperationId']&&(_0xfd5d3a['lastOperationId']=String(_0x2b828d['lastOperationId'])),null!=_0x2b828d['lastOperationAcceptedAt']&&(_0xfd5d3a['lastOperationAcceptedAt']=String(_0x2b828d['lastOperationAcceptedAt'])),_0xfd5d3a;},_0x531af4['toObject']=function(_0x323664,_0x4d0140){_0x4d0140||(_0x4d0140={});var _0x374c09={};if((_0x4d0140['arrays']||_0x4d0140['defaults'])&&(_0x374c09['buffers']=[],_0x374c09['types']=[],_0x374c09['metadata']=[]),_0x4d0140['defaults']&&(_0x374c09['version']=0x0,_0x374c09['lastOperationId']='',_0x374c09['lastOperationAcceptedAt']=''),null!=_0x323664['version']&&_0x323664['hasOwnProperty']('version')&&(_0x374c09['version']=_0x323664['version']),_0x323664['buffers']&&_0x323664['buffers']['length']){_0x374c09['buffers']=[];for(var _0x11d7d0=0x0;_0x11d7d0<_0x323664['buffers']['length'];++_0x11d7d0)_0x374c09['buffers'][_0x11d7d0]=_0x4d0140['bytes']===String?_0x4a15b3['base64']['encode'](_0x323664['buffers'][_0x11d7d0],0x0,_0x323664['buffers'][_0x11d7d0]['length']):_0x4d0140['bytes']===Array?Array['prototype']['slice']['call'](_0x323664['buffers'][_0x11d7d0]):_0x323664['buffers'][_0x11d7d0];}if(_0x323664['types']&&_0x323664['types']['length']){for(_0x374c09['types']=[],_0x11d7d0=0x0;_0x11d7d0<_0x323664['types']['length'];++_0x11d7d0)_0x374c09['types'][_0x11d7d0]=_0x323664['types'][_0x11d7d0];}if(_0x323664['metadata']&&_0x323664['metadata']['length']){for(_0x374c09['metadata']=[],_0x11d7d0=0x0;_0x11d7d0<_0x323664['metadata']['length'];++_0x11d7d0)_0x374c09['metadata'][_0x11d7d0]=_0x2dfa82['OperationMetadataDescriptor']['toObject'](_0x323664['metadata'][_0x11d7d0],_0x4d0140);}return null!=_0x323664['lastOperationId']&&_0x323664['hasOwnProperty']('lastOperationId')&&(_0x374c09['lastOperationId']=_0x323664['lastOperationId']),null!=_0x323664['lastOperationAcceptedAt']&&_0x323664['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x374c09['lastOperationAcceptedAt']=_0x323664['lastOperationAcceptedAt']),_0x374c09;},_0x531af4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x531af4['getTypeUrl']=function(_0x1ead95){return void 0x0===_0x1ead95&&(_0x1ead95='type.googleapis.com'),_0x1ead95+'/CollaborativeEditingResponse';},_0x531af4;}()),_0x2dfa82['CollaborativeEditingConnectResponse']=(function(){function _0x1aa968(_0x536ebe){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x536ebe){for(var _0x6115fa=Object['keys'](_0x536ebe),_0x4a99cb=0x0;_0x4a99cb<_0x6115fa['length'];++_0x4a99cb)null!=_0x536ebe[_0x6115fa[_0x4a99cb]]&&(this[_0x6115fa[_0x4a99cb]]=_0x536ebe[_0x6115fa[_0x4a99cb]]);}}return _0x1aa968['prototype']['channel']='',_0x1aa968['prototype']['offset']=0x0,_0x1aa968['prototype']['version']=0x0,_0x1aa968['prototype']['buffers']=_0x4a15b3['emptyArray'],_0x1aa968['prototype']['types']=_0x4a15b3['emptyArray'],_0x1aa968['prototype']['metadata']=_0x4a15b3['emptyArray'],_0x1aa968['prototype']['initData']='',_0x1aa968['prototype']['isInitialized']=!0x1,_0x1aa968['prototype']['sessionId']='',_0x1aa968['prototype']['lastOperationId']='',_0x1aa968['prototype']['sessionCreatedAt']='',_0x1aa968['create']=function(_0x45389){return new _0x1aa968(_0x45389);},_0x1aa968['encode']=function(_0x5e3cac,_0x14ae58){if(_0x14ae58||(_0x14ae58=_0x278790['create']()),null!=_0x5e3cac['channel']&&Object['hasOwnProperty']['call'](_0x5e3cac,'channel')&&_0x14ae58['uint32'](0xa)['string'](_0x5e3cac['channel']),null!=_0x5e3cac['offset']&&Object['hasOwnProperty']['call'](_0x5e3cac,'offset')&&_0x14ae58['uint32'](0x10)['uint32'](_0x5e3cac['offset']),null!=_0x5e3cac['version']&&Object['hasOwnProperty']['call'](_0x5e3cac,'version')&&_0x14ae58['uint32'](0x18)['uint32'](_0x5e3cac['version']),null!=_0x5e3cac['buffers']&&_0x5e3cac['buffers']['length']){for(var _0x402f68=0x0;_0x402f68<_0x5e3cac['buffers']['length'];++_0x402f68)_0x14ae58['uint32'](0x22)['bytes'](_0x5e3cac['buffers'][_0x402f68]);}if(null!=_0x5e3cac['types']&&_0x5e3cac['types']['length']){for(_0x14ae58['uint32'](0x2a)['fork'](),_0x402f68=0x0;_0x402f68<_0x5e3cac['types']['length'];++_0x402f68)_0x14ae58['uint32'](_0x5e3cac['types'][_0x402f68]);_0x14ae58['ldelim']();}if(null!=_0x5e3cac['metadata']&&_0x5e3cac['metadata']['length']){for(_0x402f68=0x0;_0x402f68<_0x5e3cac['metadata']['length'];++_0x402f68)_0x2dfa82['OperationMetadataDescriptor']['encode'](_0x5e3cac['metadata'][_0x402f68],_0x14ae58['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x5e3cac['initData']&&Object['hasOwnProperty']['call'](_0x5e3cac,'initData')&&_0x14ae58['uint32'](0x42)['string'](_0x5e3cac['initData']),null!=_0x5e3cac['isInitialized']&&Object['hasOwnProperty']['call'](_0x5e3cac,'isInitialized')&&_0x14ae58['uint32'](0x48)['bool'](_0x5e3cac['isInitialized']),null!=_0x5e3cac['sessionId']&&Object['hasOwnProperty']['call'](_0x5e3cac,'sessionId')&&_0x14ae58['uint32'](0x52)['string'](_0x5e3cac['sessionId']),null!=_0x5e3cac['lastOperationId']&&Object['hasOwnProperty']['call'](_0x5e3cac,'lastOperationId')&&_0x14ae58['uint32'](0x5a)['string'](_0x5e3cac['lastOperationId']),null!=_0x5e3cac['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x5e3cac,'sessionCreatedAt')&&_0x14ae58['uint32'](0x62)['string'](_0x5e3cac['sessionCreatedAt']),_0x14ae58;},_0x1aa968['encodeDelimited']=function(_0x52416a,_0x2fba31){return this['encode'](_0x52416a,_0x2fba31)['ldelim']();},_0x1aa968['decode']=function(_0x3ce672,_0x755657,_0x30bc81){_0x3ce672 instanceof _0x150291||(_0x3ce672=_0x150291['create'](_0x3ce672));for(var _0x7d0028=void 0x0===_0x755657?_0x3ce672['len']:_0x3ce672['pos']+_0x755657,_0x50c5c2=new _0x2dfa82['CollaborativeEditingConnectResponse']();_0x3ce672['pos']<_0x7d0028;){var _0xd81a21=_0x3ce672['uint32']();if(_0xd81a21===_0x30bc81)break;switch(_0xd81a21>>>0x3){case 0x1:_0x50c5c2['channel']=_0x3ce672['string']();break;case 0x2:_0x50c5c2['offset']=_0x3ce672['uint32']();break;case 0x3:_0x50c5c2['version']=_0x3ce672['uint32']();break;case 0x4:_0x50c5c2['buffers']&&_0x50c5c2['buffers']['length']||(_0x50c5c2['buffers']=[]),_0x50c5c2['buffers']['push'](_0x3ce672['bytes']());break;case 0x5:if(_0x50c5c2['types']&&_0x50c5c2['types']['length']||(_0x50c5c2['types']=[]),0x2==(0x7&_0xd81a21)){for(var _0x9f14c3=_0x3ce672['uint32']()+_0x3ce672['pos'];_0x3ce672['pos']<_0x9f14c3;)_0x50c5c2['types']['push'](_0x3ce672['uint32']());}else _0x50c5c2['types']['push'](_0x3ce672['uint32']());break;case 0x7:_0x50c5c2['metadata']&&_0x50c5c2['metadata']['length']||(_0x50c5c2['metadata']=[]),_0x50c5c2['metadata']['push'](_0x2dfa82['OperationMetadataDescriptor']['decode'](_0x3ce672,_0x3ce672['uint32']()));break;case 0x8:_0x50c5c2['initData']=_0x3ce672['string']();break;case 0x9:_0x50c5c2['isInitialized']=_0x3ce672['bool']();break;case 0xa:_0x50c5c2['sessionId']=_0x3ce672['string']();break;case 0xb:_0x50c5c2['lastOperationId']=_0x3ce672['string']();break;case 0xc:_0x50c5c2['sessionCreatedAt']=_0x3ce672['string']();break;default:_0x3ce672['skipType'](0x7&_0xd81a21);}}return _0x50c5c2;},_0x1aa968['decodeDelimited']=function(_0x6f8b02){return _0x6f8b02 instanceof _0x150291||(_0x6f8b02=new _0x150291(_0x6f8b02)),this['decode'](_0x6f8b02,_0x6f8b02['uint32']());},_0x1aa968['verify']=function(_0x3dfc2d){if('object'!=typeof _0x3dfc2d||null===_0x3dfc2d)return'object\x20expected';if(null!=_0x3dfc2d['channel']&&_0x3dfc2d['hasOwnProperty']('channel')&&!_0x4a15b3['isString'](_0x3dfc2d['channel']))return'channel:\x20string\x20expected';if(null!=_0x3dfc2d['offset']&&_0x3dfc2d['hasOwnProperty']('offset')&&!_0x4a15b3['isInteger'](_0x3dfc2d['offset']))return'offset:\x20integer\x20expected';if(null!=_0x3dfc2d['version']&&_0x3dfc2d['hasOwnProperty']('version')&&!_0x4a15b3['isInteger'](_0x3dfc2d['version']))return'version:\x20integer\x20expected';if(null!=_0x3dfc2d['buffers']&&_0x3dfc2d['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x3dfc2d['buffers']))return'buffers:\x20array\x20expected';for(var _0xae6659=0x0;_0xae6659<_0x3dfc2d['buffers']['length'];++_0xae6659)if(!(_0x3dfc2d['buffers'][_0xae6659]&&'number'==typeof _0x3dfc2d['buffers'][_0xae6659]['length']||_0x4a15b3['isString'](_0x3dfc2d['buffers'][_0xae6659])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x3dfc2d['types']&&_0x3dfc2d['hasOwnProperty']('types')){if(!Array['isArray'](_0x3dfc2d['types']))return'types:\x20array\x20expected';for(_0xae6659=0x0;_0xae6659<_0x3dfc2d['types']['length'];++_0xae6659)if(!_0x4a15b3['isInteger'](_0x3dfc2d['types'][_0xae6659]))return'types:\x20integer[]\x20expected';}if(null!=_0x3dfc2d['metadata']&&_0x3dfc2d['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x3dfc2d['metadata']))return'metadata:\x20array\x20expected';for(_0xae6659=0x0;_0xae6659<_0x3dfc2d['metadata']['length'];++_0xae6659){var _0x56b5dd=_0x2dfa82['OperationMetadataDescriptor']['verify'](_0x3dfc2d['metadata'][_0xae6659]);if(_0x56b5dd)return'metadata.'+_0x56b5dd;}}return null!=_0x3dfc2d['initData']&&_0x3dfc2d['hasOwnProperty']('initData')&&!_0x4a15b3['isString'](_0x3dfc2d['initData'])?'initData:\x20string\x20expected':null!=_0x3dfc2d['isInitialized']&&_0x3dfc2d['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x3dfc2d['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x3dfc2d['sessionId']&&_0x3dfc2d['hasOwnProperty']('sessionId')&&!_0x4a15b3['isString'](_0x3dfc2d['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x3dfc2d['lastOperationId']&&_0x3dfc2d['hasOwnProperty']('lastOperationId')&&!_0x4a15b3['isString'](_0x3dfc2d['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x3dfc2d['sessionCreatedAt']&&_0x3dfc2d['hasOwnProperty']('sessionCreatedAt')&&!_0x4a15b3['isString'](_0x3dfc2d['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x1aa968['fromObject']=function(_0x9c5bf){if(_0x9c5bf instanceof _0x2dfa82['CollaborativeEditingConnectResponse'])return _0x9c5bf;var _0x1e65b5=new _0x2dfa82['CollaborativeEditingConnectResponse']();if(null!=_0x9c5bf['channel']&&(_0x1e65b5['channel']=String(_0x9c5bf['channel'])),null!=_0x9c5bf['offset']&&(_0x1e65b5['offset']=_0x9c5bf['offset']>>>0x0),null!=_0x9c5bf['version']&&(_0x1e65b5['version']=_0x9c5bf['version']>>>0x0),_0x9c5bf['buffers']){if(!Array['isArray'](_0x9c5bf['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x1e65b5['buffers']=[];for(var _0x57fefb=0x0;_0x57fefb<_0x9c5bf['buffers']['length'];++_0x57fefb)'string'==typeof _0x9c5bf['buffers'][_0x57fefb]?_0x4a15b3['base64']['decode'](_0x9c5bf['buffers'][_0x57fefb],_0x1e65b5['buffers'][_0x57fefb]=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x9c5bf['buffers'][_0x57fefb])),0x0):_0x9c5bf['buffers'][_0x57fefb]['length']>=0x0&&(_0x1e65b5['buffers'][_0x57fefb]=_0x9c5bf['buffers'][_0x57fefb]);}if(_0x9c5bf['types']){if(!Array['isArray'](_0x9c5bf['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0x1e65b5['types']=[],_0x57fefb=0x0;_0x57fefb<_0x9c5bf['types']['length'];++_0x57fefb)_0x1e65b5['types'][_0x57fefb]=_0x9c5bf['types'][_0x57fefb]>>>0x0;}if(_0x9c5bf['metadata']){if(!Array['isArray'](_0x9c5bf['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0x1e65b5['metadata']=[],_0x57fefb=0x0;_0x57fefb<_0x9c5bf['metadata']['length'];++_0x57fefb){if('object'!=typeof _0x9c5bf['metadata'][_0x57fefb])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x1e65b5['metadata'][_0x57fefb]=_0x2dfa82['OperationMetadataDescriptor']['fromObject'](_0x9c5bf['metadata'][_0x57fefb]);}}return null!=_0x9c5bf['initData']&&(_0x1e65b5['initData']=String(_0x9c5bf['initData'])),null!=_0x9c5bf['isInitialized']&&(_0x1e65b5['isInitialized']=Boolean(_0x9c5bf['isInitialized'])),null!=_0x9c5bf['sessionId']&&(_0x1e65b5['sessionId']=String(_0x9c5bf['sessionId'])),null!=_0x9c5bf['lastOperationId']&&(_0x1e65b5['lastOperationId']=String(_0x9c5bf['lastOperationId'])),null!=_0x9c5bf['sessionCreatedAt']&&(_0x1e65b5['sessionCreatedAt']=String(_0x9c5bf['sessionCreatedAt'])),_0x1e65b5;},_0x1aa968['toObject']=function(_0x2a945f,_0xfd1309){_0xfd1309||(_0xfd1309={});var _0x3b5199={};if((_0xfd1309['arrays']||_0xfd1309['defaults'])&&(_0x3b5199['buffers']=[],_0x3b5199['types']=[],_0x3b5199['metadata']=[]),_0xfd1309['defaults']&&(_0x3b5199['channel']='',_0x3b5199['offset']=0x0,_0x3b5199['version']=0x0,_0x3b5199['initData']='',_0x3b5199['isInitialized']=!0x1,_0x3b5199['sessionId']='',_0x3b5199['lastOperationId']='',_0x3b5199['sessionCreatedAt']=''),null!=_0x2a945f['channel']&&_0x2a945f['hasOwnProperty']('channel')&&(_0x3b5199['channel']=_0x2a945f['channel']),null!=_0x2a945f['offset']&&_0x2a945f['hasOwnProperty']('offset')&&(_0x3b5199['offset']=_0x2a945f['offset']),null!=_0x2a945f['version']&&_0x2a945f['hasOwnProperty']('version')&&(_0x3b5199['version']=_0x2a945f['version']),_0x2a945f['buffers']&&_0x2a945f['buffers']['length']){_0x3b5199['buffers']=[];for(var _0x4faa9c=0x0;_0x4faa9c<_0x2a945f['buffers']['length'];++_0x4faa9c)_0x3b5199['buffers'][_0x4faa9c]=_0xfd1309['bytes']===String?_0x4a15b3['base64']['encode'](_0x2a945f['buffers'][_0x4faa9c],0x0,_0x2a945f['buffers'][_0x4faa9c]['length']):_0xfd1309['bytes']===Array?Array['prototype']['slice']['call'](_0x2a945f['buffers'][_0x4faa9c]):_0x2a945f['buffers'][_0x4faa9c];}if(_0x2a945f['types']&&_0x2a945f['types']['length']){for(_0x3b5199['types']=[],_0x4faa9c=0x0;_0x4faa9c<_0x2a945f['types']['length'];++_0x4faa9c)_0x3b5199['types'][_0x4faa9c]=_0x2a945f['types'][_0x4faa9c];}if(_0x2a945f['metadata']&&_0x2a945f['metadata']['length']){for(_0x3b5199['metadata']=[],_0x4faa9c=0x0;_0x4faa9c<_0x2a945f['metadata']['length'];++_0x4faa9c)_0x3b5199['metadata'][_0x4faa9c]=_0x2dfa82['OperationMetadataDescriptor']['toObject'](_0x2a945f['metadata'][_0x4faa9c],_0xfd1309);}return null!=_0x2a945f['initData']&&_0x2a945f['hasOwnProperty']('initData')&&(_0x3b5199['initData']=_0x2a945f['initData']),null!=_0x2a945f['isInitialized']&&_0x2a945f['hasOwnProperty']('isInitialized')&&(_0x3b5199['isInitialized']=_0x2a945f['isInitialized']),null!=_0x2a945f['sessionId']&&_0x2a945f['hasOwnProperty']('sessionId')&&(_0x3b5199['sessionId']=_0x2a945f['sessionId']),null!=_0x2a945f['lastOperationId']&&_0x2a945f['hasOwnProperty']('lastOperationId')&&(_0x3b5199['lastOperationId']=_0x2a945f['lastOperationId']),null!=_0x2a945f['sessionCreatedAt']&&_0x2a945f['hasOwnProperty']('sessionCreatedAt')&&(_0x3b5199['sessionCreatedAt']=_0x2a945f['sessionCreatedAt']),_0x3b5199;},_0x1aa968['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1aa968['getTypeUrl']=function(_0x9a985){return void 0x0===_0x9a985&&(_0x9a985='type.googleapis.com'),_0x9a985+'/CollaborativeEditingConnectResponse';},_0x1aa968;}()),_0x2dfa82['GetDocumentDetailsMessage']=(function(){function _0x30cfaf(_0x4eafd3){if(_0x4eafd3){for(var _0x434221=Object['keys'](_0x4eafd3),_0x1d5c5c=0x0;_0x1d5c5c<_0x434221['length'];++_0x1d5c5c)null!=_0x4eafd3[_0x434221[_0x1d5c5c]]&&(this[_0x434221[_0x1d5c5c]]=_0x4eafd3[_0x434221[_0x1d5c5c]]);}}return _0x30cfaf['prototype']['documentId']='',_0x30cfaf['prototype']['environmentId']='',_0x30cfaf['create']=function(_0x2156f3){return new _0x30cfaf(_0x2156f3);},_0x30cfaf['encode']=function(_0x548219,_0x2b6276){return _0x2b6276||(_0x2b6276=_0x278790['create']()),null!=_0x548219['documentId']&&Object['hasOwnProperty']['call'](_0x548219,'documentId')&&_0x2b6276['uint32'](0xa)['string'](_0x548219['documentId']),null!=_0x548219['environmentId']&&Object['hasOwnProperty']['call'](_0x548219,'environmentId')&&_0x2b6276['uint32'](0x12)['string'](_0x548219['environmentId']),_0x2b6276;},_0x30cfaf['encodeDelimited']=function(_0x3b21f0,_0x5eba21){return this['encode'](_0x3b21f0,_0x5eba21)['ldelim']();},_0x30cfaf['decode']=function(_0x1ef96e,_0x113d29,_0x588afc){_0x1ef96e instanceof _0x150291||(_0x1ef96e=_0x150291['create'](_0x1ef96e));for(var _0x546c34=void 0x0===_0x113d29?_0x1ef96e['len']:_0x1ef96e['pos']+_0x113d29,_0x350fd8=new _0x2dfa82['GetDocumentDetailsMessage']();_0x1ef96e['pos']<_0x546c34;){var _0x703393=_0x1ef96e['uint32']();if(_0x703393===_0x588afc)break;switch(_0x703393>>>0x3){case 0x1:_0x350fd8['documentId']=_0x1ef96e['string']();break;case 0x2:_0x350fd8['environmentId']=_0x1ef96e['string']();break;default:_0x1ef96e['skipType'](0x7&_0x703393);}}return _0x350fd8;},_0x30cfaf['decodeDelimited']=function(_0x5dcbf2){return _0x5dcbf2 instanceof _0x150291||(_0x5dcbf2=new _0x150291(_0x5dcbf2)),this['decode'](_0x5dcbf2,_0x5dcbf2['uint32']());},_0x30cfaf['verify']=function(_0xe5a47f){return'object'!=typeof _0xe5a47f||null===_0xe5a47f?'object\x20expected':null!=_0xe5a47f['documentId']&&_0xe5a47f['hasOwnProperty']('documentId')&&!_0x4a15b3['isString'](_0xe5a47f['documentId'])?'documentId:\x20string\x20expected':null!=_0xe5a47f['environmentId']&&_0xe5a47f['hasOwnProperty']('environmentId')&&!_0x4a15b3['isString'](_0xe5a47f['environmentId'])?'environmentId:\x20string\x20expected':null;},_0x30cfaf['fromObject']=function(_0x244ca5){if(_0x244ca5 instanceof _0x2dfa82['GetDocumentDetailsMessage'])return _0x244ca5;var _0x58a05c=new _0x2dfa82['GetDocumentDetailsMessage']();return null!=_0x244ca5['documentId']&&(_0x58a05c['documentId']=String(_0x244ca5['documentId'])),null!=_0x244ca5['environmentId']&&(_0x58a05c['environmentId']=String(_0x244ca5['environmentId'])),_0x58a05c;},_0x30cfaf['toObject']=function(_0x1f3ab4,_0x5be5f7){_0x5be5f7||(_0x5be5f7={});var _0xe242b={};return _0x5be5f7['defaults']&&(_0xe242b['documentId']='',_0xe242b['environmentId']=''),null!=_0x1f3ab4['documentId']&&_0x1f3ab4['hasOwnProperty']('documentId')&&(_0xe242b['documentId']=_0x1f3ab4['documentId']),null!=_0x1f3ab4['environmentId']&&_0x1f3ab4['hasOwnProperty']('environmentId')&&(_0xe242b['environmentId']=_0x1f3ab4['environmentId']),_0xe242b;},_0x30cfaf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x30cfaf['getTypeUrl']=function(_0x1cec72){return void 0x0===_0x1cec72&&(_0x1cec72='type.googleapis.com'),_0x1cec72+'/GetDocumentDetailsMessage';},_0x30cfaf;}()),_0x2dfa82['CollaborativeEditingUpdateMessage']=(function(){function _0x2cf45c(_0xd0624c){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0xd0624c){for(var _0x590a62=Object['keys'](_0xd0624c),_0x2bd70a=0x0;_0x2bd70a<_0x590a62['length'];++_0x2bd70a)null!=_0xd0624c[_0x590a62[_0x2bd70a]]&&(this[_0x590a62[_0x2bd70a]]=_0xd0624c[_0x590a62[_0x2bd70a]]);}}return _0x2cf45c['prototype']['id']='',_0x2cf45c['prototype']['baseVersion']=0x0,_0x2cf45c['prototype']['buffers']=_0x4a15b3['emptyArray'],_0x2cf45c['prototype']['types']=_0x4a15b3['emptyArray'],_0x2cf45c['prototype']['metadata']=_0x4a15b3['emptyArray'],_0x2cf45c['prototype']['lastOperationId']='',_0x2cf45c['create']=function(_0x5401b9){return new _0x2cf45c(_0x5401b9);},_0x2cf45c['encode']=function(_0x21e2a5,_0x2bb011){if(_0x2bb011||(_0x2bb011=_0x278790['create']()),null!=_0x21e2a5['id']&&Object['hasOwnProperty']['call'](_0x21e2a5,'id')&&_0x2bb011['uint32'](0xa)['string'](_0x21e2a5['id']),null!=_0x21e2a5['baseVersion']&&Object['hasOwnProperty']['call'](_0x21e2a5,'baseVersion')&&_0x2bb011['uint32'](0x10)['uint32'](_0x21e2a5['baseVersion']),null!=_0x21e2a5['buffers']&&_0x21e2a5['buffers']['length']){for(var _0x25a3a9=0x0;_0x25a3a9<_0x21e2a5['buffers']['length'];++_0x25a3a9)_0x2bb011['uint32'](0x1a)['bytes'](_0x21e2a5['buffers'][_0x25a3a9]);}if(null!=_0x21e2a5['types']&&_0x21e2a5['types']['length']){for(_0x2bb011['uint32'](0x22)['fork'](),_0x25a3a9=0x0;_0x25a3a9<_0x21e2a5['types']['length'];++_0x25a3a9)_0x2bb011['uint32'](_0x21e2a5['types'][_0x25a3a9]);_0x2bb011['ldelim']();}if(null!=_0x21e2a5['metadata']&&_0x21e2a5['metadata']['length']){for(_0x25a3a9=0x0;_0x25a3a9<_0x21e2a5['metadata']['length'];++_0x25a3a9)_0x2dfa82['OperationMetadataDescriptor']['encode'](_0x21e2a5['metadata'][_0x25a3a9],_0x2bb011['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x21e2a5['lastOperationId']&&Object['hasOwnProperty']['call'](_0x21e2a5,'lastOperationId')&&_0x2bb011['uint32'](0x3a)['string'](_0x21e2a5['lastOperationId']),_0x2bb011;},_0x2cf45c['encodeDelimited']=function(_0x589c5b,_0x43a9ce){return this['encode'](_0x589c5b,_0x43a9ce)['ldelim']();},_0x2cf45c['decode']=function(_0x46c0e6,_0x245604,_0x24d79b){_0x46c0e6 instanceof _0x150291||(_0x46c0e6=_0x150291['create'](_0x46c0e6));for(var _0x47db2d=void 0x0===_0x245604?_0x46c0e6['len']:_0x46c0e6['pos']+_0x245604,_0x374cea=new _0x2dfa82['CollaborativeEditingUpdateMessage']();_0x46c0e6['pos']<_0x47db2d;){var _0x4744d0=_0x46c0e6['uint32']();if(_0x4744d0===_0x24d79b)break;switch(_0x4744d0>>>0x3){case 0x1:_0x374cea['id']=_0x46c0e6['string']();break;case 0x2:_0x374cea['baseVersion']=_0x46c0e6['uint32']();break;case 0x3:_0x374cea['buffers']&&_0x374cea['buffers']['length']||(_0x374cea['buffers']=[]),_0x374cea['buffers']['push'](_0x46c0e6['bytes']());break;case 0x4:if(_0x374cea['types']&&_0x374cea['types']['length']||(_0x374cea['types']=[]),0x2==(0x7&_0x4744d0)){for(var _0x15de55=_0x46c0e6['uint32']()+_0x46c0e6['pos'];_0x46c0e6['pos']<_0x15de55;)_0x374cea['types']['push'](_0x46c0e6['uint32']());}else _0x374cea['types']['push'](_0x46c0e6['uint32']());break;case 0x6:_0x374cea['metadata']&&_0x374cea['metadata']['length']||(_0x374cea['metadata']=[]),_0x374cea['metadata']['push'](_0x2dfa82['OperationMetadataDescriptor']['decode'](_0x46c0e6,_0x46c0e6['uint32']()));break;case 0x7:_0x374cea['lastOperationId']=_0x46c0e6['string']();break;default:_0x46c0e6['skipType'](0x7&_0x4744d0);}}return _0x374cea;},_0x2cf45c['decodeDelimited']=function(_0x1988b0){return _0x1988b0 instanceof _0x150291||(_0x1988b0=new _0x150291(_0x1988b0)),this['decode'](_0x1988b0,_0x1988b0['uint32']());},_0x2cf45c['verify']=function(_0x1ac4d1){if('object'!=typeof _0x1ac4d1||null===_0x1ac4d1)return'object\x20expected';if(null!=_0x1ac4d1['id']&&_0x1ac4d1['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x1ac4d1['id']))return'id:\x20string\x20expected';if(null!=_0x1ac4d1['baseVersion']&&_0x1ac4d1['hasOwnProperty']('baseVersion')&&!_0x4a15b3['isInteger'](_0x1ac4d1['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x1ac4d1['buffers']&&_0x1ac4d1['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x1ac4d1['buffers']))return'buffers:\x20array\x20expected';for(var _0x70c2b9=0x0;_0x70c2b9<_0x1ac4d1['buffers']['length'];++_0x70c2b9)if(!(_0x1ac4d1['buffers'][_0x70c2b9]&&'number'==typeof _0x1ac4d1['buffers'][_0x70c2b9]['length']||_0x4a15b3['isString'](_0x1ac4d1['buffers'][_0x70c2b9])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x1ac4d1['types']&&_0x1ac4d1['hasOwnProperty']('types')){if(!Array['isArray'](_0x1ac4d1['types']))return'types:\x20array\x20expected';for(_0x70c2b9=0x0;_0x70c2b9<_0x1ac4d1['types']['length'];++_0x70c2b9)if(!_0x4a15b3['isInteger'](_0x1ac4d1['types'][_0x70c2b9]))return'types:\x20integer[]\x20expected';}if(null!=_0x1ac4d1['metadata']&&_0x1ac4d1['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x1ac4d1['metadata']))return'metadata:\x20array\x20expected';for(_0x70c2b9=0x0;_0x70c2b9<_0x1ac4d1['metadata']['length'];++_0x70c2b9){var _0x335b45=_0x2dfa82['OperationMetadataDescriptor']['verify'](_0x1ac4d1['metadata'][_0x70c2b9]);if(_0x335b45)return'metadata.'+_0x335b45;}}return null!=_0x1ac4d1['lastOperationId']&&_0x1ac4d1['hasOwnProperty']('lastOperationId')&&!_0x4a15b3['isString'](_0x1ac4d1['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x2cf45c['fromObject']=function(_0x5b4da1){if(_0x5b4da1 instanceof _0x2dfa82['CollaborativeEditingUpdateMessage'])return _0x5b4da1;var _0x28b149=new _0x2dfa82['CollaborativeEditingUpdateMessage']();if(null!=_0x5b4da1['id']&&(_0x28b149['id']=String(_0x5b4da1['id'])),null!=_0x5b4da1['baseVersion']&&(_0x28b149['baseVersion']=_0x5b4da1['baseVersion']>>>0x0),_0x5b4da1['buffers']){if(!Array['isArray'](_0x5b4da1['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x28b149['buffers']=[];for(var _0x38aaf5=0x0;_0x38aaf5<_0x5b4da1['buffers']['length'];++_0x38aaf5)'string'==typeof _0x5b4da1['buffers'][_0x38aaf5]?_0x4a15b3['base64']['decode'](_0x5b4da1['buffers'][_0x38aaf5],_0x28b149['buffers'][_0x38aaf5]=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x5b4da1['buffers'][_0x38aaf5])),0x0):_0x5b4da1['buffers'][_0x38aaf5]['length']>=0x0&&(_0x28b149['buffers'][_0x38aaf5]=_0x5b4da1['buffers'][_0x38aaf5]);}if(_0x5b4da1['types']){if(!Array['isArray'](_0x5b4da1['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x28b149['types']=[],_0x38aaf5=0x0;_0x38aaf5<_0x5b4da1['types']['length'];++_0x38aaf5)_0x28b149['types'][_0x38aaf5]=_0x5b4da1['types'][_0x38aaf5]>>>0x0;}if(_0x5b4da1['metadata']){if(!Array['isArray'](_0x5b4da1['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x28b149['metadata']=[],_0x38aaf5=0x0;_0x38aaf5<_0x5b4da1['metadata']['length'];++_0x38aaf5){if('object'!=typeof _0x5b4da1['metadata'][_0x38aaf5])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x28b149['metadata'][_0x38aaf5]=_0x2dfa82['OperationMetadataDescriptor']['fromObject'](_0x5b4da1['metadata'][_0x38aaf5]);}}return null!=_0x5b4da1['lastOperationId']&&(_0x28b149['lastOperationId']=String(_0x5b4da1['lastOperationId'])),_0x28b149;},_0x2cf45c['toObject']=function(_0x3ff492,_0x5d8d93){_0x5d8d93||(_0x5d8d93={});var _0x1e37fb={};if((_0x5d8d93['arrays']||_0x5d8d93['defaults'])&&(_0x1e37fb['buffers']=[],_0x1e37fb['types']=[],_0x1e37fb['metadata']=[]),_0x5d8d93['defaults']&&(_0x1e37fb['id']='',_0x1e37fb['baseVersion']=0x0,_0x1e37fb['lastOperationId']=''),null!=_0x3ff492['id']&&_0x3ff492['hasOwnProperty']('id')&&(_0x1e37fb['id']=_0x3ff492['id']),null!=_0x3ff492['baseVersion']&&_0x3ff492['hasOwnProperty']('baseVersion')&&(_0x1e37fb['baseVersion']=_0x3ff492['baseVersion']),_0x3ff492['buffers']&&_0x3ff492['buffers']['length']){_0x1e37fb['buffers']=[];for(var _0x5b292b=0x0;_0x5b292b<_0x3ff492['buffers']['length'];++_0x5b292b)_0x1e37fb['buffers'][_0x5b292b]=_0x5d8d93['bytes']===String?_0x4a15b3['base64']['encode'](_0x3ff492['buffers'][_0x5b292b],0x0,_0x3ff492['buffers'][_0x5b292b]['length']):_0x5d8d93['bytes']===Array?Array['prototype']['slice']['call'](_0x3ff492['buffers'][_0x5b292b]):_0x3ff492['buffers'][_0x5b292b];}if(_0x3ff492['types']&&_0x3ff492['types']['length']){for(_0x1e37fb['types']=[],_0x5b292b=0x0;_0x5b292b<_0x3ff492['types']['length'];++_0x5b292b)_0x1e37fb['types'][_0x5b292b]=_0x3ff492['types'][_0x5b292b];}if(_0x3ff492['metadata']&&_0x3ff492['metadata']['length']){for(_0x1e37fb['metadata']=[],_0x5b292b=0x0;_0x5b292b<_0x3ff492['metadata']['length'];++_0x5b292b)_0x1e37fb['metadata'][_0x5b292b]=_0x2dfa82['OperationMetadataDescriptor']['toObject'](_0x3ff492['metadata'][_0x5b292b],_0x5d8d93);}return null!=_0x3ff492['lastOperationId']&&_0x3ff492['hasOwnProperty']('lastOperationId')&&(_0x1e37fb['lastOperationId']=_0x3ff492['lastOperationId']),_0x1e37fb;},_0x2cf45c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2cf45c['getTypeUrl']=function(_0x2a7ec1){return void 0x0===_0x2a7ec1&&(_0x2a7ec1='type.googleapis.com'),_0x2a7ec1+'/CollaborativeEditingUpdateMessage';},_0x2cf45c;}()),_0x2dfa82['CollaborativeEditingReconnectMessage']=(function(){function _0x44525a(_0x12e936){if(_0x12e936){for(var _0x5c73c9=Object['keys'](_0x12e936),_0x1b1c46=0x0;_0x1b1c46<_0x5c73c9['length'];++_0x1b1c46)null!=_0x12e936[_0x5c73c9[_0x1b1c46]]&&(this[_0x5c73c9[_0x1b1c46]]=_0x12e936[_0x5c73c9[_0x1b1c46]]);}}return _0x44525a['prototype']['id']='',_0x44525a['prototype']['bundleVersion']='',_0x44525a['prototype']['lastKnowVersion']=0x0,_0x44525a['create']=function(_0x3949f7){return new _0x44525a(_0x3949f7);},_0x44525a['encode']=function(_0x15caa8,_0x47c763){return _0x47c763||(_0x47c763=_0x278790['create']()),null!=_0x15caa8['id']&&Object['hasOwnProperty']['call'](_0x15caa8,'id')&&_0x47c763['uint32'](0xa)['string'](_0x15caa8['id']),null!=_0x15caa8['bundleVersion']&&Object['hasOwnProperty']['call'](_0x15caa8,'bundleVersion')&&_0x47c763['uint32'](0x12)['string'](_0x15caa8['bundleVersion']),null!=_0x15caa8['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x15caa8,'lastKnowVersion')&&_0x47c763['uint32'](0x18)['uint32'](_0x15caa8['lastKnowVersion']),_0x47c763;},_0x44525a['encodeDelimited']=function(_0x3ac472,_0x2e8608){return this['encode'](_0x3ac472,_0x2e8608)['ldelim']();},_0x44525a['decode']=function(_0x463ba6,_0xace9b9,_0x130ccd){_0x463ba6 instanceof _0x150291||(_0x463ba6=_0x150291['create'](_0x463ba6));for(var _0x305227=void 0x0===_0xace9b9?_0x463ba6['len']:_0x463ba6['pos']+_0xace9b9,_0x162a90=new _0x2dfa82['CollaborativeEditingReconnectMessage']();_0x463ba6['pos']<_0x305227;){var _0x14e9c4=_0x463ba6['uint32']();if(_0x14e9c4===_0x130ccd)break;switch(_0x14e9c4>>>0x3){case 0x1:_0x162a90['id']=_0x463ba6['string']();break;case 0x2:_0x162a90['bundleVersion']=_0x463ba6['string']();break;case 0x3:_0x162a90['lastKnowVersion']=_0x463ba6['uint32']();break;default:_0x463ba6['skipType'](0x7&_0x14e9c4);}}return _0x162a90;},_0x44525a['decodeDelimited']=function(_0x233c4e){return _0x233c4e instanceof _0x150291||(_0x233c4e=new _0x150291(_0x233c4e)),this['decode'](_0x233c4e,_0x233c4e['uint32']());},_0x44525a['verify']=function(_0x4a90f0){return'object'!=typeof _0x4a90f0||null===_0x4a90f0?'object\x20expected':null!=_0x4a90f0['id']&&_0x4a90f0['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x4a90f0['id'])?'id:\x20string\x20expected':null!=_0x4a90f0['bundleVersion']&&_0x4a90f0['hasOwnProperty']('bundleVersion')&&!_0x4a15b3['isString'](_0x4a90f0['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x4a90f0['lastKnowVersion']&&_0x4a90f0['hasOwnProperty']('lastKnowVersion')&&!_0x4a15b3['isInteger'](_0x4a90f0['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x44525a['fromObject']=function(_0xa858b8){if(_0xa858b8 instanceof _0x2dfa82['CollaborativeEditingReconnectMessage'])return _0xa858b8;var _0xc68af4=new _0x2dfa82['CollaborativeEditingReconnectMessage']();return null!=_0xa858b8['id']&&(_0xc68af4['id']=String(_0xa858b8['id'])),null!=_0xa858b8['bundleVersion']&&(_0xc68af4['bundleVersion']=String(_0xa858b8['bundleVersion'])),null!=_0xa858b8['lastKnowVersion']&&(_0xc68af4['lastKnowVersion']=_0xa858b8['lastKnowVersion']>>>0x0),_0xc68af4;},_0x44525a['toObject']=function(_0x16e127,_0x12c8bd){_0x12c8bd||(_0x12c8bd={});var _0x8514a6={};return _0x12c8bd['defaults']&&(_0x8514a6['id']='',_0x8514a6['bundleVersion']='',_0x8514a6['lastKnowVersion']=0x0),null!=_0x16e127['id']&&_0x16e127['hasOwnProperty']('id')&&(_0x8514a6['id']=_0x16e127['id']),null!=_0x16e127['bundleVersion']&&_0x16e127['hasOwnProperty']('bundleVersion')&&(_0x8514a6['bundleVersion']=_0x16e127['bundleVersion']),null!=_0x16e127['lastKnowVersion']&&_0x16e127['hasOwnProperty']('lastKnowVersion')&&(_0x8514a6['lastKnowVersion']=_0x16e127['lastKnowVersion']),_0x8514a6;},_0x44525a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x44525a['getTypeUrl']=function(_0x453a2a){return void 0x0===_0x453a2a&&(_0x453a2a='type.googleapis.com'),_0x453a2a+'/CollaborativeEditingReconnectMessage';},_0x44525a;}()),_0x2dfa82['CollaborativeEditingConnectMessage']=(function(){function _0x2236c9(_0x18ec09){if(this['buffers']=[],this['types']=[],_0x18ec09){for(var _0x3fefb1=Object['keys'](_0x18ec09),_0xa3c812=0x0;_0xa3c812<_0x3fefb1['length'];++_0xa3c812)null!=_0x18ec09[_0x3fefb1[_0xa3c812]]&&(this[_0x3fefb1[_0xa3c812]]=_0x18ec09[_0x3fefb1[_0xa3c812]]);}}return _0x2236c9['prototype']['id']='',_0x2236c9['prototype']['bundleVersion']='',_0x2236c9['prototype']['buffers']=_0x4a15b3['emptyArray'],_0x2236c9['prototype']['types']=_0x4a15b3['emptyArray'],_0x2236c9['prototype']['lastOperationId']='',_0x2236c9['create']=function(_0x568193){return new _0x2236c9(_0x568193);},_0x2236c9['encode']=function(_0x48f31c,_0x57b224){if(_0x57b224||(_0x57b224=_0x278790['create']()),null!=_0x48f31c['id']&&Object['hasOwnProperty']['call'](_0x48f31c,'id')&&_0x57b224['uint32'](0xa)['string'](_0x48f31c['id']),null!=_0x48f31c['bundleVersion']&&Object['hasOwnProperty']['call'](_0x48f31c,'bundleVersion')&&_0x57b224['uint32'](0x12)['string'](_0x48f31c['bundleVersion']),null!=_0x48f31c['buffers']&&_0x48f31c['buffers']['length']){for(var _0x84c56b=0x0;_0x84c56b<_0x48f31c['buffers']['length'];++_0x84c56b)_0x57b224['uint32'](0x1a)['bytes'](_0x48f31c['buffers'][_0x84c56b]);}if(null!=_0x48f31c['types']&&_0x48f31c['types']['length']){for(_0x57b224['uint32'](0x22)['fork'](),_0x84c56b=0x0;_0x84c56b<_0x48f31c['types']['length'];++_0x84c56b)_0x57b224['uint32'](_0x48f31c['types'][_0x84c56b]);_0x57b224['ldelim']();}return null!=_0x48f31c['lastOperationId']&&Object['hasOwnProperty']['call'](_0x48f31c,'lastOperationId')&&_0x57b224['uint32'](0x2a)['string'](_0x48f31c['lastOperationId']),_0x57b224;},_0x2236c9['encodeDelimited']=function(_0x40191e,_0x22523a){return this['encode'](_0x40191e,_0x22523a)['ldelim']();},_0x2236c9['decode']=function(_0x5ab580,_0x824317,_0x4a7fd9){_0x5ab580 instanceof _0x150291||(_0x5ab580=_0x150291['create'](_0x5ab580));for(var _0x395abe=void 0x0===_0x824317?_0x5ab580['len']:_0x5ab580['pos']+_0x824317,_0x16f3c4=new _0x2dfa82['CollaborativeEditingConnectMessage']();_0x5ab580['pos']<_0x395abe;){var _0x2ccbb0=_0x5ab580['uint32']();if(_0x2ccbb0===_0x4a7fd9)break;switch(_0x2ccbb0>>>0x3){case 0x1:_0x16f3c4['id']=_0x5ab580['string']();break;case 0x2:_0x16f3c4['bundleVersion']=_0x5ab580['string']();break;case 0x3:_0x16f3c4['buffers']&&_0x16f3c4['buffers']['length']||(_0x16f3c4['buffers']=[]),_0x16f3c4['buffers']['push'](_0x5ab580['bytes']());break;case 0x4:if(_0x16f3c4['types']&&_0x16f3c4['types']['length']||(_0x16f3c4['types']=[]),0x2==(0x7&_0x2ccbb0)){for(var _0x25c213=_0x5ab580['uint32']()+_0x5ab580['pos'];_0x5ab580['pos']<_0x25c213;)_0x16f3c4['types']['push'](_0x5ab580['uint32']());}else _0x16f3c4['types']['push'](_0x5ab580['uint32']());break;case 0x5:_0x16f3c4['lastOperationId']=_0x5ab580['string']();break;default:_0x5ab580['skipType'](0x7&_0x2ccbb0);}}return _0x16f3c4;},_0x2236c9['decodeDelimited']=function(_0x3b34b6){return _0x3b34b6 instanceof _0x150291||(_0x3b34b6=new _0x150291(_0x3b34b6)),this['decode'](_0x3b34b6,_0x3b34b6['uint32']());},_0x2236c9['verify']=function(_0x32dfed){if('object'!=typeof _0x32dfed||null===_0x32dfed)return'object\x20expected';if(null!=_0x32dfed['id']&&_0x32dfed['hasOwnProperty']('id')&&!_0x4a15b3['isString'](_0x32dfed['id']))return'id:\x20string\x20expected';if(null!=_0x32dfed['bundleVersion']&&_0x32dfed['hasOwnProperty']('bundleVersion')&&!_0x4a15b3['isString'](_0x32dfed['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x32dfed['buffers']&&_0x32dfed['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x32dfed['buffers']))return'buffers:\x20array\x20expected';for(var _0x922573=0x0;_0x922573<_0x32dfed['buffers']['length'];++_0x922573)if(!(_0x32dfed['buffers'][_0x922573]&&'number'==typeof _0x32dfed['buffers'][_0x922573]['length']||_0x4a15b3['isString'](_0x32dfed['buffers'][_0x922573])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x32dfed['types']&&_0x32dfed['hasOwnProperty']('types')){if(!Array['isArray'](_0x32dfed['types']))return'types:\x20array\x20expected';for(_0x922573=0x0;_0x922573<_0x32dfed['types']['length'];++_0x922573)if(!_0x4a15b3['isInteger'](_0x32dfed['types'][_0x922573]))return'types:\x20integer[]\x20expected';}return null!=_0x32dfed['lastOperationId']&&_0x32dfed['hasOwnProperty']('lastOperationId')&&!_0x4a15b3['isString'](_0x32dfed['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x2236c9['fromObject']=function(_0x561c61){if(_0x561c61 instanceof _0x2dfa82['CollaborativeEditingConnectMessage'])return _0x561c61;var _0x43dc7d=new _0x2dfa82['CollaborativeEditingConnectMessage']();if(null!=_0x561c61['id']&&(_0x43dc7d['id']=String(_0x561c61['id'])),null!=_0x561c61['bundleVersion']&&(_0x43dc7d['bundleVersion']=String(_0x561c61['bundleVersion'])),_0x561c61['buffers']){if(!Array['isArray'](_0x561c61['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x43dc7d['buffers']=[];for(var _0x40261a=0x0;_0x40261a<_0x561c61['buffers']['length'];++_0x40261a)'string'==typeof _0x561c61['buffers'][_0x40261a]?_0x4a15b3['base64']['decode'](_0x561c61['buffers'][_0x40261a],_0x43dc7d['buffers'][_0x40261a]=_0x4a15b3['newBuffer'](_0x4a15b3['base64']['length'](_0x561c61['buffers'][_0x40261a])),0x0):_0x561c61['buffers'][_0x40261a]['length']>=0x0&&(_0x43dc7d['buffers'][_0x40261a]=_0x561c61['buffers'][_0x40261a]);}if(_0x561c61['types']){if(!Array['isArray'](_0x561c61['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x43dc7d['types']=[],_0x40261a=0x0;_0x40261a<_0x561c61['types']['length'];++_0x40261a)_0x43dc7d['types'][_0x40261a]=_0x561c61['types'][_0x40261a]>>>0x0;}return null!=_0x561c61['lastOperationId']&&(_0x43dc7d['lastOperationId']=String(_0x561c61['lastOperationId'])),_0x43dc7d;},_0x2236c9['toObject']=function(_0x2c3861,_0x47fefe){_0x47fefe||(_0x47fefe={});var _0x538475={};if((_0x47fefe['arrays']||_0x47fefe['defaults'])&&(_0x538475['buffers']=[],_0x538475['types']=[]),_0x47fefe['defaults']&&(_0x538475['id']='',_0x538475['bundleVersion']='',_0x538475['lastOperationId']=''),null!=_0x2c3861['id']&&_0x2c3861['hasOwnProperty']('id')&&(_0x538475['id']=_0x2c3861['id']),null!=_0x2c3861['bundleVersion']&&_0x2c3861['hasOwnProperty']('bundleVersion')&&(_0x538475['bundleVersion']=_0x2c3861['bundleVersion']),_0x2c3861['buffers']&&_0x2c3861['buffers']['length']){_0x538475['buffers']=[];for(var _0x3e8ec8=0x0;_0x3e8ec8<_0x2c3861['buffers']['length'];++_0x3e8ec8)_0x538475['buffers'][_0x3e8ec8]=_0x47fefe['bytes']===String?_0x4a15b3['base64']['encode'](_0x2c3861['buffers'][_0x3e8ec8],0x0,_0x2c3861['buffers'][_0x3e8ec8]['length']):_0x47fefe['bytes']===Array?Array['prototype']['slice']['call'](_0x2c3861['buffers'][_0x3e8ec8]):_0x2c3861['buffers'][_0x3e8ec8];}if(_0x2c3861['types']&&_0x2c3861['types']['length']){for(_0x538475['types']=[],_0x3e8ec8=0x0;_0x3e8ec8<_0x2c3861['types']['length'];++_0x3e8ec8)_0x538475['types'][_0x3e8ec8]=_0x2c3861['types'][_0x3e8ec8];}return null!=_0x2c3861['lastOperationId']&&_0x2c3861['hasOwnProperty']('lastOperationId')&&(_0x538475['lastOperationId']=_0x2c3861['lastOperationId']),_0x538475;},_0x2236c9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2236c9['getTypeUrl']=function(_0x59751f){return void 0x0===_0x59751f&&(_0x59751f='type.googleapis.com'),_0x59751f+'/CollaborativeEditingConnectMessage';},_0x2236c9;}()),_0x2dfa82['OperationMetadataDescriptor']=(function(){function _0x5579a3(_0x218da7){if(_0x218da7){for(var _0xe512fc=Object['keys'](_0x218da7),_0x1645c8=0x0;_0x1645c8<_0xe512fc['length'];++_0x1645c8)null!=_0x218da7[_0xe512fc[_0x1645c8]]&&(this[_0xe512fc[_0x1645c8]]=_0x218da7[_0xe512fc[_0x1645c8]]);}}return _0x5579a3['prototype']['userId']='',_0x5579a3['prototype']['type']='',_0x5579a3['prototype']['createdAt']='',_0x5579a3['create']=function(_0x8f660e){return new _0x5579a3(_0x8f660e);},_0x5579a3['encode']=function(_0x5a78be,_0x2b21ec){return _0x2b21ec||(_0x2b21ec=_0x278790['create']()),null!=_0x5a78be['userId']&&Object['hasOwnProperty']['call'](_0x5a78be,'userId')&&_0x2b21ec['uint32'](0xa)['string'](_0x5a78be['userId']),null!=_0x5a78be['type']&&Object['hasOwnProperty']['call'](_0x5a78be,'type')&&_0x2b21ec['uint32'](0x12)['string'](_0x5a78be['type']),null!=_0x5a78be['createdAt']&&Object['hasOwnProperty']['call'](_0x5a78be,'createdAt')&&_0x2b21ec['uint32'](0x1a)['string'](_0x5a78be['createdAt']),_0x2b21ec;},_0x5579a3['encodeDelimited']=function(_0x1cf4a2,_0x559e7c){return this['encode'](_0x1cf4a2,_0x559e7c)['ldelim']();},_0x5579a3['decode']=function(_0x2dee2b,_0x2fe0fa,_0x3cd8fa){_0x2dee2b instanceof _0x150291||(_0x2dee2b=_0x150291['create'](_0x2dee2b));for(var _0x1248bb=void 0x0===_0x2fe0fa?_0x2dee2b['len']:_0x2dee2b['pos']+_0x2fe0fa,_0x475593=new _0x2dfa82['OperationMetadataDescriptor']();_0x2dee2b['pos']<_0x1248bb;){var _0x2d3260=_0x2dee2b['uint32']();if(_0x2d3260===_0x3cd8fa)break;switch(_0x2d3260>>>0x3){case 0x1:_0x475593['userId']=_0x2dee2b['string']();break;case 0x2:_0x475593['type']=_0x2dee2b['string']();break;case 0x3:_0x475593['createdAt']=_0x2dee2b['string']();break;default:_0x2dee2b['skipType'](0x7&_0x2d3260);}}return _0x475593;},_0x5579a3['decodeDelimited']=function(_0x14c447){return _0x14c447 instanceof _0x150291||(_0x14c447=new _0x150291(_0x14c447)),this['decode'](_0x14c447,_0x14c447['uint32']());},_0x5579a3['verify']=function(_0x5847ac){return'object'!=typeof _0x5847ac||null===_0x5847ac?'object\x20expected':null!=_0x5847ac['userId']&&_0x5847ac['hasOwnProperty']('userId')&&!_0x4a15b3['isString'](_0x5847ac['userId'])?'userId:\x20string\x20expected':null!=_0x5847ac['type']&&_0x5847ac['hasOwnProperty']('type')&&!_0x4a15b3['isString'](_0x5847ac['type'])?'type:\x20string\x20expected':null!=_0x5847ac['createdAt']&&_0x5847ac['hasOwnProperty']('createdAt')&&!_0x4a15b3['isString'](_0x5847ac['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x5579a3['fromObject']=function(_0x44bf5b){if(_0x44bf5b instanceof _0x2dfa82['OperationMetadataDescriptor'])return _0x44bf5b;var _0x2f519c=new _0x2dfa82['OperationMetadataDescriptor']();return null!=_0x44bf5b['userId']&&(_0x2f519c['userId']=String(_0x44bf5b['userId'])),null!=_0x44bf5b['type']&&(_0x2f519c['type']=String(_0x44bf5b['type'])),null!=_0x44bf5b['createdAt']&&(_0x2f519c['createdAt']=String(_0x44bf5b['createdAt'])),_0x2f519c;},_0x5579a3['toObject']=function(_0x491e64,_0x58e2c2){_0x58e2c2||(_0x58e2c2={});var _0x2c1c87={};return _0x58e2c2['defaults']&&(_0x2c1c87['userId']='',_0x2c1c87['type']='',_0x2c1c87['createdAt']=''),null!=_0x491e64['userId']&&_0x491e64['hasOwnProperty']('userId')&&(_0x2c1c87['userId']=_0x491e64['userId']),null!=_0x491e64['type']&&_0x491e64['hasOwnProperty']('type')&&(_0x2c1c87['type']=_0x491e64['type']),null!=_0x491e64['createdAt']&&_0x491e64['hasOwnProperty']('createdAt')&&(_0x2c1c87['createdAt']=_0x491e64['createdAt']),_0x2c1c87;},_0x5579a3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5579a3['getTypeUrl']=function(_0x5609d9){return void 0x0===_0x5609d9&&(_0x5609d9='type.googleapis.com'),_0x5609d9+'/OperationMetadataDescriptor';},_0x5579a3;}()),_0x2dfa82;})());class MessagesCompressor{static['decode'](_0xca8241,_0x4205f5){const _0x3d6521=_getType(_0x4205f5)['decode']('undefined'==typeof window?_0xca8241:new Uint8Array(_0xca8241));return _0x4205f5['fromJSON']({..._0x3d6521});}static['encode'](_0x3f5a75){const _0x470ab2=_getType(_0x3f5a75['constructor']),_0x15398e=_0x3f5a75['toJSON'](),_0x5e3ce9=_0x470ab2['verify'](_0x15398e);if(_0x5e3ce9)throw Error(_0x5e3ce9);return _0x470ab2['encode'](_0x470ab2['create'](_0x15398e))['finish']();}}function _getType(_0x3a45b3){return messages$1[_0x3a45b3['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x4cf229){super(),this['ids']=_0x4cf229;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x193bdb){return new GetManyUsersMessage(_0x193bdb['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x167494){super(),this['users']=_0x167494;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x5686db){return new GetManyUsersResponse(_0x5686db['users']['map'](_userFromJson));}}function _userToJson(_0x703eff){return{'attributes':Object['keys'](_0x703eff)['map'](_0x3f8415=>({'key':_0x3f8415,'value':JSON['stringify'](_0x703eff[_0x3f8415])}))};}function _userFromJson(_0x2fe02a){return _0x2fe02a['attributes']['reduce']((_0x2e2e8c,_0xda19d3)=>(_0x2e2e8c[_0xda19d3['key']]=_0xda19d3['value']?JSON['parse'](_0xda19d3['value']):null,_0x2e2e8c),{});}class User{static ['_SERVICE']=0x2;constructor(_0x6b6e25={}){this['_attributes']=new Map();for(const _0x3a44f2 of Object['keys'](_0x6b6e25))'id'!==_0x3a44f2?(this['_attributes']['set'](_0x3a44f2,_0x6b6e25[_0x3a44f2]),Object['defineProperty'](this,_0x3a44f2,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x3a44f2)})):this['id']=_0x6b6e25['id'];}static['fromData'](_0x3c1571){return new User(_0x3c1571);}static async['get'](_0xd3cc05,_0x1cd301){const _0x45aadf=new GetUserMessage(_0x1cd301);try{const _0x1469e5=await _0xd3cc05['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x45aadf)),_0x242ab0=MessagesCompressor['decode'](_0x1469e5,GetUserResponse);return new User(_0x242ab0['attributes']);}catch{return new User({'id':_0x1cd301});}}static async['getMany'](_0x41229a,_0x437da9){const _0xddd0cf=new GetManyUsersMessage(_0x437da9);try{const _0x3c4f9f=await _0x41229a['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0xddd0cf));return MessagesCompressor['decode'](_0x3c4f9f,GetManyUsersResponse)['users']['map'](_0x3d3ab7=>new User(_0x3d3ab7));}catch{return _0x437da9['map'](_0x1fcc15=>new User({'id':_0x1fcc15}));}}}class ChannelMessage extends Message{['type'];['socketId'];['data'];static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(_0x5d3a6c,_0x8a4401,_0x4b4e84){super(),this['type']=_0x5d3a6c,this['socketId']=_0x8a4401,this['data']=_0x4b4e84;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x1a0737){return new ChannelMessage(_0x1a0737['type'],_0x1a0737['socketId'],_0x1a0737['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x3f29a1,_0x5efb2b,_0x53ca34){super(),this['_channelName']=_0x3f29a1,this['_wsGateway']=_0x5efb2b,this['_socket']=_0x53ca34,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0x446515,_0x55ed9c=!0x1){let _0x5847c6='';return _0x55ed9c&&(_0x5847c6+='all:'),_0x5847c6+='event',_0x446515&&(_0x5847c6+=':'+_0x446515),_0x5847c6;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x116375=>{const _0x3b6063=MessagesCompressor['decode'](_0x116375,ChannelMessage);this['fire'](this['getEventName'](_0x3b6063['type'],!0x0),_0x3b6063['data'],_0x3b6063['socketId']),_0x3b6063['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x3b6063['type']),_0x3b6063['data'],_0x3b6063['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x448a7a,_0x3e35c3,_0x4d8c6d=null,_0x3413c6={}){super('cloud-services-internal-error:\x20'+_0x448a7a),this['context']=_0x3e35c3,this['code']=_0x4d8c6d,this['data']=_0x3413c6,this['name']='CKEditorError';}static['fromPublicError'](_0x24f14f){return new CKEditorCloudServicesError(function(_0xe91ca0){let _0x1b31ad='cloud-services-error:\x20'+_0xe91ca0['message'];return _0xe91ca0['data']&&(_0x1b31ad+='\x0aError\x20data:\x20'+JSON['stringify'](_0xe91ca0['data'])),_0xe91ca0['explanation']&&(_0x1b31ad+='\x0aExplanation:\x20'+_0xe91ca0['explanation']),_0xe91ca0['action']&&(_0x1b31ad+='\x0aAction:\x20'+_0xe91ca0['action']),_0xe91ca0['traceId']&&(_0x1b31ad+='\x0aTraceId:\x20'+_0xe91ca0['traceId']),_0xe91ca0['code']&&(_0x1b31ad+='\x0aCode:\x20'+_0xe91ca0['code']),_0x1b31ad;}(_0x24f14f),_0x24f14f);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x1427cb,_0x385538){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x1427cb,this['code']=_0x385538['code'],this['traceId']=_0x385538['traceId'],this['data']=_0x385538['data'];}static['fromPublicError'](_0x321268){return new CKEditorCloudServicesServerError(function(_0x4a3e41){let _0x30f8b1='cloud-services-server-error:\x20'+_0x4a3e41['message'];return _0x4a3e41['explanation']&&(_0x30f8b1+='\x0aExplanation:\x20'+_0x4a3e41['explanation']),_0x4a3e41['action']&&(_0x30f8b1+='\x0aAction:\x20'+_0x4a3e41['action']),_0x4a3e41['traceId']&&(_0x30f8b1+='\x0aTraceId:\x20'+_0x4a3e41['traceId']),_0x4a3e41['code']&&(_0x30f8b1+='\x0aCode:\x20'+_0x4a3e41['code']),_0x30f8b1;}(_0x321268),_0x321268);}}class PacketOptionsMessage extends Message{['flags'];['rooms'];['except'];static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(_0xfc2488,_0x299a0b=[],_0x3ec9bb=[]){super(),this['flags']=_0xfc2488,this['rooms']=_0x299a0b,this['except']=_0x3ec9bb;}['toJSON'](){return{'flags':this['flags']?JSON['stringify'](this['flags']):void 0x0,'rooms':this['rooms']?.['length']?this['rooms']:void 0x0,'except':this['except']?.['length']?this['except']:void 0x0};}static['fromJSON'](_0x2c51dc){return new PacketOptionsMessage(_0x2c51dc['flags']&&JSON['parse'](_0x2c51dc['flags']),_0x2c51dc['rooms'],_0x2c51dc['except']);}}const IS_NODE=/* #__PURE__ -- @preserve */
((()=>!('undefined'==typeof process||!process['versions']?.['node']))()),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](..._0x7c0831){let _0x1f4a22=0x0;for(let _0x57358c=0x0;_0x57358c<_0x7c0831['length'];_0x57358c++)_0x1f4a22+=_0x7c0831[_0x57358c]*Math['pow'](0xa,_0x7c0831['length']-_0x57358c-0x1);return _0x1f4a22;}static['getType'](_0xf689b7){if(ParserUtils['isBuffer'](_0xf689b7))return MessageDataTypes_BUFFER;const _0x41308b=typeof _0xf689b7;return'string'===_0x41308b?MessageDataTypes_STRING:'number'===_0x41308b?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0xfcd23a){return IS_NODE&&Buffer['isBuffer'](_0xfcd23a)||_0xfcd23a instanceof ArrayBuffer||_0xfcd23a instanceof Uint8Array||this['_isBufferView'](_0xfcd23a);}static['_isBufferView'](_0x41648a){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x41648a):_0x41648a['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x2402e0,_0x5c690d){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class NumberBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x7a88fb,_0x1e4063){super(),this['data']=_0x7a88fb,this['data1']=_0x1e4063;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x4416c4){return new NumberBytesPacketDataMessage(_0x4416c4['data'],_0x4416c4['data1']);}static['create'](_0x551229,_0x34f443){return new NumberBytesPacketDataMessage(_0x551229,_0x34f443);}}class StringBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x4a9708,_0x2d49cb){super(),this['data']=_0x4a9708,this['data1']=_0x2d49cb;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x336610){return new StringBytesPacketDataMessage(_0x336610['data'],_0x336610['data1']);}static['create'](_0x125ffd,_0x1e9c2c){return new StringBytesPacketDataMessage(_0x125ffd,_0x1e9c2c);}}class BytesBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_BUFFER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'bytes','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x2b3fe5,_0x46df4b){super(),this['data']=_0x2b3fe5,this['data1']=_0x46df4b;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x565059){return new BytesBytesPacketDataMessage(_0x565059['data'],_0x565059['data1']);}static['create'](_0x405156,_0x888ccd){return new BytesBytesPacketDataMessage(_0x405156,_0x888ccd);}}class StringObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x420513,_0x53cada){super(),this['data']=_0x420513,this['data1']=_0x53cada;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x58d667){return new StringObjectPacketDataMessage(_0x58d667['data'],_0x58d667['data1']&&JSON['parse'](_0x58d667['data1']));}static['create'](_0x5c5345,_0xbab72d){return new StringObjectPacketDataMessage(_0x5c5345,_0xbab72d);}}class NumberObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x277cb0,_0x3395bd){super(),this['data']=_0x277cb0,this['data1']=_0x3395bd;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x1378ad){return new NumberObjectPacketDataMessage(_0x1378ad['data'],_0x1378ad['data1']&&JSON['parse'](_0x1378ad['data1']));}static['create'](_0x102465,_0x42a9b7){return new NumberObjectPacketDataMessage(_0x102465,_0x42a9b7);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x491c00,_0x296f04){super(),this['data']=_0x491c00,this['data1']=_0x296f04;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x30ccbb){return new ObjectObjectPacketDataMessage(_0x30ccbb['data']&&JSON['parse'](_0x30ccbb['data']),_0x30ccbb['data1']&&JSON['parse'](_0x30ccbb['data1']));}static['create'](_0x1e3a12,_0x35e355){return new ObjectObjectPacketDataMessage(_0x1e3a12,_0x35e355);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x16af2a,_0x1a0a36){super(),this['data']=_0x16af2a,this['data1']=_0x1a0a36;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x1e2fc8){return new ObjectBufferPacketDataMessage(_0x1e2fc8['data']&&JSON['parse'](_0x1e2fc8['data']),_0x1e2fc8['data1']);}static['create'](_0x2d6186,_0x1d25dc){return new ObjectBufferPacketDataMessage(_0x2d6186,_0x1d25dc);}}class StringStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x399faa,_0x102381){super(),this['data']=_0x399faa,this['data1']=_0x102381;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x31f04f){return new StringStringPacketDataMessage(_0x31f04f['data'],_0x31f04f['data1']);}static['create'](_0x6bf53d,_0x1d375f){return new StringStringPacketDataMessage(_0x6bf53d,_0x1d375f);}}class StringNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','id':0x2}}}))());constructor(_0x25882c,_0x54943b){super(),this['data']=_0x25882c,this['data1']=_0x54943b;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x445afb){return new StringNumberPacketDataMessage(_0x445afb['data'],_0x445afb['data1']);}static['create'](_0x28b5f9,_0x2dc2ae){return new StringNumberPacketDataMessage(_0x28b5f9,_0x2dc2ae);}}class NumberNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(_0xf7ea7b,_0xab4c0d){super(),this['data']=_0xf7ea7b,this['data1']=_0xab4c0d;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x1e300d){return new NumberNumberPacketDataMessage(_0x1e300d['data'],_0x1e300d['data1']);}static['create'](_0x3512c2,_0x4788ea){return new NumberNumberPacketDataMessage(_0x3512c2,_0x4788ea);}}class NumberStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0xaec4e1,_0x2e7bb9){super(),this['data']=_0xaec4e1,this['data1']=_0x2e7bb9;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x53118b){return new NumberStringPacketDataMessage(_0x53118b['data'],_0x53118b['data1']);}static['create'](_0x49f984,_0x4addd0){return new NumberStringPacketDataMessage(_0x49f984,_0x4addd0);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0x566944,_0x2d08c7)=>(_0x566944[_0x2d08c7['TYPE']]=_0x2d08c7,_0x566944),{}))());class PacketMessage extends Message{['type'];['data'];['id'];['nsp'];['options'];static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}}))());constructor(_0x2166bf,_0xf1980b,_0x3b1e79,_0x2cc21a='/',_0x7be887){super(),this['type']=_0x2166bf,this['data']=_0xf1980b,this['id']=_0x3b1e79,this['nsp']=_0x2cc21a,this['options']=_0x7be887??new PacketOptionsMessage();}get['packetData'](){return void 0x0===this['data']['data']&&void 0x0===this['data']['data1']?[]:this['data']['data']&&void 0x0===this['data']['data1']?[this['data']['data']]:[this['data']['data'],this['data']['data1']];}['toJSON'](){const _0x18fbeb=MessagesCompressor['encode'](this['options']),_0x4332c8=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x4332c8,'options':_0x18fbeb};}static['fromJSON'](_0x52d6de){const _0x42754a=Math['floor'](_0x52d6de['type']/0xa);return new PacketMessage(_0x52d6de['type']-0xa*_0x42754a,MessagesCompressor['decode'](_0x52d6de['data'],PACKET_DATA_MESSAGES[_0x42754a]),_0x52d6de['id'],_0x52d6de['nsp'],_0x52d6de['options']?MessagesCompressor['decode'](_0x52d6de['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x352389,_0x1ee666={}){const _0x30e1dc=ParserUtils['getPacketType'](ParserUtils['getType'](_0x352389['data'][0x0]),ParserUtils['getType'](_0x352389['data'][0x1]??_0x352389['data'][0x0]));return new PacketMessage(_0x352389['type'],PACKET_DATA_MESSAGES[_0x30e1dc]['create'](_0x352389['data'][0x0],_0x352389['data'][0x1]),_0x352389['id'],_0x352389['nsp'],new PacketOptionsMessage(_0x1ee666['flags'],_0x1ee666['rooms'],_0x1ee666['except']));}}class PacketParser{['encode'](_0x2baae1,_0x2aa351,_0x5cbef2,_0x1dfcbc='/',_0x1893e3={}){if(_0x2aa351['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x46cb0c={'type':_0x2baae1,'data':_0x2aa351,'id':_0x5cbef2,'nsp':_0x1dfcbc};return MessagesCompressor['encode'](PacketMessage['create'](_0x46cb0c,_0x1893e3));}['decode'](_0x9724b9){const _0x44ced6=MessagesCompressor['decode'](_0x9724b9,PacketMessage);return{'packet':{'id':_0x44ced6['id'],'type':_0x44ced6['type'],'data':_0x44ced6['packetData'],'nsp':_0x44ced6['nsp']},'options':{'flags':_0x44ced6['options']['flags'],'rooms':_0x44ced6['options']['rooms'],'except':_0x44ced6['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0x11384d){super(),this['_packetParser']=_0x11384d??new PacketParser();}['encode'](_0x23f02a){if(ENCODED_TYPES['includes'](_0x23f02a['type']))try{return[this['_packetParser']['encode'](_0x23f02a['type'],_0x23f02a['data'],_0x23f02a['id'],_0x23f02a['nsp'])];}catch(_0x5a57fe){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x5a57fe['message']}});}return super['encode'](_0x23f02a);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x164d0f){super(),this['_packetParser']=_0x164d0f??new PacketParser();}['add'](_0x47f6f3){if(!ParserUtils['isBuffer'](_0x47f6f3))return super['add'](_0x47f6f3);let _0x472a74;try{_0x472a74=this['_packetParser']['decode'](_0x47f6f3)['packet'];}catch{return super['add'](_0x47f6f3);}super['emitReserved']('decoded',_0x472a74);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x1c4d2f,_0x138b07){this['_context']=_0x1c4d2f,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x138b07);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x305b47){this['_deferredPromise']['resolve'](_0x305b47);}['error'](_0x5d14e0){this['_deferredPromise']['reject'](_0x5d14e0);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0x20676d){this['_context']=_0x20676d;}async['send'](_0x5dc45d,_0x49be41=0xafc8){const _0x1ce6f4=this['_createRequest'](_0x49be41);try{return _0x5dc45d(_0x1ce6f4),await _0x1ce6f4['promise'];}finally{this['_finishRequest'](_0x1ce6f4);}}['errorAll'](_0x441365){for(const _0x4450c2 of this['_requests'])_0x4450c2['error'](_0x441365);}['waitForAllRequests'](_0x7ad126=0xafc8){return this['_waitForRequests'](_0x7ad126);}['_createRequest'](_0x5cb3b5){const _0x49de17=new WebSocketRequest(this['_context'],_0x5cb3b5);return this['_requests']['add'](_0x49de17),_0x49de17;}['_finishRequest'](_0x35ad21){this['_requests']['delete'](_0x35ad21),clearTimeout(_0x35ad21['timeout']);}async['_waitForRequests'](_0x1c55d7=0x1388,_0x186816=0x0){return!this['_requests']['size']||_0x186816>=_0x1c55d7/0x1f4?Promise['resolve']():(await new Promise(_0xc2dbb1=>{setTimeout(_0xc2dbb1,0x1f4);}),this['_waitForRequests'](_0x1c55d7,_0x186816++));}}function _deferPromise(){let _0x412891,_0xa78afc;const _0x2ff859=new Promise((_0x1130d4,_0x4fb42a)=>{_0x412891=_0x1130d4,_0xa78afc=_0x4fb42a;});return{'resolve':_0x412891,'reject':_0xa78afc,'promise':_0x2ff859};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt']=0x0;['_token'];['_options'];['_connectionProvider'];['_userFactory'];static ['STATE_DISCONNECTED']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'])());static ['STATE_CONNECTING']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTING'])());static ['STATE_CONNECTED']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTED'])());static ['_CHANGE_STATE_EVENT_PRIORITY']=/* #__PURE__ -- @preserve */
((()=>priorities['get']('highest')+0xf423f)());constructor(_0x47f969,_0x4f80a1,_0x5186db,_0x4f15a7,_0x345981){if(super(),this['_token']=_0x4f80a1,this['_options']=_0x5186db??{},this['_connectionProvider']=_0x4f15a7??lookup,this['_userFactory']=_0x345981??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0x47f969)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']??=0x4e20,this['_url']=urlParseExports(_0x47f969['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(_0x46eb32,_0x38140a,_0x6b2914)=>{if(this['_debugEvent']('ws-gw:change:state',_0x6b2914),_0x6b2914!==e['STATE_CONNECTED']){if(_0x6b2914===e['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new CKEditorCloudServicesError('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](User,this,this['_socketAuth']?.['userId']);}catch{}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x3785b0,_0x5122c6)=>{this['_options']['onError']?this['_options']['onError'](_0x5122c6):console['error'](_0x5122c6);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x498a0a){return this['_requestsManager']['waitForAllRequests'](_0x498a0a);}['disconnect'](){this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']);}async['reconnect'](){this['_socket']||this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']||(await this['_token']['refreshToken'](),await this['_connect']());}static async['connect'](_0x1c03ec,_0x59cf34='local.cs.dev:443/ws-v2',_0x5bf21d={},_0x168548=lookup,_0x3e497c=User['get']){const _0x36b3a3=new e(_0x59cf34,_0x1c03ec,_0x5bf21d,_0x168548,_0x3e497c);return await _0x36b3a3['_connect'](),_0x36b3a3;}['_sendRequest'](_0x2f3131,_0xc8d9b8,_0x509cdb){if(!_0x2f3131)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==e['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']?.['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x4c83e5=new ArrayBuffer(_0x509cdb['length']+0x2),_0x34bc33=new Uint8Array(_0x4c83e5);return _0x34bc33[0x0]=_0x2f3131,_0x34bc33[0x1]=parseInt(_0xc8d9b8),_0x34bc33['set'](_0x509cdb,0x2),this['_emit'](0x1,_0x34bc33);}['_getChannel'](_0x4cdffd,_0x2e8a00){const _0x49bcf2=''+_0x4cdffd+_0x2e8a00;return!this['_channels']['has'](_0x49bcf2)&&this['_socket']&&this['_channels']['set'](_0x49bcf2,new Channel(_0x49bcf2,this,this['_socket'])),this['_channels']['get'](_0x49bcf2);}['_connect'](){return new Promise((_0x2330dd,_0x1e9c26)=>{const _0x27dd73=this['_setupSocket']();!this['socketId']&&_0x27dd73['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x1e9c26);}),_0x27dd73['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x2330dd();}catch(_0x1d6684){_0x1e9c26(_0x1d6684);}}),_0x27dd73['connect']();});}['_getPortByProtocol'](_0x5a07ac){return['http:','ws:']['includes'](_0x5a07ac)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x517e18=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x4897d0=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x517e18,_0x2fbc7b=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0xb7444d=this['_connectionProvider'](_0x4897d0,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0x2fbc7b+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'54.0.3'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],_0xb7444d['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0xb7444d['id'];}),_0xb7444d['on']('connect_error',_0x39fd4f=>{this['_debugEvent']('connect_error',_0x39fd4f);}),_0xb7444d['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0xb7444d['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0xb7444d['io']['on']('reconnect_attempt',_0x195366=>{this['_debugEvent']('reconnect_attempt',_0x195366),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x195366;}),_0xb7444d['on']('unauthorized',_0x24b73e=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x24b73e);}),_0xb7444d['on']('authenticationRequest',async _0x284371=>{this['_debugEvent']('authenticationRequest',_0x284371['attempt']),await this['_onReconnect']();}),this['_socket']=_0xb7444d,_0xb7444d;}['_emit'](_0x416f07,_0x3ab53f){const _0x38633d=this['_socket'];return this['_requestsManager']['send'](_0x1bbb6d=>{_0x38633d['emit'](_0x416f07,_0x3ab53f,(_0xc2ee87,_0x24f1b7)=>{if(_0xc2ee87)return _0x1bbb6d['error'](CKEditorCloudServicesServerError['fromPublicError'](_0xc2ee87));_0x1bbb6d['response'](_0x24f1b7);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x3408a8,_0x5438fa){this['_socketAuth']={'environmentId':_0x3408a8,'userId':_0x5438fa,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x302619=async(_0x20c6a8,_0x1e31c1,_0x482358)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x482358);}catch{}};this['_token']['on']('change:value',_0x302619),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x302619);});}async['_onReconnect'](){await this['_token']['refreshToken'](),await this['_onConnect']();}['_onDisconnect'](){this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x1c37dc of this['_channels']['values']())_0x1c37dc['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x1af2e5,_0x4de826){if(!this['_isDebugModeEnabled']())return;const _0x518825=void 0x0!==_0x4de826?',\x20data:\x20'+_0x4de826:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x1af2e5+_0x518825);}['_reconnectionAttemptError'](_0x5e5ac4){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x5e5ac4(CKEditorCloudServicesError['fromPublicError']({'message':'The\x20number\x20of\x20initial\x20connection\x20attempts\x20exceeded.','explanation':'Three\x20initial\x20connection\x20attempts\x20failed.\x20It\x20can\x20be\x20caused\x20by\x20a\x20slow,\x20unstable,\x20missing\x20or\x20blocked\x20Internet\x20connection.','action':'Please\x20verify\x20the\x20stability\x20of\x20your\x20Internet\x20connection\x20and\x20ensure\x20that\x20no\x20antivirus\x20or\x20firewall\x20software\x20blocks\x20the\x20Web\x20Socket\x20protocol\x20connections.'})));}['_onUnauthorized']({error:_0x594145}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x594145));}async['_authenticate'](_0x2a5431){try{this['_debugEvent']('authenticate:start');const _0x121bbc=await this['_emit'](0x2,{'token':_0x2a5431});this['_debugEvent']('authenticate:success','envId:\x20'+_0x121bbc['environmentId']+',\x20userId:\x20'+_0x121bbc['userId']),this['_addAuthData'](_0x121bbc['environmentId'],_0x121bbc['userId']);}catch(_0xeada){throw this['_debugEvent']('authenticate:error',_0xeada['message']),this['_removeAuthData'](),_0xeada;}}['_isDebugModeEnabled'](){return!!_0x1a0b09['window']['localStorage']&&'true'===(_0x1a0b09['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}};class IsEditorBundleUploadedMessage extends Message{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x33dcc1){super(),this['bundleVersion']=_0x33dcc1;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x18286d){return new IsEditorBundleUploadedMessage(_0x18286d['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x42b6b5){super(),this['isUploaded']=_0x42b6b5;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x1c4cde){return new IsEditorBundleUploadedResponse(_0x1c4cde['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x5be09e,_0x361e2e){const _0x431d84=new IsEditorBundleUploadedMessage(_0x361e2e);if(_0x5be09e['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5be09e);const _0x337ca6=await _0x5be09e['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x431d84));return MessagesCompressor['decode'](_0x337ca6,IsEditorBundleUploadedResponse)['isUploaded'];}}class RevisionHistoryGetRevisionMessage extends Message{['documentId'];['revisionId'];static ['TYPE']='123';static ['READABLE_TYPE_NAME']='getRevision';static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'revisionId':{'type':'string','id':0x2}}};constructor(_0x176dea,_0x2dfdac){super(),this['documentId']=_0x176dea,this['revisionId']=_0x2dfdac;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x50d448){return new RevisionHistoryGetRevisionMessage(_0x50d448['documentId'],_0x50d448['revisionId']);}}class RevisionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}}))());static['create'](_0x1e829f){return{'revisionId':_0x1e829f['id'],'name':_0x1e829f['name'],'creatorId':_0x1e829f['creatorId'],'createdAt':_0x1e829f['createdAt'],'fromVersion':_0x1e829f['fromVersion'],'toVersion':_0x1e829f['toVersion'],'isEmptyCurrent':_0x1e829f['isEmptyCurrent'],'diffData':_0x1e829f['diffData']?JSON['stringify'](_0x1e829f['diffData']):void 0x0,'attributes':_0x1e829f['attributes'],'authorsIds':_0x1e829f['authorsIds']};}static['toJSON'](_0x5672f9){return{'revisionId':_0x5672f9['revisionId'],'name':_0x5672f9['name'],'creatorId':_0x5672f9['creatorId'],'authorsIds':_0x5672f9['authorsIds']?JSON['stringify'](_0x5672f9['authorsIds']):void 0x0,'diffData':_0x5672f9['diffData'],'createdAt':_0x5672f9['createdAt']?.['toISOString'](),'attributes':_0x5672f9['attributes']?JSON['stringify'](_0x5672f9['attributes']):void 0x0,'toVersion':_0x5672f9['toVersion'],'fromVersion':_0x5672f9['fromVersion'],'isEmptyCurrent':_0x5672f9['isEmptyCurrent']};}static['fromJSON'](_0x5c5c04){return{'revisionId':(_0x5c5c04={..._0x5c5c04})['revisionId'],'name':_0x5c5c04['name'],'creatorId':_0x5c5c04['creatorId'],'authorsIds':_0x5c5c04['authorsIds']?JSON['parse'](_0x5c5c04['authorsIds']):void 0x0,'diffData':_0x5c5c04['diffData'],'createdAt':_0x5c5c04['createdAt']?new Date(_0x5c5c04['createdAt']):void 0x0,'attributes':_0x5c5c04['attributes']?JSON['parse'](_0x5c5c04['attributes']):void 0x0,'toVersion':_0x5c5c04['toVersion'],'fromVersion':_0x5c5c04['fromVersion'],'isEmptyCurrent':_0x5c5c04['isEmptyCurrent']};}static['toObject'](_0x4dc588){return function(_0x29de6b){for(const [_0x1c6ab1,_0x2038f6]of Object['entries'](_0x29de6b))void 0x0===_0x2038f6&&delete _0x29de6b[_0x1c6ab1];return _0x29de6b;}({'id':_0x4dc588['revisionId'],'name':_0x4dc588['name'],'creatorId':_0x4dc588['creatorId'],'createdAt':_0x4dc588['createdAt'],'fromVersion':_0x4dc588['fromVersion'],'toVersion':_0x4dc588['toVersion'],'isEmptyCurrent':_0x4dc588['isEmptyCurrent'],'diffData':_0x4dc588['diffData']?JSON['parse'](_0x4dc588['diffData']):void 0x0,'attributes':_0x4dc588['attributes'],'authorsIds':_0x4dc588['authorsIds']});}}class RevisionHistoryGetRevisionResponse extends Message{['revisionId'];['name'];['creatorId'];['authorsIds'];['createdAt'];['diffData'];['attributes'];['fromVersion'];['toVersion'];['isEmptyCurrent'];static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>RevisionDescriptor['DESCRIPTOR'])());constructor(_0x3240ba,_0xf25188,_0x5464e0,_0x105909,_0x1e0092,_0x2489bb,_0x523ec3,_0x468977,_0x49a3f0,_0xeab1d6){super(),this['revisionId']=_0x3240ba,this['name']=_0xf25188,this['creatorId']=_0x5464e0,this['authorsIds']=_0x105909,this['createdAt']=_0x1e0092,this['diffData']=_0x2489bb,this['attributes']=_0x523ec3,this['fromVersion']=_0x468977,this['toVersion']=_0x49a3f0,this['isEmptyCurrent']=_0xeab1d6;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x32365d){return new RevisionHistoryGetRevisionResponse(_0x32365d['revisionId'],_0x32365d['name'],_0x32365d['creatorId'],_0x32365d['authorsIds'],_0x32365d['createdAt'],_0x32365d['diffData'],_0x32365d['attributes'],_0x32365d['fromVersion'],_0x32365d['toVersion'],_0x32365d['isEmptyCurrent']);}static['fromJSON'](_0x12f997){return new RevisionHistoryGetRevisionResponse(_0x12f997['revisionId'],_0x12f997['name'],_0x12f997['creatorId'],_0x12f997['authorsIds']?JSON['parse'](_0x12f997['authorsIds']):void 0x0,_0x12f997['createdAt']?new Date(_0x12f997['createdAt']):void 0x0,_0x12f997['diffData'],_0x12f997['attributes']?JSON['parse'](_0x12f997['attributes']):void 0x0,_0x12f997['fromVersion'],_0x12f997['toVersion'],_0x12f997['isEmptyCurrent']);}}class RevisionHistoryUpdateRevisionsMessage extends Message{['documentId'];['requestId'];['revisions'];static ['TYPE']='124';static ['READABLE_TYPE_NAME']='updateRevisions';static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(_0x2d0230,_0x977db4,_0x504c78){super(),this['documentId']=_0x2d0230,this['requestId']=_0x977db4,this['revisions']=_0x504c78;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['create'](_0x34ab97){return new RevisionHistoryUpdateRevisionsMessage(_0x34ab97['documentId'],_0x34ab97['requestId'],_0x34ab97['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x53588){return new RevisionHistoryUpdateRevisionsMessage(_0x53588['documentId'],_0x53588['requestId'],_0x53588['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x4173aa){super(),this['requestId']=_0x4173aa;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x3b76e6){return new RevisionHistoryUpdateRevisionsResponse(_0x3b76e6['requestId']);}}class RevisionHistoryConnectMessage extends Message{['documentId'];static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x5348da){super(),this['documentId']=_0x5348da;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x4c55cd){return new RevisionHistoryConnectMessage(_0x4c55cd['documentId']);}}class RevisionHistoryConnectResponse extends Message{['channel'];['requestId'];['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(_0x542d13,_0x21dd97,_0x5c6cfa){super(),this['channel']=_0x542d13,this['requestId']=_0x21dd97,this['revisions']=_0x5c6cfa;}['toJSON'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['fromJSON'](_0x59eeff){return new RevisionHistoryConnectResponse(_0x59eeff['channel'],_0x59eeff['requestId'],_0x59eeff['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryReconnectMessage extends Message{['documentId'];['requestId'];static ['TYPE']='122';static ['READABLE_TYPE_NAME']='reconnectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryReconnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2}}};constructor(_0x588bc7,_0x27a069){super(),this['documentId']=_0x588bc7,this['requestId']=_0x27a069;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x376121){return new RevisionHistoryReconnectMessage(_0x376121['documentId'],_0x376121['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x5dcd79,_0x2c2c54){super(_0x5dcd79+'\x20Service\x20is\x20not\x20connected.',_0x2c2c54);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x33eab3){super(),this['_documentId']=_0x33eab3;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x51d600){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x51d600,new RevisionHistoryConnectMessage(this['_documentId']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}['reconnect'](_0x5c151f,_0x4ba400){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x5c151f);return this['_connect'](_0x5c151f,new RevisionHistoryReconnectMessage(this['_documentId'],_0x4ba400));}async['updateRevisions'](_0x3b7edc,_0x409ec4){const _0x1a54bc=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x409ec4,'revisions':_0x3b7edc}),_0x1c5dde=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x1a54bc),{requestId:_0x14dd97}=MessagesCompressor['decode'](_0x1c5dde,RevisionHistoryUpdateRevisionsResponse);return _0x14dd97;}async['getRevision'](_0x3c5c91){const _0x11e3ff=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x3c5c91),_0x5acaaa=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x11e3ff);return MessagesCompressor['decode'](_0x5acaaa,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0x61031f,_0x3067a2){if(_0x61031f['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x61031f);this['_wsGateway']=_0x61031f,this['stopListening'](_0x61031f,'change:state');const _0x4b3eca=await _0x61031f['_sendRequest'](0xc,_0x3067a2['constructor']['TYPE'],MessagesCompressor['encode'](_0x3067a2)),{channel:_0x4d1317,requestId:_0x1df183,revisions:_0x22ee32}=MessagesCompressor['decode'](_0x4b3eca,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0x61031f,'change:state',(_0x556cbe,_0x58b4c0,_0x3a5e6f)=>this['_onWsGatewayStateChange'](_0x3a5e6f),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x61031f,_0x4d1317),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x22ee32,'requestId':_0x1df183};}['_connectToChannel'](_0x2702f5,_0x3a82ef){this['_channel']=_0x2702f5['_getChannel'](RevisionHistoryService['_SERVICE'],_0x3a82ef),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x16b6fe,_0x15e2ef)=>{const {documentId:_0x224f4b,requestId:_0x5dfcdc,revisions:_0x16f06e}=MessagesCompressor['decode'](_0x15e2ef,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x224f4b,'requestId':_0x5dfcdc,'revisionsData':_0x16f06e});});}['_onWsGatewayStateChange'](_0x48111d){_0x48111d===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x40bdd1,_0x370f71){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x40bdd1,MessagesCompressor['encode'](_0x370f71));}}class AddSuggestionMessage extends Message{['id'];['documentId'];['type'];['data'];['originalSuggestionId'];['attributes'];static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x1f0830,_0x45a541,_0x4c415,_0x2b082b={},_0x128d29=null,_0x463a07=null){super(),this['id']=_0x1f0830,this['documentId']=_0x45a541,this['type']=_0x4c415,this['data']=_0x2b082b,this['originalSuggestionId']=_0x128d29,this['attributes']=_0x463a07;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x574d95){return new AddSuggestionMessage(_0x574d95['id'],_0x574d95['documentId'],_0x574d95['type'],JSON['parse'](_0x574d95['data']),_0x574d95['originalSuggestionId']??null,_0x574d95['attributes']?JSON['parse'](_0x574d95['attributes']):null);}}class AddSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x3615ed,_0x5180dc,_0x41dc4b,_0x1308d4,_0xbf18ef,_0x59d0ef,_0x15c3c5={},_0x4c7297=null){super(),this['id']=_0x3615ed,this['authorId']=_0x5180dc,this['type']=_0x41dc4b,this['hasComments']=_0xbf18ef,this['state']=_0x59d0ef,this['data']=_0x15c3c5,this['attributes']=_0x4c7297,this['createdAt']=_0x1308d4?new Date(_0x1308d4):void 0x0;}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x25e60b){return new AddSuggestionResponse(_0x25e60b['id'],_0x25e60b['authorId'],_0x25e60b['type'],_0x25e60b['createdAt'],_0x25e60b['hasComments'],_0x25e60b['state'],JSON['parse'](_0x25e60b['data']),_0x25e60b['attributes']?JSON['parse'](_0x25e60b['attributes']):null);}}class GetSuggestionMessage extends Message{['id'];['documentId'];static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x99e3d1,_0x33cf8d){super(),this['id']=_0x99e3d1,this['documentId']=_0x33cf8d;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x59c51a){return new GetSuggestionMessage(_0x59c51a['id'],_0x59c51a['documentId']);}}class GetSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x16e1d7,_0x45318f,_0x1a0649,_0x4c1772,_0x12597c,_0x444bed,_0x2829c0={},_0x4fb450=null){super(),this['id']=_0x16e1d7,this['authorId']=_0x45318f,this['type']=_0x1a0649,this['hasComments']=_0x12597c,this['state']=_0x444bed,this['data']=_0x2829c0,this['attributes']=_0x4fb450,this['createdAt']=new Date(_0x4c1772);}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x52b653){return new GetSuggestionResponse(_0x52b653['id'],_0x52b653['authorId'],_0x52b653['type'],_0x52b653['createdAt'],_0x52b653['hasComments'],_0x52b653['state'],JSON['parse'](_0x52b653['data']),_0x52b653['attributes']?JSON['parse'](_0x52b653['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x819f4c){super(),this['documentId']=_0x819f4c;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x494265){return new GetAllSuggestionsMessage(_0x494265['documentId']);}}class SuggestionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static['toJSON'](_0x5b7447){return{..._0x5b7447,'data':_0x5b7447['data']?JSON['stringify'](_0x5b7447['data']):_0x5b7447['data'],'attributes':_0x5b7447['attributes']?JSON['stringify'](_0x5b7447['attributes']):_0x5b7447['attributes'],'createdAt':_0x5b7447['createdAt']?.['toISOString']()};}static['fromJSON'](_0x4c0b93){return{..._0x4c0b93,'data':_0x4c0b93['data']?JSON['parse'](_0x4c0b93['data']):_0x4c0b93['data'],'attributes':_0x4c0b93['attributes']?JSON['parse'](_0x4c0b93['attributes']):_0x4c0b93['attributes'],'createdAt':_0x4c0b93['createdAt']?new Date(_0x4c0b93['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_0x3b20de,_0x31b96d){super(),this['_suggestions']=_0x3b20de,this['_suggestionsV2']=_0x31b96d,this['suggestions']=_0x31b96d?.['length']?_0x31b96d:_0x3b20de;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0x5c123a=>JSON['stringify'](_0x5c123a)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x19df5c){return new GetAllSuggestionResponse(_0x19df5c['suggestions']?.['map'](_suggestionFromString),_0x19df5c['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0x2515ab){const _0x326a3c=JSON['parse'](_0x2515ab);return _0x326a3c['createdAt']=_0x326a3c['createdAt']?new Date(_0x326a3c['createdAt']):void 0x0,_0x326a3c;}class UpdateSuggestionMessage extends Message{['id'];['documentId'];['hasComments'];['isHasCommentsModified'];['state'];['attributes'];static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x282c45,_0x55dd28,_0x5cf139,_0x9d6fc9,_0x1a0d10,_0x2a6dda=null){super(),this['id']=_0x282c45,this['documentId']=_0x55dd28,this['hasComments']=_0x5cf139,this['isHasCommentsModified']=_0x9d6fc9,this['state']=_0x1a0d10,this['attributes']=_0x2a6dda;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x3e48bf){return new UpdateSuggestionMessage(_0x3e48bf['id'],_0x3e48bf['documentId'],_0x3e48bf['hasComments'],_0x3e48bf['isHasCommentsModified'],_0x3e48bf['state'],_0x3e48bf['attributes']?JSON['parse'](_0x3e48bf['attributes']):null);}}let ConnectMessage$1=class e extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x5a19e4){super(),this['documentId']=_0x5a19e4;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x43080f){return new e(_0x43080f['documentId']);}},ConnectResponse$1=class e extends Message{['channel'];['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x3ed4fe,_0x187148,_0x20cecb){super(),this['channel']=_0x3ed4fe,this['_suggestions']=_0x187148,this['_suggestionsV2']=_0x20cecb,this['suggestions']=_0x20cecb?.['length']?_0x20cecb:_0x187148;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0x51ed02=>JSON['stringify'](_0x51ed02)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x23fbf8){return new e(_0x23fbf8['channel'],_0x23fbf8['suggestions']?.['map'](_0x592d75=>JSON['parse'](_0x592d75)),_0x23fbf8['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['ids'];['documentId'];['state'];static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0x5a4f64,_0x5a93d5,_0x18d218){super(),this['ids']=_0x5a4f64,this['documentId']=_0x5a93d5,this['state']=_0x18d218;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x2e330c){return new BatchUpdateSuggestionsStateMessage(_0x2e330c['ids'],_0x2e330c['documentId'],_0x2e330c['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0x419a9d){super(),this['_documentId']=_0x419a9d;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x5c0646){if(this['_isConnected'])return;if(_0x5c0646['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x5c0646);const _0x28d6a9=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x5c0646,this['stopListening'](_0x5c0646,'change:state');const _0x45fb03=await _0x5c0646['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x28d6a9)),_0x4e04ca=MessagesCompressor['decode'](_0x45fb03,ConnectResponse$1);return this['listenTo'](_0x5c0646,'change:state',(_0x3dd279,_0x1e59dc,_0x1ddf23)=>this['_onWsGatewayStateChange'](_0x1ddf23),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x5c0646,_0x4e04ca['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x4e04ca['suggestions'];}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x291a2f,_0x3471dd,_0x2ebb8b,_0x9425d1=null,_0x4a3fe4){const _0x4a8b12=new AddSuggestionMessage(_0x291a2f,this['_documentId'],_0x3471dd,_0x2ebb8b,_0x9425d1,_0x4a3fe4),_0x3eb9f2=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x4a8b12);return MessagesCompressor['decode'](_0x3eb9f2,AddSuggestionResponse);}async['get'](_0x59aa33,_0x53d851=0x1){const _0x442c4a=new GetSuggestionMessage(_0x59aa33,this['_documentId']);try{const _0x8a645c=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x442c4a);return MessagesCompressor['decode'](_0x8a645c,GetSuggestionResponse);}catch(_0x4c061a){if('CKEditorCloudServicesServerError'===_0x4c061a['name']&&'404'===_0x4c061a['code']&&_0x53d851<0x5)return await(_0x53c473=0x64*_0x53d851,new Promise(_0x348eed=>{setTimeout(_0x348eed,_0x53c473);})),this['get'](_0x59aa33,_0x53d851+0x1);if('CKEditorCloudServicesServerError'===_0x4c061a['name'])throw _0x4c061a;throw CKEditorCloudServicesServerError['fromPublicError'](_0x4c061a);}var _0x53c473;}async['getAll'](){const _0x5677a6=new GetAllSuggestionsMessage(this['_documentId']),_0x5d542a=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x5677a6),{suggestions:_0x5b1bf2}=MessagesCompressor['decode'](_0x5d542a,GetAllSuggestionResponse);return _0x5b1bf2;}async['update'](_0x257811,_0x278879={}){const {hasComments:_0x48b0fe,state:_0x4e447f,attributes:_0x5e5f45}=_0x278879,_0x3d7761=void 0x0!==_0x48b0fe,_0x2896eb=new UpdateSuggestionMessage(_0x257811,this['_documentId'],_0x48b0fe,_0x3d7761,_0x4e447f,_0x5e5f45);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x2896eb);}async['batchUpdateState'](_0x2dd511){const _0x77a2a0=new BatchUpdateSuggestionsStateMessage(_0x2dd511['ids'],this['_documentId'],_0x2dd511['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x77a2a0);}['_connectToChannel'](_0x4fae64,_0x5c74c0){this['_channel']=_0x4fae64['_getChannel'](TrackChangesService['_SERVICE'],_0x5c74c0),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x3a630a,_0x59fe61)=>{const _0x2b30f5=MessagesCompressor['decode'](_0x59fe61,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x2b30f5);});}['_onWsGatewayStateChange'](_0x45cac5){_0x45cac5===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0xae2185,_0x172ae2){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0xae2185,MessagesCompressor['encode'](_0x172ae2));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x4ec608,_0x45e534=[]){super(),this['channel']=_0x4ec608,this['sockets']=_0x45e534;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x13cabc=>({'user':_0x13cabc['userId'],'session':_0x13cabc['id'],'role':_0x13cabc['role'],'permissions':_0x13cabc['permissions']}))};}static['fromJSON'](_0x1327bb){return new SessionsConnectResponse(_0x1327bb['channel'],_0x1327bb['sockets']['map'](_0x432565=>({'id':_0x432565['session'],'userId':_0x432565['user'],'role':_0x432565['role'],'permissions':_0x432565['permissions']})));}}class SessionsConnectMessage extends Message{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x2133fd,_0x59ff03){super(),this['id']=_0x2133fd,this['sessionType']=_0x59ff03;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x23c4a1){return new SessionsConnectMessage(_0x23c4a1['id'],_0x23c4a1['sessionType']);}}class SocketConnectMessage extends Message{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0x19c087,_0x3ab3f3,_0x2b6971,_0x83cf3a){super(),this['id']=_0x19c087,this['userId']=_0x3ab3f3,this['role']=_0x2b6971,this['permissions']=_0x83cf3a;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x469e7d){return new SocketConnectMessage(_0x469e7d['id'],_0x469e7d['userId'],_0x469e7d['role'],_0x469e7d['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x45edc1){super(),this['id']=_0x45edc1;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x4efe6c){return new SocketDisconnectMessage(_0x4efe6c['id']);}}class SessionCollection extends Collection{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x513a93,_0x6edb44){super({'idProperty':'id'}),this['_id']=_0x513a93,this['_sessionType']=_0x6edb44;}async['connect'](_0x289f4e){this['_wsGateway']=_0x289f4e,this['stopListening'](_0x289f4e,'change:state');const _0x26cf66=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0x17da74;try{const _0xc64eb7=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x26cf66));_0x17da74=MessagesCompressor['decode'](_0xc64eb7,SessionsConnectResponse);}catch{_0x17da74=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0x17da74['channel'],this['_sessionType']);const _0x364a09=await async function(_0x4ec483,_0x3df483){const _0x2db1f1=_0x3df483['map'](_0x35037a=>_0x35037a['userId']),_0x486718=_0x2db1f1['length']?await User['getMany'](_0x4ec483,_0x2db1f1):[];return _0x3df483['map'](_0x3142c9=>{const _0x2f458e={'id':_0x3142c9['id'],'role':_0x3142c9['role'],'permissions':_0x3142c9['permissions']};return _0x2f458e['user']=_0x3142c9['userId']&&_0x486718['find'](_0x45bf19=>_0x45bf19['id']===_0x3142c9['userId'])||new User(),_0x2f458e;});}(this['_wsGateway'],_0x17da74['sockets']);for(const _0xf8419c of _0x364a09)super['add'](_0xf8419c);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x4a3ec3,_0x15fab5,_0x165760)=>this['_onWsGatewayStateChange'](_0x165760),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x1573e1=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0x1573e1&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x1573e1&&this['stopListening']();}}['add'](_0x5b5edc,_0x423c77){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x106660){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x2d6906,_0x3fccfb,_0x1f5531){this['_channel']=_0x2d6906['_getChannel'](_0x1f5531,_0x3fccfb),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0x21168b=>{const _0x379809=MessagesCompressor['decode'](_0x21168b,SocketConnectMessage);if(-0x1===this['getIndex'](_0x379809['id'])){const _0x546822={'id':_0x379809['id'],'role':_0x379809['role'],'permissions':_0x379809['permissions']};_0x379809['userId']&&(_0x546822['user']=await User['get'](_0x2d6906,_0x379809['userId'])),super['add'](_0x546822);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x3b32f5=>{const _0x35b5c8=MessagesCompressor['decode'](_0x3b32f5,SocketDisconnectMessage);-0x1!==this['getIndex'](_0x35b5c8['id'])&&super['remove'](_0x35b5c8['id']);}));}async['_onWsGatewayStateChange'](_0x365691){_0x365691===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x365691===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x23d777;for(this['_isRunning']=!0x0;_0x23d777=this['_eventsQueue']['shift']();){const _0x3c76eb=this['_handlers']['get'](_0x23d777['eventName']);_0x3c76eb&&await _0x3c76eb(_0x23d777['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x3e5b4f,_0x739a7a,_0x4ec6c4){const _0x780f33=_0x3e5b4f['getEventName'](_0x739a7a,!0x0);this['listenTo'](_0x3e5b4f,_0x780f33,async(_0x57164c,_0x3e137e)=>{const _0x5f48c8=_0x57164c['name'];this['_eventsQueue']['push']({'eventName':_0x5f48c8,'data':_0x3e137e}),await this['_runQueue']();}),this['_handlers']['set'](_0x780f33,_0x4ec6c4);}}let Sessions$1=class{static async['getConnectedSessions'](_0x5b48cf,_0x3964bb,_0xc730fe){const _0xb8febe=new SessionCollection(_0x3964bb,_0xc730fe);return await _0xb8febe['connect'](_0x5b48cf),_0xb8febe;}};class CollaborativeEditingConnectMessage extends Message{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x2b1825,_0x197248,_0x218c2d,_0x4d7692,_0x1f6eba=''){super(),this['id']=_0x2b1825,this['buffers']=_0x197248,this['types']=_0x218c2d,this['bundleVersion']=_0x4d7692,this['lastOperationId']=_0x1f6eba;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x3442b3){return new CollaborativeEditingConnectMessage(_0x3442b3['id'],_0x3442b3['buffers'],_0x3442b3['types'],_0x3442b3['bundleVersion'],_0x3442b3['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0xab76ab,_0x5c20c0){if(!_0xab76ab?.['length']||!_0x5c20c0?.['length'])return[];const _0x54e21c=[];let _0x22b751=0x0;for(const _0x3dc88b of _0xab76ab)if(0x0!==_0x3dc88b){if(!_0x5c20c0[_0x22b751])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x54e21c['push'](_0x5c20c0[_0x22b751]),_0x22b751++;}else _0x54e21c['push'](_0x54e21c[_0x54e21c['length']-0x1]);return _0x54e21c;}static['removeUnnecessaryMetadata'](_0x8040ab,_0x35c690){if(!_0x8040ab?.['length']||!_0x35c690?.['length'])return[];const _0x2d2032=[];for(let _0x1333f1=0x0;_0x1333f1<_0x8040ab['length'];_0x1333f1++)if(0x0!==_0x8040ab[_0x1333f1]){if(!_0x35c690[_0x1333f1])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2d2032['push'](_0x35c690[_0x1333f1]);}return _0x2d2032;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static['toJSON']({createdAt:_0x518b80,..._0x31cdbf}){const _0x14e21a={..._0x31cdbf};return _0x518b80?.['toISOString']&&(_0x14e21a['createdAt']=_0x518b80['toISOString']()),_0x14e21a;}static['fromJSON']({createdAt:_0x549714,..._0xfe6c87}){const _0x1e87a2={..._0xfe6c87};return _0x549714&&(_0x1e87a2['createdAt']=new Date(_0x549714)),_0x1e87a2;}}class CollaborativeEditingUpdateMessage extends Message{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x19c67c,_0x4ad2fd,_0x4ac9be,_0x4691f3,_0x5ca009=[],_0x167593=''){super(),this['id']=_0x19c67c,this['buffers']=_0x4ad2fd,this['types']=_0x4ac9be,this['baseVersion']=_0x4691f3,this['metadata']=_0x5ca009,this['lastOperationId']=_0x167593;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x565e68){return new CollaborativeEditingUpdateMessage(_0x565e68['id'],_0x565e68['buffers'],_0x565e68['types'],_0x565e68['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x565e68['types'],_0x565e68['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x565e68['lastOperationId']);}}class CollaborativeEditingReconnectMessage extends Message{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x2993fb,_0x420a5f,_0x1cd6b0){super(),this['id']=_0x2993fb,this['lastKnowVersion']=_0x420a5f,this['bundleVersion']=_0x1cd6b0;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x49a95a){return new CollaborativeEditingReconnectMessage(_0x49a95a['id'],_0x49a95a['lastKnowVersion'],_0x49a95a['bundleVersion']);}}class CollaborativeEditingResponse extends Message{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x20281c,_0x49ab68=[],_0x50f1b2=[],_0x432d75=[],_0xdbb695='',_0x3894af=null){super(),this['version']=_0x20281c,this['buffers']=_0x49ab68,this['types']=_0x50f1b2,this['metadata']=_0x432d75,this['lastOperationId']=_0xdbb695,this['lastOperationAcceptedAt']=_0x3894af;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x1a5808){return new CollaborativeEditingResponse(_0x1a5808['version'],_0x1a5808['buffers'],_0x1a5808['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x1a5808['types'],_0x1a5808['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x1a5808['lastOperationId'],_0x1a5808['lastOperationAcceptedAt']?new Date(_0x1a5808['lastOperationAcceptedAt']):null);}static['create'](_0x46c5a8){return new CollaborativeEditingResponse(_0x46c5a8['version'],_0x46c5a8['buffers'],_0x46c5a8['types'],_0x46c5a8['metadata'],_0x46c5a8['lastOperationId'],_0x46c5a8['lastOperationAcceptedAt']?new Date(_0x46c5a8['lastOperationAcceptedAt']):null);}}class CollaborativeEditingConnectResponse extends Message{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':OperationMetadataDescriptor['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x5595cd,_0x1b8dcd,_0x1e04ff=[],_0x3e157a=[],_0x27eec2=0x0,_0x4ab5ba=[],_0x2dcaa9=null,_0x324727='',_0x34615b='',_0x50fb01=null){super(),this['channel']=_0x5595cd,this['version']=_0x1b8dcd,this['buffers']=_0x1e04ff,this['types']=_0x3e157a,this['offset']=_0x27eec2,this['metadata']=_0x4ab5ba,this['initData']=_0x2dcaa9,this['sessionId']=_0x324727,this['lastOperationId']=_0x34615b,this['sessionCreatedAt']=_0x50fb01;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x5714cb){return new CollaborativeEditingConnectResponse(_0x5714cb['channel'],_0x5714cb['version'],_0x5714cb['buffers'],_0x5714cb['types'],_0x5714cb['offset'],_0x5714cb['metadata'],_0x5714cb['initData'],_0x5714cb['sessionId'],_0x5714cb['lastOperationId'],_0x5714cb['sessionCreatedAt']);}static['fromJSON'](_0x4eebcd){let _0x231f9f=null;return!0x0===_0x4eebcd['isInitialized']?_0x231f9f=_0x4eebcd['initData']??'':'boolean'!=typeof _0x4eebcd['isInitialized']&&_0x4eebcd['initData']&&(_0x231f9f=_0x4eebcd['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x4eebcd['channel'],'version':_0x4eebcd['version'],'buffers':_0x4eebcd['buffers'],'types':_0x4eebcd['types'],'offset':_0x4eebcd['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0x4eebcd['types'],_0x4eebcd['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0x231f9f,'sessionId':_0x4eebcd['sessionId'],'lastOperationId':_0x4eebcd['lastOperationId'],'sessionCreatedAt':_0x4eebcd['sessionCreatedAt']?new Date(_0x4eebcd['sessionCreatedAt']):null});}}class GetDocumentDetailsResponse extends Message{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x37dea7,_0x25c604){super(),this['lastDocumentSession']=_0x37dea7,this['currentDocumentSession']=_0x25c604;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x53d5dc){const _0x4e63b8=_0x53d5dc['lastDocumentSessionId']?{'id':_0x53d5dc['lastDocumentSessionId'],'lastOperationId':_0x53d5dc['lastDocumentSessionOperationId']}:void 0x0,_0x318cd7=_0x53d5dc['currentDocumentSessionId']?{'lastOperationId':_0x53d5dc['currentDocumentSessionOperationId'],'version':_0x53d5dc['currentDocumentSessionVersion'],'id':_0x53d5dc['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x4e63b8,_0x318cd7);}}class GetDocumentDetailsMessage extends Message{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x346f59){super(),this['documentId']=_0x346f59;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x298d85){return new GetDocumentDetailsMessage(_0x298d85['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x1b322e,_0x2fba40){if(super(),!_0x1b322e)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x2fba40??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x1b322e;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x2b0018,_0x4fbae6={'buffers':[],'types':[]},_0x2d6acc){const _0xb3cc21=new CollaborativeEditingConnectMessage(this['getId'](),_0x4fbae6['buffers'],_0x4fbae6['types'],this['_bundleVersion'],_0x2d6acc);return this['_connect'](_0x2b0018,_0xb3cc21);}['reconnect'](_0x42e4dd,_0x49e88b){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x42e4dd);return this['_connect'](_0x42e4dd,new CollaborativeEditingReconnectMessage(this['getId'](),_0x49e88b,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x3ebbc2=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x1a8261=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x3ebbc2));return MessagesCompressor['decode'](_0x1a8261,GetDocumentDetailsResponse);}async['sendOperations'](_0x1ee488,_0x178420,_0x419008){if(!_0x1ee488?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x24fdef='number'==typeof _0x178420?_0x178420:parseInt(_0x178420);if(!Number['isInteger'](_0x24fdef)||_0x24fdef<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x408c7c=new CollaborativeEditingUpdateMessage(this['getId'](),_0x1ee488['buffers'],_0x1ee488['types'],_0x24fdef,[],_0x419008);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x2315fb=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x408c7c));return MessagesCompressor['decode'](_0x2315fb,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']??=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1),this['_connectedSessions'];}static['getConnectedSessions'](_0x3ce7f1,_0x419729){return Sessions$1['getConnectedSessions'](_0x3ce7f1,_0x419729,0x1);}async['_connect'](_0x33f81d,_0x43f53f){if(this['isConnected']())return;if(_0x33f81d['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x33f81d);this['_wsGateway']=_0x33f81d,this['stopListening'](_0x33f81d,'change:state');const _0x5d69d4=await _0x33f81d['_sendRequest'](0x1,_0x43f53f['constructor']['TYPE'],MessagesCompressor['encode'](_0x43f53f)),_0x352eaa=MessagesCompressor['decode'](_0x5d69d4,CollaborativeEditingConnectResponse);return this['listenTo'](_0x33f81d,'change:state',(_0x2b8022,_0x2946e4,_0x2ebf02)=>this['_onWsGatewayStateChange'](_0x2ebf02),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x33f81d,_0x352eaa['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x352eaa;}['_connectToChannel'](_0xaf5a71,_0x19b620){this['_channel']=_0xaf5a71['_getChannel'](0x1,_0x19b620),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x239a89,_0x2df599)=>{const _0x55a2c8=MessagesCompressor['decode'](_0x2df599,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x55a2c8['baseVersion'],_0x55a2c8['data'],_0x55a2c8['metadata']);});}['_onWsGatewayStateChange'](_0x598fe4){_0x598fe4===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x4b4647){return{..._0x4b4647,'createdAt':_0x4b4647['createdAt']?.['toISOString'](),'attributes':_0x4b4647['attributes']?JSON['stringify'](_0x4b4647['attributes']):null};}static['fromJSON'](_0x40b115){return{..._0x40b115,'createdAt':new Date(_0x40b115['createdAt']),'attributes':_0x40b115['attributes']?JSON['parse'](_0x40b115['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x600fbe){return{..._0x600fbe,'createdAt':_0x600fbe['createdAt']?.['toISOString'](),'deletedAt':_0x600fbe['deletedAt']?.['toISOString'](),'resolvedAt':_0x600fbe['resolvedAt']?.['toISOString'](),'attributes':_0x600fbe['attributes']?JSON['stringify'](_0x600fbe['attributes']):null,'context':_0x600fbe['context']?JSON['stringify'](_0x600fbe['context']):_0x600fbe['context'],'comments':_0x600fbe['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x600fbe['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x299799){return{..._0x299799,'createdAt':_0x299799['createdAt']?new Date(_0x299799['createdAt']):void 0x0,'deletedAt':_0x299799['deletedAt']?new Date(_0x299799['deletedAt']):void 0x0,'resolvedAt':_0x299799['resolvedAt']?new Date(_0x299799['resolvedAt']):void 0x0,'attributes':_0x299799['attributes']?JSON['parse'](_0x299799['attributes']):null,'context':_0x299799['context']?JSON['parse'](_0x299799['context']):void 0x0,'comments':_0x299799['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x299799['unlinkedAt']?new Date(_0x299799['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x562eb7,_0x24d27a,_0x41a5c2,_0x5a2385='',_0x39afcb,_0x452099='',_0x4f6248=null,_0x364a5d){super(),this['documentId']=_0x562eb7,this['commentThreadId']=_0x24d27a,this['content']=_0x41a5c2,this['commentId']=_0x5a2385,this['userId']=_0x452099,this['attributes']=_0x4f6248,this['commentThread']=_0x364a5d,this['createdAt']=_0x39afcb?new Date(_0x39afcb):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x133d83){return new AddCommentMessage(_0x133d83['documentId'],_0x133d83['commentThreadId'],_0x133d83['content'],_0x133d83['commentId']?_0x133d83['commentId']:void 0x0,_0x133d83['createdAt']?new Date(_0x133d83['createdAt']):void 0x0,_0x133d83['userId']?_0x133d83['userId']:void 0x0,_0x133d83['attributes']?JSON['parse'](_0x133d83['attributes']):{},_0x133d83['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x133d83['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(_0x3b2230,_0x4884cc,_0x1aff28){super(),this['commentThreadId']=_0x3b2230,this['commentId']=_0x4884cc,this['createdAt']=new Date(_0x1aff28);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x3ae0c6){return new AddCommentResponse(_0x3ae0c6['commentThreadId'],_0x3ae0c6['commentId'],_0x3ae0c6['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x15718f){super(),this['documentId']=_0x15718f;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x3dfb6a){return new ConnectMessage(_0x3dfb6a['documentId']);}}class ConnectResponse extends Message{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x1e3634,_0x26285f,_0x239970){super(),this['channel']=_0x1e3634,this['_threads']=_0x26285f,this['_threadsV2']=_0x239970,this['threads']=_0x239970?.['length']?_0x239970:_0x26285f;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x2bf801=>JSON['stringify'](_0x2bf801)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x495c81){return new ConnectResponse(_0x495c81['channel'],_0x495c81['threads']?.['map'](_0x4a5046=>JSON['parse'](_0x4a5046)),_0x495c81['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(_0x3bf526,_0xa2a628,_0x210473){super(),this['documentId']=_0x3bf526,this['commentThreadId']=_0xa2a628,this['commentId']=_0x210473;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x2da806){return new RemoveCommentMessage(_0x2da806['documentId'],_0x2da806['commentThreadId'],_0x2da806['commentId']);}}class RemoveCommentThreadMessage extends Message{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x595e1e,_0x188391){super(),this['documentId']=_0x595e1e,this['commentThreadId']=_0x188391;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x1f4e6c){return new RemoveCommentThreadMessage(_0x1f4e6c['documentId'],_0x1f4e6c['commentThreadId']);}}class UpdateCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(_0x4a3887,_0xd538ba,_0x3a5cfe,_0x3daf88,_0x22897a=null,_0x3c69fd=!0x1,_0xb98cff){super(),this['documentId']=_0x4a3887,this['commentThreadId']=_0xd538ba,this['commentId']=_0x3a5cfe,this['content']=_0x3daf88,this['attributes']=_0x22897a,this['isAttributesUpdated']=_0x3c69fd,this['commentThread']=_0xb98cff;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x319e9a){return new UpdateCommentMessage(_0x319e9a['documentId'],_0x319e9a['commentThreadId'],_0x319e9a['commentId'],_0x319e9a['content'],_0x319e9a['attributes']?JSON['parse'](_0x319e9a['attributes']):null,_0x319e9a['isAttributesUpdated'],_0x319e9a['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x319e9a['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x27a3d5,_0x37b9ed){super(),this['commentThreadId']=_0x27a3d5,this['documentId']=_0x37b9ed;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0x540884){return new GetCommentThreadMessage(_0x540884['commentThreadId'],_0x540884['documentId']);}}class GetCommentThreadResponse extends Message{['commentThreadId'];['_comments'];['_commentsV2'];['resolvedBy'];['comments'];['createdAt'];['deletedAt'];['resolvedAt'];['attributes'];['context'];['unlinkedAt'];static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(_0x29c7cc,_0x22578b,_0x53ac1a,_0x2bcf92,_0x2fe995,_0x459229,_0x426532,_0x38c8aa,_0x48b376,_0x4c4e21){super(),this['commentThreadId']=_0x29c7cc,this['_comments']=_0x22578b,this['_commentsV2']=_0x53ac1a,this['resolvedBy']=_0x2fe995,this['comments']=_0x53ac1a?.['length']?_0x53ac1a:_0x22578b,this['createdAt']=_0x426532?new Date(_0x426532):void 0x0,this['deletedAt']='string'==typeof _0x38c8aa?new Date(_0x38c8aa):_0x38c8aa,this['resolvedAt']='string'==typeof _0x48b376?new Date(_0x48b376):_0x48b376,this['unlinkedAt']='string'==typeof _0x4c4e21?new Date(_0x4c4e21):_0x4c4e21,this['attributes']='string'==typeof _0x2bcf92?JSON['parse'](_0x2bcf92):_0x2bcf92,this['context']='string'==typeof _0x459229?JSON['parse'](_0x459229):_0x459229;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x1945e5=>JSON['stringify'](_0x1945e5)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x454186){return new GetCommentThreadResponse(_0x454186['commentThreadId'],_0x454186['comments']?.['map'](_0x535ec0=>function(_0x4a47dc){const _0xcb59a5=JSON['parse'](_0x4a47dc);return{..._0xcb59a5,'createdAt':new Date(_0xcb59a5['createdAt'])};}(_0x535ec0)),_0x454186['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0x454186['attributes']?JSON['parse'](_0x454186['attributes']):_0x454186['attributes'],_0x454186['resolvedBy'],_0x454186['context']?JSON['parse'](_0x454186['context']):_0x454186['context'],_0x454186['createdAt'],_0x454186['deletedAt'],_0x454186['resolvedAt'],_0x454186['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x2cf57a){super(),this['documentId']=_0x2cf57a;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1abd3c){return new GetDocumentThreadsMessage(_0x1abd3c['documentId']);}}class GetDocumentThreadsResponse extends Message{['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_0x37c568,_0x28e8b9){super(),this['_threads']=_0x37c568,this['_threadsV2']=_0x28e8b9,this['threads']=_0x28e8b9?.['length']?_0x28e8b9:_0x37c568;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x47cd91=>JSON['stringify'](_0x47cd91)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x1b492d){return new GetDocumentThreadsResponse(_0x1b492d['threads']?.['map'](_0x1b0a10=>function(_0x35b93f){const _0x42167b=JSON['parse'](_0x35b93f),_0x3e8084={..._0x42167b};return _0x42167b['comments']&&(_0x3e8084['comments']=_0x42167b['comments']?.['map'](_0x2e089f=>({..._0x2e089f,'createdAt':new Date(_0x2e089f['createdAt'])}))),_0x3e8084;}(_0x1b0a10)),_0x1b492d['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x5b36c4){return{'commentId':_0x5b36c4['commentId'],'createdAt':_0x5b36c4['createdAt']?.['toISOString']()};}static['fromJSON'](_0x649c67){return{'commentId':_0x649c67['commentId'],'createdAt':new Date(_0x649c67['createdAt'])};}}class AddCommentThreadResponse extends Message{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(_0x2a6311,_0x379234,_0x364dbc=[]){super(),this['commentThreadId']=_0x2a6311,this['comments']=_0x364dbc,this['createdAt']=new Date(_0x379234);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x545a98=>CommentThreadAddedCommentDescriptor['toJSON'](_0x545a98))};}static['fromJSON'](_0x6398ba){return new AddCommentThreadResponse(_0x6398ba['commentThreadId'],_0x6398ba['createdAt'],_0x6398ba['comments']['map'](_0x2c859c=>CommentThreadAddedCommentDescriptor['fromJSON'](_0x2c859c)));}}class AddCommentThreadMessage extends Message{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x54be58,_0xa0eb5b,_0x5e1ba0=[],_0x4dcde0,_0x8298f0=null,_0x4bbd8e=null,_0x50a644=null,_0x540404=null,_0x1ce119=null){super(),this['documentId']=_0x54be58,this['commentThreadId']=_0xa0eb5b,this['comments']=_0x5e1ba0,this['context']=_0x4dcde0,this['resolvedBy']=_0x8298f0,this['attributes']=_0x1ce119,this['createdAt']=_0x4bbd8e?new Date(_0x4bbd8e):'',this['resolvedAt']=_0x50a644?new Date(_0x50a644):'',this['deletedAt']=_0x540404?new Date(_0x540404):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x12c8d7=>CommentDescriptor['toJSON'](_0x12c8d7))};}static['fromJSON'](_0x5c0672){return new AddCommentThreadMessage(_0x5c0672['documentId'],_0x5c0672['commentThreadId'],_0x5c0672['comments']?.['map'](_0x52ff38=>CommentDescriptor['fromJSON']({..._0x52ff38,'documentId':_0x5c0672['documentId'],'commentThreadId':_0x5c0672['commentThreadId']})),_0x5c0672['context']?JSON['parse'](_0x5c0672['context']):_0x5c0672['context'],_0x5c0672['resolvedBy'],_0x5c0672['createdAt']?new Date(_0x5c0672['createdAt']):void 0x0,_0x5c0672['resolvedAt']?new Date(_0x5c0672['resolvedAt']):void 0x0,_0x5c0672['deletedAt']?new Date(_0x5c0672['deletedAt']):void 0x0,_0x5c0672['attributes']?JSON['parse'](_0x5c0672['attributes']):_0x5c0672['attributes']);}}class ResolveCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x6bcb0c,_0x5543cc,_0x14048e,_0x19fcc9){super(),this['commentThreadId']=_0x6bcb0c,this['documentId']=_0x5543cc,this['resolvedBy']=_0x14048e,this['resolvedAt']=_0x19fcc9?new Date(_0x19fcc9):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x559ef0){return new ResolveCommentThreadMessage(_0x559ef0['commentThreadId'],_0x559ef0['documentId'],_0x559ef0['resolvedBy'],_0x559ef0['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x4ae5ce,_0x4cb2a4){super(),this['commentThreadId']=_0x4ae5ce,this['documentId']=_0x4cb2a4;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x4b376b){return new ReopenCommentThreadMessage(_0x4b376b['commentThreadId'],_0x4b376b['documentId']);}}class UpdateCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x3e9050,_0x398942,_0x34d25d,_0x3a6c47=null,_0x6676f3=null){super(),this['commentThreadId']=_0x3e9050,this['documentId']=_0x398942,this['context']=_0x34d25d,this['attributes']=_0x3a6c47,this['unlinkedAt']=_0x6676f3?new Date(_0x6676f3):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0x1ff882){return new UpdateCommentThreadMessage(_0x1ff882['commentThreadId'],_0x1ff882['documentId'],_0x1ff882['context']?JSON['parse'](_0x1ff882['context']):_0x1ff882['context'],_0x1ff882['attributes']?JSON['parse'](_0x1ff882['attributes']):null,_0x1ff882['unlinkedAt']?new Date(_0x1ff882['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(_0x3bacac,_0x23bce2,_0x436ea8,_0x565793){super(),this['commentThreadId']=_0x3bacac,this['documentId']=_0x23bce2,this['resolvedBy']=_0x436ea8,this['resolvedAt']=new Date(_0x565793);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0xadf11a){return new ResolveCommentThreadResponse(_0xadf11a['commentThreadId'],_0xadf11a['documentId'],_0xadf11a['resolvedBy'],_0xadf11a['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x108d53){super(),this['_documentId']=_0x108d53;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x23889d){if(this['_isConnected'])return;if(_0x23889d['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x23889d);const _0x21c922=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x23889d,this['stopListening'](_0x23889d,'change:state');const _0x97153f=await _0x23889d['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x21c922)),{channel:_0x593378,threads:_0x1cdf7c}=MessagesCompressor['decode'](_0x97153f,ConnectResponse);return this['listenTo'](_0x23889d,'change:state',(_0x22ba32,_0x1e978d,_0x4cc163)=>this['_onWsGatewayStateChange'](_0x4cc163),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x23889d,_0x593378),this['_isConnected']=!0x0,this['fire']('connected'),_0x1cdf7c;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x5eb0cb,_0x478b33,_0x4ccfa3,_0x1f3918){const _0x171cee=new AddCommentMessage(this['_documentId'],_0x5eb0cb,_0x4ccfa3,_0x478b33,void 0x0,void 0x0,_0x1f3918),_0x4cfc84=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x171cee);return MessagesCompressor['decode'](_0x4cfc84,AddCommentResponse);}async['updateComment'](_0x506533,_0x535dfe,_0x4e5521,_0x13b88a){const _0x555445=void 0x0!==_0x13b88a,_0x3a185a=new UpdateCommentMessage(this['_documentId'],_0x506533,_0x535dfe,_0x4e5521,_0x13b88a,_0x555445);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x3a185a);}async['removeComment'](_0x3662b5,_0x8a0b6e){const _0x4e69a9=new RemoveCommentMessage(this['_documentId'],_0x3662b5,_0x8a0b6e);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x4e69a9);}async['removeCommentThread'](_0x31c755){const _0x18f5fa=new RemoveCommentThreadMessage(this['_documentId'],_0x31c755);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x18f5fa);}async['addCommentThread'](_0x236c6b){const _0x3914ae=new AddCommentThreadMessage(this['_documentId'],_0x236c6b['commentThreadId'],_0x236c6b['comments']?.['map'](_0x7611c1=>({..._0x7611c1,'documentId':this['_documentId'],'commentThreadId':_0x236c6b['commentThreadId']})),_0x236c6b['context'],_0x236c6b['resolvedBy'],_0x236c6b['createdAt'],_0x236c6b['resolvedAt'],_0x236c6b['deletedAt'],_0x236c6b['attributes']),_0x47faa2=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x3914ae);return MessagesCompressor['decode'](_0x47faa2,AddCommentThreadResponse);}async['resolveCommentThread'](_0x48cb10){const _0xc06a91=new ResolveCommentThreadMessage(_0x48cb10,this['_documentId']),_0x4c8d58=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0xc06a91);return MessagesCompressor['decode'](_0x4c8d58,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0x3ba68f){const _0x43bcc1=new ReopenCommentThreadMessage(_0x3ba68f,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x43bcc1);}async['updateCommentThread'](_0x1d99cc){const _0x42c4c2=new UpdateCommentThreadMessage(_0x1d99cc['commentThreadId'],this['_documentId'],_0x1d99cc['context'],_0x1d99cc['attributes'],_0x1d99cc['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x42c4c2);}async['getCommentThread'](_0x35fbcc,_0x4f5d1e=0x1){const _0x2d4bdd=new GetCommentThreadMessage(_0x35fbcc,this['_documentId']);try{const _0x2f0e63=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x2d4bdd),_0x2e3769=MessagesCompressor['decode'](_0x2f0e63,GetCommentThreadResponse);return{'commentThreadId':_0x2e3769['commentThreadId'],'comments':_0x2e3769['comments'],'attributes':_0x2e3769['attributes'],'context':_0x2e3769['context'],'resolvedAt':_0x2e3769['resolvedAt'],'resolvedBy':_0x2e3769['resolvedBy'],'deletedAt':_0x2e3769['deletedAt'],'unlinkedAt':_0x2e3769['unlinkedAt']};}catch(_0x13204c){if('CKEditorCloudServicesServerError'===_0x13204c['name']&&'404'===_0x13204c['code']&&_0x4f5d1e<0x5)return await(_0x1d4199=0x64*_0x4f5d1e,new Promise(_0x4afdbc=>{setTimeout(_0x4afdbc,_0x1d4199);})),this['getCommentThread'](_0x35fbcc,_0x4f5d1e+0x1);if('CKEditorCloudServicesServerError'===_0x13204c['name'])throw _0x13204c;throw CKEditorCloudServicesServerError['fromPublicError'](_0x13204c);}var _0x1d4199;}async['getDocumentThreads'](){const _0xad936c=new GetDocumentThreadsMessage(this['_documentId']),_0x3b2279=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0xad936c),{threads:_0x16a99e}=MessagesCompressor['decode'](_0x3b2279,GetDocumentThreadsResponse);return{'threads':_0x16a99e};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']??=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9),this['_connectedSessions'];}['_connectToChannel'](_0x22128e,_0x3d5832){this['_channel']=_0x22128e['_getChannel'](CommentsService['_SERVICE'],_0x3d5832),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x3ea14d,_0xa522f2)=>{const _0x5b9c7d=MessagesCompressor['decode'](_0xa522f2,AddCommentMessage);this['fire']('commentAdded',_0x5b9c7d);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x3a3311,_0x46f9e5)=>{const _0x507345=MessagesCompressor['decode'](_0x46f9e5,RemoveCommentMessage);this['fire']('commentRemoved',_0x507345);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x67b1d8,_0x2cbabe)=>{const _0x3cf5c9=MessagesCompressor['decode'](_0x2cbabe,UpdateCommentMessage);this['fire']('commentUpdated',_0x3cf5c9);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x57d789,_0x332169)=>{const _0x2c4cd4=MessagesCompressor['decode'](_0x332169,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x2c4cd4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x49eafd,_0x4afaa9)=>{const _0x15db9a=MessagesCompressor['decode'](_0x4afaa9,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0x15db9a);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x3147b0,_0x3015fe)=>{const _0x3b3915=MessagesCompressor['decode'](_0x3015fe,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x3b3915);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x4cfc69,_0x5ea184)=>{const _0x1c2f17=MessagesCompressor['decode'](_0x5ea184,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x1c2f17);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0x316899,_0x3e0b67)=>{const _0x5d5c7a=MessagesCompressor['decode'](_0x3e0b67,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x5d5c7a);}));}['_onWsGatewayStateChange'](_0x354f3a){_0x354f3a===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x350c68,_0x2d5872){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x350c68,MessagesCompressor['encode'](_0x2d5872));}}class WebSocketGateway extends ContextPlugin{static ['WebSocketGateway']=/* #__PURE__ -- @preserve */
((()=>WebSocketGateway$1)());static ['initialReconnectionInterval']=0x3e8;['connection'];['_reconnectionStack'];['_shouldPluginsReconnect'];['_domEmitter'];static get['requires'](){return[CloudServices,Notification];}static get['pluginName'](){return'WebSocketGateway';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdbc31c){super(_0xdbc31c),this['set']('state',WEB_SOCKET_GATEWAY_STATES['CONNECTED']),this['set']('_isBrowserOffline',!0x1),this['_reconnectionStack']=new Set(),this['_shouldPluginsReconnect']=!0x1,this['_domEmitter']=new(DomEmitterMixin())();}['init'](){const _0x2bdec1=this['context'],_0x4a5341=_0x2bdec1['plugins']['get'](CloudServices),_0x373b6f=_0x2bdec1['plugins']['get'](Notification);if(!_0x4a5341['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x4a5341['webSocketUrl'])throw new CKEditorError('websocketgateway-missing-websocket-url',this);return this['_domEmitter']['listenTo'](window,'offline',()=>this['_isBrowserOffline']=!0x0),this['_domEmitter']['listenTo'](window,'online',()=>this['_isBrowserOffline']=!0x1),this['context']['config']['define']('cloudServices.connectionTimeout',0xa),this['context']['config']['define']('cloudServices.requestTimeout',0x14),WebSocketGateway['WebSocketGateway']['connect'](_0x4a5341['token'],_0x4a5341['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x40ec0d=>{if(this['connection']=_0x40ec0d,this['bind']('state')['to'](_0x40ec0d,'state',this,'_isBrowserOffline',(_0x5cb6f4,_0x1d76d4)=>('connected'!==_0x5cb6f4&&(this['_shouldPluginsReconnect']=!0x0),_0x1d76d4||_0x5cb6f4!==WEB_SOCKET_GATEWAY_STATES['CONNECTED']?WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']:this['state']==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['_shouldPluginsReconnect']?(this['_shouldPluginsReconnect']=!0x1,this['_reconnect'](),WEB_SOCKET_GATEWAY_STATES['CONNECTING']):WEB_SOCKET_GATEWAY_STATES['CONNECTED'])),this['connection']['on']('error',(_0x2bee70,_0x5edec7)=>{if('limitExceeded'!==_0x5edec7['code'])throw console['error'](_0x5edec7),new CKEditorError('cloudservices-init',null,{'originalError':_0x5edec7});_0x373b6f['showWarning']('The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.',{'title':'Connected\x20users\x20limit\x20exceeded','namespace':'real-time-collaboration'});}),!_0x40ec0d['me'])return new Promise(_0x3f9d59=>_0x40ec0d['on']('change:me',_0x3f9d59));})['catch'](_0x438eb4=>{throw console['error'](_0x438eb4),new CKEditorError('cloudservices-init',null,{'originalError':_0x438eb4});});}['addToReconnectionStack'](_0xa04606){if('function'!=typeof _0xa04606['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0xa04606))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0xa04606['constructor']['pluginName']});this['_reconnectionStack']['add'](_0xa04606);}['removeFromReconnectionStack'](_0x3f8aa6){this['_reconnectionStack']['delete'](_0x3f8aa6);}['isInReconnectionStack'](_0x2e9d7b){return this['_reconnectionStack']['has'](_0x2e9d7b);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0x253d17=>_0x253d17['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0x5ea01f=>{throw console['error'](_0x5ea01f),new CKEditorError('cloudservices-reconnection-error',this['context']);});}['disconnect'](){this['connection']&&this['connection']['disconnect'](),this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_domEmitter']['stopListening']();}['destroy'](){this['disconnect'](),super['destroy']();}}class Sessions extends ContextPlugin{['channelSessions'];['channelConnectedUsers'];['allConnectedUsers'];['_registeredSessions'];['_uniqueUsersCount'];['_users'];static get['pluginName'](){return'Sessions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[WebSocketGateway,Users];}constructor(_0x327056){super(_0x327056),this['channelSessions']=new Map(),this['channelConnectedUsers']=new Map(),this['allConnectedUsers']=new Collection(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this['_users']=this['context']['plugins']['get'](Users);}['init'](){const _0xc3252a=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0xc3252a,'change:state',(_0x551714,_0x1bd1d4,_0x431aca)=>{if('connected'!==_0x431aca)this['channelSessions']['forEach'](_0x5a6e30=>_0x5a6e30['clear']()),this['channelConnectedUsers']['forEach'](_0xe4926=>_0xe4926['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x3325da,_0x4c26f8]of this['_registeredSessions'])for(const _0x1537fe of _0x4c26f8)this['_handleSessionAdd'](_0x3325da,_0x1537fe);}}),this['_createUser'](_0xc3252a['connection']['me'],!0x0);}['register'](_0x253784,_0xd33496){if(this['_registeredSessions']['has'](_0x253784))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x253784});this['_registeredSessions']['set'](_0x253784,_0xd33496),this['channelSessions']['set'](_0x253784,new Collection()),this['channelConnectedUsers']['set'](_0x253784,new Collection()),this['listenTo'](_0xd33496,'add',(_0x1d3b72,_0x1ef770)=>this['_handleSessionAdd'](_0x253784,_0x1ef770)),this['listenTo'](_0xd33496,'remove',(_0xd50367,_0x5dbbba)=>this['_handleSessionRemove'](_0x253784,_0x5dbbba));for(const _0x13b855 of _0xd33496)this['_handleSessionAdd'](_0x253784,_0x13b855);}['unregister'](_0x5a6d25){if(!this['_registeredSessions']['has'](_0x5a6d25))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0x5a6d25});const _0x26bd52=this['_registeredSessions']['get'](_0x5a6d25);this['stopListening'](_0x26bd52);for(const _0x412e17 of _0x26bd52)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0x5a6d25,_0x412e17);this['_registeredSessions']['delete'](_0x5a6d25),this['channelSessions']['delete'](_0x5a6d25),this['channelConnectedUsers']['delete'](_0x5a6d25);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0x52e472){for(const _0x26374a of this['channelSessions']['values']())for(const _0x550fe9 of _0x26374a)if(_0x550fe9['id']===_0x52e472)return _0x550fe9['user'];}['getUserSessions'](_0x31d2d0,_0x27485f){const _0x5f0e46=_0x27485f?[this['channelSessions']['get'](_0x27485f)]:this['channelSessions']['values'](),_0xc029e8=new Set();for(const _0x48bd11 of _0x5f0e46)for(const _0x484e22 of _0x48bd11)_0x484e22['user']['id']===_0x31d2d0['id']&&_0xc029e8['add'](_0x484e22['id']);return _0xc029e8;}['getUserRole'](_0x26922d){for(const _0x458f32 of this['channelSessions']['values']())for(const _0x19fea4 of _0x458f32)if(_0x19fea4['user']===_0x26922d)return _0x19fea4['role'];}['_handleSessionAdd'](_0x2557a9,_0x571ecc){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x36cf31=_0x571ecc['user'],_0x2767f1=this['_users']['getUser'](_0x36cf31['id'])||this['_createUser'](_0x36cf31),_0x2ad234=Object['assign']({},_0x571ecc,{'user':_0x2767f1});if(this['channelSessions']['get'](_0x2557a9)['add'](_0x2ad234),!_0x36cf31['hiddenInPresenceList']){const _0x4745b1=this['channelConnectedUsers']['get'](_0x2557a9);_0x4745b1['has'](_0x2767f1['id'])||_0x4745b1['add'](_0x2767f1),this['allConnectedUsers']['has'](_0x2767f1['id'])||_0x36cf31['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0x2767f1,_0x2767f1['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x2557a9,{'channelId':_0x2557a9,'session':_0x2ad234});}['_handleSessionRemove'](_0x26c397,_0x652d5f){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0xe0ade5=this['channelConnectedUsers']['get'](_0x26c397),_0x47abdd=_0x652d5f['user'];_0x47abdd['id']&&(this['channelSessions']['get'](_0x26c397)['remove'](_0x652d5f['id']),_0xe0ade5['has'](_0x47abdd['id'])&&!this['getUserSessions'](_0x47abdd,_0x26c397)['size']&&_0xe0ade5['remove'](_0x47abdd['id']),this['allConnectedUsers']['get'](_0x47abdd['id'])&&!this['getUserSessions'](_0x47abdd)['size']&&this['allConnectedUsers']['remove'](_0x47abdd['id']));}['_createUser'](_0x2e21a0,_0x75bff9){const _0x301819=this['_users']['addUser'](_0x2e21a0);return _0x75bff9&&this['_users']['defineMe'](_0x2e21a0['id']),_0x301819['orderNumber']=this['_uniqueUsersCount']++,_0x301819;}}class UserMarkers extends Plugin{['_domEmitter']=new(DomEmitterMixin())();static get['requires'](){return[Sessions];}static get['pluginName'](){return'UserMarkers';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x52b38d=this['editor'],_0x1aa8ad=_0x52b38d['plugins']['get'](Sessions);_0x52b38d['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x157729,{writer:_0x599d60})=>createUserPositionViewElement(_0x157729,_0x599d60,_0x1aa8ad,_0x52b38d)}),_0x52b38d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x3b0957=>createUserRangeViewElement(_0x3b0957,_0x1aa8ad)}),createUserMarkerPostFixer(_0x52b38d),this['_domEmitter']['listenTo'](_0x1a0b09['document'],'keydown',(_0x117048,{key:_0x3b4ee2})=>{'Escape'===_0x3b4ee2&&hideHoveredUserPositionMarkersTooltips(_0x52b38d);},{'useCapture':!0x0});}['afterInit'](){const _0x391174=this['editor'],_0x4c29c7=_0x391174['commands']['get']('undo');_0x4c29c7&&_0x391174['model']['on']('applyOperation',(_0x2fc52e,_0x3263d8)=>{const _0x13a1ad=_0x3263d8[0x0];if(!_0x13a1ad['isDocumentOperation'])return;if('marker'!=_0x13a1ad['type']||!_0x13a1ad['name']['startsWith']('user:'))return;const _0x6a1ab1=_0x13a1ad['batch'];_0x4c29c7['_createdBatches']['has'](_0x6a1ab1)&&(_0x13a1ad['newRange']=_0x13a1ad['oldRange']?_0x391174['model']['createRange'](_0x13a1ad['oldRange']['start'],_0x13a1ad['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0x142755=this['editor'],_0x4a2733=_0x142755['model']['document'],_0x49d0ec=_0x142755['plugins']['get'](Sessions);_0x142755['model']['enqueueChange']({'isUndoable':!0x1},_0x57023a=>{const _0x1508bf='user:range:'+_0x49d0ec['mySessionId'],_0x506830='user:position:'+_0x49d0ec['mySessionId'],_0x4212e1=_0x142755['model']['markers']['has'](_0x1508bf);_0x142755['editing']['view']['hasDomSelection']?updateUserMarkers(_0x49d0ec['mySessionId'],_0x4a2733['selection']['getFirstRange'](),_0x142755['model'],_0x57023a):_0x4212e1&&(_0x57023a['removeMarker'](_0x1508bf),_0x57023a['removeMarker'](_0x506830));});}}function updateUserMarkers(_0x379843,_0xf8cfde,_0x47e398,_0x1d1271){const _0x71ff64='user:range:'+_0x379843,_0x4bc024='user:position:'+_0x379843,_0x1d7bd8=_0xf8cfde['getContainedElement']();let _0x43d0e3=_0xf8cfde['start'];if(_0x1d7bd8&&_0x1d7bd8['is']('element','tableCell')){const _0x276027=getPositionForText(_0xf8cfde,_0x47e398);_0x276027&&(_0x43d0e3=_0x276027,_0xf8cfde=_0x1d1271['createRange'](_0x43d0e3));}const _0x174c03=_0x1d1271['createRange'](_0x43d0e3);_0x47e398['markers']['has'](_0x71ff64)?(_0x1d1271['updateMarker'](_0x71ff64,{'range':_0xf8cfde}),_0x1d1271['updateMarker'](_0x4bc024,{'range':_0x174c03})):(_0x1d1271['addMarker'](_0x71ff64,{'range':_0xf8cfde,'usingOperation':!0x0}),_0x1d1271['addMarker'](_0x4bc024,{'range':_0x174c03,'usingOperation':!0x0}));}function getPositionForText(_0x4dffd0,_0x9b62dc){for(const _0x248fed of _0x4dffd0['getPositions']())if(_0x9b62dc['schema']['checkChild'](_0x248fed,'$text'))return _0x248fed;}function createUserPositionViewElement(_0x53e8cc,_0x1f6b69,_0x42097c,_0x527b24){const _0x81ab64=_0x53e8cc['markerName']['split'](':')[0x2],_0x10c2c0=_0x42097c['getUserBySessionId'](_0x81ab64);if(!_0x10c2c0||_0x81ab64===_0x42097c['mySessionId'])return;if(!_0x527b24['model']['schema']['checkChild'](_0x53e8cc['markerRange']['start'],'$text'))return;const _0x321f6a={'class':'ck-user__marker\x20'+_0x10c2c0['color']['getMarkerClass'](),'style':getUserColorStyle(_0x10c2c0),'data-name':_0x10c2c0['name'],'data-session-id':_0x81ab64},_0x393c76=_0x527b24['model']['markers']['get'](_0x53e8cc['markerName'])['getStart'](),_0x365232=_0x393c76['nodeAfter'],_0x2440bc=_0x527b24['model']['schema'];if(_0x365232&&_0x2440bc['isObject'](_0x365232)&&_0x2440bc['isInline'](_0x365232)&&!_0x527b24['model']['markers']['get']('user:range:'+_0x81ab64)['getRange']()['isCollapsed'])return;const _0x1656a5=_0x393c76['parent'];return _0x527b24['model']['schema']['isLimit'](_0x1656a5)&&!_0x527b24['model']['hasContent'](_0x1656a5)&&(_0x321f6a['contenteditable']=!0x1),createUserPositionMarkerElement(_0x1f6b69,_0x321f6a,_0x10c2c0);}function createUserRangeViewElement(_0x1140d4,_0xd90a78){const _0x1e5319=_0x1140d4['markerName']['split'](':')[0x2];if(_0x1e5319===_0xd90a78['mySessionId'])return null;const _0x14a071=_0xd90a78['getUserBySessionId'](_0x1e5319);return _0x14a071?{'id':_0x1e5319,'classes':['ck-user__selection',_0x14a071['color']['getSelectionClass']()],'attributes':{'style':getUserColorStyle(_0x14a071),'data-session-id':_0x1e5319},'priority':0x7d0+_0x14a071['orderNumber']}:{'id':_0x1e5319,'classes':[]};}function getUserColorStyle(_0x407fff){return'--ck-user-color:'+_0x407fff['color']['getColorVariable']()+';--ck-user-color-alpha:'+_0x407fff['color']['getColorAlphaVariable']()+';';}function createUserPositionMarkerElement(_0xc91f93,_0x5868e4,_0x481beb){const _0x2146f1=_0xc91f93['createUIElement']('span',_0x5868e4);return _0xc91f93['setCustomProperty']('userPositionMarker',!0x0,_0x2146f1),_0x2146f1['render']=function(_0x594c93){const _0x2908cd=this['toDomElement'](_0x594c93),_0x4e6fe9=document['createElement']('span');return _0x4e6fe9['classList']['add']('ck-user__marker-tooltip'),_0x4e6fe9['setAttribute']('contenteditable','false'),_0x4e6fe9['setAttribute']('spellcheck','false'),_0x4e6fe9['textContent']=_0x481beb['name'],_0x2908cd['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x4e6fe9['outerHTML']+'⁠',_0x2908cd['addEventListener']('mouseenter',()=>{_0x2908cd['classList']['add']('ck-user__marker_hovered');}),_0x2908cd['addEventListener']('mouseleave',()=>{_0x2908cd['classList']['remove']('ck-user__marker_hovered');}),_0x2908cd;},_0x2146f1['isSimilar']=function(_0x515ca2){return!(!this['getCustomProperty']('userPositionMarker')||!_0x515ca2['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x515ca2['getAttribute']('data-session-id'));},_0x2146f1;}function hideHoveredUserPositionMarkersTooltips(_0x17b025){_0x17b025['editing']['view']['change'](_0x513fed=>{for(const _0x582abc of _0x17b025['model']['markers']){if(!_0x582abc['name']['startsWith']('user:position'))continue;const _0x5263de=_0x17b025['editing']['mapper']['markerNameToElements'](_0x582abc['name']);if(_0x5263de){for(const _0x330bd0 of _0x5263de)_0x513fed['removeClass']('ck-user__marker_hovered',_0x330bd0);}}});}function createUserMarkerPostFixer(_0x313dae){const _0xc5d9df=_0x313dae['model'],_0x201ce5=new Map(),_0x2fca0e=_0x313dae['plugins']['get'](Sessions);_0xc5d9df['markers']['on']('update:user:range',(_0x128c8c,_0x218d7a,_0x49fa1f,_0x162104)=>{if(!_0x162104&&_0x201ce5['get'](_0x218d7a['name']))return _0x201ce5['get'](_0x218d7a['name'])['detach'](),void _0x201ce5['delete'](_0x218d7a['name']);const _0x299bf1=_0x218d7a['name']['split'](':')[0x2];if(_0x299bf1===_0x2fca0e['mySessionId'])return;const _0x2b79b3='user:position:'+_0x299bf1;_0xc5d9df['markers']['has'](_0x2b79b3)&&_0x313dae['editing']['reconvertMarker'](_0x2b79b3),_0x218d7a['on']('change:range',(_0x314add,_0x6a796c,_0x2d6d33)=>{if('$graveyard'!=_0x6a796c['root']['rootName']&&'$graveyard'==_0x218d7a['getRange']()['root']['rootName']&&!_0x201ce5['has'](_0x218d7a['name'])){const _0x47fe80=_0xc5d9df['schema']['getNearestSelectionRange'](_0x2d6d33['deletionPosition']);if(_0x47fe80){const _0x2cee45=ModelLiveRange['fromRange'](_0x47fe80);_0x201ce5['set'](_0x218d7a['name'],_0x2cee45),_0x2cee45['on']('change:range',(_0x67ee0c,_0x551fa1,_0x5a022b)=>{if('$graveyard'==_0x2cee45['root']['rootName']){const _0x2ef30a=_0xc5d9df['schema']['getNearestSelectionRange'](_0x5a022b['deletionPosition']);_0x2ef30a?(_0x2cee45['start']=_0x2ef30a['start'],_0x2cee45['end']=_0x2ef30a['end']):(_0x201ce5['delete'](_0x218d7a['name']),_0x2cee45['detach']());}});}}});}),_0xc5d9df['document']['on']('change',()=>{_0x201ce5['size']>0x0&&_0xc5d9df['enqueueChange']({'isUndoable':!0x1},_0x261f89=>{for(const [_0x5eb8a4,_0x28f9a3]of _0x201ce5)'$graveyard'==_0xc5d9df['markers']['get'](_0x5eb8a4)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x5eb8a4['split'](':')[0x2],_0x28f9a3['toRange'](),_0xc5d9df,_0x261f89),_0x28f9a3['detach']());_0x201ce5['clear']();});});}function getTranslation$6(_0x296150,_0x3d249d,_0x4aadaf){const _0x5f3329=_0x296150['t'],t=_0x296150['t'];switch(_0x3d249d){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'Connected\x20users\x20list\x20dropdown\x20menu':return t('Connected\x20users\x20list\x20dropdown\x20menu');case'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':return t('Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)');case'Connected\x20users\x20list':return t('Connected\x20users\x20list');case'PENDING_ACTION_REVISION_HISTORY':return _0x5f3329({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x4aadaf);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x2ed785=minimalExports['Reader'],_0xb5c921=minimalExports['Writer'],_0x37d7b4=minimalExports['util'],_0x59f1d2=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x59f1d2['AttributeOperation']=(function(){function _0x3deeff(_0x29a179){if(_0x29a179){for(var _0x3bfce3=Object['keys'](_0x29a179),_0x1aed72=0x0;_0x1aed72<_0x3bfce3['length'];++_0x1aed72)null!=_0x29a179[_0x3bfce3[_0x1aed72]]&&(this[_0x3bfce3[_0x1aed72]]=_0x29a179[_0x3bfce3[_0x1aed72]]);}}return _0x3deeff['prototype']['range']=null,_0x3deeff['prototype']['key']='',_0x3deeff['prototype']['oldValueBoolean']=!0x1,_0x3deeff['prototype']['oldValueJson']='',_0x3deeff['prototype']['newValueBoolean']=!0x1,_0x3deeff['prototype']['newValueJson']='',_0x3deeff['prototype']['wasUndone']=!0x1,_0x3deeff['create']=function(_0x5c0912){return new _0x3deeff(_0x5c0912);},_0x3deeff['encode']=function(_0x33b5f3,_0x5bace8){return _0x5bace8||(_0x5bace8=_0xb5c921['create']()),null!=_0x33b5f3['range']&&Object['hasOwnProperty']['call'](_0x33b5f3,'range')&&_0x59f1d2['Range']['encode'](_0x33b5f3['range'],_0x5bace8['uint32'](0xa)['fork']())['ldelim'](),null!=_0x33b5f3['key']&&Object['hasOwnProperty']['call'](_0x33b5f3,'key')&&_0x5bace8['uint32'](0x12)['string'](_0x33b5f3['key']),null!=_0x33b5f3['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x33b5f3,'oldValueBoolean')&&_0x5bace8['uint32'](0x18)['bool'](_0x33b5f3['oldValueBoolean']),null!=_0x33b5f3['oldValueJson']&&Object['hasOwnProperty']['call'](_0x33b5f3,'oldValueJson')&&_0x5bace8['uint32'](0x22)['string'](_0x33b5f3['oldValueJson']),null!=_0x33b5f3['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x33b5f3,'newValueBoolean')&&_0x5bace8['uint32'](0x28)['bool'](_0x33b5f3['newValueBoolean']),null!=_0x33b5f3['newValueJson']&&Object['hasOwnProperty']['call'](_0x33b5f3,'newValueJson')&&_0x5bace8['uint32'](0x32)['string'](_0x33b5f3['newValueJson']),null!=_0x33b5f3['wasUndone']&&Object['hasOwnProperty']['call'](_0x33b5f3,'wasUndone')&&_0x5bace8['uint32'](0x38)['bool'](_0x33b5f3['wasUndone']),_0x5bace8;},_0x3deeff['encodeDelimited']=function(_0x1f07ac,_0x542247){return this['encode'](_0x1f07ac,_0x542247)['ldelim']();},_0x3deeff['decode']=function(_0x45f5d8,_0x249c46){_0x45f5d8 instanceof _0x2ed785||(_0x45f5d8=_0x2ed785['create'](_0x45f5d8));for(var _0x5cdd0d=void 0x0===_0x249c46?_0x45f5d8['len']:_0x45f5d8['pos']+_0x249c46,_0x472280=new _0x59f1d2['AttributeOperation']();_0x45f5d8['pos']<_0x5cdd0d;){var _0x798380=_0x45f5d8['uint32']();switch(_0x798380>>>0x3){case 0x1:_0x472280['range']=_0x59f1d2['Range']['decode'](_0x45f5d8,_0x45f5d8['uint32']());break;case 0x2:_0x472280['key']=_0x45f5d8['string']();break;case 0x3:_0x472280['oldValueBoolean']=_0x45f5d8['bool']();break;case 0x4:_0x472280['oldValueJson']=_0x45f5d8['string']();break;case 0x5:_0x472280['newValueBoolean']=_0x45f5d8['bool']();break;case 0x6:_0x472280['newValueJson']=_0x45f5d8['string']();break;case 0x7:_0x472280['wasUndone']=_0x45f5d8['bool']();break;default:_0x45f5d8['skipType'](0x7&_0x798380);}}return _0x472280;},_0x3deeff['decodeDelimited']=function(_0x56905d){return _0x56905d instanceof _0x2ed785||(_0x56905d=new _0x2ed785(_0x56905d)),this['decode'](_0x56905d,_0x56905d['uint32']());},_0x3deeff['verify']=function(_0x4a3116){if('object'!=typeof _0x4a3116||null===_0x4a3116)return'object\x20expected';if(null!=_0x4a3116['range']&&_0x4a3116['hasOwnProperty']('range')){var _0x456166=_0x59f1d2['Range']['verify'](_0x4a3116['range']);if(_0x456166)return'range.'+_0x456166;}return null!=_0x4a3116['key']&&_0x4a3116['hasOwnProperty']('key')&&!_0x37d7b4['isString'](_0x4a3116['key'])?'key:\x20string\x20expected':null!=_0x4a3116['oldValueBoolean']&&_0x4a3116['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x4a3116['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x4a3116['oldValueJson']&&_0x4a3116['hasOwnProperty']('oldValueJson')&&!_0x37d7b4['isString'](_0x4a3116['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x4a3116['newValueBoolean']&&_0x4a3116['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x4a3116['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x4a3116['newValueJson']&&_0x4a3116['hasOwnProperty']('newValueJson')&&!_0x37d7b4['isString'](_0x4a3116['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x4a3116['wasUndone']&&_0x4a3116['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x4a3116['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3deeff['fromObject']=function(_0x2778ee){if(_0x2778ee instanceof _0x59f1d2['AttributeOperation'])return _0x2778ee;var _0x193e1f=new _0x59f1d2['AttributeOperation']();if(null!=_0x2778ee['range']){if('object'!=typeof _0x2778ee['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0x193e1f['range']=_0x59f1d2['Range']['fromObject'](_0x2778ee['range']);}return null!=_0x2778ee['key']&&(_0x193e1f['key']=String(_0x2778ee['key'])),null!=_0x2778ee['oldValueBoolean']&&(_0x193e1f['oldValueBoolean']=Boolean(_0x2778ee['oldValueBoolean'])),null!=_0x2778ee['oldValueJson']&&(_0x193e1f['oldValueJson']=String(_0x2778ee['oldValueJson'])),null!=_0x2778ee['newValueBoolean']&&(_0x193e1f['newValueBoolean']=Boolean(_0x2778ee['newValueBoolean'])),null!=_0x2778ee['newValueJson']&&(_0x193e1f['newValueJson']=String(_0x2778ee['newValueJson'])),null!=_0x2778ee['wasUndone']&&(_0x193e1f['wasUndone']=Boolean(_0x2778ee['wasUndone'])),_0x193e1f;},_0x3deeff['toObject']=function(_0x1d849,_0x4bc4d0){_0x4bc4d0||(_0x4bc4d0={});var _0x5ec2da={};return _0x4bc4d0['defaults']&&(_0x5ec2da['range']=null,_0x5ec2da['key']='',_0x5ec2da['oldValueBoolean']=!0x1,_0x5ec2da['oldValueJson']='',_0x5ec2da['newValueBoolean']=!0x1,_0x5ec2da['newValueJson']='',_0x5ec2da['wasUndone']=!0x1),null!=_0x1d849['range']&&_0x1d849['hasOwnProperty']('range')&&(_0x5ec2da['range']=_0x59f1d2['Range']['toObject'](_0x1d849['range'],_0x4bc4d0)),null!=_0x1d849['key']&&_0x1d849['hasOwnProperty']('key')&&(_0x5ec2da['key']=_0x1d849['key']),null!=_0x1d849['oldValueBoolean']&&_0x1d849['hasOwnProperty']('oldValueBoolean')&&(_0x5ec2da['oldValueBoolean']=_0x1d849['oldValueBoolean']),null!=_0x1d849['oldValueJson']&&_0x1d849['hasOwnProperty']('oldValueJson')&&(_0x5ec2da['oldValueJson']=_0x1d849['oldValueJson']),null!=_0x1d849['newValueBoolean']&&_0x1d849['hasOwnProperty']('newValueBoolean')&&(_0x5ec2da['newValueBoolean']=_0x1d849['newValueBoolean']),null!=_0x1d849['newValueJson']&&_0x1d849['hasOwnProperty']('newValueJson')&&(_0x5ec2da['newValueJson']=_0x1d849['newValueJson']),null!=_0x1d849['wasUndone']&&_0x1d849['hasOwnProperty']('wasUndone')&&(_0x5ec2da['wasUndone']=_0x1d849['wasUndone']),_0x5ec2da;},_0x3deeff['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3deeff['getTypeUrl']=function(_0x5d430){return void 0x0===_0x5d430&&(_0x5d430='type.googleapis.com'),_0x5d430+'/AttributeOperation';},_0x3deeff;}()),_0x59f1d2['InsertOperation']=(function(){function _0x89866f(_0x41b626){if(this['nodes']=[],_0x41b626){for(var _0x19ddc8=Object['keys'](_0x41b626),_0x291941=0x0;_0x291941<_0x19ddc8['length'];++_0x291941)null!=_0x41b626[_0x19ddc8[_0x291941]]&&(this[_0x19ddc8[_0x291941]]=_0x41b626[_0x19ddc8[_0x291941]]);}}return _0x89866f['prototype']['position']=null,_0x89866f['prototype']['nodes']=_0x37d7b4['emptyArray'],_0x89866f['prototype']['shouldReceiveAttributes']=!0x1,_0x89866f['prototype']['wasUndone']=!0x1,_0x89866f['create']=function(_0x3546b7){return new _0x89866f(_0x3546b7);},_0x89866f['encode']=function(_0xa5b7fc,_0x2909f3){if(_0x2909f3||(_0x2909f3=_0xb5c921['create']()),null!=_0xa5b7fc['position']&&Object['hasOwnProperty']['call'](_0xa5b7fc,'position')&&_0x59f1d2['Position']['encode'](_0xa5b7fc['position'],_0x2909f3['uint32'](0xa)['fork']())['ldelim'](),null!=_0xa5b7fc['nodes']&&_0xa5b7fc['nodes']['length']){for(var _0x154990=0x0;_0x154990<_0xa5b7fc['nodes']['length'];++_0x154990)_0x59f1d2['Element']['encode'](_0xa5b7fc['nodes'][_0x154990],_0x2909f3['uint32'](0x12)['fork']())['ldelim']();}return null!=_0xa5b7fc['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0xa5b7fc,'shouldReceiveAttributes')&&_0x2909f3['uint32'](0x18)['bool'](_0xa5b7fc['shouldReceiveAttributes']),null!=_0xa5b7fc['wasUndone']&&Object['hasOwnProperty']['call'](_0xa5b7fc,'wasUndone')&&_0x2909f3['uint32'](0x20)['bool'](_0xa5b7fc['wasUndone']),_0x2909f3;},_0x89866f['encodeDelimited']=function(_0x5bfc11,_0x3c638d){return this['encode'](_0x5bfc11,_0x3c638d)['ldelim']();},_0x89866f['decode']=function(_0xbdce87,_0x27f8a4){_0xbdce87 instanceof _0x2ed785||(_0xbdce87=_0x2ed785['create'](_0xbdce87));for(var _0x9d8065=void 0x0===_0x27f8a4?_0xbdce87['len']:_0xbdce87['pos']+_0x27f8a4,_0x36987c=new _0x59f1d2['InsertOperation']();_0xbdce87['pos']<_0x9d8065;){var _0x2540ad=_0xbdce87['uint32']();switch(_0x2540ad>>>0x3){case 0x1:_0x36987c['position']=_0x59f1d2['Position']['decode'](_0xbdce87,_0xbdce87['uint32']());break;case 0x2:_0x36987c['nodes']&&_0x36987c['nodes']['length']||(_0x36987c['nodes']=[]),_0x36987c['nodes']['push'](_0x59f1d2['Element']['decode'](_0xbdce87,_0xbdce87['uint32']()));break;case 0x3:_0x36987c['shouldReceiveAttributes']=_0xbdce87['bool']();break;case 0x4:_0x36987c['wasUndone']=_0xbdce87['bool']();break;default:_0xbdce87['skipType'](0x7&_0x2540ad);}}return _0x36987c;},_0x89866f['decodeDelimited']=function(_0x47f2bf){return _0x47f2bf instanceof _0x2ed785||(_0x47f2bf=new _0x2ed785(_0x47f2bf)),this['decode'](_0x47f2bf,_0x47f2bf['uint32']());},_0x89866f['verify']=function(_0x5c4169){if('object'!=typeof _0x5c4169||null===_0x5c4169)return'object\x20expected';if(null!=_0x5c4169['position']&&_0x5c4169['hasOwnProperty']('position')&&(_0x313172=_0x59f1d2['Position']['verify'](_0x5c4169['position'])))return'position.'+_0x313172;if(null!=_0x5c4169['nodes']&&_0x5c4169['hasOwnProperty']('nodes')){if(!Array['isArray'](_0x5c4169['nodes']))return'nodes:\x20array\x20expected';for(var _0x33a1c4=0x0;_0x33a1c4<_0x5c4169['nodes']['length'];++_0x33a1c4){var _0x313172;if(_0x313172=_0x59f1d2['Element']['verify'](_0x5c4169['nodes'][_0x33a1c4]))return'nodes.'+_0x313172;}}return null!=_0x5c4169['shouldReceiveAttributes']&&_0x5c4169['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0x5c4169['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0x5c4169['wasUndone']&&_0x5c4169['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x5c4169['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x89866f['fromObject']=function(_0x1c5c3f){if(_0x1c5c3f instanceof _0x59f1d2['InsertOperation'])return _0x1c5c3f;var _0x1e9699=new _0x59f1d2['InsertOperation']();if(null!=_0x1c5c3f['position']){if('object'!=typeof _0x1c5c3f['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x1e9699['position']=_0x59f1d2['Position']['fromObject'](_0x1c5c3f['position']);}if(_0x1c5c3f['nodes']){if(!Array['isArray'](_0x1c5c3f['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x1e9699['nodes']=[];for(var _0x333763=0x0;_0x333763<_0x1c5c3f['nodes']['length'];++_0x333763){if('object'!=typeof _0x1c5c3f['nodes'][_0x333763])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x1e9699['nodes'][_0x333763]=_0x59f1d2['Element']['fromObject'](_0x1c5c3f['nodes'][_0x333763]);}}return null!=_0x1c5c3f['shouldReceiveAttributes']&&(_0x1e9699['shouldReceiveAttributes']=Boolean(_0x1c5c3f['shouldReceiveAttributes'])),null!=_0x1c5c3f['wasUndone']&&(_0x1e9699['wasUndone']=Boolean(_0x1c5c3f['wasUndone'])),_0x1e9699;},_0x89866f['toObject']=function(_0x169c23,_0x4193ed){_0x4193ed||(_0x4193ed={});var _0x315d46={};if((_0x4193ed['arrays']||_0x4193ed['defaults'])&&(_0x315d46['nodes']=[]),_0x4193ed['defaults']&&(_0x315d46['position']=null,_0x315d46['shouldReceiveAttributes']=!0x1,_0x315d46['wasUndone']=!0x1),null!=_0x169c23['position']&&_0x169c23['hasOwnProperty']('position')&&(_0x315d46['position']=_0x59f1d2['Position']['toObject'](_0x169c23['position'],_0x4193ed)),_0x169c23['nodes']&&_0x169c23['nodes']['length']){_0x315d46['nodes']=[];for(var _0x439846=0x0;_0x439846<_0x169c23['nodes']['length'];++_0x439846)_0x315d46['nodes'][_0x439846]=_0x59f1d2['Element']['toObject'](_0x169c23['nodes'][_0x439846],_0x4193ed);}return null!=_0x169c23['shouldReceiveAttributes']&&_0x169c23['hasOwnProperty']('shouldReceiveAttributes')&&(_0x315d46['shouldReceiveAttributes']=_0x169c23['shouldReceiveAttributes']),null!=_0x169c23['wasUndone']&&_0x169c23['hasOwnProperty']('wasUndone')&&(_0x315d46['wasUndone']=_0x169c23['wasUndone']),_0x315d46;},_0x89866f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x89866f['getTypeUrl']=function(_0x26e553){return void 0x0===_0x26e553&&(_0x26e553='type.googleapis.com'),_0x26e553+'/InsertOperation';},_0x89866f;}()),_0x59f1d2['MarkerOperation']=(function(){function _0x3d4920(_0x4d52b0){if(_0x4d52b0){for(var _0x1cd083=Object['keys'](_0x4d52b0),_0x140767=0x0;_0x140767<_0x1cd083['length'];++_0x140767)null!=_0x4d52b0[_0x1cd083[_0x140767]]&&(this[_0x1cd083[_0x140767]]=_0x4d52b0[_0x1cd083[_0x140767]]);}}return _0x3d4920['prototype']['name']='',_0x3d4920['prototype']['oldRange']=null,_0x3d4920['prototype']['newRange']=null,_0x3d4920['prototype']['affectsData']=!0x1,_0x3d4920['prototype']['wasUndone']=!0x1,_0x3d4920['create']=function(_0x449391){return new _0x3d4920(_0x449391);},_0x3d4920['encode']=function(_0x3a6370,_0x1ea464){return _0x1ea464||(_0x1ea464=_0xb5c921['create']()),null!=_0x3a6370['name']&&Object['hasOwnProperty']['call'](_0x3a6370,'name')&&_0x1ea464['uint32'](0xa)['string'](_0x3a6370['name']),null!=_0x3a6370['oldRange']&&Object['hasOwnProperty']['call'](_0x3a6370,'oldRange')&&_0x59f1d2['Range']['encode'](_0x3a6370['oldRange'],_0x1ea464['uint32'](0x12)['fork']())['ldelim'](),null!=_0x3a6370['newRange']&&Object['hasOwnProperty']['call'](_0x3a6370,'newRange')&&_0x59f1d2['Range']['encode'](_0x3a6370['newRange'],_0x1ea464['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x3a6370['affectsData']&&Object['hasOwnProperty']['call'](_0x3a6370,'affectsData')&&_0x1ea464['uint32'](0x20)['bool'](_0x3a6370['affectsData']),null!=_0x3a6370['wasUndone']&&Object['hasOwnProperty']['call'](_0x3a6370,'wasUndone')&&_0x1ea464['uint32'](0x28)['bool'](_0x3a6370['wasUndone']),_0x1ea464;},_0x3d4920['encodeDelimited']=function(_0x195341,_0x237af9){return this['encode'](_0x195341,_0x237af9)['ldelim']();},_0x3d4920['decode']=function(_0x16fb39,_0x3f366a){_0x16fb39 instanceof _0x2ed785||(_0x16fb39=_0x2ed785['create'](_0x16fb39));for(var _0x3f861e=void 0x0===_0x3f366a?_0x16fb39['len']:_0x16fb39['pos']+_0x3f366a,_0x245913=new _0x59f1d2['MarkerOperation']();_0x16fb39['pos']<_0x3f861e;){var _0x2f2578=_0x16fb39['uint32']();switch(_0x2f2578>>>0x3){case 0x1:_0x245913['name']=_0x16fb39['string']();break;case 0x2:_0x245913['oldRange']=_0x59f1d2['Range']['decode'](_0x16fb39,_0x16fb39['uint32']());break;case 0x3:_0x245913['newRange']=_0x59f1d2['Range']['decode'](_0x16fb39,_0x16fb39['uint32']());break;case 0x4:_0x245913['affectsData']=_0x16fb39['bool']();break;case 0x5:_0x245913['wasUndone']=_0x16fb39['bool']();break;default:_0x16fb39['skipType'](0x7&_0x2f2578);}}return _0x245913;},_0x3d4920['decodeDelimited']=function(_0x268760){return _0x268760 instanceof _0x2ed785||(_0x268760=new _0x2ed785(_0x268760)),this['decode'](_0x268760,_0x268760['uint32']());},_0x3d4920['verify']=function(_0x4c6d31){if('object'!=typeof _0x4c6d31||null===_0x4c6d31)return'object\x20expected';if(null!=_0x4c6d31['name']&&_0x4c6d31['hasOwnProperty']('name')&&!_0x37d7b4['isString'](_0x4c6d31['name']))return'name:\x20string\x20expected';var _0x4d13b4;if(null!=_0x4c6d31['oldRange']&&_0x4c6d31['hasOwnProperty']('oldRange')&&(_0x4d13b4=_0x59f1d2['Range']['verify'](_0x4c6d31['oldRange'])))return'oldRange.'+_0x4d13b4;if(null!=_0x4c6d31['newRange']&&_0x4c6d31['hasOwnProperty']('newRange')&&(_0x4d13b4=_0x59f1d2['Range']['verify'](_0x4c6d31['newRange'])))return'newRange.'+_0x4d13b4;return null!=_0x4c6d31['affectsData']&&_0x4c6d31['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x4c6d31['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x4c6d31['wasUndone']&&_0x4c6d31['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x4c6d31['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3d4920['fromObject']=function(_0x3de24c){if(_0x3de24c instanceof _0x59f1d2['MarkerOperation'])return _0x3de24c;var _0x59bf45=new _0x59f1d2['MarkerOperation']();if(null!=_0x3de24c['name']&&(_0x59bf45['name']=String(_0x3de24c['name'])),null!=_0x3de24c['oldRange']){if('object'!=typeof _0x3de24c['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x59bf45['oldRange']=_0x59f1d2['Range']['fromObject'](_0x3de24c['oldRange']);}if(null!=_0x3de24c['newRange']){if('object'!=typeof _0x3de24c['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x59bf45['newRange']=_0x59f1d2['Range']['fromObject'](_0x3de24c['newRange']);}return null!=_0x3de24c['affectsData']&&(_0x59bf45['affectsData']=Boolean(_0x3de24c['affectsData'])),null!=_0x3de24c['wasUndone']&&(_0x59bf45['wasUndone']=Boolean(_0x3de24c['wasUndone'])),_0x59bf45;},_0x3d4920['toObject']=function(_0x25016a,_0x507b23){_0x507b23||(_0x507b23={});var _0x31a092={};return _0x507b23['defaults']&&(_0x31a092['name']='',_0x31a092['oldRange']=null,_0x31a092['newRange']=null,_0x31a092['affectsData']=!0x1,_0x31a092['wasUndone']=!0x1),null!=_0x25016a['name']&&_0x25016a['hasOwnProperty']('name')&&(_0x31a092['name']=_0x25016a['name']),null!=_0x25016a['oldRange']&&_0x25016a['hasOwnProperty']('oldRange')&&(_0x31a092['oldRange']=_0x59f1d2['Range']['toObject'](_0x25016a['oldRange'],_0x507b23)),null!=_0x25016a['newRange']&&_0x25016a['hasOwnProperty']('newRange')&&(_0x31a092['newRange']=_0x59f1d2['Range']['toObject'](_0x25016a['newRange'],_0x507b23)),null!=_0x25016a['affectsData']&&_0x25016a['hasOwnProperty']('affectsData')&&(_0x31a092['affectsData']=_0x25016a['affectsData']),null!=_0x25016a['wasUndone']&&_0x25016a['hasOwnProperty']('wasUndone')&&(_0x31a092['wasUndone']=_0x25016a['wasUndone']),_0x31a092;},_0x3d4920['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3d4920['getTypeUrl']=function(_0x4e160c){return void 0x0===_0x4e160c&&(_0x4e160c='type.googleapis.com'),_0x4e160c+'/MarkerOperation';},_0x3d4920;}()),_0x59f1d2['MergeOperation']=(function(){function _0x44477a(_0x43ff3b){if(_0x43ff3b){for(var _0x5089bb=Object['keys'](_0x43ff3b),_0x5ea182=0x0;_0x5ea182<_0x5089bb['length'];++_0x5ea182)null!=_0x43ff3b[_0x5089bb[_0x5ea182]]&&(this[_0x5089bb[_0x5ea182]]=_0x43ff3b[_0x5089bb[_0x5ea182]]);}}return _0x44477a['prototype']['sourcePosition']=null,_0x44477a['prototype']['targetPosition']=null,_0x44477a['prototype']['graveyardPosition']=null,_0x44477a['prototype']['howMany']=0x0,_0x44477a['prototype']['wasUndone']=!0x1,_0x44477a['create']=function(_0x3a542f){return new _0x44477a(_0x3a542f);},_0x44477a['encode']=function(_0x56d904,_0x25fb89){return _0x25fb89||(_0x25fb89=_0xb5c921['create']()),null!=_0x56d904['sourcePosition']&&Object['hasOwnProperty']['call'](_0x56d904,'sourcePosition')&&_0x59f1d2['Position']['encode'](_0x56d904['sourcePosition'],_0x25fb89['uint32'](0xa)['fork']())['ldelim'](),null!=_0x56d904['targetPosition']&&Object['hasOwnProperty']['call'](_0x56d904,'targetPosition')&&_0x59f1d2['Position']['encode'](_0x56d904['targetPosition'],_0x25fb89['uint32'](0x12)['fork']())['ldelim'](),null!=_0x56d904['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x56d904,'graveyardPosition')&&_0x59f1d2['Position']['encode'](_0x56d904['graveyardPosition'],_0x25fb89['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x56d904['howMany']&&Object['hasOwnProperty']['call'](_0x56d904,'howMany')&&_0x25fb89['uint32'](0x20)['uint32'](_0x56d904['howMany']),null!=_0x56d904['wasUndone']&&Object['hasOwnProperty']['call'](_0x56d904,'wasUndone')&&_0x25fb89['uint32'](0x28)['bool'](_0x56d904['wasUndone']),_0x25fb89;},_0x44477a['encodeDelimited']=function(_0x364a87,_0x3bd8a3){return this['encode'](_0x364a87,_0x3bd8a3)['ldelim']();},_0x44477a['decode']=function(_0x14a0cd,_0xbe07db){_0x14a0cd instanceof _0x2ed785||(_0x14a0cd=_0x2ed785['create'](_0x14a0cd));for(var _0x4087f7=void 0x0===_0xbe07db?_0x14a0cd['len']:_0x14a0cd['pos']+_0xbe07db,_0x2712a3=new _0x59f1d2['MergeOperation']();_0x14a0cd['pos']<_0x4087f7;){var _0x5afdf2=_0x14a0cd['uint32']();switch(_0x5afdf2>>>0x3){case 0x1:_0x2712a3['sourcePosition']=_0x59f1d2['Position']['decode'](_0x14a0cd,_0x14a0cd['uint32']());break;case 0x2:_0x2712a3['targetPosition']=_0x59f1d2['Position']['decode'](_0x14a0cd,_0x14a0cd['uint32']());break;case 0x3:_0x2712a3['graveyardPosition']=_0x59f1d2['Position']['decode'](_0x14a0cd,_0x14a0cd['uint32']());break;case 0x4:_0x2712a3['howMany']=_0x14a0cd['uint32']();break;case 0x5:_0x2712a3['wasUndone']=_0x14a0cd['bool']();break;default:_0x14a0cd['skipType'](0x7&_0x5afdf2);}}return _0x2712a3;},_0x44477a['decodeDelimited']=function(_0x45552d){return _0x45552d instanceof _0x2ed785||(_0x45552d=new _0x2ed785(_0x45552d)),this['decode'](_0x45552d,_0x45552d['uint32']());},_0x44477a['verify']=function(_0x1230aa){if('object'!=typeof _0x1230aa||null===_0x1230aa)return'object\x20expected';var _0x21e888;if(null!=_0x1230aa['sourcePosition']&&_0x1230aa['hasOwnProperty']('sourcePosition')&&(_0x21e888=_0x59f1d2['Position']['verify'](_0x1230aa['sourcePosition'])))return'sourcePosition.'+_0x21e888;if(null!=_0x1230aa['targetPosition']&&_0x1230aa['hasOwnProperty']('targetPosition')&&(_0x21e888=_0x59f1d2['Position']['verify'](_0x1230aa['targetPosition'])))return'targetPosition.'+_0x21e888;if(null!=_0x1230aa['graveyardPosition']&&_0x1230aa['hasOwnProperty']('graveyardPosition')&&(_0x21e888=_0x59f1d2['Position']['verify'](_0x1230aa['graveyardPosition'])))return'graveyardPosition.'+_0x21e888;return null!=_0x1230aa['howMany']&&_0x1230aa['hasOwnProperty']('howMany')&&!_0x37d7b4['isInteger'](_0x1230aa['howMany'])?'howMany:\x20integer\x20expected':null!=_0x1230aa['wasUndone']&&_0x1230aa['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x1230aa['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x44477a['fromObject']=function(_0x65d765){if(_0x65d765 instanceof _0x59f1d2['MergeOperation'])return _0x65d765;var _0x35edbc=new _0x59f1d2['MergeOperation']();if(null!=_0x65d765['sourcePosition']){if('object'!=typeof _0x65d765['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x35edbc['sourcePosition']=_0x59f1d2['Position']['fromObject'](_0x65d765['sourcePosition']);}if(null!=_0x65d765['targetPosition']){if('object'!=typeof _0x65d765['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x35edbc['targetPosition']=_0x59f1d2['Position']['fromObject'](_0x65d765['targetPosition']);}if(null!=_0x65d765['graveyardPosition']){if('object'!=typeof _0x65d765['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x35edbc['graveyardPosition']=_0x59f1d2['Position']['fromObject'](_0x65d765['graveyardPosition']);}return null!=_0x65d765['howMany']&&(_0x35edbc['howMany']=_0x65d765['howMany']>>>0x0),null!=_0x65d765['wasUndone']&&(_0x35edbc['wasUndone']=Boolean(_0x65d765['wasUndone'])),_0x35edbc;},_0x44477a['toObject']=function(_0x1615e0,_0x36059c){_0x36059c||(_0x36059c={});var _0x420b83={};return _0x36059c['defaults']&&(_0x420b83['sourcePosition']=null,_0x420b83['targetPosition']=null,_0x420b83['graveyardPosition']=null,_0x420b83['howMany']=0x0,_0x420b83['wasUndone']=!0x1),null!=_0x1615e0['sourcePosition']&&_0x1615e0['hasOwnProperty']('sourcePosition')&&(_0x420b83['sourcePosition']=_0x59f1d2['Position']['toObject'](_0x1615e0['sourcePosition'],_0x36059c)),null!=_0x1615e0['targetPosition']&&_0x1615e0['hasOwnProperty']('targetPosition')&&(_0x420b83['targetPosition']=_0x59f1d2['Position']['toObject'](_0x1615e0['targetPosition'],_0x36059c)),null!=_0x1615e0['graveyardPosition']&&_0x1615e0['hasOwnProperty']('graveyardPosition')&&(_0x420b83['graveyardPosition']=_0x59f1d2['Position']['toObject'](_0x1615e0['graveyardPosition'],_0x36059c)),null!=_0x1615e0['howMany']&&_0x1615e0['hasOwnProperty']('howMany')&&(_0x420b83['howMany']=_0x1615e0['howMany']),null!=_0x1615e0['wasUndone']&&_0x1615e0['hasOwnProperty']('wasUndone')&&(_0x420b83['wasUndone']=_0x1615e0['wasUndone']),_0x420b83;},_0x44477a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x44477a['getTypeUrl']=function(_0xb664f3){return void 0x0===_0xb664f3&&(_0xb664f3='type.googleapis.com'),_0xb664f3+'/MergeOperation';},_0x44477a;}()),_0x59f1d2['MoveOperation']=(function(){function _0x7f1142(_0x58cb4a){if(_0x58cb4a){for(var _0x5dbb33=Object['keys'](_0x58cb4a),_0x587c20=0x0;_0x587c20<_0x5dbb33['length'];++_0x587c20)null!=_0x58cb4a[_0x5dbb33[_0x587c20]]&&(this[_0x5dbb33[_0x587c20]]=_0x58cb4a[_0x5dbb33[_0x587c20]]);}}return _0x7f1142['prototype']['sourcePosition']=null,_0x7f1142['prototype']['howMany']=0x0,_0x7f1142['prototype']['targetPosition']=null,_0x7f1142['prototype']['wasUndone']=!0x1,_0x7f1142['create']=function(_0x5bce33){return new _0x7f1142(_0x5bce33);},_0x7f1142['encode']=function(_0x437b05,_0x458b77){return _0x458b77||(_0x458b77=_0xb5c921['create']()),null!=_0x437b05['sourcePosition']&&Object['hasOwnProperty']['call'](_0x437b05,'sourcePosition')&&_0x59f1d2['Position']['encode'](_0x437b05['sourcePosition'],_0x458b77['uint32'](0xa)['fork']())['ldelim'](),null!=_0x437b05['howMany']&&Object['hasOwnProperty']['call'](_0x437b05,'howMany')&&_0x458b77['uint32'](0x10)['uint32'](_0x437b05['howMany']),null!=_0x437b05['targetPosition']&&Object['hasOwnProperty']['call'](_0x437b05,'targetPosition')&&_0x59f1d2['Position']['encode'](_0x437b05['targetPosition'],_0x458b77['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x437b05['wasUndone']&&Object['hasOwnProperty']['call'](_0x437b05,'wasUndone')&&_0x458b77['uint32'](0x20)['bool'](_0x437b05['wasUndone']),_0x458b77;},_0x7f1142['encodeDelimited']=function(_0x379028,_0x458e87){return this['encode'](_0x379028,_0x458e87)['ldelim']();},_0x7f1142['decode']=function(_0x3ed9a5,_0x20cb32){_0x3ed9a5 instanceof _0x2ed785||(_0x3ed9a5=_0x2ed785['create'](_0x3ed9a5));for(var _0x2dd2e5=void 0x0===_0x20cb32?_0x3ed9a5['len']:_0x3ed9a5['pos']+_0x20cb32,_0x5c355d=new _0x59f1d2['MoveOperation']();_0x3ed9a5['pos']<_0x2dd2e5;){var _0x4cd157=_0x3ed9a5['uint32']();switch(_0x4cd157>>>0x3){case 0x1:_0x5c355d['sourcePosition']=_0x59f1d2['Position']['decode'](_0x3ed9a5,_0x3ed9a5['uint32']());break;case 0x2:_0x5c355d['howMany']=_0x3ed9a5['uint32']();break;case 0x3:_0x5c355d['targetPosition']=_0x59f1d2['Position']['decode'](_0x3ed9a5,_0x3ed9a5['uint32']());break;case 0x4:_0x5c355d['wasUndone']=_0x3ed9a5['bool']();break;default:_0x3ed9a5['skipType'](0x7&_0x4cd157);}}return _0x5c355d;},_0x7f1142['decodeDelimited']=function(_0x40268e){return _0x40268e instanceof _0x2ed785||(_0x40268e=new _0x2ed785(_0x40268e)),this['decode'](_0x40268e,_0x40268e['uint32']());},_0x7f1142['verify']=function(_0xb1409d){if('object'!=typeof _0xb1409d||null===_0xb1409d)return'object\x20expected';var _0x2eee62;if(null!=_0xb1409d['sourcePosition']&&_0xb1409d['hasOwnProperty']('sourcePosition')&&(_0x2eee62=_0x59f1d2['Position']['verify'](_0xb1409d['sourcePosition'])))return'sourcePosition.'+_0x2eee62;if(null!=_0xb1409d['howMany']&&_0xb1409d['hasOwnProperty']('howMany')&&!_0x37d7b4['isInteger'](_0xb1409d['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0xb1409d['targetPosition']&&_0xb1409d['hasOwnProperty']('targetPosition')&&(_0x2eee62=_0x59f1d2['Position']['verify'](_0xb1409d['targetPosition'])))return'targetPosition.'+_0x2eee62;return null!=_0xb1409d['wasUndone']&&_0xb1409d['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0xb1409d['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x7f1142['fromObject']=function(_0x4c511a){if(_0x4c511a instanceof _0x59f1d2['MoveOperation'])return _0x4c511a;var _0x1237d7=new _0x59f1d2['MoveOperation']();if(null!=_0x4c511a['sourcePosition']){if('object'!=typeof _0x4c511a['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x1237d7['sourcePosition']=_0x59f1d2['Position']['fromObject'](_0x4c511a['sourcePosition']);}if(null!=_0x4c511a['howMany']&&(_0x1237d7['howMany']=_0x4c511a['howMany']>>>0x0),null!=_0x4c511a['targetPosition']){if('object'!=typeof _0x4c511a['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x1237d7['targetPosition']=_0x59f1d2['Position']['fromObject'](_0x4c511a['targetPosition']);}return null!=_0x4c511a['wasUndone']&&(_0x1237d7['wasUndone']=Boolean(_0x4c511a['wasUndone'])),_0x1237d7;},_0x7f1142['toObject']=function(_0x35016f,_0x1606e2){_0x1606e2||(_0x1606e2={});var _0x2203c8={};return _0x1606e2['defaults']&&(_0x2203c8['sourcePosition']=null,_0x2203c8['howMany']=0x0,_0x2203c8['targetPosition']=null,_0x2203c8['wasUndone']=!0x1),null!=_0x35016f['sourcePosition']&&_0x35016f['hasOwnProperty']('sourcePosition')&&(_0x2203c8['sourcePosition']=_0x59f1d2['Position']['toObject'](_0x35016f['sourcePosition'],_0x1606e2)),null!=_0x35016f['howMany']&&_0x35016f['hasOwnProperty']('howMany')&&(_0x2203c8['howMany']=_0x35016f['howMany']),null!=_0x35016f['targetPosition']&&_0x35016f['hasOwnProperty']('targetPosition')&&(_0x2203c8['targetPosition']=_0x59f1d2['Position']['toObject'](_0x35016f['targetPosition'],_0x1606e2)),null!=_0x35016f['wasUndone']&&_0x35016f['hasOwnProperty']('wasUndone')&&(_0x2203c8['wasUndone']=_0x35016f['wasUndone']),_0x2203c8;},_0x7f1142['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x7f1142['getTypeUrl']=function(_0x2c3c31){return void 0x0===_0x2c3c31&&(_0x2c3c31='type.googleapis.com'),_0x2c3c31+'/MoveOperation';},_0x7f1142;}()),_0x59f1d2['RenameOperation']=(function(){function _0x2a6c31(_0x2491f9){if(_0x2491f9){for(var _0x262206=Object['keys'](_0x2491f9),_0x5754a6=0x0;_0x5754a6<_0x262206['length'];++_0x5754a6)null!=_0x2491f9[_0x262206[_0x5754a6]]&&(this[_0x262206[_0x5754a6]]=_0x2491f9[_0x262206[_0x5754a6]]);}}return _0x2a6c31['prototype']['position']=null,_0x2a6c31['prototype']['oldName']='',_0x2a6c31['prototype']['newName']='',_0x2a6c31['prototype']['wasUndone']=!0x1,_0x2a6c31['create']=function(_0x3d8a3c){return new _0x2a6c31(_0x3d8a3c);},_0x2a6c31['encode']=function(_0x174da9,_0x1f2055){return _0x1f2055||(_0x1f2055=_0xb5c921['create']()),null!=_0x174da9['position']&&Object['hasOwnProperty']['call'](_0x174da9,'position')&&_0x59f1d2['Position']['encode'](_0x174da9['position'],_0x1f2055['uint32'](0xa)['fork']())['ldelim'](),null!=_0x174da9['oldName']&&Object['hasOwnProperty']['call'](_0x174da9,'oldName')&&_0x1f2055['uint32'](0x12)['string'](_0x174da9['oldName']),null!=_0x174da9['newName']&&Object['hasOwnProperty']['call'](_0x174da9,'newName')&&_0x1f2055['uint32'](0x1a)['string'](_0x174da9['newName']),null!=_0x174da9['wasUndone']&&Object['hasOwnProperty']['call'](_0x174da9,'wasUndone')&&_0x1f2055['uint32'](0x20)['bool'](_0x174da9['wasUndone']),_0x1f2055;},_0x2a6c31['encodeDelimited']=function(_0x14869a,_0x1089b9){return this['encode'](_0x14869a,_0x1089b9)['ldelim']();},_0x2a6c31['decode']=function(_0x530cab,_0x17350a){_0x530cab instanceof _0x2ed785||(_0x530cab=_0x2ed785['create'](_0x530cab));for(var _0x383af5=void 0x0===_0x17350a?_0x530cab['len']:_0x530cab['pos']+_0x17350a,_0x10e058=new _0x59f1d2['RenameOperation']();_0x530cab['pos']<_0x383af5;){var _0x3fa8aa=_0x530cab['uint32']();switch(_0x3fa8aa>>>0x3){case 0x1:_0x10e058['position']=_0x59f1d2['Position']['decode'](_0x530cab,_0x530cab['uint32']());break;case 0x2:_0x10e058['oldName']=_0x530cab['string']();break;case 0x3:_0x10e058['newName']=_0x530cab['string']();break;case 0x4:_0x10e058['wasUndone']=_0x530cab['bool']();break;default:_0x530cab['skipType'](0x7&_0x3fa8aa);}}return _0x10e058;},_0x2a6c31['decodeDelimited']=function(_0x4a8193){return _0x4a8193 instanceof _0x2ed785||(_0x4a8193=new _0x2ed785(_0x4a8193)),this['decode'](_0x4a8193,_0x4a8193['uint32']());},_0x2a6c31['verify']=function(_0x430132){if('object'!=typeof _0x430132||null===_0x430132)return'object\x20expected';if(null!=_0x430132['position']&&_0x430132['hasOwnProperty']('position')){var _0x1a65ef=_0x59f1d2['Position']['verify'](_0x430132['position']);if(_0x1a65ef)return'position.'+_0x1a65ef;}return null!=_0x430132['oldName']&&_0x430132['hasOwnProperty']('oldName')&&!_0x37d7b4['isString'](_0x430132['oldName'])?'oldName:\x20string\x20expected':null!=_0x430132['newName']&&_0x430132['hasOwnProperty']('newName')&&!_0x37d7b4['isString'](_0x430132['newName'])?'newName:\x20string\x20expected':null!=_0x430132['wasUndone']&&_0x430132['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x430132['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2a6c31['fromObject']=function(_0x172aa5){if(_0x172aa5 instanceof _0x59f1d2['RenameOperation'])return _0x172aa5;var _0x5615b2=new _0x59f1d2['RenameOperation']();if(null!=_0x172aa5['position']){if('object'!=typeof _0x172aa5['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x5615b2['position']=_0x59f1d2['Position']['fromObject'](_0x172aa5['position']);}return null!=_0x172aa5['oldName']&&(_0x5615b2['oldName']=String(_0x172aa5['oldName'])),null!=_0x172aa5['newName']&&(_0x5615b2['newName']=String(_0x172aa5['newName'])),null!=_0x172aa5['wasUndone']&&(_0x5615b2['wasUndone']=Boolean(_0x172aa5['wasUndone'])),_0x5615b2;},_0x2a6c31['toObject']=function(_0x49c4de,_0x3a1e76){_0x3a1e76||(_0x3a1e76={});var _0x1a9317={};return _0x3a1e76['defaults']&&(_0x1a9317['position']=null,_0x1a9317['oldName']='',_0x1a9317['newName']='',_0x1a9317['wasUndone']=!0x1),null!=_0x49c4de['position']&&_0x49c4de['hasOwnProperty']('position')&&(_0x1a9317['position']=_0x59f1d2['Position']['toObject'](_0x49c4de['position'],_0x3a1e76)),null!=_0x49c4de['oldName']&&_0x49c4de['hasOwnProperty']('oldName')&&(_0x1a9317['oldName']=_0x49c4de['oldName']),null!=_0x49c4de['newName']&&_0x49c4de['hasOwnProperty']('newName')&&(_0x1a9317['newName']=_0x49c4de['newName']),null!=_0x49c4de['wasUndone']&&_0x49c4de['hasOwnProperty']('wasUndone')&&(_0x1a9317['wasUndone']=_0x49c4de['wasUndone']),_0x1a9317;},_0x2a6c31['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2a6c31['getTypeUrl']=function(_0x51de66){return void 0x0===_0x51de66&&(_0x51de66='type.googleapis.com'),_0x51de66+'/RenameOperation';},_0x2a6c31;}()),_0x59f1d2['RootAttributeOperation']=(function(){function _0x323cc0(_0x164490){if(_0x164490){for(var _0x48faba=Object['keys'](_0x164490),_0x2704e1=0x0;_0x2704e1<_0x48faba['length'];++_0x2704e1)null!=_0x164490[_0x48faba[_0x2704e1]]&&(this[_0x48faba[_0x2704e1]]=_0x164490[_0x48faba[_0x2704e1]]);}}return _0x323cc0['prototype']['root']='',_0x323cc0['prototype']['key']='',_0x323cc0['prototype']['oldValueBoolean']=!0x1,_0x323cc0['prototype']['oldValueJson']='',_0x323cc0['prototype']['newValueBoolean']=!0x1,_0x323cc0['prototype']['newValueJson']='',_0x323cc0['prototype']['wasUndone']=!0x1,_0x323cc0['create']=function(_0x585d22){return new _0x323cc0(_0x585d22);},_0x323cc0['encode']=function(_0xf39f6f,_0x3e9c2a){return _0x3e9c2a||(_0x3e9c2a=_0xb5c921['create']()),null!=_0xf39f6f['root']&&Object['hasOwnProperty']['call'](_0xf39f6f,'root')&&_0x3e9c2a['uint32'](0xa)['string'](_0xf39f6f['root']),null!=_0xf39f6f['key']&&Object['hasOwnProperty']['call'](_0xf39f6f,'key')&&_0x3e9c2a['uint32'](0x12)['string'](_0xf39f6f['key']),null!=_0xf39f6f['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0xf39f6f,'oldValueBoolean')&&_0x3e9c2a['uint32'](0x18)['bool'](_0xf39f6f['oldValueBoolean']),null!=_0xf39f6f['oldValueJson']&&Object['hasOwnProperty']['call'](_0xf39f6f,'oldValueJson')&&_0x3e9c2a['uint32'](0x22)['string'](_0xf39f6f['oldValueJson']),null!=_0xf39f6f['newValueBoolean']&&Object['hasOwnProperty']['call'](_0xf39f6f,'newValueBoolean')&&_0x3e9c2a['uint32'](0x28)['bool'](_0xf39f6f['newValueBoolean']),null!=_0xf39f6f['newValueJson']&&Object['hasOwnProperty']['call'](_0xf39f6f,'newValueJson')&&_0x3e9c2a['uint32'](0x32)['string'](_0xf39f6f['newValueJson']),null!=_0xf39f6f['wasUndone']&&Object['hasOwnProperty']['call'](_0xf39f6f,'wasUndone')&&_0x3e9c2a['uint32'](0x38)['bool'](_0xf39f6f['wasUndone']),_0x3e9c2a;},_0x323cc0['encodeDelimited']=function(_0xfc6ae7,_0x15dc70){return this['encode'](_0xfc6ae7,_0x15dc70)['ldelim']();},_0x323cc0['decode']=function(_0x1be115,_0x23fd39){_0x1be115 instanceof _0x2ed785||(_0x1be115=_0x2ed785['create'](_0x1be115));for(var _0x2d9b59=void 0x0===_0x23fd39?_0x1be115['len']:_0x1be115['pos']+_0x23fd39,_0x76f1a1=new _0x59f1d2['RootAttributeOperation']();_0x1be115['pos']<_0x2d9b59;){var _0x54a3f2=_0x1be115['uint32']();switch(_0x54a3f2>>>0x3){case 0x1:_0x76f1a1['root']=_0x1be115['string']();break;case 0x2:_0x76f1a1['key']=_0x1be115['string']();break;case 0x3:_0x76f1a1['oldValueBoolean']=_0x1be115['bool']();break;case 0x4:_0x76f1a1['oldValueJson']=_0x1be115['string']();break;case 0x5:_0x76f1a1['newValueBoolean']=_0x1be115['bool']();break;case 0x6:_0x76f1a1['newValueJson']=_0x1be115['string']();break;case 0x7:_0x76f1a1['wasUndone']=_0x1be115['bool']();break;default:_0x1be115['skipType'](0x7&_0x54a3f2);}}return _0x76f1a1;},_0x323cc0['decodeDelimited']=function(_0x270746){return _0x270746 instanceof _0x2ed785||(_0x270746=new _0x2ed785(_0x270746)),this['decode'](_0x270746,_0x270746['uint32']());},_0x323cc0['verify']=function(_0x588fc9){return'object'!=typeof _0x588fc9||null===_0x588fc9?'object\x20expected':null!=_0x588fc9['root']&&_0x588fc9['hasOwnProperty']('root')&&!_0x37d7b4['isString'](_0x588fc9['root'])?'root:\x20string\x20expected':null!=_0x588fc9['key']&&_0x588fc9['hasOwnProperty']('key')&&!_0x37d7b4['isString'](_0x588fc9['key'])?'key:\x20string\x20expected':null!=_0x588fc9['oldValueBoolean']&&_0x588fc9['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x588fc9['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x588fc9['oldValueJson']&&_0x588fc9['hasOwnProperty']('oldValueJson')&&!_0x37d7b4['isString'](_0x588fc9['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x588fc9['newValueBoolean']&&_0x588fc9['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x588fc9['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x588fc9['newValueJson']&&_0x588fc9['hasOwnProperty']('newValueJson')&&!_0x37d7b4['isString'](_0x588fc9['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x588fc9['wasUndone']&&_0x588fc9['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x588fc9['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x323cc0['fromObject']=function(_0xd61869){if(_0xd61869 instanceof _0x59f1d2['RootAttributeOperation'])return _0xd61869;var _0x37f746=new _0x59f1d2['RootAttributeOperation']();return null!=_0xd61869['root']&&(_0x37f746['root']=String(_0xd61869['root'])),null!=_0xd61869['key']&&(_0x37f746['key']=String(_0xd61869['key'])),null!=_0xd61869['oldValueBoolean']&&(_0x37f746['oldValueBoolean']=Boolean(_0xd61869['oldValueBoolean'])),null!=_0xd61869['oldValueJson']&&(_0x37f746['oldValueJson']=String(_0xd61869['oldValueJson'])),null!=_0xd61869['newValueBoolean']&&(_0x37f746['newValueBoolean']=Boolean(_0xd61869['newValueBoolean'])),null!=_0xd61869['newValueJson']&&(_0x37f746['newValueJson']=String(_0xd61869['newValueJson'])),null!=_0xd61869['wasUndone']&&(_0x37f746['wasUndone']=Boolean(_0xd61869['wasUndone'])),_0x37f746;},_0x323cc0['toObject']=function(_0x33dd4c,_0x49930a){_0x49930a||(_0x49930a={});var _0x182c01={};return _0x49930a['defaults']&&(_0x182c01['root']='',_0x182c01['key']='',_0x182c01['oldValueBoolean']=!0x1,_0x182c01['oldValueJson']='',_0x182c01['newValueBoolean']=!0x1,_0x182c01['newValueJson']='',_0x182c01['wasUndone']=!0x1),null!=_0x33dd4c['root']&&_0x33dd4c['hasOwnProperty']('root')&&(_0x182c01['root']=_0x33dd4c['root']),null!=_0x33dd4c['key']&&_0x33dd4c['hasOwnProperty']('key')&&(_0x182c01['key']=_0x33dd4c['key']),null!=_0x33dd4c['oldValueBoolean']&&_0x33dd4c['hasOwnProperty']('oldValueBoolean')&&(_0x182c01['oldValueBoolean']=_0x33dd4c['oldValueBoolean']),null!=_0x33dd4c['oldValueJson']&&_0x33dd4c['hasOwnProperty']('oldValueJson')&&(_0x182c01['oldValueJson']=_0x33dd4c['oldValueJson']),null!=_0x33dd4c['newValueBoolean']&&_0x33dd4c['hasOwnProperty']('newValueBoolean')&&(_0x182c01['newValueBoolean']=_0x33dd4c['newValueBoolean']),null!=_0x33dd4c['newValueJson']&&_0x33dd4c['hasOwnProperty']('newValueJson')&&(_0x182c01['newValueJson']=_0x33dd4c['newValueJson']),null!=_0x33dd4c['wasUndone']&&_0x33dd4c['hasOwnProperty']('wasUndone')&&(_0x182c01['wasUndone']=_0x33dd4c['wasUndone']),_0x182c01;},_0x323cc0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x323cc0['getTypeUrl']=function(_0x22742e){return void 0x0===_0x22742e&&(_0x22742e='type.googleapis.com'),_0x22742e+'/RootAttributeOperation';},_0x323cc0;}()),_0x59f1d2['RootOperation']=(function(){function _0x192853(_0x2e9ca2){if(_0x2e9ca2){for(var _0x247912=Object['keys'](_0x2e9ca2),_0x415f4a=0x0;_0x415f4a<_0x247912['length'];++_0x415f4a)null!=_0x2e9ca2[_0x247912[_0x415f4a]]&&(this[_0x247912[_0x415f4a]]=_0x2e9ca2[_0x247912[_0x415f4a]]);}}return _0x192853['prototype']['rootName']='',_0x192853['prototype']['elementName']='',_0x192853['prototype']['isAdd']=!0x1,_0x192853['prototype']['wasUndone']=!0x1,_0x192853['create']=function(_0x432dd9){return new _0x192853(_0x432dd9);},_0x192853['encode']=function(_0x24e877,_0x528baf){return _0x528baf||(_0x528baf=_0xb5c921['create']()),null!=_0x24e877['rootName']&&Object['hasOwnProperty']['call'](_0x24e877,'rootName')&&_0x528baf['uint32'](0xa)['string'](_0x24e877['rootName']),null!=_0x24e877['elementName']&&Object['hasOwnProperty']['call'](_0x24e877,'elementName')&&_0x528baf['uint32'](0x12)['string'](_0x24e877['elementName']),null!=_0x24e877['isAdd']&&Object['hasOwnProperty']['call'](_0x24e877,'isAdd')&&_0x528baf['uint32'](0x18)['bool'](_0x24e877['isAdd']),null!=_0x24e877['wasUndone']&&Object['hasOwnProperty']['call'](_0x24e877,'wasUndone')&&_0x528baf['uint32'](0x20)['bool'](_0x24e877['wasUndone']),_0x528baf;},_0x192853['encodeDelimited']=function(_0x27116a,_0x21ff63){return this['encode'](_0x27116a,_0x21ff63)['ldelim']();},_0x192853['decode']=function(_0x3efb62,_0x4822ac){_0x3efb62 instanceof _0x2ed785||(_0x3efb62=_0x2ed785['create'](_0x3efb62));for(var _0x4655ef=void 0x0===_0x4822ac?_0x3efb62['len']:_0x3efb62['pos']+_0x4822ac,_0x3d81c8=new _0x59f1d2['RootOperation']();_0x3efb62['pos']<_0x4655ef;){var _0x42545d=_0x3efb62['uint32']();switch(_0x42545d>>>0x3){case 0x1:_0x3d81c8['rootName']=_0x3efb62['string']();break;case 0x2:_0x3d81c8['elementName']=_0x3efb62['string']();break;case 0x3:_0x3d81c8['isAdd']=_0x3efb62['bool']();break;case 0x4:_0x3d81c8['wasUndone']=_0x3efb62['bool']();break;default:_0x3efb62['skipType'](0x7&_0x42545d);}}return _0x3d81c8;},_0x192853['decodeDelimited']=function(_0x22012e){return _0x22012e instanceof _0x2ed785||(_0x22012e=new _0x2ed785(_0x22012e)),this['decode'](_0x22012e,_0x22012e['uint32']());},_0x192853['verify']=function(_0x191806){return'object'!=typeof _0x191806||null===_0x191806?'object\x20expected':null!=_0x191806['rootName']&&_0x191806['hasOwnProperty']('rootName')&&!_0x37d7b4['isString'](_0x191806['rootName'])?'rootName:\x20string\x20expected':null!=_0x191806['elementName']&&_0x191806['hasOwnProperty']('elementName')&&!_0x37d7b4['isString'](_0x191806['elementName'])?'elementName:\x20string\x20expected':null!=_0x191806['isAdd']&&_0x191806['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0x191806['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0x191806['wasUndone']&&_0x191806['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x191806['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x192853['fromObject']=function(_0x186837){if(_0x186837 instanceof _0x59f1d2['RootOperation'])return _0x186837;var _0x5f24d0=new _0x59f1d2['RootOperation']();return null!=_0x186837['rootName']&&(_0x5f24d0['rootName']=String(_0x186837['rootName'])),null!=_0x186837['elementName']&&(_0x5f24d0['elementName']=String(_0x186837['elementName'])),null!=_0x186837['isAdd']&&(_0x5f24d0['isAdd']=Boolean(_0x186837['isAdd'])),null!=_0x186837['wasUndone']&&(_0x5f24d0['wasUndone']=Boolean(_0x186837['wasUndone'])),_0x5f24d0;},_0x192853['toObject']=function(_0xb4b062,_0xc795b7){_0xc795b7||(_0xc795b7={});var _0x25476e={};return _0xc795b7['defaults']&&(_0x25476e['rootName']='',_0x25476e['elementName']='',_0x25476e['isAdd']=!0x1,_0x25476e['wasUndone']=!0x1),null!=_0xb4b062['rootName']&&_0xb4b062['hasOwnProperty']('rootName')&&(_0x25476e['rootName']=_0xb4b062['rootName']),null!=_0xb4b062['elementName']&&_0xb4b062['hasOwnProperty']('elementName')&&(_0x25476e['elementName']=_0xb4b062['elementName']),null!=_0xb4b062['isAdd']&&_0xb4b062['hasOwnProperty']('isAdd')&&(_0x25476e['isAdd']=_0xb4b062['isAdd']),null!=_0xb4b062['wasUndone']&&_0xb4b062['hasOwnProperty']('wasUndone')&&(_0x25476e['wasUndone']=_0xb4b062['wasUndone']),_0x25476e;},_0x192853['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x192853['getTypeUrl']=function(_0x189289){return void 0x0===_0x189289&&(_0x189289='type.googleapis.com'),_0x189289+'/RootOperation';},_0x192853;}()),_0x59f1d2['SplitOperation']=(function(){function _0x2554cc(_0x574f8f){if(_0x574f8f){for(var _0x14d9bf=Object['keys'](_0x574f8f),_0x3e1fe0=0x0;_0x3e1fe0<_0x14d9bf['length'];++_0x3e1fe0)null!=_0x574f8f[_0x14d9bf[_0x3e1fe0]]&&(this[_0x14d9bf[_0x3e1fe0]]=_0x574f8f[_0x14d9bf[_0x3e1fe0]]);}}return _0x2554cc['prototype']['splitPosition']=null,_0x2554cc['prototype']['graveyardPosition']=null,_0x2554cc['prototype']['howMany']=0x0,_0x2554cc['prototype']['insertionPosition']=null,_0x2554cc['prototype']['wasUndone']=!0x1,_0x2554cc['create']=function(_0x5c6941){return new _0x2554cc(_0x5c6941);},_0x2554cc['encode']=function(_0x573745,_0x175a56){return _0x175a56||(_0x175a56=_0xb5c921['create']()),null!=_0x573745['splitPosition']&&Object['hasOwnProperty']['call'](_0x573745,'splitPosition')&&_0x59f1d2['Position']['encode'](_0x573745['splitPosition'],_0x175a56['uint32'](0xa)['fork']())['ldelim'](),null!=_0x573745['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x573745,'graveyardPosition')&&_0x59f1d2['Position']['encode'](_0x573745['graveyardPosition'],_0x175a56['uint32'](0x12)['fork']())['ldelim'](),null!=_0x573745['howMany']&&Object['hasOwnProperty']['call'](_0x573745,'howMany')&&_0x175a56['uint32'](0x18)['uint32'](_0x573745['howMany']),null!=_0x573745['insertionPosition']&&Object['hasOwnProperty']['call'](_0x573745,'insertionPosition')&&_0x59f1d2['Position']['encode'](_0x573745['insertionPosition'],_0x175a56['uint32'](0x22)['fork']())['ldelim'](),null!=_0x573745['wasUndone']&&Object['hasOwnProperty']['call'](_0x573745,'wasUndone')&&_0x175a56['uint32'](0x28)['bool'](_0x573745['wasUndone']),_0x175a56;},_0x2554cc['encodeDelimited']=function(_0xbbfb7b,_0x22d51d){return this['encode'](_0xbbfb7b,_0x22d51d)['ldelim']();},_0x2554cc['decode']=function(_0x2a9daf,_0x3b382d){_0x2a9daf instanceof _0x2ed785||(_0x2a9daf=_0x2ed785['create'](_0x2a9daf));for(var _0x495244=void 0x0===_0x3b382d?_0x2a9daf['len']:_0x2a9daf['pos']+_0x3b382d,_0x3878b4=new _0x59f1d2['SplitOperation']();_0x2a9daf['pos']<_0x495244;){var _0x27ac12=_0x2a9daf['uint32']();switch(_0x27ac12>>>0x3){case 0x1:_0x3878b4['splitPosition']=_0x59f1d2['Position']['decode'](_0x2a9daf,_0x2a9daf['uint32']());break;case 0x2:_0x3878b4['graveyardPosition']=_0x59f1d2['Position']['decode'](_0x2a9daf,_0x2a9daf['uint32']());break;case 0x3:_0x3878b4['howMany']=_0x2a9daf['uint32']();break;case 0x4:_0x3878b4['insertionPosition']=_0x59f1d2['Position']['decode'](_0x2a9daf,_0x2a9daf['uint32']());break;case 0x5:_0x3878b4['wasUndone']=_0x2a9daf['bool']();break;default:_0x2a9daf['skipType'](0x7&_0x27ac12);}}return _0x3878b4;},_0x2554cc['decodeDelimited']=function(_0x307adf){return _0x307adf instanceof _0x2ed785||(_0x307adf=new _0x2ed785(_0x307adf)),this['decode'](_0x307adf,_0x307adf['uint32']());},_0x2554cc['verify']=function(_0x3c35d0){if('object'!=typeof _0x3c35d0||null===_0x3c35d0)return'object\x20expected';var _0x238568;if(null!=_0x3c35d0['splitPosition']&&_0x3c35d0['hasOwnProperty']('splitPosition')&&(_0x238568=_0x59f1d2['Position']['verify'](_0x3c35d0['splitPosition'])))return'splitPosition.'+_0x238568;if(null!=_0x3c35d0['graveyardPosition']&&_0x3c35d0['hasOwnProperty']('graveyardPosition')&&(_0x238568=_0x59f1d2['Position']['verify'](_0x3c35d0['graveyardPosition'])))return'graveyardPosition.'+_0x238568;if(null!=_0x3c35d0['howMany']&&_0x3c35d0['hasOwnProperty']('howMany')&&!_0x37d7b4['isInteger'](_0x3c35d0['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x3c35d0['insertionPosition']&&_0x3c35d0['hasOwnProperty']('insertionPosition')&&(_0x238568=_0x59f1d2['Position']['verify'](_0x3c35d0['insertionPosition'])))return'insertionPosition.'+_0x238568;return null!=_0x3c35d0['wasUndone']&&_0x3c35d0['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x3c35d0['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2554cc['fromObject']=function(_0x3380f6){if(_0x3380f6 instanceof _0x59f1d2['SplitOperation'])return _0x3380f6;var _0x51ec67=new _0x59f1d2['SplitOperation']();if(null!=_0x3380f6['splitPosition']){if('object'!=typeof _0x3380f6['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x51ec67['splitPosition']=_0x59f1d2['Position']['fromObject'](_0x3380f6['splitPosition']);}if(null!=_0x3380f6['graveyardPosition']){if('object'!=typeof _0x3380f6['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x51ec67['graveyardPosition']=_0x59f1d2['Position']['fromObject'](_0x3380f6['graveyardPosition']);}if(null!=_0x3380f6['howMany']&&(_0x51ec67['howMany']=_0x3380f6['howMany']>>>0x0),null!=_0x3380f6['insertionPosition']){if('object'!=typeof _0x3380f6['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x51ec67['insertionPosition']=_0x59f1d2['Position']['fromObject'](_0x3380f6['insertionPosition']);}return null!=_0x3380f6['wasUndone']&&(_0x51ec67['wasUndone']=Boolean(_0x3380f6['wasUndone'])),_0x51ec67;},_0x2554cc['toObject']=function(_0x2c547f,_0x5b84b6){_0x5b84b6||(_0x5b84b6={});var _0x4bdcc5={};return _0x5b84b6['defaults']&&(_0x4bdcc5['splitPosition']=null,_0x4bdcc5['graveyardPosition']=null,_0x4bdcc5['howMany']=0x0,_0x4bdcc5['insertionPosition']=null,_0x4bdcc5['wasUndone']=!0x1),null!=_0x2c547f['splitPosition']&&_0x2c547f['hasOwnProperty']('splitPosition')&&(_0x4bdcc5['splitPosition']=_0x59f1d2['Position']['toObject'](_0x2c547f['splitPosition'],_0x5b84b6)),null!=_0x2c547f['graveyardPosition']&&_0x2c547f['hasOwnProperty']('graveyardPosition')&&(_0x4bdcc5['graveyardPosition']=_0x59f1d2['Position']['toObject'](_0x2c547f['graveyardPosition'],_0x5b84b6)),null!=_0x2c547f['howMany']&&_0x2c547f['hasOwnProperty']('howMany')&&(_0x4bdcc5['howMany']=_0x2c547f['howMany']),null!=_0x2c547f['insertionPosition']&&_0x2c547f['hasOwnProperty']('insertionPosition')&&(_0x4bdcc5['insertionPosition']=_0x59f1d2['Position']['toObject'](_0x2c547f['insertionPosition'],_0x5b84b6)),null!=_0x2c547f['wasUndone']&&_0x2c547f['hasOwnProperty']('wasUndone')&&(_0x4bdcc5['wasUndone']=_0x2c547f['wasUndone']),_0x4bdcc5;},_0x2554cc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2554cc['getTypeUrl']=function(_0x3b43e3){return void 0x0===_0x3b43e3&&(_0x3b43e3='type.googleapis.com'),_0x3b43e3+'/SplitOperation';},_0x2554cc;}()),_0x59f1d2['Position']=(function(){function _0x51c608(_0x4d68ff){if(this['path']=[],_0x4d68ff){for(var _0x5f261e=Object['keys'](_0x4d68ff),_0x4c19df=0x0;_0x4c19df<_0x5f261e['length'];++_0x4c19df)null!=_0x4d68ff[_0x5f261e[_0x4c19df]]&&(this[_0x5f261e[_0x4c19df]]=_0x4d68ff[_0x5f261e[_0x4c19df]]);}}return _0x51c608['prototype']['root']='',_0x51c608['prototype']['rootMain']=!0x1,_0x51c608['prototype']['rootGraveyard']=!0x1,_0x51c608['prototype']['path']=_0x37d7b4['emptyArray'],_0x51c608['prototype']['stickiness']='',_0x51c608['create']=function(_0x28402a){return new _0x51c608(_0x28402a);},_0x51c608['encode']=function(_0x111314,_0x10eb70){if(_0x10eb70||(_0x10eb70=_0xb5c921['create']()),null!=_0x111314['root']&&Object['hasOwnProperty']['call'](_0x111314,'root')&&_0x10eb70['uint32'](0xa)['string'](_0x111314['root']),null!=_0x111314['rootMain']&&Object['hasOwnProperty']['call'](_0x111314,'rootMain')&&_0x10eb70['uint32'](0x10)['bool'](_0x111314['rootMain']),null!=_0x111314['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x111314,'rootGraveyard')&&_0x10eb70['uint32'](0x18)['bool'](_0x111314['rootGraveyard']),null!=_0x111314['path']&&_0x111314['path']['length']){_0x10eb70['uint32'](0x22)['fork']();for(var _0x5b0268=0x0;_0x5b0268<_0x111314['path']['length'];++_0x5b0268)_0x10eb70['uint32'](_0x111314['path'][_0x5b0268]);_0x10eb70['ldelim']();}return null!=_0x111314['stickiness']&&Object['hasOwnProperty']['call'](_0x111314,'stickiness')&&_0x10eb70['uint32'](0x2a)['string'](_0x111314['stickiness']),_0x10eb70;},_0x51c608['encodeDelimited']=function(_0x1273ec,_0x1b2912){return this['encode'](_0x1273ec,_0x1b2912)['ldelim']();},_0x51c608['decode']=function(_0x2caf2a,_0xfd79b8){_0x2caf2a instanceof _0x2ed785||(_0x2caf2a=_0x2ed785['create'](_0x2caf2a));for(var _0x1b59d2=void 0x0===_0xfd79b8?_0x2caf2a['len']:_0x2caf2a['pos']+_0xfd79b8,_0xa31b2a=new _0x59f1d2['Position']();_0x2caf2a['pos']<_0x1b59d2;){var _0x4dd16b=_0x2caf2a['uint32']();switch(_0x4dd16b>>>0x3){case 0x1:_0xa31b2a['root']=_0x2caf2a['string']();break;case 0x2:_0xa31b2a['rootMain']=_0x2caf2a['bool']();break;case 0x3:_0xa31b2a['rootGraveyard']=_0x2caf2a['bool']();break;case 0x4:if(_0xa31b2a['path']&&_0xa31b2a['path']['length']||(_0xa31b2a['path']=[]),0x2==(0x7&_0x4dd16b)){for(var _0x1fc7b2=_0x2caf2a['uint32']()+_0x2caf2a['pos'];_0x2caf2a['pos']<_0x1fc7b2;)_0xa31b2a['path']['push'](_0x2caf2a['uint32']());}else _0xa31b2a['path']['push'](_0x2caf2a['uint32']());break;case 0x5:_0xa31b2a['stickiness']=_0x2caf2a['string']();break;default:_0x2caf2a['skipType'](0x7&_0x4dd16b);}}return _0xa31b2a;},_0x51c608['decodeDelimited']=function(_0x425917){return _0x425917 instanceof _0x2ed785||(_0x425917=new _0x2ed785(_0x425917)),this['decode'](_0x425917,_0x425917['uint32']());},_0x51c608['verify']=function(_0x10730a){if('object'!=typeof _0x10730a||null===_0x10730a)return'object\x20expected';if(null!=_0x10730a['root']&&_0x10730a['hasOwnProperty']('root')&&!_0x37d7b4['isString'](_0x10730a['root']))return'root:\x20string\x20expected';if(null!=_0x10730a['rootMain']&&_0x10730a['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0x10730a['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0x10730a['rootGraveyard']&&_0x10730a['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0x10730a['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0x10730a['path']&&_0x10730a['hasOwnProperty']('path')){if(!Array['isArray'](_0x10730a['path']))return'path:\x20array\x20expected';for(var _0x5defa4=0x0;_0x5defa4<_0x10730a['path']['length'];++_0x5defa4)if(!_0x37d7b4['isInteger'](_0x10730a['path'][_0x5defa4]))return'path:\x20integer[]\x20expected';}return null!=_0x10730a['stickiness']&&_0x10730a['hasOwnProperty']('stickiness')&&!_0x37d7b4['isString'](_0x10730a['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x51c608['fromObject']=function(_0x3a7a6c){if(_0x3a7a6c instanceof _0x59f1d2['Position'])return _0x3a7a6c;var _0x582c74=new _0x59f1d2['Position']();if(null!=_0x3a7a6c['root']&&(_0x582c74['root']=String(_0x3a7a6c['root'])),null!=_0x3a7a6c['rootMain']&&(_0x582c74['rootMain']=Boolean(_0x3a7a6c['rootMain'])),null!=_0x3a7a6c['rootGraveyard']&&(_0x582c74['rootGraveyard']=Boolean(_0x3a7a6c['rootGraveyard'])),_0x3a7a6c['path']){if(!Array['isArray'](_0x3a7a6c['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x582c74['path']=[];for(var _0x28dc53=0x0;_0x28dc53<_0x3a7a6c['path']['length'];++_0x28dc53)_0x582c74['path'][_0x28dc53]=_0x3a7a6c['path'][_0x28dc53]>>>0x0;}return null!=_0x3a7a6c['stickiness']&&(_0x582c74['stickiness']=String(_0x3a7a6c['stickiness'])),_0x582c74;},_0x51c608['toObject']=function(_0x11df3a,_0x12a857){_0x12a857||(_0x12a857={});var _0x5262c4={};if((_0x12a857['arrays']||_0x12a857['defaults'])&&(_0x5262c4['path']=[]),_0x12a857['defaults']&&(_0x5262c4['root']='',_0x5262c4['rootMain']=!0x1,_0x5262c4['rootGraveyard']=!0x1,_0x5262c4['stickiness']=''),null!=_0x11df3a['root']&&_0x11df3a['hasOwnProperty']('root')&&(_0x5262c4['root']=_0x11df3a['root']),null!=_0x11df3a['rootMain']&&_0x11df3a['hasOwnProperty']('rootMain')&&(_0x5262c4['rootMain']=_0x11df3a['rootMain']),null!=_0x11df3a['rootGraveyard']&&_0x11df3a['hasOwnProperty']('rootGraveyard')&&(_0x5262c4['rootGraveyard']=_0x11df3a['rootGraveyard']),_0x11df3a['path']&&_0x11df3a['path']['length']){_0x5262c4['path']=[];for(var _0x3d846c=0x0;_0x3d846c<_0x11df3a['path']['length'];++_0x3d846c)_0x5262c4['path'][_0x3d846c]=_0x11df3a['path'][_0x3d846c];}return null!=_0x11df3a['stickiness']&&_0x11df3a['hasOwnProperty']('stickiness')&&(_0x5262c4['stickiness']=_0x11df3a['stickiness']),_0x5262c4;},_0x51c608['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x51c608['getTypeUrl']=function(_0x82a802){return void 0x0===_0x82a802&&(_0x82a802='type.googleapis.com'),_0x82a802+'/Position';},_0x51c608;}()),_0x59f1d2['Range']=(function(){function _0x41a4db(_0x51c4f3){if(_0x51c4f3){for(var _0x1bf43e=Object['keys'](_0x51c4f3),_0x16f050=0x0;_0x16f050<_0x1bf43e['length'];++_0x16f050)null!=_0x51c4f3[_0x1bf43e[_0x16f050]]&&(this[_0x1bf43e[_0x16f050]]=_0x51c4f3[_0x1bf43e[_0x16f050]]);}}return _0x41a4db['prototype']['start']=null,_0x41a4db['prototype']['end']=null,_0x41a4db['create']=function(_0x21965a){return new _0x41a4db(_0x21965a);},_0x41a4db['encode']=function(_0x227207,_0x93f32c){return _0x93f32c||(_0x93f32c=_0xb5c921['create']()),null!=_0x227207['start']&&Object['hasOwnProperty']['call'](_0x227207,'start')&&_0x59f1d2['Position']['encode'](_0x227207['start'],_0x93f32c['uint32'](0xa)['fork']())['ldelim'](),null!=_0x227207['end']&&Object['hasOwnProperty']['call'](_0x227207,'end')&&_0x59f1d2['Position']['encode'](_0x227207['end'],_0x93f32c['uint32'](0x12)['fork']())['ldelim'](),_0x93f32c;},_0x41a4db['encodeDelimited']=function(_0x594692,_0x4db72a){return this['encode'](_0x594692,_0x4db72a)['ldelim']();},_0x41a4db['decode']=function(_0x521543,_0x22e7eb){_0x521543 instanceof _0x2ed785||(_0x521543=_0x2ed785['create'](_0x521543));for(var _0x2037e6=void 0x0===_0x22e7eb?_0x521543['len']:_0x521543['pos']+_0x22e7eb,_0x5b7fcd=new _0x59f1d2['Range']();_0x521543['pos']<_0x2037e6;){var _0x169534=_0x521543['uint32']();switch(_0x169534>>>0x3){case 0x1:_0x5b7fcd['start']=_0x59f1d2['Position']['decode'](_0x521543,_0x521543['uint32']());break;case 0x2:_0x5b7fcd['end']=_0x59f1d2['Position']['decode'](_0x521543,_0x521543['uint32']());break;default:_0x521543['skipType'](0x7&_0x169534);}}return _0x5b7fcd;},_0x41a4db['decodeDelimited']=function(_0x2c522b){return _0x2c522b instanceof _0x2ed785||(_0x2c522b=new _0x2ed785(_0x2c522b)),this['decode'](_0x2c522b,_0x2c522b['uint32']());},_0x41a4db['verify']=function(_0x1ab80c){if('object'!=typeof _0x1ab80c||null===_0x1ab80c)return'object\x20expected';var _0x1b52c8;if(null!=_0x1ab80c['start']&&_0x1ab80c['hasOwnProperty']('start')&&(_0x1b52c8=_0x59f1d2['Position']['verify'](_0x1ab80c['start'])))return'start.'+_0x1b52c8;if(null!=_0x1ab80c['end']&&_0x1ab80c['hasOwnProperty']('end')&&(_0x1b52c8=_0x59f1d2['Position']['verify'](_0x1ab80c['end'])))return'end.'+_0x1b52c8;return null;},_0x41a4db['fromObject']=function(_0x3378fd){if(_0x3378fd instanceof _0x59f1d2['Range'])return _0x3378fd;var _0x2f52e0=new _0x59f1d2['Range']();if(null!=_0x3378fd['start']){if('object'!=typeof _0x3378fd['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x2f52e0['start']=_0x59f1d2['Position']['fromObject'](_0x3378fd['start']);}if(null!=_0x3378fd['end']){if('object'!=typeof _0x3378fd['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x2f52e0['end']=_0x59f1d2['Position']['fromObject'](_0x3378fd['end']);}return _0x2f52e0;},_0x41a4db['toObject']=function(_0x3148d9,_0x29704e){_0x29704e||(_0x29704e={});var _0x1d6c2f={};return _0x29704e['defaults']&&(_0x1d6c2f['start']=null,_0x1d6c2f['end']=null),null!=_0x3148d9['start']&&_0x3148d9['hasOwnProperty']('start')&&(_0x1d6c2f['start']=_0x59f1d2['Position']['toObject'](_0x3148d9['start'],_0x29704e)),null!=_0x3148d9['end']&&_0x3148d9['hasOwnProperty']('end')&&(_0x1d6c2f['end']=_0x59f1d2['Position']['toObject'](_0x3148d9['end'],_0x29704e)),_0x1d6c2f;},_0x41a4db['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x41a4db['getTypeUrl']=function(_0xbb1d9d){return void 0x0===_0xbb1d9d&&(_0xbb1d9d='type.googleapis.com'),_0xbb1d9d+'/Range';},_0x41a4db;}()),_0x59f1d2['Element']=(function(){function _0x1a7aef(_0x18a5fc){if(this['children']=[],this['attributesBoolean']={},_0x18a5fc){for(var _0x5e0c84=Object['keys'](_0x18a5fc),_0x2bc9e1=0x0;_0x2bc9e1<_0x5e0c84['length'];++_0x2bc9e1)null!=_0x18a5fc[_0x5e0c84[_0x2bc9e1]]&&(this[_0x5e0c84[_0x2bc9e1]]=_0x18a5fc[_0x5e0c84[_0x2bc9e1]]);}}return _0x1a7aef['prototype']['name']='',_0x1a7aef['prototype']['children']=_0x37d7b4['emptyArray'],_0x1a7aef['prototype']['data']='',_0x1a7aef['prototype']['attributesBoolean']=_0x37d7b4['emptyObject'],_0x1a7aef['prototype']['attributesJson']='',_0x1a7aef['create']=function(_0x225e82){return new _0x1a7aef(_0x225e82);},_0x1a7aef['encode']=function(_0x31ea1d,_0x3f50a5){if(_0x3f50a5||(_0x3f50a5=_0xb5c921['create']()),null!=_0x31ea1d['name']&&Object['hasOwnProperty']['call'](_0x31ea1d,'name')&&_0x3f50a5['uint32'](0xa)['string'](_0x31ea1d['name']),null!=_0x31ea1d['children']&&_0x31ea1d['children']['length']){for(var _0xfea7e8=0x0;_0xfea7e8<_0x31ea1d['children']['length'];++_0xfea7e8)_0x59f1d2['Element']['encode'](_0x31ea1d['children'][_0xfea7e8],_0x3f50a5['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x31ea1d['data']&&Object['hasOwnProperty']['call'](_0x31ea1d,'data')&&_0x3f50a5['uint32'](0x1a)['string'](_0x31ea1d['data']),null!=_0x31ea1d['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x31ea1d,'attributesBoolean')){var _0x3e7a03=Object['keys'](_0x31ea1d['attributesBoolean']);for(_0xfea7e8=0x0;_0xfea7e8<_0x3e7a03['length'];++_0xfea7e8)_0x3f50a5['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x3e7a03[_0xfea7e8])['uint32'](0x10)['bool'](_0x31ea1d['attributesBoolean'][_0x3e7a03[_0xfea7e8]])['ldelim']();}return null!=_0x31ea1d['attributesJson']&&Object['hasOwnProperty']['call'](_0x31ea1d,'attributesJson')&&_0x3f50a5['uint32'](0x2a)['string'](_0x31ea1d['attributesJson']),_0x3f50a5;},_0x1a7aef['encodeDelimited']=function(_0x340595,_0x4f6f0c){return this['encode'](_0x340595,_0x4f6f0c)['ldelim']();},_0x1a7aef['decode']=function(_0x254ab4,_0x394a0c){_0x254ab4 instanceof _0x2ed785||(_0x254ab4=_0x2ed785['create'](_0x254ab4));for(var _0x709677,_0x56d644,_0x5e65ce=void 0x0===_0x394a0c?_0x254ab4['len']:_0x254ab4['pos']+_0x394a0c,_0x66af7a=new _0x59f1d2['Element']();_0x254ab4['pos']<_0x5e65ce;){var _0x48da80=_0x254ab4['uint32']();switch(_0x48da80>>>0x3){case 0x1:_0x66af7a['name']=_0x254ab4['string']();break;case 0x2:_0x66af7a['children']&&_0x66af7a['children']['length']||(_0x66af7a['children']=[]),_0x66af7a['children']['push'](_0x59f1d2['Element']['decode'](_0x254ab4,_0x254ab4['uint32']()));break;case 0x3:_0x66af7a['data']=_0x254ab4['string']();break;case 0x4:_0x66af7a['attributesBoolean']===_0x37d7b4['emptyObject']&&(_0x66af7a['attributesBoolean']={});var _0x2c30dd=_0x254ab4['uint32']()+_0x254ab4['pos'];for(_0x709677='',_0x56d644=!0x1;_0x254ab4['pos']<_0x2c30dd;){var _0x52ddf0=_0x254ab4['uint32']();switch(_0x52ddf0>>>0x3){case 0x1:_0x709677=_0x254ab4['string']();break;case 0x2:_0x56d644=_0x254ab4['bool']();break;default:_0x254ab4['skipType'](0x7&_0x52ddf0);}}_0x66af7a['attributesBoolean'][_0x709677]=_0x56d644;break;case 0x5:_0x66af7a['attributesJson']=_0x254ab4['string']();break;default:_0x254ab4['skipType'](0x7&_0x48da80);}}return _0x66af7a;},_0x1a7aef['decodeDelimited']=function(_0xa03fa2){return _0xa03fa2 instanceof _0x2ed785||(_0xa03fa2=new _0x2ed785(_0xa03fa2)),this['decode'](_0xa03fa2,_0xa03fa2['uint32']());},_0x1a7aef['verify']=function(_0xf626a3){if('object'!=typeof _0xf626a3||null===_0xf626a3)return'object\x20expected';if(null!=_0xf626a3['name']&&_0xf626a3['hasOwnProperty']('name')&&!_0x37d7b4['isString'](_0xf626a3['name']))return'name:\x20string\x20expected';if(null!=_0xf626a3['children']&&_0xf626a3['hasOwnProperty']('children')){if(!Array['isArray'](_0xf626a3['children']))return'children:\x20array\x20expected';for(var _0x1ee9d4=0x0;_0x1ee9d4<_0xf626a3['children']['length'];++_0x1ee9d4){var _0x51994=_0x59f1d2['Element']['verify'](_0xf626a3['children'][_0x1ee9d4]);if(_0x51994)return'children.'+_0x51994;}}if(null!=_0xf626a3['data']&&_0xf626a3['hasOwnProperty']('data')&&!_0x37d7b4['isString'](_0xf626a3['data']))return'data:\x20string\x20expected';if(null!=_0xf626a3['attributesBoolean']&&_0xf626a3['hasOwnProperty']('attributesBoolean')){if(!_0x37d7b4['isObject'](_0xf626a3['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x4fe1a1=Object['keys'](_0xf626a3['attributesBoolean']);for(_0x1ee9d4=0x0;_0x1ee9d4<_0x4fe1a1['length'];++_0x1ee9d4)if('boolean'!=typeof _0xf626a3['attributesBoolean'][_0x4fe1a1[_0x1ee9d4]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0xf626a3['attributesJson']&&_0xf626a3['hasOwnProperty']('attributesJson')&&!_0x37d7b4['isString'](_0xf626a3['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x1a7aef['fromObject']=function(_0x4de4f5){if(_0x4de4f5 instanceof _0x59f1d2['Element'])return _0x4de4f5;var _0x4a2555=new _0x59f1d2['Element']();if(null!=_0x4de4f5['name']&&(_0x4a2555['name']=String(_0x4de4f5['name'])),_0x4de4f5['children']){if(!Array['isArray'](_0x4de4f5['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x4a2555['children']=[];for(var _0x3f1e3d=0x0;_0x3f1e3d<_0x4de4f5['children']['length'];++_0x3f1e3d){if('object'!=typeof _0x4de4f5['children'][_0x3f1e3d])throw TypeError('.Element.children:\x20object\x20expected');_0x4a2555['children'][_0x3f1e3d]=_0x59f1d2['Element']['fromObject'](_0x4de4f5['children'][_0x3f1e3d]);}}if(null!=_0x4de4f5['data']&&(_0x4a2555['data']=String(_0x4de4f5['data'])),_0x4de4f5['attributesBoolean']){if('object'!=typeof _0x4de4f5['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x4a2555['attributesBoolean']={};var _0x13f86c=Object['keys'](_0x4de4f5['attributesBoolean']);for(_0x3f1e3d=0x0;_0x3f1e3d<_0x13f86c['length'];++_0x3f1e3d)_0x4a2555['attributesBoolean'][_0x13f86c[_0x3f1e3d]]=Boolean(_0x4de4f5['attributesBoolean'][_0x13f86c[_0x3f1e3d]]);}return null!=_0x4de4f5['attributesJson']&&(_0x4a2555['attributesJson']=String(_0x4de4f5['attributesJson'])),_0x4a2555;},_0x1a7aef['toObject']=function(_0x581eea,_0x25bf61){_0x25bf61||(_0x25bf61={});var _0x44d475,_0x388791={};if((_0x25bf61['arrays']||_0x25bf61['defaults'])&&(_0x388791['children']=[]),(_0x25bf61['objects']||_0x25bf61['defaults'])&&(_0x388791['attributesBoolean']={}),_0x25bf61['defaults']&&(_0x388791['name']='',_0x388791['data']='',_0x388791['attributesJson']=''),null!=_0x581eea['name']&&_0x581eea['hasOwnProperty']('name')&&(_0x388791['name']=_0x581eea['name']),_0x581eea['children']&&_0x581eea['children']['length']){_0x388791['children']=[];for(var _0x10abc4=0x0;_0x10abc4<_0x581eea['children']['length'];++_0x10abc4)_0x388791['children'][_0x10abc4]=_0x59f1d2['Element']['toObject'](_0x581eea['children'][_0x10abc4],_0x25bf61);}if(null!=_0x581eea['data']&&_0x581eea['hasOwnProperty']('data')&&(_0x388791['data']=_0x581eea['data']),_0x581eea['attributesBoolean']&&(_0x44d475=Object['keys'](_0x581eea['attributesBoolean']))['length']){_0x388791['attributesBoolean']={};for(_0x10abc4=0x0;_0x10abc4<_0x44d475['length'];++_0x10abc4)_0x388791['attributesBoolean'][_0x44d475[_0x10abc4]]=_0x581eea['attributesBoolean'][_0x44d475[_0x10abc4]];}return null!=_0x581eea['attributesJson']&&_0x581eea['hasOwnProperty']('attributesJson')&&(_0x388791['attributesJson']=_0x581eea['attributesJson']),_0x388791;},_0x1a7aef['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1a7aef['getTypeUrl']=function(_0x1cbd0b){return void 0x0===_0x1cbd0b&&(_0x1cbd0b='type.googleapis.com'),_0x1cbd0b+'/Element';},_0x1a7aef;}()),_0x59f1d2;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x1eb0ec){return new ProtobufDescriptor(this['_protobufRoot'][_0x1eb0ec]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0x1ea521){this['_protobuf']=_0x1ea521;}['compress'](_0x39b083){const _0x54c799=this['_protobuf']['verify'](_0x39b083);if(_0x54c799)throw Error(_0x54c799);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x39b083))['finish']();}['decompress'](_0x33a8de){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x33a8de),{'oneofs':!0x0});}}function getPositionShiftedBy(_0x51374d,_0xcc3d33){const _0x11b3b6=cloneDeep(_0x51374d);return _0x11b3b6['path'][_0x11b3b6['path']['length']-0x1]+=_0xcc3d33,_0x11b3b6;}function arePositionsEqual(_0x2b490a,_0x38002f){return _0x2b490a['root']===_0x38002f['root']&&isEqual(_0x2b490a['path'],_0x38002f['path']);}function parsePositionBeforeCompression(_0x11658a){_mapPositions(_0x11658a,_0x2f694a=>('main'==_0x2f694a['root']?(_0x2f694a['rootMain']=!0x0,delete _0x2f694a['root']):'$graveyard'==_0x2f694a['root']&&(_0x2f694a['rootGraveyard']=!0x0,delete _0x2f694a['root']),_0x2f694a));}function parsePositionAfterCompression(_0x49e0e3){_mapPositions(_0x49e0e3,_0x4711ca=>(_0x4711ca['rootMain']?(_0x4711ca['root']='main',delete _0x4711ca['rootMain']):_0x4711ca['rootGraveyard']&&(_0x4711ca['root']='$graveyard',delete _0x4711ca['rootGraveyard']),_0x4711ca));}function _mapPositions(_0x1165fb,_0x3666c4){for(const _0x1ce1f7 in _0x1165fb){const _0x49434c=_0x1165fb[_0x1ce1f7];'nodes'!==_0x1ce1f7&&isObject$2(_0x49434c)&&(_0x49434c['path']&&(_0x49434c['root']||_0x49434c['rootMain']||_0x49434c['rootGraveyard'])?_0x1165fb[_0x1ce1f7]=_0x3666c4(_0x49434c):_mapPositions(_0x49434c,_0x3666c4));}return _0x1165fb;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x2d22c5,_0x4558c3,_0x5c832b){this['_id']=_0x2d22c5,this['_operationName']=_0x4558c3,this['_protobufDescriptor']=_0x5c832b;}['compress'](_0x47876d,_0x297ed2){const _0x56096f=_0x297ed2['operations'][_0x297ed2['index']++];return parsePositionBeforeCompression(_0x56096f),_0x47876d['buffers']['push'](this['_protobufDescriptor']['compress'](_0x56096f)),_0x47876d['types']['push'](this['_id']),!0x0;}['decompress'](_0x4c18ab,_0x4ae85c){_0x4ae85c['typeIndex']++;const _0x5cd135=_0x4ae85c['buffers'][_0x4ae85c['bufferIndex']++],_0x2252ae=this['_protobufDescriptor']['decompress'](_0x5cd135);parsePositionAfterCompression(_0x2252ae),_0x2252ae['__className']=this['_operationName'],_0x4c18ab['push'](_0x2252ae);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x4cb2ac,_0xe0ba7a){const _0x478137=_0xe0ba7a['operations'][_0xe0ba7a['index']++];return this['_serializeOneOf']('oldValue',_0x478137),this['_serializeOneOf']('newValue',_0x478137),parsePositionBeforeCompression(_0x478137),_0x4cb2ac['buffers']['push'](this['_protobufDescriptor']['compress'](_0x478137)),_0x4cb2ac['types']['push'](this['_id']),!0x0;}['decompress'](_0x2440af,_0x5e433f){_0x5e433f['typeIndex']++;const _0x4a938b=_0x5e433f['buffers'][_0x5e433f['bufferIndex']++],_0x577bad=this['_protobufDescriptor']['decompress'](_0x4a938b);this['_deserializeOneOf']('oldValue',_0x577bad),this['_deserializeOneOf']('newValue',_0x577bad),parsePositionAfterCompression(_0x577bad),_0x577bad['__className']=this['_operationName'],_0x2440af['push'](_0x577bad);}['_serializeOneOf'](_0x23059b,_0x53fea4){const _0x16ac5a=_0x53fea4[_0x23059b];'boolean'==typeof _0x16ac5a?_0x53fea4[_0x23059b+'Boolean']=_0x16ac5a:_0x53fea4[_0x23059b+'Json']=JSON['stringify'](_0x16ac5a);}['_deserializeOneOf'](_0xe5c8d6,_0x1ceb37){const _0x430367=_0xe5c8d6+'Json';_0x1ceb37[_0x430367]?(_0x1ceb37[_0xe5c8d6]=JSON['parse'](_0x1ceb37[_0x430367]),delete _0x1ceb37[_0x430367]):(_0x1ceb37[_0xe5c8d6]=_0x1ceb37[_0xe5c8d6+'Boolean'],delete _0x1ceb37[_0xe5c8d6+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0x12990c,_0x4cde28){const _0x41a524=_0x4cde28['operations'][_0x4cde28['index']++];return this['_serializeNodesAttributes'](_0x41a524['nodes']),parsePositionBeforeCompression(_0x41a524),_0x12990c['buffers']['push'](this['_protobufDescriptor']['compress'](_0x41a524)),_0x12990c['types']['push'](this['_id']),!0x0;}['decompress'](_0x3e0e2e,_0x5e166b){_0x5e166b['typeIndex']++;const _0x21ed5b=_0x5e166b['buffers'][_0x5e166b['bufferIndex']++],_0x40c342=this['_protobufDescriptor']['decompress'](_0x21ed5b);_0x40c342['nodes']||(_0x40c342['nodes']=[]),this['_deserializeNodesAttributes'](_0x40c342['nodes']),parsePositionAfterCompression(_0x40c342),_0x40c342['__className']=this['_operationName'],_0x3e0e2e['push'](_0x40c342);}['_serializeNodesAttributes'](_0xfde67){for(const _0x253828 of _0xfde67){if(_0x253828['attributes']){const _0x5e23a2=_0x253828['attributes'];this['_areValuesBoolean'](_0x5e23a2)?_0x253828['attributesBoolean']=_0x5e23a2:_0x253828['attributesJson']=JSON['stringify'](_0x5e23a2);}_0x253828['children']&&this['_serializeNodesAttributes'](_0x253828['children']);}}['_deserializeNodesAttributes'](_0x5d3304){for(const _0x5d4da2 of _0x5d3304)(_0x5d4da2['attributesBoolean']||_0x5d4da2['attributesJson'])&&(_0x5d4da2['attributesBoolean']?(_0x5d4da2['attributes']=_0x5d4da2['attributesBoolean'],delete _0x5d4da2['attributesBoolean']):(_0x5d4da2['attributes']=JSON['parse'](_0x5d4da2['attributesJson']),delete _0x5d4da2['attributesJson'])),_0x5d4da2['children']&&this['_deserializeNodesAttributes'](_0x5d4da2['children']);}['_areValuesBoolean'](_0x348b39){return Object['keys'](_0x348b39)['every'](_0xed61c8=>'boolean'==typeof _0x348b39[_0xed61c8]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x5f3c4c,_0x39b2be){super['decompress'](_0x5f3c4c,_0x39b2be);const _0x28fd1a=_0x5f3c4c[_0x5f3c4c['length']-0x1];_0x28fd1a['oldRange']||(_0x28fd1a['oldRange']=null),_0x28fd1a['newRange']||(_0x28fd1a['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0x576563,_0x8e08fe){return _0x8e08fe['index']++,_0x576563['types']['push'](this['_id']),!0x0;}['decompress'](_0x2ec032,_0x8692ef){_0x8692ef['typeIndex']++,_0x2ec032['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0x244d63,_0x1309d5,_0x3fa0b1,_0x43f1d0){super(_0x244d63,_0x1309d5,_0x3fa0b1),this['_omittedNamespace']=_0x43f1d0+':';}['compress'](_0xb66e7e,_0x4f9595){const _0x5aa0e9=_0x4f9595['operations'][_0x4f9595['index']];return!('MarkerOperation'!=_0x5aa0e9['__className']||!_0x5aa0e9['name']['startsWith'](this['_omittedNamespace']))&&(_0x5aa0e9['name']=_0x5aa0e9['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0xb66e7e,_0x4f9595),!0x0);}['decompress'](_0x494a6b,_0x184d89){super['decompress'](_0x494a6b,_0x184d89);const _0x52778d=_0x494a6b[_0x494a6b['length']-0x1];_0x52778d['name']=this['_omittedNamespace']+_0x52778d['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x346fd8,_0x31e89a){this['_id']=_0x346fd8,this['_context']=_0x31e89a;}['compress'](_0x2f0c05,_0x549052){let _0x4726ab,_0xf0e201=_0x549052['operations'][_0x549052['index']],_0x297424=_0x549052['operations'][_0x549052['index']+0x1];for(;_0x297424&&this['_compareOperations'](_0xf0e201,_0x297424);)_0x4726ab?(_0x4726ab=this['_combineNext'](_0xf0e201,_0x4726ab),_0x2f0c05['types']['push'](0x0)):(_0x4726ab=cloneDeep(_0xf0e201),_0x2f0c05['types']['push'](this['_id'])),_0x549052['index']++,_0xf0e201=_0x549052['operations'][_0x549052['index']],_0x297424=_0x549052['operations'][_0x549052['index']+0x1];return!!_0x4726ab&&(_0x4726ab=this['_combineNext'](_0x549052['operations'][_0x549052['index']++],_0x4726ab),_0x2f0c05['types']['push'](0x0),_0x2f0c05['buffers']['push'](this['_compressSingleOperation'](_0x4726ab)),!0x0);}['decompress'](_0x1f6c62,_0x5b6707){const _0x1aa92a=this['_decompressSingleOperation'](_0x5b6707);for(;0x0==_0x5b6707['types'][_0x5b6707['typeIndex']];)_0x5b6707['typeIndex']++,_0x1f6c62['push'](this['_splitCurrent'](_0x1aa92a));_0x1f6c62['push'](_0x1aa92a);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x48933b,_0x5d4aed){return _0x5d4aed['nodes'][0x0]['data']+=_0x48933b['nodes'][0x0]['data'],_0x5d4aed;}['_splitCurrent'](_0xcfa016){const _0x33987d=cloneDeep(_0xcfa016),_0x4794a4=_0x33987d['nodes'][0x0],_0xa846a1=_0xcfa016['nodes'][0x0],_0x5bbaa4=_0xa846a1['data'][Symbol['iterator']]()['next']()['value'],_0x3206c6=_0x5bbaa4['length'];return _0x4794a4['data']=_0x5bbaa4,_0xa846a1['data']=_0xa846a1['data']['substr'](_0x3206c6),_0xcfa016['position']=getPositionShiftedBy(_0xcfa016['position'],_0x3206c6),_0x33987d;}['_compareOperations'](_0x4650f1,_0x5bc0ea){if(this['_checkOperation'](_0x4650f1)&&this['_checkOperation'](_0x5bc0ea)){const _0x199c2a=_0x4650f1['nodes'][0x0]['data']['length'],_0x4f7519=arePositionsEqual(getPositionShiftedBy(_0x4650f1['position'],_0x199c2a),_0x5bc0ea['position']),_0x5bf052=_0x4650f1['nodes'][0x0],_0xc540a4=_0x5bc0ea['nodes'][0x0];return _0x4f7519&&this['_compareAttributes'](_0x5bf052,_0xc540a4);}return!0x1;}['_compressSingleOperation'](_0x5bde17){const _0x7b5e2={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x7b5e2,{'operations':[_0x5bde17],'index':0x0}),_0x7b5e2['buffers'][0x0];}['_decompressSingleOperation'](_0x5274d2){const _0x31471c=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x31471c,_0x5274d2),_0x31471c[0x0];}['_checkOperation'](_0x5ee40e){return'InsertOperation'==_0x5ee40e['__className']&&0x1==_0x5ee40e['nodes']['length']&&_0x5ee40e['nodes'][0x0]['data']&&!_0x5ee40e['wasUndone']&&0x1==Array['from'](_0x5ee40e['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0xb9ca49,_0x1b0528){const _0x284867=Object['keys'](_0xb9ca49['attributes']||{}),_0x3ca121=Object['keys'](_0x1b0528['attributes']||{});return _0x284867['length']===_0x3ca121['length']&&_0x284867['every'](_0x5c971b=>_0x1b0528['attributes'][_0x5c971b]&&_0x1b0528['attributes'][_0x5c971b]===_0xb9ca49['attributes'][_0x5c971b]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x236afc,_0x41bbbb){return _0x41bbbb['howMany']++,_0x41bbbb['sourcePosition']=cloneDeep(_0x236afc['sourcePosition']),_0x41bbbb;}['_splitCurrent'](_0x6fde1a){const _0x3028cc=cloneDeep(_0x6fde1a);return _0x6fde1a['howMany']--,_0x3028cc['howMany']=0x1,_0x3028cc['sourcePosition']=getPositionShiftedBy(_0x3028cc['sourcePosition'],_0x6fde1a['howMany']),_0x3028cc;}['_compareOperations'](_0x547aa5,_0x2ce479){return!(!this['_checkOperation'](_0x547aa5)||!this['_checkOperation'](_0x2ce479))&&(arePositionsEqual(getPositionShiftedBy(_0x547aa5['sourcePosition'],-0x1),_0x2ce479['sourcePosition'])&&arePositionsEqual(_0x547aa5['targetPosition'],_0x2ce479['targetPosition']));}['_compressSingleOperation'](_0x1f4b2b){const _0xde9f9d={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0xde9f9d,{'operations':[_0x1f4b2b],'index':0x0}),_0xde9f9d['buffers'][0x0];}['_decompressSingleOperation'](_0x57db76){const _0x1c9666=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x1c9666,_0x57db76),_0x1c9666[0x0];}['_checkOperation'](_0x4f434c){return'MoveOperation'==_0x4f434c['__className']&&'$graveyard'==_0x4f434c['targetPosition']['root']&&0x1==_0x4f434c['howMany']&&!_0x4f434c['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x4557fa,_0x1e1967){return _0x1e1967['howMany']++,_0x1e1967;}['_splitCurrent'](_0x519805){const _0x23bd33=cloneDeep(_0x519805);return _0x23bd33['howMany']=0x1,_0x519805['howMany']--,_0x23bd33;}['_compareOperations'](_0x4b7b49,_0x319ccc){return!(!this['_checkOperation'](_0x4b7b49)||!this['_checkOperation'](_0x319ccc))&&(arePositionsEqual(_0x4b7b49['sourcePosition'],_0x319ccc['sourcePosition'])&&arePositionsEqual(_0x4b7b49['targetPosition'],_0x319ccc['targetPosition']));}['_compressSingleOperation'](_0x1a7c3c){const _0x26a4ee={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x26a4ee,{'operations':[_0x1a7c3c],'index':0x0}),_0x26a4ee['buffers'][0x0];}['_decompressSingleOperation'](_0x100dcf){const _0x2c1b65=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x2c1b65,_0x100dcf),_0x2c1b65[0x0];}['_checkOperation'](_0x3c4b5e){return'MoveOperation'==_0x3c4b5e['__className']&&'$graveyard'==_0x3c4b5e['targetPosition']['root']&&0x1==_0x3c4b5e['howMany']&&!_0x3c4b5e['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x5d046c,_0x49c002){if(!this['_compareOperations'](_0x49c002['operations'][_0x49c002['index']],_0x49c002['operations'][_0x49c002['index']+0x1]))return!0x1;const _0x499deb=_0x49c002['operations'][_0x49c002['index']++];return _0x499deb['oldRange']=null,_0x499deb['newRange']&&arePositionsEqual(_0x499deb['newRange']['start'],_0x499deb['newRange']['end'])&&(_0x499deb['newRange']['end']=null),_0x49c002['index']++,_0x5d046c['types']['push'](this['_id']),_0x5d046c['types']['push'](0x0),_0x5d046c['buffers']['push'](this['_compressSingleOperation'](_0x499deb)),!0x0;}['decompress'](_0x474f5f,_0x1cb236){const _0x11b0ec=this['_decompressSingleOperation'](_0x1cb236);_0x11b0ec['newRange']&&!_0x11b0ec['newRange']['end']&&(_0x11b0ec['newRange']['end']=cloneDeep(_0x11b0ec['newRange']['start']));const _0x3d01b9=cloneDeep(_0x11b0ec);_0x3d01b9['newRange']&&(_0x3d01b9['newRange']['start']['stickiness']='toNone',_0x3d01b9['newRange']['end']=cloneDeep(_0x3d01b9['newRange']['start'])),_0x3d01b9['name']='user:position:'+_0x3d01b9['name']['split'](':')[0x2],_0x1cb236['typeIndex']++,_0x474f5f['push'](_0x11b0ec),_0x474f5f['push'](_0x3d01b9);}['_compressSingleOperation'](_0x19657e){const _0x4d4acb={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x4d4acb,{'operations':[_0x19657e],'index':0x0}),_0x4d4acb['buffers'][0x0];}['_decompressSingleOperation'](_0xf29b15){const _0x1aa7bc=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x1aa7bc,_0xf29b15),_0x1aa7bc[0x0];}['_compareOperations'](_0x908145,_0x3a1cb3){return!(!_0x908145||!_0x3a1cb3)&&('MarkerOperation'==_0x908145['__className']&&'MarkerOperation'==_0x3a1cb3['__className']&&!(!_0x908145['name']['startsWith']('user:')||!_0x3a1cb3['name']['startsWith']('user:')||_0x908145['name']==_0x3a1cb3['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0x23aa29=this['_protobufFactory']['getDescriptor']('MarkerOperation');this['_registerCompressor'](0x1,'NoOperation',new NoOperationCompressor(0x1,'NoOperation',void 0x0)),this['_registerOperationCompressor'](0xa,'AttributeOperation',AttributeOperationCompressor),this['_registerOperationCompressor'](0xb,'InsertOperation',InsertOperationCompressor),this['_registerOperationCompressor'](0xc,'MarkerOperation',MarkerOperationCompressor),this['_registerOperationCompressor'](0xd,'MergeOperation',OperationCompressor),this['_registerOperationCompressor'](0xe,'MoveOperation',OperationCompressor),this['_registerOperationCompressor'](0xf,'RenameOperation',OperationCompressor),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',AttributeOperationCompressor),this['_registerOperationCompressor'](0x11,'SplitOperation',OperationCompressor),this['_registerCompressor'](0x12,'CommentMarkerOperation',new AnnotationMarkerOperationCompressor(0x12,'MarkerOperation',_0x23aa29,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0x23aa29,'suggestion')),this['_registerOperationCompressor'](0x14,'RootOperation',OperationCompressor),this['_registerActionCompressor'](0x64,'TypingAction',TypingActionCompressor),this['_registerActionCompressor'](0x65,'DeletingAction',DeletingActionCompressor),this['_registerActionCompressor'](0x66,'ForwardDeletingAction',ForwardDeletingActionCompressor),this['_registerActionCompressor'](0x67,'UserSelectionAction',UserSelectionActionCompressor);}['compress'](_0x46a5d8){if(!_0x46a5d8||!_0x46a5d8[0x0])throw new CKEditorError('no-operations-provided',this);const _0x372945={'operations':_0x46a5d8,'index':0x0},_0x3b24b3={'types':[],'buffers':[],'baseVersion':_0x46a5d8[0x0]['baseVersion']};for(;_0x372945['index']<_0x372945['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x3b24b3,_0x372945))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x3b24b3,_0x372945))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x3b24b3,_0x372945))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x3b24b3,_0x372945))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x3b24b3,_0x372945))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x3b24b3,_0x372945))continue;const _0x14917c=_0x372945['operations'][_0x372945['index']]['__className'];this['_getCompressorByName'](_0x14917c)['compress'](_0x3b24b3,_0x372945);}return _0x3b24b3;}['decompress'](_0xad00d8){const _0x26f231=[],_0x5c12fc={'types':_0xad00d8['types'],'buffers':_0xad00d8['buffers'],'baseVersion':_0xad00d8['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x5c12fc['typeIndex']<_0x5c12fc['types']['length'];){const _0x13a72b=_0x5c12fc['types'][_0x5c12fc['typeIndex']],_0x17fe71=this['_compressorById']['get'](_0x13a72b);if(!_0x17fe71)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x13a72b});_0x17fe71['decompress'](_0x26f231,_0x5c12fc);}return _0x26f231['forEach']((_0x1c498c,_0x28429c)=>_0x1c498c['baseVersion']=_0xad00d8['baseVersion']+_0x28429c),_0x26f231;}['_getCompressorByName'](_0x3211b3){return this['_compressorByName']['get'](_0x3211b3);}['_registerOperationCompressor'](_0x4501b8,_0x2a58dd,_0x35a203){const _0x577e9d=new _0x35a203(_0x4501b8,_0x2a58dd,this['_protobufFactory']['getDescriptor'](_0x2a58dd));this['_registerCompressor'](_0x4501b8,_0x2a58dd,_0x577e9d);}['_registerActionCompressor'](_0x28302d,_0x459375,_0x1bc58f){const _0x5b8de6=new _0x1bc58f(_0x28302d,this);this['_registerCompressor'](_0x28302d,_0x459375,_0x5b8de6);}['_registerCompressor'](_0x4b9217,_0x542ccd,_0x36fd55){this['_compressorById']['set'](_0x4b9217,_0x36fd55),this['_compressorByName']['set'](_0x542ccd,_0x36fd55);}}let requestCount=0x1;class RealTimeCollaborationClient extends Plugin{static ['CollaborativeEditingService']=/* #__PURE__ -- @preserve */
((()=>CollaborativeEditingService)());['_offset'];['sessionId'];['serverHistory'];['_channelId'];['_service'];['_document'];['_compressor'];['_bufferedOperations'];['_knownOperations'];['_knownRootNames'];['_pendingAction'];['_hasSelectionChanged'];['_sendBufferedOperationsDelayId'];['_baseBufferDelay'];['_currentBufferDelay'];['_lastSyncedOperationId'];['_disconnectionOperations'];['_operationIdentifier'];static get['requires'](){return[WebSocketGateway,Sessions,UserMarkers,PendingActions,Users,Notification];}static get['pluginName'](){return'RealTimeCollaborationClient';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['cloudDocumentVersion'](){return this['_lastServerVersion']+this['_offset'];}get['_lastServerVersion'](){return this['serverHistory']['version']-this['_offset'];}get['lastSyncVersion'](){const _0x1307cd=this['serverHistory']['getOperations']();for(let _0x259778=_0x1307cd['length']-0x1;_0x259778>=0x0;_0x259778--){const _0x58aab8=_0x1307cd[_0x259778];if(!this['_disconnectionOperations']['has'](_0x58aab8))return _0x58aab8['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0xe1a7ea){if(super(_0xe1a7ea),this['_offset']=0x0,this['sessionId']=null,this['serverHistory']=new History(),this['editor']['config']['define']('collaboration',{}),this['_channelId']=this['editor']['config']['get']('collaboration.channelId'),!this['_channelId'])throw new CKEditorError('collaboration-missing-channelid',this);const _0x1ce674=_0xe1a7ea['config']['get']('cloudServices.bundleVersion')||_0x118cb6;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x1ce674,this['_channelId']),this['_document']=this['editor']['model']['document'],this['_compressor']=new Compressor(),this['_bufferedOperations']=[],this['_knownOperations']=new WeakSet(),this['_knownRootNames']=new Set(),this['set']('_isPendingUpdate',!0x1),this['set']('_hasSynchronizationProblem',!0x1),this['_pendingAction']=null,this['_hasSelectionChanged']=!0x1,this['_sendBufferedOperationsDelayId']=null,this['_baseBufferDelay']=0x12c,this['_currentBufferDelay']=this['_baseBufferDelay'],this['_lastSyncedOperationId']=null,this['_disconnectionOperations']=new WeakSet(),this['_operationIdentifier']=new OperationIdentifier(this['_disconnectionOperations']);}['init'](){const _0x470659=this['editor'],_0x175f07=_0x470659['plugins']['get'](Users),_0x296af6=_0x470659['plugins']['get'](WebSocketGateway);this['listenTo'](_0x175f07,'getOperationAuthor',(_0x354aa8,_0x1fd648)=>{const _0x3461c9=_0x1fd648[0x0];_0x3461c9['_authorId']&&(_0x354aa8['return']=_0x175f07['getUser'](_0x3461c9['_authorId']),_0x354aa8['stop']()),null===_0x3461c9['_authorId']&&(_0x354aa8['return']=null,_0x354aa8['stop']());},{'priority':'high'}),this['listenTo'](_0x470659['model']['document']['selection'],'change:range',(_0x2a988b,_0x22d039)=>{_0x22d039['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x470659['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x470659['model']['on']('applyOperation',(_0x3c5792,_0x4956b3)=>{const _0x3e228a=_0x4956b3[0x0];_0x3e228a['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x3e228a),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x296af6,'state',this,'_hasSynchronizationProblem',(_0xd0f2d0,_0x57b90a)=>'connected'===_0xd0f2d0&&!_0x57b90a),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x470659['disableReadOnlyMode']('rtc-offline'):_0x470659['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x470659['disableReadOnlyMode']('rtc-offline'):_0x470659['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0xc60bb5=this['editor']['plugins']['get'](Sessions),_0x58f117=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0xc60bb5['unregister'](this['_channelId']);const _0x3f4a68=await this['_service']['reconnect'](_0x58f117['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x3f4a68)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x4d4f2c=await this['_service']['getConnectedSessions']();_0xc60bb5['register'](this['_channelId'],_0x4d4f2c),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x17b1e6){if(isSessionNotExistingError(_0x17b1e6)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0x17b1e6)){const _0x598e1f=getTranslation$6(this['editor']['locale'],'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');this['_handleReconnectionError'](_0x598e1f);}else{if(!(_0x17b1e6 instanceof ReconnectionError))throw _0x17b1e6;this['_handleReconnectionError']();}}}}['destroy'](){const _0x16853a=this['editor']['plugins']['get'](WebSocketGateway),_0x3b9bec=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x3b9bec['channelSessions']['has'](this['_channelId'])&&_0x3b9bec['unregister'](this['_channelId']),_0x16853a['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x3dde2e){if(this['sessionId']!==_0x3dde2e['sessionId']&&this['_lastSyncedOperationId']!==_0x3dde2e['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0x3dde2e['sessionId'],this['_handleServerResponse']([],{..._0x3dde2e,'wereChangesApplied':!0x1,'data':_0x3dde2e['data']},'reconnect');}async['_connectService'](_0x2b59f8,_0x5c52b1=!0x1){const {connection:_0x5af31a}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x5af31a,this['_channelId'])['then'](_0x2283b5=>this['_initSessionsHandling'](_0x2283b5))['catch'](_0x2114b1=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x2114b1);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0x50fadb,_0x1b6ff7)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0x1b6ff7);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0xfb48ee=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x2b59f8);this['_isPendingUpdate']=!0x0;const _0x5e0bcf=await this['_service']['connect'](_0x5af31a,this['_compressOperations'](_0x2b59f8),_0xfb48ee);if(this['sessionId']=_0x5e0bcf['sessionId'],_0x5c52b1){if(!_0x5e0bcf['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x5e0bcf['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x2b59f8,_0x5e0bcf,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x5e0bcf,_0x2b59f8);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0x5a08b5=this['editor']['plugins']['get'](Sessions),_0x2dda4b=this['editor']['plugins']['get'](UserMarkers),_0x6747c=_0x5a08b5['channelSessions']['get'](this['_channelId']);_0x6747c&&_0x6747c['length']>0x1?_0x2dda4b['createUserMarkerOperations']():this['listenTo'](_0x5a08b5,'sessionAdd:'+this['_channelId'],()=>{0x2===_0x5a08b5['channelSessions']['get'](this['_channelId'])['length']&&_0x2dda4b['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x48916d,_0x39ba7c,_0x73a9d7,_0x2c3179){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x39ba7c){const _0x7ccaef=this['_decompressOperations'](_0x73a9d7,_0x2c3179);await this['_fetchMissingUsers'](_0x7ccaef),this['_handleExternalOperations'](_0x7ccaef,_0x39ba7c,_0x73a9d7['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x44bd91}=this['editor'];let _0x98bb24;try{_0x98bb24=await this['_service']['getDocumentDetails']();}catch{const _0x3feb76=getTranslation$6(_0x44bd91,'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');return void this['_handleReconnectionError'](_0x3feb76);}const _0x3b4e3f=_0x98bb24['currentDocumentSession']||_0x98bb24['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x3b4e3f['lastOperationId']){const _0x276ce3=getTranslation$6(_0x44bd91,'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');return void this['_handleReconnectionError'](_0x276ce3);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x520b98){const _0x5c748a=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x5c748a,'sessionAdd:'+this['_channelId'],(_0x2d9d4e,{session:_0x29f2bd})=>{if(_0x29f2bd['id']===_0x5c748a['mySessionId']){_0x2d9d4e['off']();const _0x405a82=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x23b358=_0x29f2bd['permissions'];_0x405a82&&_0x405a82['isEnabled']&&(_0x23b358=_0x23b358['filter'](_0x1ffc5c=>'document:write'!==_0x1ffc5c)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x23b358,this['_channelId']);}}),_0x5c748a['register'](this['_channelId'],_0x520b98);}['_initThrowingOnDataSet'](){const _0x2a7f98=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x25b783)=>{if(!_0x25b783[_0x25b783['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x2a7f98['apply'](this['editor']['data'],_0x25b783);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0xabe123,[_0x4cab83])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0xabe123['stop'](),this['_setPendingAction']();const _0x3cab70=Object['fromEntries'](Object['entries'](this['editor']['config']['get']('roots')||{})['filter'](([,_0x39c832])=>!_0x39c832['lazyLoad'])['map'](([_0xd0dfcf,_0x1f31e0])=>[_0xd0dfcf,_0x1f31e0['modelAttributes']||{}])),_0x54b3e7=this['_getOperationsFromInitData'](_0x4cab83,_0x3cab70);0x0==_0x54b3e7['length']&&_0x54b3e7['push'](new NoOperation(0x0)),_0xabe123['return']=this['_connectService'](_0x54b3e7)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x2f107b=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x2f107b))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0x3a9642,[_0x47235b,_0x5b3c65])=>{_0x3a9642['stop']();const _0x1573a6=this['editor']['model']['document']['getRoot'](_0x47235b);if(!this['_knownRootNames']['has'](_0x47235b)){const _0x121477=_0x5b3c65&&_0x5b3c65['data']?_0x5b3c65['data']:'',_0x1889d7=_0x5b3c65&&_0x5b3c65['attributes']?_0x5b3c65['attributes']:{};await this['_loadRoot'](_0x47235b,_0x121477,_0x1889d7);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1573a6['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x1573a6);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x25dd4c){const _0x7b6bd6=this['editor']['plugins']['get'](Users),{connection:_0xa05f65}=this['editor']['plugins']['get'](WebSocketGateway),_0x16b482=new Set();for(const _0x1e3d4f of _0x25dd4c){const _0xe09464=_0x1e3d4f['_authorId'];_0xe09464&&!_0x7b6bd6['getUser'](_0xe09464)&&_0x16b482['add'](_0xe09464);}if(0x0===_0x16b482['size'])return;const _0x29bc3e=await User['getMany'](_0xa05f65,Array['from'](_0x16b482));for(const _0x2ab869 of _0x29bc3e)_0x7b6bd6['getUser'](_0x2ab869['id'])||_0x7b6bd6['addUser'](_0x2ab869);}['_getOperationsFromInitData'](_0x41c2fb,_0x3a8b83={}){const _0x4783a6=this['editor']['model'],_0x26010f=[];let _0x2dab9c=0x0;const _0x119dfe='string'==typeof _0x41c2fb?{'main':_0x41c2fb}:_0x41c2fb;for(const _0xf716da of Object['keys'](_0x119dfe)){if(!this['_document']['roots']['has'](_0xf716da))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0x1d8c94=this['editor']['data']['parse'](_0x119dfe[_0xf716da]),_0x4d8c6b=this['_document']['getRoot'](_0xf716da),_0x32fd48=new InsertOperation(_0x4783a6['createPositionAt'](_0x4d8c6b,0x0),_0x1d8c94,_0x2dab9c++);_0x26010f['push'](_0x32fd48);for(const [_0x26b62d,_0x5f4e23]of _0x1d8c94['markers']){const _0x471734=_0x4783a6['createRange'](_0x4783a6['createPositionFromPath'](_0x4d8c6b,_0x5f4e23['start']['path']['slice']()),_0x4783a6['createPositionFromPath'](_0x4d8c6b,_0x5f4e23['end']['path']['slice']())),_0x2a0a43=new MarkerOperation(_0x26b62d,null,_0x471734,_0x4783a6['markers'],!0x0,_0x2dab9c++);_0x26010f['push'](_0x2a0a43);}}if(_0x3a8b83)for(const [_0x4a2106,_0x1b5d51]of Object['entries'](_0x3a8b83)){const _0x4c5e80=_0x4783a6['document']['getRoot'](_0x4a2106);if(!_0x4c5e80)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0x28afeb,_0x1019f0]of Object['entries'](_0x1b5d51))if(null!==_0x1019f0){const _0xd0164b=new RootAttributeOperation(_0x4c5e80,_0x28afeb,null,_0x1019f0,_0x2dab9c++);_0x26010f['push'](_0xd0164b);}}return _0x26010f;}async['_loadRoot'](_0x504008,_0x332677,_0x4c0704){this['_getOperationsFromInitData']({[_0x504008]:_0x332677},{[_0x504008]:_0x4c0704})['forEach']((_0x7deb61,_0x4ad51b)=>{_0x7deb61['baseVersion']=this['_document']['version']+_0x4ad51b,_0x7deb61['_isInit']=!0x0,this['_saveOperationInBuffer'](_0x7deb61);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x53bdcc,_0x50a4f4){let _0x5c7714;this['_offset']=_0x53bdcc['offset'];const _0x207af5=_0x53bdcc['wereChangesApplied']&&!_0x53bdcc['initData'],_0x38f8ad=_0x207af5?0x0:_0x53bdcc['data']['baseVersion'];if(_0x50a4f4['forEach'](_0x16e88c=>{_0x16e88c['_isInit']=!0x0,_0x16e88c['createdAt']=_0x53bdcc['sessionCreatedAt'],_0x16e88c['_authorId']=null;}),_0x207af5)_0x5c7714=_0x50a4f4,this['_applyOperationsSet'](_0x5c7714,_0x207af5);else{if(_0x53bdcc['initData']){const _0x2bddec=this['_getOperationsFromInitData'](_0x53bdcc['initData']);this['_document']['history']['version']=-_0x2bddec['length'],_0x2bddec['forEach'](_0x271c58=>{_0x271c58['baseVersion']-=_0x2bddec['length'],_0x271c58['createdAt']=_0x53bdcc['sessionCreatedAt'],_0x271c58['_isInit']=!0x0,_0x271c58['_authorId']=null;}),this['_applyOperationsSet'](_0x2bddec,!0x0),this['serverHistory']['version']=-_0x2bddec['length']+this['_offset'],this['_updateServerHistory'](_0x2bddec);}this['_document']['history']['version']=_0x38f8ad,_0x5c7714=this['_decompressOperations'](_0x53bdcc['data'],_0x53bdcc['metadata']),await this['_fetchMissingUsers'](_0x5c7714),this['_applyOperationsSet'](_0x5c7714,_0x207af5);}_0x53bdcc['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x5c7714,_0x53bdcc['lastOperationId']),this['_lastSyncedOperationId']=_0x53bdcc['lastOperationId']),this['serverHistory']['version']=_0x38f8ad+this['_offset'],this['_updateServerHistory'](_0x5c7714),_0x50a4f4['filter'](_0x228ce3=>{const _0x9dc2cf=this['_getAffectedRoot'](_0x228ce3);return _0x9dc2cf&&!this['_knownRootNames']['has'](_0x9dc2cf);})['forEach']((_0x195d1d,_0x242f6f)=>{_0x195d1d['baseVersion']=this['_document']['version']+_0x242f6f,this['_saveOperationInBuffer'](_0x195d1d);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x4eaa8b,_0xb90516){const _0x23152a=_0xb90516&&_0xb90516['message'];if(_0x23152a&&_0x23152a['startsWith']('realtimecollaborationclient'))throw _0xb90516;const _0x35d184=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0x35d184['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x4eaa8b,this['editor'],_0x23152a?{'originalError':_0x23152a}:void 0x0);}['_saveOperationInBuffer'](_0x53e429){this['_knownOperations']['has'](_0x53e429)||(this['_knownOperations']['add'](_0x53e429),this['_bufferedOperations']['push'](_0x53e429),this['_pendingAction']||'marker'==_0x53e429['type']&&!_0x53e429['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x3e4bda=!0x1){!_0x3e4bda&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x269307=>{_0x269307&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x497e3b=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x497e3b)||this['_crash'](_0x497e3b['message'],_0x497e3b);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x4245b2=>{this['on']('change:_isPendingUpdate',()=>{_0x4245b2();});});}async['_sendBufferedOperations'](){const _0x181b6c=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0x181b6c['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x2255df=[...this['_bufferedOperations']];for(const _0x5d30fb of _0x2255df)_0x5d30fb['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x5d30fb);const _0xda4b06=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x2255df),_0x30d30e=requestCount++,_0x1f2ac=this['_compressOperations'](_0x2255df),_0x19cd1d=await this['_service']['sendOperations'](_0x1f2ac,_0x1f2ac['baseVersion'],_0xda4b06);try{return await this['_handleServerResponse'](_0x2255df,_0x19cd1d,_0x30d30e);}catch(_0x557067){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x557067);}}async['_handleServerResponse'](_0x1df03b,_0x3bdf71,_0x3d55e4){if('error'in _0x3bdf71)throw _0x3bdf71['error'];let _0x566514=!0x1;if(_0x3bdf71['wereChangesApplied']){_0x3bdf71['lastOperationId']&&(this['_lastSyncedOperationId']=_0x3bdf71['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x164c87=>!_0x1df03b['includes'](_0x164c87));for(const _0x43405a of _0x1df03b)_0x43405a['createdAt']='lastOperationAcceptedAt'in _0x3bdf71&&_0x3bdf71['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0x1df03b,_0x3bdf71['version']-_0x1df03b['length']),this['_updateServerHistory'](_0x1df03b);const _0x4b6968=_0x1df03b['filter'](_0x6723a3=>{if(!_0x6723a3['_isInit'])return!0x1;const _0x2d346a=this['_getAffectedRoot'](_0x6723a3);return _0x2d346a&&!this['_knownRootNames']['has'](_0x2d346a);});updateBaseVersions(_0x4b6968,this['_document']['version']),this['_applyOperationsSet'](_0x4b6968),_0x566514=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x498895=this['_decompressOperations'](_0x3bdf71['data'],_0x3bdf71['metadata'])['filter'](_0x3d25cd=>_0x3d25cd['baseVersion']>=this['_lastServerVersion']);_0x498895['forEach'](_0x3c1eed=>this['_addKnownRoot'](_0x3c1eed)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x135532=>!_0x135532['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x135532))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x498895),_0x566514=this['_handleExternalOperations'](_0x498895,_0x3bdf71['version'],_0x3bdf71['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x566514?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x1303f2,_0x2c4f31,_0xee3500){try{const _0x440238={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x47b923,operationsB:_0x1fa8c6,originalOperations:_0x4fb1c9}=transformOperationSets(_0x1303f2,this['_bufferedOperations'],_0x440238);updateBaseVersions(_0x47b923,this['_document']['version']),updateBaseVersions(_0x1fa8c6,_0x2c4f31);for(const _0x36fc25 of _0x47b923){const _0x558e88=_0x4fb1c9['get'](_0x36fc25);_0x36fc25['_authorId']=_0x558e88?_0x558e88['_authorId']:null;}_0xee3500&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x1303f2,_0xee3500),this['_lastSyncedOperationId']=_0xee3500),this['_bufferedOperations']=[..._0x1fa8c6],this['_applyOperationsSet'](_0x47b923),this['_updateServerHistory'](_0x1303f2);}catch(_0x1f34ad){return console['error'](_0x1f34ad),!0x1;}return!0x0;}['_applyOperationsSet'](_0x459f8c,_0x94999a=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x4ee273=>{for(const _0x4b09ef of _0x459f8c)this['_knownOperations']['add'](_0x4b09ef),this['_addKnownRoot'](_0x4b09ef),_0x4ee273['batch']['addOperation'](_0x4b09ef),this['editor']['model']['applyOperation'](_0x4b09ef);});}['_addKnownRoot'](_0xeb371){const _0x1c3ca7=this['_getAffectedRoot'](_0xeb371);_0x1c3ca7&&this['_knownRootNames']['add'](_0x1c3ca7);}['_getAffectedRoot'](_0x89efe4){let _0x16f208,_0x340df7;switch(_0x89efe4['type']){case'insert':_0x16f208=_0x89efe4['position']['root'];break;case'marker':if(_0x340df7=_0x89efe4['newRange'],!_0x340df7)return null;_0x16f208=_0x340df7['root'];break;case'addRootAttribute':_0x16f208=_0x89efe4['root'];break;case'addRoot':_0x16f208=_0x89efe4['affectedSelectable'];break;case'move':_0x16f208=_0x89efe4['targetPosition']['root'];break;default:return null;}return _0x16f208['rootName'];}['_updateServerHistory'](_0x1e19da){_0x1e19da['forEach'](_0x34a6cd=>{const _0x32623f=_0x34a6cd['clone']();_0x32623f['_authorId']=_0x34a6cd['_authorId'],_0x32623f['_isInit']=!!_0x34a6cd['_isInit'],_0x32623f['createdAt']=_0x34a6cd['createdAt'],_0x32623f['baseVersion']+=this['_offset'],_0x34a6cd['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x32623f),this['serverHistory']['addOperation'](_0x32623f);});}['_handleReconnectionError'](_0x481653){const _0x26e26f=this['editor']['plugins']['get']('Notification'),_0x3f85e8=this['editor']['locale'];_0x481653||(_0x481653=getTranslation$6(_0x3f85e8,'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.')),_0x26e26f['showWarning'](_0x481653,{'title':getTranslation$6(_0x3f85e8,'Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this['_hasSynchronizationProblem']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_bufferedOperations']=[],this['editor']['plugins']['get'](WebSocketGateway)['disconnect']();}['_setPendingAction'](){this['_pendingAction']||(this['_pendingAction']=this['editor']['plugins']['get'](PendingActions)['add'](getTranslation$6(this['editor']['locale'],'PENDING_ACTION_SENDING_DATA')));}['_clearPendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get'](PendingActions)['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_compressOperations'](_0x3f902a){const _0x49e1ed=_0x3f902a['map'](_0x3d0c21=>_0x3d0c21['toJSON']());return this['_compressor']['compress'](_0x49e1ed);}['_decompressOperations'](_0x296f67,_0x330f31){return this['_compressor']['decompress'](_0x296f67)['map']((_0x53bb14,_0x5408e1)=>{const _0x11ab6b='init'==_0x330f31[_0x5408e1]['type'];if('InsertOperation'==_0x53bb14['__className']){const _0x5069e4=_0x53bb14['position']['root'];!this['_document']['getRoot'](_0x5069e4)&&(this['_document']['createRoot']('$root',_0x5069e4)['_isAttached']=!0x1);}const _0x288029=OperationFactory['fromJSON'](_0x53bb14,this['_document']);return _0x288029['wasUndone']=_0x53bb14['wasUndone'],_0x288029['_isInit']=_0x11ab6b,_0x288029['_authorId']=_0x11ab6b?null:_0x330f31[_0x5408e1]['userId'],_0x288029['_isDisconnection']='cs:removeUser'===_0x330f31[_0x5408e1]['type'],_0x288029['createdAt']=_0x330f31[_0x5408e1]['createdAt'],_0x288029;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x1eb9f7=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x1eb9f7&&_0x1eb9f7['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x3e79df,_0x4231c1){for(const _0x532abe of _0x3e79df)_0x532abe['baseVersion']=_0x4231c1++;}function isSessionNotExistingError(_0xf0dbaf){return'404'===_0xf0dbaf['code'];}function isBaseVersionMismatchError(_0x3e86a5){return'409'===_0x3e86a5['code'];}function isDisconnectionError$3(_0x3962f6){return _0x3962f6['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x3962f6['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x3962f6['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x5a6366){this['_ignoredOperations']=_0x5a6366,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x216d60){let _0x496601=_0x216d60['length'];for(;_0x496601--;){const _0x428157=_0x216d60[_0x496601];if(!this['_ignoredOperations']['has'](_0x428157)){if(!this['_operationToId']['has'](_0x428157)){const _0x1b6d1a=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x428157,_0x1b6d1a);}return this['_operationToId']['get'](_0x428157);}}}['setIdForTheLastOperation'](_0x1081ac,_0x255ced){if(!_0x255ced)return;let _0x4f9e1f=_0x1081ac['length'];for(;_0x4f9e1f--;){const _0x4a858a=_0x1081ac[_0x4f9e1f];this['_ignoredOperations']['has'](_0x4a858a)||this['_operationToId']['set'](_0x4a858a,_0x255ced);}}}class RealTimeCollaborativeEditing extends Plugin{static get['requires'](){return[RealTimeCollaborationClient];}static get['pluginName'](){return'RealTimeCollaborativeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class TrackChangesCommand extends Command{['_enabledCommands'];constructor(_0x299626,_0x1b9797){super(_0x299626),this['_enabledCommands']=_0x1b9797,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x57dad5 of this['editor']['commands']['commands']())_0x57dad5['affectsData']&&!this['_enabledCommands']['has'](_0x57dad5)&&_0x57dad5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5bf364 of this['editor']['commands']['commands']())_0x5bf364['affectsData']&&!this['_enabledCommands']['has'](_0x5bf364)&&_0x5bf364['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends Command{['_suggestions'];constructor(_0x1b887a,_0x28bbcf){super(_0x1b887a),this['_suggestions']=_0x28bbcf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3bfdf0){const _0x4b97c3=this['_suggestions']['get'](_0x3bfdf0);if(!_0x4b97c3)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0x5911c9=_0x4b97c3['getRanges']();this['editor']['model']['canEditAt'](_0x5911c9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4b97c3);}}class DiscardSuggestionCommand extends Command{['_suggestions'];constructor(_0x35ab6c,_0x4a895c){super(_0x35ab6c),this['_suggestions']=_0x4a895c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45464f){const _0x2c7631=this['_suggestions']['get'](_0x45464f);if(!_0x2c7631)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0x3da579=_0x2c7631['getRanges']();this['editor']['model']['canEditAt'](_0x3da579)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2c7631);}}function renderDescription(_0x4df50a,_0x1384ce){let _0x3607c3='';return _0x3607c3+=_0x4df50a['split']('*')['map']((_0x2f3c04,_0x4ed03c)=>_0x4ed03c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x2f3c04)+'</span>':sanitize(_0x2f3c04))['join'](''),_0x1384ce&&(_0x3607c3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1384ce['value']+'\x22\x20title=\x22'+_0x1384ce['title']+'\x22></span>'),_0x3607c3;}function sanitize(_0x49126d){const _0x22d73a=document['createElement']('span');return _0x22d73a['innerText']=_0x49126d,_0x22d73a['innerHTML'];}function sortSuggestions(_0xd47b1e){return _0xd47b1e['sort']((_0x52306c,_0x132325)=>'attribute'===_0x52306c['type']&&'attribute'!==_0x132325['type']?-0x1:'attribute'!==_0x52306c['type']&&'attribute'===_0x132325['type']?0x1:'deletion'==_0x52306c['type']&&'deletion'!=_0x132325['type']?-0x1:'deletion'!=_0x52306c['type']&&'deletion'==_0x132325['type']?0x1:0x0);}function getSelectedSuggestions(_0x29c22d,_0x2b9e40){const _0x208412=Array['from'](_0x29c22d['getRanges']()),_0x15ffa5=new Set();for(const _0x1ba50a of _0x2b9e40)if(_0x1ba50a['isInContent']){for(const _0x1de811 of _0x208412)for(const _0x30931f of _0x1ba50a['getRanges']())(_0x1de811['isIntersecting'](_0x30931f)||_0x29c22d['isCollapsed']&&!_0x1ba50a['isMultiRange']&&_0x1ba50a['next']&&_0x30931f['end']['isTouching'](_0x1de811['start']))&&_0x15ffa5['add'](_0x1ba50a);}return _0x15ffa5;}function getRangesOfBlockGroups(_0xdb1d7b,_0xf6fcac){let _0x5d02a3,_0x1e83cc=0x0;const _0x485afe=[],_0x2f02d5=_0xf6fcac['schema'];for(;_0x1e83cc<_0xdb1d7b['length'];){const _0x5a4f59=_0xdb1d7b[_0x1e83cc],_0x3719ba=_0xdb1d7b[_0x1e83cc+0x1];_0x5d02a3||(_0x5d02a3=_0xf6fcac['createPositionBefore'](_0x5a4f59)),areNeighbourBlocks(_0xf6fcac,_0x5a4f59,_0x3719ba)||(_0x485afe['push'](_0xf6fcac['createRange'](_0x5d02a3,_0x2f02d5['isObject'](_0x5a4f59)?_0xf6fcac['createPositionAfter'](_0x5a4f59):_0xf6fcac['createPositionAt'](_0x5a4f59,'end'))),_0x5d02a3=null),_0x1e83cc++;}return _0x485afe;}function areNeighbourBlocks(_0x5f497b,_0x468bf8,_0x19fee7){if(!_0x19fee7)return!0x1;const _0x1f22c8=_0x5f497b['createPositionAfter'](_0x468bf8),_0x5e1bd5=_0x5f497b['createPositionBefore'](_0x19fee7);return _0x1f22c8['isTouching'](_0x5e1bd5);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x1051e0,_0xb5ca87,_0x7f5c49){for(;_0x7f5c49['length'];){const _0x5464df=_0x7f5c49['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x1051e0['change'](()=>{for(const _0x362fb4 of _0x5464df)_0x362fb4['isInContent']&&_0xb5ca87['execute'](_0x362fb4['id']);});}}class ExecuteOnAllSuggestionsCommand extends Command{['_command'];['_suggestions'];constructor(_0x2808f3,_0x6d864c,_0x2af73c){super(_0x2808f3),this['_command']=_0x6d864c,this['_suggestions']=_0x2af73c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x197938=Array['from'](this['_suggestions']['values']())['some'](_0x2afb7f=>_0x2afb7f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x197938;}['execute'](){const _0x2f1a8f=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0x2c7af7 of _0x2f1a8f){const _0x19ec8e=_0x2c7af7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19ec8e))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x2f1a8f);}}class ExecuteOnSelectedSuggestionsCommand extends Command{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x12b561,_0x364925,_0x3367fc){super(_0x12b561),this['_command']=_0x364925,this['_suggestions']=_0x3367fc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3f3cc6=this['editor']['model']['document']['selection'],_0x1cdbc9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0x3f3cc6,_0x1cdbc9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4444c8=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x23913b of _0x4444c8){const _0x13c66e=_0x23913b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13c66e))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x4444c8);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f43f6,_0x13094a){super(),this['id']=_0x13094a['id'],this['type']=_0x13094a['type'],this['subType']=_0x13094a['subType']||null,this['author']=_0x13094a['author'],this['creator']=_0x13094a['creator']||_0x13094a['author'],this['isExternal']=Boolean(_0x13094a['attributes']&&_0x13094a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x13094a['originalSuggestionId']||null,this['_model']=_0x5f43f6,this['_onAccept']=_0x13094a['onAccept'],this['_onDiscard']=_0x13094a['onDiscard'],this['_onAttributesChange']=_0x13094a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x13094a['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x10178f=this;for(;_0x10178f['previous'];)_0x10178f=_0x10178f['previous'];return _0x10178f;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1b5cf2){this['_markerNames']['add'](_0x1b5cf2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xb325f6=>this['_model']['markers']['get'](_0xb325f6))['filter'](_0x3eefd6=>_0x3eefd6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4bfcdf=>{for(const _0x24642c of this['getMarkers']())_0x4bfcdf['removeMarker'](_0x24642c);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a2307){this['_model']['change'](_0x327211=>{_0x327211['removeMarker'](_0x4a2307);}),this['_markerNames']['delete'](_0x4a2307);}['addRange'](_0x47b043){const _0x13a51e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x13a51e),this['_model']['change'](_0x149f97=>{_0x149f97['addMarker'](_0x13a51e,{'range':_0x47b043,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xd0f097){for(const _0x4cfe9b of this['getRanges']())if(_0x4cfe9b['isIntersecting'](_0xd0f097))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x221e89=>_0x221e89['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x577a86,_0x6552e9)=>[..._0x577a86,..._0x6552e9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ffaaf=this['getRanges']();if(0x1!=_0x1ffaaf['length'])return null;const _0x3ff903=_0x1ffaaf[0x0],_0x1896a7=_0x3ff903['start']['nodeAfter'],_0x917c9=_0x3ff903['end']['nodeBefore'];return _0x1896a7 instanceof ModelElement?_0x1896a7!=_0x917c9?null:_0x1896a7:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x177e08=[];let _0x36f683=this['head'];for(;_0x36f683;)_0x177e08['push'](_0x36f683),_0x36f683=_0x36f683['next'];return _0x177e08;}['setAttribute'](_0x5a53be,_0x1e4784){const _0x25f0e1=cloneDeep(this['attributes']);set(_0x25f0e1,_0x5a53be,_0x1e4784),isEqual(_0x25f0e1,this['attributes'])||(this['attributes']=_0x25f0e1,this['_onAttributesChange'](_0x25f0e1));}['removeAttribute'](_0x1d80b2){const _0x26902d=cloneDeep(this['attributes']);unset(_0x26902d,_0x1d80b2),isEqual(_0x26902d,this['attributes'])||(this['attributes']=_0x26902d,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return uid()['substr'](0x1,0x5);}}function getTranslation$5(_0x5984ed,_0x26c564,_0x24ab25){const _0x4b9d8c=_0x5984ed['t'],t=_0x5984ed['t'];switch(_0x26c564){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x24ab25);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x24ab25);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x24ab25);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x24ab25);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x24ab25);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x24ab25);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x24ab25);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24ab25);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x24ab25);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x24ab25);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x24ab25);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x24ab25);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x24ab25);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x24ab25);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x24ab25);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x24ab25);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x24ab25);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x24ab25);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x24ab25);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x24ab25);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x24ab25);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x24ab25);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x24ab25);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x24ab25);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x24ab25);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x24ab25);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x24ab25);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x24ab25);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x24ab25);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x24ab25);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x24ab25);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x24ab25);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x24ab25);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x24ab25);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x24ab25);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x24ab25);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x24ab25);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x24ab25);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x24ab25);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x24ab25);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x24ab25);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x24ab25);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x24ab25);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x24ab25);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x24ab25);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x24ab25);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x24ab25);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x24ab25);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x24ab25);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x24ab25);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x24ab25);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x24ab25);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x24ab25);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x4b9d8c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x24ab25);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4b9d8c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x24ab25);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x24ab25);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x24ab25);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x24ab25);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x24ab25);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x26c564;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ba6ea,_0x10a861){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ba6ea,this['_locale']=_0x10a861;}['getDescriptions'](_0x7a82af){const _0x4581e3=[],_0x2b9856=new Set(),_0x55685e=new Set();for(let _0x2b5d8f=0x0;_0x2b5d8f<_0x7a82af['length'];_0x2b5d8f++){const _0x29055a=_0x7a82af[_0x2b5d8f];if(!_0x29055a['isInContent'])continue;const _0x381cab=this['_handleCustomCallbackDescription'](_0x29055a);if(_0x381cab){if(null!=_0x29055a['subType']){if(_0x2b9856['has'](_0x29055a['subType']))continue;_0x2b9856['add'](_0x29055a['subType']);}_0x4581e3['push'](_0x381cab);}else{if('attribute'==_0x29055a['type']){const _0x1b36aa=_0x29055a['data']['key'];if(_0x55685e['has'](_0x1b36aa))continue;_0x55685e['add'](_0x29055a['data']['key']),_0x1b36aa==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x4581e3,_0x29055a):this['_handleAttributeSuggestionDescription'](_0x4581e3,_0x29055a);continue;}'insertion'!=_0x29055a['type']&&'deletion'!=_0x29055a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4581e3,_0x29055a,_0x7a82af[_0x2b5d8f+0x1]);}}return this['_resolveDescriptionItems'](_0x4581e3);}['registerDescriptionCallback'](_0x5f4b16){this['_customCallbacks']['push'](_0x5f4b16);}['registerElementLabel'](_0x4ab950,_0x58dada,_0x1a0d52=priorities['normal']){'function'==typeof _0x4ab950?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4ab950,'label':_0x58dada,'priority':_0x1a0d52}):this['_itemLabels']['set'](_0x4ab950,_0x58dada);}['registerAttributeLabel'](_0x54e552,_0x463a22){this['_attributeLabels']['set'](_0x54e552,_0x463a22);}['getItemLabel'](_0x52e0b0,_0x528584=0x1){let _0x2015f4;for(const _0x6b9d0a of this['_itemLabelsCallbacks'])if(_0x6b9d0a['matchingCallback'](_0x52e0b0)){_0x2015f4=_0x6b9d0a['label'];break;}return _0x2015f4||(_0x2015f4=this['_itemLabels']['get'](_0x52e0b0['name'])),_0x2015f4?_0x2015f4(_0x528584):0x1!==_0x528584?_0x528584+'\x20'+_0x52e0b0['name']+'s':''+_0x52e0b0['name'];}['_addDescriptionItems'](_0x1b6230,_0x32a527){const _0x18a2ad=_0x32a527['getFirstRange']()['getWalker'](),_0x4a067d='insertion'==_0x32a527['type']?'add':'remove';for(const _0x4c0c37 of _0x18a2ad){const _0x2531bf=_0x4c0c37['item'],_0x3175ac=_0x1b6230[_0x1b6230['length']-0x1];if(_0x2531bf['is']('$textProxy'))_0x3175ac&&_0x3175ac['type']['indexOf']('Container')>-0x1&&_0x1b6230['pop'](),_0x3175ac&&'text'==_0x3175ac['type']?_0x3175ac[_0x4a067d]+=_0x2531bf['data']:_0x1b6230['push']({'type':'text','add':'add'==_0x4a067d?_0x2531bf['data']:'','remove':'remove'==_0x4a067d?_0x2531bf['data']:''});else{if(this['_schema']['isObject'](_0x2531bf)){const _0x379324=_0x2531bf;if(_0x3175ac&&_0x3175ac['type']['indexOf']('Container')>-0x1&&_0x1b6230['pop'](),'elementEnd'==_0x4c0c37['type'])continue;_0x3175ac&&_0x3175ac['type']==_0x4a067d+'Object'&&_0x3175ac['element']['name']==_0x379324['name']?_0x3175ac['quantity']++:_0x1b6230['push']({'type':_0x4a067d+'Object','element':_0x379324,'quantity':0x1}),_0x18a2ad['skip'](_0x21ec5f=>!('elementEnd'==_0x21ec5f['type']&&_0x21ec5f['item']==_0x2531bf));}else{if(this['_schema']['checkChild'](_0x2531bf,'$text')||_0x2531bf['is']('element','softBreak')){const _0x2e0fc3=_0x2531bf;if('add'==_0x4a067d&&'elementStart'==_0x4c0c37['type']||'remove'==_0x4a067d&&'elementEnd'==_0x4c0c37['type'])continue;if(_0x3175ac&&-0x1==_0x3175ac['type']['indexOf']('Container')){'text'==_0x3175ac['type']&&(_0x3175ac[_0x4a067d]+='\x0a');continue;}let _0x301c2b;if(_0x301c2b='add'==_0x4a067d?_0x2e0fc3['nextSibling']&&!this['_schema']['isObject'](_0x2e0fc3['nextSibling'])?_0x2e0fc3['nextSibling']:null:_0x2e0fc3['previousSibling']&&!this['_schema']['isObject'](_0x2e0fc3['previousSibling'])?_0x2e0fc3['previousSibling']:null,_0x2e0fc3['isEmpty']||_0x301c2b&&_0x301c2b['isEmpty']){const _0x35d186=_0x301c2b&&_0x301c2b['isEmpty']?_0x301c2b:_0x2e0fc3;_0x3175ac&&_0x3175ac['type']==_0x4a067d+'EmptyContainer'&&_0x3175ac['element']['name']==_0x35d186['name']?_0x3175ac['quantity']++:_0x1b6230['push']({'type':_0x4a067d+'EmptyContainer','element':_0x35d186,'quantity':0x1});}else _0x1b6230['push']({'type':_0x4a067d+'Container','element':_0x2e0fc3});}}}}}['_resolveDescriptionItems'](_0x31c341){const _0xece37c=this['_locale'],_0x3963e5=[],_0xe00b7=[],_0x19ff2e=[];for(const _0x4ffb53 of _0x31c341)switch(_0x4ffb53['type']){case'text':if(_0x4ffb53['add']=_0x4ffb53['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4ffb53['remove']=_0x4ffb53['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4ffb53['add']&&''!=_0x4ffb53['remove']){_0x3963e5['push']({'type':'replace','content':getTranslation$5(_0xece37c,'REPLACE_TEXT',['\x22'+_0x4ffb53['remove']+'\x22','\x22'+_0x4ffb53['add']+'\x22'])});continue;}if(null!=_0x4ffb53['add']['match'](/^ +$/)){_0x3963e5['push']({'type':'insertion','content':getTranslation$5(_0xece37c,'*Insert:*\x20%0',getTranslation$5(_0xece37c,'ELEMENT_SPACE',_0x4ffb53['add']['length']))});continue;}if(null!=_0x4ffb53['remove']['match'](/^ +$/)){_0x3963e5['push']({'type':'deletion','content':getTranslation$5(_0xece37c,'*Remove:*\x20%0',getTranslation$5(_0xece37c,'ELEMENT_SPACE',_0x4ffb53['remove']['length']))});continue;}if(''!=_0x4ffb53['add']){_0x3963e5['push']({'type':'insertion','content':getTranslation$5(_0xece37c,'*Insert:*\x20%0','\x22'+_0x4ffb53['add']+'\x22')});continue;}_0x3963e5['push']({'type':'deletion','content':getTranslation$5(_0xece37c,'*Remove:*\x20%0','\x22'+_0x4ffb53['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3963e5['push']({'type':'insertion','content':getTranslation$5(_0xece37c,'*Insert:*\x20%0',this['getItemLabel'](_0x4ffb53['element'],_0x4ffb53['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3963e5['push']({'type':'deletion','content':getTranslation$5(_0xece37c,'*Remove:*\x20%0',this['getItemLabel'](_0x4ffb53['element'],_0x4ffb53['quantity']))});continue;case'addContainer':_0x3963e5['push']({'type':'insertion','content':getTranslation$5(_0xece37c,'*Split:*\x20%0',this['getItemLabel'](_0x4ffb53['element'],_0x4ffb53['quantity']))});continue;case'removeContainer':_0x3963e5['push']({'type':'deletion','content':getTranslation$5(_0xece37c,'*Merge:*\x20%0',this['getItemLabel'](_0x4ffb53['element'],_0x4ffb53['quantity']))});continue;case'addFormat':_0xe00b7['push'](_0x4ffb53['key']);continue;case'removeFormat':_0x19ff2e['push'](_0x4ffb53['key']);continue;default:_0x3963e5['push'](_0x4ffb53);}if(_0xe00b7['length']){const _0x431e69=_0xe00b7['map'](_0x3d0376=>this['_attributeLabels']['has'](_0x3d0376)?this['_attributeLabels']['get'](_0x3d0376):_0x3d0376)['join'](',\x20');_0x3963e5['push']({'type':'format','content':getTranslation$5(this['_locale'],'*Set\x20format:*\x20%0',_0x431e69)});}if(_0x19ff2e['length']){const _0x185249=_0x19ff2e['map'](_0x32da16=>this['_attributeLabels']['has'](_0x32da16)?this['_attributeLabels']['get'](_0x32da16):_0x32da16)['join'](',\x20');_0x3963e5['push']({'type':'format','content':getTranslation$5(this['_locale'],'*Remove\x20format:*\x20%0',_0x185249)});}return _0x3963e5;}['_handleCustomCallbackDescription'](_0x72c2a9){for(const _0x2fce14 of this['_customCallbacks']){const _0x3ec8b5=_0x2fce14(_0x72c2a9);if(_0x3ec8b5&&'type'in _0x3ec8b5)return _0x3ec8b5;}}['_handleAttributeSuggestionDescription'](_0x1da445,_0x1ce120){const _0x47ea1e=_0x1ce120['data'],_0x1c45ee=void 0x0===_0x47ea1e['newValue']?'removeFormat':'addFormat';_0x1da445['push']({'type':_0x1c45ee,'key':_0x47ea1e['key']});}['_handleRenameSuggestionDescription'](_0x4c3f15,_0x44f38c){_0x4c3f15['push']({'type':'format','content':getTranslation$5(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x44f38c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57bb0c,_0x5533a4,_0xe1aab2){if(this['_addDescriptionItems'](_0x57bb0c,_0x5533a4),_0xe1aab2&&_0xe1aab2['getFirstRange']()&&!_0x5533a4['getFirstRange']()['end']['isEqual'](_0xe1aab2['getFirstRange']()['start'])){const _0x252992=_0x57bb0c[_0x57bb0c['length']-0x1],_0x36058d='insertion'==_0x5533a4['type']?'add':'remove';_0x252992&&'text'==_0x252992['type']&&(_0x252992[_0x36058d]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x2d9e1c=this['editor'],_0x43ae8f=_0x2d9e1c['plugins']['get']('TrackChangesEditing');_0x2d9e1c['commands']['get']('showAIAssistant')&&_0x43ae8f['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x383f10=this['editor'],_0x21f211=_0x383f10['plugins']['get']('TrackChangesEditing');_0x383f10['commands']['get']('toggleAi')&&_0x21f211['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x2b036e=this['editor'],_0x4fef44=_0x2b036e['plugins']['get']('TrackChangesEditing');_0x2b036e['commands']['get']('aiQuickAction')&&_0x4fef44['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x1621e1=this['editor'],_0x1b4b5e=_0x1621e1['locale'];if(!_0x1621e1['plugins']['has']('AlignmentEditing'))return;const _0x1e7607=_0x1621e1['plugins']['get']('TrackChangesEditing');_0x1e7607['enableDefaultAttributesIntegration']('alignment'),_0x1e7607['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$5(_0x1b4b5e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a590b=this['editor'],_0x492eeb=_0x4a590b['locale'];_0x4a590b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b607=>{if('formatBlock'!=_0x13b607['type'])return;const {data:_0x16df32}=_0x13b607;if(_0x16df32&&'alignment'==_0x16df32['commandName']){const _0xb2c8a=_0x16df32['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$5(_0x492eeb,'*Format:*\x20%0',function(_0x3446a9){switch(_0x3446a9){case'left':return getTranslation$5(_0x492eeb,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$5(_0x492eeb,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$5(_0x492eeb,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$5(_0x492eeb,'FORMAT_JUSTIFY_TEXT');}}(_0xb2c8a))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x28cca0=this['editor'],_0x2510c1=_0x28cca0['plugins']['get']('TrackChangesEditing'),_0x3fd93b=_0x28cca0['locale'];for(const _0x43e00b of basicStylesPlugins){if(!_0x28cca0['plugins']['has'](_0x43e00b))continue;const _0x28293f=_0x43e00b['slice'](0x0,-0x7)['toLowerCase'](),_0x3ce9bd='FORMAT_'+_0x28293f['toUpperCase']();_0x2510c1['enableDefaultAttributesIntegration'](_0x28293f),_0x2510c1['descriptionFactory']['registerAttributeLabel'](_0x28293f,getTranslation$5(_0x3fd93b,_0x3ce9bd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x245f95=this['editor'],_0x502df8=_0x245f95['locale'],_0x147ab5=_0x245f95['plugins']['get']('TrackChangesEditing');function _0x38ea1a(_0x2ac4e0,_0x20404f){_0x147ab5['descriptionFactory']['registerDescriptionCallback'](_0x84fb6b=>{if('formatInline'!=_0x84fb6b['type'])return;const {data:_0x539c3e}=_0x84fb6b;return _0x539c3e&&_0x539c3e['commandName']===_0x2ac4e0?_0x539c3e['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x502df8,'*Format:*\x20%0',_0x20404f)}:{'type':'format','content':getTranslation$5(_0x502df8,'*Remove\x20format:*\x20%0',_0x20404f)}:void 0x0;});}_0x38ea1a('bold',getTranslation$5(_0x502df8,'FORMAT_BOLD')),_0x38ea1a('italic',getTranslation$5(_0x502df8,'FORMAT_ITALIC')),_0x38ea1a('underline',getTranslation$5(_0x502df8,'FORMAT_UNDERLINE')),_0x38ea1a('code',getTranslation$5(_0x502df8,'FORMAT_CODE')),_0x38ea1a('strikethrough',getTranslation$5(_0x502df8,'FORMAT_STRIKETHROUGH')),_0x38ea1a('subscript',getTranslation$5(_0x502df8,'FORMAT_SUBSCRIPT')),_0x38ea1a('superscript',getTranslation$5(_0x502df8,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0x166d44=this['editor'],_0x1bc7a3=_0x166d44['locale'];if(!_0x166d44['plugins']['has']('BlockQuoteEditing'))return;const _0xd0492=_0x166d44['plugins']['get']('TrackChangesEditing'),_0x5f4db7=this['editor']['commands']['get']('blockQuote');_0xd0492['enableCommand']('blockQuote',(_0x5a9978,_0x2e8556={})=>{const _0x38b3c3=this['editor']['model']['document']['selection'],_0x522243=_0x2e8556&&void 0x0!==_0x2e8556['forceValue']?_0x2e8556['forceValue']:!_0x5f4db7['value'];let _0x26cf04=[];if(_0x522243){const _0xb6c9b3=Array['from'](_0x38b3c3['getSelectedBlocks']())['filter'](_0x4fab05=>isInQuote(_0x4fab05)||checkCanBeQuoted(_0x4fab05,this['editor']['model']['schema']));_0x26cf04=getRangesOfBlockGroups(_0xb6c9b3,_0x166d44['model']);}else{const _0x2f89f5=Array['from'](_0x38b3c3['getSelectedBlocks']())['filter'](_0x1fed57=>isInQuote(_0x1fed57));_0x26cf04=getRangesOfBlockGroups(_0x2f89f5,_0x166d44['model']);}_0x166d44['model']['change'](()=>{for(const _0x5dc0ab of _0x26cf04)_0xd0492['markBlockFormat'](_0x5dc0ab,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x522243}]});});}),_0xd0492['descriptionFactory']['registerDescriptionCallback'](_0x49d47f=>{const {data:_0x302144}=_0x49d47f;if(_0x302144&&'blockQuote'==_0x302144['commandName']){const _0x1b7694=getTranslation$5(_0x1bc7a3,'ELEMENT_BLOCK_QUOTE');return _0x302144['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x1bc7a3,'*Set\x20format:*\x20%0',_0x1b7694)}:{'type':'format','content':getTranslation$5(_0x1bc7a3,'*Remove\x20format:*\x20%0',_0x1b7694)};}});}}function checkCanBeQuoted(_0x5b8f27,_0x48680f){const _0x490584=_0x48680f['checkChild'](_0x5b8f27['parent'],'blockQuote'),_0x4436e9=_0x48680f['checkChild'](['$root','blockQuote'],_0x5b8f27);return _0x490584&&_0x4436e9;}function isInQuote(_0x19f0d0){return'blockQuote'==_0x19f0d0['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x13ac42=this['editor'],_0x2da0da=_0x13ac42['locale'],_0x55b667=_0x13ac42['plugins']['get']('TrackChangesEditing');_0x13ac42['plugins']['has']('BookmarkEditing')&&(_0x55b667['enableCommand']('insertBookmark'),_0x55b667['enableDefaultAttributesIntegration']('updateBookmark'),_0x55b667['descriptionFactory']['registerDescriptionCallback'](_0xd2c7b7=>{if('insertion'!=_0xd2c7b7['type']&&'deletion'!=_0xd2c7b7['type']&&'attribute'!=_0xd2c7b7['type'])return;const _0x399fdb=_0xd2c7b7['getContainedElement']();if(null==_0x399fdb)return;if(!_0x399fdb['is']('element','bookmark'))return;const _0x393460=_0x399fdb['getAttribute']('bookmarkId');if('insertion'==_0xd2c7b7['type'])return{'type':'insertion','content':getTranslation$5(_0x2da0da,'*Insert:*\x20%0','\x22'+_0x393460+'\x22\x20'+getTranslation$5(_0x2da0da,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd2c7b7['type'])return{'type':'deletion','content':getTranslation$5(_0x2da0da,'*Remove:*\x20%0','\x22'+_0x393460+'\x22\x20'+getTranslation$5(_0x2da0da,'ELEMENT_BOOKMARK'))};const {data:_0x17eabb}=_0xd2c7b7;if(!_0x17eabb||'bookmarkId'!=_0x17eabb['key'])return;return{'type':'format','content':getTranslation$5(_0x2da0da,'*Set\x20bookmark:*\x20%0','\x22'+_0x17eabb['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0x2693a8=this['editor'];_0x2693a8['plugins']['has']('CaseChange')&&(_0x2693a8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2693a8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2693a8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x3eb46e=this['editor'];_0x3eb46e['commands']['get']('ckbox')&&_0x3eb46e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x21b855=this['editor'];if(!_0x21b855['plugins']['has']('CodeBlock'))return;const _0x5be491=_0x21b855['plugins']['get']('TrackChangesEditing'),_0x5523cc=_0x21b855['locale'],_0x2ee583=_0x21b855['config']['get']('codeBlock')['languages'],_0x67fa20=_0x21b855['commands']['get']('codeBlock');_0x5be491['enableCommand']('indentCodeBlock'),_0x5be491['enableCommand']('outdentCodeBlock'),_0x5be491['enableCommand']('codeBlock',(_0x3056fb,_0x42736f={})=>{const _0x2c9be0=_0x21b855['model'],_0x37a11e=_0x21b855['model']['document']['selection'],_0x41e48e=_0x42736f&&void 0x0!==_0x42736f['forceValue']?_0x42736f['forceValue']:!_0x67fa20['value'];let _0x1f8495;_0x42736f['language']||(_0x42736f['language']=_0x2ee583[0x0]['language']),_0x1f8495=_0x41e48e?Array['from'](_0x37a11e['getSelectedBlocks']())['filter'](_0x5e7f5c=>isCodeBlock(_0x5e7f5c)||canBeCodeBlock(_0x5e7f5c,_0x2c9be0['schema'])):Array['from'](_0x37a11e['getSelectedBlocks']())['filter'](_0x71373c=>isCodeBlock(_0x71373c));const _0x55a1c9=getRangesOfBlockGroups(_0x1f8495,_0x2c9be0);_0x2c9be0['change'](()=>{for(const _0x129b27 of _0x55a1c9)_0x5be491['markBlockFormat'](_0x129b27,{'commandName':'codeBlock','commandParams':[{..._0x42736f,'forceValue':_0x41e48e}],'formatGroupId':'blockName'});});}),(_0x5be491['descriptionFactory']['registerElementLabel']('codeBlock',_0xd738f0=>getTranslation$5(_0x5523cc,'ELEMENT_CODE_BLOCK',_0xd738f0)),_0x5be491['descriptionFactory']['registerDescriptionCallback'](_0x336827=>{if('formatBlock'!=_0x336827['type'])return;const _0x2ea3d0=_0x5523cc['t'],{data:_0x1996f2}=_0x336827;if(!_0x1996f2||'codeBlock'!=_0x1996f2['commandName'])return;const _0x534068=_0x1996f2['commandParams'][0x0]['language'],_0x3d58bd=_0x2ee583['find'](_0x4a9a6d=>_0x4a9a6d['language']===_0x534068)['label'],_0x28e06f=_0x2ea3d0(_0x3d58bd)['toLowerCase']();return _0x1996f2['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x5523cc,'*Set\x20format:*\x20%0',getTranslation$5(_0x5523cc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28e06f+')')}:{'type':'format','content':getTranslation$5(_0x5523cc,'*Remove\x20format:*\x20%0',getTranslation$5(_0x5523cc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x286794,_0x5afc5f){return!_0x286794['is']('rootElement')&&!_0x5afc5f['isLimit'](_0x286794)&&_0x5afc5f['checkChild'](_0x286794['parent'],'codeBlock');}function isCodeBlock(_0x1d0569){return'codeBlock'==_0x1d0569['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0x38eca9=this['editor'];if(!_0x38eca9['plugins']['has']('CommentsEditing'))return;_0x38eca9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x307cd8=this['editor'],_0xb7f62b=_0x307cd8['plugins']['get']('TrackChangesEditing');_0xb7f62b['enableCommand']('delete');const _0x9b9121=_0x307cd8['commands']['get']('deleteForward');_0xb7f62b['enableCommand']('deleteForward',(_0x3db8c4,_0x5d369e={})=>{const _0x178830=_0x307cd8['model']['createSelection'](_0x307cd8['model']['document']['selection']);_0x178830['isCollapsed']&&_0x307cd8['model']['modifySelection'](_0x178830,{'direction':'forward','unit':_0x5d369e['unit']});const _0x2b7c83=_0x178830['getFirstRange'](),_0x2e5c73=ModelLiveRange['fromRange'](_0x2b7c83);let _0x332f73;_0x3db8c4(_0x5d369e),_0x332f73='$graveyard'==_0x2e5c73['root']['rootName']?_0x307cd8['model']['createRange'](_0x2b7c83['start']):_0x307cd8['model']['createRange'](_0x2e5c73['start'],_0x2e5c73['end']),_0x2e5c73['detach'](),_0x307cd8['model']['enqueueChange'](_0x9b9121['buffer']['batch'],_0x59c025=>{_0x9b9121['buffer']['lock'](),_0x59c025['setSelection'](_0x59c025['createRange'](_0x332f73['end'])),_0x9b9121['buffer']['unlock']();});});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x335ad6=this['editor'];if(!_0x335ad6['plugins']['has']('ListEditing'))return;const _0x432f2c=_0x335ad6['locale'],_0x277959=_0x335ad6['plugins']['get']('TrackChangesEditing'),_0x431f3e=_0x335ad6['plugins']['has']('TodoListEditing'),_0x1499fc=!!_0x335ad6['config']['get']('list.multiBlock');function _0x5bbac0(_0x5117c8){return{'type':'format','content':''+getTranslation$5(_0x432f2c,'*Set\x20format:*\x20%0',_0x5117c8)};}function _0x2fa8d9(_0x2ef36d){return{'type':'format','content':''+getTranslation$5(_0x432f2c,'*Remove\x20format:*\x20%0',_0x2ef36d)};}_0x277959['enableDefaultAttributesIntegration']('numberedList'),_0x277959['enableDefaultAttributesIntegration']('bulletedList'),_0x277959['enableDefaultAttributesIntegration']('customNumberedList'),_0x277959['enableDefaultAttributesIntegration']('customBulletedList'),_0x277959['enableDefaultAttributesIntegration']('indentList'),_0x277959['enableDefaultAttributesIntegration']('outdentList'),_0x277959['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x277959['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1499fc&&(_0x277959['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x277959['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x431f3e&&(_0x277959['enableDefaultAttributesIntegration']('todoList'),_0x277959['enableDefaultAttributesIntegration']('checkTodoList'),_0x277959['descriptionFactory']['registerDescriptionCallback'](_0x234f54=>{const {data:_0x353162}=_0x234f54;if(_0x353162&&'todoListChecked'==_0x353162['key'])return{'type':'format','content':_0x353162['newValue']?getTranslation$5(_0x432f2c,'*Check\x20item*'):getTranslation$5(_0x432f2c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2781ad=>{if(_0x2781ad['batch']['isUndo'])return!0x1;let _0x7aeaec=!0x1;const _0x50c756=_0x277959['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x314851=>'todoListChecked'===_0x277959['_getAttributeKey'](_0x314851));for(const _0x1d933e of _0x50c756){'todo'!=_0x1d933e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x277959['_findSuggestions'](_0x1d933e['getFirstRange'](),'attribute')['find'](_0x1e5c89=>'listType'===_0x277959['_getAttributeKey'](_0x1e5c89['suggestion']))||(_0x2781ad['removeMarker'](_0x1d933e['getFirstMarker']()),_0x7aeaec=!0x0));}return _0x7aeaec;})),_0x277959['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$5(_0x432f2c,'FORMAT_INDENT'));const _0x98d8fc={'type':'format','content':''};_0x277959['descriptionFactory']['registerDescriptionCallback'](_0xdcce03=>{const {data:_0x337e76}=_0xdcce03;if(!_0x337e76||'listType'!=_0x337e76['key'])return;let _0xe017fc=_0xdcce03['head'];for(;_0xe017fc;){if(_0xe017fc['data']&&(('listStyle'==_0xe017fc['data']['key']||'listMarkerStyle'==_0xe017fc['data']['key'])&&(_0xe017fc['data']['newValue']&&'default'!=_0xe017fc['data']['newValue']||'default'!=_0xe017fc['data']['oldValue']&&!_0x337e76['newValue'])||!_0x1499fc&&_0xe017fc['data']['key']==renameAttributeKey))return _0x98d8fc;_0xe017fc=_0xe017fc['next'];}if(null==_0x337e76['newValue'])switch(_0x337e76['oldValue']){case'bulleted':return _0x2fa8d9(getTranslation$5(_0x432f2c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fa8d9(getTranslation$5(_0x432f2c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fa8d9(getTranslation$5(_0x432f2c,'ELEMENT_TODO_LIST'));}switch(_0x337e76['newValue']){case'bulleted':return _0x5bbac0(getTranslation$5(_0x432f2c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bbac0(getTranslation$5(_0x432f2c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bbac0(getTranslation$5(_0x432f2c,'ELEMENT_TODO_LIST'));}}),_0x277959['descriptionFactory']['registerDescriptionCallback'](_0x4a95ed=>{const {data:_0x3391d6}=_0x4a95ed;if(_0x3391d6&&'listIndent'==_0x3391d6['key'])return null==_0x3391d6['newValue']||null==_0x3391d6['oldValue']&&0x0==_0x3391d6['newValue']?_0x98d8fc:void 0x0;}),_0x277959['descriptionFactory']['registerDescriptionCallback'](_0x4714b3=>{if('attribute'!=_0x4714b3['type'])return;const {data:_0x5d6181}=_0x4714b3;if(!_0x5d6181||'listItemId'!=_0x5d6181['key'])return;const _0x475154=checkSiblingsListItemId(_0x4714b3);return'newValue'==_0x475154?{'type':'format','content':getTranslation$5(_0x432f2c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x475154?{'type':'format','content':getTranslation$5(_0x432f2c,'*Split:*\x20list\x20item')}:_0x98d8fc;}),_0x335ad6['model']['document']['registerPostFixer'](_0x3127df=>this['listItemIdFixer'](_0x3127df)),_0x335ad6['model']['document']['registerPostFixer'](_0x7a0f84=>this['noTrackChangesFixer'](_0x7a0f84)),_0x335ad6['model']['document']['on']('change:data',(_0x57b16d,_0x5d1265)=>{if(_0x5d1265['isUndo']||!_0x5d1265['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3831f0){if(_0x3831f0['batch']['isUndo']||!_0x3831f0['batch']['isLocal'])return!0x1;let _0x3be86c=!0x1;const _0x57d516=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55228b=>_0x55228b['data']&&'listItemId'==_0x55228b['data']['key'])['filter'](_0x5d9c29=>_0x5d9c29['data']['newValue']&&_0x5d9c29['data']['oldValue']);for(const _0x2502ff of _0x57d516)checkSiblingsListItemId(_0x2502ff)||(_0x3831f0['removeMarker'](_0x2502ff['getFirstMarker']()),_0x3be86c=!0x0);return _0x3be86c;}['noTrackChangesFixer'](_0x24d419){if(_0x24d419['batch']['isUndo']||!_0x24d419['batch']['isLocal'])return!0x1;const _0x3d8f0f=this['editor']['model']['document']['differ'],_0x3efb14=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3efb14['trackChangesCommand']['value'])return!0x1;let _0x4f0dd0=!0x1;const _0xf99bf9=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x41bb87=_0x3d8f0f['getChanges']()['filter'](_0x246a8d=>'attribute'==_0x246a8d['type'])['filter'](_0x4050d4=>_0xf99bf9['has'](_0x4050d4['attributeKey']));if(0x0==_0x41bb87['length'])return _0x4f0dd0;const _0x96d7c=new Set(_0x3d8f0f['getMarkersToAdd']()['filter'](_0x57438e=>{if(!_0x57438e['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0xec52=splitSuggestionMarkerName(_0x57438e['name'])['subType']['split']('|')[0x0];return _0xf99bf9['has'](_0xec52);})['map'](_0x1856a5=>splitSuggestionMarkerName(_0x1856a5['name'])['id']));for(const _0x5eea92 of _0x41bb87){const _0x1a02cc=_0x3efb14['_findSuggestions'](_0x5eea92['range'],'attribute')['filter'](_0x3e4507=>{if(_0x3e4507['meta']['isNextTo'])return!0x1;if(_0x96d7c['has'](_0x3e4507['suggestion']['id']))return!0x1;const _0x179bc6=_0x3efb14['_getAttributeKey'](_0x3e4507['suggestion']);return _0xf99bf9['has'](_0x179bc6);})['map'](_0xa8178c=>_0xa8178c['suggestion']);if(_0x1a02cc['length']){for(const _0xf535a of _0x1a02cc)_0x24d419['removeMarker'](_0xf535a['getFirstMarker']());_0x4f0dd0=!0x0;}}return _0x4f0dd0;}['assureChains'](){const _0x4c49cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x128b2f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x30dcc6;const _0x404e6e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16b465=>{if(_0x16b465['data']['oldRange']||!_0x16b465['data']['newRange'])return null;if(!_0x16b465['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x360310}=splitSuggestionMarkerName(_0x16b465['name']);if(!_0x4c49cf['hasSuggestion'](_0x360310))return null;const _0x1cc399=_0x4c49cf['getSuggestion'](_0x360310);return _0x128b2f['includes'](_0x1cc399['data']['key']);})['map'](_0x111a88=>{const {id:_0x4e0ea7}=splitSuggestionMarkerName(_0x111a88['name']),_0x4251df=_0x4c49cf['getSuggestion'](_0x4e0ea7);return _0x30dcc6=_0x4251df['attributes']['groupId'],_0x4251df['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x404e6e['size'])return;const _0x41ea0e=_0x4c49cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b66c0=>'attribute'==_0x1b66c0['type']&&_0x1b66c0['data']&&_0x128b2f['includes'](_0x1b66c0['data']['key'])&&_0x1b66c0['attributes']['groupId']!=_0x30dcc6)['map'](_0x45384b=>({'listItem':_0x45384b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x45384b['attributes']['groupId']})),_0x179cfc=new Set();for(const {groupId:_0x5cdf59,listItem:_0x365d4c}of _0x41ea0e)_0x404e6e['has'](_0x365d4c)&&_0x179cfc['add'](_0x5cdf59);for(const _0x5c0d12 of _0x4c49cf['getSuggestions']())_0x179cfc['has'](_0x5c0d12['attributes']['groupId'])&&_0x5c0d12['setAttribute']('groupId',_0x30dcc6);}['_supportLegacySuggestions'](){const _0x40daeb=this['editor'],_0x35dbb0=_0x40daeb['locale'],_0x3c4f39=_0x40daeb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3c4f39['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x587215,_0x17d48f){const _0xc75d7c=[];for(let _0x5bd9d2 of _0x587215)_0x5bd9d2['start']['nodeAfter']===_0x5bd9d2['end']['parent']&&(_0x5bd9d2=_0x40daeb['model']['createRange'](_0x40daeb['model']['createPositionAt'](_0x5bd9d2['start']['nodeAfter'],0x0))),_0xc75d7c['push'](_0x5bd9d2);_0x40daeb['model']['change'](_0x9b138=>{const _0x2c090f=_0x40daeb['model']['document']['selection'],_0x4cdd51=Array['from'](_0x2c090f['getRanges']())['map'](_0x179a50=>ModelLiveRange['fromRange'](_0x179a50));_0x9b138['setSelection'](_0xc75d7c),_0x40daeb['commands']['get'](_0x17d48f['commandName'])['refresh'](),_0x17d48f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x40daeb['execute'](_0x17d48f['commandName'],..._0x17d48f['commandParams']),_0x9b138['setSelection'](_0x4cdd51);for(const _0x453697 of _0x4cdd51)_0x453697['detach']();});}),_0x3c4f39['descriptionFactory']['registerElementLabel'](function(_0x392c63){const _0x30c091=!_0x40daeb['model']['schema']['isObject'](_0x392c63),_0xada2cd=_0x392c63['previousSibling'],_0x229813=_0x392c63['nextSibling'],_0x3fa4f0=_0x392c63['getAttribute']('listItemId'),_0x2ef6ed=!_0xada2cd||_0xada2cd['getAttribute']('listItemId')!==_0x3fa4f0,_0x1cd4b9=!_0x229813||_0x229813['getAttribute']('listItemId')!==_0x3fa4f0;return _0x30c091&&Boolean(_0x3fa4f0)&&_0x2ef6ed&&_0x1cd4b9;},_0x432605=>getTranslation$5(_0x35dbb0,'ELEMENT_LIST_ITEM',_0x432605));}['_registerLegacyDescription'](){const _0x5b8f9f=this['editor'],_0x1416fc=_0x5b8f9f['locale'];function _0x1751a4(_0x4a2fd6){const _0x3cf110=_0x5b8f9f['commands']['get']('bulletedList')['value'],_0x9161d3=_0x5b8f9f['commands']['get']('numberedList')['value'];return'numberedList'===_0x4a2fd6?_0x3cf110:_0x9161d3;}_0x5b8f9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x214304){if('formatBlock'!=_0x214304['type'])return;const {data:_0x34af21}=_0x214304;if(!_0x34af21)return;let _0x3be781,_0x305b0d,_0x3d5cf1,_0x291d4b;switch(_0x34af21['commandName']){case'bulletedList':_0x3d5cf1=_0x34af21['commandParams'][0x0]['forceValue'],_0x291d4b=_0x1751a4(_0x34af21['commandName']),_0x3be781=_0x3d5cf1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x291d4b&&_0x5b8f9f['config']['get']('list.multiBlock')||(_0x3be781='*Change\x20to:*\x20%0'),_0x305b0d={'type':'format','content':getTranslation$5(_0x1416fc,_0x3be781,getTranslation$5(_0x1416fc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3d5cf1=_0x34af21['commandParams'][0x0]['forceValue'],_0x291d4b=_0x1751a4(_0x34af21['commandName']),_0x3be781=_0x3d5cf1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x291d4b&&_0x5b8f9f['config']['get']('list.multiBlock')||(_0x3be781='*Change\x20to:*\x20%0'),_0x305b0d={'type':'format','content':getTranslation$5(_0x1416fc,_0x3be781,getTranslation$5(_0x1416fc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3be781='*Indent:*\x20%0',_0x305b0d={'type':'format','content':getTranslation$5(_0x1416fc,_0x3be781,getTranslation$5(_0x1416fc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3be781=function(_0x5cd0dc){const _0x2e6375=_0x5cd0dc['getFirstRange']();let _0x4c9d35=_0x2e6375['start']['nodeAfter'];for(;_0x4c9d35&&_0x2e6375['containsItem'](_0x4c9d35);){if(_0x4c9d35['getAttribute']('listIndent')>0x0)return!0x1;_0x4c9d35=_0x4c9d35['nextSibling'];}return!0x0;}(_0x214304)?getTranslation$5(_0x1416fc,'*Format:*\x20remove\x20from\x20%0',getTranslation$5(_0x1416fc,function(_0x5b7319){return'ELEMENT_'+_0x5b7319['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x214304))):getTranslation$5(_0x1416fc,'*Outdent:*\x20%0',getTranslation$5(_0x1416fc,'ELEMENT_LIST_ITEM')),_0x305b0d={'type':'format','content':_0x3be781};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34af21['multipleBlocks']&&(_0x3be781='*Merge:*\x20%0',_0x305b0d={'type':'deletion','content':getTranslation$5(_0x1416fc,_0x3be781,getTranslation$5(_0x1416fc,'ELEMENT_LIST_ITEM'))});}return _0x305b0d;});}}function checkSiblingsListItemId(_0x4fbf64){let _0x511982=_0x4fbf64['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x511982;){const _0x49f3bc=_0x511982['getAttribute']('listItemId');if(!_0x49f3bc)return!0x1;if(_0x49f3bc==_0x4fbf64['data']['newValue'])return'newValue';if(_0x49f3bc==_0x4fbf64['data']['oldValue'])return'oldValue';_0x511982=_0x511982['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1bdc15=this['editor']['config']['get']('list.properties'),_0xc51ad9=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bdc15['styles']&&_0xc51ad9['enableDefaultAttributesIntegration']('listStyle'),_0x1bdc15['reversed']&&_0xc51ad9['enableDefaultAttributesIntegration']('listReversed'),_0x1bdc15['startIndex']&&_0xc51ad9['enableDefaultAttributesIntegration']('listStart');const _0x2e7756={'type':'format','content':''};_0xc51ad9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x33c206=this['editor']['locale'];_0xc51ad9['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$5(_0x33c206,'FORMAT_LIST_REVERSED')),_0xc51ad9['descriptionFactory']['registerDescriptionCallback'](_0x5ed9ee=>{const {data:_0x374068}=_0x5ed9ee;if(_0x374068&&'listReversed'==_0x374068['key'])return null==_0x374068['newValue']||0x0==_0x374068['newValue']&&null==_0x374068['oldValue']?_0x2e7756:void 0x0;}),_0xc51ad9['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$5(_0x33c206,'FORMAT_LIST_START')),_0xc51ad9['descriptionFactory']['registerDescriptionCallback'](_0x4c5d22=>{const {data:_0x9362f8}=_0x4c5d22;if(_0x9362f8&&'listStart'==_0x9362f8['key'])return null==_0x9362f8['newValue']||0x1==_0x9362f8['newValue']&&null==_0x9362f8['oldValue']?_0x2e7756:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b337a=>{if(_0x1b337a['batch']['isUndo'])return!0x1;let _0x3aab9c=!0x1;const _0x32d386=_0xc51ad9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x362eba=>{const _0xc49db9=_0xc51ad9['_getAttributeKey'](_0x362eba);return'listStart'==_0xc49db9||'listReversed'==_0xc49db9;});for(const _0x5624e4 of _0x32d386){const _0x25f602=_0x5624e4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x25f602||'customNumbered'==_0x25f602)continue;const _0x559912=_0xc51ad9['_findSuggestions'](_0x5624e4['getFirstRange'](),'attribute')['find'](_0x374dc7=>'listType'==_0xc51ad9['_getAttributeKey'](_0x374dc7['suggestion']));_0x559912||(_0x1b337a['removeMarker'](_0x5624e4['getFirstMarker']()),_0x3aab9c=!0x0);}return _0x3aab9c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x38d8b2){const _0x29bfbc=this['editor']['locale'],{data:_0x11d793}=_0x38d8b2,_0x58b99b={'type':'format','content':''};if(!_0x11d793||'listStyle'!=_0x11d793['key'])return;if(!_0x11d793['oldValue'])return'default'==_0x11d793['newValue']?_0x58b99b:{'type':'format','content':''+getTranslation$5(_0x29bfbc,'*Set\x20format:*\x20%0',getTranslation$5(_0x29bfbc,this['_getTranslationKeyForListStyle'](_0x11d793['newValue'])))};if(!_0x11d793['newValue']){if('default'==_0x11d793['oldValue'])return _0x58b99b;let _0x5e8139=_0x38d8b2['head'];for(;_0x5e8139;){if(_0x5e8139['data']&&'listType'==_0x5e8139['data']['key']&&_0x5e8139['data']['newValue'])return _0x58b99b;_0x5e8139=_0x5e8139['next'];}return{'type':'format','content':''+getTranslation$5(_0x29bfbc,'*Remove\x20format:*\x20%0',getTranslation$5(_0x29bfbc,this['_getTranslationKeyForListStyle'](_0x11d793['oldValue'])))};}if('default'!=_0x11d793['newValue'])return{'type':'format','content':''+getTranslation$5(_0x29bfbc,'*Set\x20format:*\x20%0',getTranslation$5(_0x29bfbc,this['_getTranslationKeyForListStyle'](_0x11d793['newValue'])))};let _0x47bec5=_0x38d8b2['head'];for(;_0x47bec5;){if(_0x47bec5['data']&&'listType'==_0x47bec5['data']['key']&&_0x47bec5['data']['newValue']&&_0x47bec5['data']['oldValue'])return _0x58b99b;_0x47bec5=_0x47bec5['next'];}return{'type':'format','content':getTranslation$5(_0x29bfbc,'*Set\x20format:*\x20%0',getTranslation$5(_0x29bfbc,'ELEMENT_'+_0x38d8b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xb8acf6=this['editor'],_0x4ea039=_0xb8acf6['locale'];_0xb8acf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19d855=>{if('formatBlock'!=_0x19d855['type'])return;const {data:_0x2359f4}=_0x19d855;if(!_0x2359f4)return;let _0x33a24b,_0x52aca4;switch(_0x2359f4['commandName']){case'listStyle':_0x33a24b='*Change\x20to:*\x20%0',_0x52aca4={'type':'format','content':getTranslation$5(_0x4ea039,_0x33a24b,getTranslation$5(_0x4ea039,this['_getTranslationKeyForListStyle'](_0x2359f4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x33a24b=_0x2359f4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52aca4={'type':'format','content':getTranslation$5(_0x4ea039,_0x33a24b)};break;case'listStart':_0x33a24b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52aca4={'type':'format','content':getTranslation$5(_0x4ea039,_0x33a24b,_0x2359f4['commandParams'][0x0]['startIndex'])};}return _0x52aca4;});}['_getTranslationKeyForListStyle'](_0x2965f0){return'ELEMENT_'+getListTypeFromListStyleType(_0x2965f0)['toUpperCase']()+'_LIST_'+_0x2965f0['toUpperCase']()['replace'](/-/g,'_');}}const BULLETED_LIST_STYLE_TYPES=['disc','circle','square'],NUMBERED_LIST_STYLE_TYPES=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];function getListTypeFromListStyleType(_0x4fefa6){return BULLETED_LIST_STYLE_TYPES['includes'](_0x4fefa6)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x4fefa6)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x443bd7=this['editor'];_0x443bd7['commands']['get']('emoji')&&_0x443bd7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0x784857=this['editor'],_0x3c0ae7=_0x784857['plugins']['get']('TrackChangesEditing'),_0x62d369=_0x784857['commands']['get']('enter');_0x3c0ae7['enableCommand']('enter',()=>{_0x784857['model']['change'](_0x1dfaa9=>{const _0x206040=_0x784857['model']['document']['selection'],_0xca702b=_0x206040['getFirstPosition'](),_0x3893ff=ModelLiveRange['fromRange'](_0x206040['getFirstRange']());if(_0x62d369['enterBlock'](_0x1dfaa9)){const _0x2ccc0c=_0x784857['model']['createPositionAt'](_0xca702b['parent']['nextSibling'],0x0),_0x2a3df8=_0x1dfaa9['createRange'](_0xca702b,_0x2ccc0c);_0x3c0ae7['markInsertion'](_0x2a3df8);}else _0x1dfaa9['setSelection'](_0x1dfaa9['createRange'](_0x3893ff['end']));_0x3893ff['detach'](),_0x62d369['fire']('afterExecute',{'writer':_0x1dfaa9});});});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc3910f=this['editor']['plugins']['get']('TrackChangesEditing');_0xc3910f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc3910f['enableCommand']('findNext'),_0xc3910f['enableCommand']('findPrevious'),_0xc3910f['enableCommand']('replace'),_0xc3910f['enableCommand']('replaceAll');}['handleFindCommand'](_0x1a0346,_0x27848e,_0x4aa0db={}){const _0x3837a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1a0346(_0x1ee6db=>{let _0x273fbe=('string'==typeof _0x27848e?_0x3837a['findByTextCallback'](_0x27848e,_0x4aa0db):_0x27848e)(_0x1ee6db);Array['isArray'](_0x273fbe)&&(_0x273fbe={'results':_0x273fbe,'searchText':'string'==typeof _0x27848e?_0x27848e:''});const _0x4704ef=_0x273fbe['results']['filter'](_0x2a3a39=>!0x1===this['_isInDeletionRange'](_0x2a3a39,_0x1ee6db['item']));return{..._0x273fbe,'results':_0x4704ef};},_0x4aa0db);}['_isInDeletionRange'](_0x40bd3d,_0x55bd91){const _0x464706=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55bd91,_0x40bd3d['start']),this['editor']['model']['createPositionAt'](_0x55bd91,_0x40bd3d['end']));for(const _0x1c3890 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x464706['getIntersection'](_0x1c3890['getRange']()))return!0x0;return!0x1;}}const fontPlugins=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends Plugin{['afterInit'](){const _0x320a4c=this['editor']['locale'],_0x1b90ea=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x32f774,commandName:_0x469da0}of fontPlugins)this['editor']['plugins']['has'](_0x32f774)&&_0x1b90ea['enableDefaultAttributesIntegration'](_0x469da0);_0x1b90ea['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$5(_0x320a4c,'FORMAT_FONT_SIZE')),_0x1b90ea['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$5(_0x320a4c,'FORMAT_FONT_FAMILY')),_0x1b90ea['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$5(_0x320a4c,'FORMAT_FONT_COLOR')),_0x1b90ea['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$5(_0x320a4c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42c238=this['editor'],_0x376e7b=_0x42c238['locale'];_0x42c238['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa58df0=>{const _0x440bff=_0x376e7b['t'];if('formatInline'!=_0xa58df0['type'])return;const {data:_0x3c133f}=_0xa58df0;if(null!=_0x3c133f){if('fontSize'==_0x3c133f['commandName']){const _0x162dd8=_0x3c133f['commandParams'][0x0]['value'];if(_0x162dd8){const _0x42bc31=_0x440bff(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12b772=>_0x12b772['model']==_0x162dd8)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$5(_0x376e7b,'*Set\x20font\x20size:*\x20%0',_0x42bc31)};}return{'type':'format','content':getTranslation$5(_0x376e7b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3c133f['commandName']){const _0x259e80=_0x3c133f['commandParams'][0x0]['value'];return _0x259e80?{'type':'format','content':getTranslation$5(_0x376e7b,'*Set\x20font\x20family:*\x20%0',_0x259e80)}:{'type':'format','content':getTranslation$5(_0x376e7b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3c133f['commandName']){const _0x57564e=_0x3c133f['commandParams'][0x0]['value'];if(_0x57564e){const _0x31ee3f=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x35bbad=>_0x35bbad['model']==_0x57564e);let _0x5f481c=_0x57564e,_0x48fb0f='';return _0x31ee3f&&(_0x5f481c=_0x31ee3f['label'],_0x48fb0f=_0x440bff(_0x5f481c)['toLowerCase']()),{'type':'format','content':getTranslation$5(_0x376e7b,'*Set\x20font\x20color:*\x20%0',_0x48fb0f)['trim'](),'color':{'value':_0x57564e,'title':_0x48fb0f||_0x5f481c}};}return{'type':'format','content':getTranslation$5(_0x376e7b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3c133f['commandName']){const _0x1b5a0d=_0x3c133f['commandParams'][0x0]['value'];if(_0x1b5a0d){const _0x543fa4=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3cd03b=>_0x3cd03b['model']==_0x1b5a0d);let _0x20a912=_0x1b5a0d,_0x2a2b3d='';return _0x543fa4&&(_0x20a912=_0x543fa4['label'],_0x2a2b3d=_0x440bff(_0x20a912)['toLowerCase']()),{'type':'format','content':getTranslation$5(_0x376e7b,'*Set\x20font\x20background\x20color:*\x20%0',_0x2a2b3d)['trim'](),'color':{'value':_0x1b5a0d,'title':_0x2a2b3d||_0x20a912}};}return{'type':'format','content':getTranslation$5(_0x376e7b,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends Plugin{['afterInit'](){const {plugins:_0xe070ed}=this['editor'];_0xe070ed['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xe070ed['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc12175,plugins:_0x470d21,commands:_0x1b9b8f}=this['editor'],_0x308c31=_0x470d21['get']('TrackChangesEditing');_0x1b9b8f['get']('footnotesStyle')&&_0x308c31['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1b9b8f['get']('footnotesStart')&&_0x308c31['enableDefaultAttributesIntegration']('footnotesStart'),_0x308c31['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',getTranslation$5(_0xc12175,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x308c31['descriptionFactory']['registerAttributeLabel']('footnotesListStart',getTranslation$5(_0xc12175,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xc1ced5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x59e00e,commands:_0x555307}=this['editor'];_0x555307['get']('insertFootnote')&&_0xc1ced5['enableCommand']('insertFootnote'),_0xc1ced5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2a9c60=>getTranslation$5(_0x59e00e,'ELEMENT_FOOTNOTE_REF',_0x2a9c60)),_0xc1ced5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4b8464=>getTranslation$5(_0x59e00e,'ELEMENT_FOOTNOTE_DEFINITION',_0x4b8464)),_0xc1ced5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x111276=>getTranslation$5(_0x59e00e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x111276));}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x2dd937=this['editor'],_0x288583=_0x2dd937['plugins']['get']('TrackChangesEditing'),_0x38df08=_0x2dd937['commands']['get']('copyFormat'),_0x2a8787=_0x2dd937['commands']['get']('pasteFormat');_0x38df08&&_0x2a8787&&(_0x288583['enableDefaultAttributesIntegration']('pasteFormat'),_0x288583['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2cb9c1=this['editor'],_0x997f1=_0x2cb9c1['locale'];_0x2cb9c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b028f=>{if('formatBlock'!=_0x1b028f['type']&&'formatInline'!=_0x1b028f['type'])return;const {data:_0x24dac0}=_0x1b028f;if(_0x24dac0&&'pasteFormat'===_0x24dac0['commandName']){const _0x39da11=[],_0x6e1988=_0x24dac0['commandParams'][0x0];for(const [_0x301985,_0x108138]of Object['entries'](_0x6e1988))_0x39da11['push'](translateFormatting(_0x2cb9c1,_0x301985,_0x108138));return _0x39da11['length']?{'type':'format','content':getTranslation$5(_0x997f1,'*Set\x20format\x20to:*\x20%0',_0x39da11['join'](',\x20'))}:{'type':'format','content':getTranslation$5(_0x997f1,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x36e8f3,_0x1ae8c3,_0x35befd){const _0x46cc38=_0x36e8f3['locale']['t'],_0x43467a=_0x1ae8c3['split'](/(?=[A-Z])/)['join']('\x20'),_0xce6e11=_0x46cc38(_0x43467a['charAt'](0x0)['toUpperCase']()+_0x43467a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x35befd)return _0xce6e11;if('fontColor'===_0x1ae8c3||'fontBackgroundColor'===_0x1ae8c3){const _0x437b17=normalizeColorOptions(_0x36e8f3['config']['get']('fontColor.colors'))['find'](_0x1f0da7=>_0x1f0da7['model']==_0x35befd);return _0xce6e11+'\x20('+(_0x437b17?_0x46cc38(_0x437b17['label'])['toLowerCase']():_0x35befd)+')';}if('fontSize'===_0x1ae8c3&&isNaN(parseFloat(_0x35befd))){const _0x3a656e=_0x36e8f3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36e8f3['config']['get']('fontSize.options'))['find'](_0x1c59e3=>_0x1c59e3['model']==_0x35befd);return _0xce6e11+'\x20('+(_0x3a656e?_0x46cc38(_0x3a656e['title'])['toLowerCase']():_0x35befd)+')';}return _0xce6e11+'\x20('+_0x35befd+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x425420=this['editor'];if(!_0x425420['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x425420['config']['get']('heading.options');const _0x1443e5=_0x425420['locale'],_0x136de1=_0x425420['plugins']['get']('TrackChangesEditing');_0x136de1['enableDefaultAttributesIntegration']('heading');for(const _0x535f3 of this['_headingOptions'])'paragraph'!=_0x535f3['model']&&_0x136de1['descriptionFactory']['registerElementLabel'](_0x535f3['model'],_0x5edcce=>{const _0x2978b3=this['_getHeadingLevel'](_0x535f3['model']);return null!==_0x2978b3?_0x19ac11(_0x5edcce,_0x2978b3):_0x10508c(_0x5edcce,_0x535f3['title']);});function _0x19ac11(_0x41529c,_0x4f77ae){return getTranslation$5(_0x1443e5,'ELEMENT_HEADING',[_0x41529c,_0x4f77ae]);}function _0x10508c(_0x5318b1,_0x205dda){return getTranslation$5(_0x1443e5,'ELEMENT_HEADING_CUSTOM',[_0x5318b1,_0x205dda]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2827fd=this['editor'],_0xc9aa93=_0x2827fd['locale'];function _0xe1e603(_0x54e422,_0x2cec68){return getTranslation$5(_0xc9aa93,'ELEMENT_HEADING_CUSTOM',[_0x54e422,_0x2cec68]);}_0x2827fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5e88=>{if('formatBlock'!=_0x5b5e88['type'])return;const {data:_0x416413}=_0x5b5e88;if(_0x416413&&'heading'==_0x416413['commandName']){const _0x4e5464=_0x416413['commandParams'][0x0]['value'],_0x34143f=this['_getHeadingLevel'](_0x4e5464);if(null!==_0x34143f)return{'type':'format','content':getTranslation$5(_0xc9aa93,'*Change\x20to:*\x20%0',(_0x7a9d00=0x1,_0x506d58=_0x34143f,getTranslation$5(_0xc9aa93,'ELEMENT_HEADING',[_0x7a9d00,_0x506d58])))};const _0x2fb17d=this['_headingOptions']['find'](_0x478158=>_0x478158['model']===_0x4e5464)['title'];return{'type':'format','content':getTranslation$5(_0xc9aa93,'*Change\x20to:*\x20%0',_0xe1e603(0x1,_0x2fb17d))};}var _0x7a9d00,_0x506d58;});}['_getHeadingLevel'](_0x485308){const _0xdb061b=_0x485308['match'](/^heading(\d+)/);if(_0xdb061b)return _0xdb061b[0x1];const _0x534e0a=this['_headingOptions']?.['find'](_0x560f37=>_0x560f37['model']==_0x485308);if(_0x534e0a&&_0x534e0a['view']){const _0x5aa032=_0x534e0a['view'],_0x54e53e=(_0x5aa032['name']??_0x5aa032)['match'](/^h(\d+)/);if(_0x54e53e)return _0x54e53e[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x4d9d40=this['editor'];if(!_0x4d9d40['plugins']['has']('HighlightEditing'))return;const _0x3c5db6=_0x4d9d40['plugins']['get']('TrackChangesEditing'),_0x3a4e4a=_0x4d9d40['locale'];_0x3c5db6['enableDefaultAttributesIntegration']('highlight'),_0x3c5db6['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$5(_0x3a4e4a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x626878=this['editor'],_0x51ffda=_0x626878['locale'];_0x626878['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8d66=>{if('formatInline'!=_0x1a8d66['type'])return;const {data:_0x244b6c}=_0x1a8d66;if(_0x244b6c&&'highlight'==_0x244b6c['commandName']){const _0x27b7e=_0x51ffda['t'],_0xc6e481=_0x244b6c['commandParams'][0x0]['value'];if(_0xc6e481){const _0x4c3726=_0x626878['config']['get']('highlight.options')['find'](_0x59a7fa=>_0x59a7fa['model']==_0xc6e481),_0xf2e7ea=_0x27b7e(_0x4c3726['title'])['toLowerCase']();return{'type':'format','content':getTranslation$5(_0x51ffda,'*Set\x20highlight:*\x20%0',_0xf2e7ea),'color':{'value':_0x4c3726['color'],'title':_0x4c3726['title']}};}return{'type':'format','content':getTranslation$5(_0x51ffda,'*Remove\x20highlight*',getTranslation$5(_0x51ffda,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x2a5cbd=this['editor'];if(!_0x2a5cbd['plugins']['has']('HorizontalLineEditing'))return;_0x2a5cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2bb3fc=_0x2a5cbd['plugins']['get']('TrackChangesEditing'),_0x47d5d2=_0x2a5cbd['locale'];_0x2bb3fc['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf079a3=>getTranslation$5(_0x47d5d2,'ELEMENT_HORIZONTAL_LINE',_0xf079a3));}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x22a029=this['editor'];if(!_0x22a029['plugins']['has']('HtmlEmbed'))return;const _0x2ed5b4=_0x22a029['plugins']['get']('TrackChangesEditing'),_0x5a9c52=_0x22a029['locale'];_0x2ed5b4['descriptionFactory']['registerElementLabel']('rawHtml',_0x5a60c4=>getTranslation$5(_0x5a9c52,'ELEMENT_HTML_EMBED',_0x5a60c4)),_0x2ed5b4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2ed5b4['descriptionFactory']['registerDescriptionCallback'](_0xc65a5a=>{if('attribute'!=_0xc65a5a['type'])return;const {data:_0x58f087}=_0xc65a5a;if(_0x58f087&&'value'==_0x58f087['key']&&_0xc65a5a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x486071=getTranslation$5(_0x5a9c52,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$5(_0x5a9c52,'*Change\x20%0\x20content*',_0x486071)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xede08d=this['editor'],_0x23d37b=_0xede08d['locale'];_0xede08d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545b21=>{if('formatBlock'!=_0x545b21['type'])return;const {data:_0x5826d2}=_0x545b21;if(_0x5826d2&&'htmlEmbed'==_0x5826d2['commandName']){const _0x4d8edf=getTranslation$5(_0x23d37b,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$5(_0x23d37b,'*Change\x20%0\x20content*',_0x4d8edf)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x3f1efa=this['editor'];if(!_0x3f1efa['plugins']['has']('ImageEditing'))return;const _0x51b750=_0x3f1efa['plugins']['get']('TrackChangesEditing'),_0x224e55=_0x3f1efa['plugins']['get']('ImageUtils'),_0x4fad76=_0x3f1efa['locale'];_0x51b750['enableCommand']('insertImage'),_0x51b750['descriptionFactory']['registerElementLabel']('imageBlock',_0x483019=>getTranslation$5(_0x4fad76,'ELEMENT_IMAGE',_0x483019)),_0x51b750['descriptionFactory']['registerElementLabel']('imageInline',_0x1e8c53=>getTranslation$5(_0x4fad76,'ELEMENT_INLINE_IMAGE',_0x1e8c53)),_0x51b750['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$5(_0x4fad76,'ELEMENT_CAPTION')),_0x3f1efa['plugins']['has']('ImageUploadEditing')&&_0x51b750['enableCommand']('uploadImage'),_0x3f1efa['plugins']['has']('ImageBlockEditing')&&_0x3f1efa['plugins']['has']('ImageInlineEditing')&&(_0x51b750['enableCommand']('imageTypeInline',(_0x216f52,_0x1a63bf)=>{const _0x1d06d8=_0x224e55['getClosestSelectedImageElement'](_0x3f1efa['model']['document']['selection']);_0x3f1efa['model']['change'](()=>{_0x51b750['markBlockFormat'](_0x1d06d8,{'commandName':'imageTypeInline','commandParams':[_0x1a63bf]},[],'convertBlockImageToInline');});}),_0x51b750['enableCommand']('imageTypeBlock',(_0x3abcd3,_0x3ba987)=>{_0x3f1efa['model']['change'](_0x4eb95e=>{let _0x49660f=_0x224e55['getClosestSelectedImageElement'](_0x3f1efa['model']['document']['selection']),_0x179340=_0x4eb95e['createRangeOn'](_0x49660f);const _0x50550e=ModelLivePosition['fromPosition'](_0x179340['start'],'toPrevious'),_0xbbea3d=ModelLivePosition['fromPosition'](_0x179340['end'],'toNext');_0x51b750['forceDefaultExecution'](()=>_0x3abcd3(_0x3ba987)),_0x49660f=_0x224e55['getClosestSelectedImageElement'](_0x3f1efa['model']['document']['selection']),_0x179340=_0x4eb95e['createRangeOn'](_0x49660f);const _0x4c14ec=_0x4eb95e['createRange'](_0x50550e,_0xbbea3d);_0x50550e['detach'](),_0xbbea3d['detach'](),_0x51b750['markBlockFormat'](_0x49660f,{'commandName':'imageTypeInline','commandParams':[_0x3ba987]},[],'convertInlineImageToBlock'),_0x4c14ec['start']['isBefore'](_0x179340['start'])&&_0x51b750['markInsertion'](_0x4eb95e['createRange'](_0x4c14ec['start'],_0x179340['start']),'convertInlineImageToBlock'),_0x179340['end']['isBefore'](_0x4c14ec['end'])&&_0x51b750['markInsertion'](_0x4eb95e['createRange'](_0x179340['end'],_0x4c14ec['end']),'convertInlineImageToBlock');});}),_0x51b750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x51b750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x51b750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x51b750['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x51b750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x51b750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x416b42])=>{const _0x5ac3ad=_0x51b750['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e5ed8=_0x416b42['start'],_0x3f6bbd=_0x416b42['end'];const _0x1d415f=_0x3f1efa['model']['schema']['getNearestSelectionRange'](_0x2e5ed8,'backward'),_0x2b73e6=_0x3f1efa['model']['schema']['getNearestSelectionRange'](_0x3f6bbd,'forward');_0x1d415f['isCollapsed']&&(_0x2e5ed8=_0x1d415f['start']),_0x2b73e6['isCollapsed']&&(_0x3f6bbd=_0x2b73e6['end']),_0x5ac3ad([_0x3f1efa['model']['createRange'](_0x2e5ed8,_0x3f6bbd)]);}),_0x51b750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x223203),_0x51b750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x223203)),_0x3f1efa['plugins']['has']('ImageCaptionEditing')&&(_0x51b750['enableCommand']('toggleImageCaption',(_0x552248,_0x309711)=>{const _0x3a4eaa=_0x3f1efa['plugins']['get']('ImageCaptionUtils');let _0xfee736=_0x224e55['getClosestSelectedImageElement'](_0x3f1efa['model']['document']['selection']),_0x42034d=_0x3a4eaa['getCaptionFromImageModelElement'](_0xfee736);_0x3f1efa['model']['change'](()=>{if(_0x42034d)return void _0x51b750['markDeletion'](_0x3f1efa['model']['createRangeOn'](_0x42034d));const _0x1597ad=_0x224e55['isBlockImage'](_0xfee736);_0x552248(_0x309711),_0xfee736=_0x224e55['getClosestSelectedImageElement'](_0x3f1efa['model']['document']['selection']),_0x42034d=_0x3a4eaa['getCaptionFromImageModelElement'](_0xfee736),_0x51b750['markInsertion'](_0x3f1efa['model']['createRangeOn'](_0x42034d),_0x1597ad?null:'imageCaption');});}),_0x51b750['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x223203));const _0x4ecbd2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b8024(_0x1baa92,_0x1b4b39){const _0x48b49c=_0x4ecbd2['findIndex'](({type:_0x16e952,subType:_0x1cdbaa})=>_0x1baa92['type']==_0x16e952&&_0x1baa92['subType']==_0x1cdbaa),_0x4ed115=_0x4ecbd2['findIndex'](({type:_0x5797a2,subType:_0x1e8d06})=>_0x1b4b39['type']==_0x5797a2&&_0x1b4b39['subType']==_0x1e8d06);if(_0x48b49c<0x0||_0x4ed115<0x0)return!0x1;const _0x23bb72=_0x1baa92['getFirstRange'](),_0x124b18=_0x1b4b39['getFirstRange']();if((0x0==_0x48b49c||0x1==_0x48b49c)&&0x2==_0x4ed115&&_0x23bb72['isIntersecting'](_0x124b18))return!0x0;if(0x2==_0x48b49c&&0x3==_0x4ed115){const _0x530d75=_0x51b750['_findSuggestions'](_0x23bb72,'insertion')['filter'](({suggestion:_0x22b5c,meta:_0x288da7})=>_0x288da7['isOwn']&&'convertInlineImageToBlock'==_0x22b5c['subType']);if(_0x530d75['length']>0x1&&_0x124b18['end']['isEqual'](_0x23bb72['start']))return!0x0;if(0x1==_0x530d75['length']&&(_0x23bb72['start']['isEqual'](_0x124b18['end'])||_0x23bb72['end']['isEqual'](_0x124b18['start'])))return!0x0;}if(0x3==_0x48b49c&&0x3==_0x4ed115&&_0x23bb72['start']['isBefore'](_0x124b18['start'])){const _0x215f14=_0x23bb72['end']['nodeAfter'],_0x2ae7a8=_0x124b18['start']['nodeBefore'];return _0x224e55['isBlockImage'](_0x215f14)&&_0x215f14===_0x2ae7a8;}return!0x1;}function _0x223203(_0x3ec612,_0x5bbb1d){return _0x2b8024(_0x3ec612,_0x5bbb1d)?[_0x3ec612,_0x5bbb1d]:_0x2b8024(_0x5bbb1d,_0x3ec612)?[_0x5bbb1d,_0x3ec612]:null;}_0x3f1efa['plugins']['has']('ImageResize')&&(_0x51b750['enableDefaultAttributesIntegration']('resizeImage'),_0x51b750['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$5(_0x4fad76,'FORMAT_IMAGE_SIZE'))),_0x3f1efa['plugins']['has']('ImageTextAlternativeEditing')&&_0x51b750['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3f1efa['plugins']['has']('PictureEditing')&&_0x51b750['descriptionFactory']['registerDescriptionCallback'](_0xa14b34=>{if('attribute'!=_0xa14b34['type'])return;const {data:_0x103f7d}=_0xa14b34;return _0x103f7d&&'sources'==_0x103f7d['key']?{'type':'format','content':''}:void 0x0;}),_0x3f1efa['plugins']['has']('ImageSizeAttributes')&&_0x51b750['descriptionFactory']['registerDescriptionCallback'](_0x472a3c=>{if('attribute'!=_0x472a3c['type'])return;const {data:_0x1b36cb}=_0x472a3c;return!_0x1b36cb||'width'!=_0x1b36cb['key']&&'height'!=_0x1b36cb['key']?void 0x0:{'type':'format','content':''};}),_0x51b750['descriptionFactory']['registerDescriptionCallback'](_0x4d32d5=>{if(!!_0x4ecbd2['find'](({type:_0x5da79c,subType:_0x21ac9a})=>_0x4d32d5['type']==_0x5da79c&&_0x4d32d5['subType']==_0x21ac9a))return _0x4d32d5['previous']?{}:void 0x0;}),_0x51b750['descriptionFactory']['registerDescriptionCallback'](_0xa0e297=>{if('insertion'==_0xa0e297['type']||'deletion'==_0xa0e297['type']){const _0x5ce6db=_0xa0e297['getContainedElement']();if(_0x5ce6db&&_0x5ce6db['is']('element','caption'))return{'type':'insertion'==_0xa0e297['type']?'addObject':'removeObject','element':_0x5ce6db,'quantity':0x1};}}),_0x51b750['descriptionFactory']['registerDescriptionCallback'](_0x23e2d7=>'formatBlock'==_0x23e2d7['type']&&'convertInlineImageToBlock'==_0x23e2d7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23e2d7['type']&&'convertBlockImageToInline'==_0x23e2d7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x51b750['descriptionFactory']['registerDescriptionCallback'](_0x511b7f=>{if('attribute'!=_0x511b7f['type'])return;const {data:_0x7f0e03}=_0x511b7f;if(!_0x7f0e03||'alt'!=_0x7f0e03['key'])return;const _0x4d5e40=_0x7f0e03['newValue'];return _0x4d5e40?{'type':'format','content':getTranslation$5(_0x4fad76,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d5e40+'\x22')}:{'type':'format','content':getTranslation$5(_0x4fad76,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b63bb=this['editor'],_0x2db582=_0x3b63bb['locale'];_0x3b63bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bf649=>{if('formatBlock'!=_0x3bf649['type']&&'formatInline'!=_0x3bf649['type'])return;const {data:_0x275732}=_0x3bf649;if(_0x275732){if('imageTextAlternative'==_0x275732['commandName']){const _0x35125d=_0x275732['commandParams'][0x0]['newValue'];return _0x35125d?{'type':'format','content':getTranslation$5(_0x2db582,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35125d+'\x22')}:{'type':'format','content':getTranslation$5(_0x2db582,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x275732['commandName']){const _0x437f38=_0x275732['commandParams'][0x0]['width'];return _0x437f38?{'type':'format','content':getTranslation$5(_0x2db582,'*Set\x20image\x20width:*\x20%0',_0x437f38)}:{'type':'format','content':getTranslation$5(_0x2db582,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x21d80e=this['editor']['locale'],_0x5e07c9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e07c9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5e07c9['descriptionFactory']['registerDescriptionCallback'](_0x1b8876=>{if('attribute'!=_0x1b8876['type'])return;const {data:_0x2fbd30}=_0x1b8876;return _0x2fbd30&&'src'==_0x2fbd30['key']?_0x2fbd30['newValue']&&_0x2fbd30['oldValue']?{'type':'format','content':getTranslation$5(_0x21d80e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x27b5f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x27b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x27b5f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27b5f3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x27b5f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55033b=this['editor'],_0x3dce57=_0x55033b['locale'];_0x55033b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34921c=>{if('formatBlock'!=_0x34921c['type']&&'formatInline'!=_0x34921c['type'])return;const {data:_0x383ee9}=_0x34921c;if(!_0x383ee9||'replaceImageSource'!=_0x383ee9['commandName'])return;return{'type':'format','content':getTranslation$5(_0x3dce57,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x5c43fe=this['editor'];if(!_0x5c43fe['plugins']['has']('ImageStyleEditing'))return;const _0x261839=_0x5c43fe['plugins']['get']('TrackChangesEditing'),_0x14fced=_0x5c43fe['plugins']['get']('ImageUtils'),_0x3c4c40={};_0x261839['enableCommand']('imageStyle',(_0x3a3671,_0x57bb6f)=>{const _0x3943dd=_0x5c43fe['plugins']['get']('Users')['me'],_0x3f4126=_0x5c43fe['commands']['get']('imageStyle');let _0x135a86=_0x14fced['getClosestSelectedImageElement'](_0x5c43fe['model']['document']['selection']),_0x5a40cd=_0x5c43fe['model']['createRangeOn'](_0x135a86),_0x5955dc=_0x3f4126['value'];if(_0x5955dc==_0x57bb6f['value'])return;const _0x2d78f4={'commandName':'imageStyle','commandParams':[_0x57bb6f],'formatGroupId':uid()};_0x5c43fe['model']['change'](()=>{if(_0x261839['getSuggestions']()['filter'](_0x139f28=>_0x139f28['isInContent']&&_0x3943dd==_0x139f28['author']&&('formatBlock'==_0x139f28['type']||'formatInline'==_0x139f28['type'])&&('imageStylePreApply'==_0x139f28['subType']||'imageStylePostApply'==_0x139f28['subType'])&&_0x139f28['getFirstRange']()['isEqual'](_0x5a40cd))['forEach'](_0x3fa8b7=>_0x261839['discardSuggestion'](_0x3fa8b7['head'])),_0x135a86=_0x14fced['getClosestSelectedImageElement'](_0x5c43fe['model']['document']['selection']),_0x5a40cd=_0x5c43fe['model']['createRangeOn'](_0x135a86),_0x3f4126['refresh'](),_0x5c43fe['commands']['get']('imageTypeInline')['refresh'](),_0x5c43fe['commands']['get']('imageTypeBlock')['refresh'](),_0x5955dc=_0x3f4126['value'],_0x5955dc!=_0x57bb6f['value'])return _0x14fced['isInlineImage'](_0x135a86)&&_0x3f4126['shouldConvertImageType'](_0x57bb6f['value'],_0x135a86)?(_0x3a3671({..._0x57bb6f,'setImageSizes':!0x1}),_0x135a86=_0x14fced['getClosestSelectedImageElement'](_0x5c43fe['model']['document']['selection']),void _0x261839['markBlockFormat'](_0x135a86,{..._0x2d78f4,'commandReversedParams':[{'value':_0x5955dc||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x14fced['isBlockImage'](_0x135a86)?_0x261839['markBlockFormat'](_0x135a86,_0x2d78f4,[],'imageStylePostApply'):_0x261839['markInlineFormat'](_0x5a40cd,_0x2d78f4,'imageStylePostApply'));});});for(const _0x5ed2a5 of _0x5c43fe['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3c4c40[_0x5ed2a5['name']]=_0x5ed2a5['title']['toLowerCase']();_0x261839['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x261839['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x261839['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x261839['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x809fb3])=>{_0x14fced['setImageNaturalSizeAttributes'](_0x809fb3['getContainedElement']());}),_0x261839['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x373642,_0x510436)=>{_0x261839['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x373642,{'commandName':_0x510436['commandName'],'commandParams':_0x510436['commandReversedParams']});}),_0x261839['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29673f,_0x5b30d8){if(_0x435f43(_0x29673f,_0x5b30d8))return[_0x29673f,_0x5b30d8];if(_0x435f43(_0x5b30d8,_0x29673f))return[_0x5b30d8,_0x29673f];return null;});const _0x134fcb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x435f43(_0x103aa3,_0x2836b7){const _0x339f14=_0x134fcb['findIndex'](({type:_0x2c8cdc,subType:_0xddb88f})=>_0x103aa3['type']==_0x2c8cdc&&_0x103aa3['subType']==_0xddb88f),_0x1ac998=_0x134fcb['findIndex'](({type:_0x30156d,subType:_0x9b3f05})=>_0x2836b7['type']==_0x30156d&&_0x2836b7['subType']==_0x9b3f05);if(_0x339f14<0x0||_0x1ac998<0x0)return!0x1;const _0x2cb395=_0x103aa3['getFirstRange'](),_0x500e88=_0x2836b7['getFirstRange']();if((0x0==_0x339f14||0x1==_0x339f14)&&0x2==_0x1ac998&&_0x2cb395['isIntersecting'](_0x500e88))return!0x0;if(0x2==_0x339f14&&0x3==_0x1ac998){const _0x13bab9=_0x261839['_findSuggestions'](_0x2cb395,'insertion')['filter'](({suggestion:_0xd7d3d5,meta:_0x4d8eac})=>_0x4d8eac['isOwn']&&'convertInlineImageToBlock'==_0xd7d3d5['subType']);if(_0x13bab9['length']>0x1&&_0x500e88['end']['isEqual'](_0x2cb395['start']))return!0x0;if(0x1==_0x13bab9['length']&&(_0x2cb395['start']['isEqual'](_0x500e88['end'])||_0x2cb395['end']['isEqual'](_0x500e88['start'])))return!0x0;}if(0x3==_0x339f14&&0x3==_0x1ac998&&_0x2cb395['start']['isBefore'](_0x500e88['start'])){const _0x15d853=_0x2cb395['end']['nodeAfter'],_0x4adcdd=_0x500e88['start']['nodeBefore'];return _0x14fced['isBlockImage'](_0x15d853)&&_0x15d853===_0x4adcdd;}return!0x1;}_0x5c43fe['model']['document']['registerPostFixer'](()=>{let _0x542699=!0x1;const _0x54c78c=Array['from'](_0x5c43fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2177b7,data:_0x1c901b}of _0x54c78c){const {group:_0x1c2e1f,type:_0x4fafcd,subType:_0x44757a,id:_0x3d43e1}=splitSuggestionMarkerName(_0x2177b7);if('suggestion'==_0x1c2e1f&&_0x261839['hasSuggestion'](_0x3d43e1)){if('formatBlock'==_0x4fafcd&&('imageStylePreApply'==_0x44757a||'imageStylePostApply'==_0x44757a)){const _0x75695f=_0x261839['getSuggestion'](_0x3d43e1);if(_0x1c901b['newRange']){const _0x5ec922=_0x75695f['getFirstRange']()['getContainedElement']();if(_0x14fced['isBlockImage'](_0x5ec922))continue;_0x261839['discardSuggestion'](_0x75695f),_0x542699=!0x0;}}if('insertion'==_0x4fafcd&&'imageCaption'==_0x44757a&&!_0x1c901b['newRange']){const _0x1338d5=_0x261839['getSuggestion'](_0x3d43e1);_0x1338d5['next']&&_0x1338d5['next']['isInContent']&&(_0x261839['discardSuggestion'](_0x1338d5['next']),_0x542699=!0x0);}}}return _0x542699;}),this['_registerLegacyDescription'](_0x3c4c40);}['_registerLegacyDescription'](_0x43ce72){const _0x320d91=this['editor'],_0x5386ab=_0x320d91['locale'];_0x320d91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e4e24=>{if('formatBlock'!=_0x3e4e24['type']&&'formatInline'!=_0x3e4e24['type'])return;const {data:_0x33548}=_0x3e4e24;if(!_0x33548||'imageStyle'!=_0x33548['commandName'])return;const _0x30cb8a=_0x33548['commandParams'][0x0]['value'];return _0x37fb75('side'===_0x30cb8a?getTranslation$5(_0x5386ab,'FORMAT_SIDE_IMAGE'):_0x43ce72[_0x30cb8a]||_0x30cb8a);function _0x37fb75(_0x12ffd9){return{'type':'format','content':getTranslation$5(_0x5386ab,'*Format:*\x20%0',_0x12ffd9)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3fea61){super(_0x3fea61),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2858dd=this['editor'],_0x2e6550=_0x2858dd['commands']['get']('importWord'),_0x2b361d=_0x2858dd['commands']['get']('trackChanges');_0x2e6550&&(_0x2e6550['on']('execute',(_0x51273c,[,_0x427f0])=>{this['_trackChangesValueDuringImport']=_0x2b361d['value'],_0x427f0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e6550,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e6550,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2b361d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2858dd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb08ec,_0x3f3a8c){const {suggestions:_0x1f6ef2}=_0x3f3a8c,_0x5a5d0c=this['editor']['commands']['get']('trackChanges'),_0x3fe255=_0x5a5d0c['value'];this['_trackChangesValueDuringImport']!==_0x3fe255&&(_0x5a5d0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f6ef2&&_0x1f6ef2['forEach'](({id:_0xbb3e1b,type:_0x2400dc,author:_0x138ce6,created_at:_0x55030b})=>{const _0x410f28={'id':_0xbb3e1b,'type':_0x2400dc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x138ce6,'createdAt':_0x55030b?new Date(_0x55030b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x410f28);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x36b39e=this['editor'],_0x356fe8=_0x36b39e['plugins']['get']('TrackChangesEditing');if(_0x36b39e['plugins']['has']('IndentEditing')&&(_0x356fe8['enableCommand']('indent'),_0x356fe8['enableCommand']('outdent')),_0x36b39e['plugins']['has']('IndentBlock')){for(const _0x539931 of['indentBlock','outdentBlock'])_0x356fe8['enableDefaultAttributesIntegration'](_0x539931);if(_0x36b39e['plugins']['has']('ListEditing')){for(const _0x4d5115 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x356fe8['enableDefaultAttributesIntegration'](_0x4d5115);}}const _0x52ae88=_0x36b39e['locale'];_0x356fe8['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$5(_0x52ae88,'FORMAT_INDENT')),_0x356fe8['descriptionFactory']['registerAttributeLabel']('blockIndentList',getTranslation$5(_0x52ae88,'FORMAT_INDENT')),_0x356fe8['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',getTranslation$5(_0x52ae88,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3356fc=this['editor'],_0x40b9af=_0x3356fc['locale'],_0x522a76=_0x3356fc['plugins']['get']('TrackChangesEditing');_0x522a76['descriptionFactory']['registerDescriptionCallback'](_0x1d6777=>{if('formatBlock'!=_0x1d6777['type'])return;const {data:_0x3ff154}=_0x1d6777;if(!_0x3ff154)return;if('indentBlock'!=_0x3ff154['commandName']&&'outdentBlock'!=_0x3ff154['commandName'])return;const _0x30770c=_0x1d6777['getItems']()[0x0],_0x2e389a=_0x522a76['descriptionFactory']['getItemLabel'](_0x30770c);return'indentBlock'==_0x3ff154['commandName']?{'type':'format','content':getTranslation$5(_0x40b9af,'*Indent:*\x20%0',_0x2e389a)}:'outdentBlock'==_0x3ff154['commandName']?{'type':'format','content':getTranslation$5(_0x40b9af,'*Outdent:*\x20%0',_0x2e389a)}:void 0x0;});}}class TrackChangesInputCommand extends Plugin{static get['requires'](){return[Input];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends Plugin{['afterInit'](){const _0xb6d051=this['editor'];if(!_0xb6d051['plugins']['has']('LinkEditing'))return;const _0x9d392c=_0xb6d051['plugins']['get']('TrackChangesEditing'),_0x3f4bad=_0xb6d051['commands']['get']('link');_0x9d392c['enableDefaultAttributesIntegration']('link'),_0x9d392c['enableDefaultAttributesIntegration']('unlink');for(const _0x2bb3fb of _0x3f4bad['manualDecorators'])_0x9d392c['descriptionFactory']['registerAttributeLabel'](_0x2bb3fb['id'],'link\x20('+_0x2bb3fb['label']['toLowerCase']()+')');_0x9d392c['descriptionFactory']['registerDescriptionCallback'](_0x494b25=>{if('attribute'!=_0x494b25['type'])return;const {data:_0x399aa9}=_0x494b25;if(!_0x399aa9||'linkHref'!=_0x399aa9['key'])return;const _0x37362d=_0x399aa9['newValue'],_0xd3d1ae=_0xb6d051['locale'];return{'type':'format','content':null==_0x37362d?getTranslation$5(_0xd3d1ae,'*Remove\x20link*'):getTranslation$5(_0xd3d1ae,'*Set\x20link:*\x20%0','\x22'+_0x37362d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e41be=this['editor'],_0x237fbe=_0x4e41be['locale'];_0x4e41be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x809f57=>{if('formatInline'!=_0x809f57['type'])return;const {data:_0x2a3a66}=_0x809f57;if(_0x2a3a66){if('link'==_0x2a3a66['commandName']){const _0x5c10d6=_0x2a3a66['commandParams'][0x0];return{'type':'format','content':getTranslation$5(_0x237fbe,'*Set\x20link:*\x20%0','\x22'+_0x5c10d6+'\x22')};}return'unlink'==_0x2a3a66['commandName']?{'type':'format','content':getTranslation$5(_0x237fbe,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x259746=this['editor'],_0x28e75b=_0x259746['locale'];if(!_0x259746['plugins']['has']('LegacyListEditing'))return;const _0x429cfa=_0x259746['plugins']['get']('TrackChangesEditing'),_0x1ee1e2=_0x259746['plugins']['has']('LegacyTodoListEditing');function _0x16c7fc(_0x5cd50e){return()=>{const _0x376bba=_0x259746['model']['document']['selection'],_0x57e4a5=_0x259746['commands']['get'](_0x5cd50e);if(_0x57e4a5['value'])return void _0x259746['execute']('paragraph',{});const _0xab2fd4=_0x5cd50e['slice'](0x0,-0x4),_0xf45e56=getBlocksToMarkForListTypeChange(_0x376bba['getSelectedBlocks'](),_0xab2fd4,_0x259746['model']['schema']);_0x259746['model']['change'](()=>{for(const _0x3c7dea of _0xf45e56)_0x429cfa['markBlockFormat'](_0x3c7dea,{'commandName':_0x5cd50e,'commandParams':[{'forceValue':!_0x57e4a5['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0x3c7dea));});};}function _0x22a624(_0x44a12e){return()=>{const _0x5589a6=getBlocksToMarkForIndentChange(_0x259746['model']['document']['selection']['getSelectedBlocks']()),_0x246263=_0x259746['model']['createRange'](_0x259746['model']['createPositionAt'](_0x5589a6[0x0],'before'),_0x259746['model']['createPositionAt'](_0x5589a6[_0x5589a6['length']-0x1],'end'));_0x259746['model']['change'](()=>{_0x429cfa['markBlockFormat'](_0x246263,{'commandName':_0x44a12e,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x5589a6));});};}_0x429cfa['enableCommand']('numberedList',_0x16c7fc('numberedList')),_0x429cfa['enableCommand']('bulletedList',_0x16c7fc('bulletedList')),_0x1ee1e2&&_0x429cfa['enableCommand']('todoList',_0x16c7fc('todoList')),_0x429cfa['enableCommand']('indentList',_0x22a624('indentList')),_0x429cfa['enableCommand']('outdentList',_0x22a624('outdentList')),_0x1ee1e2&&_0x429cfa['enableCommand']('checkTodoList',()=>{const _0x565ef7=_0x259746['commands']['get']('checkTodoList'),_0x4040ee=Array['from'](_0x565ef7['_selectedElements']);_0x4040ee['filter'](_0x2e1f8a=>_0x2e1f8a['getAttribute']('todoListChecked')!=_0x565ef7['value']),_0x259746['model']['change'](()=>{for(const _0x49fcf5 of _0x4040ee)_0x429cfa['markBlockFormat'](_0x49fcf5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x565ef7['value']}]});});}),_0x429cfa['descriptionFactory']['registerElementLabel']('listItem',_0x19b23d=>getTranslation$5(_0x28e75b,'ELEMENT_LIST_ITEM',_0x19b23d)),_0x429cfa['descriptionFactory']['registerDescriptionCallback'](_0x204fc3=>{if('formatBlock'!=_0x204fc3['type']&&'formatInline'!=_0x204fc3['type'])return;const {data:_0x44083f}=_0x204fc3;if(_0x44083f){if('numberedList'==_0x44083f['commandName']||'bulletedList'==_0x44083f['commandName']||'todoList'==_0x44083f['commandName'])switch(_0x44083f['commandName']['replace']('List','')){case'bulleted':return _0x113af7(getTranslation$5(_0x28e75b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x113af7(getTranslation$5(_0x28e75b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x113af7(getTranslation$5(_0x28e75b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x44083f['commandName'])return{'type':'format','content':getTranslation$5(_0x28e75b,'*Indent:*\x20%0',getTranslation$5(_0x28e75b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x44083f['commandName'])return{'type':'format','content':getTranslation$5(_0x28e75b,'*Outdent:*\x20%0',getTranslation$5(_0x28e75b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x44083f['commandName'])return _0x44083f['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x28e75b,'*Check\x20item*')}:{'type':'format','content':getTranslation$5(_0x28e75b,'*Uncheck\x20item*')};}function _0x113af7(_0x3584cc){return{'type':'format','content':getTranslation$5(_0x28e75b,'*Change\x20to:*\x20%0',_0x3584cc)};}});}}function getBlocksToMarkForListTypeChange(_0x1b7048,_0x90f221,_0xb1df5e){let _0x245d25=Array['from'](_0x1b7048)['filter'](_0x13ee6b=>checkCanBecomeListItem(_0x13ee6b,_0xb1df5e));_0x245d25=_0x245d25['filter'](_0xe48f19=>!_0xe48f19['is']('element','listItem')||_0xe48f19['getAttribute']('listType')!=_0x90f221);const _0x50198e=new Set();for(const _0xc4229c of _0x245d25)_0xc4229c['is']('element','listItem')?_0x50198e['add'](getListHead(_0xc4229c)):_0x50198e['add'](_0xc4229c);return Array['from'](_0x50198e);}function checkCanBecomeListItem(_0x46efde,_0x147841){return _0x147841['checkChild'](_0x46efde['parent'],'listItem')&&!_0x147841['isObject'](_0x46efde);}function getBlocksToMarkForIndentChange(_0x5e5283){let _0x3e1503=Array['from'](_0x5e5283);const _0x3dd8ff=_0x3e1503['findIndex'](_0x4bbbf4=>'listItem'!=_0x4bbbf4['name']);return _0x3dd8ff>-0x1&&(_0x3e1503=_0x3e1503['slice'](0x0,_0x3dd8ff)),_0x3e1503;}function getListHead(_0x51d5d0){const _0x4845a4=_0x51d5d0['getAttribute']('listIndent');if(0x0==_0x4845a4)return _0x51d5d0;let _0x5bbf2b=_0x51d5d0;for(;_0x51d5d0['previousSibling']&&_0x51d5d0['previousSibling']['is']('element','listItem');){const _0x4ca813=_0x51d5d0['previousSibling']['getAttribute']('listIndent');if(_0x4ca813==_0x4845a4)_0x5bbf2b=_0x51d5d0['previousSibling'];else{if(_0x4ca813<_0x4845a4)break;}_0x51d5d0=_0x51d5d0['previousSibling'];}return _0x5bbf2b;}function getBlocksAffectedByListTypeChange(_0x4cb50a){const _0x5efaee=[];if(_0x4cb50a['is']('element','listItem')&&_0x4cb50a['getAttribute']('listIndent')>0x0){let _0x3e9163=_0x4cb50a['nextSibling'];for(;_0x3e9163&&'listItem'==_0x3e9163['name']&&_0x3e9163['getAttribute']('listIndent')==_0x4cb50a['getAttribute']('listIndent');)_0x5efaee['push'](_0x3e9163),_0x3e9163=_0x3e9163['nextSibling'];}return _0x5efaee;}function getBlocksAffectedByIndent(_0x535304){const _0x41c202=new Set();for(const _0x53fd25 of _0x535304){let _0x1becc2=_0x53fd25['nextSibling'];for(;_0x1becc2&&_0x1becc2['getAttribute']('listIndent')>_0x53fd25['getAttribute']('listIndent');)_0x41c202['add'](_0x1becc2),_0x1becc2=_0x1becc2['nextSibling'];}return Array['from'](_0x41c202);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1aea59=this['editor']['config']['get']('list.properties'),_0x33fa11=this['editor']['plugins']['get']('TrackChangesEditing');_0x1aea59['styles']&&_0x33fa11['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1aea59['reversed']&&_0x33fa11['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1aea59['startIndex']&&_0x33fa11['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x33fa11['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x330af6,_0xf10fc3={}){const _0x23129c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4105f4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x23129c['markMultiRangeBlockFormat'](_0x4105f4,{'commandName':'listStyle','commandParams':[{'type':_0xf10fc3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb926f1,_0x497639={}){const _0x316c7a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6ade=this['_getSuggestionBlocks'](_0x180736=>_0x180736['is']('element','listItem')&&'numbered'===_0x180736['getAttribute']('listType'));if(_0x1f6ade['length']<0x1)return;const _0x4feef4=_0x1f6ade['map'](_0x37d385=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37d385,'before'),this['editor']['model']['createPositionAt'](_0x37d385,0x0)));this['editor']['model']['change'](()=>{_0x316c7a['markMultiRangeBlockFormat'](_0x4feef4,{'commandName':'listReversed','commandParams':[{'reversed':_0x497639['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3c3e7c,_0x407ab5={}){const _0x776ae3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38a827=this['_getSuggestionBlocks'](_0x53f853=>_0x53f853['is']('element','listItem')&&'numbered'===_0x53f853['getAttribute']('listType'));if(_0x38a827['length']<0x1)return;const _0x4e5dee=_0x38a827['map'](_0x49ce29=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49ce29,'before'),this['editor']['model']['createPositionAt'](_0x49ce29,0x0)));this['editor']['model']['change'](()=>{_0x776ae3['markMultiRangeBlockFormat'](_0x4e5dee,{'commandName':'listStart','commandParams':[{'startIndex':_0x407ab5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d61a4){if('formatBlock'!=_0x3d61a4['type']&&'formatInline'!=_0x3d61a4['type'])return;const _0x4f7843=this['editor']['locale'],{data:_0x258274}=_0x3d61a4;if(!_0x258274)return;let _0x1866aa,_0x16adb9;switch(_0x258274['commandName']){case'listStyle':_0x1866aa='*Change\x20to:*\x20%0',_0x16adb9={'type':'format','content':getTranslation$5(_0x4f7843,_0x1866aa,getTranslation$5(_0x4f7843,this['_getTranslationKeyForListStyle'](_0x258274['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1866aa=_0x258274['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16adb9={'type':'format','content':getTranslation$5(_0x4f7843,_0x1866aa)};break;case'listStart':_0x1866aa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16adb9={'type':'format','content':getTranslation$5(_0x4f7843,_0x1866aa,_0x258274['commandParams'][0x0]['startIndex'])};}return _0x16adb9;}['_getSuggestionBlocksForListStyle'](){const _0x2a0b38=this['editor']['plugins']['get']('LegacyListUtils');let _0xbb043b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xbb043b[0x0]?.['is']('element','listItem')&&_0xbb043b['unshift'](..._0x2a0b38['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xbb043b[_0xbb043b['length']-0x1]?.['is']('element','listItem')&&_0xbb043b['push'](..._0x2a0b38['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xbb043b=[...new Set(_0xbb043b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xbb043b=_0xbb043b['filter'](_0xaf154f=>_0xaf154f['is']('element','listItem'))),_0xbb043b;}['_getSuggestionBlocks'](_0x5908ee){const _0x245fa2=this['editor']['plugins']['get']('LegacyListUtils');let _0x42f424=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5908ee)['map'](_0x5eb748=>{const _0x5632fb=this['editor']['model']['createPositionAt'](_0x5eb748,0x0);return[..._0x245fa2['getSiblingNodes'](_0x5632fb,'backward'),..._0x245fa2['getSiblingNodes'](_0x5632fb,'forward')];})['flat']();return _0x42f424=[...new Set(_0x42f424)],_0x42f424;}['_getTranslationKeyForListStyle'](_0x1900c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1900c8)||'default')['toUpperCase']()+'_LIST_'+_0x1900c8['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0x4fd86a=this['editor'];if(!_0x4fd86a['plugins']['has']('MediaEmbedEditing'))return;const _0x1c475d=_0x4fd86a['plugins']['get']('TrackChangesEditing'),_0x496007=_0x4fd86a['locale'];_0x1c475d['enableCommand']('mediaEmbed'),_0x1c475d['descriptionFactory']['registerElementLabel']('media',_0x48ce79=>getTranslation$5(_0x496007,'ELEMENT_MEDIA',_0x48ce79));}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x3b2398=this['editor'];_0x3b2398['plugins']['has']('MentionEditing')&&_0x3b2398['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x26b2b8=this['editor'];if(!_0x26b2b8['plugins']['has']('MergeFieldsEditing'))return;const _0x2b227b=_0x26b2b8['plugins']['get']('TrackChangesEditing'),_0x334d3b=_0x26b2b8['locale'];_0x2b227b['enableCommand']('insertMergeField'),_0x2b227b['enableCommand']('insertMergeFieldBlock'),_0x2b227b['enableCommand']('insertMergeFieldImage'),_0x2b227b['descriptionFactory']['registerElementLabel']('mergeField',_0x482c0d=>getTranslation$5(_0x334d3b,'ELEMENT_MERGE_FIELD',_0x482c0d)),_0x2b227b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5ade3c=>getTranslation$5(_0x334d3b,'ELEMENT_MERGE_FIELD',_0x5ade3c)),_0x2b227b['descriptionFactory']['registerDescriptionCallback'](_0x3d6355=>{if('insertion'!=_0x3d6355['type']&&'deletion'!=_0x3d6355['type'])return;const _0x20135d=_0x3d6355['getContainedElement']();if(null==_0x20135d)return;const _0x42bcc6=_0x26b2b8['plugins']['get']('MergeFieldsEditing');let _0x42a3c1;switch(_0x42bcc6['getMergeFieldType'](_0x20135d)){case null:return;case'image':{const _0x498623=_0x42bcc6['unwrapAffixes'](_0x20135d['getAttribute']('src'));_0x42a3c1=_0x42bcc6['getLabel'](_0x498623)||_0x498623;break;}default:{const _0x81f2cd=_0x20135d['getAttribute']('id');_0x42a3c1=_0x42bcc6['getLabel'](_0x81f2cd)||_0x81f2cd;break;}}return'insertion'==_0x3d6355['type']?{'type':'insertion','content':getTranslation$5(_0x334d3b,'*Insert:*\x20%0','\x22'+_0x42a3c1+'\x22\x20'+getTranslation$5(_0x334d3b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$5(_0x334d3b,'*Remove:*\x20%0','\x22'+_0x42a3c1+'\x22\x20'+getTranslation$5(_0x334d3b,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x7d5a70=this['editor'],_0x1859f0=_0x7d5a70['plugins']['get']('TrackChangesEditing');_0x7d5a70['plugins']['has']('MultiLevelList')&&(_0x1859f0['enableDefaultAttributesIntegration']('multiLevelList'),_0x1859f0['descriptionFactory']['registerDescriptionCallback'](_0x2d8719=>this['handleDescriptions'](_0x2d8719)));}['handleDescriptions'](_0x1f730c){const _0x5ab02a=this['editor']['locale'],{data:_0x5f4a13}=_0x1f730c,_0x2b05ba={'type':'format','content':''};if(_0x5f4a13&&'listMarkerStyle'==_0x5f4a13['key']){if(!_0x5f4a13['oldValue'])return{'type':'format','content':getTranslation$5(_0x5ab02a,'*Set\x20format:*\x20%0',getTranslation$5(_0x5ab02a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f4a13['newValue']+')'};if(!_0x5f4a13['newValue']){let _0x3b6ce5=_0x1f730c['head'];for(;_0x3b6ce5;){if(_0x3b6ce5['data']&&'listType'==_0x3b6ce5['data']['key']&&_0x3b6ce5['data']['newValue'])return _0x2b05ba;_0x3b6ce5=_0x3b6ce5['next'];}return{'type':'format','content':getTranslation$5(_0x5ab02a,'*Remove\x20format:*\x20%0',getTranslation$5(_0x5ab02a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f4a13['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x104799=this['editor'];if(!_0x104799['plugins']['has']('PageBreakEditing'))return;_0x104799['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x224de1=_0x104799['plugins']['get']('TrackChangesEditing'),_0xa0b126=_0x104799['locale'];_0x224de1['descriptionFactory']['registerElementLabel']('pageBreak',_0xc85361=>getTranslation$5(_0xa0b126,'ELEMENT_PAGE_BREAK',_0xc85361));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x28b4a2=this['editor'];if(!_0x28b4a2['plugins']['has']('Paragraph'))return;const _0x191557=_0x28b4a2['locale'],_0xc0258e=_0x28b4a2['plugins']['get']('TrackChangesEditing');_0xc0258e['descriptionFactory']['registerElementLabel']('paragraph',_0xcc1d40=>getTranslation$5(_0x191557,'ELEMENT_PARAGRAPH',_0xcc1d40)),_0xc0258e['enableDefaultAttributesIntegration']('paragraph'),_0xc0258e['enableCommand']('insertParagraph');const _0x37e48f=_0xc0258e['descriptionFactory'];_0x37e48f['registerDescriptionCallback'](_0x2c6601=>{if('insertion'!==_0x2c6601['type'])return;const {start:_0x32d0de,end:_0xf3a7ee}=_0x2c6601['getFirstRange']();if(!_0x32d0de['isTouching'](_0xf3a7ee)||!_0x32d0de['nodeAfter'])return;const _0x45405d=_0x28b4a2['model']['schema'],_0x557480=_0x32d0de['nodeAfter'];return _0x45405d['isBlock'](_0x557480)&&!_0x45405d['isLimit'](_0x557480)&&_0x45405d['checkChild'](_0x557480,'$text')?{'type':'insertion','content':getTranslation$5(_0x191557,'*Insert:*\x20%0',_0x37e48f['getItemLabel'](_0x557480,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ff285=this['editor'],_0x26e630=_0x2ff285['locale'];_0x2ff285['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca8d94=>{if('formatBlock'!=_0xca8d94['type'])return;const {data:_0x6863dd}=_0xca8d94;return _0x6863dd&&'paragraph'==_0x6863dd['commandName']?{'type':'format','content':getTranslation$5(_0x26e630,'*Change\x20to:*\x20%0',getTranslation$5(_0x26e630,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x35ee41=this['editor'];_0x35ee41['commands']['get']('replaceSource')&&_0x35ee41['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0x536732=this['editor'];if(!_0x536732['plugins']['has']('RemoveFormatEditing'))return;_0x536732['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fa96c=this['editor'];_0x3fa96c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab51b=>{if('formatBlock'!=_0x3ab51b['type']&&'formatInline'!=_0x3ab51b['type'])return;const {data:_0x22d439}=_0x3ab51b;return _0x22d439&&'removeFormat'==_0x22d439['commandName']?{'type':'format','content':getTranslation$5(_0x3fa96c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x3d6204=this['editor'];if(!_0x3d6204['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e00c7=_0x3d6204['plugins']['get']('TrackChangesEditing');_0x1e00c7['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e00c7['enableCommand']('goToNextRestrictedEditingException');const _0x266500=_0x3d6204['plugins']['get']('RestrictedEditingModeEditing');_0x266500['enableCommand']('trackChanges'),_0x266500['enableCommand']('acceptSuggestion'),_0x266500['enableCommand']('discardSuggestion'),_0x266500['enableCommand']('acceptAllSuggestions'),_0x266500['enableCommand']('discardAllSuggestions'),_0x266500['enableCommand']('acceptSelectedSuggestions'),_0x266500['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x468b01=this['editor'];if(!_0x468b01['plugins']['has']('ShiftEnter'))return;const _0x2acfa2=_0x468b01['plugins']['get']('TrackChangesEditing');_0x2acfa2['enableCommand']('shiftEnter'),_0x2acfa2['descriptionFactory']['registerElementLabel']('softBreak',_0x3374d4=>getTranslation$5(_0x468b01['locale'],'ELEMENT_LINE_BREAK',_0x3374d4));}}function getRangesWithAttribute(_0x2f7661,_0x45fbb2,_0x1569fb){const _0x8bd20=[];for(const _0x2284a5 of _0x45fbb2['getItems']())_0x2284a5['hasAttribute'](_0x2f7661)&&_0x8bd20['push'](_0x1569fb['createRangeOn'](_0x2284a5));return _0x8bd20;}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x31db8d=this['editor'],_0xa0edf6=_0x31db8d['plugins']['get']('TrackChangesEditing');_0x31db8d['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xa0edf6['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x30dd20=this['editor'],_0x24f12d=_0x30dd20['model'],_0x1f1c91=_0x30dd20['locale'],_0x4e7ac6=_0x30dd20['plugins']['get']('TrackChangesEditing'),_0x43665e='restrictedEditingException',_0x4df1e5=_0x30dd20['commands']['get'](_0x43665e);_0x4e7ac6['enableCommand'](_0x43665e,(_0x33dd8d,_0x583996={})=>{const _0x38a3d5=_0x24f12d['document']['selection'];if(_0x38a3d5['isCollapsed'])return void _0x33dd8d(_0x583996);const _0xc80a89=void 0x0!==_0x583996['forceValue']?_0x583996['forceValue']:!_0x4df1e5['value'];_0x24f12d['change'](()=>{const _0x9b0c2b=Array['from'](_0x38a3d5['getRanges']());for(const _0x342106 of _0x9b0c2b){const _0x1656db=_0xc80a89?[_0x342106]:getRangesWithAttribute(_0x43665e,_0x342106,_0x24f12d);for(const _0x5c5de5 of _0x1656db)_0x4e7ac6['markInlineFormat'](_0x5c5de5,{'commandName':_0x43665e,'commandParams':[{'forceValue':_0xc80a89}]});}});}),_0x4e7ac6['descriptionFactory']['registerDescriptionCallback'](_0x47b44e=>{if('formatBlock'!=_0x47b44e['type']&&'formatInline'!=_0x47b44e['type'])return;const {data:_0x16f9ed}=_0x47b44e;return _0x16f9ed&&_0x16f9ed['commandName']==_0x43665e?_0x16f9ed['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x1f1c91,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$5(_0x1f1c91,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x454e2c=this['editor'],_0x409744=_0x454e2c['locale'],_0x3895c5=_0x454e2c['plugins']['get']('TrackChangesEditing'),_0x5eef99='restrictedEditingExceptionBlock',_0x5d0c7a=this['editor']['commands']['get'](_0x5eef99);_0x3895c5['enableCommand'](_0x5eef99,(_0x359268,_0x33b323={})=>{const _0x244810=this['editor']['model']['document']['selection'],_0x45b738=_0x33b323&&void 0x0!==_0x33b323['forceValue']?_0x33b323['forceValue']:!_0x5d0c7a['value'];let _0x44d657=[];if(_0x45b738){const _0x41ee2a=Array['from'](_0x244810['getSelectedBlocks']())['filter'](_0x342134=>isInBlockException(_0x342134)||checkCanBeWrapped(_0x342134,this['editor']['model']['schema']));_0x44d657=getRangesOfBlockGroups(_0x41ee2a,_0x454e2c['model']);}else{const _0x2f9408=Array['from'](_0x244810['getSelectedBlocks']())['map'](_0x1f2ebd=>findExceptionContentBlock(_0x1f2ebd))['filter'](_0x3d09ae=>!!_0x3d09ae);_0x44d657=getRangesOfBlockGroups(_0x2f9408,_0x454e2c['model']);}_0x454e2c['model']['change'](()=>{for(const _0x3d8664 of _0x44d657)_0x3895c5['markBlockFormat'](_0x3d8664,{'commandName':_0x5eef99,'commandParams':[{'forceValue':_0x45b738}]});});}),_0x3895c5['descriptionFactory']['registerDescriptionCallback'](_0x40a269=>{const {data:_0x2d41c4}=_0x40a269;if(_0x2d41c4&&_0x2d41c4['commandName']==_0x5eef99)return _0x2d41c4['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x409744,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$5(_0x409744,'FORMAT_RESTRICTED_DISABLED')};});}}function checkCanBeWrapped(_0x59f6ed,_0x2cfbbf){const _0x200330=_0x2cfbbf['createContext'](_0x59f6ed['parent']);return!!_0x2cfbbf['checkChild'](_0x200330,'restrictedEditingException')&&!!_0x2cfbbf['checkChild'](_0x200330['push']('restrictedEditingException'),_0x59f6ed);}function isInBlockException(_0x2ce53f){return!!_0x2ce53f['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}function findExceptionContentBlock(_0x3b0ec3){let _0x60ec6d=_0x3b0ec3;for(;_0x60ec6d['parent'];){if('restrictedEditingException'==_0x60ec6d['parent']['name'])return _0x60ec6d;_0x60ec6d=_0x60ec6d['parent'];}return null;}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x1c8fe2=this['editor'];if(!_0x1c8fe2['plugins']['has']('Style')||!_0x1c8fe2['plugins']['has']('DataSchema'))return;const _0x1dc6eb=_0x1c8fe2['plugins']['get']('TrackChangesEditing'),_0x5edd57=_0x1c8fe2['locale'],_0x127e1a=_0x1c8fe2['config']['get']('style')||{},_0x4054fd=_0x1c8fe2['plugins']['get']('GeneralHtmlSupport'),_0x16ebb1=_0x1c8fe2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1c8fe2['plugins']['get']('DataSchema'),_0x127e1a['definitions']);_0x1dc6eb['enableDefaultAttributesIntegration']('style');const _0x8b64e1=new Set();for(const _0x321122 of _0x16ebb1['block']){const _0x464dee=_0x4054fd['getGhsAttributeNameForElement'](_0x321122['element']);_0x8b64e1['add'](_0x464dee);}const _0x54e525=new Set();for(const _0x158b1b of _0x16ebb1['inline']){const _0x50c625=_0x4054fd['getGhsAttributeNameForElement'](_0x158b1b['element']);_0x54e525['add'](_0x50c625);for(const _0x4fa558 of _0x158b1b['ghsAttributes'])_0x54e525['add'](_0x4fa558);}for(const _0x5bbc58 of _0x8b64e1)_0x1dc6eb['descriptionFactory']['registerAttributeLabel'](_0x5bbc58,getTranslation$5(_0x5edd57,'FORMAT_STYLE'));for(const _0xa14406 of _0x54e525)_0x1dc6eb['descriptionFactory']['registerAttributeLabel'](_0xa14406,getTranslation$5(_0x5edd57,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa56870=this['editor'],_0x3fd151=_0xa56870['locale'];_0xa56870['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27960d=>{if('formatBlock'!=_0x27960d['type']&&'formatInline'!=_0x27960d['type'])return;const {data:_0x1d4889}=_0x27960d;return _0x1d4889&&'style'===_0x1d4889['commandName']?_0x1d4889['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$5(_0x3fd151,'*Set\x20format:*\x20%0',_0x1d4889['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$5(_0x3fd151,'*Remove\x20format:*\x20%0',_0x1d4889['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ee57a){super(_0x3ee57a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x49016a=this['editor'],_0x38fc45=_0x49016a['model']['document']['selection'];if(!_0x49016a['plugins']['has']('TableEditing'))return;const _0x358954=_0x49016a['locale'],_0x37e42e=_0x49016a['plugins']['get']('TrackChangesEditing'),_0x4e70bf=_0x49016a['plugins']['get']('TableUtils');_0x37e42e['descriptionFactory']['registerElementLabel']('table',_0x5162cd=>getTranslation$5(_0x358954,'ELEMENT_TABLE',_0x5162cd)),this['_setupColumnsRowsFixing'](),_0x37e42e['enableCommand']('insertTable'),_0x37e42e['enableCommand']('selectTableRow'),_0x37e42e['enableCommand']('selectTableColumn');for(const _0x174dc5 of['insertTableRowAbove','insertTableRowBelow']){const _0x3e1890=_0x49016a['commands']['get'](_0x174dc5);_0x37e42e['enableCommand'](_0x174dc5,_0x2c053e=>{_0x49016a['model']['change'](_0x42ed2b=>{_0x2c053e();const _0x206f2e='above'===_0x3e1890['order'],_0x4bb1a1=_0x4e70bf['getSelectionAffectedTableCells'](_0x38fc45),_0x483f26=_0x4e70bf['getRowIndexes'](_0x4bb1a1),_0x17e7fc=_0x206f2e?_0x483f26['first']-0x1:_0x483f26['last']+0x1,_0x2a51dd=_0x4bb1a1[0x0]['findAncestor']('table'),_0x2b7e0c=_0x4e70bf['createTableWalker'](_0x2a51dd,{'startRow':_0x17e7fc,'endRow':_0x17e7fc}),_0x921924=Array['from'](_0x2b7e0c)['map'](_0x4cb0bb=>_0x42ed2b['createRangeOn'](_0x4cb0bb['cell']));_0x37e42e['markMultiRangeInsertion'](_0x921924,'tableRow');});});}for(const _0x4a4368 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c2036=_0x49016a['commands']['get'](_0x4a4368);_0x37e42e['enableCommand'](_0x4a4368,_0x356771=>{_0x49016a['model']['change'](_0x369160=>{_0x356771();const _0x4afb67='left'===_0x1c2036['order'],_0x1e063a=_0x4e70bf['getSelectionAffectedTableCells'](_0x38fc45),_0xc06580=_0x4e70bf['getColumnIndexes'](_0x1e063a),_0x52d599=_0x4afb67?_0xc06580['first']-0x1:_0xc06580['last']+0x1,_0x4ac129=_0x1e063a[0x0]['findAncestor']('table'),_0x12c321=_0x4e70bf['createTableWalker'](_0x4ac129,{'startRow':0x0,'column':_0x52d599,'includeAllSlots':!0x1}),_0x6c8a10=Array['from'](_0x12c321)['map'](_0x529845=>_0x369160['createRangeOn'](_0x529845['cell']));_0x37e42e['markMultiRangeInsertion'](_0x6c8a10,'tableColumn');});});}for(const _0x479954 of['removeTableRow','removeTableColumn']){const _0x3bc82f=_0x479954['substr'](0xb),_0x4d3762=_0x3bc82f['toLowerCase'](),_0x372bef=_0x4d3762['substr'](0x0,0x3)+'span',_0x4c4db7='table'+_0x3bc82f,_0x218faa='min'+_0x3bc82f,_0x27d529='max'+_0x3bc82f;_0x37e42e['enableCommand'](_0x479954,()=>{_0x49016a['model']['change'](_0x16907c=>{const _0x3a814a=_0x4e70bf['getSelectionAffectedTableCells'](_0x38fc45),_0x555ff7=_0x3a814a[0x0]['findAncestor']('table');let _0x44ae1c;if('removeTableRow'==_0x479954){const _0x37c116=_0x4e70bf['getRowIndexes'](_0x3a814a);_0x44ae1c={'startRow':_0x37c116['first'],'endRow':_0x37c116['last'],'includeAllSlots':!0x0};}else{const _0xcd6e93=_0x4e70bf['getColumnIndexes'](_0x3a814a);_0x44ae1c={'startColumn':_0xcd6e93['first'],'endColumn':_0xcd6e93['last'],'includeAllSlots':!0x0};}const _0x400dc2=_0x4e70bf['createTableWalker'](_0x555ff7,_0x44ae1c),_0xeae020=Array['from'](_0x400dc2)['map'](({cell:_0x2f954a})=>_0x2f954a),_0x15fae3=uniqueValues(_0xeae020['filter'](_0x42adef=>_0x42adef['hasAttribute'](_0x372bef))),_0x101bce=uniqueValues(_0xeae020['filter'](_0x3b7730=>!_0x3b7730['hasAttribute'](_0x372bef)))['map'](_0x5039a0=>_0x16907c['createRangeOn'](_0x5039a0)),_0x544c4f=_0x37e42e['markMultiRangeDeletion'](_0x101bce,_0x4c4db7);if(_0x544c4f&&('tableRow'==_0x544c4f['subType']||'tableColumn'==_0x544c4f['subType'])){const _0x3c90a2=this['_getSuggestionCoords'](_0x544c4f);for(const _0x1f52f5 of _0x15fae3){const _0x4f385c=_0x16907c['createRangeOn'](_0x1f52f5),_0x136908=_0x4e70bf['getCellLocation'](_0x1f52f5),_0x4cc653=_0x1f52f5['getAttribute'](_0x372bef)-0x1,_0x5ec14e=_0x3c90a2[_0x218faa],_0x561343=_0x3c90a2[_0x27d529];_0x5ec14e<=_0x136908[_0x4d3762]&&_0x136908[_0x4d3762]+_0x4cc653<=_0x561343&&_0x544c4f['addRange'](_0x4f385c);}}});});}function _0x3776d3(_0x633fa2){const _0x29903f=Array['from'](_0x38fc45['getRanges']())['map'](_0x682e09=>ModelLiveRange['fromRange'](_0x682e09));_0x49016a['model']['change'](_0x21f47c=>{const _0x81d7c=_0x21f47c['batch'];_0x633fa2=_0x633fa2['filter'](_0x2ba9d2=>'$graveyard'!=_0x2ba9d2['root']['rootName']),_0x21f47c['setSelection'](_0x633fa2),_0x49016a['commands']['get']('removeTableRow')['refresh'](),_0x49016a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x49016a['model']['enqueueChange'](()=>{_0x49016a['model']['enqueueChange'](_0x81d7c,_0x1fc3e6=>{const _0x186155=_0x29903f['filter'](_0x1fff56=>'$graveyard'!=_0x1fff56['root']['rootName']);_0x186155['length']>0x0&&_0x1fc3e6['setSelection'](_0x186155);for(const _0x4bd3d9 of _0x29903f)_0x4bd3d9['detach']();});});});}function _0x5c235d(_0x12f6e1){_0x49016a['model']['change'](_0x2c8b8f=>{const _0x417e22=Array['from'](_0x38fc45['getRanges']())['map'](_0x545a56=>ModelLiveRange['fromRange'](_0x545a56)),_0x119de0=[];for(const _0x5c3569 of _0x12f6e1)for(const _0x4b4ea0 of _0x5c3569['getItems']({'shallow':!0x0}))_0x119de0['push'](_0x4b4ea0);for(const _0x3739f0 of _0x119de0)'$graveyard'!=_0x3739f0['root']['rootName']&&(_0x2c8b8f['setSelection'](_0x2c8b8f['createPositionAt'](_0x3739f0,0x0)),_0x49016a['commands']['get']('removeTableColumn')['refresh'](),_0x49016a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x136a67=_0x417e22['filter'](_0x199416=>'$graveyard'!=_0x199416['root']['rootName']);_0x136a67['length']>0x0&&_0x2c8b8f['setSelection'](_0x136a67);for(const _0x3843d4 of _0x417e22)_0x3843d4['detach']();});}function _0x492900(_0x5cc360,_0x24d460){return _0x24d460['every'](_0x26f9fc=>_0x5cc360['some'](_0x583b34=>_0x583b34['end']['isEqual'](_0x26f9fc['start'])||_0x26f9fc['end']['isEqual'](_0x583b34['start'])));}function _0x27ac88(_0xb37d88,_0x4ee220){return!_0xb37d88['some'](_0x3c0600=>_0x4ee220['some'](_0xe0585=>_0x3c0600['isIntersecting'](_0xe0585)))&&_0xb37d88['some'](_0x2c563c=>_0x4ee220['some'](_0x264102=>_0x2c563c['end']['isTouching'](_0x264102['start'])));}_0x37e42e['descriptionFactory']['registerDescriptionCallback'](_0x4d3fb5=>{if('insertion'!=_0x4d3fb5['type']&&'deletion'!=_0x4d3fb5['type'])return;const _0x1d4670=_0x4d3fb5['getContainedElement']();if(null!=_0x1d4670&&_0x1d4670['is']('element','table')){if('insertion'==_0x4d3fb5['type']){const _0x1901a4=_0x4d3fb5['getItems']()['filter'](_0x48cf60=>_0x48cf60['is']('$textProxy'))['map'](_0x567433=>_0x567433['data']);if(_0x1901a4['length'])return{'type':'insertion','content':getTranslation$5(_0x358954,'*Insert:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1901a4['join']('\x20')+'\x22'))};}if('deletion'==_0x4d3fb5['type']){const _0x1fb6f5=_0x4d3fb5['getItems']()['filter'](_0xce0a9c=>_0xce0a9c['is']('$textProxy'))['map'](_0x501a0c=>_0x501a0c['data']);if(_0x1fb6f5['length'])return{'type':'deletion','content':getTranslation$5(_0x358954,'*Remove:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb6f5['join']('\x20')+'\x22'))};}}}),_0x37e42e['descriptionFactory']['registerDescriptionCallback'](_0x20d834=>{if('tableRow'==_0x20d834['subType']){const _0x51de89=_0x20d834['getItems']()['filter'](_0x2cdf54=>_0x2cdf54['is']('$textProxy'))['map'](_0x288f7b=>_0x288f7b['data']),_0x5aa9ae=this['_getSuggestionCoords'](_0x20d834),_0x495d29=_0x5aa9ae['maxRow']-_0x5aa9ae['minRow']+0x1;if('insertion'==_0x20d834['type'])return _0x51de89['length']?{'type':'insertion','content':getTranslation$5(_0x358954,'*Insert:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x495d29,'\x22'+_0x51de89['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$5(_0x358954,'*Insert:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_ROW',_0x495d29))};if('deletion'==_0x20d834['type'])return _0x51de89['length']?{'type':'deletion','content':getTranslation$5(_0x358954,'*Remove:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x495d29,'\x22'+_0x51de89['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$5(_0x358954,'*Remove:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_ROW',_0x495d29))};}if('tableColumn'==_0x20d834['subType']){const _0x5ef9a5=_0x20d834['getItems']()['filter'](_0x248e63=>_0x248e63['is']('$textProxy'))['map'](_0x3250b3=>_0x3250b3['data']),_0x5d4666=this['_getSuggestionCoords'](_0x20d834),_0x323a0b=_0x5d4666['maxColumn']-_0x5d4666['minColumn']+0x1;if('insertion'==_0x20d834['type'])return _0x5ef9a5['length']?{'type':'insertion','content':getTranslation$5(_0x358954,'*Insert:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x323a0b,'\x22'+_0x5ef9a5['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$5(_0x358954,'*Insert:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_COLUMN',_0x323a0b))};if('deletion'==_0x20d834['type'])return _0x5ef9a5['length']?{'type':'deletion','content':getTranslation$5(_0x358954,'*Remove:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x323a0b,'\x22'+_0x5ef9a5['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$5(_0x358954,'*Remove:*\x20%0',getTranslation$5(_0x358954,'ELEMENT_TABLE_COLUMN',_0x323a0b))};}}),_0x37e42e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3776d3),_0x37e42e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3776d3),_0x37e42e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5c235d),_0x37e42e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5c235d),_0x37e42e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x492900),_0x37e42e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x492900),_0x37e42e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x27ac88),_0x37e42e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x27ac88);}['_acceptFormatSuggestionCallbackFactory'](){const _0x240cbb=this['editor'],_0x42a90c=_0x240cbb['model']['document']['selection'];return(_0x26205b,_0x32cd6a)=>{_0x240cbb['model']['change'](_0x464c23=>{const {commandName:_0x1e932a,commandParams:_0x474296}=_0x32cd6a;let _0x5a00db=_0x26205b[0x0]['end']['nodeBefore'];_0x474296&&_0x474296[0x0]&&!0x1===_0x474296[0x0]['forceValue']&&(_0x5a00db=_0x26205b[0x0]['start']['nodeAfter']);const _0x4a5050=_0x464c23['createRangeIn'](_0x5a00db);if('$graveyard'==_0x4a5050['root']['rootName'])return;const _0x4156bf=Array['from'](_0x42a90c['getRanges']())['map'](_0x2c0007=>ModelLiveRange['fromRange'](_0x2c0007));_0x464c23['setSelection'](_0x4a5050),_0x240cbb['commands']['get'](_0x1e932a)['refresh'](),_0x474296['push']({'forceDefaultExecution':!0x0}),_0x240cbb['execute'](_0x1e932a,..._0x474296);const _0x3be9c9=_0x4156bf['filter'](_0x1fd80e=>'$graveyard'!=_0x1fd80e['root']['rootName']);_0x3be9c9['length']>0x0&&_0x464c23['setSelection'](_0x3be9c9);for(const _0x4c5a2d of _0x4156bf)_0x4c5a2d['detach']();});};}['_getCoordsForCells'](_0x5e4e34){const _0x3b5857=this['editor']['plugins']['get']('TableUtils');let _0x20b2c2=Number['MAX_SAFE_INTEGER'],_0x5830ac=Number['MIN_SAFE_INTEGER'],_0x35c065=Number['MAX_SAFE_INTEGER'],_0xb06bb=Number['MIN_SAFE_INTEGER'];for(const _0x3d5063 of _0x5e4e34){if('$graveyard'==_0x3d5063['root']['rootName'])continue;const {row:_0x459199,column:_0x25e14e}=_0x3b5857['getCellLocation'](_0x3d5063),_0x2911d1=_0x3d5063['hasAttribute']('rowspan')?_0x3d5063['getAttribute']('rowspan')-0x1:0x0,_0x850a14=_0x3d5063['hasAttribute']('colspan')?_0x3d5063['getAttribute']('colspan')-0x1:0x0;_0x20b2c2=_0x459199<_0x20b2c2?_0x459199:_0x20b2c2,_0x5830ac=_0x459199+_0x2911d1>_0x5830ac?_0x459199+_0x2911d1:_0x5830ac,_0x35c065=_0x25e14e<_0x35c065?_0x25e14e:_0x35c065,_0xb06bb=_0x25e14e+_0x850a14>_0xb06bb?_0x25e14e+_0x850a14:_0xb06bb;}return{'minRow':_0x20b2c2,'maxRow':_0x5830ac,'minColumn':_0x35c065,'maxColumn':_0xb06bb};}['_setupColumnsRowsFixing'](){const _0x40dd28=this['editor'],_0x404766=_0x40dd28['plugins']['get']('TrackChangesEditing'),_0x13fa52=_0x40dd28['plugins']['get']('TableUtils');_0x40dd28['model']['document']['on']('change:data',()=>{const _0xfff01d=Array['from'](_0x40dd28['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xcbd695,data:_0x46e9fe}of _0xfff01d){const {group:_0x57f6aa,id:_0x337e20,subType:_0x2315c5}=splitSuggestionMarkerName(_0xcbd695);if('suggestion'!=_0x57f6aa)continue;if(null!=_0x46e9fe['oldRange'])continue;const _0x2eb817=_0x404766['getSuggestion'](_0x337e20);this['_tablePostFixingSubtypes']['includes'](_0x2315c5)&&this['_tableSuggestions']['add'](_0x2eb817);}},{'priority':'low'});const _0x5cf0d8=(_0x58eb0e,_0x4f9966)=>{let _0x49087f=!0x1;const _0x2fd6b8=_0x4f9966['createRangeOn'](_0x58eb0e),_0x555ad2=_0x58eb0e['findAncestor']('table'),_0x4aae20=_0x13fa52['getCellLocation'](_0x58eb0e);for(const _0xc5ce2b of this['_tableSuggestions']){const _0x3ada3f=_0xc5ce2b['subType'],_0x47d5d1=_0x3ada3f['startsWith']('tablePaste'),_0x619f03=_0x3ada3f['substr'](_0x47d5d1?0xa:0x5),_0x3ea5a4=_0x619f03['toLowerCase'](),_0x326778=_0x3ea5a4['substr'](0x0,0x3)+'span',_0x169bed='min'+_0x619f03,_0x7754e0='max'+_0x619f03;if(!_0xc5ce2b['isInContent'])continue;if(_0x555ad2!=_0xc5ce2b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc5ce2b['isIntersectingWithRange'](_0x2fd6b8))continue;const _0x3ab86a=_0x58eb0e['hasAttribute'](_0x326778)?_0x58eb0e['getAttribute'](_0x326778)-0x1:0x0,_0x363a25=this['_getSuggestionCoords'](_0xc5ce2b),_0x417298=_0x363a25[_0x169bed],_0x1ef4c5=_0x363a25[_0x7754e0];_0x417298<=_0x4aae20[_0x3ea5a4]&&_0x4aae20[_0x3ea5a4]+_0x3ab86a<=_0x1ef4c5&&(_0xc5ce2b['addRange'](_0x2fd6b8),_0x49087f=!0x0);}return _0x49087f;};_0x40dd28['model']['document']['registerPostFixer'](_0x2caa0d=>{let _0x3fbb6e=!0x1;for(const _0x2ce991 of _0x40dd28['model']['document']['differ']['getChanges']())if('insert'==_0x2ce991['type']){if('tableRow'==_0x2ce991['name']){for(const _0x293fcc of _0x2ce991['position']['nodeAfter']['getChildren']())_0x3fbb6e=_0x3fbb6e||_0x5cf0d8(_0x293fcc,_0x2caa0d);}else'tableCell'==_0x2ce991['name']&&(_0x3fbb6e=_0x3fbb6e||_0x5cf0d8(_0x2ce991['position']['nodeAfter'],_0x2caa0d));}return _0x3fbb6e;});}['_getSuggestionCoords'](_0x1540f5){return this['_getCoordsForCells'](_0x1540f5['getRanges']()['map'](_0x221e5f=>_0x221e5f['start']['nodeAfter']));}}function uniqueValues(_0x31fc9d){return Array['from'](new Set(_0x31fc9d)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x54b651=this['editor'],_0x1da304=_0x54b651['model']['document']['selection'],_0x183155=_0x54b651['locale'];if(!_0x54b651['plugins']['has']('TableEditing'))return;const _0x4000bf=_0x54b651['plugins']['get']('TrackChangesEditing'),_0xe74adb=_0x54b651['plugins']['get']('TableUtils'),_0x56a449=_0x54b651['plugins']['get'](TrackChangesTable);_0x56a449['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4000bf['enableCommand']('mergeTableCells',()=>{const _0x3f31ef=_0xe74adb['getSelectionAffectedTableCells'](_0x54b651['model']['document']['selection']);_0x54b651['model']['change'](()=>{_0x4000bf['markMultiRangeBlockFormat'](_0x3f31ef,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x54b651['commands']['get']('mergeTableCells')['on']('execute',(_0x119d09,_0x2770dd)=>{_0x54b651['commands']['get']('trackChanges')['value']&&(_0x2770dd['length']>0x0&&_0x2770dd[_0x2770dd['length']-0x1]&&_0x2770dd[_0x2770dd['length']-0x1]['forceDefaultExecution']||_0x4000bf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x119d09['stop']());},{'priority':'highest'});for(const _0x53f9ea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xd12a85=_0x54b651['commands']['get'](_0x53f9ea);_0x4000bf['enableCommand'](_0x53f9ea,()=>{const _0x5d98f1=_0x54b651['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4592ff=>_0x4592ff['is']('element','tableCell')),_0x21e190=_0xd12a85['value'];_0x54b651['model']['change'](()=>{_0x4000bf['markMultiRangeBlockFormat']([_0x5d98f1,_0x21e190],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x38439f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x492679=_0x54b651['commands']['get'](_0x38439f);_0x4000bf['enableCommand'](_0x38439f,()=>{const _0x1d06f3=_0xe74adb['getSelectionAffectedTableCells'](_0x54b651['model']['document']['selection'])[0x0],_0x2b1d01=_0x1d06f3['findAncestor']('table'),{column:_0x444f03,row:_0x515bd6}=_0xe74adb['getCellLocation'](_0x1d06f3);let _0x11324e=[];if('horizontally'==_0x492679['direction']){const _0x2b529d=_0xe74adb['createTableWalker'](_0x2b1d01,{'startRow':_0x515bd6,'endRow':_0x515bd6,'includeAllSlots':!0x0});_0x11324e=Array['from'](_0x2b529d)['map'](_0x29672b=>_0x29672b['cell']);}else{const _0x468744=_0xe74adb['createTableWalker'](_0x2b1d01,{'column':_0x444f03,'includeAllSlots':!0x0});_0x11324e=Array['from'](_0x468744)['map'](_0x573fcd=>_0x573fcd['cell']);}_0x54b651['model']['change'](_0x1db22a=>{_0x4000bf['markBlockFormat'](_0x1db22a['createRangeOn'](_0x1d06f3),{'commandName':_0x38439f,'commandParams':[]},_0x11324e,_0x38439f);});});}_0x4000bf['descriptionFactory']['registerDescriptionCallback'](_0x394b15=>{if('formatBlock'!=_0x394b15['type']&&'formatInline'!=_0x394b15['type'])return;const {data:_0x2deff0}=_0x394b15;return _0x2deff0&&'mergeTableCells'==_0x2deff0['commandName']?{'type':'format','content':getTranslation$5(_0x183155,'*Merge\x20cells*')}:void 0x0;}),_0x4000bf['descriptionFactory']['registerDescriptionCallback'](_0x11566d=>{if('formatBlock'!=_0x11566d['type']&&'formatInline'!=_0x11566d['type'])return;const {data:_0x838f1c}=_0x11566d;return _0x838f1c?'splitTableCellVertically'==_0x838f1c['commandName']?{'type':'format','content':getTranslation$5(_0x183155,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x838f1c['commandName']?{'type':'format','content':getTranslation$5(_0x183155,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4745a7=_0x56a449['_acceptFormatSuggestionCallbackFactory']();for(const _0x38d569 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4000bf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38d569,'accept',_0x4745a7);for(const _0x2990ce of['splitTableCellVertically','splitTableCellHorizontally'])_0x4000bf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2990ce,'accept',_0x4745a7);_0x4000bf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5e10e5=>{_0x54b651['model']['change'](_0x2decf8=>{const _0x4276f1=Array['from'](_0x1da304['getRanges']())['map'](_0x122f35=>ModelLiveRange['fromRange'](_0x122f35));_0x2decf8['setSelection'](_0x5e10e5),_0x54b651['commands']['get']('mergeTableCells')['refresh'](),_0x54b651['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x350f3a=_0x4276f1['filter'](_0xa5c5b0=>'$graveyard'!=_0xa5c5b0['root']['rootName']);_0x350f3a['length']>0x0&&_0x2decf8['setSelection'](_0x350f3a);for(const _0x4e558d of _0x4276f1)_0x4e558d['detach']();});});for(const _0x5ca558 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x103ddd=_0x54b651['commands']['get'](_0x5ca558);_0x103ddd['on']('set:isEnabled',(_0x47af50,_0x2251e5,_0x2ab211)=>{if(_0x2ab211){const _0x2e9eaf=_0x54b651['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x307bd2=>_0x307bd2['is']('element','tableCell'));this['_areMergableCells'](_0x103ddd['value'],_0x2e9eaf)||(_0x47af50['return']=!0x1,_0x47af50['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5b6c2e=this['editor']['commands']['get']('mergeTableCells'),_0x453240=this['editor']['plugins']['get']('TableUtils');if(!_0x5b6c2e['isEnabled'])return!0x1;const _0x4f466c=_0x453240['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x130a53 of _0x4f466c)for(const _0xcd5c0 of _0x4f466c)if(_0x130a53!=_0xcd5c0&&!this['_areMergableCells'](_0x130a53,_0xcd5c0))return!0x1;return!0x0;}['_areMergableCells'](_0x4cdfc8,_0x24b728){const _0x1e9e63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x558791=this['editor']['model']['createRangeOn'](_0x4cdfc8),_0x1c07f5=this['editor']['model']['createRangeOn'](_0x24b728),_0x1cc0b3=new Set(),_0x645c4c=new Set();for(const _0x1fe542 of _0x1e9e63['getSuggestions']())if(('insertion'==_0x1fe542['type']||'deletion'==_0x1fe542['type']||'mergeTableCells'==_0x1fe542['subType'])&&_0x1fe542['isInContent']){for(const _0x2b0657 of _0x1fe542['getRanges']())_0x2b0657['containsRange'](_0x558791,!0x0)&&_0x1cc0b3['add'](_0x1fe542['type']+':'+_0x1fe542['author']['id']),_0x2b0657['containsRange'](_0x1c07f5,!0x0)&&_0x645c4c['add'](_0x1fe542['type']+':'+_0x1fe542['author']['id']);}if(_0x1cc0b3['size']!=_0x645c4c['size'])return!0x1;for(const _0x78daa0 of _0x1cc0b3)if(!_0x645c4c['has'](_0x78daa0))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5ebd14=this['editor'];if(!_0x5ebd14['plugins']['has']('TableEditing'))return;const _0x5d54e6=_0x5ebd14['locale'],_0x3b2eb0=_0x5ebd14['plugins']['get']('TrackChangesEditing');_0x3b2eb0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b2eb0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b2eb0['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$5(_0x5d54e6,'FORMAT_HEADER_ROW')),_0x3b2eb0['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$5(_0x5d54e6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x44fb18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59d8e2=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x44fb18['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x59d8e2),_0x44fb18['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x59d8e2),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5d3d87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x416276=this['editor']['plugins']['get']('TableUtils');function _0x3955eb({showActiveMarker:_0x48c126=!0x0,setDataAttribute:_0x44c697=!0x0}={}){return(_0xf24cbd,_0x58a9b8,_0x59f2c3)=>{const {type:_0x34fdfd,id:_0x3fb0fb}=splitSuggestionMarkerName(_0x58a9b8['markerName']);if(!_0x5d3d87['hasSuggestion'](_0x3fb0fb))return;const _0x55310c=_0x5d3d87['getSuggestion'](_0x3fb0fb),_0x23bb1c=_0x55310c['data'];if('formatBlock'!=_0x55310c['type']||!_0x23bb1c||'setTableColumnHeader'!=_0x23bb1c['commandName'])return;if(_0x58a9b8['item'])return void _0xf24cbd['stop']();if(!_0x59f2c3['consumable']['consume'](_0x58a9b8['markerRange'],_0xf24cbd['name']))return;const _0x1e5067=_0x58a9b8['markerRange']['start']['nodeAfter'],_0x1f07c4=_0x58a9b8['markerRange']['end']['nodeBefore'],_0x4fbd8c=_0x1e5067['parent']['parent'],{column:_0x470de5}=_0x416276['getCellLocation'](_0x1e5067),{column:_0x2c32e4}=_0x416276['getCellLocation'](_0x1f07c4);for(let _0x43245f=_0x470de5;_0x43245f<=_0x2c32e4;_0x43245f++){const _0x5bb117=_0x416276['createTableWalker'](_0x4fbd8c,{'column':_0x43245f,'includeAllSlots':!0x1});for(const _0x57b399 of _0x5bb117){const _0x3c6081=_0x57b399['cell'],_0x275202=_0x59f2c3['mapper']['toViewElement'](_0x3c6081);_0x59f2c3['writer']['addClass']('ck-suggestion-marker-'+_0x34fdfd,_0x275202),_0x44c697&&_0x59f2c3['writer']['setAttribute']('data-suggestion',_0x3fb0fb,_0x275202),_0x59f2c3['mapper']['bindElementToMarker'](_0x275202,_0x58a9b8['markerName']),_0x48c126&&(_0x5d3d87['activeMarkers']['includes'](_0x58a9b8['markerName'])?_0x59f2c3['writer']['addClass']('ck-suggestion-marker--active',_0x275202):_0x59f2c3['writer']['removeClass']('ck-suggestion-marker--active',_0x275202));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3955eb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f8116,_0x38d78b,_0x38c155)=>{_0x38c155['options']['showSuggestionHighlights']&&_0x3955eb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f8116,_0x38d78b,_0x38c155);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46fd6c,_0x10a46b,_0x54e2f0)=>{const {type:_0x37faea,id:_0x9498d8}=splitSuggestionMarkerName(_0x10a46b['markerName']);if(!_0x5d3d87['hasSuggestion'](_0x9498d8))return;const _0x30b44d=_0x5d3d87['getSuggestion'](_0x9498d8),_0x588dbd=_0x30b44d['data'];if('formatBlock'!=_0x30b44d['type']||!_0x588dbd||'setTableColumnHeader'!=_0x588dbd['commandName'])return;const _0x1b5644=_0x54e2f0['mapper']['markerNameToElements'](_0x10a46b['markerName']);if(_0x1b5644){for(const _0x1f6e09 of _0x1b5644)_0x54e2f0['writer']['removeClass']('ck-suggestion-marker-'+_0x37faea,_0x1f6e09),_0x54e2f0['writer']['removeClass']('ck-suggestion-marker--active',_0x1f6e09),_0x54e2f0['writer']['removeAttribute']('data-suggestion',_0x1f6e09),_0x54e2f0['mapper']['unbindElementFromMarkerName'](_0x1f6e09,_0x10a46b['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x18fedb=this['editor'],_0x3bf729=_0x18fedb['locale'];function _0x6ba233(_0x13c976){return{'type':'format','content':getTranslation$5(_0x3bf729,'*Format:*\x20%0',_0x13c976)};}_0x18fedb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575dad=>{if('formatBlock'!=_0x575dad['type'])return;const {data:_0x46d833}=_0x575dad;if(_0x46d833){if('setTableRowHeader'==_0x46d833['commandName']){const _0x3023a9=_0x46d833['commandParams'][0x0]['forceValue'];return _0x6ba233(getTranslation$5(_0x3bf729,_0x3023a9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x46d833['commandName']){const _0x1c539d=_0x46d833['commandParams'][0x0]['forceValue'];return _0x6ba233(getTranslation$5(_0x3bf729,_0x1c539d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x3b2a2c=this['editor'];if(!_0x3b2a2c['plugins']['has']('TableEditing')||!_0x3b2a2c['config']['get']('table.enableFooters'))return;const _0x36efac=_0x3b2a2c['locale'],_0x49a21e=_0x3b2a2c['plugins']['get']('TrackChangesEditing');_0x49a21e['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x49a21e['descriptionFactory']['registerAttributeLabel']('footerRows',getTranslation$5(_0x36efac,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x41dd58=this['editor'],_0x3e24ed=_0x41dd58['locale'],_0xb08bb8=_0x41dd58['plugins']['get']('TrackChangesEditing');function _0x4af2bb(_0x4fcd3c){return{'type':'format','content':''+getTranslation$5(_0x3e24ed,'*Set\x20table\x20type:*\x20%0',_0x4fcd3c)};}_0x41dd58['plugins']['has']('TableLayout')&&(_0xb08bb8['enableCommand']('insertTableLayout'),_0xb08bb8['enableDefaultAttributesIntegration']('tableType'),_0xb08bb8['descriptionFactory']['registerElementLabel'](_0x235f0b=>_0x235f0b['is']('element','table')&&'layout'===_0x235f0b['getAttribute']('tableType'),_0x9d7c60=>getTranslation$5(_0x3e24ed,'ELEMENT_LAYOUT_TABLE',_0x9d7c60)),_0xb08bb8['descriptionFactory']['registerDescriptionCallback'](_0x16f520=>{const {data:_0x3a6bd8}=_0x16f520;if(_0x3a6bd8&&'tableType'==_0x3a6bd8['key'])switch(_0x3a6bd8['newValue']){case'layout':return _0x4af2bb(getTranslation$5(_0x3e24ed,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4af2bb(getTranslation$5(_0x3e24ed,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0xf94d0=>[_0xf94d0,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1af761=this['editor'];if(!_0x1af761['plugins']['has']('TableClipboard'))return;const _0xaabb31=_0x1af761['plugins']['get']('TrackChangesEditing'),_0x4ac31f=_0x1af761['plugins']['get']('TableUtils'),_0x5a8da8=_0x1af761['plugins']['get'](TrackChangesTable),_0x4ce4fa=_0x1af761['plugins']['get']('TableClipboard'),_0x391d2f=_0x1af761['plugins']['get']('TableSelection'),_0x2fd465=_0x1af761['plugins']['get'](ClipboardPipeline);_0x5a8da8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1af761['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1af761['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b501a=null,_0x330066=!0x1;_0x2fd465['on']('contentInsertion',(_0x48e1cc,_0x22a455)=>{_0x330066='paste'===_0x22a455['method'];}),_0x1af761['model']['on']('insertContent',(_0x3f01d5,_0x3d4f3d)=>{if(!_0x330066&&null===_0x391d2f['getSelectedTableCells']())return;const [_0x206982,_0x5086be]=_0x3d4f3d,_0x5f5933=_0x3d4f3d[_0x3d4f3d['length']-0x1];_0x5f5933&&_0x5f5933['forceDefaultExecution']||_0xaabb31['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0x206982,_0x5086be,_0x1af761['model'],_0x4ac31f,_0x4ce4fa)&&(_0x3f01d5['stop'](),_0x5b501a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1af761['model']['change'](()=>{_0x1af761['model']['insertContent'](_0x3d4f3d[0x0],_0x3d4f3d[0x1],_0x3d4f3d[0x2],{'forceDefaultExecution':!0x0});const _0x480727=uid(),{rowInsertionRanges:_0x1d018c,columnInsertionRanges:_0x1ac0d8,insertionRanges:_0x48df54,deletionRanges:_0x3c7ccd,cells:_0x12a325}=_0x5b501a;_0x1d018c['length']&&_0xaabb31['markMultiRangeInsertion'](_0x1d018c,'tablePasteRow',{'tablePasteChainId':_0x480727}),_0x1ac0d8['length']&&_0xaabb31['markMultiRangeInsertion'](_0x1ac0d8,'tablePasteColumn',{'tablePasteChainId':_0x480727}),_0x48df54['length']&&(_0xaabb31['markMultiRangeInsertion'](_0x48df54,'tablePaste',{'tablePasteChainId':_0x480727,'skipNestingCheck':!0x0}),_0x48df54['forEach'](_0x176447=>_0x176447['detach']?.())),_0x3c7ccd['length']&&(_0xaabb31['markMultiRangeDeletion'](_0x3c7ccd,'tablePaste',{'tablePasteChainId':_0x480727,'skipNestingCheck':!0x0}),_0x3c7ccd['forEach'](_0x4982ee=>_0x4982ee['detach']?.()));const _0x5a5a74=_0xaabb31['markMultiRangeBlockFormat'](_0x12a325['map'](({element:_0x2375bb})=>_0x2375bb),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0x480727});if(_0x5a5a74){const _0x2d6606=_0x5a5a74['getMarkers'](),_0x3ade2c=[];for(const {element:_0x36dde0,attributes:_0x2d27b8}of _0x12a325){if(!_0x2d27b8)continue;const _0x1a727c=_0x1af761['model']['createRangeOn'](_0x36dde0),_0x2dc4e1=_0x2d6606['find'](_0x250c90=>_0x250c90['getRange']()['isEqual'](_0x1a727c));_0x2dc4e1&&_0x3ade2c['push']([_0x2dc4e1['name'],_0x2d27b8]);}_0x3ade2c['length']&&_0x5a5a74['setAttribute']('markerAttributes',Object['fromEntries'](_0x3ade2c));}_0x5b501a=null;}));},{'priority':priorities['high']+0xa}),_0x2fd465['on']('contentInsertion',()=>{_0x330066=!0x1;},{'priority':'lowest'}),_0x1af761['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3e3872,_0x3f448c)=>{const [_0x5be4fd,_0x5d516b,,_0x250282]=_0x3f448c;if(!_0x5b501a)return;_0x3e3872['stop']();const _0x1c2dc6=_0x5be4fd['cell'],_0x4d88d7=_0x5d516b,_0x53fd6c=isEmpty(_0x1c2dc6),_0x26274c=isEmpty(_0x4d88d7);_0x3e3872['return']=_0x1c2dc6;let _0x4727ba=null,_0x3fb626=null;if(_0x26274c||_0x53fd6c){if(_0x53fd6c&&!_0x26274c){_0x250282['remove'](_0x1c2dc6['getChild'](0x0));for(const _0x304f3e of Array['from'](_0x4d88d7['getChildren']()))_0x250282['insert'](_0x304f3e,_0x1c2dc6,'end');const _0x49a1c3=_0x5b501a['rowInsertionIndexes']['includes'](_0x5be4fd['row']),_0x5893fe=_0x5b501a['columnInsertionIndexes']['includes'](_0x5be4fd['column']);_0x49a1c3||_0x5893fe||(_0x4727ba=ModelLiveRange['fromRange'](_0x250282['createRangeIn'](_0x1c2dc6)));}else _0x26274c&&!_0x53fd6c&&(_0x3fb626=_0x250282['createRangeIn'](_0x1c2dc6));}else{const _0x14c274=_0x250282['createElement']('tableCellSuggestion'),_0x489ad9=_0x250282['createElement']('tableCellSuggestion');_0x250282['wrap'](_0x250282['createRangeIn'](_0x1c2dc6),_0x489ad9),_0x250282['insert'](_0x14c274,_0x1c2dc6,0x0);for(const _0x6658a6 of Array['from'](_0x4d88d7['getChildren']()))_0x250282['insert'](_0x6658a6,_0x14c274,'end');_0x4727ba=ModelLiveRange['fromRange'](_0x250282['createRangeOn'](_0x14c274)),_0x3fb626=ModelLiveRange['fromRange'](_0x250282['createRangeOn'](_0x489ad9));}const _0x53c56d=Array['from'](_0x4d88d7['getAttributes']())['filter'](([_0x23f302])=>tableCellStyleAttributeNames['includes'](_0x23f302));_0x5b501a['cells']['push']({'element':_0x1c2dc6,'attributes':_0x53c56d['length']?Object['fromEntries'](_0x53c56d):null}),_0x4727ba&&_0x5b501a['insertionRanges']['push'](_0x4727ba),_0x3fb626&&_0x5b501a['deletionRanges']['push'](_0x3fb626);},{'priority':'high'}),_0x4ac31f['on']('insertColumns',(_0x5eb58a,_0x52f02c)=>{const [_0x1b96fe,_0x4bd9c2={}]=_0x52f02c;if(!_0x5b501a)return;const _0x1c4c8c=_0x4bd9c2['at']||0x0,_0x491a99=_0x4bd9c2['columns']||0x1;_0x5b501a['columnInsertionIndexes']=new Array(_0x491a99)['fill'](_0x1c4c8c)['map']((_0x21028e,_0xcd1d95)=>_0x21028e+_0xcd1d95);for(const {cell:_0x541c28}of _0x4ac31f['createTableWalker'](_0x1b96fe,{'startColumn':_0x1c4c8c,'endColumn':_0x1c4c8c+_0x491a99-0x1}))_0x5b501a['columnInsertionRanges']['push'](_0x1af761['model']['createRangeOn'](_0x541c28));},{'priority':'low'}),_0x4ac31f['on']('insertRows',(_0x273cf7,_0x173a5b)=>{const [_0x43d2a9,_0xeab42d={}]=_0x173a5b;if(!_0x5b501a)return;const _0x2a9f30=_0xeab42d['at']||0x0,_0x437f24=_0xeab42d['rows']||0x1;_0x5b501a['rowInsertionIndexes']=new Array(_0x437f24)['fill'](_0x2a9f30)['map']((_0x1807bb,_0x431f38)=>_0x1807bb+_0x431f38);for(const {cell:_0x1b9468}of _0x4ac31f['createTableWalker'](_0x43d2a9,{'startRow':_0x2a9f30,'endRow':_0x2a9f30+_0x437f24-0x1}))_0x5b501a['rowInsertionRanges']['push'](_0x1af761['model']['createRangeOn'](_0x1b9468));},{'priority':'low'}),_0xaabb31['descriptionFactory']['registerDescriptionCallback'](_0xdb263e=>{if(_0xdb263e['subType']&&_0xdb263e['subType']['startsWith']('tablePaste'))return _0xdb263e['previous']?{}:{'type':'insertion','content':getTranslation$5(_0x1af761['locale'],'*Replace\x20table\x20cells*')};});const _0x399945=()=>!0x1;for(const _0x443260 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xaabb31['_suggestionFactory']['registerCustomCallback']('insertion',_0x443260,'join',_0x399945),_0xaabb31['_suggestionFactory']['registerCustomCallback']('deletion',_0x443260,'join',_0x399945),_0xaabb31['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x443260,'join',_0x399945);_0xaabb31['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x399945),_0xaabb31['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4265de,_0x7282dc,_0x209c2f)=>{const _0x45a292=_0x4265de['map'](_0x197d4c=>_0x197d4c['getContainedElement']())['filter'](_0xfa8e3a=>_0xfa8e3a),_0x45e34e=new Map(_0x45a292['map'](_0x66eff3=>[_0x66eff3,null]));if(_0x5b501a){for(const {element:_0xa640ef,attributes:_0x41909b}of _0x5b501a['cells'])_0x41909b&&_0x45e34e['set'](_0xa640ef,_0x41909b);}else{if(_0x209c2f&&_0x209c2f['markerAttributes'])for(const [_0x581e71,_0xc4a494]of Object['entries'](_0x209c2f['markerAttributes'])){const _0x386fe5=_0x1af761['model']['markers']['get'](_0x581e71),_0x4f7201=_0x386fe5?_0x386fe5['getRange']()['getContainedElement']():null;_0x4f7201&&_0x45e34e['set'](_0x4f7201,_0xc4a494);}}_0x1af761['model']['change'](_0x2fa047=>{for(const [_0x5c557d,_0x296bf0]of _0x45e34e)_0x2fa047['setAttributes']({...tableCellStyleAttributesObject,..._0x296bf0},_0x5c557d);});});const _0x58e87a=(_0xe325bc,_0x49b4f1)=>{_0xaabb31['_suggestionFactory']['registerCustomCallback'](_0xe325bc,'tablePaste',_0x49b4f1,(_0x2690e0,_0x2b7856,_0x40c5e2)=>{_0x1af761['model']['change'](_0x5e6fa1=>{const _0x1e2521=[];for(const _0x5494d1 of _0x2690e0){const _0x4ccee5=_0x5494d1['start']['nodeAfter'];_0x4ccee5['is']('element','tableCellSuggestion')&&_0x1e2521['push'](_0x4ccee5);}_0xaabb31['_suggestionFactory']['getSuggestionCallback'](_0xe325bc,null,_0x49b4f1)(_0x2690e0,_0x2b7856,_0x40c5e2);for(const _0x159db0 of _0x1e2521)'$graveyard'!=_0x159db0['root']['rootName']&&_0x5e6fa1['unwrap'](_0x159db0);});});};_0x58e87a('insertion','accept'),_0x58e87a('insertion','discard'),_0x58e87a('deletion','accept'),_0x58e87a('deletion','discard'),_0xaabb31['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x107716=>{const _0x28f279=_0x107716['map'](_0x3193dc=>_0x3193dc['getContainedElement']()),_0x1ab455=_0x28f279[0x0]['findAncestor']('table'),{minRow:_0x44351f,maxRow:_0x5616ca}=_0x5a8da8['_getCoordsForCells'](_0x28f279);_0x4ac31f['removeRows'](_0x1ab455,{'at':_0x44351f,'rows':_0x5616ca-_0x44351f+0x1});}),_0xaabb31['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x48855c=>{const _0x108fc4=_0x48855c['map'](_0x488bf8=>_0x488bf8['getContainedElement']()),_0x115cc3=_0x108fc4[0x0]['findAncestor']('table'),{minColumn:_0x285fd6,maxColumn:_0x115aa1}=_0x5a8da8['_getCoordsForCells'](_0x108fc4);_0x4ac31f['removeColumns'](_0x115cc3,{'at':_0x285fd6,'columns':_0x115aa1-_0x285fd6+0x1});});const _0x48a16b=(_0x515726,_0x4fc185)=>{if(!_0x4fc185['subType']||!_0x4fc185['subType']['startsWith']('tablePaste'))return;const _0x3f936d=_0x4fc185['attributes']['tablePasteChainId'],_0x45b83c=_0xaabb31['getSuggestions']()['filter'](_0x318a6f=>_0x318a6f['isInContent']&&_0x318a6f['attributes']&&_0x318a6f['attributes']['tablePasteChainId']==_0x3f936d);_0x45b83c['length']&&_0x4fc185['getAllAdjacentSuggestions']()['length']!=_0x45b83c['length']&&_0x45b83c['reduce']((_0x363705,_0x363059)=>(_0x363705['next']=_0x363059,_0x363059['previous']=_0x363705,_0x363059));};function _0x13d927(_0x3816c2,_0x37be62=!0x0){const {id:_0x5cfeb8,authorId:_0x2c5aee}=splitSuggestionMarkerName(_0x3816c2['markerName']),_0x2644c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d0460=_0xaabb31['activeMarkers']['includes'](_0x3816c2['markerName']);return _0x2d0460&&_0x2644c2['push']('ck-suggestion-marker--active'),{'classes':_0x2644c2,'attributes':{'data-suggestion':_0x5cfeb8,'data-author-id':_0x2c5aee},'priority':_0x2d0460&&_0x37be62?0xbc2:0xbb8};}_0xaabb31['on']('suggestionLoaded',_0x48a16b,{'priority':'high'}),_0xaabb31['on']('suggestionUnloaded',_0x48a16b,{'priority':'high'}),_0x1af761['model']['document']['registerPostFixer'](()=>{let _0x5657d2=!0x1;const _0x3ee572=Array['from'](_0x1af761['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dfe20,data:_0x44c809}of _0x3ee572){const {group:_0x1ed8ed,type:_0x3644a2,id:_0x13a0cc}=splitSuggestionMarkerName(_0x1dfe20);if('suggestion'!=_0x1ed8ed||'deletion'!=_0x3644a2||_0x44c809['oldRange'])continue;if(!_0xaabb31['hasSuggestion'](_0x13a0cc))continue;const _0xf8d6b9=_0xaabb31['getSuggestion'](_0x13a0cc)['getRanges'](),_0x218079=_0x1af761['plugins']['get']('Users')['me'];for(const _0x476b87 of _0xaabb31['getSuggestions']()){if(!_0x476b87['isInContent']||_0x476b87['author']!=_0x218079)continue;if('formatBlock'!=_0x476b87['type']||'tablePasteCell'!=_0x476b87['subType'])continue;if(_0x476b87['getRanges']()['every'](_0x2963b7=>_0xf8d6b9['some'](_0x65fa37=>_0x65fa37['containsRange'](_0x2963b7,!0x0)))){for(const _0x1d86de of _0x476b87['getAllAdjacentSuggestions']())_0x1d86de['isInContent']&&(_0x1d86de['discard'](),_0x5657d2=!0x0);}}}return _0x5657d2;}),_0x1af761['model']['document']['registerPostFixer'](_0x7ff0b6=>{const _0x253e49=_0x1af761['commands']['get']('redo');if(!_0x253e49||!_0x253e49['_createdBatches']['has'](_0x7ff0b6['batch']))return!0x1;let _0x4990f9=!0x1;const _0x24ef2e=_0x1af761['plugins']['get']('Users')['me'],_0x4169d0=_0x1af761['model']['document']['differ']['getChanges'](),_0x2599dd=Array['from'](_0x1af761['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x10809c,data:_0x3df88f})=>{const {group:_0x2bfdc1,subType:_0x37dc7f,authorId:_0x22791d}=splitSuggestionMarkerName(_0x10809c);return'suggestion'==_0x2bfdc1&&'tablePaste'==_0x37dc7f&&_0x22791d==_0x24ef2e['id']&&!_0x3df88f['oldRange'];});for(const _0x18d134 of _0x4169d0){if('insert'!=_0x18d134['type']||'tableCellSuggestion'!=_0x18d134['name']||0x1!=_0x18d134['length'])continue;const _0x1f9685=_0x7ff0b6['createRange'](_0x18d134['position'],_0x18d134['position']['getShiftedBy'](0x1)),_0x5e4ddb=_0x2599dd['find'](({data:_0x30d314})=>_0x30d314['newRange']['isEqual'](_0x1f9685));if(!_0x5e4ddb){for(const {name:_0x3d919d,data:_0x1c0872}of _0x2599dd)if(_0x1f9685['containsRange'](_0x1c0872['newRange'])){_0x7ff0b6['updateMarker'](_0x3d919d,{'range':_0x1f9685}),_0x4990f9=!0x0;break;}}}return _0x4990f9;}),_0x1af761['model']['document']['registerPostFixer'](_0x1cf331=>{let _0x2f181d=!0x1;const _0x3018f9=_0x1af761['plugins']['get']('Users')['me'],_0x51b965=_0xaabb31['getSuggestions']()['filter'](_0x339f88=>_0x339f88['isInContent']&&_0x339f88['author']==_0x3018f9),_0x5443a3=new Set(),_0x377fa2=new Set();for(const _0x10ed7d of _0x51b965)if('tablePaste'==_0x10ed7d['subType'])for(const _0x3e5819 of _0x10ed7d['getMarkers']()){const _0x164c6f=_0x3e5819['getRange']()['getContainedElement']();if(_0x164c6f){if(_0x164c6f['is']('element','tableCellSuggestion')&&isEmpty(_0x164c6f)){_0x10ed7d['removeMarker'](_0x3e5819['name']),_0x5443a3['add'](_0x164c6f),_0x2f181d=!0x0;const _0x324cee=_0x164c6f['nextSibling'],_0x2f632a=_0x164c6f['previousSibling'],_0x104da0=_0x324cee&&_0x324cee['is']('element','tableCellSuggestion'),_0x5ca8af=_0x2f632a&&_0x2f632a['is']('element','tableCellSuggestion');_0x104da0&&!_0x5443a3['has'](_0x324cee)&&_0x377fa2['add'](_0x324cee),_0x5ca8af&&!_0x5443a3['has'](_0x2f632a)&&_0x377fa2['add'](_0x2f632a);}else _0x164c6f['is']('element','paragraph')&&_0x164c6f['isEmpty']&&(_0x10ed7d['removeMarker'](_0x3e5819['name']),_0x2f181d=!0x0);}}else{if('tablePasteCell'==_0x10ed7d['subType']){if(!_0x10ed7d['attributes']||!_0x10ed7d['attributes']['tablePasteChainId'])continue;const _0x418080=_0x10ed7d['attributes']['markerAttributes'];if(_0x418080&&Object['keys'](_0x418080)['length'])continue;const _0x3c3f30=_0x10ed7d['attributes']['tablePasteChainId'];let _0x178a21=!0x0,_0x4aceb5=!0x0;for(const _0x208bf7 of _0x51b965)if(_0x208bf7['subType']&&_0x208bf7['subType']['startsWith']('tablePaste')){if(!_0x208bf7['attributes']['tablePasteChainId']){_0x4aceb5=!0x1;break;}if(_0x208bf7['id']!=_0x10ed7d['id']&&_0x208bf7['attributes']['tablePasteChainId']==_0x3c3f30){_0x178a21=!0x1;break;}}_0x4aceb5&&_0x178a21&&(_0x10ed7d['removeMarkers'](),_0x2f181d=!0x0);}}for(const _0x3ce3e1 of _0x5443a3)_0x1cf331['remove'](_0x3ce3e1);for(const _0x553ad1 of _0x377fa2)_0x1cf331['unwrap'](_0x553ad1);return _0x2f181d;}),_0x1af761['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x124313=>_0x13d927(_0x124313),'converterPriority':'high'}),_0x1af761['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5ae175,_0x331c9f)=>_0x331c9f['options']['showSuggestionHighlights']?_0x13d927(_0x5ae175,!0x1):null,'converterPriority':'high'});const _0x7101af=_0x1af761['editing']['view'];this['listenTo'](_0x7101af['document'],'clipboardOutput',(_0x14e1d8,_0x527833)=>{const _0x17480a=[];for(const _0x3c8c2c of _0x7101af['createRangeIn'](_0x527833['content'])['getItems']())_0x3c8c2c['is']('element','suggestion-td')&&_0x17480a['push'](_0x3c8c2c);_0x7101af['change'](_0x35ea51=>{for(const _0x3f16c2 of _0x17480a)_0x35ea51['move'](_0x35ea51['createRangeIn'](_0x3f16c2),_0x35ea51['createPositionBefore'](_0x3f16c2)),_0x35ea51['remove'](_0x3f16c2);});});}}function isEmpty(_0x490258){if(_0x490258['isEmpty'])return!0x0;const _0x56b8ea=_0x490258['getChild'](0x0);return _0x56b8ea['is']('element','paragraph')&&_0x56b8ea['isEmpty'];}function isPasteTableIntoTable(_0x25eced,_0x354272,_0x22dbdf,_0x9f491d,_0x2a30ff){if(_0x354272&&!_0x354272['is']('documentSelection'))return!0x1;const _0x34ca80=_0x2a30ff['getTableIfOnlyTableInContent'](_0x25eced,_0x22dbdf);if(!_0x34ca80||!isPlainTable(_0x34ca80,void 0x0,_0x9f491d))return!0x1;const _0x1b2fd7=_0x9f491d['getSelectionAffectedTableCells'](_0x22dbdf['document']['selection']);if(!_0x1b2fd7['length'])return!0x1;const _0x8dccc8=_0x1b2fd7[0x0]['findAncestor']('table'),_0x89d2c3=_0x9f491d['getRowIndexes'](_0x1b2fd7),_0x369413=_0x9f491d['getColumnIndexes'](_0x1b2fd7),_0x3fa877={'startRow':_0x89d2c3['first'],'endRow':_0x89d2c3['last'],'startColumn':_0x369413['first'],'endColumn':_0x369413['last']};return 0x1==_0x1b2fd7['length']&&(_0x3fa877['endRow']+=_0x9f491d['getRows'](_0x34ca80)-0x1,_0x3fa877['endColumn']+=_0x9f491d['getColumns'](_0x34ca80)-0x1),isPlainTable(_0x8dccc8,_0x3fa877,_0x9f491d);}function isPlainTable(_0x487b38,_0x214929={},_0x46136a){for(const {isAnchor:_0x48d0c5,cellHeight:_0x4de4e4,cellWidth:_0x440c5a}of _0x46136a['createTableWalker'](_0x487b38,{'includeAllSlots':!0x0,..._0x214929}))if(!_0x48d0c5||0x1!=_0x4de4e4||0x1!=_0x440c5a)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1bec4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bec4c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1bec4c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1bec4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1bec4c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1bec4c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1bec4c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x238ee5,_0x540713){const _0x1681d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b1734=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbe0e70=_0x540713['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ab207=_0x3b1734['getColumnGroupElement'](_0xbe0e70);let _0x129328=_0x1ab207?_0x3b1734['getTableColumnsWidths'](_0x1ab207):null,_0xb3deaa=_0xbe0e70['getAttribute']('tableWidth')||null;const _0x227a9c=_0x540713['tableWidth']||_0xb3deaa,_0x3f8c87=_0x540713['columnWidths']||_0x129328,_0x126db2=this['editor']['plugins']['get']('Users')['me'];for(const _0x30679f of _0x1681d6['getSuggestions']()){const _0x1dd653=_0x30679f['getContainedElement']();if('resizeTable'===_0x30679f['subType']&&_0x1dd653===_0xbe0e70){_0x30679f['author']!==_0x126db2&&_0x30679f['discard']();const _0x82bd8e=_0x30679f['data']['commandParams'];_0xb3deaa=_0x82bd8e[0x0]['tableWidth'],_0x129328=_0x82bd8e[0x0]['columnWidths'];break;}}_0x238ee5({'table':_0xbe0e70,'tableWidth':_0x227a9c,'columnWidths':_0x3f8c87}),_0x1681d6['markBlockFormat'](_0xbe0e70,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb3deaa,'columnWidths':_0x129328}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x60611e){if('formatBlock'!=_0x60611e['type']&&'formatInline'!=_0x60611e['type'])return;const {data:_0x5bd36c}=_0x60611e;if(_0x5bd36c&&'resizeTable'===_0x5bd36c['formatGroupId']){const _0x390e52='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$5(this['editor']['locale'],_0x390e52)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x1773e0=this['editor'];_0x1773e0['plugins']['has']('Template')&&_0x1773e0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x34af8a=this['editor'];if(!_0x34af8a['commands']['get']('insertTableOfContents'))return;_0x34af8a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x162f47=_0x34af8a['plugins']['get']('TrackChangesEditing'),_0x1dbc26=_0x34af8a['locale'];_0x162f47['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2761f7=>getTranslation$5(_0x1dbc26,'ELEMENT_TABLE_OF_CONTENTS',_0x2761f7));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0x2f9aa0=this['editor'];if(!_0x2f9aa0['plugins']['has']('Title'))return;_0x2f9aa0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$5(_0x2f9aa0['locale'],'ELEMENT_TITLE')),_0x2f9aa0['model']['document']['registerPostFixer'](_0x4720f1=>{let _0x3af5ee=!0x1;const _0x3b5ae0=Array['from'](_0x2f9aa0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40106e,data:_0x56968e}of _0x3b5ae0){const {group:_0x421016}=splitSuggestionMarkerName(_0x40106e);if('suggestion'!==_0x421016||!_0x56968e['newRange'])continue;const _0x4368b7=_0x56968e['newRange'],_0x36f629=_0x4368b7['end']['nodeBefore'];if(!_0x36f629||!_0x36f629['is']('element','title-content'))continue;if(!_0x4368b7['start']['isTouching'](_0x4368b7['end']))continue;const _0x12fe1a=_0x2f9aa0['model']['schema']['getNearestSelectionRange'](_0x4368b7['end'],'forward');if(_0x12fe1a&&_0x12fe1a['isCollapsed']){const _0x28a021=_0x4720f1['createRange'](_0x4368b7['start'],_0x12fe1a['start']);_0x28a021['isEqual'](_0x4368b7)||(_0x4720f1['updateMarker'](_0x40106e,{'range':_0x28a021}),_0x3af5ee=!0x0);}_0x3af5ee||(_0x4720f1['removeMarker'](_0x40106e),_0x3af5ee=!0x0);}return _0x3af5ee;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0x47b251=this['editor'],_0x179337=_0x47b251['plugins']['get']('TrackChangesEditing');_0x47b251['plugins']['has']('Uploadcare')&&(_0x179337['enableCommand']('uploadcare'),_0x47b251['plugins']['has']('UploadcareImageEdit')&&(_0x179337['enableCommand']('uploadcareImageEdit'),_0x179337['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x179337['descriptionFactory']['registerDescriptionCallback'](_0x10b660=>{if('attribute'!=_0x10b660['type'])return;const {data:_0x55a297}=_0x10b660;return _0x55a297&&'uploadcareImageId'==_0x55a297['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0x5b9b2c=this['editor'],_0x56a8f4=_0x5b9b2c['plugins']['get']('TrackChangesEditing');_0x5b9b2c['plugins']['has']('UndoEditing')&&(_0x56a8f4['enableCommand']('undo'),_0x56a8f4['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x10f2aa=this['editor'];if(!_0x10f2aa['plugins']['has']('TableCaptionEditing'))return;_0x10f2aa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x156aa1){super(_0x156aa1),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x46e1ab=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2488e6 of this['tableProperties'])_0x46e1ab['enableCommand'](_0x2488e6,(_0x429d20,_0x217153)=>{const _0x45ada2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2488e6,[_0x45ada2],this['tableProperties'],'tableProperties',_0x429d20,_0x217153);});_0x46e1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x46e1ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46e1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x271947,_0x3dea58)=>this['handleDiscardAction'](this['tableProperties'],_0x271947,_0x3dea58)),_0x46e1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1c2dc2 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1c2dc2)&&_0x46e1ab['enableCommand'](_0x1c2dc2,(_0x30662e,_0x1523aa)=>{const _0x2951fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1c2dc2,_0x2951fd,this['tableCellProperties'],'tableCellProperties',_0x30662e,_0x1523aa);});_0x46e1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x46e1ab['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46e1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5c059d,_0x31b09a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5c059d,_0x31b09a)),_0x46e1ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x46e1ab['descriptionFactory']['registerAttributeLabel']('tableCellType',getTranslation$5(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x46e1ab['descriptionFactory']['registerDescriptionCallback'](_0x5a4886=>this['handleSuggestionDescription'](_0x5a4886)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3d59c9,_0x1e5724,_0x145b4c,_0x30727b,_0x29f022,_0x549265){const _0x1cba1d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x549265['batch'],()=>{for(const _0x441ea5 of _0x1e5724){if(this['_getSuggestion'](_0x441ea5,_0x30727b))_0x29f022(_0x549265);else{const _0x3e0c6b={};for(const _0x4a429a of _0x145b4c){const _0x5a325d=_0x441ea5['getAttribute'](_0x4a429a);void 0x0!==_0x5a325d&&(_0x3e0c6b[_0x4a429a]=_0x5a325d);}_0x29f022(_0x549265),_0x1cba1d['markBlockFormat'](_0x441ea5,{'commandParams':[_0x3e0c6b]},[],_0x30727b);}}});}['handleDiscardAction'](_0x154b2e,_0xa9e362,_0x29552d){const _0x36a4e1=_0xa9e362[0x0]['start']['nodeAfter'],_0xb56982=_0x29552d['commandParams'][0x0];this['editor']['model']['change'](_0x52905b=>{for(const _0x2698e0 of _0x154b2e)void 0x0!==_0xb56982[_0x2698e0]?_0x52905b['setAttribute'](_0x2698e0,_0xb56982[_0x2698e0],_0x36a4e1):_0x52905b['removeAttribute'](_0x2698e0,_0x36a4e1);});}['handleSuggestionDescription'](_0xe04328){if(_0xe04328['data'])switch(_0xe04328['subType']){case'tableProperties':return{'type':'format','content':getTranslation$5(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':getTranslation$5(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xa7ea9d,_0x3b4215){const _0x25825a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x52c723 of _0x25825a['getSuggestions']({'skipNotAttached':!0x0})){const _0x208122=_0x52c723['getContainedElement']();if(_0x52c723['subType']===_0x3b4215&&_0x208122===_0xa7ea9d)return _0x52c723;}return null;}['_registerTablePropertiesAttributes'](){const _0x463fdc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f239f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x406710 of _0x3f239f){const _0x40499c=_0x406710['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x463fdc['descriptionFactory']['registerAttributeLabel'](_0x406710,getTranslation$5(this['editor']['locale'],'FORMAT_'+_0x40499c));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x2a842c=this['editor'];if(!_0x2a842c['plugins']['has']('LineHeight'))return;const _0x479e29=_0x2a842c['plugins']['get']('TrackChangesEditing'),_0x5443ac=_0x2a842c['locale'];_0x479e29['enableDefaultAttributesIntegration']('lineHeight'),_0x479e29['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$5(_0x5443ac,'FORMAT_LINE_HEIGHT'));}}const renameAttributeKey='$elementName';class TrackChangesEditing extends Plugin{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[CommentsRepository,SuggestionsConversion,Users,PendingActions,DocumentCompare,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x82703a){super(_0x82703a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x84b9df,_0x2dad0f,_0x1ed411,_0x55531a)=>{this['_model']['change'](()=>{for(const _0x131456 of[..._0x55531a,..._0x1ed411])this['_model']['markers']['has'](_0x131456)&&_0x82703a['editing']['reconvertMarker'](_0x131456);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x82703a['plugins']['get'](CommentsRepository),this['_suggestionsConversion']=_0x82703a['plugins']['get'](SuggestionsConversion),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x82703a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x82703a['config']['get']('trackChanges.trackFormatChanges'),_0x82703a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x82703a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x82703a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x27d96c=this['editor'];_0x27d96c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x27e305,{writer:_0x33fe04})=>{let _0x356b5e='suggestion:'+_0x27e305['getAttribute']('suggestion-type')+':'+_0x27e305['getAttribute']('id');return _0x27e305['getAttribute']('marker-count')&&(_0x356b5e+=':'+_0x27e305['getAttribute']('marker-count')),_0x33fe04['createElement']('$marker',{'data-name':_0x356b5e});}}),_0x27d96c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27d96c['model']['document']['registerPostFixer'](_0x450d8c=>{let _0x47b3e6=!0x1;const _0x46ab9d=Array['from'](_0x27d96c['model']['document']['differ']['getChangedMarkers']()),_0x30d396=new Set();for(const {name:_0xfd9ac,data:_0x36155e}of _0x46ab9d){const {group:_0x4ab1e3,type:_0x55ca6c,subType:_0x1d2f0e,id:_0xccc644}=splitSuggestionMarkerName(_0xfd9ac);if('suggestion'!==_0x4ab1e3)continue;const _0x8df970=_0x1d2f0e?'suggestion:'+_0x55ca6c+':'+_0x1d2f0e+':'+_0xccc644:'suggestion:'+_0x55ca6c+':'+_0xccc644,_0x11e67d=_0x27d96c['model']['markers']['getMarkersGroup'](_0x8df970),_0x327135=_0x27d96c['model']['markers']['get'](_0xfd9ac),_0x18486b=this['_suggestions']['get'](_0xccc644);if(null!=_0x36155e['newRange']){'formatInline'==_0x55ca6c&&(_0x47b3e6=_0x47b3e6||trimFormatInlineSuggestionRange(_0x36155e['newRange'],_0xfd9ac,_0x450d8c,_0x27d96c['model']['schema']));const _0x28da1e='attribute'==_0x55ca6c&&this['_suggestionsConversion']['isBlockAttribute'](_getAttributeKeyFromSubType(_0x1d2f0e)),_0x4bcd27='attribute'==_0x55ca6c&&this['_suggestionsConversion']['isInlineAttribute'](_getAttributeKeyFromSubType(_0x1d2f0e));if(_0x36155e['newRange']['isCollapsed']||'$graveyard'==_0x36155e['newRange']['root']['rootName']||'formatBlock'==_0x55ca6c&&!isCorrectFormatBlockSuggestionRange(_0x36155e['newRange'])||_0x28da1e&&!isCorrectFormatBlockSuggestionRange(_0x36155e['newRange'])||_0x4bcd27&&isEmptyRange(_0x36155e['newRange'])||'deletion'==_0x55ca6c&&isEmptyRange(_0x36155e['newRange'])||_0x327135&&isIntersectingWithOtherMarkers(_0x327135,_0x11e67d))_0x450d8c['removeMarker'](_0xfd9ac),_0x47b3e6=!0x0;else{if(!_0x18486b||!_0x18486b['isInContent'])continue;if(_0x36155e['newRange']&&_0x36155e['oldRange']&&_0x36155e['newRange']['isEqual'](_0x36155e['oldRange']))continue;_0x30d396['add'](_0x18486b);}}}return _0x30d396['size']>0x0&&(_0x47b3e6=!!this['_joinWithAdjacentSuggestions'](_0x30d396)||_0x47b3e6),_0x47b3e6;}),_0x27d96c['model']['document']['registerPostFixer'](_0x4e64ed=>{let _0x2720b6=!0x1;for(const _0x17d5b2 of _0x27d96c['model']['document']['differ']['getChanges']())if('insert'==_0x17d5b2['type'])for(const _0x5bee24 of this['_suggestions']['values']()){if(_0x5bee24['isMultiRange']||!_0x5bee24['isInContent'])continue;const _0x6cafd0='formatBlock'==_0x5bee24['type'],_0xc2e97=this['_getAttributeKey'](_0x5bee24),_0x3c7352=_0xc2e97&&this['_suggestionsConversion']['isBlockAttribute'](_0xc2e97);if(!_0x6cafd0&&!_0x3c7352)continue;const _0x6b396d=_0x5bee24['getFirstRange']();if(_0x6b396d['start']['parent']!=_0x6b396d['end']['parent']&&!_0x6b396d['end']['isAtEnd']){const _0x30d68d=_0x27d96c['model']['createPositionAt'](_0x6b396d['start']['nodeAfter'],'end'),_0x5bb6d9=_0x27d96c['model']['createRange'](_0x6b396d['start'],_0x30d68d);_0x4e64ed['updateMarker'](_0x5bee24['getFirstMarker'](),{'range':_0x5bb6d9}),_0x2720b6=!0x0;}}return _0x2720b6;}),_0x27d96c['model']['document']['registerPostFixer'](_0x5664fb=>this['_processAttributeChanges'](_0x5664fb)),_0x27d96c['model']['document']['registerPostFixer'](_0x15dab3=>!_0x15dab3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x15dab3)),_0x27d96c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27d96c['model']['document']['on']('change:data',(_0x336ee4,_0x44b9b5)=>{if(!_0x44b9b5['isLocal']||_0x44b9b5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4bfceb=_0x27d96c['model']['document']['differ']['getChanges']();if(0x0==_0x4bfceb['length'])return;const _0xf98350=[],_0x34201d=_0x4bfceb['filter'](_0x2ce8db=>'attribute'==_0x2ce8db['type']),_0x220e5a=_0x4bfceb['filter'](_0x224973=>'insert'==_0x224973['type']&&'$text'!=_0x224973['name']);for(const _0x5b17da of _0x34201d)this['_suggestionsConversion']['isRegisteredAttribute'](_0x5b17da['attributeKey'])&&_0xf98350['push']({'key':_0x5b17da['attributeKey'],'newValue':_0x5b17da['attributeNewValue'],'oldValue':_0x5b17da['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x5b17da['range'],_0x27d96c['model'])});for(const _0xeaaf75 of _0x220e5a){if('rename'!=_0xeaaf75['action']&&'refresh'!=_0xeaaf75['action'])continue;const _0x11c7b6=createBlockFormatRangeForElement(_0xeaaf75['position']['nodeAfter'],_0x27d96c['model']),_0x405b77=_0xeaaf75['before'];'rename'==_0xeaaf75['action']&&_0xf98350['push']({'key':renameAttributeKey,'newValue':_0xeaaf75['name'],'oldValue':_0x405b77['name'],'range':_0x11c7b6});for(const [_0x204c4d,_0x3ecfa0]of _0x405b77['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x204c4d))continue;const _0x5f436b=_0xeaaf75['attributes']['get'](_0x204c4d);_0x3ecfa0!==_0x5f436b&&_0xf98350['push']({'key':_0x204c4d,'newValue':_0x5f436b,'oldValue':_0x3ecfa0,'range':_0x11c7b6});}for(const [_0x2100ef,_0x521016]of _0xeaaf75['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2100ef)&&(_0x405b77['attributes']['has'](_0x2100ef)||_0xf98350['push']({'key':_0x2100ef,'newValue':_0x521016,'oldValue':null,'range':_0x11c7b6}));}0x0!=_0xf98350['length']&&_0x27d96c['model']['enqueueChange'](_0x44b9b5,_0x11550f=>{const _0x3db2c7=uid();for(const {range:_0x1d88c3,key:_0x5abf8e,oldValue:_0x1a0a8c,newValue:_0x16eb3c}of _0xf98350)this['markAttributeChange'](_0x1d88c3,_0x5abf8e,_0x1a0a8c,_0x16eb3c,{'groupId':_0x3db2c7});this['_reduceExistingSuggestions'](_0x11550f,_0xf98350);});},{'priority':'lowest'}),_0x27d96c['model']['markers']['on']('update:suggestion',(_0x402de8,_0x41c99a,_0x4867ef)=>{if(null==_0x4867ef){const {id:_0x1670e4}=splitSuggestionMarkerName(_0x41c99a['name']),_0x59566a=this['_suggestions']['get'](_0x1670e4);_0x59566a&&_0x59566a['addMarkerName'](_0x41c99a['name']);}}),_0x27d96c['model']['document']['on']('change:data',()=>{const _0x28f2bb=Array['from'](_0x27d96c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35471b=>'suggestion'===splitSuggestionMarkerName(_0x35471b['name'])['group']);if(0x0===_0x28f2bb['length'])return;_0x28f2bb['sort']((_0x53741b,_0x52b7e3)=>{const _0x224452=_0x53741b['data']['oldRange'],_0xdb3651=_0x52b7e3['data']['oldRange'];return null===_0x224452&&null===_0xdb3651?0x0:null===_0x224452&&null!==_0xdb3651?-0x1:null!==_0x224452&&null===_0xdb3651?0x1:_0x224452['start']['isBefore'](_0xdb3651['start'])?-0x1:0x1;});const _0x673de7=new Set(),_0x4d7e93=new Set();for(const {name:_0x3a7d01,data:_0x27184a}of _0x28f2bb){const {id:_0x1be332}=splitSuggestionMarkerName(_0x3a7d01);if(null===_0x27184a['oldRange']){const _0x201dc2=this['_handleNewSuggestionMarker'](_0x3a7d01);_0x4d7e93['add'](_0x201dc2);}else{const _0xf6fbf3=this['_suggestions']['get'](_0x1be332);null!==_0x27184a['newRange']||_0xf6fbf3['isInContent']?(_0x673de7['add'](_0xf6fbf3['head']),_0x4d7e93['add'](_0xf6fbf3)):this['_removeSuggestion'](_0xf6fbf3);}}_0x4d7e93['size']>0x0&&this['_refreshSuggestionsChain'](_0x4d7e93);for(const _0x594a2d of _0x673de7)this['fire']('suggestionChanged',_0x594a2d);}),_0x27d96c['model']['on']('applyOperation',(_0x5f5358,_0x13f770)=>{const _0x341805=_0x13f770[0x0];if(!this['_suggestions']['size'])return;if(!_0x341805['isDocumentOperation'])return;if(_0x341805['batch']['isUndo']||!_0x341805['batch']['isLocal'])return;let _0x22490a,_0x138818;switch(_0x341805['type']){case'insert':_0x22490a=_0x27d96c['model']['createPositionAt'](_0x341805['position']),_0x138818=_0x22490a['getShiftedBy'](_0x341805['howMany']);break;case'split':_0x22490a=_0x27d96c['model']['createPositionAt'](_0x341805['splitPosition']),_0x138818=_0x27d96c['model']['createPositionAt'](_0x341805['moveTargetPosition']);break;case'move':_0x22490a=_0x27d96c['model']['createPositionAt'](_0x341805['targetPosition']),_0x138818=_0x22490a['getShiftedBy'](_0x341805['howMany']);break;default:return;}const _0x325f36=_0x27d96c['model']['createRange'](_0x22490a,_0x138818);_0x27d96c['model']['change'](()=>{for(const {suggestion:_0x143793,meta:_0x381e90}of this['_findSuggestions'](_0x325f36)){if(_0x143793['isMultiRange'])continue;if('formatInline'==_0x143793['type'])continue;const _0x17c5b7=this['_getAttributeKey'](_0x143793);if(_0x17c5b7&&this['_suggestionsConversion']['isBlockAttribute'](_0x17c5b7)&&'split'!=_0x341805['type'])continue;const _0x3cfc2e=_0x143793['data']&&_0x143793['data']['multipleBlocks'];('formatBlock'!=_0x143793['type']||'split'==_0x341805['type']&&!_0x3cfc2e)&&(_0x381e90['containsRangeInObject']||'insertion'==_0x143793['type']&&_0x381e90['isOwn']||_0x143793['getFirstRange']()['containsRange'](_0x325f36)&&this['_breakSuggestionMarker'](_0x143793,_0x22490a,_0x138818));}});},{'priority':'lowest'}),_0x27d96c['model']['on']('deleteContent',(_0x5281ff,_0x1af202)=>{const _0x561e86=_0x1af202[0x0],_0x51f6dd=_0x1af202[0x1];if(_0x51f6dd&&_0x51f6dd['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x561e86['isCollapsed'])return;const _0x31fcc2=_0x27d96c['model']['schema'],{start:_0x3282cf,end:_0x42a85f}=_0x561e86['getFirstRange'](),_0x4aff36=_0x3282cf['nodeAfter']&&_0x31fcc2['isLimit'](_0x3282cf['nodeAfter'])?null:_0x31fcc2['getNearestSelectionRange'](_0x3282cf,'forward'),_0x5501a3=_0x42a85f['nodeBefore']&&_0x31fcc2['isLimit'](_0x42a85f['nodeBefore'])?null:_0x31fcc2['getNearestSelectionRange'](_0x42a85f,'backward'),_0x5e84b6=_0x27d96c['model']['createRange'](_0x4aff36?_0x4aff36['start']:_0x3282cf,_0x5501a3?_0x5501a3['end']:_0x42a85f);_0x27d96c['model']['change'](_0x2c1c80=>{this['markDeletion'](_0x5e84b6);const _0xeb195=_0x27d96c['model']['schema']['getNearestSelectionRange'](_0x5e84b6['start']);_0x561e86['is']('documentSelection')?_0x2c1c80['setSelection'](_0xeb195):_0x561e86['setTo'](_0xeb195);}),_0x5281ff['stop']();},{'priority':priorities['normal']+0xa}),_0x27d96c['model']['on']('insertContent',(_0xf7d09a,_0x49caa3)=>{const _0x1951bc=_0x49caa3[_0x49caa3['length']-0x1];_0x1951bc&&_0x1951bc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27d96c['model']['change'](()=>{let _0x3ac9c5=_0x27d96c['model']['insertContent'](_0x49caa3[0x0],_0x49caa3[0x1],_0x49caa3[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ac9c5)return;_0xf7d09a['return']=_0x3ac9c5['clone']();const _0x36c10f=_0x3ac9c5['end']['nodeBefore'],_0x1e476f=_0x27d96c['model']['schema'];_0x36c10f&&_0x1e476f['isBlock'](_0x36c10f)&&!_0x1e476f['isObject'](_0x36c10f)&&(_0x3ac9c5=_0x27d96c['model']['createRange'](_0x3ac9c5['start'],_0x27d96c['model']['createPositionAt'](_0x36c10f,'end'))),this['markInsertion'](_0x3ac9c5);}),_0xf7d09a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b82aa=new AcceptSuggestionCommand(_0x27d96c,this['_suggestions']);_0x27d96c['commands']['add']('acceptSuggestion',_0x1b82aa),this['enableCommand']('acceptSuggestion');const _0x324b6e=new DiscardSuggestionCommand(_0x27d96c,this['_suggestions']);_0x27d96c['commands']['add']('discardSuggestion',_0x324b6e),this['enableCommand']('discardSuggestion'),_0x27d96c['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x27d96c,_0x1b82aa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27d96c['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x27d96c,_0x324b6e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27d96c['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x27d96c,_0x1b82aa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27d96c['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x27d96c,_0x324b6e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46c67a=_0x27d96c['plugins']['get'](CommentsRepository);this['listenTo'](_0x46c67a,'addComment',(_0x5391d8,{threadId:_0x100d41})=>{const _0x296706=this['_suggestions']['get'](_0x100d41);_0x296706&&_0x296706['commentThread']&&0x1===_0x296706['commentThread']['length']&&this['_updateSuggestionData'](_0x100d41,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46c67a,'removeComment',(_0x307f01,{threadId:_0x30907f})=>{const _0x320f0f=this['_suggestions']['get'](_0x30907f);_0x320f0f&&_0x320f0f['commentThread']&&!_0x320f0f['commentThread']['length']&&this['_updateSuggestionData'](_0x30907f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$5(this);}set['adapter'](_0x14afb9){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x14afb9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x221d94=!0x1,toJSON:_0x9ee96a=!0x1}={}){const _0x35f7da=[];for(const _0x20017b of this['_suggestions']['values']())_0x221d94&&!_0x20017b['isInContent']||_0x35f7da['push'](_0x20017b);return _0x9ee96a?_0x35f7da['map'](_0x3718db=>_0x3718db['toJSON']()):_0x35f7da;}['getSuggestion'](_0x4c78f4){const _0x34d6f2=this['_suggestions']['get'](_0x4c78f4);if(!_0x34d6f2)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x34d6f2;}['hasSuggestion'](_0xad7c3b){return this['_suggestions']['has'](_0xad7c3b);}['addSuggestionData'](_0x2e9d03){const {authorId:_0x5302e4,id:_0x94a354,originalSuggestionId:_0xbc0fa3,attributes:_0x59a02b}=_0x2e9d03,[_0x252608,_0xf5a103]=_0x2e9d03['type']['split'](':'),_0x57d880=this['_suggestions']['get'](_0x94a354)||this['_createSuggestion'](_0x252608,_0xf5a103,_0x94a354,_0x5302e4,_0x59a02b,_0xbc0fa3);if(this['_addThreadToSuggestion'](_0x57d880),this['_checkSuggestionCorrectness'](_0x57d880,_0x252608,_0xf5a103||null,_0x5302e4),_0x57d880['createdAt']=_0x2e9d03['createdAt'],_0x57d880['_isDataLoaded']=!0x0,_0x59a02b&&_0x59a02b['@external']){const _0x430042=_0x59a02b['@external'],_0x194a13=this['_getExternalAuthor'](_0x430042['authorName']);_0x57d880['authoredAt']=_0x430042['createdAt'],_0x57d880['author']=_0x194a13,_0x57d880['isExternal']=!0x0;}else _0x57d880['authoredAt']=_0x2e9d03['createdAt'];switch(_0x2e9d03['data']&&(_0x57d880['data']=_0x2e9d03['data']),_0x2e9d03['attributes']&&(_0x57d880['attributes']=_0x2e9d03['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x57d880['_saved']=!0x0),this['_suggestionState']['get'](_0x57d880)){case'notReady':this['_suggestionState']['set'](_0x57d880,'dataReady');break;case'markerReady':_0x57d880['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x57d880])),this['_refreshSuggestionsChain'](new Set([_0x57d880])),this['_suggestionState']['set'](_0x57d880,'ready'),this['fire']('suggestionLoaded',_0x57d880)):this['_suggestionState']['set'](_0x57d880,'removed');}return _0x57d880;}['acceptSuggestion'](_0x153cf3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b2794 of _0x153cf3['getAllAdjacentSuggestions']())_0x1b2794['accept']();});});}['discardSuggestion'](_0x46600f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x453a6a of _0x46600f['getAllAdjacentSuggestions']())_0x453a6a['discard']();});});}['enableCommand'](_0x509800,_0x44fc0a){const _0x293b62=this['editor']['commands']['get'](_0x509800);if(!_0x293b62)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x509800});if(this['_enabledCommands']['has'](_0x293b62))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x509800});this['_enabledCommands']['add'](_0x293b62),_0x44fc0a&&_0x293b62['on']('execute',(_0x23c165,_0x166aa2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x166aa2['length']>0x0&&_0x166aa2[_0x166aa2['length']-0x1]&&_0x166aa2[_0x166aa2['length']-0x1]['forceDefaultExecution']?_0x166aa2['pop']():(_0x23c165['return']=_0x44fc0a((..._0x339d2c)=>_0x293b62['execute'](..._0x339d2c,{'forceDefaultExecution':!0x0}),..._0x166aa2),_0x23c165['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2c4a5c){let _0x243b9f,_0x405855;const _0x5ef708=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x243b9f=_0x2c4a5c();}catch(_0x27f2af){_0x405855=_0x27f2af;}return _0x5ef708||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x405855&&CKEditorError['rethrowUnexpectedError'](_0x405855,this),_0x243b9f;}['markInsertion'](_0x57c2aa,_0x30d90d=null,_0x1166b9={}){if(_0x57c2aa['isCollapsed'])return null;const _0x1e46f6=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1166b9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x44a1b5,meta:_0x4260fa}of this['_findSuggestions'](_0x57c2aa,'insertion'))if(_0x4260fa['isOwn']){if(!_0x4260fa['isNextTo']){if(_0x4260fa['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0x44a1b5,_0x1166b9))continue;return _0x44a1b5;}if(_areSimilarAttributes(_0x44a1b5,_0x1166b9))return _0x44a1b5;this['_breakSuggestionMarker'](_0x44a1b5,_0x57c2aa['start'],_0x57c2aa['end']);break;}if(_0x30d90d==_0x44a1b5['subType']&&_areSimilarAttributes(_0x44a1b5,_0x1166b9)){const _0x4bf92e=_0x44a1b5['getFirstRange']();return _0x4bf92e['start']['isEqual'](_0x57c2aa['end'])?this['_setSuggestionRange'](_0x44a1b5,this['_model']['createRange'](_0x57c2aa['start'],_0x4bf92e['end'])):this['_setSuggestionRange'](_0x44a1b5,this['_model']['createRange'](_0x4bf92e['start'],_0x57c2aa['end'])),_0x44a1b5;}}const _0xba5229=uid(),_0xb3153f=_0x1e46f6['id'],_0x29238b=_0x30d90d?'insertion:'+_0x30d90d:'insertion',_0x531cb9=this['_setSuggestionData']({'id':_0xba5229,'type':_0x29238b,'createdAt':new Date(),'authorId':_0xb3153f,'attributes':_0x1166b9});return this['_addSuggestionMarker'](_0x29238b,_0xba5229,_0xb3153f,_0x57c2aa),_0x531cb9;}['markMultiRangeInsertion'](_0x13a6e0,_0x396a5a='multi',_0xf74556={}){const _0x131d72=this['editor']['plugins']['get']('Users')['me'],_0x3d8add=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x396a5a,'join');this['_trackingSessionId']&&(_0xf74556['trackingSessionId']=this['_trackingSessionId']);for(const _0x4fce8a of this['getSuggestions']())if(_0x4fce8a['author']['id']==_0x131d72['id']&&'insertion'==_0x4fce8a['type']&&_0x4fce8a['subType']==_0x396a5a&&_areSimilarAttributes(_0x4fce8a,_0xf74556)&&(_0x3d8add(_0x4fce8a['getRanges'](),_0x13a6e0)||_0x3d8add(_0x13a6e0,_0x4fce8a['getRanges']()))){for(const _0x111bd4 of _0x13a6e0)_0x4fce8a['addRange'](_0x111bd4);return _0x4fce8a;}for(const {suggestion:_0x561736,meta:_0x7d8033}of this['_findSuggestions'](_0x13a6e0,'insertion')){if(!_0x7d8033['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x7d8033['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x561736,_0xf74556))continue;let _0x3cb829=!0x0;for(const _0x207270 of _0x561736['getRanges']())for(const _0x394c96 of _0x13a6e0)if(!_0x207270['containsRange'](_0x394c96)){_0x3cb829=!0x1;break;}if(_0x3cb829)return _0x561736;}const _0x1dd236=uid(),_0x218ce6=_0x131d72['id'],_0x54b6bb='insertion:'+_0x396a5a,_0x31bd1d=this['_setSuggestionData']({'id':_0x1dd236,'type':_0x54b6bb,'createdAt':new Date(),'authorId':_0x218ce6,'attributes':_0xf74556});for(const _0x2cbf27 of _0x13a6e0)this['_addSuggestionMarker'](_0x54b6bb,_0x1dd236,_0x218ce6,_0x2cbf27,Suggestion['getMultiRangeId']());return _0x31bd1d;}['markInlineFormat'](_0x4ed168,_0x22e7e0,_0x9ce30d=null,_0x2c1551={}){if(_0x9ce30d=_0x9ce30d||createFormatSubType(_0x22e7e0),_0x4ed168['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2c1551['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xd8c44a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9ce30d,'accept');return this['forceDefaultExecution'](()=>_0xd8c44a([_0x4ed168],_0x22e7e0,_0x2c1551)),null;}const _0x195834=this['editor']['plugins']['get']('Users')['me'],_0x4041a5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5cce47,meta:_0x3c6a1c}of this['_findSuggestions'](_0x4ed168,'insertion'))_0x3c6a1c['isOwn']&&!_0x3c6a1c['isInsideObject']&&_0x4041a5['push'](..._0x5cce47['getRanges']());}const _0x27bb27=getIntersectionsWithMultipleRanges(_0x4ed168,_0x4041a5),_0x5c5a7e=getDifferencesWithMultipleRanges(_0x4ed168,_0x4041a5);_0x27bb27['length']&&this['_model']['change'](()=>{for(const _0x5cd2bf of _0x27bb27){const _0x2349c9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9ce30d,'accept');this['forceDefaultExecution'](()=>_0x2349c9([_0x5cd2bf],_0x22e7e0,_0x2c1551));}});for(const _0x5c582f of _0x5c5a7e){let _0x4a90d7=null,_0x2da16b=_0x5c582f['start'],_0x4851c1=_0x5c582f['end'];for(const {suggestion:_0x37aff8,meta:_0x484e6e}of this['_findSuggestions'](_0x5c582f,'formatInline')){if(!_0x484e6e['isOwn'])continue;if(_0x37aff8['subType']!=_0x9ce30d)continue;if(!_areSimilarAttributes(_0x37aff8,_0x2c1551))continue;const _0x38bf20=_0x37aff8['getFirstRange']();if(_0x38bf20['containsRange'](_0x5c582f,!0x0))return null;_0x2da16b=_0x2da16b['isBefore'](_0x38bf20['start'])?_0x2da16b:_0x38bf20['start'],_0x4851c1=_0x4851c1['isAfter'](_0x38bf20['end'])?_0x4851c1:_0x38bf20['end'],_0x4a90d7?_0x38bf20['start']['isBefore'](_0x4a90d7['getFirstRange']()['start'])?(_0x4a90d7['removeMarkers'](),_0x4a90d7=_0x37aff8):_0x37aff8['removeMarkers']():_0x4a90d7=_0x37aff8;}const _0x2f7404=this['_model']['createRange'](_0x2da16b,_0x4851c1);if(_0x4a90d7)this['_setSuggestionRange'](_0x4a90d7,_0x2f7404);else{const _0x1035a0=uid(),_0x9b1714=_0x195834['id'];this['_setSuggestionData']({'id':_0x1035a0,'type':'formatInline:'+_0x9ce30d,'data':_0x22e7e0,'createdAt':new Date(),'authorId':_0x9b1714,'attributes':_0x2c1551}),this['_addSuggestionMarker']('formatInline:'+_0x9ce30d,_0x1035a0,_0x9b1714,_0x2f7404);}}return null;}['markBlockFormat'](_0x15f998,_0x5b3d5e,_0x4da8c1=[],_0x249ae7=null,_0x517d2e={}){_0x5b3d5e['formatGroupId']||(_0x5b3d5e['formatGroupId']=_0x5b3d5e['commandName']),_0x5b3d5e['multipleBlocks']=_0x15f998['is']('range'),_0x249ae7=_0x249ae7||createFormatSubType(_0x5b3d5e);const _0x4ed0f9=_0x4da8c1['map'](_0x1b34f1=>createBlockFormatRangeForElement(_0x1b34f1,this['_model'])),_0x364040=_0x15f998['is']('range')?_0x15f998:createBlockFormatRangeForElement(_0x15f998,this['_model']);if(this['_trackingSessionId']&&(_0x517d2e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1275c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x249ae7,'accept');return this['forceDefaultExecution'](()=>_0x1275c4([_0x364040],_0x5b3d5e,_0x517d2e)),null;}_0x4ed0f9['push'](_0x364040);let _0x2c542c=!0x0;for(const _0x3066fc of _0x4ed0f9)if(!this['_rangeIsInLocalUserInsertion'](_0x3066fc)){_0x2c542c=!0x1;break;}if(_0x2c542c&&'always'!==this['_trackFormatChanges']){const _0x44ff91=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x249ae7,'accept');return this['forceDefaultExecution'](()=>_0x44ff91([_0x364040],_0x5b3d5e,_0x517d2e)),null;}let _0xd7b903=null,_0x12f230=_0x364040['start'],_0x3215f1=_0x364040['end'];for(const {suggestion:_0x475080,meta:_0x1b7ede}of this['_findSuggestions'](_0x364040,'formatBlock')){if(!_0x1b7ede['isOwn'])continue;if(_0x1b7ede['isNextTo']||_0x1b7ede['containsRangeInObject']||_0x1b7ede['isInsideObject'])continue;if(_0x475080['data']['formatGroupId']!=_0x5b3d5e['formatGroupId'])continue;if(!_areSimilarAttributes(_0x475080,_0x517d2e))continue;const _0x2a5490=_0x475080['getFirstRange']();if(_0x475080['subType']==_0x249ae7){if(_0x2a5490['containsRange'](_0x364040,!0x0))return null;_0x12f230=_0x12f230['isBefore'](_0x2a5490['start'])?_0x12f230:_0x2a5490['start'],_0x3215f1=_0x3215f1['isAfter'](_0x2a5490['end'])?_0x3215f1:_0x2a5490['end'],_0xd7b903?_0x2a5490['start']['isBefore'](_0xd7b903['getFirstRange']()['start'])?(_0xd7b903['removeMarkers'](),_0xd7b903=_0x475080):_0x475080['removeMarkers']():_0xd7b903=_0x475080;}else{const _0x12b93e=_0x364040['getIntersection'](_0x2a5490);this['_cutOutSuggestionMarker'](_0x475080,_0x12b93e);}}const _0x4362a6=this['editor']['plugins']['get']('Users')['me'],_0x22ae16=uid(),_0x2b888d=_0x4362a6['id'];if(_0xd7b903)return this['_setSuggestionRange'](_0xd7b903,this['_model']['createRange'](_0x12f230,_0x3215f1)),_0xd7b903;{const _0x5a81b5=this['_setSuggestionData']({'id':_0x22ae16,'type':'formatBlock:'+_0x249ae7,'data':_0x5b3d5e,'createdAt':new Date(),'authorId':_0x2b888d,'attributes':_0x517d2e});return this['_addSuggestionMarker']('formatBlock:'+_0x249ae7,_0x22ae16,_0x2b888d,this['_model']['createRange'](_0x12f230,_0x3215f1)),_0x5a81b5;}}['markMultiRangeBlockFormat'](_0x33b9e6,_0x1ebfa2,_0x22b93a=[],_0x10343b=null,_0x4eae52={}){_0x1ebfa2['formatGroupId']||(_0x1ebfa2['formatGroupId']=_0x1ebfa2['commandName']);const _0x4b11fd=_0x33b9e6[0x0];_0x1ebfa2['multipleBlocks']=_0x4b11fd['is']('range'),_0x10343b=_0x10343b||createFormatSubType(_0x1ebfa2);const _0x9093ca=_0x22b93a['map'](_0x7a3968=>createBlockFormatRangeForElement(_0x7a3968,this['_model'])),_0x516bc2=_0x4b11fd['is']('range')?_0x33b9e6:_0x33b9e6['map'](_0x2c0679=>createBlockFormatRangeForElement(_0x2c0679,this['_model']));if(this['_trackingSessionId']&&(_0x4eae52['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2eb2f5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10343b,'accept');return this['forceDefaultExecution'](()=>_0x2eb2f5(_0x516bc2,_0x1ebfa2,_0x4eae52)),null;}_0x9093ca['push'](..._0x516bc2);let _0x3084cd=!0x0;for(const _0x6cdec4 of _0x9093ca)if(!this['_rangeIsInLocalUserInsertion'](_0x6cdec4)){_0x3084cd=!0x1;break;}if(_0x3084cd&&'always'!==this['_trackFormatChanges']){const _0x5effc5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10343b,'accept');return this['forceDefaultExecution'](()=>_0x5effc5(_0x516bc2,_0x1ebfa2,_0x4eae52)),null;}const _0xa2cfa=this['editor']['plugins']['get']('Users')['me'];for(const _0xeade3c of this['getSuggestions']()){const _0x52c3db=_0xeade3c['data'];if(_0xeade3c['author']['id']!=_0xa2cfa['id'])continue;if('formatBlock'!=_0xeade3c['type']||_0x52c3db['formatGroupId']!=_0x1ebfa2['formatGroupId'])continue;if(!_areSimilarAttributes(_0xeade3c,_0x4eae52))continue;const _0x236027=_0xeade3c['subType']==_0x10343b;for(let _0x395e99=0x0;_0x395e99<_0x516bc2['length'];_0x395e99++){const _0x11a1dd=_0x516bc2[_0x395e99];for(const _0x4d1e8d of _0xeade3c['getMarkers']()){const _0x542009=_0x4d1e8d['getRange']();if(_0x11a1dd['isEqual'](_0x542009)){_0x236027?(_0x516bc2['splice'](_0x395e99,0x1),_0x395e99--):_0xeade3c['removeMarker'](_0x4d1e8d['name']);break;}}}}if(0x0==_0x516bc2['length'])return null;const _0x2ab7cf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10343b,'join');for(const _0x46cec2 of this['getSuggestions']()){const _0x5d03bc=_0x46cec2['data'];if(_0x46cec2['author']['id']==_0xa2cfa['id']&&('formatBlock'==_0x46cec2['type']&&_0x5d03bc['formatGroupId']==_0x1ebfa2['formatGroupId']&&_0x46cec2['subType']==_0x10343b&&_areSimilarAttributes(_0x46cec2,_0x4eae52)&&(_0x2ab7cf(_0x46cec2['getRanges'](),_0x516bc2)||_0x2ab7cf(_0x516bc2,_0x46cec2['getRanges']())))){for(const _0x42041d of _0x516bc2)_0x46cec2['addRange'](_0x42041d);return _0x46cec2;}}const _0x1e4371=uid(),_0x2d8229=_0xa2cfa['id'],_0xbaf2ac='formatBlock:'+_0x10343b,_0x4f5fac=this['_setSuggestionData']({'id':_0x1e4371,'type':_0xbaf2ac,'data':_0x1ebfa2,'createdAt':new Date(),'authorId':_0x2d8229,'attributes':_0x4eae52});for(const _0x37c14a of _0x516bc2)this['_addSuggestionMarker'](_0xbaf2ac,_0x1e4371,_0x2d8229,_0x37c14a,Suggestion['getMultiRangeId']());return _0x4f5fac;}['markDeletion'](_0x57904d,_0x1a1fff=null,_0x4fb696={}){if(_0x57904d['isCollapsed'])return null;const _0x17cf51=this['editor']['plugins']['get']('Users')['me'],_0x545f7b=new ModelLiveRange(_0x57904d['start'],_0x57904d['end']);this['_trackingSessionId']&&(_0x4fb696['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c2076,meta:_0x3c2ffc}of this['_findSuggestions'](_0x545f7b,'insertion'))if(_0x3c2ffc['isOwn']&&!_0x3c2ffc['isNextTo']){if(_0x1c2076['isMultiRange']){const _0x296537=_0x1c2076['getRanges']()['filter'](_0x3574b5=>'$graveyard'!=_0x3574b5['root']['rootName']);_0x296537['every'](_0xef0e30=>_0x545f7b['containsRange'](_0xef0e30,!0x0))&&_0x1c2076['discard']();if(_0x296537['some'](_0x57e2b5=>_0x57e2b5['containsRange'](_0x545f7b,!0x0))){const _0x345d21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a1fff,'accept');return this['forceDefaultExecution'](()=>_0x345d21([_0x545f7b],null,_0x4fb696)),null;}}else{const _0x3b04e4=_0x545f7b['getIntersection'](_0x1c2076['getFirstRange']());null!==_0x3b04e4&&_0x1c2076['_onDiscard']([_0x3b04e4],null,_0x4fb696);}}if(_0x545f7b['detach'](),_0x545f7b['isCollapsed']||'$graveyard'==_0x545f7b['root']['rootName'])return null;let _0x450353=null,_0x4dd971=_0x545f7b['start'],_0x4c2b6c=_0x545f7b['end'];const _0x13501a=this['_findSuggestions'](_0x545f7b,'deletion');for(const {suggestion:_0x3e7d57,meta:_0x4080b6}of _0x13501a){const _0x4d0d37=this['_model']['createRange'](_0x4dd971,_0x4c2b6c);if(_0x4080b6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4080b6['containsRangeInObject']&&!_0x4080b6['isInsideObject'])){if(_0x3e7d57['isMultiRange']){if(!_areSimilarAttributes(_0x3e7d57,_0x4fb696))continue;let _0x34050c=!0x0;for(const _0x3afa8d of _0x3e7d57['getRanges']()){if(_0x3afa8d['containsRange'](_0x4d0d37,!0x0))return _0x3e7d57;_0x4d0d37['containsRange'](_0x3afa8d)||(_0x34050c=!0x1);}_0x34050c&&_0x3e7d57['discard']();}else{const _0x3dd278=_0x3e7d57['getFirstRange']();if(_0x3dd278['containsRange'](_0x4d0d37,!0x0))return _0x3e7d57;if(!_areSimilarAttributes(_0x3e7d57,_0x4fb696)){_0x4d0d37['containsRange'](_0x3dd278)?_0x3e7d57['removeMarkers']():_0x3dd278['containsPosition'](_0x4dd971)?_0x4dd971=_0x3dd278['end']:_0x3dd278['containsPosition'](_0x4c2b6c)&&(_0x4c2b6c=_0x3dd278['start']);continue;}_0x4dd971=_0x4dd971['isBefore'](_0x3dd278['start'])?_0x4dd971:_0x3dd278['start'],_0x4c2b6c=_0x4c2b6c['isAfter'](_0x3dd278['end'])?_0x4c2b6c:_0x3dd278['end'],_0x4fb696=Object['assign']({},_0x3e7d57['attributes']),_0x450353?_0x3dd278['start']['isBefore'](_0x450353['getFirstRange']()['start'])?(_0x450353['removeMarkers'](),_0x450353=_0x3e7d57):_0x3e7d57['removeMarkers']():_0x450353=_0x3e7d57;}}}if(_0x450353)return this['_setSuggestionRange'](_0x450353,this['_model']['createRange'](_0x4dd971,_0x4c2b6c)),_0x450353;{const _0xda301d=uid(),_0x4a0224=this['_model']['createRange'](_0x4dd971,_0x4c2b6c),_0x27b7b0=_0x17cf51['id'],_0x33baaf=_0x1a1fff?'deletion:'+_0x1a1fff:'deletion',_0x576cd2=this['_setSuggestionData']({'id':_0xda301d,'type':_0x33baaf,'createdAt':new Date(),'authorId':_0x27b7b0,'attributes':_0x4fb696});return this['_addSuggestionMarker'](_0x33baaf,_0xda301d,_0x27b7b0,_0x4a0224),_0x576cd2;}}['markMultiRangeDeletion'](_0x2f33b5,_0x20a5c0='multi',_0x22dcb4={}){const _0x4fd1b4=this['editor']['plugins']['get']('Users')['me'],_0x15ee7f=_0x2f33b5['map'](_0x1b34bf=>new ModelLiveRange(_0x1b34bf['start'],_0x1b34bf['end'])),_0x43d6b5=new Set();this['_trackingSessionId']&&(_0x22dcb4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b7948,meta:_0x105b03}of this['_findSuggestions'](_0x15ee7f,'insertion'))_0x105b03['isOwn']&&!_0x105b03['isNextTo']&&_0x43d6b5['add'](_0x3b7948);for(const _0x3a0322 of _0x43d6b5)if(_0x3a0322['isMultiRange']){const _0x5ce513=_0x3a0322['getRanges']();(!_0x3a0322['attributes']||!_0x3a0322['attributes']['skipNestingCheck'])&&(_0x5ce513['every'](_0x2f8363=>_0x15ee7f['some'](_0x375082=>_0x375082['containsRange'](_0x2f8363,!0x0)))&&_0x3a0322['discard']());if(_0x15ee7f['every'](_0x527140=>_0x5ce513['some'](_0x2f0e45=>_0x2f0e45['containsRange'](_0x527140,!0x0)))){const _0x1b104f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20a5c0,'accept');return this['forceDefaultExecution'](()=>_0x1b104f(_0x2f33b5,null,_0x22dcb4)),null;}}else{const _0x4c409f=_0x3a0322['getFirstRange']();_0x15ee7f['some'](_0x2a604c=>_0x2a604c['containsRange'](_0x4c409f,!0x0))&&_0x3a0322['discard']();if(_0x15ee7f['every'](_0x4369ec=>_0x4c409f['containsRange'](_0x4369ec,!0x0))){const _0x1f9ec5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20a5c0,'accept');return this['forceDefaultExecution'](()=>_0x1f9ec5(_0x15ee7f,null,_0x22dcb4)),null;}}const _0x575965=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20a5c0,'join');let _0x362d11=null;for(const _0xb34899 of this['getSuggestions']())if(_0xb34899['author']['id']==_0x4fd1b4['id']&&_0xb34899['isInContent']&&'deletion'==_0xb34899['type']&&_0xb34899['subType']==_0x20a5c0&&_areSimilarAttributes(_0xb34899,_0x22dcb4)&&(_0x575965(_0xb34899['getRanges'](),_0x15ee7f)||_0x575965(_0x15ee7f,_0xb34899['getRanges']()))){if(_0x362d11){if(_0xb34899['commentThread']&&_0xb34899['commentThread']['length'])continue;for(const _0x51466d of _0xb34899['getRanges']())_0x362d11['isIntersectingWithRange'](_0x51466d)||_0x362d11['addRange'](_0x51466d);_0xb34899['removeMarkers']();}else{_0x362d11=_0xb34899;for(const _0x4b20f7 of _0x15ee7f)_0xb34899['isIntersectingWithRange'](_0x4b20f7)||_0xb34899['addRange'](_0x4b20f7);}}if(_0x362d11)return _0x362d11;_0x43d6b5['clear']();for(const {suggestion:_0x165455,meta:_0x5842bb}of this['_findSuggestions'](_0x15ee7f,'deletion'))_0x5842bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5842bb['containsRangeInObject']&&!_0x5842bb['isInsideObject'])&&_areSimilarAttributes(_0x165455,_0x22dcb4)&&_0x43d6b5['add'](_0x165455);for(const _0x41e919 of _0x43d6b5){const _0x270e52=_0x41e919['getRanges']();if(!_0x22dcb4||!_0x22dcb4['skipNestingCheck']){if(_0x15ee7f['every'](_0x24478b=>_0x270e52['some'](_0x571140=>_0x571140['containsRange'](_0x24478b,!0x0))))return _0x41e919;}(!_0x41e919['attributes']||!_0x41e919['attributes']['skipNestingCheck'])&&(_0x270e52['every'](_0x3d2de2=>_0x15ee7f['some'](_0x5ea5e4=>_0x5ea5e4['containsRange'](_0x3d2de2,!0x0)))&&_0x41e919['discard']());}const _0x51acb4=uid(),_0x540533=_0x4fd1b4['id'],_0x1510a1='deletion:'+_0x20a5c0,_0x1fe837=this['_setSuggestionData']({'id':_0x51acb4,'type':_0x1510a1,'createdAt':new Date(),'authorId':_0x540533,'attributes':_0x22dcb4});for(const _0x420116 of _0x15ee7f)_0x420116['detach'](),_0x420116['isCollapsed']||'$graveyard'==_0x420116['root']['rootName']||this['_addSuggestionMarker'](_0x1510a1,_0x51acb4,_0x540533,_0x420116,Suggestion['getMultiRangeId']());return _0x1fe837;}['markAttributeChange'](_0x26e0f1,_0x1c0ad6,_0x2faabf,_0x3095c3,_0x5410fa){if(_0x26e0f1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5f0976=this['editor']['plugins']['get']('Users')['me']['id'],_0x24a734=Array['from'](this['_suggestions']['values']())['filter'](_0x16b223=>'attribute'==_0x16b223['type']&&_0x16b223['data']['key']==_0x1c0ad6&&_0x16b223['isIntersectingWithRange'](_0x26e0f1));if(this['_trackingSessionId']&&(_0x5410fa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x33353c=this['_findSuggestions'](_0x26e0f1,'insertion')['filter'](({meta:_0x3faf2d})=>_0x3faf2d['isOwn']&&!_0x3faf2d['isInsideObject']&&!_0x3faf2d['isNextTo'])['map'](({suggestion:_0x2a23eb})=>_0x2a23eb);_0x24a734['unshift'](..._0x33353c);}const _0x487873=new Map([[_0x26e0f1,_0x2faabf]]);for(const _0x4b1153 of _0x24a734){const _0x2c2581='attribute'==_0x4b1153['type']?_0x4b1153['data']['oldValue']:void 0x0,_0x302c7a=_0x4b1153['getFirstRange'](),_0x57a777=Array['from'](_0x487873['keys']())['find'](_0x3a6e1e=>_0x3a6e1e['isIntersecting'](_0x302c7a));if(!_0x57a777)continue;const _0x516c1e=_0x57a777['getDifference'](_0x302c7a);this['_suggestionsConversion']['isBlockAttribute'](_0x1c0ad6)&&'insertion'==_0x4b1153['type']&&0x0!=_0x516c1e['length']||(_0x487873['delete'](_0x57a777),_0x516c1e['forEach'](_0x1be2e4=>{_0x487873['set'](_0x1be2e4,_0x2faabf);}),'insertion'!=_0x4b1153['type']&&_0x2c2581!=_0x3095c3&&_0x487873['set'](_0x57a777['getIntersection'](_0x302c7a),_0x2c2581));}const _0x57d938=[];for(const [_0x400651,_0x55048b]of _0x487873){const _0x14d359=uid(),_0x52f2b2={'key':_0x1c0ad6,'oldValue':_0x55048b,'newValue':_0x3095c3};_0x1c0ad6['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x1c0ad6});const _0x9f1ed1=('attribute:'+(_0x1c0ad6+'|'+createFormatSubType({'newValue':_0x3095c3})))['substring'](0x0,0x3c),_0x328b63=this['_setSuggestionData']({'id':_0x14d359,'type':_0x9f1ed1,'data':_0x52f2b2,'createdAt':new Date(),'authorId':_0x5f0976,'attributes':_0x5410fa});_0x57d938['push'](_0x328b63),this['_addSuggestionMarker'](_0x9f1ed1,_0x14d359,_0x5f0976,_0x400651);}return _0x57d938;}['enableDefaultAttributesIntegration'](_0x116820){this['enableCommand'](_0x116820,(_0x2fd867,..._0x195b0b)=>{this['recordAttributeChanges'](()=>{_0x2fd867(..._0x195b0b);});});}['startTrackingSession'](_0xf1e784){return this['_trackingSessionId']=void 0x0!==_0xf1e784?_0xf1e784:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3572b8){return'attribute'==_0x3572b8['type']?_getAttributeKeyFromSubType(_0x3572b8['subType']):null;}['_applyOperationsAsSuggestions'](_0x2393af){if(0x0==_0x2393af['length'])return;const _0x314e86=this['editor'],_0x475095=_0x314e86['plugins']['get'](DocumentCompare),_0x3f9146=[];_0x314e86['model']['change'](_0x565fa4=>{for(let _0x52e03b=0x0;_0x52e03b<_0x2393af['length'];_0x52e03b++){const _0x28bebd=_0x2393af[_0x52e03b];if(_0x28bebd['baseVersion']=_0x314e86['model']['document']['version'],_0x28bebd['isDocumentOperation']=!0x0,_0x475095['isMarkedRemoveOperation'](_0x28bebd)){const _0x1292ca=fixElementSuggestionRange(_0x28bebd['newRange'],_0x314e86['model']);_0x3f9146['unshift'](ModelLiveRange['fromRange'](_0x1292ca));}else switch(_0x28bebd['type']){case'rename':{const _0x36b284=_0x28bebd['oldName'],_0x54eb9d=_0x28bebd['newName'];if(_0x36b284==_0x54eb9d)break;_0x565fa4['batch']['addOperation'](_0x28bebd),_0x314e86['model']['applyOperation'](_0x28bebd);const _0x39b11e='$elementName',_0x181af4=_0x28bebd['position'],_0x86c012=_0x314e86['model']['createRange'](_0x181af4,_0x314e86['model']['createPositionAt'](_0x181af4['nodeAfter'],'end'));this['markAttributeChange'](_0x86c012,_0x39b11e,_0x36b284,_0x54eb9d,{'groupId':uid()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1cf6df=_0x28bebd['oldValue'],_0x51f1c7=_0x28bebd['newValue'];if(_0x1cf6df==_0x51f1c7)break;_0x565fa4['batch']['addOperation'](_0x28bebd),_0x314e86['model']['applyOperation'](_0x28bebd);const _0x24b72a=_0x28bebd['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x24b72a))break;const _0x3706d9=fixElementSuggestionRange(_0x28bebd['range'],_0x314e86['model']);this['markAttributeChange'](_0x3706d9,_0x24b72a,_0x1cf6df,_0x51f1c7,{'groupId':uid()});break;}case'insert':{_0x565fa4['batch']['addOperation'](_0x28bebd),_0x314e86['model']['applyOperation'](_0x28bebd);if(_0x2393af[_0x52e03b+0x1]&&'move'==_0x2393af[_0x52e03b+0x1]['type'])break;const _0xe1691b=_0x28bebd['position'],_0x4acc09=_0x28bebd['howMany'],_0x330bef=fixElementSuggestionRange(_0x314e86['model']['createRange'](_0xe1691b,_0xe1691b['getShiftedBy'](_0x4acc09)),_0x314e86['model']);this['markInsertion'](_0x330bef);break;}case'split':{_0x565fa4['batch']['addOperation'](_0x28bebd),_0x314e86['model']['applyOperation'](_0x28bebd);const _0x55b28d=_0x28bebd['splitPosition'],_0x5a2d3f=_0x28bebd['moveTargetPosition'];this['markInsertion'](_0x314e86['model']['createRange'](_0x55b28d,_0x5a2d3f));break;}case'move':case'remove':_0x565fa4['batch']['addOperation'](_0x28bebd),_0x314e86['model']['applyOperation'](_0x28bebd);}}for(const _0x163c3f of _0x3f9146)_0x163c3f['detach'](),this['markDeletion'](_0x163c3f);});}['_setSuggestionRange'](_0x193752,_0x5269cd){const _0x28efa8=_0x193752['getFirstMarker']();this['_model']['change'](_0x2212e7=>{_0x2212e7['updateMarker'](_0x28efa8,{'range':_0x5269cd});});}['_addThreadToSuggestion'](_0x3c9363){const _0x3f9857=_0x3c9363['id'],_0x39dc39=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3f9857)||this['_commentsRepository']['addCommentThread']({'channelId':_0x39dc39,'threadId':_0x3f9857,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21d2d7=this['_commentsRepository']['getCommentThread'](_0x3f9857);_0x21d2d7['unbind']('isRemovable'),_0x21d2d7['isRemovable']=!0x1,_0x3c9363['commentThread']=_0x21d2d7;}['_checkSuggestionCorrectness'](_0x32150f,_0x555785,_0x436616,_0x4eb193){if(_0x32150f['type']!=_0x555785||_0x32150f['subType']!=_0x436616||_0x32150f['creator']['id']!=_0x4eb193)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x522737,_0x4fdf9c){const _0x5a8513=_0x522737['getFirstRange']();if(_0x4fdf9c['isEqual'](_0x5a8513))_0x522737['removeMarkers']();else{if(_0x5a8513['containsRange'](_0x4fdf9c)){const _0xe3f9c2=this['_model']['createPositionAt'](_0x4fdf9c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x522737,this['_model']['createRange'](_0x5a8513['start'],_0xe3f9c2));const _0x209dc1=uid(),_0x2295a0=_0x522737['creator']['id'],_0x3dbfae=_0x522737['type']+':'+_0x522737['subType'];this['_setSuggestionData']({'id':_0x209dc1,'type':_0x3dbfae,'createdAt':new Date(),'authorId':_0x2295a0,'data':_0x522737['data'],'attributes':_0x522737['attributes']});const _0x939197=this['_model']['createPositionAt'](_0x4fdf9c['end']['parent'],'after'),_0x569d47=this['_model']['createRange'](_0x939197,_0x5a8513['end']);this['_addSuggestionMarker'](_0x3dbfae,_0x209dc1,_0x2295a0,_0x569d47);}else{if(_0x5a8513['containsPosition'](_0x4fdf9c['start'])){const _0x7341f6=this['_model']['createPositionAt'](_0x4fdf9c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x522737,this['_model']['createRange'](_0x5a8513['start'],_0x7341f6));}else{const _0x47f597=this['_model']['createPositionAt'](_0x4fdf9c['end']['parent'],'after');this['_setSuggestionRange'](_0x522737,this['_model']['createRange'](_0x47f597,_0x5a8513['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f272){for(const {suggestion:_0x345d0e,meta:_0x3e75bd}of this['_findSuggestions'](_0x3f272,'insertion')){if(!_0x3e75bd['isOwn'])continue;const _0x42f64c=_0x345d0e['getRanges']();for(const _0x239905 of _0x42f64c)if(!_0x3f272['getDifference'](_0x239905)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11dff0){return this['editor']['plugins']['get']('Users')['getUser'](_0x11dff0);}['_getExternalAuthor'](_0x1482f3){const _0x1f9a9b=this['editor']['plugins']['get']('Users'),_0x136b91=hashObject('external:'+_0x1482f3),_0x377d9=_0x1f9a9b['getUser'](_0x136b91);return _0x377d9||_0x1f9a9b['addUser']({'id':_0x136b91,'name':_0x1482f3});}['_createSuggestion'](_0x2cdb4e,_0x38973b,_0x423eda,_0x5378bf,_0x3612ed,_0x1f130d){const _0x469f57=this['_getAuthorFromId'](_0x5378bf);if(!_0x469f57)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x5378bf,'suggestionId':_0x423eda});const _0x59971c=this['_suggestionFactory']['buildSuggestion'](_0x2cdb4e,_0x38973b,_0x423eda,_0x469f57,_0x3612ed,_0x4de41d=>{this['_updateSuggestionData'](_0x423eda,{'attributes':_0x4de41d});const _0x4a168b=this['getSuggestion'](_0x423eda);this['_joinWithAdjacentSuggestions'](new Set([_0x4a168b])),this['_refreshSuggestionsChain'](new Set([_0x4a168b]));},_0x1f130d);return this['listenTo'](_0x59971c,'accept',()=>{this['_updateSuggestionData'](_0x423eda,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59971c,'discard',()=>{this['_updateSuggestionData'](_0x423eda,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x423eda,_0x59971c),this['_suggestionState']['set'](_0x59971c,'notReady'),_0x59971c;}['_breakSuggestionMarker'](_0x16cbd2,_0x26dee7,_0x1b489c){const _0x2b3dfd=_0x16cbd2['getFirstRange'](),_0x166eb3=_0x2b3dfd['start'],_0x15f409=_0x2b3dfd['end'];this['_setSuggestionRange'](_0x16cbd2,this['_model']['createRange'](_0x166eb3,_0x26dee7));const _0x5bcb52=uid(),_0x5caefe=_0x16cbd2['creator']['id'],_0x28e22d=_0x16cbd2['type']+(_0x16cbd2['subType']?':'+_0x16cbd2['subType']:'');this['_setSuggestionData']({'id':_0x5bcb52,'type':_0x28e22d,'createdAt':new Date(),'authorId':_0x5caefe,'originalSuggestionId':_0x16cbd2['_originalSuggestionId']||_0x16cbd2['id'],'attributes':_0x16cbd2['attributes'],'data':_0x16cbd2['data']});const _0x4aec93=this['_getAttributeKey'](_0x16cbd2);('formatBlock'==_0x16cbd2['type']||_0x4aec93&&this['_suggestionsConversion']['isBlockAttribute'](_0x4aec93))&&(_0x1b489c=this['_model']['createPositionBefore'](_0x1b489c['parent'])),this['_addSuggestionMarker'](_0x28e22d,_0x5bcb52,_0x5caefe,this['_model']['createRange'](_0x1b489c,_0x15f409));}['_findSuggestions'](_0x16049e,_0x46febb=null){const _0x3c7dce=[],_0x5eb3e0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x16049e)||(_0x16049e=[_0x16049e]);for(const _0x417ed3 of this['getSuggestions']()){if(!_0x417ed3['isInContent'])continue;if(_0x46febb&&_0x417ed3['type']!=_0x46febb)continue;let _0x4018ac=!0x1;for(const _0x4ddd6c of _0x417ed3['getRanges']()){for(const _0x47ea31 of _0x16049e){const _0x2273cc=_0x47ea31['start']['isEqual'](_0x4ddd6c['end'])||_0x47ea31['end']['isEqual'](_0x4ddd6c['start']);if(_0x2273cc||_0x47ea31['getIntersection'](_0x4ddd6c)){const _0x433e97=_0x47ea31['containsRange'](_0x4ddd6c)&&_isInObject(this['_model']['schema'],_0x4ddd6c['start'],_0x47ea31),_0x449aa3=_0x4ddd6c['containsRange'](_0x47ea31)&&_isInObject(this['_model']['schema'],_0x47ea31['start'],_0x4ddd6c);_0x3c7dce['push']({'suggestion':_0x417ed3,'meta':{'isOwn':_0x5eb3e0==_0x417ed3['author'],'isNextTo':_0x2273cc,'isInsideObject':_0x433e97,'containsRangeInObject':_0x449aa3}}),_0x4018ac=!0x0;break;}}if(_0x4018ac)break;}}return _0x3c7dce;}['_addSuggestionMarker'](_0x5d1b2d,_0x2a7546,_0x172e40,_0x14bade,_0x4a3109){this['_model']['change'](_0x34dee1=>{let _0x5b952a='suggestion:'+_0x5d1b2d+':'+_0x2a7546+':'+_0x172e40;_0x4a3109&&(_0x5b952a=_0x5b952a+':'+_0x4a3109),_0x34dee1['addMarker'](_0x5b952a,{'range':_0x14bade,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xb91991){const _0x48a7f9=_0xb91991['previous'],_0x28af5f=_0xb91991['next'];_0xb91991['previous']=null,_0xb91991['next']=null,null!=_0x48a7f9&&_0x48a7f9['next']==_0xb91991&&(_0x48a7f9['next']=_0x28af5f),null!=_0x28af5f&&_0x28af5f['previous']==_0xb91991&&(_0x28af5f['previous']=_0x48a7f9),'ready'==this['_suggestionState']['get'](_0xb91991)&&(this['_suggestionState']['set'](_0xb91991,'removed'),this['fire']('suggestionUnloaded',_0xb91991,_0x48a7f9,_0x28af5f));}['_setSuggestionData'](_0xb0b443){const _0x24224e=_0xb0b443['id'],_0x4250eb=this['addSuggestionData'](_0xb0b443);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xe4b68d=this['editor']['plugins']['get']('PendingActions'),_0x1e0f1d=_0x4250eb['hasComments'],_0x55bfd1=_0x4250eb['subType']?_0x4250eb['type']+':'+_0x4250eb['subType']:_0x4250eb['type'],_0x378b63=this['editor']['locale'],_0x25f875=_0xe4b68d['add'](getTranslation$5(_0x378b63,'PENDING_ACTION_SUGGESTION')),_0x496b88={'id':_0x24224e,'type':_0x55bfd1,'hasComments':_0x1e0f1d,'data':_0xb0b443['data']||null,'originalSuggestionId':_0xb0b443['originalSuggestionId']||null,'attributes':_0x4250eb['attributes']};this['_adapter']['addSuggestion'](_0x496b88)['then'](_0x4e6a4d=>{_0x4250eb['_saved']=!0x0,_0xe4b68d['remove'](_0x25f875),_0x4e6a4d&&_0x4e6a4d['createdAt']&&(this['_suggestions']['get'](_0x24224e)['createdAt']=_0x4e6a4d['createdAt']);})['catch'](_0x556319=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4250eb['discard']();}),_0x4250eb['stopListening'](),this['_suggestions']['delete'](_0x4250eb['id']),this['_suggestionState']['delete'](_0x4250eb),_0x556319;});}return _0x4250eb;}['_updateSuggestionData'](_0x3599ca,_0x47f24d){const _0x46133f=this['editor']['plugins']['get']('PendingActions'),_0x266fc6=this['getSuggestion'](_0x3599ca);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x266fc6['_saved']){const _0x24e53c=_0x46133f['add'](getTranslation$5(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3599ca,_0x47f24d)['then'](()=>{_0x46133f['remove'](_0x24e53c);});}else _0x266fc6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3599ca,_0x47f24d);});}}['_getSuggestionData'](_0x3a9e23){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a9e23);}['_handleNewSuggestionMarker'](_0x4fffcd){const {id:_0x4b6eee,type:_0x36d7f5,subType:_0x5e9635,authorId:_0x56d76c}=splitSuggestionMarkerName(_0x4fffcd),_0x5bc7c0=this['_suggestions']['get'](_0x4b6eee)||this['_createSuggestion'](_0x36d7f5,_0x5e9635,_0x4b6eee,_0x56d76c,{});switch(this['_checkSuggestionCorrectness'](_0x5bc7c0,_0x36d7f5,_0x5e9635,_0x56d76c),this['_suggestionState']['get'](_0x5bc7c0)){case'notReady':this['_getSuggestionData'](_0x4b6eee)['then'](_0x4ce99a=>{let _0x23b736=Promise['resolve']();_0x4ce99a['hasComments']&&(_0x23b736=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4b6eee})),_0x23b736['then'](()=>{this['addSuggestionData'](_0x4ce99a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5bc7c0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4b6eee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5bc7c0,'ready'),this['fire']('suggestionLoaded',_0x5bc7c0);break;case'ready':this['fire']('suggestionChanged',_0x5bc7c0);}return _0x5bc7c0['addMarkerName'](_0x4fffcd),_0x5bc7c0;}['_refreshSuggestionsChain'](_0x44ea75){const _0x48c07a=Array['from'](_0x44ea75),_0x5d6acb=_0x48c07a['filter'](_0x1fb579=>'attribute'==_0x1fb579['type']);this['_refreshAttributeSuggestionsChain'](_0x5d6acb);const _0x1d666e=_0x48c07a['filter'](_0x2d3d63=>!_0x2d3d63['isMultiRange']&&'attribute'!=_0x2d3d63['type']),_0x515a3f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f22b7=>!_0x2f22b7['isMultiRange']&&'attribute'!=_0x2f22b7['type']),_0x3480f9=_0x515a3f['filter'](_0x5302c0=>!_0x44ea75['has'](_0x5302c0)),_0xceb8b2=new Map(_0x515a3f['map'](_0x34f3e7=>[_0x34f3e7,this['_suggestionFactory']['getSuggestionCallback'](_0x34f3e7['type'],_0x34f3e7['subType'],'chain')])),_0x19cb14=new Map(_0x515a3f['map'](_0x5c11a0=>[_0x5c11a0,_0x5c11a0['getFirstRange']()])),_0x16ff4b=new Set(),_0x4b66ba=new Set();for(let _0x454a8d=0x0;_0x454a8d<_0x1d666e['length'];_0x454a8d++)_0x1e9470(_0x1d666e[_0x454a8d],_0x1d666e,_0x454a8d+0x1);for(let _0x10a312=0x0;_0x10a312<_0x1d666e['length'];_0x10a312++)_0x1e9470(_0x1d666e[_0x10a312],_0x3480f9,0x0);const _0x25bc98=new Set();for(let _0x5926ef=0x0;_0x5926ef<_0x1d666e['length'];_0x5926ef++){const _0x266d19=_0x1d666e[_0x5926ef];!_0x4b66ba['has'](_0x266d19)&&_0x266d19['previous']&&(_0x25bc98['add'](_0x266d19['previous']),_0x266d19['previous']['next']===_0x266d19&&(_0x266d19['previous']['next']=null),_0x266d19['previous']=null),!_0x16ff4b['has'](_0x266d19)&&_0x266d19['next']&&(_0x25bc98['add'](_0x266d19['next']),_0x266d19['next']['previous']===_0x266d19&&(_0x266d19['next']['previous']=null),_0x266d19['next']=null);}function _0x1e9470(_0x208129,_0x41fb82,_0x483a1e){for(let _0x42c3d3=_0x483a1e;_0x42c3d3<_0x41fb82['length'];_0x42c3d3++){const _0x1f7881=_0x5a9302(_0x208129,_0x41fb82[_0x42c3d3]);_0x1f7881&&(_0x1f7881[0x0]['next']=_0x1f7881[0x1],_0x1f7881[0x1]['previous']=_0x1f7881[0x0],_0x16ff4b['add'](_0x1f7881[0x0]),_0x4b66ba['add'](_0x1f7881[0x1]));}}function _0x5a9302(_0x400d76,_0x58fcf7){if(_0x400d76['author']['id']!==_0x58fcf7['author']['id'])return null;const _0x568cd0=_0xceb8b2['get'](_0x400d76)(_0x400d76,_0x58fcf7,_0x19cb14['get'](_0x400d76),_0x19cb14['get'](_0x58fcf7));if(!_0x568cd0)return null;return _0xceb8b2['get'](_0x58fcf7)(_0x400d76,_0x58fcf7,_0x19cb14['get'](_0x400d76),_0x19cb14['get'](_0x58fcf7))?_0x568cd0[0x1]['commentThread']&&_0x568cd0[0x1]['commentThread']['length']?null:_0x568cd0:null;}_0x25bc98['size']&&this['_refreshSuggestionsChain'](_0x25bc98);}['_refreshAttributeSuggestionsChain'](_0x6adf96){if(0x0==_0x6adf96['length'])return;const _0x182db6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x472473=>'attribute'==_0x472473['type']&&_0x472473['_isDataLoaded']),_0x43dadc=[],_0x50f927=new Map();for(const _0x579ca1 of _0x182db6){const _0x451e7b=hashObject(_0x579ca1['attributes']);_0x50f927['has'](_0x451e7b)||(_0x50f927['set'](_0x451e7b,_0x43dadc['length']),_0x43dadc['push']([]));const _0x230a73=_0x50f927['get'](_0x451e7b);_0x43dadc[_0x230a73]['push'](_0x579ca1);}!(function(){_0x43dadc['sort']((_0x2b2c02,_0x2249e6)=>{const _0x51208e=_0x2b2c02[0x0]['createdAt'],_0x43804c=_0x2249e6[0x0]['createdAt'];return _0x51208e==_0x43804c?_0x2b2c02[0x0]['attributes']['groupId']<_0x2249e6[0x0]['attributes']['groupId']?-0x1:0x1:_0x51208e<_0x43804c?-0x1:0x1;});for(const _0x4cbc8a of _0x43dadc)_0x4cbc8a['sort']((_0x3b9370,_0x253b6e)=>_0x3b9370['id']<_0x253b6e['id']?-0x1:0x1);}());for(let _0x2ee422=0x0;_0x2ee422<_0x43dadc['length'];_0x2ee422++){if(0x0==_0x43dadc[_0x2ee422]['length'])continue;const _0x4cdc14=[];for(let _0x5884e5=_0x2ee422+0x1;_0x5884e5<_0x43dadc['length'];_0x5884e5++)0x0!=_0x43dadc[_0x5884e5]['length']&&_0x5dc59f(_0x43dadc[_0x2ee422],_0x43dadc[_0x5884e5])&&_0x4cdc14['push'](_0x5884e5);for(const _0x22f56a of _0x4cdc14)_0x43dadc[_0x2ee422]=_0x43dadc[_0x2ee422]['concat'](_0x43dadc[_0x22f56a]),_0x43dadc[_0x22f56a]=[];}for(const _0x248e9f of _0x43dadc)for(let _0x1fdab6=0x0;_0x1fdab6<_0x248e9f['length'];_0x1fdab6++){const _0x42f4a6=_0x248e9f[_0x1fdab6+0x1]||null;_0x248e9f[_0x1fdab6]['next']!==_0x42f4a6&&(_0x248e9f[_0x1fdab6]['next']=_0x42f4a6);}for(const _0x3c8912 of _0x43dadc)for(let _0x4a9219=0x0;_0x4a9219<_0x3c8912['length'];_0x4a9219++){const _0x2558d3=_0x3c8912[_0x4a9219-0x1]||null;_0x3c8912[_0x4a9219]['previous']!==_0x2558d3&&(_0x3c8912[_0x4a9219]['previous']=_0x2558d3);}function _0x5dc59f(_0x39c91e,_0x2fb84f){if(_0x39c91e[0x0]['attributes']['groupId']!==_0x2fb84f[0x0]['attributes']['groupId']&&_0x39c91e[0x0]['author']!==_0x2fb84f[0x0]['author'])return!0x1;if(!function(_0x59e7b4,_0x53cce9){if(!_0x59e7b4['hasComments']&&!_0x53cce9['hasComments'])return!0x0;if(_0x59e7b4['hasComments']&&_0x53cce9['hasComments'])return!0x1;if(_0x59e7b4['hasComments']&&_0x53cce9['createdAt']<_0x59e7b4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x53cce9['hasComments']&&_0x59e7b4['createdAt']<_0x53cce9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x39c91e[0x0],_0x2fb84f[0x0]))return!0x1;if(!isEqual(omit(_0x39c91e[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x2fb84f[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x39c91e[0x0]['attributes']['groupId']==_0x2fb84f[0x0]['attributes']['groupId'])return!0x0;if(_0x39c91e[0x0]['attributes']['trackingSessionId']!==_0x2fb84f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x39c91e['every'](_0x569ba4=>_0x2fb84f['some'](_0x4caff2=>_0x569ba4['getFirstRange']()['isEqual'](_0x4caff2['getFirstRange']())))&&_0x2fb84f['every'](_0x2dd5f4=>_0x39c91e['some'](_0x4165d8=>_0x2dd5f4['getFirstRange']()['isEqual'](_0x4165d8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x43df17){const _0x2625ad=Array['from'](_0x43df17),_0x19ee9c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4ab286=_0x19ee9c['filter'](_0x423479=>!_0x43df17['has'](_0x423479)),_0x2087ba=new Map(_0x2625ad['map'](_0x564cb6=>[_0x564cb6,this['_suggestionFactory']['getSuggestionCallback'](_0x564cb6['type'],_0x564cb6['subType'],'join')])),_0x19523e=new Map(_0x19ee9c['map'](_0x329f70=>[_0x329f70,_0x329f70['getRanges']()]));for(let _0x76d836=0x0;_0x76d836<_0x2625ad['length'];_0x76d836++){if(_0x15a73c(this,_0x2625ad[_0x76d836],_0x2625ad,_0x76d836+0x1))return!0x0;}for(let _0x2fbc8d=0x0;_0x2fbc8d<_0x2625ad['length'];_0x2fbc8d++){if(_0x15a73c(this,_0x2625ad[_0x2fbc8d],_0x4ab286,0x0))return!0x0;}return!0x1;function _0x15a73c(_0x59f703,_0x123fc7,_0x15eb2c,_0x496b68){for(let _0x5d97ca=_0x496b68;_0x5d97ca<_0x15eb2c['length'];_0x5d97ca++){const _0x51ec59=_0x15eb2c[_0x5d97ca];if(_0x51ec59['type']!==_0x123fc7['type']||_0x51ec59['author']['id']!==_0x123fc7['author']['id']||_0x51ec59['subType']!==_0x123fc7['subType'])continue;if(!_haveSameAttributes(_0x123fc7,_0x51ec59))continue;if('attribute'==_0x123fc7['type']&&_0x123fc7['data']['oldValue']!=_0x51ec59['data']['oldValue'])continue;if('attribute'==_0x123fc7['type']&&_0x59f703['_suggestionsConversion']['isBlockAttribute'](_0x123fc7['data']['key']))continue;if('formatBlock'==_0x123fc7['type']){const _0x44106a=_0x59f703['editor']['model'],_0x4ea74d=_0x123fc7['getContainedElement']();if(_0x4ea74d&&(_0x44106a['schema']['isObject'](_0x4ea74d)||_0x44106a['schema']['isLimit'](_0x4ea74d)))continue;}const _0x52bdd8=_0x2087ba['get'](_0x123fc7),_0x34dad4=_0x19523e['get'](_0x123fc7),_0x3919ba=_0x19523e['get'](_0x51ec59),_0x1d6e09=_0x123fc7['commentThread']&&_0x123fc7['commentThread']['length'],_0x362688=_0x51ec59['commentThread']&&_0x51ec59['commentThread']['length'];if(!_0x1d6e09&&_0x52bdd8(_0x3919ba,_0x34dad4))return _0x59f703['_joinSuggestions'](_0x51ec59,_0x123fc7),_0x19523e['delete'](_0x123fc7),!0x0;if(!_0x362688&&_0x52bdd8(_0x34dad4,_0x3919ba))return _0x59f703['_joinSuggestions'](_0x123fc7,_0x51ec59),_0x19523e['delete'](_0x51ec59),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26e751,_0x48bc4a){if(_0x26e751['isMultiRange']){for(const _0x44cabd of _0x48bc4a['getRanges']())_0x26e751['addRange'](_0x44cabd);}else{const _0x5f5b0d=_0x48bc4a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26e751,this['_model']['createRange'](_0x26e751['getFirstRange']()['start'],_0x5f5b0d));}_0x48bc4a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2d0004,_0x4c2f81,_0x3eb84c){const _0x5ba073=_0x2d0004['startsWith']('format')||_0x2d0004['startsWith']('attribute')?'FORMATTING':_0x2d0004['toUpperCase']();return getTranslation$5(this['editor']['locale'],_0x4c2f81+'_'+_0x5ba073+'_SUGGESTION_ANNOUNCEMENT',_0x3eb84c);}['_initAriaMarkerChangeAnnouncements'](){const _0x2aca61=this['editor'];if(!_0x2aca61['ui'])return;const {ariaLiveAnnouncer:_0x541dd2}=_0x2aca61['ui'];surroundingMarkersDetector(this['_model'],({left:_0x1c6a79,entered:_0x2cb575})=>{for(const _0x583df8 of _0x1c6a79){const {group:_0x5c310d,type:_0x456ccf}=splitSuggestionMarkerName(_0x583df8['name']);if('suggestion'===_0x5c310d){_0x541dd2['announce'](this['_getMarkerAnnouncementText'](_0x456ccf,'LEAVE'));break;}}for(const _0x17f85d of _0x2cb575){const {group:_0x3b3034,type:_0x5e0cba}=splitSuggestionMarkerName(_0x17f85d['name']);if('suggestion'===_0x3b3034){_0x541dd2['announce'](this['_getMarkerAnnouncementText'](_0x5e0cba,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x295fd1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ba818=this['editor'],_0x2c217c=_0x2ba818['model']['document']['differ']['getChanges']();if(0x0==_0x2c217c['length'])return!0x1;const _0x2c6419=[],_0x42c9d3=_0x2c217c['filter'](_0x217031=>'attribute'==_0x217031['type']),_0x19d614=_0x2c217c['filter'](_0x7b0042=>'insert'==_0x7b0042['type']&&'$text'!=_0x7b0042['name']),_0x596d96=_0x2c217c['filter'](_0x381ab9=>'remove'==_0x381ab9['type']&&'$text'!=_0x381ab9['name']);for(const _0x52ee4d of _0x42c9d3)_0x2c6419['push']({'key':_0x52ee4d['attributeKey'],'newValue':_0x52ee4d['attributeNewValue'],'oldValue':_0x52ee4d['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x52ee4d['range'],_0x2ba818['model'])});for(const _0x4a6453 of _0x19d614){const _0x5082b2=_0x596d96['find'](_0x50b178=>_0x50b178['position']['isEqual'](_0x4a6453['position']));_0x5082b2&&_0x2c6419['push']({'key':renameAttributeKey,'newValue':_0x4a6453['name'],'oldValue':_0x5082b2['name'],'range':_0x2ba818['model']['createRangeOn'](_0x4a6453['position']['nodeAfter'])});}return 0x0!=_0x2c6419['length']&&this['_reduceExistingSuggestions'](_0x295fd1,_0x2c6419);}['_processAttributeSuggestions'](_0x5b8ba4){let _0x59e082=!0x1;const _0x349aa1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ec329=>_0x2ec329['data']['newRange']&&_0x2ec329['name']['startsWith']('suggestion:attribute:'));for(const _0x5af329 of _0x349aa1){const {subType:_0x15027a,id:_0x2577f0}=splitSuggestionMarkerName(_0x5af329['name']),_0x26a575=_0x15027a['split']('|')[0x0];for(const _0x447d80 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x447d80['id']!=_0x2577f0&&'attribute'==_0x447d80['type']&&_0x447d80['data']&&_0x447d80['data']['key']==_0x26a575&&_0x447d80['getFirstRange']()['isIntersecting'](_0x5af329['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x447d80,_0x5af329['data']['newRange'],_0x5b8ba4),_0x59e082=!0x0);}return _0x59e082;}['recordAttributeChanges'](_0x336dd6){this['_recordAttributeSuggestions']=!0x0,_0x336dd6();}['_reduceExistingSuggestions'](_0x365f2b,_0x3c9224){if(0x0==_0x3c9224['length'])return!0x1;let _0x22490c=!0x1;for(const _0x4480af of _0x3c9224){const _0x43bbe1=this['_findSuggestions'](_0x4480af['range'],'attribute')['filter'](_0x4f156e=>!_0x4f156e['meta']['isNextTo'])['map'](_0x4cc6d0=>_0x4cc6d0['suggestion']),_0x472f7f=hashObject({'newValue':_0x4480af['newValue']});_0x43bbe1['filter'](_0x2fb123=>{const [_0x5caf32,_0x19c897]=_0x2fb123['subType']['split']('|');return _0x5caf32==_0x4480af['key']&&_0x19c897!=_0x472f7f;})['forEach'](_0x1f299c=>{this['_reduceSuggestionAttributeRange'](_0x1f299c,_0x4480af['range'],_0x365f2b),_0x22490c=!0x0;});}return _0x22490c;}['_reduceSuggestionAttributeRange'](_0x168aa8,_0x41744b,_0x4216f5){const _0xb86e82=_0x168aa8['getFirstRange']()['getDifference'](_0x41744b);0x0!==_0xb86e82['length']?0x1!==_0xb86e82['length']?this['_breakSuggestionMarker'](_0x168aa8,_0x41744b['start'],_0x41744b['end']):this['_setSuggestionRange'](_0x168aa8,_0xb86e82[0x0]):_0x4216f5['removeMarker'](_0x168aa8['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x16fc5b){this['_editor']=_0x16fc5b,this['_model']=_0x16fc5b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1f7eb0,_0x3bf320,_0x6ea9a7,_0x3ffe82,_0x4de189,_0x5d60c7,_0x1b9f85){return new Suggestion(this['_model'],{'type':_0x1f7eb0,'subType':_0x3bf320,'id':_0x6ea9a7,'originalSuggestionId':_0x1b9f85,'author':_0x3ffe82,'creator':_0x3ffe82,'attributes':_0x4de189,'onAttributesChange':_0x5d60c7,'onAccept':(..._0x59b9a2)=>this['getSuggestionCallback'](_0x1f7eb0,_0x3bf320,'accept')(..._0x59b9a2),'onDiscard':(..._0x5c8bda)=>this['getSuggestionCallback'](_0x1f7eb0,_0x3bf320,'discard')(..._0x5c8bda)});}['registerCustomCallback'](_0x2ab518,_0x19106f,_0x4fdd6a,_0x145577){const _0xa0d82c=_0x2ab518+':'+_0x19106f+':'+_0x4fdd6a;this['_customCallbacks']['set'](_0xa0d82c,_0x145577);}['getSuggestionCallback'](_0x30cc65,_0x34e2d6,_0x380bc2){const _0x34511e=_0x30cc65+':'+_0x34e2d6+':'+_0x380bc2;return this['_customCallbacks']['get'](_0x34511e)||this['_defaultCallbacks']['get'](_0x30cc65+':'+_0x380bc2);}['_registerDefaultCallbacks'](){const _0x145350=()=>!0x1,_0x9ff146=_0x4c772a=>{_0x4c772a['sort']((_0x470ec2,_0x25f7e5)=>_0x470ec2['start']['isBefore'](_0x25f7e5['start'])?0x1:-0x1),this['_model']['change'](_0x28ea6f=>{for(const _0x4dcdb2 of _0x4c772a){let _0x49f597;_0x49f597=_0x4dcdb2['end']['isAtEnd']&&_0x4dcdb2['end']['parent']==_0x4dcdb2['start']['nodeAfter']?_0x28ea6f['createSelection'](_0x4dcdb2['start']['nodeAfter'],'on'):_0x28ea6f['createSelection'](_0x4dcdb2),this['_model']['deleteContent'](_0x49f597,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x44c8c7=(_0x2eb52a,_0x5605cc)=>{_0x5605cc&&this['_model']['change'](_0x538e62=>{const {commandName:_0x20f50c,commandParams:_0x34a8f4=[]}=_0x5605cc,_0x2f612f=_0x2eb52a['map'](_0x49cafe=>(rangeOnOpeningTag(_0x49cafe)&&(_0x49cafe=this['_model']['createRange'](_0x49cafe['end'])),_0x49cafe))['filter'](_0x3ba0e9=>'$graveyard'!==_0x3ba0e9['root']['rootName']);if(_0x2f612f['length']<0x1)return;const _0x133cc7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x23bc21=>ModelLiveRange['fromRange'](_0x23bc21));_0x538e62['setSelection'](_0x2f612f);for(const _0x422f7d of this['_editor']['commands']['commands']())_0x422f7d['refresh']();_0x34a8f4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x20f50c,..._0x34a8f4);const _0x3a7616=_0x133cc7['filter'](_0x1b6401=>'$graveyard'!=_0x1b6401['root']['rootName']);_0x3a7616['length']>0x0&&_0x538e62['setSelection'](_0x3a7616);for(const _0x2fe0a8 of _0x133cc7)_0x2fe0a8['detach']();});},_0x4f5bf5=(_0x8e74e7,_0x3bd650)=>0x1==_0x8e74e7['length']&&0x1==_0x3bd650['length']&&_0x8e74e7[0x0]['end']['isEqual'](_0x3bd650[0x0]['start']),_0x5bc372=(_0x240b2f,_0x141011,_0xa5b8f6,_0x529691)=>canChainSuggestions(_0x240b2f,_0x141011,_0xa5b8f6,_0x529691)?[_0x240b2f,_0x141011]:canChainSuggestions(_0x141011,_0x240b2f,_0x529691,_0xa5b8f6)?[_0x141011,_0x240b2f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x145350),this['_defaultCallbacks']['set']('insertion:discard',_0x9ff146),this['_defaultCallbacks']['set']('insertion:join',_0x4f5bf5),this['_defaultCallbacks']['set']('insertion:chain',_0x5bc372),this['_defaultCallbacks']['set']('deletion:accept',_0x9ff146),this['_defaultCallbacks']['set']('deletion:discard',_0x145350),this['_defaultCallbacks']['set']('deletion:join',_0x4f5bf5),this['_defaultCallbacks']['set']('deletion:chain',_0x5bc372),this['_defaultCallbacks']['set']('formatInline:accept',_0x44c8c7),this['_defaultCallbacks']['set']('formatInline:discard',_0x145350),this['_defaultCallbacks']['set']('formatInline:join',_0x4f5bf5),this['_defaultCallbacks']['set']('formatInline:chain',_0x145350),this['_defaultCallbacks']['set']('formatBlock:accept',_0x44c8c7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x145350),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f5bf5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x145350),this['_defaultCallbacks']['set']('attribute:accept',_0x145350),this['_defaultCallbacks']['set']('attribute:discard',(_0x24eb34,_0x5cff25)=>{if(!_0x5cff25)return;const _0x44bd28=this['_editor']['plugins']['get'](SuggestionsConversion);this['_model']['change'](_0x59ba99=>{if(_0x5cff25['key']==renameAttributeKey)for(const _0x31a2f3 of _0x24eb34){const _0x2f07b6=_0x31a2f3['start']['nodeAfter'],_0x442691=_0x5cff25['oldValue'];_0x59ba99['rename'](_0x2f07b6,_0x442691);}else{if(_0x44bd28['isBlockAttribute'](_0x5cff25['key'])){for(const _0x543c8e of _0x24eb34)void 0x0!==_0x5cff25['oldValue']?_0x59ba99['setAttribute'](_0x5cff25['key'],_0x5cff25['oldValue'],_0x543c8e['start']['nodeAfter']):_0x59ba99['removeAttribute'](_0x5cff25['key'],_0x543c8e['start']['nodeAfter']);}else{for(const _0x5f1554 of _0x24eb34)_0x5cff25['oldValue']?_0x59ba99['setAttribute'](_0x5cff25['key'],_0x5cff25['oldValue'],_0x5f1554):_0x59ba99['removeAttribute'](_0x5cff25['key'],_0x5f1554);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f5bf5);}}function getIntersectionsWithMultipleRanges(_0xac72c0,_0x961c6f){const _0x67a168=[];for(const _0x1860f6 of _0x961c6f){const _0x1f77c2=_0xac72c0['getIntersection'](_0x1860f6);_0x1f77c2&&_0x67a168['push'](_0x1f77c2);}return _0x67a168;}function getDifferencesWithMultipleRanges(_0x2b8fc4,_0x1e07ec){const _0x494925=[_0x2b8fc4];for(const _0x3a4231 of _0x1e07ec){let _0x4146fc=0x0;for(;_0x4146fc<_0x494925['length'];){const _0x557d8d=_0x494925[_0x4146fc]['getDifference'](_0x3a4231);_0x494925['splice'](_0x4146fc,0x1,..._0x557d8d),_0x4146fc+=_0x557d8d['length'];}}return _0x494925;}function _isInObject(_0x1d65a1,_0x42f49c,_0x363ae5){for(const _0x39f8f9 of _0x42f49c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39f8f9['root']==_0x39f8f9)return!0x1;if(!_0x363ae5['containsItem'](_0x39f8f9))return!0x1;if(_0x1d65a1['isObject'](_0x39f8f9)||_0x1d65a1['isLimit'](_0x39f8f9))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x498ed2){return _0x498ed2['end']['parent']==_0x498ed2['start']['nodeAfter']&&_0x498ed2['end']['isAtStart'];}function rangeOnClosingTag(_0x47a830){return _0x47a830['start']['parent']==_0x47a830['end']['nodeBefore']&&_0x47a830['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x18a01f,_0x3e7687,_0x347d5f,_0x388674){const _0x318166=_0x166cf1=>!_0x166cf1['item']['is']('$textProxy')&&!_0x388674['isObject'](_0x166cf1['item']),_0x3f68a7=_0x18a01f['start']['getLastMatchingPosition'](_0x318166),_0x4d94e6=_0x18a01f['end']['getLastMatchingPosition'](_0x318166,{'direction':'backward'});return(!_0x18a01f['start']['isEqual'](_0x3f68a7)||!_0x18a01f['end']['isEqual'](_0x4d94e6))&&(_0x3f68a7['isBefore'](_0x4d94e6)?_0x347d5f['updateMarker'](_0x3e7687,{'range':_0x347d5f['createRange'](_0x3f68a7,_0x4d94e6)}):_0x347d5f['removeMarker'](_0x3e7687),!0x0);}function createFormatSubType(_0x2066a2){return hashObject(_0x2066a2);}function isCorrectFormatBlockSuggestionRange(_0x409b49){const _0x1eba35=_0x409b49['start']['nodeAfter'];return _0x1eba35&&_0x1eba35['is']('element');}function isEmptyRange(_0x54fb6f){return rangeOnOpeningTag(_0x54fb6f)||rangeOnClosingTag(_0x54fb6f);}function isIntersectingWithOtherMarkers(_0x3e97ef,_0x7a6cc3){try{const _0x3d6aec=_0x3e97ef['getRange']();for(const _0x358d19 of _0x7a6cc3)if(_0x3e97ef!==_0x358d19&&_0x3d6aec&&_0x3d6aec['isIntersecting'](_0x358d19['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixAttributeSuggestionRange(_0x10184a,_0x265321){return null==_0x10184a['end']['nodeBefore']&&_0x10184a['end']['parent']==_0x10184a['start']['nodeAfter']?createBlockFormatRangeForElement(_0x10184a['start']['nodeAfter'],_0x265321):_0x10184a;}function createBlockFormatRangeForElement(_0x4e0728,_0x3e89de){const _0x533d8d=_0x3e89de['schema']['isObject'](_0x4e0728)||_0x3e89de['schema']['isSelectable'](_0x4e0728);return _0x3e89de['createRange'](_0x3e89de['createPositionAt'](_0x4e0728,'before'),_0x533d8d?_0x3e89de['createPositionAfter'](_0x4e0728):_0x3e89de['createPositionAt'](_0x4e0728,'end'));}function canChainSuggestions(_0x1fd395,_0x592497,_0x526b06,_0x3bf37c){return!!_haveSameAttributes(_0x1fd395,_0x592497)&&_0x526b06['end']['isEqual'](_0x3bf37c['start']);}function _haveSameAttributes(_0x39f447,_0x36f9e3){if(!_0x39f447['_isDataLoaded']||!_0x36f9e3['_isDataLoaded'])return!0x1;const _0x374b8f=new Set(Object['keys'](_0x39f447['attributes'])),_0x50999b=new Set(Object['keys'](_0x36f9e3['attributes']));if(_0x374b8f['delete']('groupId'),_0x50999b['delete']('groupId'),0x0==_0x374b8f['size']&&0x0==_0x50999b['size'])return!0x0;if(_0x374b8f['size']!=_0x50999b['size'])return!0x1;const _0x58ec50={..._0x39f447['attributes']},_0x4209c7={..._0x36f9e3['attributes']};return delete _0x58ec50['groupId'],delete _0x4209c7['groupId'],JSON['stringify'](_0x58ec50)==JSON['stringify'](_0x4209c7);}function _areSimilarAttributes(_0xa6043c,_0x398bea){const _0x372fea=_cleanUpAttributes(_0xa6043c['attributes']),_0x27081a=_cleanUpAttributes(_0x398bea);if(!_0xa6043c['_isDataLoaded'])return!0x1;for(const _0x34f37d of Object['keys'](_0x27081a))if(!isEqual(_0x372fea[_0x34f37d],_0x27081a[_0x34f37d]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x5598fd){const _0x55b17c=Object['assign']({},_0x5598fd);return delete _0x55b17c['skipNestingCheck'],delete _0x55b17c['tablePasteChainId'],_0x55b17c;}function _getAttributeKeyFromSubType(_0x29c75a){return _0x29c75a['split']('|')[0x0];}async function checkLicense$5(_0x499c7c){const _0x58abaa=_0x3f90b8([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x18a2e1=window[_0x3f90b8([0x44,0x61,0x74,0x65])][_0x3f90b8([0x6e,0x6f,0x77])](),_0x2d126e=_0x499c7c[_0x3f90b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x462bde=new window[(_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a8f3d=>{_0x2d126e[_0x3f90b8([0x6f,0x6e,0x63,0x65])](_0x3f90b8([0x72,0x65,0x61,0x64,0x79]),_0x3a8f3d);}),_0x32d939={[_0x3f90b8([0x6b,0x74,0x79])]:_0x3f90b8([0x45,0x43]),[_0x3f90b8([0x75,0x73,0x65])]:_0x3f90b8([0x73,0x69,0x67]),[_0x3f90b8([0x63,0x72,0x76])]:_0x3f90b8([0x50,0x2d,0x32,0x35,0x36]),[_0x3f90b8([0x78])]:_0x3f90b8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3f90b8([0x79])]:_0x3f90b8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3f90b8([0x61,0x6c,0x67])]:_0x3f90b8([0x45,0x53,0x32,0x35,0x36])},_0x2cf963=_0x2d126e[_0x3f90b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f90b8([0x67,0x65,0x74])](_0x3f90b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4deeb9=await(async function(){let _0x58b892,_0x14a2db=null,_0x3b4aea=null;try{if(_0x2cf963==_0x3f90b8([0x47,0x50,0x4c]))return _0x3f90b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58b892=(function(){const _0x25ecd5=_0x2cf963[_0x3f90b8([0x73,0x70,0x6c,0x69,0x74])](_0x3f90b8([0x2e]));if(0x3!=_0x25ecd5[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4b85c7=_0x25ecd5[0x1];return _0x482fc5(_0x4b85c7);function _0x482fc5(_0xba42ef){const _0x1494ca=_0x102c70(_0xba42ef);return _0x1494ca&&_0x5d3169()?_0x1494ca:null;function _0x5d3169(){const _0x463230=_0x1494ca[_0x3f90b8([0x6a,0x74,0x69])],_0x416de8=window[_0x3f90b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x463230[_0x3f90b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x463230[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x524606={..._0x1494ca,[_0x3f90b8([0x6a,0x74,0x69])]:_0x463230[_0x3f90b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x463230[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x524606[_0x3f90b8([0x76,0x63])],_0x386fc2(_0x524606)==_0x416de8;}}}()),!_0x58b892)return _0x3f90b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x58b892[_0x3f90b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b4aea=function(_0x38361d,_0x3039fe){return new window[(_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e387a=>{if(_0x3366db())return _0x1e387a(_0x3f90b8([0x56,0x61,0x6c,0x69,0x64]));_0x1f283b(),_0x2d126e[_0x3f90b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f90b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x439e32=!0x1;const _0x15dd3b=uid();function _0x4a5f72(_0x5cb8df){return!!_0x5cb8df&&(typeof _0x5cb8df===_0x3f90b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cb8df===_0x3f90b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cb8df[_0x3f90b8([0x74,0x68,0x65,0x6e])]===_0x3f90b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cb8df[_0x3f90b8([0x63,0x61,0x74,0x63,0x68])]===_0x3f90b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x187185(_0x2fac3b){_0xb27c2a(_0x2fac3b)[_0x3f90b8([0x74,0x68,0x65,0x6e])](_0x42d85f=>{if(!_0x42d85f||_0x42d85f[_0x3f90b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f90b8([0x6f,0x6b]))return _0x3f90b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e4abc(_0x386fc2(_0x15dd3b+_0x3039fe))!=_0x42d85f[_0x3f90b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f90b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f90b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f90b8([0x74,0x68,0x65,0x6e])](_0x5d744f=>(_0x33dbbc(),_0x5d744f),()=>{const _0x1dd615=_0xb0c7();return null==_0x1dd615?(_0x33dbbc(),_0x3f90b8([0x56,0x61,0x6c,0x69,0x64])):_0x3f90b8(_0x18a2e1-_0x1dd615>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f90b8([0x74,0x68,0x65,0x6e])](_0x1e387a)[_0x3f90b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e387a(_0x3f90b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26eb81=0x36ee80;function _0x33dbbc(){const _0x43c2fa=_0x3f90b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e4abc(_0x386fc2(_0x38361d)),_0x184799=_0x3fa267(_0x4e4abc(window[_0x3f90b8([0x4d,0x61,0x74,0x68])][_0x3f90b8([0x63,0x65,0x69,0x6c])](_0x18a2e1/_0x26eb81)));window[_0x3f90b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f90b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43c2fa,_0x184799);}function _0xb0c7(){const _0x440a02=_0x3f90b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e4abc(_0x386fc2(_0x38361d)),_0x2d0789=window[_0x3f90b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f90b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x440a02);return _0x2d0789?window[_0x3f90b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fa267(_0x2d0789),0x10)*_0x26eb81:null;}function _0xb27c2a(_0x2adc00){return new window[(_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47bfb0,_0x1d9e31)=>{_0x2adc00[_0x3f90b8([0x74,0x68,0x65,0x6e])](_0x47bfb0,_0x1d9e31),window[_0x3f90b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d9e31,0x1d4c0);});}}_0x2d126e[_0x3f90b8([0x6f,0x6e])](_0x3f90b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbbc861,_0x38fb6b)=>{if(_0x38fb6b[0x0]!=_0x38361d)return _0x1e387a(_0x3f90b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38fb6b[0x1]={..._0x38fb6b[0x1],[_0x3f90b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15dd3b};},{[_0x3f90b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f90b8([0x68,0x69,0x67,0x68])}),_0x2d126e[_0x3f90b8([0x6f,0x6e])](_0x3f90b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bd472=>{_0x4a5f72(_0x4bd472[_0x3f90b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x439e32=!0x0,_0x187185(_0x4bd472[_0x3f90b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f90b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f90b8([0x6c,0x6f,0x77])}),_0x462bde[_0x3f90b8([0x74,0x68,0x65,0x6e])](()=>{_0x439e32||_0x1e387a(_0x3f90b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3366db(){return _0x2d126e[_0x3f90b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f90b8([0x76,0x69,0x65,0x77])][_0x3f90b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f90b8([0x61,0x75,0x74,0x6f]);}function _0x1f283b(){_0x2d126e[_0x3f90b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f90b8([0x76,0x69,0x65,0x77])][_0x3f90b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f90b8([0x61,0x75,0x74,0x6f]);}}(_0x58b892[_0x3f90b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58b892[_0x3f90b8([0x6a,0x74,0x69])]));const _0x3e8001=await(async function(){let _0x290cac=!0x0;try{const _0x434193=_0x2cf963[_0x3f90b8([0x73,0x70,0x6c,0x69,0x74])](_0x3f90b8([0x2e])),[_0x41fa10,_0x4723a2,_0x2ab0da]=_0x434193;return _0x36375d(_0x41fa10),await _0x57d86e(_0x41fa10,_0x4723a2,_0x2ab0da),_0x290cac;}catch{return!0x1;}function _0x36375d(_0x2bc2f1){const _0x4d8df7=_0x102c70(_0x2bc2f1);_0x4d8df7&&_0x4d8df7[_0x3f90b8([0x61,0x6c,0x67])]==_0x3f90b8([0x45,0x53,0x32,0x35,0x36])||(_0x290cac=!0x1);}async function _0x57d86e(_0x14995a,_0x4d17bd,_0x299951){const _0x108b78=window[_0x3f90b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f90b8([0x66,0x72,0x6f,0x6d])](_0x9746b6(_0x299951),_0x43a0c5=>_0x43a0c5[_0x3f90b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc3169=new window[(_0x3f90b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f90b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14995a+_0x3f90b8([0x2e])+_0x4d17bd),_0x4809e4=window[_0x3f90b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f90b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4809e4)return;const _0x11908d=await _0x4809e4[_0x3f90b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f90b8([0x6a,0x77,0x6b]),_0x32d939,{[_0x3f90b8([0x6e,0x61,0x6d,0x65])]:_0x3f90b8([0x45,0x43,0x44,0x53,0x41]),[_0x3f90b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f90b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f90b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4809e4[_0x3f90b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f90b8([0x6e,0x61,0x6d,0x65])]:_0x3f90b8([0x45,0x43,0x44,0x53,0x41]),[_0x3f90b8([0x68,0x61,0x73,0x68])]:{[_0x3f90b8([0x6e,0x61,0x6d,0x65])]:_0x3f90b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11908d,_0x108b78,_0xc3169)||(_0x290cac=!0x1);}}());return _0x3e8001?(function(){const _0x3b0b0e=_0x58b892[_0x3f90b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b0b0e)return!0x1;if(_0x3b0b0e[_0x3f90b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f90b8([0x2a])))return!0x0;if(_0x3b0b0e[_0x3f90b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f90b8([0x54,0x43])))return!0x0;if(_0x3b0b0e[_0x3f90b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f90b8([0x52,0x54,0x43]))){if(_0x5a5676(_0x3f90b8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x24bb60=_0x3f90b8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x2d126e[_0x3f90b8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f90b8([0x67,0x65,0x74])](_0x24bb60))[_0x3f90b8([0x73,0x74,0x61,0x74,0x65])]==_0x3f90b8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x5a5676(_0x3f90b8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x5a5676(_0x3f90b8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}var _0x24bb60;return!0x1;}())?(function(){const _0xd1867=[_0x3f90b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f90b8([0x74,0x72,0x69,0x61,0x6c])][_0x3f90b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b892[_0x3f90b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18a2e1/0x3e8:0x6a03bf00;return _0x58b892[_0x3f90b8([0x65,0x78,0x70])]<_0xd1867;}())?_0x3f90b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4ea312=_0x58b892[_0x3f90b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ea312||0x0==_0x4ea312[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36d3a2}=new URL(window[_0x3f90b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ea312[_0x3f90b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36d3a2))return!0x0;const _0x5596e5=_0x36d3a2[_0x3f90b8([0x73,0x70,0x6c,0x69,0x74])](_0x3f90b8([0x2e]));return _0x4ea312[_0x3f90b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb21b8a=>_0xb21b8a[_0x3f90b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f90b8([0x2a])))[_0x3f90b8([0x6d,0x61,0x70])](_0x222be9=>_0x222be9[_0x3f90b8([0x73,0x70,0x6c,0x69,0x74])](_0x3f90b8([0x2e])))[_0x3f90b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cf1e6=>_0x4cf1e6[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5596e5[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f90b8([0x6d,0x61,0x70])](_0x3c39f9=>Array(_0x5596e5[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c39f9[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f90b8([0x66,0x69,0x6c,0x6c])](_0x3c39f9[0x0]===_0x3f90b8([0x2a])?_0x3f90b8([0x2a]):'')[_0x3f90b8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c39f9))[_0x3f90b8([0x73,0x6f,0x6d,0x65])](_0x550819=>_0x5596e5[_0x3f90b8([0x65,0x76,0x65,0x72,0x79])]((_0x3248d4,_0x304020)=>_0x550819[_0x304020]===_0x3248d4||_0x550819[_0x304020]===_0x3f90b8([0x2a])));}())?(_0x58b892[_0x3f90b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f90b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14a2db=function(_0x526fa2){const _0x27c074=new window[(_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36411e=>setTimeout(_0x36411e,0x93ecc)),_0x476916=_0x462bde[_0x3f90b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ffc6a=>{let _0x59712a=0x0;_0x2d126e[_0x3f90b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f90b8([0x6f,0x6e])](_0x3f90b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bb093,_0x29346e)=>{_0x29346e[0x0][_0x3f90b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59712a++,0x5e8==_0x59712a&&(_0x8ffc6a(),_0x3bb093[_0x3f90b8([0x6f,0x66,0x66])]());});})),_0x10edb7=[_0x27c074,_0x476916];return window[_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f90b8([0x72,0x61,0x63,0x65])](_0x10edb7)[_0x3f90b8([0x74,0x68,0x65,0x6e])](()=>_0x526fa2);}(_0x3f90b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x14a2db&&_0x3b4aea)return new window[(_0x3f90b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13188f,_0x10918c)=>{_0x14a2db[_0x3f90b8([0x74,0x68,0x65,0x6e])](_0x13188f,_0x10918c),_0x3b4aea[_0x3f90b8([0x74,0x68,0x65,0x6e])](_0x42556a=>{_0x42556a!=_0x3f90b8([0x56,0x61,0x6c,0x69,0x64])&&_0x13188f(_0x42556a);},_0x10918c);});return _0x14a2db||_0x3b4aea||_0x3f90b8([0x56,0x61,0x6c,0x69,0x64]);}())):_0x3f90b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f90b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f90b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f90b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x102c70(_0x43553d){return _0x43553d[_0x3f90b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f90b8([0x65,0x79]))?JSON[_0x3f90b8([0x70,0x61,0x72,0x73,0x65])](_0x9746b6(_0x43553d)):null;}function _0x9746b6(_0x4333cd){return window[_0x3f90b8([0x61,0x74,0x6f,0x62])](_0x4333cd[_0x3f90b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f90b8([0x2b]))[_0x3f90b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f90b8([0x2f])));}function _0x386fc2(_0x4d74b8){let _0x1123c6=0x1505;function _0x19eb5d(_0x38521d){for(let _0x3dfac8=0x0;_0x3dfac8<_0x38521d[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dfac8++){const _0x10302e=_0x38521d[_0x3f90b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dfac8);_0x1123c6=(_0x1123c6<<0x5)+_0x1123c6+_0x10302e,_0x1123c6&=_0x1123c6;}}return function _0x50167c(_0x360462){Array[_0x3f90b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x360462)?_0x360462[_0x3f90b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50167c):_0x360462&&typeof _0x360462==_0x3f90b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f90b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x360462)[_0x3f90b8([0x73,0x6f,0x72,0x74])]()[_0x3f90b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3739f2,_0x520fff])=>{_0x19eb5d(_0x3739f2),_0x50167c(_0x520fff);}):_0x19eb5d(window[_0x3f90b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x360462));}(_0x4d74b8),_0x1123c6>>>0x0;}function _0x4e4abc(_0x24a943){return _0x24a943[_0x3f90b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f90b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f90b8([0x30]));}function _0x3fa267(_0x235580){return _0x235580[_0x3f90b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f90b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f90b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a5676(_0x5e6370){return _0x2d126e[_0x3f90b8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3f90b8([0x68,0x61,0x73])](_0x5e6370);}function _0x3e93f6(){}function _0x3f90b8(_0x1c8fad){return _0x1c8fad['map'](_0x18710b=>String['fromCharCode'](_0x18710b))['join']('');}!function(_0x12a6a2){const _0x2fcbea=(function(){const _0x416700=window[_0x3f90b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f90b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f90b8([0x6e,0x6f,0x77])]())[_0x3f90b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f90b8([0x2e]),'');let _0x43bb94=_0x3f90b8([0x52]);for(let _0x1086c8=0x0;_0x1086c8<_0x416700[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1086c8+=0x2){let _0x36f41e=window[_0x3f90b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x416700[_0x3f90b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1086c8,_0x1086c8+0x2));_0x36f41e>=_0x58abaa[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36f41e-=_0x58abaa[_0x3f90b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43bb94+=_0x58abaa[_0x36f41e];}return _0x43bb94;}());_0x2d126e[_0x2fcbea]=_0x3f90b8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x12a6a2,_0x12a6a2!=_0x3f90b8([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x462bde,_0x2d126e[_0x3f90b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f90b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e93f6,_0x2d126e[_0x3f90b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f90b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e93f6,_0x2d126e[_0x3f90b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f90b8([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4deeb9);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17c00c,_0x4851a5,_0x5f1e8a,_0x9750b5){super(),this['model']=_0x4851a5,this['view']=_0x5f1e8a,this['commentThreadController']=_0x9750b5,this['_editor']=_0x17c00c,this['_acceptCommand']=_0x17c00c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17c00c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x327ce5,_0x166d6c)=>_0x327ce5||_0x166d6c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x595af3=>_0x595af3&&this['_editor']['model']['canEditAt'](_0x4851a5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x163c69=>_0x163c69&&this['_editor']['model']['canEditAt'](_0x4851a5['getRanges']())),this['_pendingAction']=null,_0x5f1e8a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5f1e8a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5f1e8a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5f1e8a,'change:isDirty',()=>{_0x5f1e8a['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x4ee25b=getTranslation$5(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4ee25b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends View{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2de1ef,_0x409b26,_0x57f3b1,_0x13c305){super(_0x2de1ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0x2de1ef,getTranslation$5(_0x2de1ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x409b26['authoredAt']),this['bind']('authoredAt')['to'](_0x409b26),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x409b26,'authoredAt',this,'descriptionParts',(_0x14bd88,_0x1e59c5,_0x481866)=>{const _0x55c9fb=_0x481866['map'](_0x17f52a=>renderDescription(_0x17f52a['content']))['join']('.\x20')+'.';return getTranslation$5(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x14bd88-0x1,_0x409b26['author']['name'],_0x1e59c5?_0x13c305['formatDateTime'](_0x1e59c5):'',new DOMParser()['parseFromString'](_0x55c9fb,'text/html')['body']['textContent']]);}),this['focusables']=new ViewCollection(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2b9027=>_0x2b9027['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x409b26,this['_localUser']=_0x57f3b1,this['_config']=_0x13c305,_0x13c305['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),setupThreadKeyboardNavigation(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x53c386}=this['_config'];this['commentsListView']=new _0x53c386(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x47ef87=>_0x47ef87+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2904f8,_0x23748c)=>_0x2904f8||!!_0x23748c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1e9f68}=this['_config'],_0xa65bce=new _0x1e9f68(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x47b855=_0xa65bce['commentInputView'];return _0xa65bce['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x47b855,'value',(_0x47453b,_0x23b621,_0x1d26f9)=>!!_0x1d26f9||_0x47453b&&!_0x23b621),_0x47b855['on']('submit',(_0x427dba,_0x1e7ff7)=>{this['fire']('addComment',_0x1e7ff7),_0x47b855['editor']['setData']('');}),_0x47b855['on']('cancel',()=>this['focus']()),_0x47b855['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xa65bce;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x54cdad,_0x1d1b3c,_0x95c4a7,_0x59efde){super(_0x54cdad,_0x1d1b3c,_0x95c4a7,_0x59efde),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb87de8=>_0xb87de8&&_0xb87de8[0x0]?_0xb87de8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22a2ce,_0x210bcf)=>{let _0x1a82a8='';for(const _0x3e8bb6 of _0x22a2ce)_0x1a82a8+='<p>'+renderDescription(_0x3e8bb6['content'],_0x3e8bb6['color'])+'</p>';return _0x210bcf?_0x1a82a8:trimHtml(_0x1a82a8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x59efde['SuggestionView'](_0x54cdad,_0x1d1b3c,{'formatDateTime':_0x59efde['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2ba429=this['bindTemplate'],_0x1f0459=[this['suggestionView']];this['commentsListView']&&_0x1f0459['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f0459['push'](this['commentThreadInputView']),_0x1f0459['push'](this['ariaDescriptionView']);const _0xc163ad={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ba429['if']('isActive','ck-suggestion-wrapper--active'),_0x2ba429['to']('type',_0x4514ae=>'ck-suggestion-'+_0x4514ae),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2ba429['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f0459};return _0xc163ad;}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class SuggestionView extends View{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x120b28,_0x100295,_0x1f2820){super(_0x120b28),this['_model']=_0x100295,this['_config']=_0x1f2820,this['set']('description',''),this['bind']('authoredAt')['to'](_0x100295),this['acceptButton']=this['_createButton'](getTranslation$5(_0x120b28,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$5(_0x120b28,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x120b28,_0x100295['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new ViewCollection([this['acceptButton'],this['discardButton']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b2eae=>_0x3b2eae['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x146c30=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x146c30['innerHTML']=this['description'],this['on']('change:description',(_0x252cc1,_0x5e04d9,_0x1ab391)=>{_0x146c30['innerHTML']=_0x1ab391;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2679dc=this['bindTemplate'],_0x3b8a66=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2679dc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2679dc['to']('authoredAt',_0x2836f6=>this['_config']['formatDateTime'](_0x2836f6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3b8a66['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3b8a66}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$5(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$5(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$5(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):getTranslation$5(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3b6385,_0x20af30,_0x7cbe2a,_0x5a7ed7,_0x59acfd){const _0x552e3a=new LateFocusButtonView(this['locale']);return _0x552e3a['set']({'label':_0x3b6385,'icon':_0x20af30,'tooltip':!0x0,'tooltipPosition':_0x59acfd}),_0x552e3a['extendTemplate']({'attributes':{'class':_0x7cbe2a}}),_0x552e3a['on']('execute',()=>{this['fire'](_0x5a7ed7,this['_model']['id']);}),_0x552e3a;}['_setupKeyboardNavigation'](){const _0x37d50f=this['element'];this['keystrokes']['listenTo'](_0x37d50f);for(const _0x23691c of this['focusables'])this['focusTracker']['add'](_0x23691c['element']),this['keystrokes']['listenTo'](_0x23691c['element']);this['keystrokes']['set']('enter',(_0x2ad855,_0xaa88fc)=>{_0x37d50f===_0x2ad855['target']&&(this['focusCycler']['focusFirst'](),_0xaa88fc());}),this['keystrokes']['set']('esc',(_0x1221d8,_0x24f14c)=>{_0x37d50f!==_0x1221d8['target']&&(this['focus'](),_0x24f14c());});}}class TrackChangesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,Users,CommentsRepository,Annotations,EditorAnnotations];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4726c1){super(_0x4726c1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28f803=this['editor']['config'];_0x28f803['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x28f803['define']('trackChanges.SuggestionView',SuggestionView),_0x28f803['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28f803['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x29f4e7,_0x269af1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f463f,_0x2d5031]of this['_handleControllerBuffer']){const _0x25519d=this['_suggestionToController']['has'](_0x3f463f);_0x25519d||_0x2d5031?_0x25519d&&_0x2d5031&&this['_destroyController'](_0x3f463f):this['_initializeController'](_0x3f463f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](EditorAnnotations)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x29f4e7,_0x269af1);}['init'](){const _0x4153af=this['editor'],_0x56c51d=_0x4153af['plugins']['get'](TrackChangesEditing),_0x23e1b4=_0x4153af['plugins']['get'](Annotations),_0x59e8b3=_0x4153af['plugins']['get'](EditorAnnotations),_0x5786cb=_0x4153af['plugins']['get'](CommentsRepository);this['_addUIComponentsToFactory'](),_0x59e8b3['addSourceCollector'](()=>{const _0x523dae=[];for(const [_0x5e12f0,_0x28ad14]of Array['from'](this['_suggestionToController'])){const _0x32d232=_0x5e12f0['getAllAdjacentSuggestions'](),_0x1019b7=[];for(const _0x28da7f of _0x32d232){if(!_0x28da7f['isInContent'])continue;if(_0x28da7f['isMultiRange']){_0x1019b7['push'](..._0x28da7f['getRanges']());continue;}const _0x10dda6=_0x28da7f['getFirstRange']();if(_0x1019b7['length']>0x0){const _0x4ec40d=_0x1019b7[0x0]['getJoined'](_0x10dda6);if(_0x4ec40d){_0x1019b7[0x0]=_0x4ec40d;continue;}}_0x1019b7['push'](_0x10dda6);}_0x523dae['push']([_0x28ad14['view'],_0x1019b7]);}return _0x523dae;}),this['listenTo'](_0x56c51d,'suggestionLoaded',(_0x62cf59,_0x6c3dc7)=>{this['listenTo'](_0x6c3dc7,'change:previous',(_0x2f2111,_0xb31d34,_0x448568,_0x42226a)=>{_0x6c3dc7['isInContent']&&(null==_0x448568?(this['_updateController'](_0x42226a['head']),this['_handleSuggestionControllerDelayed'](_0x6c3dc7,!0x1)):(this['_updateController'](_0x448568['head']),null==_0x42226a&&this['_handleSuggestionControllerDelayed'](_0x6c3dc7,!0x0)));}),null!==_0x6c3dc7['previous']?this['_updateController'](_0x6c3dc7['head']):this['_handleSuggestionControllerDelayed'](_0x6c3dc7,!0x1);}),this['listenTo'](_0x56c51d,'suggestionUnloaded',(_0x4db415,_0x4b89f7,_0x27b865)=>{this['stopListening'](_0x4b89f7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b89f7),this['_suggestionToController']['has'](_0x4b89f7)&&this['_destroyController'](_0x4b89f7),_0x27b865&&this['_updateController'](_0x27b865['head']);}),this['listenTo'](_0x56c51d,'suggestionChanged',(_0x5a9541,_0x6fea4a)=>{this['_updateController'](_0x6fea4a);}),this['listenTo'](_0x23e1b4,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5786cb,'addComment',(_0x2cb874,{threadId:_0x34f1ac,isFromAdapter:_0x2fe6e4})=>{if(_0x2fe6e4||!_0x56c51d['hasSuggestion'](_0x34f1ac))return;const _0x291d50=_0x56c51d['getSuggestion'](_0x34f1ac);this['_suggestionToController']['get'](_0x291d50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa83835=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a1c54;for(const _0x506dd6 in _0xa83835){const _0x269120=_0x506dd6,_0xbe8e6f=_0xa83835[_0x269120];if('trackChangesLicenseKeyValid'==_0xbe8e6f||'trackChangesLicenseKeyInvalid'==_0xbe8e6f||'trackChangesLicenseKeyExpired'==_0xbe8e6f||'trackChangesLicenseKeyDomainLimit'==_0xbe8e6f||'trackChangesLicenseKeyNotAllowed'==_0xbe8e6f||'trackChangesLicenseKeyEvaluationLimit'==_0xbe8e6f||'trackChangesLicenseKeyUsageLimit'==_0xbe8e6f){delete _0xa83835[_0x269120],_0x4a1c54=_0xbe8e6f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4a1c54&&_0xa83835['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4a1c54&&_0xa83835['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4a1c54&&_0xa83835['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4a1c54&&_0xa83835['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4a1c54&&_0xa83835['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4a1c54&&_0xa83835['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2c69df){const _0x339729=this['_suggestionToController']['get'](_0x2c69df);if(!_0x339729)return null;return this['editor']['plugins']['get'](Annotations)['getByInnerView'](_0x339729['view'])||null;}['getSuggestionForAnnotation'](_0x51dbe0){const _0x36bfde=this['_viewToController']['get'](_0x51dbe0['innerView']);return _0x36bfde?_0x36bfde['model']:null;}['_refreshActiveMarkers'](){const _0x31feef=this['editor']['plugins']['get'](Annotations),_0x50d1a8=this['editor']['plugins']['get'](TrackChangesEditing),_0x105e98=Array['from'](_0x31feef['activeAnnotations'],_0x22c1a5=>_0x22c1a5['innerView'])['filter'](_0x34ae98=>this['_viewToController']['has'](_0x34ae98)),_0x569c08=[];for(const _0x523277 of _0x105e98){const _0x74ba13=this['_viewToController']['get'](_0x523277)['model']['getAllAdjacentSuggestions']();_0x569c08['push'](..._0x74ba13['reduce']((_0x2a6862,_0x252e0d)=>[..._0x2a6862,..._0x252e0d['getMarkerNames']()],[]));}_0x50d1a8['activeMarkers']=_0x569c08;}['_addUIComponentsToFactory'](){const _0x136a46=this['editor'],_0x5037b5=_0x136a46['locale'],_0x4523b9=getTranslation$5(_0x5037b5,'Track\x20changes'),_0x5b04f4=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x4523b9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x5037b5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x5037b5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x5037b5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x5037b5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x136a46['plugins']['has']('TrackChangesPreview')&&_0x5b04f4['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$5(_0x5037b5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb4eb9 of _0x5b04f4)if(isListDropdownButtonDefinition(_0xb4eb9)){const _0x258272=_0x136a46['commands']['get'](_0xb4eb9['model']['commandName']);_0xb4eb9['model']['bind']('isOn','isEnabled')['to'](_0x258272,'value','isEnabled');}_0x136a46['ui']['componentFactory']['add']('trackChanges',_0x36f49d=>this['_createToolbarButton'](_0x36f49d,_0x5b04f4,_0x4523b9)),_0x136a46['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3d9ed4=>this['_createMenuBarMenu'](_0x3d9ed4,_0x5b04f4,_0x4523b9));}['_createToolbarButton'](_0x2a315d,_0x5ebaff,_0x218aa8){const _0x3c5614=createDropdown(_0x2a315d,SplitButtonView),_0x761591=this['editor']['commands']['get']('trackChanges');_0x3c5614['buttonView']['set']({'tooltip':_0x218aa8,'label':_0x218aa8,'icon':IconTrackChanges}),_0x3c5614['buttonView']['bind']('isOn')['to'](_0x761591,'value'),_0x3c5614['buttonView']['on']('execute',()=>{_0x761591['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x3c5614,_0x5ebaff,{'role':'menu'});const _0x4a1e60=[];for(const _0x5b6b51 of _0x5ebaff)isListDropdownButtonDefinition(_0x5b6b51)&&_0x4a1e60['push'](this['editor']['commands']['get'](_0x5b6b51['model']['commandName']));const _0x674441=_0x3c5614['buttonView'];return _0x674441['actionView']['unbind']('isEnabled'),_0x674441['arrowView']['unbind']('isEnabled'),_0x674441['actionView']['bind']('isEnabled')['to'](_0x761591,'isEnabled'),_0x674441['arrowView']['bind']('isEnabled')['toMany'](_0x4a1e60,'isEnabled',(..._0x208b74)=>_0x208b74['some'](_0x57fb68=>_0x57fb68)),_0x3c5614['on']('execute',_0x34193e=>{this['editor']['execute'](_0x34193e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3c5614;}['_createMenuBarMenu'](_0x4fad97,_0xfeac0b,_0x433a1b){const _0x30e75b=new MenuBarMenuView(_0x4fad97),_0x5bd68f=this['editor']['commands']['get']('trackChanges');_0x30e75b['buttonView']['set']({'label':_0x433a1b,'icon':IconTrackChanges});const _0x3350eb=new MenuBarMenuListView(_0x4fad97);for(const _0xa52965 of _0xfeac0b){if('separator'==_0xa52965['type']){_0x3350eb['items']['add'](new ListSeparatorView(_0x4fad97));continue;}const _0xd006ab=new MenuBarMenuListItemView(_0x4fad97,_0x30e75b),_0xa65de5=new MenuBarMenuListItemButtonView(_0x4fad97),_0x27efef=_0xa52965['model'];_0xa65de5['bind'](...Object['keys'](_0x27efef))['to'](_0x27efef),_0xa65de5['delegate']('execute')['to'](_0x30e75b),_0xa65de5['on']('execute',()=>{this['editor']['execute'](_0x27efef['commandName']),this['editor']['editing']['view']['focus']();}),_0xd006ab['children']['add'](_0xa65de5),_0x3350eb['items']['add'](_0xd006ab);}return _0x30e75b['bind']('isEnabled')['to'](_0x5bd68f,'isEnabled'),_0x30e75b['panelView']['children']['add'](_0x3350eb),_0x30e75b;}['_initializeController'](_0xf05f99){const _0x232671=this['editor'],_0x4c4d24=_0x232671['config'],_0x594d1a=_0x232671['plugins']['get'](Annotations),_0x55035c=_0x232671['plugins']['get'](CommentsRepository),_0x216b4c=_0x232671['plugins']['get'](EditorAnnotations),_0x3422ba=_0x232671['plugins']['get'](Users)['me'],_0x30e4c7=_0x4c4d24['get']('trackChanges')['SuggestionThreadView'],_0x573bc2=_0x4c4d24['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23c3de,CommentThreadInputView:_0x497360}=_0x232671['plugins']['get']('CommentsUI');let _0x4b4c94,_0x3f23c9,_0x52aabc;this['_annotationViews']['has'](_0xf05f99['id'])?(_0x3f23c9=this['_annotationViews']['get'](_0xf05f99['id']),_0x4b4c94=_0x3f23c9['mainView']):(_0x4b4c94=new _0x30e4c7(_0x232671['locale'],_0xf05f99,_0x3422ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4c4d24['get']('comments.editorConfig'),'licenseKey':_0x4c4d24['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4c4d24['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c4d24['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c4d24['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x4c4d24['get']('locale'),_0x232671['locale']),'CommentView':_0x4c4d24['get']('comments')['CommentView'],'CommentsListView':_0x23c3de,'CommentThreadInputView':_0x497360,'SuggestionView':_0x573bc2}),_0x4b4c94['suggestionView']['acceptButton']['on']('execute',()=>{_0x232671['editing']['view']['focus']();}),_0x4b4c94['suggestionView']['discardButton']['on']('execute',()=>{_0x232671['editing']['view']['focus']();}),_0x3f23c9=_0x594d1a['createAnnotationView'](this['editor']['locale'],_0x4b4c94),_0x3f23c9['bind']('isDirty')['to'](_0x4b4c94,'isDirty'),_0x3f23c9['bind']('length')['to'](_0x4b4c94),_0x3f23c9['bind']('type')['to'](_0x4b4c94,'type',_0x3d4353=>'suggestion-'+_0x3d4353),_0x4b4c94['on']('escape',()=>{_0x52aabc['fire']('escape');}),this['_annotationViews']['set'](_0xf05f99['id'],_0x3f23c9));const _0x1ec36d=_0x55035c['createCommentThreadController'](_0xf05f99['commentThread'],_0x4b4c94),_0x3d3eb1=new SuggestionController(_0x232671,_0xf05f99,_0x4b4c94,_0x1ec36d),_0x32ecbf=_0xf05f99['getAllAdjacentSuggestions']()['filter'](_0x2d586c=>_0x2d586c['isInContent']);_0x4b4c94['descriptionParts']=_0x232671['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x32ecbf),this['_suggestionToController']['set'](_0xf05f99,_0x3d3eb1),this['_viewToController']['set'](_0x4b4c94,_0x3d3eb1);const _0x349a35=()=>{const _0x38d2b4=[],_0x31ab6d=_0xf05f99['getAllAdjacentSuggestions']()['filter'](_0x42880a=>_0x42880a['isInContent']);for(const _0x59196f of _0x31ab6d)_0x38d2b4['push'](..._0x59196f['getMarkers']());return getAllMarkersDomElementsSorted(_0x232671['editing'],_0x38d2b4);};_0x52aabc=_0x594d1a['createAnnotation']({'view':_0x3f23c9,'target':_0x349a35,'type':()=>'suggestion-'+_0x3d3eb1['view']['type'],'isVisible':!!_0x349a35()}),_0x55035c['_bindAnnotationToEditors'](_0x4b4c94,_0x52aabc),_0x594d1a['add'](_0x52aabc),_0x216b4c['registerAnnotation'](_0x52aabc);}['_destroyController'](_0x119949){const _0x80b0dc=this['editor']['plugins']['get'](CommentsRepository),_0x1905e7=this['editor']['plugins']['get'](Annotations),_0x1b5c1f=this['_suggestionToController']['get'](_0x119949),_0x4a6526=_0x1b5c1f['view'],_0x5517f6=_0x1905e7['getByInnerView'](_0x4a6526);_0x80b0dc['_unbindEditors'](_0x4a6526),_0x5517f6&&_0x1905e7['remove'](_0x5517f6),this['_suggestionToController']['delete'](_0x119949),this['_viewToController']['delete'](_0x4a6526),_0x1b5c1f['destroy']();}['_updateController'](_0x2f95fe){if(!_0x2f95fe['isInContent']||!this['_suggestionToController']['has'](_0x2f95fe))return;const _0x365029=this['editor']['plugins']['get'](TrackChangesEditing),_0x3a36c7=this['_suggestionToController']['get'](_0x2f95fe),_0x421aad=_0x2f95fe['getAllAdjacentSuggestions']();_0x3a36c7['view']['descriptionParts']=_0x365029['descriptionFactory']['getDescriptions'](_0x421aad);}['destroy'](){for(const _0x10ea6c of this['_suggestionToController']['keys']())this['_destroyController'](_0x10ea6c);for(const _0xbd38f9 of this['_annotationViews']['values']())_0xbd38f9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x1d063c){return'model'in _0x1d063c;}class TrackChanges extends Plugin{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,Comments];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x360923){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x360923;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x5479c9){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x5479c9);}['getSuggestions']({skipNotAttached:_0x58815c=!0x1,toJSON:_0x1c10ca=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x58815c,'toJSON':_0x1c10ca});}['getSuggestion'](_0x4adb93){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x4adb93);}}const blackListedPlugins$1=['Pagination'];class TrackChangesData extends Plugin{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1d20d4=this['editor'];if(_0x1d20d4['config']['define']('trackChangesData.editorCreator',_0x22de9d=>{const _0x5bc27f=_0x1d20d4['model']['document']['getRootNames']()['reduce']((_0x4a422b,_0x193fb3)=>(_0x4a422b[_0x193fb3]='',_0x4a422b),{});return _0x1d20d4['constructor']['create'](_0x5bc27f,_0x22de9d);}),'function'!=typeof _0x1d20d4['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3b3028){return getTrackChangesData(this['editor'],!0x0,_0x3b3028);}['getDataWithDiscardedSuggestions'](_0x4c3dc6){return getTrackChangesData(this['editor'],!0x1,_0x4c3dc6);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46bd8f){function _0x3d587e(_0x1b0b75){return _0x1b0b75['map'](_0x561d30=>String['fromCharCode'](_0x561d30))['join']('');}super(_0x46bd8f),this['result']='end',_0x46bd8f[_0x3d587e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d587e([0x76,0x69,0x65,0x77])][_0x3d587e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d587e([0x61,0x75,0x74,0x6f]),_0x46bd8f[_0x3d587e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d587e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d587e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d587e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d587e([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function isMultiRootEditor$1(_0x2a7b56){return void 0x0!==_0x2a7b56['getRootsAttributes'];}async function getTrackChangesData(_0x2f906d,_0xb95937,_0x1fa0b2){const _0x3e71fa=sanitizeEditorConfig(_0x2f906d,blackListedPlugins$1);if(_0x3e71fa['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),isMultiRootEditor$1(_0x2f906d)){_0x3e71fa['roots']=Object['create'](null);for(const _0x57ad5c of _0x2f906d['model']['document']['getRootNames']())_0x3e71fa['roots'][_0x57ad5c]={'modelAttributes':_0x2f906d['getRootAttributes'](_0x57ad5c)};}const _0x902cd3=document['createDocumentFragment'](),_0x3bea3c=_0x2f906d['config']['get']('trackChangesData')['editorCreator'],_0x3dca4f=await _0x3bea3c(_0x3e71fa,()=>createAttachedElement(_0x902cd3));copyEditorData(_0x2f906d,_0x3dca4f),_0x3dca4f['execute'](_0xb95937?'acceptAllSuggestions':'discardAllSuggestions');const _0x13944e=isMultiRootEditor$1(_0x3dca4f)?_0x3dca4f['getFullData'](_0x1fa0b2):_0x3dca4f['data']['get'](_0x1fa0b2);return await _0x3dca4f['destroy'](),_0x13944e;}function copyEditorData(_0x5c4289,_0x2cd9af){const _0x180dfc=_0x5c4289['model']['document']['getRootNames']()['reduce']((_0x2aef2a,_0x5e87f9)=>(_0x2aef2a[_0x5e87f9]=_0x5c4289['data']['get']({'rootName':_0x5e87f9}),_0x2aef2a),{}),_0x485979=_0x5c4289['plugins']['get']('Users')['users']['map'](_0x104ec3=>({'id':_0x104ec3['id'],'name':_0x104ec3['name']})),_0x3e4ab4=_0x5c4289['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3af8e0=_0x5c4289['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x284947=_0x2cd9af['plugins']['get']('Users'),_0x589ce4=_0x2cd9af['plugins']['get']('TrackChangesEditing'),_0x5a2203=_0x2cd9af['plugins']['get']('CommentsRepository');for(const _0x10705c of _0x5a2203['getCommentThreads']())_0x10705c['remove']();for(const _0x5217a3 of _0x485979)_0x284947['getUser'](_0x5217a3['id'])||_0x284947['addUser'](_0x5217a3);_0x284947['me']||_0x284947['useAnonymousUser']();for(const _0x3132e0 of _0x3af8e0)_0x5a2203['addCommentThread'](_0x3132e0);for(const _0x1dd810 of _0x3e4ab4)_0x589ce4['addSuggestionData'](_0x1dd810);_0x2cd9af['data']['set'](_0x180dfc);}function createAttachedElement(_0x5cc462){const _0x5d07bc=document['createElement']('div');return _0x5cc462['appendChild'](_0x5d07bc),_0x5d07bc;}class TrackChangesPreviewView extends View{['options'];constructor(_0x1a1d10,_0x1ab73a){super(_0x1a1d10),this['options']=_0x1ab73a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x3ab442,_0x392d57){if(!this['element'])return;const _0x3a6727=[];for(const [_0x35c489,_0x59287b]of _0x3ab442){const _0x1d9838=document['createElement']('div');_0x1d9838['setAttribute']('data-ck-root-name',_0x35c489),_0x1d9838['className']=_0x59287b['classes']+'\x20ck-track-changes-preview__root-container',_0x1d9838['innerHTML']=_0x59287b['content'],_0x3a6727['push'](_0x1d9838);}_0x392d57(this['element'],_0x3a6727),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends Command{constructor(_0x57452c){super(_0x57452c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x41340f=this['editor'],_0x28e08d=_0x41340f['locale'],_0x5208db=_0x41340f['plugins']['get']('Dialog');let _0x5d2917;const _0x47cf62=getEditables(_0x41340f),_0x40c237=calculateDialogRects(_0x47cf62);_0x5208db['show']({'id':'finalContentPreview','title':getTranslation$5(_0x28e08d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x28e08d,{'dialogRects':_0x40c237}),'onHide':()=>{_0x5d2917['detachFromDom']();},'onShow':()=>{_0x41340f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5959e0=>{const _0x290701=this['_standarizeRootsData'](_0x5959e0,_0x41340f,_0x47cf62);_0x5208db['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x290701,_0x41340f['config']['get']('trackChanges.preview.renderFunction'));}),_0x5d2917=new BodyCollection(_0x28e08d,[_0x5208db['view']]),_0x5d2917['attachToDom'](),_0x5d2917['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x41340f['once']('destroy',()=>{_0x5d2917['detachFromDom']();});const _0x370b4f=_0x5208db['view']['headerView']['class'];_0x5208db['view']['headerView']['class']=_0x370b4f?_0x370b4f+'\x20ck-reset_all':'ck-reset_all',_0x5208db['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5208db['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c5a34=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2514a3=_0x3c5a34['previewMode'],_0x16bd57={};if('$labels'===_0x2514a3){for(const _0x5b55c6 of _0x3c5a34['getMergeFieldsIds']())_0x16bd57[_0x5b55c6]=_0x3c5a34['getLabel'](_0x5b55c6)||_0x5b55c6;}else{const _0x36cd78='$defaultValues'===_0x2514a3?_0x3c5a34['getDefaultValues']():_0x3c5a34['getDataSetValues'](_0x2514a3,!0x0);for(const _0x4c40cd of Object['entries'](_0x36cd78)){const [_0x2c39c2,_0xab43bd]=_0x4c40cd;_0x16bd57[_0x2c39c2]=null!==_0xab43bd?_0xab43bd:_0x3c5a34['getLabel'](_0x2c39c2)||_0x2c39c2;}}return{'mergeFieldsData':_0x16bd57};}['_standarizeRootsData'](_0x40d671,_0x28addd,_0x10c38d){let _0x348028;if('string'==typeof _0x40d671){const _0x1d3aeb=_0x28addd['model']['document']['getRootNames']()[0x0];_0x348028={[_0x1d3aeb]:_0x40d671};}else _0x348028=_0x40d671;const _0x4e63fa=this['_fixMediaEmbeds'](_0x348028,_0x28addd);return addEditableClasses(this['_sortRoots'](_0x28addd)['reduce']((_0x5bfda3,_0x45d81e)=>(_0x5bfda3['push']([_0x45d81e,{'content':_0x4e63fa[_0x45d81e],'classes':''}]),_0x5bfda3),[]),_0x10c38d);}['_fixMediaEmbeds'](_0x30df24,_0x448761){if(!_0x448761['plugins']['has']('MediaEmbedEditing'))return _0x30df24;const _0x47ba8c=_0x448761['plugins']['get']('MediaEmbedEditing');for(const [_0x3b96fb,_0xd414a7]of Object['entries'](_0x30df24)){const _0x587594=document['createElement']('div');_0x587594['innerHTML']=_0xd414a7,(_0x587594['querySelectorAll']('figure.media')['forEach'](_0x153aa5=>{const _0x38569d=_0x153aa5['querySelector']('oembed');if(_0x38569d){const _0x51e071=_0x38569d['getAttribute']('url');if(_0x51e071){const _0xee39a5=_0x47ba8c['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x448761['editing']['view']['document']),_0x51e071,{'elementName':'','renderForEditingView':!0x0}),_0x367ee3=document['createElement']('div');_0x367ee3['classList']['add']('ck-media__wrapper'),_0xee39a5['render'](_0x367ee3,_0x448761['editing']['view']['domConverter']),_0x38569d['replaceWith'](_0x367ee3);}}}),_0x30df24[_0x3b96fb]=_0x587594['innerHTML']);}return _0x30df24;}['_sortRoots'](_0x2a2c5a){if(!isMultiRootEditor(_0x2a2c5a))return _0x2a2c5a['model']['document']['getRootNames']();const _0x8b1636=[],_0x52229c=new Map();for(const _0x1be316 of _0x2a2c5a['model']['document']['getRootNames']()){const _0x224c8a=_0x2a2c5a['editing']['view']['getDomRoot'](_0x1be316)['getClientRects']()['item'](0x0);_0x8b1636['push'](_0x1be316),_0x52229c['set'](_0x1be316,_0x224c8a);}return _0x8b1636['sort']((_0x57f891,_0x107284)=>{const _0x35b939=_0x52229c['get'](_0x57f891),_0x5e97fa=_0x52229c['get'](_0x107284);return _0x35b939['y']-_0x5e97fa['y']||_0x35b939['x']-_0x5e97fa['x'];}),_0x8b1636;}}function getEditables(_0x5bf41f){const _0x19158c={};if('editables'in _0x5bf41f['ui']['view']){for(const [_0xba9aed,_0x529320]of Object['entries'](_0x5bf41f['ui']['view']['editables']))_0x19158c[_0xba9aed]=_0x529320['element'];}else _0x19158c[_0x5bf41f['model']['document']['getRootNames']()[0x0]]=_0x5bf41f['ui']['view']['editable']['element'];return _0x19158c;}function calculateDialogRects(_0x3387f0){let _0x51c2d0=0x0;for(const _0x1cd7a6 of Object['values'](_0x3387f0))_0x51c2d0=Math['max'](_0x51c2d0,_0x1cd7a6['getBoundingClientRect']()['width']);let _0x794556=0x0;for(const _0x21ba8e of Object['values'](_0x3387f0))_0x794556+=_0x21ba8e['getBoundingClientRect']()['height'];const _0x5e8b60=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x51c2d0,'height':Math['min'](_0x794556,_0x5e8b60)};}function addEditableClasses(_0x8d96da,_0x5cabac){for(const [_0x4d8dc1,_0x2243f4]of _0x8d96da)_0x2243f4['classes']=_0x5cabac[_0x4d8dc1]['classList']['value']['replace']('ck-focused','');return _0x8d96da;}function isMultiRootEditor(_0x107aad){return void 0x0!==_0x107aad['getRootsAttributes'];}class TrackChangesPreview extends Plugin{static get['requires'](){return[TrackChangesData,Dialog];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a7123){super(_0x5a7123),_0x5a7123['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x5a7123['config']['define']('trackChanges.preview.renderFunction',(_0x2e2c09,_0x154c4a)=>{for(const _0x593a59 of _0x154c4a)_0x2e2c09['appendChild'](_0x593a59);});}}class CloudServicesCommentsAdapter extends ContextPlugin{static ['CommentsService']=/* #__PURE__ -- @preserve */
((()=>CommentsService)());['_services'];static get['requires'](){return[WebSocketGateway,CommentsRepository,Sessions,Users];}static get['pluginName'](){return'CloudServicesCommentsAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e0209){super(_0x4e0209),this['_services']=new Map();}async['init'](){const _0x379e00=this['context'],_0x1e1210=_0x379e00['plugins']['get'](CommentsRepository);if(_0x379e00['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0x1e1210['adapter']={'addCommentThread':async({channelId:_0x3c9fd8,threadId:_0x1ddb0e,comments:_0x514534,resolvedAt:_0x42f34a,resolvedBy:_0x37df02,context:_0x55234d,attributes:_0x126d1f})=>{const _0x4d0853=await this['_getService'](_0x3c9fd8)['addCommentThread']({'commentThreadId':_0x1ddb0e,'comments':_0x514534['map'](_0x29ff63=>parseLocalCommentToRemote(_0x29ff63,_0x3c9fd8,_0x1ddb0e)),'resolvedAt':_0x42f34a,'resolvedBy':_0x37df02,'context':_0x55234d,'attributes':_0x126d1f})['catch'](handleDisconnectionError$1);return{'threadId':_0x4d0853['commentThreadId'],'comments':_0x4d0853['comments']};},'getCommentThread':async({channelId:_0x4b3ed8,threadId:_0x513d91})=>{const _0x4a2dc3=await this['_getService'](_0x4b3ed8)['getCommentThread'](_0x513d91)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x4a2dc3?_0x4a2dc3['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x4a2dc3]),{'threadId':_0x4a2dc3['commentThreadId'],'comments':_0x4a2dc3['comments']['map'](parseRemoteCommentToLocal),'context':_0x4a2dc3['context'],'resolvedAt':_0x4a2dc3['resolvedAt'],'resolvedBy':_0x4a2dc3['resolvedBy'],'attributes':_0x4a2dc3['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x3ea571,threadId:_0x3c7c51,context:_0x4f9ec1,unlinkedAt:_0x48f284,attributes:_0x4c6ca6})=>this['_getService'](_0x3ea571)['updateCommentThread']({'commentThreadId':_0x3c7c51,'context':_0x4f9ec1,'attributes':_0x4c6ca6,'unlinkedAt':_0x48f284})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x23a1a7,threadId:_0x536565})=>{const _0x4517a0=await this['_getService'](_0x23a1a7)['resolveCommentThread'](_0x536565)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0x4517a0['commentThreadId'],'resolvedAt':_0x4517a0['resolvedAt'],'resolvedBy':_0x4517a0['resolvedBy']};},'reopenCommentThread':async({channelId:_0x1182af,threadId:_0x5b04e9})=>this['_getService'](_0x1182af)['reopenCommentThread'](_0x5b04e9)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0x372f03,threadId:_0x28273b})=>this['_getService'](_0x372f03)['removeCommentThread'](_0x28273b)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0x56a75c,threadId:_0x445cab,commentId:_0x4459ae,content:_0x10fb3c,attributes:_0x243921})=>this['_getService'](_0x56a75c)['addComment'](_0x445cab,_0x4459ae,_0x10fb3c,_0x243921)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x5c5f2d,threadId:_0x35d8ac,commentId:_0xf5e1ea,content:_0xd848e,attributes:_0x471908})=>this['_getService'](_0x5c5f2d)['updateComment'](_0x35d8ac,_0xf5e1ea,_0xd848e,_0x471908)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x152402,threadId:_0xa9013a,commentId:_0x12aff6})=>this['_getService'](_0x152402)['removeComment'](_0xa9013a,_0x12aff6)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x379e00 instanceof Context$1){const _0x53aad2=_0x379e00['config']['get']('collaboration.channelId'),_0x3a6bd7=_0x379e00['plugins']['get'](Sessions);await this['_setUpService'](_0x53aad2);const _0x331a51=await this['_services']['get'](_0x53aad2)['getConnectedSessions']();this['listenTo'](_0x3a6bd7,'sessionAdd:'+_0x53aad2,(_0x48ce66,{session:_0x2b45e8})=>{_0x2b45e8['id']===_0x3a6bd7['mySessionId']&&(_0x48ce66['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x2b45e8['permissions'],_0x53aad2));}),_0x3a6bd7['register'](_0x53aad2,_0x331a51);}}async['_setUpService'](_0x104242){if(this['_services']['has'](_0x104242))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x104242});const _0x1d4696=this['context']['plugins']['get'](CommentsRepository),_0x5cb53c=new CloudServicesCommentsAdapter['CommentsService'](_0x104242);this['_services']['set'](_0x104242,_0x5cb53c),this['listenTo'](_0x5cb53c,'commentThreadAdded',(_0x26a306,_0x33a4bb)=>{const {commentThreadId:_0x2dc937,documentId:_0x1f2571,context:_0x100693,attributes:_0x59b572,resolvedAt:_0x202d70,resolvedBy:_0x247fb6,comments:_0x520489}=_0x33a4bb;_0x1d4696['getCommentThread'](_0x2dc937)||_0x1d4696['addCommentThread']({'threadId':_0x2dc937,'channelId':_0x1f2571,'comments':_0x520489?_0x520489['map'](parseRemoteCommentToLocal):[],'context':_0x100693,'attributes':_0x59b572,'resolvedAt':_0x202d70,'resolvedBy':_0x247fb6,'isFromAdapter':!0x0});}),this['listenTo'](_0x5cb53c,'commentThreadUpdated',(_0xd961a3,{commentThreadId:_0x1794dd,documentId:_0x4248ff,context:_0x4bfe3e,unlinkedAt:_0x324d0f,attributes:_0x11414e})=>{_0x1d4696['getCommentThread'](_0x1794dd)&&_0x1d4696['updateCommentThread']({'threadId':_0x1794dd,'channelId':_0x4248ff,'context':_0x4bfe3e,'unlinkedAt':_0x324d0f,'attributes':_0x11414e,'isFromAdapter':!0x0});}),this['listenTo'](_0x5cb53c,'commentThreadResolved',(_0x125ffe,{commentThreadId:_0x5e1d89,resolvedBy:_0x5ad325,resolvedAt:_0x472ab2})=>{const _0x5c9d8a=_0x1d4696['getCommentThread'](_0x5e1d89);_0x5c9d8a&&_0x5c9d8a['resolve']({'resolvedBy':_0x5ad325,'resolvedAt':_0x472ab2,'isFromAdapter':!0x0});}),this['listenTo'](_0x5cb53c,'commentThreadReopened',(_0x2feeec,{commentThreadId:_0x1a5e9f})=>{const _0x4a10fe=_0x1d4696['getCommentThread'](_0x1a5e9f);_0x4a10fe&&_0x4a10fe['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0x5cb53c,'commentThreadRemoved',(_0x1fc485,{commentThreadId:_0x8828d9})=>{const _0x588c4b=_0x1d4696['getCommentThread'](_0x8828d9);_0x588c4b&&_0x588c4b['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0x5cb53c,'commentAdded',(_0x546c16,_0x132102)=>{const _0x292e09=_0x132102['commentThreadId'],_0x51dd1b=_0x1d4696['getCommentThread'](_0x292e09);_0x51dd1b&&_0x51dd1b['addComment']({...parseRemoteCommentToLocal(_0x132102),'isFromAdapter':!0x0});}),this['listenTo'](_0x5cb53c,'commentUpdated',(_0x408bc7,{commentThreadId:_0x190d15,commentId:_0x109441,content:_0x1c17a2,attributes:_0x3f1462})=>{const _0x21495b=_0x1d4696['getCommentThread'](_0x190d15);if(_0x21495b){const _0x2a4855=_0x21495b['getComment'](_0x109441);_0x2a4855&&_0x2a4855['update']({'content':_0x1c17a2,'attributes':_0x3f1462,'isFromAdapter':!0x0});}}),this['listenTo'](_0x5cb53c,'commentRemoved',(_0x3b3f26,{commentThreadId:_0x575fc1,commentId:_0x4f170e})=>{const _0x24a812=_0x1d4696['getCommentThread'](_0x575fc1);if(_0x24a812){const _0x211259=_0x24a812['getComment'](_0x4f170e);_0x211259&&_0x211259['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x104242);}['destroy'](){if(this['context']instanceof Context$1){const _0x579798=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x579798);}}['_terminateService'](_0x22d88f){if(!this['_services']['has'](_0x22d88f))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0x22d88f});this['_getService'](_0x22d88f)['disconnect'](),this['_services']['delete'](_0x22d88f);}async['reconnect'](){for(const _0x18ad93 of this['_services']['keys']())await this['_connectService'](_0x18ad93);if(this['context']instanceof Context$1){const _0x349bdd=this['context']['config']['get']('collaboration.channelId'),_0x4f9117=this['context']['plugins']['get'](Sessions);_0x4f9117['unregister'](_0x349bdd);const _0x145702=await this['_services']['get'](_0x349bdd)['getConnectedSessions']();_0x4f9117['register'](_0x349bdd,_0x145702);}}async['_connectService'](_0x2dfd18){const {connection:_0x24f449}=this['context']['plugins']['get'](WebSocketGateway),_0x416538=this['context']['plugins']['get'](CommentsRepository),_0x3cf835=this['_services']['get'](_0x2dfd18),_0x1c5b8b=await _0x3cf835['connect'](_0x24f449);await this['_fetchMissingUsersForThreads'](_0x1c5b8b);const _0x576dcb=new Set(Array['from'](_0x416538['getCommentThreads']({'channelId':_0x2dfd18}),_0x3d54ba=>_0x3d54ba['id']));for(const _0x1e7e56 of _0x1c5b8b)_0x1e7e56['deletedAt']||_0x576dcb['delete'](_0x1e7e56['commentThreadId']);for(const _0x3f7a1f of _0x576dcb)_0x416538['getCommentThread'](_0x3f7a1f)['remove']({'isFromAdapter':!0x0});for(const _0x5adfa8 of _0x1c5b8b){let _0x4bd8d9=_0x416538['getCommentThread'](_0x5adfa8['commentThreadId']);const {commentThreadId:_0x2897c6,context:_0x5991ba,attributes:_0x183b15,resolvedBy:_0xf92743,resolvedAt:_0x20c235,unlinkedAt:_0x2b34de,deletedAt:_0x3d5642}=_0x5adfa8;if(_0x3d5642)continue;_0x4bd8d9||(_0x4bd8d9=_0x416538['addCommentThread']({'channelId':_0x2dfd18,'threadId':_0x2897c6,'context':_0x5991ba,'attributes':_0x183b15||{},'resolvedBy':_0xf92743,'resolvedAt':_0x20c235,'unlinkedAt':_0x2b34de,'isFromAdapter':!0x0}));const _0x561da1=new Set(Array['from'](_0x4bd8d9['comments'],_0x59f009=>_0x59f009['id']));for(const _0x243b96 of _0x5adfa8['comments'])_0x561da1['delete'](_0x243b96['commentId']);for(const _0x55541f of _0x561da1)_0x4bd8d9['getComment'](_0x55541f)['remove']({'isFromAdapter':!0x0});for(const _0xfa0215 of _0x5adfa8['comments']){const _0x56f1d6=_0x4bd8d9['getComment'](_0xfa0215['commentId']);_0x56f1d6?_0x56f1d6['content']!==_0xfa0215['content']&&_0x56f1d6['update']({'content':_0xfa0215['content'],'isFromAdapter':!0x0}):_0x4bd8d9['addComment'](Object['assign'](parseRemoteCommentToLocal(_0xfa0215),{'isFromAdapter':!0x0}));}}}['_getService'](_0x5ab4f9){if(!this['_services']['has'](_0x5ab4f9))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x5ab4f9});return this['_services']['get'](_0x5ab4f9);}async['_fetchMissingUsersForThreads'](_0x295ae6){const _0xa61f14=this['context']['plugins']['get'](Users),{connection:_0x321c4c}=this['context']['plugins']['get'](WebSocketGateway),_0x47cf29=new Set();for(const {resolvedBy:_0x358c41,comments:_0x3a5fdc}of _0x295ae6){_0x358c41&&!_0xa61f14['getUser'](_0x358c41)&&_0x47cf29['add'](_0x358c41);for(const {userId:_0x550019}of _0x3a5fdc)_0xa61f14['getUser'](_0x550019)||_0x47cf29['add'](_0x550019);}if(0x0===_0x47cf29['size'])return;const _0x259b0b=await User['getMany'](_0x321c4c,Array['from'](_0x47cf29));for(const _0x338813 of _0x259b0b)_0xa61f14['getUser'](_0x338813['id'])||_0xa61f14['addUser'](_0x338813);}}async function handleServerError(_0xccc0f6){if('404'!==_0xccc0f6['code'])throw _0xccc0f6;}function handleDisconnectionError$1(_0x1fb307){if(isDisconnectionError$2(_0x1fb307))return new Promise(()=>{});throw _0x1fb307;}function isDisconnectionError$2(_0x1864c0){return _0x1864c0['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x1864c0['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x1864c0['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0x44ace0){return{'threadId':_0x44ace0['commentThreadId'],'commentId':_0x44ace0['commentId'],'content':_0x44ace0['content'],'createdAt':_0x44ace0['createdAt'],'authorId':_0x44ace0['userId'],'attributes':_0x44ace0['attributes']||{}};}function parseLocalCommentToRemote(_0x392f7c,_0x49e450,_0x33cd9b){return{'commentThreadId':_0x33cd9b,'commentId':_0x392f7c['commentId'],'userId':_0x392f7c['authorId'],'content':_0x392f7c['content'],'documentId':_0x49e450,'createdAt':_0x392f7c['createdAt'],'attributes':_0x392f7c['attributes']||{}};}class CloudServicesTrackChangesAdapter extends Plugin{static ['TrackChangesService']=/* #__PURE__ -- @preserve */
((()=>TrackChangesService)());['_bufferedRequests'];['_trackChangesService'];static get['requires'](){return[CloudServicesCommentsAdapter,TrackChangesEditing,WebSocketGateway];}static get['pluginName'](){return'CloudServicesTrackChangesAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46114f){super(_0x46114f);const _0x382226=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x382226);}['init'](){const _0x44e64a=this['editor']['plugins']['get'](WebSocketGateway),_0x1cc44c=this['editor']['plugins']['get'](TrackChangesEditing);return _0x1cc44c['adapter']={'getSuggestion':async _0x4ab397=>{await this['_waitForServiceReady']();const _0x132a5f=await this['_trackChangesService']['get'](_0x4ab397)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x132a5f]),_0x132a5f;},'addSuggestion':async({id:_0x36bc06,type:_0x3e4a76,data:_0x4664c8,originalSuggestionId:_0x2a367f,attributes:_0x5bc261})=>{await this['_waitForServiceReady']();const _0x2b7def={'id':_0x36bc06,'type':_0x3e4a76,'data':_0x4664c8,'originalSuggestionId':_0x2a367f,'attributes':_0x5bc261},_0x3a9291=await this['_trackChangesService']['add'](_0x36bc06,_0x3e4a76,_0x4664c8,_0x2a367f,_0x5bc261)['catch'](_0x49eef3=>{if(isDisconnectionError$1(_0x49eef3))return new Promise(_0x549448=>{this['_bufferedRequests']['set'](_0x36bc06,{'resolve':_0x549448,'suggestionData':_0x2b7def});});throw _0x49eef3;});return this['_bufferedRequests']['delete'](_0x36bc06),_0x3a9291;},'updateSuggestion':async(_0x5c4590,_0x4d78a4)=>{if(await this['_waitForServiceReady'](),'open'!==_0x4d78a4['state'])return this['_trackChangesService']['update'](_0x5c4590,_0x4d78a4)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x105f02,_0x32769f)=>{_0x1cc44c['hasSuggestion'](_0x32769f['id'])&&(_0x1cc44c['getSuggestion'](_0x32769f['id'])['attributes']=_0x32769f['attributes']);}),this['_trackChangesService']['connect'](_0x44e64a['connection'])['then'](_0x29c602=>(_0x44e64a['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x29c602)['then'](()=>{for(const _0x4e0434 of _0x29c602){_0x1cc44c['addSuggestionData'](_0x4e0434)['_saved']=!0x0;}})));}async['reconnect'](){const _0x5cc344=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x328546}=this['editor']['plugins']['get'](WebSocketGateway),_0x496deb=await this['_trackChangesService']['connect'](_0x328546);await this['_fetchMissingUsersForThreads'](_0x496deb);for(const {suggestionData:_0xc0d0a7,resolve:_0x1e3898}of this['_bufferedRequests']['values']()){let _0x395361=_0x496deb['find'](_0xb995d6=>_0xb995d6['id']===_0xc0d0a7['id']);_0x395361||(_0x395361=await this['_trackChangesService']['add'](_0xc0d0a7['id'],_0xc0d0a7['type'],_0xc0d0a7['data'],_0xc0d0a7['originalSuggestionId'])),_0x1e3898(_0x395361);}for(const _0x4de8c1 of _0x496deb)_0x5cc344['hasSuggestion'](_0x4de8c1['id'])||_0x5cc344['addSuggestionData'](_0x4de8c1);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x59d369=>{this['listenTo'](this['_trackChangesService'],'connected',_0x9f5e3=>{_0x9f5e3['off'](),_0x59d369();});});}async['_fetchMissingUsersForThreads'](_0x337240){const _0x1870af=this['editor']['plugins']['get'](Users),{connection:_0x1e2d27}=this['editor']['plugins']['get'](WebSocketGateway),_0x1a6cf0=new Set();for(const {authorId:_0x1c5f5d}of _0x337240)_0x1870af['getUser'](_0x1c5f5d)||_0x1a6cf0['add'](_0x1c5f5d);if(0x0===_0x1a6cf0['size'])return;const _0x36144b=await User['getMany'](_0x1e2d27,Array['from'](_0x1a6cf0));for(const _0x13fae0 of _0x36144b)_0x1870af['getUser'](_0x13fae0['id'])||_0x1870af['addUser'](_0x13fae0);}}function handleDisconnectionError(_0x37a515){if(isDisconnectionError$1(_0x37a515))return new Promise(()=>{});throw _0x37a515;}function isDisconnectionError$1(_0x503f10){return _0x503f10['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x503f10['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class RealTimeCollaborativeComments extends Plugin{static get['requires'](){return[Comments,CloudServicesCommentsAdapter,RealTimeCollaborativeEditing,WebSocketGateway];}static get['pluginName'](){return'RealTimeCollaborativeComments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3f5c3d=this['editor']['plugins']['get'](WebSocketGateway),_0xfc6e58=this['editor']['plugins']['get'](CommentsEditing),_0x4a667f=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x3f5c3d,'change:state',(_0x5e6759,_0x428c4b,_0x1c24b9)=>{_0xfc6e58['isThreadsLoadingPaused']='connected'!==_0x1c24b9;});}),this['listenTo'](_0x3f5c3d,'change:state',(_0x500f4e,_0x16f626,_0xab5230)=>{this['editor']['plugins']['get'](CommentsRepository)['switchReadOnly']('connected'!==_0xab5230);}),_0x4a667f['_setUpService'](this['editor']['config']['get']('collaboration.channelId'));}['destroy'](){this['editor']['plugins']['get'](CloudServicesCommentsAdapter)['_terminateService'](this['editor']['config']['get']('collaboration.channelId')),super['destroy']();}}class RealTimeCollaborativeTrackChanges extends Plugin{static get['requires'](){return[RealTimeCollaborativeComments,CloudServicesTrackChangesAdapter,TrackChanges];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class Revision extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x275913){super(),this['id']=_0x275913['id']||uid(),this['creator']=_0x275913['creator']||null,this['authors']=_0x275913['authors']||[],this['diffData']=_0x275913['diffData']||null,this['toVersion']=_0x275913['toVersion']||0x0,this['fromVersion']=_0x275913['fromVersion']||0x0,this['set']('name',_0x275913['name']||''),this['set']('createdAt',_0x275913['createdAt']||new Date()),this['set']('attributes',_0x275913['attributes']||{});}['setName'](_0x45922b){this['_update']({'name':_0x45922b});}['setAttribute'](_0x43ab22,_0x342f75){const _0x28a649=cloneDeep(this['attributes']);set(_0x28a649,_0x43ab22,_0x342f75),this['_update']({'attributes':_0x28a649});}['removeAttribute'](_0x581bda){const _0x58eff2=cloneDeep(this['attributes']);unset(_0x58eff2,_0x581bda),this['_update']({'attributes':_0x58eff2});}['_update'](_0x5e300d,_0x57ff10=!0x1){let _0x584f8c=!0x1;const _0x58f5cf={'id':this['id']},_0x167c3b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe96d59 of _0x167c3b){const _0x42ead8=_0x5e300d[_0xe96d59];void 0x0!==_0x42ead8&&_0x42ead8!==this[_0xe96d59]&&(this[_0xe96d59]=_0x42ead8,_0x58f5cf[_0xe96d59]=_0x42ead8,_0x584f8c=!0x0);}_0x584f8c&&(_0x58f5cf['authors']&&(_0x58f5cf['authorsIds']=_0x58f5cf['authors']['map'](_0x35d8a7=>_0x35d8a7['id']),delete _0x58f5cf['authors']),this['fire']('_update',_0x58f5cf,_0x57ff10));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x36ec49=>_0x36ec49['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class RevisionsRepository extends Plugin{['_revisions'];static get['requires'](){return[Users];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x367e58){super(_0x367e58),this['_revisions']=new Collection();}['afterInit'](){checkLicense$4(this);}['createRevision'](_0x102ed2){const _0x6f17fc=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x102ed2['id'],'name':_0x102ed2['name'],'creator':_0x102ed2['creatorId']?_0x6f17fc['getUser'](_0x102ed2['creatorId']):null,'diffData':_0x102ed2['diffData']||_0x102ed2['data'],'authors':_0x102ed2['authorsIds']['map'](_0x5b4897=>_0x6f17fc['getUser'](_0x5b4897)),'createdAt':new Date(_0x102ed2['createdAt']),'attributes':_0x102ed2['attributes'],'fromVersion':_0x102ed2['fromVersion'],'toVersion':_0x102ed2['toVersion']});}['addRevision'](_0x4032c3,_0x29caa7=0x0){this['_revisions']['add'](_0x4032c3,_0x29caa7);}['getRevision'](_0x3da7ba){return this['_revisions']['get'](_0x3da7ba);}['getRevisions'](_0x3b0fed={'toJSON':!0x1}){const _0x43a342=Array['from'](this['_revisions']);return _0x43a342['reverse'](),_0x3b0fed['toJSON']?_0x43a342['map'](_0xaf0574=>_0xaf0574['toJSON']()):_0x43a342;}['getIndex'](_0x3b9625){return this['_revisions']['getIndex'](_0x3b9625);}['getEarlierVisibleRevision'](_0x1956c1){const [,_0x376f3d]=this['getRevisionsIterator'](_0x1956c1,{'direction':'earlier'});return _0x376f3d;}['getLaterVisibleRevision'](_0x4c0234){const [,_0x1517e8]=this['getRevisionsIterator'](_0x4c0234,{'direction':'later'});return _0x1517e8;}['getRevisionsInDiff'](_0x22cb4c){const _0x4e4d07=[];for(const _0x33cb9b of this['getRevisionsIterator'](_0x22cb4c['newRevisionId']))if(_0x4e4d07['push'](_0x33cb9b),_0x33cb9b['id']===_0x22cb4c['oldRevisionId'])break;return _0x4e4d07;}*['getRevisionsIterator'](_0x232e76,{direction:_0x393d6b='earlier',filter:_0x1af3a6=()=>!0x0}={}){const _0x9db17b='earlier'===_0x393d6b?0x1:-0x1;let _0xfc1382=this['_revisions']['get'](_0x232e76),_0x45b979=this['getIndex'](_0xfc1382);for(yield _0xfc1382;_0xfc1382;){if(_0x45b979+=_0x9db17b,_0xfc1382=this['getRevision'](_0x45b979),!_0xfc1382)return;_0x1af3a6(_0xfc1382)&&(yield _0xfc1382);}}}async function checkLicense$4(_0x4b666c){const _0x11d9a8=_0x571b4b([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x44bec9=0xeb829,_0x3e4866=window[_0x571b4b([0x44,0x61,0x74,0x65])][_0x571b4b([0x6e,0x6f,0x77])](),_0x4c5a7e=_0x4b666c[_0x571b4b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3255c9=new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d82a8=>{_0x4c5a7e[_0x571b4b([0x6f,0x6e,0x63,0x65])](_0x571b4b([0x72,0x65,0x61,0x64,0x79]),_0x5d82a8);}),_0x4532d1={[_0x571b4b([0x6b,0x74,0x79])]:_0x571b4b([0x45,0x43]),[_0x571b4b([0x75,0x73,0x65])]:_0x571b4b([0x73,0x69,0x67]),[_0x571b4b([0x63,0x72,0x76])]:_0x571b4b([0x50,0x2d,0x32,0x35,0x36]),[_0x571b4b([0x78])]:_0x571b4b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x571b4b([0x79])]:_0x571b4b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x571b4b([0x61,0x6c,0x67])]:_0x571b4b([0x45,0x53,0x32,0x35,0x36])},_0x1e8421=_0x4c5a7e[_0x571b4b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x571b4b([0x67,0x65,0x74])](_0x571b4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x59a097=await(async function(){let _0x3f22f3,_0x5e3eb8=null,_0x5add22=null;try{if(_0x1e8421==_0x571b4b([0x47,0x50,0x4c]))return _0x571b4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f22f3=(function(){const _0x519662=_0x1e8421[_0x571b4b([0x73,0x70,0x6c,0x69,0x74])](_0x571b4b([0x2e]));if(0x3!=_0x519662[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x20d749=_0x519662[0x1];return _0x4ff566(_0x20d749);function _0x4ff566(_0x21e72f){const _0x27f91b=_0x42121e(_0x21e72f);return _0x27f91b&&_0x526be0()?_0x27f91b:null;function _0x526be0(){const _0x16f76f=_0x27f91b[_0x571b4b([0x6a,0x74,0x69])],_0x5526ee=window[_0x571b4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16f76f[_0x571b4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16f76f[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3aef5d={..._0x27f91b,[_0x571b4b([0x6a,0x74,0x69])]:_0x16f76f[_0x571b4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16f76f[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3aef5d[_0x571b4b([0x76,0x63])],_0xb6fef5(_0x3aef5d)==_0x5526ee;}}}()),!_0x3f22f3)return _0x571b4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3f22f3[_0x571b4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5add22=function(_0x2d318f,_0x4d1b36){return new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50f52d=>{if(_0x35539d())return _0x50f52d(_0x571b4b([0x56,0x61,0x6c,0x69,0x64]));_0x37c8a0(),_0x4c5a7e[_0x571b4b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x571b4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b9f32=!0x1;const _0x5a1477=uid();function _0x3d9f65(_0x42d93a){return!!_0x42d93a&&(typeof _0x42d93a===_0x571b4b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42d93a===_0x571b4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42d93a[_0x571b4b([0x74,0x68,0x65,0x6e])]===_0x571b4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42d93a[_0x571b4b([0x63,0x61,0x74,0x63,0x68])]===_0x571b4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x560928(_0x7f3f88){_0x4174b0(_0x7f3f88)[_0x571b4b([0x74,0x68,0x65,0x6e])](_0x31c853=>{if(!_0x31c853||_0x31c853[_0x571b4b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x571b4b([0x6f,0x6b]))return _0x571b4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e806a(_0xb6fef5(_0x5a1477+_0x4d1b36))!=_0x31c853[_0x571b4b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x571b4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x571b4b([0x56,0x61,0x6c,0x69,0x64]);})[_0x571b4b([0x74,0x68,0x65,0x6e])](_0x290b22=>(_0x24d0c2(),_0x290b22),()=>{const _0x3bc4be=_0x2dab8d();return null==_0x3bc4be?(_0x24d0c2(),_0x571b4b([0x56,0x61,0x6c,0x69,0x64])):_0x571b4b(_0x3e4866-_0x3bc4be>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x571b4b([0x74,0x68,0x65,0x6e])](_0x50f52d)[_0x571b4b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50f52d(_0x571b4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x224ab5=0x36ee80;function _0x24d0c2(){const _0xb21f1b=_0x571b4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e806a(_0xb6fef5(_0x2d318f)),_0x16bc1c=_0x3f02f1(_0x1e806a(window[_0x571b4b([0x4d,0x61,0x74,0x68])][_0x571b4b([0x63,0x65,0x69,0x6c])](_0x3e4866/_0x224ab5)));window[_0x571b4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x571b4b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb21f1b,_0x16bc1c);}function _0x2dab8d(){const _0x700fb9=_0x571b4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e806a(_0xb6fef5(_0x2d318f)),_0x57e202=window[_0x571b4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x571b4b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x700fb9);return _0x57e202?window[_0x571b4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f02f1(_0x57e202),0x10)*_0x224ab5:null;}function _0x4174b0(_0x371212){return new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b852d,_0xb83077)=>{_0x371212[_0x571b4b([0x74,0x68,0x65,0x6e])](_0x3b852d,_0xb83077),window[_0x571b4b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb83077,0x1d4c0);});}}_0x4c5a7e[_0x571b4b([0x6f,0x6e])](_0x571b4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd349a0,_0x3a6536)=>{if(_0x3a6536[0x0]!=_0x2d318f)return _0x50f52d(_0x571b4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a6536[0x1]={..._0x3a6536[0x1],[_0x571b4b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a1477};},{[_0x571b4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x571b4b([0x68,0x69,0x67,0x68])}),_0x4c5a7e[_0x571b4b([0x6f,0x6e])](_0x571b4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ee9ae=>{_0x3d9f65(_0x5ee9ae[_0x571b4b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b9f32=!0x0,_0x560928(_0x5ee9ae[_0x571b4b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x571b4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x571b4b([0x6c,0x6f,0x77])}),_0x3255c9[_0x571b4b([0x74,0x68,0x65,0x6e])](()=>{_0x3b9f32||_0x50f52d(_0x571b4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35539d(){return _0x4c5a7e[_0x571b4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x571b4b([0x76,0x69,0x65,0x77])][_0x571b4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x571b4b([0x61,0x75,0x74,0x6f]);}function _0x37c8a0(){_0x4c5a7e[_0x571b4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x571b4b([0x76,0x69,0x65,0x77])][_0x571b4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x571b4b([0x61,0x75,0x74,0x6f]);}}(_0x3f22f3[_0x571b4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f22f3[_0x571b4b([0x6a,0x74,0x69])]));const _0x594bf3=await(async function(){let _0x50fbec=!0x0;try{const _0x8ffe7e=_0x1e8421[_0x571b4b([0x73,0x70,0x6c,0x69,0x74])](_0x571b4b([0x2e])),[_0xdad8f2,_0x3d43c9,_0x38996f]=_0x8ffe7e;return _0x25dc78(_0xdad8f2),await _0x1ba4c1(_0xdad8f2,_0x3d43c9,_0x38996f),_0x50fbec;}catch{return!0x1;}function _0x25dc78(_0x352715){const _0x44277c=_0x42121e(_0x352715);_0x44277c&&_0x44277c[_0x571b4b([0x61,0x6c,0x67])]==_0x571b4b([0x45,0x53,0x32,0x35,0x36])||(_0x50fbec=!0x1);}async function _0x1ba4c1(_0x14f6ee,_0x431711,_0x4d38a4){const _0x3cf57b=window[_0x571b4b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x571b4b([0x66,0x72,0x6f,0x6d])](_0x2479b7(_0x4d38a4),_0x4d786b=>_0x4d786b[_0x571b4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x540f4b=new window[(_0x571b4b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x571b4b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14f6ee+_0x571b4b([0x2e])+_0x431711),_0x50ac72=window[_0x571b4b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x571b4b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50ac72)return;const _0x179fcc=await _0x50ac72[_0x571b4b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x571b4b([0x6a,0x77,0x6b]),_0x4532d1,{[_0x571b4b([0x6e,0x61,0x6d,0x65])]:_0x571b4b([0x45,0x43,0x44,0x53,0x41]),[_0x571b4b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x571b4b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x571b4b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50ac72[_0x571b4b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x571b4b([0x6e,0x61,0x6d,0x65])]:_0x571b4b([0x45,0x43,0x44,0x53,0x41]),[_0x571b4b([0x68,0x61,0x73,0x68])]:{[_0x571b4b([0x6e,0x61,0x6d,0x65])]:_0x571b4b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x179fcc,_0x3cf57b,_0x540f4b)||(_0x50fbec=!0x1);}}());return _0x594bf3?(function(){const _0x4d89bb=_0x3f22f3[_0x571b4b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d89bb)return!0x1;if(_0x4d89bb[_0x571b4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571b4b([0x2a])))return!0x0;if(_0x4d89bb[_0x571b4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571b4b([0x52,0x48])))return!0x0;if(_0x4d89bb[_0x571b4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571b4b([0x52,0x52,0x48]))){if(_0x457c64(_0x571b4b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1424e2(_0x571b4b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x571b4b([0x73,0x74,0x61,0x74,0x65])]==_0x571b4b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x457c64(_0x571b4b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x457c64(_0x571b4b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}return!0x1;}())?(function(){const _0x508273=[_0x571b4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x571b4b([0x74,0x72,0x69,0x61,0x6c])][_0x571b4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f22f3[_0x571b4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e4866/0x3e8:0x6a03bf00;return _0x3f22f3[_0x571b4b([0x65,0x78,0x70])]<_0x508273;}())?_0x571b4b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x48961d=_0x3f22f3[_0x571b4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48961d||0x0==_0x48961d[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x178129}=new URL(window[_0x571b4b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48961d[_0x571b4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178129))return!0x0;const _0x2fac45=_0x178129[_0x571b4b([0x73,0x70,0x6c,0x69,0x74])](_0x571b4b([0x2e]));return _0x48961d[_0x571b4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ec233=>_0x6ec233[_0x571b4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571b4b([0x2a])))[_0x571b4b([0x6d,0x61,0x70])](_0x290f7f=>_0x290f7f[_0x571b4b([0x73,0x70,0x6c,0x69,0x74])](_0x571b4b([0x2e])))[_0x571b4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x270002=>_0x270002[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fac45[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x571b4b([0x6d,0x61,0x70])](_0x451df7=>Array(_0x2fac45[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x451df7[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x571b4b([0x66,0x69,0x6c,0x6c])](_0x451df7[0x0]===_0x571b4b([0x2a])?_0x571b4b([0x2a]):'')[_0x571b4b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x451df7))[_0x571b4b([0x73,0x6f,0x6d,0x65])](_0x5714a1=>_0x2fac45[_0x571b4b([0x65,0x76,0x65,0x72,0x79])]((_0x565122,_0x2d7d56)=>_0x5714a1[_0x2d7d56]===_0x565122||_0x5714a1[_0x2d7d56]===_0x571b4b([0x2a])));}())?(_0x3f22f3[_0x571b4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x571b4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e3eb8=function(_0x4080b5){const _0x189372=new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xefab82=>setTimeout(_0xefab82,0x93ecc)),_0x5e8355=_0x3255c9[_0x571b4b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d932b=>{const _0x433656=0x7,_0x2b3b6f=_0x4b666c[_0x571b4b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x16f78e(){_0x2b3b6f[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x433656&&_0x5d932b();}_0x16f78e(),_0x2b3b6f[_0x571b4b([0x6f,0x6e])](_0x571b4b([0x61,0x64,0x64]),_0x16f78e);})),_0x5e7ef8=new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15db73=>{function _0x49ef18(){for(const _0x4bb58f in window)if(window[_0x571b4b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x571b4b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4bb58f))&&window[_0x4bb58f]==_0x44bec9)return _0x15db73();_0x4c5a7e[_0x571b4b([0x73,0x74,0x61,0x74,0x65])]!=_0x571b4b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x571b4b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49ef18,0x1388);}_0x457c64(_0x571b4b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x49ef18();}),_0x32ef64=[_0x189372,_0x5e8355,_0x5e7ef8];return window[_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x571b4b([0x72,0x61,0x63,0x65])](_0x32ef64)[_0x571b4b([0x74,0x68,0x65,0x6e])](()=>_0x4080b5);}(_0x571b4b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5e3eb8&&_0x5add22)return new window[(_0x571b4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56c84f,_0x13fec2)=>{_0x5e3eb8[_0x571b4b([0x74,0x68,0x65,0x6e])](_0x56c84f,_0x13fec2),_0x5add22[_0x571b4b([0x74,0x68,0x65,0x6e])](_0x5e4781=>{_0x5e4781!=_0x571b4b([0x56,0x61,0x6c,0x69,0x64])&&_0x56c84f(_0x5e4781);},_0x13fec2);});return _0x5e3eb8||_0x5add22||_0x571b4b([0x56,0x61,0x6c,0x69,0x64]);}())):_0x571b4b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x571b4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x571b4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x571b4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3783aa(){const _0x1c7d7b=window[_0x571b4b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x571b4b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x571b4b([0x6e,0x6f,0x77])]())[_0x571b4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x571b4b([0x2e]),'');let _0xef0734=_0x571b4b([0x76]);for(let _0x4a71eb=0x0;_0x4a71eb<_0x1c7d7b[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a71eb+=0x2){let _0x58e53d=window[_0x571b4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c7d7b[_0x571b4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a71eb,_0x4a71eb+0x2));_0x58e53d>=_0x11d9a8[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58e53d-=_0x11d9a8[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xef0734+=_0x11d9a8[_0x58e53d];}return _0xef0734;}function _0x42121e(_0x3ed8c9){return _0x3ed8c9[_0x571b4b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x571b4b([0x65,0x79]))?JSON[_0x571b4b([0x70,0x61,0x72,0x73,0x65])](_0x2479b7(_0x3ed8c9)):null;}function _0x2479b7(_0x4d7c26){return window[_0x571b4b([0x61,0x74,0x6f,0x62])](_0x4d7c26[_0x571b4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x571b4b([0x2b]))[_0x571b4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x571b4b([0x2f])));}function _0xb6fef5(_0x45236b){let _0x39636a=0x1505;function _0x4202b0(_0x34613e){for(let _0x7862e9=0x0;_0x7862e9<_0x34613e[_0x571b4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7862e9++){const _0x385f9a=_0x34613e[_0x571b4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7862e9);_0x39636a=(_0x39636a<<0x5)+_0x39636a+_0x385f9a,_0x39636a&=_0x39636a;}}return function _0x1e90e7(_0x4f8b12){Array[_0x571b4b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8b12)?_0x4f8b12[_0x571b4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e90e7):_0x4f8b12&&typeof _0x4f8b12==_0x571b4b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x571b4b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8b12)[_0x571b4b([0x73,0x6f,0x72,0x74])]()[_0x571b4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbd82a7,_0xe50993])=>{_0x4202b0(_0xbd82a7),_0x1e90e7(_0xe50993);}):_0x4202b0(window[_0x571b4b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8b12));}(_0x45236b),_0x39636a>>>0x0;}function _0x1e806a(_0x328fa1){return _0x328fa1[_0x571b4b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x571b4b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x571b4b([0x30]));}function _0x3f02f1(_0x4c5624){return _0x4c5624[_0x571b4b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x571b4b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x571b4b([0x6a,0x6f,0x69,0x6e])]('');}function _0x457c64(_0x38bc5d){return _0x4c5a7e[_0x571b4b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x571b4b([0x68,0x61,0x73])](_0x38bc5d);}function _0x1424e2(_0x207776){return _0x4c5a7e[_0x571b4b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x571b4b([0x67,0x65,0x74])](_0x207776);}function _0x46ade9(){}function _0x571b4b(_0x436049){return _0x436049['map'](_0x53f6b7=>String['fromCharCode'](_0x53f6b7))['join']('');}!function(_0x4f4881){const _0x470df6=_0x3783aa();_0x4c5a7e[_0x470df6]=_0x571b4b([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f4881,_0x4f4881[_0x571b4b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x571b4b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3783aa()]=_0x44bec9),_0x4f4881!=_0x571b4b([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x3255c9,_0x457c64(_0x571b4b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x30caf1=_0x4b666c[_0x571b4b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4c928d=_0x4b666c[_0x571b4b([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x30caf1[_0x571b4b([0x69,0x64])]),_0x21337a=_0x1424e2(_0x571b4b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x21337a[_0x571b4b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x30caf1['id'],_0x4c928d?_0x4c928d['id']:null,!0x0),_0x21337a[_0x571b4b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x571b4b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x21337a[_0x571b4b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x21337a[_0x571b4b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x46ade9,void(_0x21337a[_0x571b4b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x46ade9);}if(_0x457c64(_0x571b4b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4eac8e=_0x1424e2(_0x571b4b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4eac8e[_0x571b4b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x571b4b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4eac8e[_0x571b4b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4eac8e[_0x571b4b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x46ade9,_0x4eac8e[_0x571b4b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x46ade9;}_0x4c5a7e[_0x571b4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x571b4b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46ade9,_0x4c5a7e[_0x571b4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x571b4b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46ade9,_0x4c5a7e[_0x571b4b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x571b4b([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x59a097);}class RevisionHistoryUtils extends Plugin{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[ViewContainerElement,'c'],[ViewAttributeElement,'a'],[ViewEmptyElement,'e'],[ViewRawElement,'r'],[ViewUIElement,'u']]);['_typeCharToViewClass']=new Map([['c',ViewContainerElement],['a',ViewAttributeElement],['e',ViewEmptyElement],['r',ViewRawElement],['u',ViewUIElement]]);async['loadRevisionData'](_0x124659,_0xba9476){if(_0x124659['diffData']||!_0xba9476)return;const _0x118f7e=this['editor']['config']['get']('collaboration.channelId'),_0x378128=await _0xba9476['getRevision']({'channelId':_0x118f7e,'revisionId':_0x124659['id']});_0x124659['diffData']=_0x378128['diffData'];}['getRevisionDocumentData'](_0x47580e){const _0x4e1846={};for(const _0x2ec59b in _0x47580e['diffData']){if(_0x47580e['diffData'][_0x2ec59b]['attachChange']&&!_0x47580e['diffData'][_0x2ec59b]['attachChange']['isAttached'])continue;const _0x3e0eba=this['_removeRevisionMarkers'](JSON['parse'](_0x47580e['diffData'][_0x2ec59b]['insertions'])),_0x2aa0cc=this['editor']['editing']['view']['document'],_0x3cd7ef=new ViewDocumentFragment(_0x2aa0cc,_0x3e0eba['map'](_0x2f4058=>this['_getViewFromDiffObj'](_0x2f4058,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4e1846[_0x2ec59b]=this['editor']['data']['processor']['toData'](_0x3cd7ef),this['editor']['data']['processor']['useFillerType']('default');}return _0x4e1846;}['getRevisionRootsAttributes'](_0x2c176f){const _0x59303a={};for(const _0x2b716c in _0x2c176f['diffData'])_0x2c176f['diffData'][_0x2b716c]['attachChange']&&!_0x2c176f['diffData'][_0x2b716c]['attachChange']['isAttached']||(_0x59303a[_0x2b716c]=_0x2c176f['diffData'][_0x2b716c]['attributesAfter']||{});return _0x59303a;}['_getTypeCharForViewElement'](_0x3525f5){return this['_viewClassToTypeChar']['get'](_0x3525f5['constructor']);}['_getViewFromDiffObj'](_0x3ec049,_0x2dcdda){const _0x1e2c83=this['editor']['editing']['view']['document'];if('string'==typeof _0x3ec049)return new ViewText(_0x1e2c83,_0x3ec049);{let _0x3dfb47,_0x16204a;_0x16204a='u'==_0x3ec049['type']||'r'==_0x3ec049['type']?[]:_0x3ec049['children']['map'](_0x563e50=>this['_getViewFromDiffObj'](_0x563e50,_0x2dcdda));const _0x1b631c=this['_typeCharToViewClass']['get'](_0x3ec049['type'])||ViewElement,_0xbe823b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3dfb47=new _0x1b631c(_0x1e2c83,_0x3ec049['name'],_0x3ec049['attributes'],_0x16204a),'u'==_0x3ec049['type']&&_0x3ec049['children'][0x0]){const _0x4523c7=_0x3ec049['children'][0x0];if(_0x3dfb47['render']=function(_0x2ca50c){const _0x492d8c=_0x2ca50c['createElement']('div');return _0x492d8c['innerHTML']=_0x4523c7,_0x492d8c['childNodes'][0x0];},_0x2dcdda){const _0x467e8b=new ViewDocumentFragment(_0x1e2c83);_0x467e8b['_appendChild'](_0x3dfb47);const _0x3c42b3=Array['from'](_0xbe823b['viewChildrenToDom'](_0x467e8b,{'bind':!0x1})),_0x1805de=_0xbe823b['domDocument']['createElement']('div');_0x1805de['append'](..._0x3c42b3),_0x3dfb47=Array['from'](_0xbe823b['domChildrenToView'](_0x1805de))[0x0];}}else{if('r'==_0x3ec049['type']&&_0x3ec049['children'][0x0]){const _0x22be51=_0x3ec049['children'][0x0];if(_0x3dfb47['render']=function(_0xa6bbd8){_0xa6bbd8['innerHTML']=_0x22be51;},_0x2dcdda){const _0x390b45=new ViewDocumentFragment(_0x1e2c83);_0x390b45['_appendChild'](_0x3dfb47);const _0x166ae8=Array['from'](_0xbe823b['viewChildrenToDom'](_0x390b45,{'bind':!0x1})),_0x246896=_0xbe823b['domDocument']['createElement']('div');_0x246896['append'](..._0x166ae8);const _0x539971=Array['from'](_0xbe823b['domChildrenToView'](_0x246896));_0x539971['length']>0x1?_0x3dfb47['_appendChild'](_0x539971):_0x3dfb47=_0x539971[0x0];}}}if(_0x3ec049['customProperties']){for(const [_0x3bd1e6,_0x1f7d2c]of _0x3ec049['customProperties'])_0x3dfb47['_setCustomProperty'](_0x3bd1e6,_0x1f7d2c);}const _0x434cbe=void 0x0===_0x3ec049['fillerOffset']?null:_0x3ec049['fillerOffset'];return null!==_0x434cbe&&(_0x3dfb47['getFillerOffset']=()=>_0x434cbe),_0x3dfb47;}}['_makeModelFromViewString'](_0x1b236f){const _0x44b489=JSON['parse'](_0x1b236f),_0x3754e3=this['editor']['editing']['view']['document'],_0x17e2ce=new ViewDocumentFragment(_0x3754e3,_0x44b489['map'](_0x468c83=>this['_getViewFromDiffObj'](_0x468c83,!0x0)));return this['editor']['data']['toModel'](_0x17e2ce);}['_removeRevisionMarkers'](_0x3a09e9){return(_0x3a09e9=_0x3a09e9['filter'](_0x52ae92=>!_0x52ae92['name']||'revision-start'!==_0x52ae92['name']&&'revision-end'!==_0x52ae92['name']))['forEach'](_0x53a27f=>{'string'!=typeof _0x53a27f&&(_0x53a27f['children']=this['_removeRevisionMarkers'](_0x53a27f['children']),_0x53a27f['attributes']=_0x53a27f['attributes']['filter'](_0x6de60=>!_0x6de60[0x0]['startsWith']('data-revision-')));}),_0x3a09e9;}}function getTranslation$4(_0x50572d,_0x5123a6,_0x5593f4){const t=_0x50572d['t'];switch(_0x5123a6){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x5593f4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5593f4);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class RevisionTracker extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Users,RevisionsRepository,RevisionHistoryUtils,PendingActions];}constructor(_0x1a7eb1){super(_0x1a7eb1),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new RevisionDataBuilder(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xd74d5d=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xd74d5d},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x10496c=this['repository']['getRevision'](0x0),_0x3d8c14=_0x10496c&&null===_0x10496c['creator']?_0x10496c:null;if(this['_continueCurrentRevision']=!!_0x3d8c14&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x48dcc8=this['_source']['getCurrentRevisionId'](),_0x4d0923=this['repository']['getRevision'](_0x48dcc8);if(_0x4d0923)this['_startingVersion']=_0x4d0923['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x39bdc3=this['_source']['history']['_operations']['find'](_0x343051=>!_0x343051['_isInit']),_0x285196=_0x39bdc3?_0x39bdc3['baseVersion']:this['_source']['history']['version'];_0x10496c?(_0x10496c['toVersion']<_0x285196&&_0x10496c['_update']({'toVersion':_0x285196}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3d8c14['id'],this['_startingVersion']=_0x3d8c14['fromVersion']):(this['_startingVersion']=_0x10496c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x285196,this['_continueCurrentRevision']=!0x1);}}else _0x3d8c14&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3d8c14['toVersion'],this['editor']['model']['document']['history']['version']),_0x3d8c14['fromVersion']===_0x3d8c14['toVersion']?(0x0!==_0x3d8c14['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d8c14['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3d8c14['id'],this['_startingVersion']=_0x3d8c14['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x2649d5=>!_0x2649d5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5898a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a09db;for(const _0x58b542 in _0x5898a7){const _0x1adee2=_0x58b542,_0x1ca5fb=_0x5898a7[_0x1adee2];if('revisionHistoryLicenseKeyValid'==_0x1ca5fb||'revisionHistoryLicenseKeyInvalid'==_0x1ca5fb||'revisionHistoryLicenseKeyExpired'==_0x1ca5fb||'revisionHistoryLicenseKeyDomainLimit'==_0x1ca5fb||'revisionHistoryLicenseKeyNotAllowed'==_0x1ca5fb||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ca5fb||'revisionHistoryLicenseKeyUsageLimit'==_0x1ca5fb){delete _0x5898a7[_0x1adee2],_0x2a09db=_0x1ca5fb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2a09db&&_0x5898a7['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2a09db&&_0x5898a7['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2a09db&&_0x5898a7['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2a09db&&_0x5898a7['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2a09db&&_0x5898a7['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2a09db&&_0x5898a7['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x29cf2d=this['repository']['getRevision'](0x0),_0x288ef9=await this['getRevisionDocumentData'](_0x29cf2d),_0x7cf501=await this['getRevisionRootsAttributes'](_0x29cf2d);this['_replaceEditorDataWithRevisionData'](_0x288ef9,_0x7cf501);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x13f3d2){this['_source']=_0x13f3d2;}async['update'](){const _0x5a639a=await this['_source']['getLatestVersion']();if(_0x5a639a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x143d82=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a639a});_0x143d82['authors']=_0x143d82['authorsIds']['map'](_0x449f10=>this['editor']['plugins']['get']('Users')['getUser'](_0x449f10)),this['currentRevision']['_update'](_0x143d82);}}async['saveRevision'](_0x1ea111={},_0x6b284=null){const _0x560d60=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x6b284>this['currentRevision']['toVersion']&&(_0x6b284=null),null===_0x6b284&&(_0x6b284=await this['_source']['getLatestVersion']());const _0x5d1089=this['_getFromVersion'](_0x6b284),_0x9130bb=this['buildRevisionData']({'from':_0x5d1089,'to':_0x6b284});if(this['currentRevision']['toVersion']<_0x6b284){const _0x43a7a0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x6b284,'to':_0x6b284});_0x43a7a0['authors']=[],_0x43a7a0['authorsIds']=[],_0x43a7a0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x43a7a0,!0x0),delete _0x43a7a0['authors'],_0x560d60['push'](_0x43a7a0);}_0x1ea111['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ea111['name']=_0x1ea111['name']||null,_0x1ea111['id']=_0x1ea111['id']||uid(),_0x1ea111={..._0x1ea111,..._0x9130bb};const _0x2a0c40=this['addRevisionData'](_0x1ea111);_0x560d60['push'](_0x1ea111);const _0x70e0a4=this['repository']['getIndex'](_0x2a0c40);if(0x0!==_0x70e0a4){const _0x4cc1e2=this['repository']['getRevision'](_0x70e0a4-0x1);if(_0x4cc1e2['fromVersion']!==_0x6b284){const _0x45debc=this['_revisionDataBuilder']['getData'](_0x6b284,_0x4cc1e2['toVersion']),_0x2325de={'id':_0x4cc1e2['id'],'diffData':_0x45debc['diffData'],'authorsIds':_0x45debc['authorsIds'],'authors':_0x45debc['authorsIds']['map'](_0x40cb82=>this['editor']['plugins']['get']('Users')['getUser'](_0x40cb82)),'fromVersion':_0x6b284};_0x4cc1e2===this['currentRevision']&&(_0x2325de['createdAt']=new Date(_0x1ea111['createdAt']['getTime']()+0xa)),_0x4cc1e2['_update'](_0x2325de,!0x0),delete _0x2325de['authors'],_0x560d60['push'](_0x2325de);}}if(this['adapter']){for(const _0x1e1ebb of _0x560d60)this['_bufferUpdate'](_0x1e1ebb['id'],_0x1e1ebb,!0x0);this['sendBufferedUpdates']();}return _0x2a0c40;}['addRevisionData'](_0x202bf1){const _0x1b5f2b=this['repository']['createRevision'](_0x202bf1);return this['adapter']&&_0x1b5f2b['on']('_update',(_0x4c2d20,_0x5a227d,_0xe75c8)=>{_0xe75c8||(this['_bufferUpdate'](_0x5a227d['id'],_0x5a227d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1b5f2b,this['_findInsertionIndex'](_0x1b5f2b)),_0x1b5f2b;}async['getRevisionDocumentData'](_0x52fa98){return await this['_utils']['loadRevisionData'](_0x52fa98,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x52fa98);}async['getRevisionRootsAttributes'](_0x3cfba6){return await this['_utils']['loadRevisionData'](_0x3cfba6,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3cfba6);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x533a2a=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x6c3007=0x0;_0x6c3007<_0x533a2a['length'];_0x6c3007++){const _0xe4353a=_0x533a2a[_0x6c3007];let _0x4a92cb=!0x1;for(const _0x1e7ae0 of Object['keys'](_0xe4353a))void 0x0===_0xe4353a[_0x1e7ae0]?delete _0xe4353a[_0x1e7ae0]:'id'!==_0x1e7ae0&&(_0x4a92cb=!0x0);_0x4a92cb||(_0x533a2a[_0x6c3007]=null);}if(_0x533a2a=_0x533a2a['filter'](_0x56cbda=>null!==_0x56cbda),!_0x533a2a['length'])return;for(let _0xa7462e=0x0;_0xa7462e<_0x533a2a['length'];_0xa7462e++){const _0x188e12=_0x533a2a[_0xa7462e];void 0x0!==_0x188e12['fromVersion']&&void 0x0===_0x188e12['toVersion']&&(_0x188e12['toVersion']=this['repository']['getRevision'](_0x188e12['id'])['toVersion']),void 0x0!==_0x188e12['toVersion']&&void 0x0===_0x188e12['fromVersion']&&(_0x188e12['fromVersion']=this['repository']['getRevision'](_0x188e12['id'])['fromVersion']);}const _0x5182b8=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x533a2a,_0x5182b8)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x27e2aa=>{if(_0x27e2aa){for(const _0x2e89fc of _0x27e2aa)this['setRevisionData']({'id':_0x2e89fc['id'],'createdAt':_0x2e89fc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x36b265=null,from:_0x53da7d=null,to:_0x48c3cc=null}){_0x53da7d=null!==_0x53da7d?_0x53da7d:_0x36b265['fromVersion'],_0x48c3cc=null!==_0x48c3cc?_0x48c3cc:_0x36b265['toVersion'];const _0x1b5c59=this['_revisionDataBuilder']['getData'](_0x53da7d,_0x48c3cc),_0x6c0ddf={'diffData':_0x1b5c59['diffData'],'authorsIds':_0x1b5c59['authorsIds'],'fromVersion':_0x53da7d,'toVersion':_0x48c3cc};if(!_0x36b265||_0x48c3cc!==_0x36b265['toVersion']){const _0x3da272=_0x48c3cc-0x1,_0x2b85a6=this['_source']['history']['getOperation'](_0x3da272);_0x6c0ddf['createdAt']=_0x2b85a6&&_0x2b85a6['createdAt']||new Date();}if(this['_loadedStateData']&&_0x53da7d===this['_loadedStateData']['fromVersion']){for(const _0x2057c4 of this['_loadedStateData']['authors'])_0x6c0ddf['authorsIds']['includes'](_0x2057c4['id'])||_0x6c0ddf['authorsIds']['push'](_0x2057c4['id']);}return _0x6c0ddf;}['_bufferUpdate'](_0x578b8d,_0x377ab5,_0x3527cc){if(this['_bufferedUpdates']['has'](_0x578b8d)){const _0x42b01c=this['_bufferedUpdates']['get'](_0x578b8d);_0x377ab5=_0x3527cc?{..._0x42b01c,..._0x377ab5}:{..._0x377ab5,..._0x42b01c};}this['_bufferedUpdates']['set'](_0x578b8d,_0x377ab5);}['setRevisionData'](_0x3ead98){const _0x30ddf=this['repository']['getRevision'](_0x3ead98['id']);if(_0x3ead98['createdAt']&&(_0x3ead98['createdAt']=new Date(_0x3ead98['createdAt'])),_0x3ead98['authorsIds']){const _0x2b190e=this['editor']['plugins']['get']('Users');_0x3ead98['authors']=_0x3ead98['authorsIds']['map'](_0x1fc331=>_0x2b190e['getUser'](_0x1fc331));}_0x30ddf['_update'](_0x3ead98,!0x0);}['_createInitialRevision'](_0x509c74){const _0x183466=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x183466)this['_initialRevisionId']=_0x183466['id'];else{const _0x38bc64=!this['editor']['model']['document']['roots']['find'](_0x501a83=>this['editor']['model']['hasContent'](_0x501a83)),_0x191b17=this['editor']['plugins']['get']('Users')['me']['id'],_0x166d24=getTranslation$4(this['editor']['locale'],_0x38bc64?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x509c74,'to':_0x509c74,'id':this['_initialRevisionId'],'name':_0x166d24,'creatorId':_0x191b17});}}['_createCurrentRevision'](_0x8352cc){const _0x2381a6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2381a6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x8352cc,'to':_0x8352cc,'id':_0x2381a6,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4cef17,_0x1dd1b6){const _0x19fe01={},_0xe9e6aa={},_0x3c1aea=this['editor']['config']['get']('roots')||{};for(const [_0x25d574,_0x54a8b2]of Object['entries'](_0x3c1aea))_0x54a8b2['lazyLoad']||(_0x19fe01[_0x25d574]=_0x54a8b2['initialData']??'',_0xe9e6aa[_0x25d574]=_0x54a8b2['modelAttributes']||{});for(const _0x1fb1b1 of this['editor']['model']['document']['getRootNames']())_0x19fe01[_0x1fb1b1]??='',_0xe9e6aa[_0x1fb1b1]??={};let _0x4487b1=!0x1;const _0x14d6d9=Object['keys'](_0x19fe01),_0x397d01=Object['keys'](_0x4cef17);for(const _0x63eca of _0x14d6d9){if(_0x19fe01[_0x63eca]!==_0x4cef17[_0x63eca]&&''!==_0x19fe01[_0x63eca]['trim']()){_0x4487b1=!0x0;break;}if(!isEqual(_0xe9e6aa[_0x63eca],_0x1dd1b6[_0x63eca])&&Object['keys'](_0xe9e6aa[_0x63eca])['length']>0x0){_0x4487b1=!0x0;break;}}_0x4487b1||(_0x4487b1=_0x397d01['some'](_0x1ef6c8=>!this['editor']['model']['document']['getRoot'](_0x1ef6c8))),_0x4487b1&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0x19fe01,'editorRootsAttributes':_0xe9e6aa,'revisionData':_0x4cef17,'revisionRootsAttributes':_0x1dd1b6});for(const [_0x578e5f,_0x5d15fd]of Object['entries'](_0x4cef17))this['editor']['config']['set']('roots.'+_0x578e5f+'.initialData',_0x5d15fd);for(const [_0x393a78,_0x9abb3]of Object['entries'](_0x1dd1b6))this['editor']['config']['set']('roots.'+_0x393a78+'.modelAttributes',_0x9abb3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x204427=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x204427['add'](getTranslation$4(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43aef4){const _0x444bba=this['repository']['getRevisions']();_0x444bba['reverse']();let _0x3219fa=0x0;for(;_0x3219fa<_0x444bba['length'];){const _0x126ce3=_0x444bba[_0x3219fa];if(_0x126ce3===this['currentRevision']){_0x3219fa++;continue;}if(_0x126ce3['id']===this['_initialRevisionId'])break;const _0x5a8a85=_0x43aef4['toVersion']-_0x126ce3['toVersion']||_0x43aef4['fromVersion']-_0x126ce3['fromVersion'];if(_0x5a8a85>0x0)break;if(_0x5a8a85<0x0)_0x3219fa++;else{if(!_0x43aef4['creator']&&_0x126ce3['creator'])break;if(_0x126ce3['creator']||!_0x43aef4['creator']){if(_0x43aef4['createdAt']>_0x126ce3['createdAt'])break;_0x3219fa++;}else _0x3219fa++;}}return _0x3219fa;}['_getFromVersion'](_0x375f7c){const _0xab47cd=this['repository']['getRevisions']();_0xab47cd['reverse'](),_0xab47cd['shift']();const _0x39ca60=_0xab47cd['find'](_0x4fe7bb=>_0x4fe7bb['toVersion']<=_0x375f7c)['toVersion'];return _0x39ca60<this['_startingVersion']?this['_startingVersion']:_0x39ca60;}['_makeRevision']({name:_0x105e77,from:_0x513cc7,to:_0x5797a4,creatorId:_0x27cdcb,id:_0x4ae8a9}){const _0x154bf1=this['buildRevisionData']({'from':_0x513cc7,'to':_0x5797a4});_0x154bf1['name']=_0x105e77,_0x154bf1['creatorId']=_0x27cdcb,_0x154bf1['id']=_0x4ae8a9;const _0x3bb31b=this['addRevisionData'](_0x154bf1);return this['adapter']&&this['_bufferUpdate'](_0x154bf1['id'],_0x154bf1,!0x0),_0x3bb31b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class RevisionDataBuilder{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x52a1bf){this['editor']=_0x52a1bf,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0xfb7cc8){this['source']=_0xfb7cc8;const _0x38645d=new Map(),_0x187b67=new Map(),_0x4a0368=this['editor']['model']['document']['roots']['map'](_0x350fb4=>_0x350fb4['rootName']);for(const _0x16555e of _0x4a0368){const _0x234bb6=this['editor']['model']['document']['getRoot'](_0x16555e),_0xa005f3=_cloneRoot(_0x234bb6);_0x38645d['set'](_0x16555e,_0xa005f3),_0x187b67['set'](_0x16555e,Object['fromEntries'](_0x234bb6['getAttributes']()));}const _0x869db4=Array['from'](this['editor']['model']['markers'])['map'](_0x1b61f9=>[_0x1b61f9['name'],_0x1b61f9['getRange']()]),_0x285efc=this['source']['version'];this['_saveMetaData'](_0x285efc,_0x38645d,_0x869db4,_0x187b67),this['_startingRevisionId']=this['_revisionId'];const _0x377ec6=new Map(),_0x3c3813=new Map();for(const _0x1f1fac of _0x4a0368){const _0x165a3a=_emptyRoot(_0x1f1fac);_0x377ec6['set'](_0x1f1fac,_0x165a3a),_0x3c3813['set'](_0x1f1fac,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x377ec6,[],_0x3c3813);}['getData'](_0x5994e9,_0x6fb4bc){if(this['_lastFrom']===_0x5994e9&&this['_lastTo']<=_0x6fb4bc)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x6fb4bc,!0x0);else{if(!this['_savedMetaData']['has'](_0x5994e9)){const _0x1ea03f=this['_getPreviousFrom'](_0x5994e9);this['_calculateMetaData'](_0x1ea03f,_0x5994e9,!0x1);}this['_calculateMetaData'](_0x5994e9,_0x6fb4bc,!0x0);}return this['_lastFrom']=_0x5994e9,this['_lastTo']=_0x6fb4bc,this['_getState']();}['loadState'](_0x1e1766){if(!this['_savedMetaData']['has'](_0x1e1766['fromVersion'])){const _0x51bfe4=this['_getPreviousFrom'](_0x1e1766['fromVersion']);this['_calculateMetaData'](_0x51bfe4,_0x1e1766['fromVersion'],!0x1);}this['_calculateMetaData'](_0x1e1766['fromVersion'],_0x1e1766['toVersion'],!0x1);const _0x898a94=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x1e1766['fromVersion'],this['_lastTo']=_0x1e1766['toVersion'];for(const _0x1e5a8b in _0x1e1766['diffData']){const _0x42e0aa=_0x1e1766['diffData'][_0x1e5a8b]['attachChange'],_0x4b1a17=cloneDeep(_0x1e1766['diffData'][_0x1e5a8b]['attributesBefore'])||{},_0x5d1414=_0x898a94['_makeModelFromViewString'](_0x1e1766['diffData'][_0x1e5a8b]['deletions']);_0x5d1414['rootName']=_0x1e5a8b,_0x5d1414['_isAttached']=!_0x42e0aa||!_0x42e0aa['isAttached'],_0x5d1414['isAttached']=()=>_0x5d1414['_isAttached'],this['_baseRoots']['set'](_0x1e5a8b,_0x5d1414),this['_baseRootsAttributes']['set'](_0x1e5a8b,_0x4b1a17),_0x42e0aa&&this['_touchedRoots']['set'](_0x1e5a8b,_0x42e0aa);const _0x248ede=this['_makeIdsRoot'](_0x5d1414);this['_baseIdsRoots']['set'](_0x1e5a8b,_0x248ede);for(const [_0x1cef9f,_0xe89cb]of _0x5d1414['markers']){if(!_0x1cef9f['startsWith']('revision:'))continue;const _0x1ffb85=_0x1cef9f['split'](':')[0x2];for(const _0x5f2427 of _0xe89cb['getWalker']({'singleCharacters':!0x0})){const _0x3a0fdf=this['_getVidAttributeName'](_0x5f2427),_0x1f3cb4='elementEnd'==_0x5f2427['type']?_0x5f2427['previousPosition']['path']['slice'](0x0,-0x1):_0x5f2427['previousPosition']['path'],_0x441727=_0x248ede['getNodeByPath'](_0x1f3cb4)['getAttribute'](_0x3a0fdf);this['_touched']['set'](_0x441727,{'userId':_0x1ffb85});}_0x5d1414['markers']['delete'](_0x1cef9f);}}this['_startingRevisionId']=this['_revisionId'];const _0x249554=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4eb116=>!this['_touched']['has'](_0x4eb116));let _0x445224=0x0;const _0x4914a8=new Map();for(const _0x5cddef in _0x1e1766['diffData']){const _0x3e9093=_0x1e1766['diffData'][_0x5cddef]['attachChange'],_0x4c2433=cloneDeep(_0x1e1766['diffData'][_0x5cddef]['attributesAfter'])||{},_0x162f3e=_0x898a94['_makeModelFromViewString'](_0x1e1766['diffData'][_0x5cddef]['insertions']);_0x162f3e['rootName']=_0x5cddef,_0x162f3e['_isAttached']=!_0x3e9093||_0x3e9093['isAttached'],_0x162f3e['isAttached']=()=>_0x162f3e['_isAttached'],this['_diffRoots']['set'](_0x5cddef,_0x162f3e),this['_diffRootsAttributes']['set'](_0x5cddef,_0x4c2433);const _0x4778bf=this['_makeIdsRoot'](_0x162f3e,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5cddef,_0x4778bf),_0x4914a8['set'](_0x5cddef,_0x162f3e['isAttached']()?_0x4c2433:{});for(const [_0x44ec3a,_0xef4058]of _0x162f3e['markers']){if(!_0x44ec3a['startsWith']('revision:'))continue;const _0x5a86ca=_0x44ec3a['split'](':')[0x2];for(const _0x3b6f50 of _0xef4058['getWalker']({'singleCharacters':!0x0})){const _0x5738c8=this['_getVidAttributeName'](_0x3b6f50),_0x13562e=this['_revisionId']++,_0x495964='elementEnd'==_0x3b6f50['type']?_0x3b6f50['previousPosition']['path']['slice'](0x0,-0x1):_0x3b6f50['previousPosition']['path'];_0x4778bf['getNodeByPath'](_0x495964)['_setAttribute'](_0x5738c8,_0x13562e),this['_touched']['set'](_0x13562e,{'userId':_0x5a86ca});}_0x162f3e['markers']['delete'](_0x44ec3a);}for(const _0x389ca1 of this['editor']['model']['createRangeIn'](_0x162f3e)['getWalker']({'singleCharacters':!0x0})){const _0x49cdc0=this['_getVidAttributeName'](_0x389ca1),_0x4794ec='elementEnd'==_0x389ca1['type']?_0x389ca1['previousPosition']['path']['slice'](0x0,-0x1):_0x389ca1['previousPosition']['path'],_0x1d2180=_0x4778bf['getNodeByPath'](_0x4794ec);_0x1d2180['getAttribute'](_0x49cdc0)>0x0||_0x1d2180['_setAttribute'](_0x49cdc0,_0x249554[_0x445224++]);}for(const [_0x2dd18d,_0x3af903]of _0x162f3e['markers'])_0x2dd18d['startsWith']('revision:')||this['_markers']['set'](_0x2dd18d,_0x3af903);}const {roots:_0x4b0ede}=this['_savedMetaData']['get'](_0x1e1766['fromVersion']),{roots:_0x38a1db}=this['_savedMetaData']['get'](_0x1e1766['toVersion']),_0x48c1b5=_cloneRoot(_0x4b0ede['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x48c1b5),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x48c1b5,Number['NEGATIVE_INFINITY']));const _0x5cf6ed=_cloneRoot(_0x38a1db['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x5cf6ed),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5cf6ed));const _0x1b9f9a=Array['from'](this['_diffRoots'])['map'](([_0x3a059f,_0x5a99c9])=>[_0x3a059f,_cloneRoot(_0x5a99c9)]);this['_saveMetaData'](this['_lastTo'],_0x1b9f9a,this['_markers'],_0x4914a8);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x368948,_0x59e3d5,_0x1e4d29,_0xf8c4f7){const _0x18b70a=new Map(_0x59e3d5),_0x5bc448=new Map(cloneDeep(_0xf8c4f7)),_0x5a727e=new Map();for(const [_0x53a164,_0x6fedd4]of _0x1e4d29)_0x5a727e['set'](_0x53a164,{'start':_0x6fedd4['start']['clone'](),'end':_0x6fedd4['end']['clone'](),'rootName':_0x6fedd4['root']['rootName']});this['_savedMetaData']['set'](_0x368948,{'roots':_0x18b70a,'markers':_0x5a727e,'rootsAttributes':_0x5bc448});}['_removeMetaData'](_0x28f559){this['_savedMetaData']['delete'](_0x28f559);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x17512e,_0x146cfd=null){let _0x388b46=null;_0x17512e['is']('documentFragment')||(_0x388b46=new ModelElement(_0x17512e['name'],{'vid_start':null===_0x146cfd?this['_revisionId']++:_0x146cfd++}));const _0x1fa43b=[];for(const _0x82c62b of _0x17512e['getChildren']())if(_0x82c62b['is']('element')){_0x1fa43b['push'](this['_makeIdsRoot'](_0x82c62b,_0x146cfd));const _0x2b32a7=_0x1fa43b[_0x1fa43b['length']-0x1];null!==_0x146cfd&&(_0x146cfd=_0x2b32a7['is']('element','$text')?_0x2b32a7['getAttribute']('vid')+0x1:_0x2b32a7['getAttribute']('vid_end')+0x1);}else{for(let _0x17bf3a=0x0;_0x17bf3a<_0x82c62b['offsetSize'];_0x17bf3a++)_0x1fa43b['push'](new ModelElement('$text',{'vid':null===_0x146cfd?this['_revisionId']++:_0x146cfd++}));}if(_0x17512e['is']('documentFragment')){const _0x503d20=_emptyRoot(_0x17512e['rootName']);return _0x503d20['_insertChild'](0x0,_0x1fa43b),_0x503d20;}return _0x388b46['_setAttribute']('vid_end',null===_0x146cfd?this['_revisionId']++:_0x146cfd++),_0x388b46['_insertChild'](0x0,_0x1fa43b),_0x388b46;}['_calculateMetaData'](_0x5ba891,_0x3fbc70,_0x14f1b1){this['_reset']();const {roots:_0x5f21ad,markers:_0x52c9d2,rootsAttributes:_0xac9fe8}=this['_savedMetaData']['get'](_0x5ba891);this['_baseRoots']=new Map(_0x5f21ad),this['_baseRootsAttributes']=new Map(cloneDeep(_0xac9fe8));for(const [_0x3950bc,_0x3a9f8c]of this['_baseRoots'])if('$graveyard'!==_0x3950bc&&(this['_diffRoots']['set'](_0x3950bc,_cloneRoot(_0x3a9f8c)),this['_diffRootsAttributes']=new Map(cloneDeep(_0xac9fe8)),_0x14f1b1)){const _0x120678=this['_revisionId'];this['_idsRoots']['set'](_0x3950bc,this['_makeIdsRoot'](_0x3a9f8c)),this['_baseIdsRoots']['set'](_0x3950bc,this['_makeIdsRoot'](_0x3a9f8c,_0x120678));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x14f1b1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x40b200,_0x12f486]of _0x52c9d2){const _0x401878=this['_baseRoots']['get'](_0x12f486['rootName']),_0x462c0c=this['_diffRoots']['get'](_0x12f486['rootName']),_0x44b8b4=new ModelRange(this['_fixPosition'](_0x12f486['start'],_0x401878),this['_fixPosition'](_0x12f486['end'],_0x401878)),_0x500d9e=this['_fixRange'](_0x44b8b4,_0x462c0c);_0x401878['markers']['set'](_0x40b200,_0x44b8b4),this['_markers']['set'](_0x40b200,_0x500d9e);}this['_applyOperations'](_0x5ba891,_0x3fbc70,_0x14f1b1);}['_applyOperations'](_0x5cd600,_0x5be22d,_0x58df10){for(const _0x507dde of this['source']['getOperations'](_0x5cd600,_0x5be22d))this['_handleOperation'](_0x507dde,_0x58df10);for(const _0x7e7c8c of this['_diffRoots']['values']())_0x7e7c8c['markers']['clear']();for(const [_0x493fb6,_0x1e9e0a]of this['_markers']){this['_diffRoots']['get'](_0x1e9e0a['root']['rootName'])['markers']['set'](_0x493fb6,_0x1e9e0a['clone']());}const _0x309805=new Map(),_0x4d9e5b=new Map();for(const [_0x5d0db5,_0x3c5e07]of this['_diffRoots'])_0x309805['set'](_0x5d0db5,_cloneRoot(_0x3c5e07)),_0x4d9e5b['set'](_0x5d0db5,this['_diffRootsAttributes']['get'](_0x5d0db5));this['_saveMetaData'](_0x5be22d,_0x309805,this['_markers'],_0x4d9e5b);}['_getPreviousFrom'](_0x461eb7){const _0x42ff5b=Array['from'](this['_savedMetaData']['keys']());_0x42ff5b['sort']((_0x4fa47a,_0x55d66a)=>_0x4fa47a-_0x55d66a),_0x42ff5b['reverse']();for(const _0x2bfdff of _0x42ff5b)if(_0x2bfdff<_0x461eb7)return _0x2bfdff;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x59b12f,_0x141663){const _0x3b9567=Array['from'](_0x141663['markers'])['map'](([_0x2868f3,_0x5f12f4])=>[_0x2868f3,this['_fixRange'](_0x5f12f4,_0x59b12f)]);_0x59b12f['markers']=new Map(_0x3b9567);}['_transformMarkers'](_0x52c967){for(const _0x2133ae of this['_markers']['values']()){const _0x3cef15=_0x2133ae['getTransformedByOperation'](_0x52c967),_0x4f45f9=ModelRange['_createFromRanges'](_0x3cef15);_0x2133ae['start']=_0x4f45f9['start'],_0x2133ae['end']=_0x4f45f9['end'];}}['_handleOperation'](_0x35364b,_0x32c043){if('addRoot'!=_0x35364b['type']&&'detachRoot'!=_0x35364b['type']){if('insert'==_0x35364b['type']){const _0x486e0e=_0x35364b['position']['root']['rootName'];this['_diffRoots']['has'](_0x486e0e)||(this['_diffRoots']['set'](_0x486e0e,_emptyRoot(_0x486e0e,!0x0)),this['_diffRootsAttributes']['set'](_0x486e0e,{}),_0x32c043&&this['_idsRoots']['set'](_0x486e0e,_emptyRoot(_0x486e0e,!0x0)));}else{if('addRootAttribute'==_0x35364b['type']||'removeRootAttribute'==_0x35364b['type']||'changeRootAttribute'==_0x35364b['type'])return void this['_handleRootAttributeOperation'](_0x35364b);'marker'==_0x35364b['type']&&this['_handleMarkerOperation'](_0x35364b);}if('marker'!==_0x35364b['type']){const _0x3fc362=this['_cloneOperation'](_0x35364b,this['_diffRoots']);_0x3fc362['_execute'](),this['_transformMarkers'](_0x3fc362);}if(_0x32c043)switch(_0x35364b['type']){case'insert':this['_handleInsertOperation'](_0x35364b);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x35364b);break;case'merge':this['_handleMergeOperation'](_0x35364b);break;case'split':this['_handleSplitOperation'](_0x35364b);}}else this['_handleRootOperation'](_0x35364b,_0x32c043);}['_cloneOperation'](_0x5cfc12,_0x59b669){const _0x13df22=_0x5cfc12['clone']();return _0x13df22['_authorId']=_0x5cfc12['_authorId'],this['_fixOperation'](_0x13df22,_0x59b669),_0x13df22;}['_getBaseVids'](_0x11390c){return _0x11390c['map'](_0x38920d=>{const _0xca9861=this['_getVidAttributeName'](_0x38920d);return Number(_0x38920d['item']['getAttribute'](_0xca9861));});}['_generateTape'](_0x10c873,_0x2656fe){if(_0x10c873['is']('element','$text'))_0x2656fe['push']({'item':_0x10c873,'type':'text'});else{_0x10c873['is']('element')&&_0x2656fe['push']({'item':_0x10c873,'type':'elementStart'});for(const _0x1236d1 of _0x10c873['getChildren']())this['_generateTape'](_0x1236d1,_0x2656fe);_0x10c873['is']('element')&&_0x2656fe['push']({'item':_0x10c873,'type':'elementEnd'});}return _0x2656fe;}['_getState'](){const _0x5bb0f3=new Map(this['_touched']),_0x197670=new Map(_0x5bb0f3),_0x2f6ec7=new Map(),_0x4468b5={'insertions':{},'deletions':{}},_0x4f7681={'insertions':{},'deletions':{}},_0x4d239d=new Map(),_0x24db2c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x24db2c['delete']('$graveyard');for(const _0x1c5217 of _0x24db2c){const _0x3cf27a=this['_diffRoots']['get'](_0x1c5217)||_emptyRoot(_0x1c5217,!0x1),_0x4348e1=this['_baseRoots']['get'](_0x1c5217)||_emptyRoot(_0x1c5217,!0x1);_0x3cf27a['isAttached']()||_0x4348e1['isAttached']()?(_0x4468b5['insertions'][_0x1c5217]=_cloneRoot(_0x3cf27a),_0x4468b5['deletions'][_0x1c5217]=_cloneRoot(_0x4348e1),this['_copyMarkers'](_0x4468b5['deletions'][_0x1c5217],_0x4348e1),this['_copyMarkers'](_0x4468b5['insertions'][_0x1c5217],_0x3cf27a),_0x4f7681['insertions'][_0x1c5217]=this['_generateTape'](this['_idsRoots']['get'](_0x1c5217),[]),_0x4f7681['deletions'][_0x1c5217]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1c5217)||_emptyRoot(_0x1c5217,!0x1),[])):_0x24db2c['delete'](_0x1c5217);}for(const _0x7eae6 of _0x24db2c){const _0x4223e6=_0x4f7681['insertions'][_0x7eae6];for(const _0x22e9a3 of _0x4223e6){const _0x581aba=this['_getVidAttributeName'](_0x22e9a3),_0x4c462e=_0x22e9a3['item']['getAttribute'](_0x581aba);_0x197670['delete'](_0x4c462e),_0x4c462e>=this['_startingRevisionId']&&_0x2f6ec7['set'](_0x4c462e,_0x5bb0f3['get'](_0x4c462e));}}for(const _0x391279 of _0x24db2c){const _0x13cb47=_0x4f7681['insertions'][_0x391279],_0x1a11a1=this['_getBaseVids'](_0x4f7681['deletions'][_0x391279]);let _0x365e26=0x0;for(const _0x32a0fd of _0x13cb47){const _0x121b92=this['_getVidAttributeName'](_0x32a0fd),_0x3b0336=_0x32a0fd['item']['getAttribute'](_0x121b92);if(!_0x2f6ec7['has'](_0x3b0336)&&!_0x4d239d['has'](_0x3b0336)){if(_0x197670['has'](_0x3b0336))_0x365e26++;else{if(_0x3b0336!=_0x1a11a1[_0x365e26]){const _0x138750=_0x5bb0f3['get'](_0x3b0336)||_0x5bb0f3['get'](_0x1a11a1[_0x365e26]);for(;_0x3b0336!=_0x1a11a1[_0x365e26];)_0x197670['has'](_0x1a11a1[_0x365e26])||(_0x4d239d['set'](_0x1a11a1[_0x365e26],_0x138750),_0x5bb0f3['set'](_0x1a11a1[_0x365e26],_0x138750)),_0x365e26++;}_0x365e26++;}}}}for(const _0x56aea6 of _0x24db2c){const _0x1550db=_0x4f7681['insertions'][_0x56aea6];for(const _0xc7b13 of _0x1550db){const _0x29a426=this['_getVidAttributeName'](_0xc7b13),_0x2575c0=_0xc7b13['item']['getAttribute'](_0x29a426);if(_0x4d239d['has'](_0x2575c0)){const _0x58d86a=_0x4d239d['get'](_0x2575c0);_0x197670['has'](_0x2575c0)||_0x197670['set'](_0x2575c0,{..._0x58d86a}),_0x2f6ec7['set'](_0x2575c0,{..._0x58d86a});}}}for(const _0xe51d3e of _0x197670['keys']())_0xe51d3e>=this['_startingRevisionId']&&_0x197670['delete'](_0xe51d3e);const _0x5222e8=new Map();for(const _0x14d3f6 of _0x24db2c){let _0x102fe3=_0x4f7681['insertions'][_0x14d3f6];for(const _0x3a6fb1 of _0x102fe3)if(_0x3a6fb1['item']['is']('element','tableCell')){const _0x439011=this['_getVidAttributeName'](_0x3a6fb1),_0x911012=_0x3a6fb1['item']['getAttribute'](_0x439011);if(_0x2f6ec7['has'](_0x911012)){const _0x49a864=_0x3a6fb1['item']['parent']['parent']['getAttribute']('vid_start'),_0x23a2f0=_0x5222e8['get'](_0x49a864)||new Set();_0x23a2f0['add'](_0x2f6ec7['get'](_0x911012)['userId']),_0x5222e8['set'](_0x49a864,_0x23a2f0);}}_0x102fe3=_0x4f7681['deletions'][_0x14d3f6];for(const _0x2bab1d of _0x102fe3)if(_0x2bab1d['item']['is']('element','tableCell')){const _0x39b7ad=this['_getVidAttributeName'](_0x2bab1d),_0x3102ec=_0x2bab1d['item']['getAttribute'](_0x39b7ad);if(_0x197670['has'](_0x3102ec)){const _0x3bfc15=_0x2bab1d['item']['parent']['parent']['getAttribute']('vid_start'),_0x64dca7=_0x5222e8['get'](_0x3bfc15)||new Set();_0x64dca7['add'](_0x197670['get'](_0x3102ec)['userId']),_0x5222e8['set'](_0x3bfc15,_0x64dca7);}}for(const _0xea0f98 of _0x5222e8['keys']())(_0x2f6ec7['has'](_0xea0f98)||_0x197670['has'](_0xea0f98))&&_0x5222e8['delete'](_0xea0f98);}for(const _0x524253 of _0x24db2c){const _0x32d8ea=_0x4f7681['insertions'][_0x524253];let _0x2ca38a=null,_0x12c160=null;for(const _0x59d786 of _0x32d8ea){const _0x4d4087=this['_getVidAttributeName'](_0x59d786),_0x31c0d1=_0x59d786['item']['getAttribute'](_0x4d4087),_0x28796b=_0x5222e8['get'](_0x31c0d1);_0x28796b&&'elementStart'==_0x59d786['type']&&(_0x2ca38a=Array['from'](_0x28796b)[0x0],_0x12c160=_0x59d786['item']['getAttribute']('vid_end')),_0x2ca38a&&(_0x197670['set'](_0x31c0d1,{'userId':_0x2ca38a}),_0x2f6ec7['set'](_0x31c0d1,{'userId':_0x2ca38a})),_0x31c0d1==_0x12c160&&(_0x2ca38a=null,_0x12c160=null);}}const _0x29bf73={},_0x28f65d=new Set();for(const _0xfdd142 of _0x24db2c){const _0x535f59=_0x4468b5['deletions'][_0xfdd142],_0x296d78=_0x4468b5['insertions'][_0xfdd142];for(const {userId:_0x56f5be}of this['_touchedMarkers']['values']())null!==_0x56f5be&&_0x28f65d['add'](_0x56f5be);for(const {userId:_0xd0f070}of this['_touchedRoots']['values']())null!==_0xd0f070&&_0x28f65d['add'](_0xd0f070);this['_markChanges'](_0x296d78,_0x4f7681['insertions'][_0xfdd142],_0x2f6ec7,'insertion',_0x28f65d),this['_markChanges'](_0x535f59,_0x4f7681['deletions'][_0xfdd142],_0x197670,'deletion',_0x28f65d),_0x29bf73[_0xfdd142]={'insertions':this['_prepareViewToSave'](_0x296d78),'deletions':this['_prepareViewToSave'](_0x535f59),'attachChange':this['_touchedRoots']['get'](_0xfdd142)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0xfdd142))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0xfdd142))};}return{'diffData':_0x29bf73,'authorsIds':Array['from'](_0x28f65d)};}['_processRootBeforeSave'](_0x59e8aa){for(const [,_0x42cca4]of _0x59e8aa['markers']){const _0x16c404=_0x42cca4['start']['getAncestors']()['filter'](_0x1cd31b=>'tableCell'==_0x1cd31b['name']);for(const _0x193685 of _0x16c404)0x1==_0x193685['childCount']&&_0x193685['getChild'](0x0)['is']('element','paragraph')&&_0x193685['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4bfbd9){this['_processRootBeforeSave'](_0x4bfbd9);const _0x5cf22c=this['editor']['data']['toView'](_0x4bfbd9,{}),_0x3cc03b=Array['from'](_0x5cf22c['getChildren']())['map'](_0x3b82f7=>this['_getViewJson'](_0x3b82f7));return JSON['stringify'](_0x3cc03b);}['_getViewJson'](_0x285606){if(_0x285606['is']('$text'))return _0x285606['data'];{const _0xd00e0d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x4d051b=_0x285606,_0x174c30=this['editor']['data']['htmlProcessor']['domConverter'],_0x3ba16c={'type':_0xd00e0d['_getTypeCharForViewElement'](_0x4d051b),'name':_0x4d051b['name'],'attributes':Array['from'](_0x4d051b['getAttributes']()),'children':Array['from'](_0x4d051b['getChildren']())['map'](_0x3cfd8f=>this['_getViewJson'](_0x3cfd8f))};if(_0x285606['is']('uiElement')&&'$comment'!=_0x285606['name']){const _0x44098a=_0x285606['render'](_0x174c30['domDocument'],_0x174c30);_0x3ba16c['children']['push'](_0x44098a['outerHTML']);}else{if(_0x285606['is']('rawElement')){const _0x167f53=_0x174c30['domDocument']['createElement'](_0x4d051b['name']);_0x285606['render'](_0x167f53,_0x174c30),_0x3ba16c['children']['push'](_0x167f53['innerHTML']);}}const _0x295858=Array['from'](_0x4d051b['getCustomProperties']());_0x295858['length']>0x0&&(_0x3ba16c['customProperties']=_0x295858);const _0x968690=_0x4d051b['getFillerOffset']();return null!==_0x968690&&(_0x3ba16c['fillerOffset']=_0x968690),_0x3ba16c;}}['_markChanges'](_0x445017,_0x2671b8,_0xb9f67c,_0xe88e04,_0x22f15d){let _0x5e7548=null,_0x3eafbb=null,_0xca05f5=0x0;const _0x481343=this['editor']['model'];for(let _0x1af53a=0x0;_0x1af53a<_0x2671b8['length'];_0x1af53a++){const _0x1e01bc=this['_getVidAttributeName'](_0x2671b8[_0x1af53a]),_0x3f88d7=_0x2671b8[_0x1af53a]['item']['getAttribute'](_0x1e01bc),_0x34ad85=_0xb9f67c['get'](_0x3f88d7),_0x18bc05=_0x1af53a==_0x2671b8['length']-0x1;(!_0x5e7548&&_0x34ad85&&(_0x5e7548=_0x34ad85,_0x3eafbb=_0x2671b8[_0x1af53a]),_0x5e7548&&(!_0x34ad85||_0x34ad85['userId']!=_0x5e7548['userId']))&&(_0x1548d0(_0x34ad85,_getPosBefore(_0x3eafbb,_0x445017,_0x481343),_getPosBefore(_0x2671b8[_0x1af53a],_0x445017,_0x481343)),_0x5e7548=_0x34ad85||null,_0x3eafbb=_0x34ad85?_0x2671b8[_0x1af53a]:null),_0x5e7548&&_0x18bc05&&_0x1548d0(_0x34ad85,_getPosBefore(_0x3eafbb,_0x445017,_0x481343),_getPosAfter(_0x2671b8[_0x1af53a],_0x445017,_0x481343));}function _0x1548d0(_0x14e978,_0x55975d,_0x1480ec){const _0x5eac46=_0x5e7548['userId'],_0x21a51e='revision:'+_0xe88e04+':'+_0x5eac46+':'+_0xca05f5++,_0x33c071=_0x481343['createRange'](_0x55975d,_0x1480ec);_0x445017['markers']['set'](_0x21a51e,_0x33c071),null!==_0x5eac46&&_0x22f15d['add'](_0x5eac46);}}['_getVidAttributeName'](_0x5cf805){switch(_0x5cf805['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2e2ef1,_0x57d91f){_0x2e2ef1['baseVersion']=null;for(const _0x109d53 in _0x2e2ef1){const _0x227a1c=_0x2e2ef1[_0x109d53];if(_0x227a1c instanceof ModelPosition){const _0xc797e5=_0x57d91f['get'](_0x227a1c['root']['rootName']);_0x2e2ef1[_0x109d53]=this['_fixPosition'](_0x227a1c,_0xc797e5);}if(_0x227a1c instanceof ModelRange){const _0x36ed49=_0x57d91f['get'](_0x227a1c['root']['rootName']);_0x2e2ef1[_0x109d53]=this['_fixRange'](_0x227a1c,_0x36ed49);}'root'===_0x109d53&&(_0x2e2ef1['root']=_0x57d91f['get'](_0x2e2ef1['root']['rootName']));}}['_fixRange'](_0x349982,_0x2542e1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x349982['start'],_0x2542e1),this['_fixPosition'](_0x349982['end'],_0x2542e1));}['_fixPosition'](_0x3320dc,_0x34863d){return this['editor']['model']['createPositionFromPath'](_0x34863d,_0x3320dc['path'],_0x3320dc['stickiness']);}['_handleInsertOperation'](_0x540553){const _0x277f45=this['_idsRoots']['get'](_0x540553['position']['root']['rootName']),_0x55ed93=this['_fixPosition'](_0x540553['position'],_0x277f45),_0x260ab4=null===_0x540553['_authorId']?null:_0x540553['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4688e8=_0x55ed93['parent'],_0x1df923=this['_revisionId'],_0x11fe89=[];for(const _0x19e117 of _0x540553['nodes'])if(_0x19e117['is']('element'))_0x11fe89['push'](this['_makeIdsRoot'](_0x19e117));else{for(let _0x5d611a=0x0;_0x5d611a<_0x19e117['offsetSize'];_0x5d611a++)_0x11fe89['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x29b46c=this['_revisionId'];for(let _0x2e19f5=_0x1df923;_0x2e19f5<_0x29b46c;_0x2e19f5++)this['_touched']['set'](_0x2e19f5,{'userId':_0x260ab4});_0x4688e8['_insertChild'](_0x55ed93['offset'],_0x11fe89);}['_handleMoveOperation'](_0x1fe95a){(_0x1fe95a=this['_cloneOperation'](_0x1fe95a,this['_idsRoots']))['_execute']();const _0x8fbfdf=null===_0x1fe95a['_authorId']?null:_0x1fe95a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b3fbc=_0x1fe95a['getMovedRangeStart'](),_0x471371=_0x4b3fbc['parent'],_0x289bf3=_0x4b3fbc['offset'];!function _0x4ee0f2(_0x4c4f65,_0x1af651,_0x5d3531,_0x26f62d){for(let _0x419a83=_0x5d3531;_0x419a83<_0x26f62d;_0x419a83++){const _0x40a160=_0x1af651['getChild'](_0x419a83);_0x40a160['is']('element','$text')?_0x4c4f65['set'](_0x40a160['getAttribute']('vid'),{'userId':_0x8fbfdf}):(_0x4c4f65['set'](_0x40a160['getAttribute']('vid_start'),{'userId':_0x8fbfdf}),_0x4ee0f2(_0x4c4f65,_0x40a160,0x0,_0x40a160['childCount']),_0x4c4f65['set'](_0x40a160['getAttribute']('vid_end'),{'userId':_0x8fbfdf}));}}(this['_touched'],_0x471371,_0x289bf3,_0x289bf3+_0x1fe95a['howMany']);}['_handleMergeOperation'](_0x4269b5){const _0x215d85=null===(_0x4269b5=this['_cloneOperation'](_0x4269b5,this['_idsRoots']))['_authorId']?null:_0x4269b5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57c156=_0x4269b5['targetPosition']['parent'],_0x2a2128=_0x4269b5['sourcePosition']['parent'],_0xd55ecc=_0x57c156['getAttribute']('vid_end'),_0x1c0b67=_0x2a2128['getAttribute']('vid_start');_0x57c156['_setAttribute']('vid_end',_0x2a2128['getAttribute']('vid_end')),_0x2a2128['_setAttribute']('vid_end',_0xd55ecc),this['_touched']['set'](_0x1c0b67,{'userId':_0x215d85}),this['_touched']['set'](_0xd55ecc,{'userId':_0x215d85}),_0x4269b5['_execute']();}['_handleSplitOperation'](_0x11581c){const _0x32b8ea=null===(_0x11581c=this['_cloneOperation'](_0x11581c,this['_idsRoots']))['_authorId']?null:_0x11581c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5986b3=_0x11581c['graveyardPosition'],_0x2c910a=_0x11581c['splitPosition']['parent'];_0x11581c['_execute']();const _0x555713=_0x2c910a['getAttribute']('vid_end'),_0xf06c15=_0x11581c['insertionPosition']['nodeAfter'];if(_0x5986b3){const _0x181fca=_0xf06c15['getAttribute']('vid_end'),_0x2f49c4=_0x2c910a['getAttribute']('vid_end');_0x2c910a['_setAttribute']('vid_end',_0x181fca),_0xf06c15['_setAttribute']('vid_end',_0x2f49c4),this['_touched']['set'](_0x2c910a['getAttribute']('vid_end'),{'userId':_0x32b8ea}),this['_touched']['set'](_0xf06c15['getAttribute']('vid_start'),{'userId':_0x32b8ea});}else{const _0x5d461e=this['_revisionId']++,_0xa84489=this['_revisionId']++;_0x2c910a['_setAttribute']('vid_end',_0x5d461e),_0xf06c15['_setAttribute']('vid_start',_0xa84489),_0xf06c15['_setAttribute']('vid_end',_0x555713),this['_touched']['set'](_0x5d461e,{'userId':_0x32b8ea}),this['_touched']['set'](_0xa84489,{'userId':_0x32b8ea});}}['_handleMarkerOperation'](_0x4e0826){if(!_0x4e0826['affectsData'])return;const _0x867f40=(_0x4e0826=this['_cloneOperation'](_0x4e0826,this['_diffRoots']))['oldRange']?_0x4e0826['oldRange']['root']:null,_0x205292=_0x4e0826['newRange']?_0x4e0826['newRange']['root']:null;_0x867f40&&this['_markers']['delete'](_0x4e0826['name']),_0x205292&&this['_markers']['set'](_0x4e0826['name'],_0x4e0826['newRange']['clone']());const _0xa3d232=null===_0x4e0826['_authorId']?null:_0x4e0826['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32b47c=_0x4e0826['name'];if(!this['_touchedMarkers']['has'](_0x32b47c))return void this['_touchedMarkers']['set'](_0x32b47c,{'range':_0x4e0826['oldRange'],'userId':_0xa3d232});const _0xfd7a49=this['_touchedMarkers']['get'](_0x32b47c),_0x41289a=_0xfd7a49['range'],_0x4f01a0=_0x4e0826['newRange'];null==_0x41289a&&null==_0x4f01a0||_0x41289a&&_0x4f01a0&&_0x41289a['isEqual'](_0x4f01a0)?this['_touchedMarkers']['delete'](_0x4e0826['name']):_0xfd7a49['userId']=_0xa3d232;}['_handleRootOperation'](_0x1d3b44,_0x2a39c1){this['_diffRoots']['has'](_0x1d3b44['rootName'])?this['_diffRoots']['get'](_0x1d3b44['rootName'])['_isAttached']=_0x1d3b44['isAdd']:(this['_diffRoots']['set'](_0x1d3b44['rootName'],_emptyRoot(_0x1d3b44['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1d3b44['rootName'],{}),_0x2a39c1&&this['_idsRoots']['set'](_0x1d3b44['rootName'],_emptyRoot(_0x1d3b44['rootName'],!0x0)));const _0x59c8c0=null===_0x1d3b44['_authorId']?null:_0x1d3b44['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39a20c=this['_touchedRoots']['get'](_0x1d3b44['rootName']);_0x39a20c&&_0x39a20c['userId']===_0x59c8c0?this['_touchedRoots']['delete'](_0x1d3b44['rootName']):this['_touchedRoots']['set'](_0x1d3b44['rootName'],{'userId':_0x59c8c0,'isAttached':_0x1d3b44['isAdd']});}['_handleRootAttributeOperation'](_0x445bb6){const _0x255e76=this['_diffRootsAttributes']['get'](_0x445bb6['root']['rootName']);null===_0x445bb6['newValue']?delete _0x255e76[_0x445bb6['key']]:_0x255e76[_0x445bb6['key']]=_0x445bb6['newValue'];}}function _cloneRoot(_0x4f7ace){const _0x92c68f=_emptyRoot(_0x4f7ace['rootName'],_0x4f7ace['isAttached']());for(const _0x5afa35 of _0x4f7ace['getChildren']()){const _0x463757=_0x5afa35['_clone'](!0x0);_0x92c68f['_appendChild'](_0x463757);}return _0x92c68f;}function _emptyRoot(_0xf4098d,_0x11f9ef=!0x0){const _0xeeaf84=new ModelDocumentFragment();return _0xeeaf84['rootName']=_0xf4098d,_0xeeaf84['_isAttached']=_0x11f9ef,_0xeeaf84['isAttached']=()=>_0xeeaf84['_isAttached'],_0xeeaf84;}function _getPosBefore(_0x24d54f,_0x12fabf,_0x18b84f){const _0x19aa06='elementEnd'==_0x24d54f['type']?_0x18b84f['createPositionAt'](_0x24d54f['item'],'end'):_0x18b84f['createPositionBefore'](_0x24d54f['item']);return _0x18b84f['createPositionFromPath'](_0x12fabf,_0x19aa06['path'],_0x19aa06['stickiness']);}function _getPosAfter(_0x26df57,_0x501583,_0x2a9164){const _0x3331df='elementStart'==_0x26df57['type']?_0x2a9164['createPositionAt'](_0x26df57['item'],0x0):_0x2a9164['createPositionAfter'](_0x26df57['item']);return _0x2a9164['createPositionFromPath'](_0x501583,_0x3331df['path'],_0x3331df['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x248c58,_0x41de00){super(_0x248c58),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x41de00),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),submitHandler({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x19f100=_0x25da59=>_0x25da59['stopPropagation']();this['keystrokes']['set']('arrowright',_0x19f100),this['keystrokes']['set']('arrowleft',_0x19f100),this['keystrokes']['set']('arrowup',_0x19f100),this['keystrokes']['set']('arrowdown',_0x19f100);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x29bbf1){this['revisionNameInputView']['fieldView']['element']['value']=_0x29bbf1['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x534d72){const _0x5b5a2e=new LabeledFieldView(this['locale'],createLabeledInputText),_0x45e35a=_0x5b5a2e['fieldView'];_0x45e35a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4416a7=getTranslation$4(this['locale'],'Name\x20of\x20the\x20revision');return!_0x534d72&&(_0x4416a7+='\x20('+getTranslation$4(this['locale'],'optional')+')'),(_0x5b5a2e['label']=_0x4416a7,_0x45e35a['on']('input',()=>{this['revisionNameInputValue']=_0x45e35a['element']['value']['trim']();}),_0x5b5a2e);}}class RevisionHistoryUI extends Plugin{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionTracker];}['_saveRevisionFormView'];['init'](){const _0x28ed27=this['editor'],_0x316d8b=_0x28ed27['plugins']['get']('RevisionTracker');_0x28ed27['ui']['componentFactory']['add']('revisionHistory',_0x1bb04e=>{const _0x38910d=createDropdown(_0x1bb04e),_0x53dbc0=_0x38910d['panelView']['children'],_0x1979ab=new ListView(_0x1bb04e),_0x28dd42=new ListItemView(_0x1bb04e),_0x1f5015=this['_createSaveRevisionButton'](ButtonView),_0x43ebb6=new ListItemView(_0x1bb04e),_0x3a4823=this['_createOpenRevisionButton'](ButtonView);return _0x38910d['bind']('isEnabled')['to'](_0x316d8b,'isReady',_0x316d8b,'isEnabled',_0x28ed27,'isReadOnly',(_0x47f4ea,_0x3c8ab4,_0x6498fb)=>_0x47f4ea&&_0x3c8ab4&&!_0x6498fb),_0x38910d['buttonView']['set']({'icon':IconHistory,'label':getTranslation$4(_0x1bb04e,'Revision\x20history'),'tooltip':!0x0}),_0x1f5015['set']({'withText':!0x0,'role':'menuitem'}),_0x3a4823['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x3a4823,'execute',()=>{_0x38910d['isOpen']=!0x1,_0x28ed27['editing']['view']['focus']();},{'priority':'low'}),_0x28dd42['children']['add'](_0x1f5015),_0x43ebb6['children']['add'](_0x3a4823),_0x1979ab['role']='menu',_0x1979ab['items']['addMany']([_0x28dd42,_0x43ebb6]),_0x53dbc0['add'](_0x1979ab),_0x38910d;}),_0x28ed27['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x280774=this['editor'],_0x38f359=_0x280774['locale'],_0x20f709=_0x280774['plugins']['get']('RevisionTracker'),_0x5a8548=new MenuBarMenuView(_0x38f359),_0x69b827=new MenuBarMenuListView(_0x38f359);_0x5a8548['bind']('isEnabled')['to'](_0x20f709,'isReady',_0x20f709,'isEnabled',_0x280774,'isReadOnly',(_0x4a188b,_0x36185d,_0x5cb873)=>_0x4a188b&&_0x36185d&&!_0x5cb873),_0x5a8548['buttonView']['set']({'icon':IconHistory,'label':getTranslation$4(_0x38f359,'Revision\x20history')});const _0x3eccd6=new MenuBarMenuListItemView(_0x38f359,_0x5a8548),_0x46e6d7=this['_createSaveRevisionButton'](MenuBarMenuListItemButtonView);_0x46e6d7['delegate']('execute')['to'](_0x5a8548),_0x3eccd6['children']['add'](_0x46e6d7),_0x69b827['items']['add'](_0x3eccd6);const _0x4b9786=new MenuBarMenuListItemView(_0x38f359,_0x5a8548),_0x269ddc=this['_createOpenRevisionButton'](MenuBarMenuListItemButtonView);return _0x269ddc['delegate']('execute')['to'](_0x5a8548),_0x4b9786['children']['add'](_0x269ddc),_0x69b827['items']['add'](_0x4b9786),_0x5a8548['panelView']['children']['add'](_0x69b827),_0x5a8548;}['_createSaveRevisionButton'](_0x55e2ec){const _0x26e33a=this['editor'],_0x1feb88=_0x26e33a['plugins']['get']('RevisionTracker'),_0x3a79a6=new _0x55e2ec(_0x26e33a['locale']);return _0x3a79a6['set']({'label':getTranslation$4(_0x26e33a['locale'],'Save\x20current\x20revision')}),_0x3a79a6['bind']('isEnabled')['to'](_0x1feb88,'isReady',_0x1feb88,'isEnabled',_0x26e33a,'isReadOnly',(_0xeadfb5,_0x406aa4,_0xb7e35d)=>_0xeadfb5&&_0x406aa4&&!_0xb7e35d),this['listenTo'](_0x3a79a6,'execute',()=>{this['_showDialog']();}),_0x3a79a6;}['_createOpenRevisionButton'](_0xb89a8e){const _0x495e19=this['editor'],_0xcc0fc7=_0x495e19['plugins']['get']('RevisionTracker'),_0x5c8445=new _0xb89a8e(_0x495e19['locale']);return _0x5c8445['set']({'label':getTranslation$4(_0x495e19['locale'],'Open\x20revision\x20history')}),_0x5c8445['bind']('isEnabled')['to'](_0xcc0fc7,'isReady',_0x495e19,'isReadOnly',(_0x9badbf,_0x3238da)=>_0x9badbf&&!_0x3238da),this['listenTo'](_0x5c8445,'execute',()=>{_0x495e19['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5c8445;}['_showDialog'](){const _0x3c2639=this['editor'],_0x5f4329=_0x3c2639['locale'],_0x31b26a=_0x3c2639['plugins']['get']('Dialog'),_0x24c0ba=_0x3c2639['plugins']['get']('RevisionTracker');function _0x1e14f6(_0x46d46f){_0x3c2639['config']['get']('revisionHistory.requireRevisionName')&&''===_0x46d46f['revisionName']?_0x46d46f['revisionNameInputView']['errorText']=getTranslation$4(_0x5f4329,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3c2639['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x46d46f['revisionName']}),_0x31b26a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1e14f6(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x31b26a['show']({'id':'revisionSave','title':getTranslation$4(_0x5f4329,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$4(_0x3c2639['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x31b26a['hide']()},{'label':getTranslation$4(_0x3c2639['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x235c3c){_0x235c3c['bind']('isEnabled')['to'](_0x24c0ba,'isReady',_0x24c0ba,'isEnabled',_0x3c2639,'isReadOnly',(_0x982084,_0x3ad432,_0x5ec16f)=>_0x982084&&_0x3ad432&&!_0x5ec16f);},'onExecute':()=>_0x1e14f6(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x78f99f=this['editor'],_0x19f4eb=_0x78f99f['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x19f4eb,_0x78f99f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0x536c58,_0x2cce89){super(_0x536c58),this['_model']=_0x2cce89,this['changeId']=_0x2cce89['id'];const _0x1ba674=this['bindTemplate'],_0x36c302=getTranslation$4(_0x536c58,_0x2cce89['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2cce89['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2cce89['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1ba674['to']('type',_0x1b012d=>'ck-revision-change__'+_0x1b012d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x36c302}]},{'text':'\x20'+_0x2cce89['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3602bf){super(),this['id']=_0x3602bf['id']||uid(),this['author']=_0x3602bf['author'],this['type']=_0x3602bf['type'],this['data']=_0x3602bf['data']||{},this['rootName']=_0x3602bf['rootName'],this['set']('createdAt',_0x3602bf['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class RevisionDiff{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xe6880b,_0x14359f){this['newRevisionId']=_0xe6880b,this['oldRevisionId']=_0x14359f,this['changes']=new Collection();}['_setChanges'](_0x5f0664){for(const _0x275959 of _0x5f0664)this['changes']['add'](_0x275959);}}class RevisionViewer extends Plugin{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Users,ContextualBalloon,RevisionsRepository,RevisionHistoryUtils];}constructor(_0x55d623){super(_0x55d623),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x9b5efb,_0xde48cf,_0x5b3f90)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x496ce3=>{for(const _0x50e9b5 of this['editor']['editing']['view']['document']['roots'])_0x5b3f90?_0x496ce3['removeClass']('ck-editor__editable__overlay',_0x50e9b5):_0x496ce3['addClass']('ck-editor__editable__overlay',_0x50e9b5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2f9c3c=>null!==_0x2f9c3c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x171c21,_0x2edc78,_0x520727)=>_0x171c21&&_0x520727?_0x2edc78['changes']['getIndex'](_0x520727):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4d09f3,_0x436428)=>_0x4d09f3?_0x436428['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x5ce890=this['editor'],_0x277995=new ShowChangeCommand(_0x5ce890,{'direction':'backward'}),_0x564032=new ShowChangeCommand(_0x5ce890,{'direction':'forward'});(_0x5ce890['commands']['add']('showPreviousChange',_0x277995),_0x5ce890['commands']['add']('showNextChange',_0x564032),_0x5ce890['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x5ce890)),this['on']('change:numberOfChanges',()=>{_0x277995['refresh'](),_0x564032['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5ce890['enableReadOnlyMode']('revision-viewer'),_0x5ce890['plugins']['has']('WidgetToolbarRepository'))&&_0x5ce890['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2883d5){return await this['_utils']['loadRevisionData'](_0x2883d5,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2883d5);}async['getRevisionRootsAttributes'](_0x1f074d){return await this['_utils']['loadRevisionData'](_0x1f074d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1f074d);}async['compare'](_0x3b47b6,_0x52e40f,_0x3253fb=!0x1){if(!this['isEnabled'])return;const _0x360cb8=this['diff'],_0x158942=this['repository'],_0x4b59cd='string'==typeof _0x3b47b6?_0x158942['getRevision'](_0x3b47b6):_0x3b47b6,_0xefe578='string'==typeof _0x52e40f?_0x158942['getRevision'](_0x52e40f):_0x52e40f,_0x429836=_0x4b59cd['id'],_0x108fc6=_0xefe578?_0xefe578['id']:null;if(!_0x3253fb&&this['diff']&&this['diff']['newRevisionId']===_0x429836&&this['diff']['oldRevisionId']===_0x108fc6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0x429836,_0x108fc6);const _0x2bd439=this['_getRevisionsRange'](_0x4b59cd,_0xefe578,!0x0)['map'](_0x4bf0a7=>this['_utils']['loadRevisionData'](_0x4bf0a7,this['adapter']));return _0x2bd439['push'](new Promise(_0x52de1b=>{setTimeout(_0x52de1b,0x14);})),Promise['all'](_0x2bd439)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x522383=this['_getDiff'](_0x429836,_0x108fc6);for(const _0x1b5b60 of _0x522383['changes'])this['_changeIdToChange']['set'](_0x1b5b60['id'],_0x1b5b60);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1886a8=>{for(const _0x3aeca6 of this['editor']['model']['document']['getRootNames']())_0x1886a8['detachRoot'](_0x3aeca6);for(const _0x2d351f of Object['keys'](_0x522383['model'])){const _0x202e0d=_0x1886a8['addRoot'](_0x2d351f);for(const _0x129818 of Object['keys'](_0x522383['attributes'][_0x2d351f]))_0x1886a8['setAttribute'](_0x129818,_0x522383['attributes'][_0x2d351f][_0x129818],_0x202e0d);_0x1886a8['insert'](_0x522383['model'][_0x2d351f],_0x202e0d,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x522383['changes'])),this['isReady']=!0x0;})['catch'](_0xbdbf9d=>{console['error'](_0xbdbf9d),this['_cleanUp'](),_0x360cb8&&(this['diff']=_0x360cb8),this['isReady']=!0x0;});}['addRevisionData'](_0x3c19a3,_0x1866d8){const _0x220acb=this['repository']['createRevision'](_0x3c19a3);return _0x220acb['on']('_update',(_0x25b2f6,_0x26f1eb,_0x1654fd)=>_0x1866d8(_0x26f1eb,_0x1654fd,_0x220acb)),this['repository']['addRevision'](_0x220acb),_0x220acb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x68f985=>{for(const _0x12ba47 of this['editor']['model']['document']['getRootNames']())_0x68f985['detachRoot'](_0x12ba47);});}['_sortAndFilterDiffChanges'](_0x442960){const _0x42e37b=[],_0x37771a=new Map();for(const _0xac9c00 of this['editor']['model']['document']['getRootNames']()){const _0xd4df1c=this['editor']['editing']['view']['getDomRoot'](_0xac9c00);if(!_0xd4df1c)continue;const _0x2722f9=_0xd4df1c['getClientRects']()['item'](0x0);_0x2722f9&&(_0x42e37b['push'](_0xac9c00),_0x37771a['set'](_0xac9c00,_0x2722f9));}return _0x42e37b['sort']((_0x1691c3,_0x562a50)=>{const _0x203b81=_0x37771a['get'](_0x1691c3),_0x550a87=_0x37771a['get'](_0x562a50);return _0x203b81['y']-_0x550a87['y']||_0x203b81['x']-_0x550a87['x'];}),(_0x442960=_0x442960['filter'](_0x3f836d=>_0x42e37b['includes'](_0x3f836d['rootName'])))['sort']((_0x2d4afb,_0x532177)=>_0x42e37b['indexOf'](_0x2d4afb['rootName'])-_0x42e37b['indexOf'](_0x532177['rootName'])),_0x442960;}['_makeTape'](_0x29373c){const _0x521cf5=Array['from'](_0x29373c['markers'])['filter'](([_0x2c1fe0,_0x388d94])=>_0x2c1fe0['startsWith']('revision:')&&!_0x388d94['isCollapsed']),_0x37ee55=Array['from'](this['editor']['model']['createRangeIn'](_0x29373c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x521cf5['length'])for(const _0x173c79 of _0x37ee55){const [_0x1aea40,_0x4ca3bf]=_0x521cf5[0x0],[,_0x5cbead,_0x2b9884]=_0x1aea40['split'](':');if(_0x4ca3bf['end']['isEqual'](_0x173c79['nextPosition'])&&_0x521cf5['shift'](),(_0x173c79['previousPosition']['isEqual'](_0x4ca3bf['start'])||_0x173c79['previousPosition']['isAfter'](_0x4ca3bf['start']))&&('insertion'==_0x5cbead?_0x173c79['isAdded']={'userId':_0x2b9884}:'deletion'==_0x5cbead&&(_0x173c79['isRemoved']={'userId':_0x2b9884})),0x0==_0x521cf5['length'])break;}return _0x37ee55;}['_refreshStartEndIndex'](_0x372fc0){const _0x40124a=new Map();for(let _0xc93c70=0x0;_0xc93c70<_0x372fc0['length'];_0xc93c70++)'text'===_0x372fc0[_0xc93c70]['type']?(_0x372fc0[_0xc93c70]['item']['startIndex']=_0xc93c70,_0x372fc0[_0xc93c70]['item']['endIndex']=_0xc93c70):('elementStart'===_0x372fc0[_0xc93c70]['type']?_0x372fc0[_0xc93c70]['item']['startIndex']=_0xc93c70:'elementEnd'===_0x372fc0[_0xc93c70]['type']&&(_0x372fc0[_0xc93c70]['item']['endIndex']=_0xc93c70),_0x40124a['set'](_0x372fc0[_0xc93c70]['id'],_0xc93c70));for(const _0x1cd529 of _0x40124a['values']())'elementStart'===_0x372fc0[_0x1cd529]['type']?_0x372fc0[_0x1cd529]['item']['endIndex']=_0x40124a['get'](_0x372fc0[_0x1cd529]['pairId']):'elementEnd'===_0x372fc0[_0x1cd529]['type']&&(_0x372fc0[_0x1cd529]['item']['startIndex']=_0x40124a['get'](_0x372fc0[_0x1cd529]['pairId']));}['_processTape'](_0xf44f28){for(let _0x393065=0x0;_0x393065<_0xf44f28['length'];_0x393065++){if('elementStart'===_0xf44f28[_0x393065]['type'])_0xf44f28[_0x393065]['item']['startIndex']=_0x393065;else{if('elementEnd'===_0xf44f28[_0x393065]['type']){_0xf44f28[_0x393065]['item']['endIndex']=_0x393065;const _0x26cf7e=_0xf44f28[_0x393065]['item']['startIndex'];_0xf44f28[_0x26cf7e]['pairId']=_0xf44f28[_0x393065]['id'],_0xf44f28[_0x393065]['pairId']=_0xf44f28[_0x26cf7e]['id'];}else _0xf44f28[_0x393065]['item']['startIndex']=_0x393065,_0xf44f28[_0x393065]['item']['endIndex']=_0x393065,_0xf44f28[_0x393065]['pairId']=null;}_0xf44f28[_0x393065]['markersStart']||(_0xf44f28[_0x393065]['markersStart']=[],_0xf44f28[_0x393065]['markersEnd']=[]);}}['_markInsertions'](_0x41d4cf,_0x46c14f){const _0x5f2e34=_0x41d4cf['filter'](_0x31a001=>!_0x31a001['isAdded']);for(let _0xc62788=0x0;_0xc62788<_0x46c14f['length'];_0xc62788++)_0x46c14f[_0xc62788]['isAdded']&&(_0x5f2e34[_0xc62788]['isAdded']=_0x46c14f[_0xc62788]['isAdded']);}['_getDiff'](_0x41eb4b,_0x124ca6=null){const _0x44810a=this['repository']['getRevision'](_0x41eb4b),_0x2d887b=_0x124ca6?this['repository']['getRevision'](_0x124ca6):null,_0x2ef218=this['_getRevisionsRange'](_0x44810a,_0x2d887b),_0x30b941=_0x2ef218[_0x2ef218['length']-0x1],_0xce9fc6=new Map(),_0x311db4={'model':{},'attributes':{},'changes':[]},_0x4f93a4=new Set(),_0x2aab2e=new Map();for(let _0x243885=_0x2ef218['length']-0x1;_0x243885>=0x0;_0x243885--){const _0x42312c=_0x2ef218[_0x243885];for(const _0x2daf25 of Object['keys'](_0x42312c['diffData']))if(_0x42312c['diffData'][_0x2daf25]['attachChange']){const _0x5092ff=_0x42312c['diffData'][_0x2daf25]['attachChange'];_0x5092ff['isAttached']?(_0x4f93a4['add'](_0x2daf25),_0x2aab2e['has'](_0x2daf25)&&_0x2aab2e['get'](_0x2daf25)['userId']==_0x5092ff['userId']?_0x2aab2e['delete'](_0x2daf25):_0x2aab2e['set'](_0x2daf25,_0x5092ff)):_0x2aab2e['has'](_0x2daf25)?(_0x4f93a4['delete'](_0x2daf25),_0x2aab2e['delete'](_0x2daf25)):(_0x4f93a4['add'](_0x2daf25),_0x2aab2e['set'](_0x2daf25,_0x5092ff));}else _0x4f93a4['add'](_0x2daf25);}for(const _0x23b6c0 of _0x4f93a4){const _0x467245=_0x2aab2e['has'](_0x23b6c0)&&!_0x2aab2e['get'](_0x23b6c0)['isAttached'];let _0x40cd6e=_0x467245?_0x2ef218['length']-0x1:0x0;const _0x154376=_0x467245?-0x1:0x1;for(;_0x2ef218[_0x40cd6e];){const _0x108965=_0x2ef218[_0x40cd6e];if(_0x108965['diffData'][_0x23b6c0]){const _0x38649a=_0x467245?_0x108965['diffData'][_0x23b6c0]['attributesBefore']:_0x108965['diffData'][_0x23b6c0]['attributesAfter'];_0x311db4['attributes'][_0x23b6c0]=_0x38649a?cloneDeep(_0x38649a):{};break;}_0x40cd6e+=_0x154376;}}for(const _0x4ac371 of _0x2ef218){_0x4ac371['model']={};for(const _0x1dc8fe of _0x4ac371['authors'])_0xce9fc6['set'](_0x1dc8fe['id'],_0x1dc8fe);for(const _0xa68c58 of _0x4f93a4){const _0x4441d9=_0x4ac371['diffData'][_0xa68c58]?_0x4ac371['diffData'][_0xa68c58]['insertions']:'[]',_0x2947d1=_0x4ac371['diffData'][_0xa68c58]?_0x4ac371['diffData'][_0xa68c58]['deletions']:'[]';_0x4ac371['model'][_0xa68c58]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4441d9),'deletions':this['_utils']['_makeModelFromViewString'](_0x2947d1)};}}for(const _0x7ab827 of _0x4f93a4){let _0x4dc1d2=null,_0x1f8822=0x0;const _0x37fd3a=new Map(Array['from'](_0x44810a['model'][_0x7ab827]['insertions']['markers'])['filter'](([_0x4ab9b6])=>!_0x4ab9b6['startsWith']('revision:')));let _0x5dfcae=0x0;for(const _0x16c4ed of _0x2ef218){const _0x25592c=this['_makeTape'](_0x16c4ed['model'][_0x7ab827]['insertions']);_0x16c4ed==_0x44810a?(_0x4dc1d2=_0x25592c,_0x1f8822=_0x4dc1d2['length'],_0x4dc1d2['forEach'](_0x54b5e9=>{_0x54b5e9['id']=_0x5dfcae++;}),this['_processTape'](_0x4dc1d2)):this['_markInsertions'](_0x4dc1d2,_0x25592c);const _0x29147f=_0x4dc1d2['filter'](_0x4e901e=>!_0x4e901e['isAdded'])['map'](_0x4e73a0=>_0x4e73a0['id']);let _0xe918ed=0x0;const _0x5dcc0e=this['_makeTape'](_0x16c4ed['model'][_0x7ab827]['deletions']);_0x5dcc0e['forEach'](_0x51e373=>{_0x51e373['isRemoved']?_0x51e373['id']=_0x1f8822++:_0x51e373['id']=_0x29147f[_0xe918ed++];}),this['_processTape'](_0x5dcc0e),this['_setDistance'](_0x4dc1d2,'isAdded'),this['_setDistance'](_0x5dcc0e,'isRemoved'),_0x16c4ed==_0x44810a&&this['_markMarkers'](_0x4dc1d2,_0x37fd3a),_0x4dc1d2=this['_joinTapes'](_0x4dc1d2,_0x5dcc0e),this['_refreshStartEndIndex'](_0x4dc1d2),this['_setDistance'](_0x4dc1d2,'isRemoved');}_0x4dc1d2=_0x4dc1d2['filter'](_0x31d0e9=>!(_0x31d0e9['isAdded']&&_0x31d0e9['isRemoved']));const _0x5de862=new Map(_0x30b941['model'][_0x7ab827]['deletions']['markers']),_0x12d861=new Set(_0x37fd3a['keys']());for(const _0x3ceccb of _0x5de862['keys']())_0x12d861['delete'](_0x3ceccb);this['_markSuggestions'](_0x4dc1d2,_0x12d861),this['_fixObsoleteTags'](_0x4dc1d2),_0x4dc1d2=this['_removeMissingPairs'](_0x4dc1d2),_0x4dc1d2=this['_markMismatchedRemovedTags'](_0x4dc1d2),_0x4dc1d2=this['_removeUnsupportedChanges'](_0x4dc1d2);const {root:_0x29176e,changes:_0x4402b7}=this['_makeModelFromTape'](_0x4dc1d2,_0xce9fc6,_0x7ab827);_0x311db4['model'][_0x7ab827]=_0x29176e;const _0x4dc352=_0x2aab2e['get'](_0x7ab827);if(_0x4dc352){const _0x150ce8=_0xce9fc6['get'](_0x4dc352['userId']),_0x183ee7=new ChangeItem({'author':_0x150ce8,'type':_0x4dc352['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x7ab827});_0x4402b7['unshift'](_0x183ee7),_0x311db4['attributes'][_0x7ab827]['revisionHistoryAttachChange']=_0x183ee7['id'];}_0x311db4['changes']=_0x311db4['changes']['concat'](_0x4402b7);}return _0x311db4;}['_markMarkers'](_0x1e02c8,_0x592fb2){for(let _0x16d2cb=0x0;_0x16d2cb<_0x1e02c8['length'];_0x16d2cb++)for(const [_0x50ffab,_0x4d1553]of _0x592fb2)!_0x4d1553['isCollapsed']&&_0x4d1553['start']['isEqual'](_0x1e02c8[_0x16d2cb]['previousPosition'])&&_0x1e02c8[_0x16d2cb]['markersStart']['push'](_0x50ffab),_0x4d1553['end']['isEqual'](_0x1e02c8[_0x16d2cb]['nextPosition'])&&_0x1e02c8[_0x16d2cb]['markersEnd']['push'](_0x50ffab);}['_joinTapes'](_0x5964ac,_0x6cfaad){let _0x4e6955=[],_0x28de6c=0x0,_0x1b86a3=0x0;for(;_0x28de6c<_0x5964ac['length']||_0x1b86a3<_0x6cfaad['length'];){const _0x5df6b8=_0x5964ac[_0x28de6c]||{},_0x37463a=_0x6cfaad[_0x1b86a3]||{};if(_0x5df6b8['id']==_0x37463a['id'])_0x28de6c++,_0x1b86a3++,_0x4e6955['push'](_0x5df6b8);else{if(_0x37463a['isRemoved']&&_0x5df6b8['isAdded']){const {commonTape:_0x252a64,iEnd:_0x12396f,jEnd:_0x43847a}=this['_threeWayMerge'](_0x5964ac,_0x28de6c,_0x6cfaad,_0x1b86a3);_0x4e6955=_0x4e6955['concat'](_0x252a64),_0x28de6c=_0x12396f,_0x1b86a3=_0x43847a;}else _0x37463a['isRemoved']?(_0x1b86a3++,_0x4e6955['push'](_0x37463a)):(_0x28de6c++,_0x4e6955['push'](_0x5df6b8));}}return _0x4e6955;}['_markSuggestions'](_0x41fc48,_0x5a9dee){const _0x21e82d=[];for(let _0x589caf=0x0;_0x589caf<_0x41fc48['length'];_0x589caf++){for(let _0xcc6215=0x0;_0xcc6215<_0x41fc48[_0x589caf]['markersStart']['length'];_0xcc6215++){const _0x17f0bd=_0x41fc48[_0x589caf]['markersStart'][_0xcc6215];if(!_0x5a9dee['has'](_0x17f0bd))continue;const {group:_0x10384c,type:_0x2dc503,authorId:_0x11e81a}=_0x164ff0(_0x17f0bd);'revision-suggestion'!=_0x10384c||'insertion'!=_0x2dc503&&'deletion'!=_0x2dc503||(_0x21e82d['unshift']({'type':_0x2dc503,'name':_0x17f0bd,'userId':_0x11e81a}),_0x41fc48[_0x589caf]['markersStart']['splice'](_0xcc6215,0x1),_0xcc6215--);}_0x17540b(_0x41fc48[_0x589caf]);for(let _0x1eb982=0x0;_0x1eb982<_0x41fc48[_0x589caf]['markersEnd']['length'];_0x1eb982++){const _0x29e120=_0x41fc48[_0x589caf]['markersEnd'][_0x1eb982];if(!_0x5a9dee['has'](_0x29e120))continue;const {group:_0x3c42ec,type:_0xe9b9ac}=_0x164ff0(_0x29e120);if('revision-suggestion'!=_0x3c42ec||'insertion'!=_0xe9b9ac&&'deletion'!=_0xe9b9ac)continue;_0x41fc48[_0x589caf]['markersEnd']['splice'](_0x1eb982,0x1),_0x1eb982--;const _0x572cd7=_0x21e82d['findIndex'](_0x208131=>_0x208131['name']==_0x29e120);_0x572cd7>-0x1&&_0x21e82d['splice'](_0x572cd7,0x1);}}function _0x164ff0(_0x5ca5d3){const _0x31a739=_0x5ca5d3['split'](':');return{'group':_0x31a739[0x0],'type':_0x31a739[0x1],'subType':_0x31a739['length']>=0x5?_0x31a739[0x2]:null,'id':_0x31a739['length']<0x5?_0x31a739[0x2]:_0x31a739[0x3],'authorId':_0x31a739['length']<0x5?_0x31a739[0x3]:_0x31a739[0x4],'markerCount':0x6==_0x31a739['length']?_0x31a739[0x5]:null};}function _0x17540b(_0x337f32){for(let _0x569dd7=0x0;_0x569dd7<_0x21e82d['length'];_0x569dd7++){if(_0x337f32['isAdded']&&'insertion'==_0x21e82d[_0x569dd7]['type']&&_0x337f32['isAdded']['userId']==_0x21e82d[_0x569dd7]['userId'])return _0x337f32['isAddSuggestion']=_0x21e82d[_0x569dd7],void delete _0x337f32['isAdded'];if(!_0x337f32['isAdded']&&!_0x337f32['isRemoved']&&'deletion'==_0x21e82d[_0x569dd7]['type'])return void(_0x337f32['isRemoveSuggestion']=_0x21e82d[_0x569dd7]);}}}['_setDistance'](_0x447670,_0x519245){let _0x474eac=0x0,_0x3231fd=!0x1;const _0x1af876=new Map();for(const _0x38b845 of _0x447670)_0x38b845[_0x519245]?_0x3231fd&&(_0x474eac++,_0x3231fd=!0x1):(_0x474eac++,_0x3231fd=!0x0),_0x1af876['set'](_0x38b845['id'],_0x474eac);for(let _0x1d5389=0x0;_0x1d5389<_0x447670['length'];_0x1d5389++){if('isRemoved'==_0x519245&&_0x447670[_0x1d5389]['isAdded']||'isAdded'==_0x519245&&_0x447670[_0x1d5389]['isRemoved'])continue;if('text'==_0x447670[_0x1d5389]['type']){_0x447670[_0x1d5389]['distance']=0x0;continue;}const _0x489d56=_0x1af876['get'](_0x447670[_0x1d5389]['pairId']),_0x38e87a=_0x1af876['get'](_0x447670[_0x1d5389]['id']);_0x447670[_0x1d5389]['distance']=_0x489d56-_0x38e87a;}}['_getRevisionsRange'](_0x41fe91,_0x1612c5,_0x2d38a2=!0x1){const _0x344ea6=[];let _0x97b013=this['repository']['getIndex'](_0x41fe91),_0x2484e4=this['repository']['getIndex'](_0x1612c5);for(-0x1==_0x2484e4&&(_0x2484e4=this['repository']['_revisions']['length'],_0x2d38a2=!0x1);_0x97b013<_0x2484e4;)_0x344ea6['push'](this['repository']['getRevision'](_0x97b013)),_0x97b013++;return _0x2d38a2&&_0x344ea6['push'](this['repository']['getRevision'](_0x97b013)),_0x344ea6;}['_threeWayMerge'](_0x4fb3d0,_0x24b47a,_0x161177,_0x50f06e){const _0x24de97=this['editor']['model']['schema'];let _0x217b87=_0x24b47a;for(;_0x4fb3d0[_0x217b87]&&_0x4fb3d0[_0x217b87]['isAdded'];)_0x217b87++;let _0x109726=_0x50f06e;for(;_0x161177[_0x109726]&&_0x161177[_0x109726]['isRemoved'];)_0x109726++;_0x18be2f(_0x4fb3d0,_0x24b47a,_0x217b87),_0x18be2f(_0x161177,_0x50f06e,_0x109726);const _0x533525=_0x161177['slice'](_0x50f06e,_0x109726)['concat'](_0x4fb3d0['slice'](_0x24b47a,_0x217b87));return _0x533525['sort']((_0x326012,_0x229aa0)=>_0x326012['side']!=_0x229aa0['side']?_0x326012['side']-_0x229aa0['side']:_0x326012['level']!=_0x229aa0['level']?_0x326012['level']-_0x229aa0['level']:_0x326012['distance']!=_0x229aa0['distance']?_0x229aa0['distance']-_0x326012['distance']:!!_0x326012['isAdded']!=!!_0x229aa0['isAdded']?-0x1==_0x326012['side']||0x0==_0x326012['side']?_0x326012['isAdded']?-0x1:0x1:_0x326012['isAdded']?0x1:-0x1:_0x326012['index']-_0x229aa0['index']),{'commonTape':_0x533525,'iEnd':_0x217b87,'jEnd':_0x109726};function _0x18be2f(_0x40d223,_0x426f3a,_0xa6b7d){let _0x365000=-0x1,_0x118aee=Number['POSITIVE_INFINITY'],_0x2da06d=!0x0;for(let _0x435b4a=_0x426f3a;_0x435b4a<_0xa6b7d;_0x435b4a++)if(_0x24de97['isInline'](_0x40d223[_0x435b4a]['item'])||(_0x2da06d=!0x1),_0x40d223[_0x435b4a]['item']['startIndex']<_0x426f3a&&(_0x365000=_0x435b4a),_0x40d223[_0x435b4a]['item']['endIndex']>=_0xa6b7d){_0x118aee=_0x435b4a;break;}_0x2da06d&&(_0x365000=_0xa6b7d-0x1);for(let _0x5f4ae2=_0x426f3a;_0x5f4ae2<_0xa6b7d;_0x5f4ae2++)_0x40d223[_0x5f4ae2]['side']=_0x5f4ae2<=_0x365000?-0x1:_0x5f4ae2<_0x118aee?0x0:0x1,_0x40d223[_0x5f4ae2]['index']=_0x5f4ae2;let _0xd57df2=0x0;for(let _0x36b7c0=_0x426f3a;_0x36b7c0<=_0x365000;_0x36b7c0++)0x0==_0x40d223[_0x36b7c0]['distance']?_0x40d223[_0x36b7c0]['level']=_0xd57df2:(_0xd57df2++,_0x40d223[_0x36b7c0]['level']=_0xd57df2,_0xd57df2++);for(let _0x3ab2f3=_0x426f3a;_0x3ab2f3<_0xa6b7d;_0x3ab2f3++)0x0==_0x40d223[_0x3ab2f3]['side']&&(_0x40d223[_0x3ab2f3]['level']=_0xd57df2);_0xd57df2=0x0;for(let _0x11eb84=_0xa6b7d-0x1;_0x11eb84>=_0x118aee;_0x11eb84--)0x0==_0x40d223[_0x11eb84]['distance']?_0x40d223[_0x11eb84]['level']=_0xd57df2:(_0xd57df2--,_0x40d223[_0x11eb84]['level']=_0xd57df2,_0xd57df2--);}}['_fixObsoleteTags'](_0x3c0e41){const _0x1b565f=new Map(),_0x4c8aff=this['editor']['model']['schema'];for(let _0x2b37b0=0x1;_0x2b37b0<_0x3c0e41['length'];_0x2b37b0++){let _0x4b8563,_0x249cb0,_0x2cf0cf;const _0x1dd209=_0x3c0e41[_0x2b37b0],_0x529c62=_0x3c0e41[_0x2b37b0-0x1];if('text'==_0x1dd209['type'])continue;if(_0x1dd209['type']!=_0x529c62['type'])continue;if(!_0x4c8aff['isBlock'](_0x529c62['item'])||_0x4c8aff['isLimit'](_0x529c62['item']))continue;if(!_0x4c8aff['isBlock'](_0x1dd209['item'])||_0x4c8aff['isLimit'](_0x1dd209['item']))continue;if((_0x3c0e41[_0x2b37b0]['isAdded']||_0x3c0e41[_0x2b37b0]['isAddSuggestion'])&&_0x3c0e41[_0x2b37b0-0x1]['isRemoved'])_0x4b8563=_0x3c0e41[_0x2b37b0],_0x249cb0=_0x3c0e41[_0x2b37b0-0x1],_0x2cf0cf=_0x2b37b0-0x1;else{if(!_0x3c0e41[_0x2b37b0]['isRemoved']||!_0x3c0e41[_0x2b37b0-0x1]['isAdded']&&!_0x3c0e41[_0x2b37b0-0x1]['isAddSuggestion'])continue;_0x4b8563=_0x3c0e41[_0x2b37b0-0x1],_0x249cb0=_0x3c0e41[_0x2b37b0],_0x2cf0cf=_0x2b37b0;}const _0x123e4e=_0x4b8563['level']==_0x249cb0['level'],_0x34aebb=Math['abs'](_0x4b8563['level'])<Math['abs'](_0x249cb0['level'])&&0x0==_0x249cb0['distance'];(_0x123e4e||_0x34aebb)&&(_0x1b565f['set'](_0x249cb0['id'],_0x4b8563['id']),_0x3c0e41['splice'](_0x2cf0cf,0x1),_0x2b37b0--,_0x4b8563['isAdded']=!0x1);}for(let _0x4eb4ab=0x0;_0x4eb4ab<_0x3c0e41['length'];_0x4eb4ab++)_0x1b565f['has'](_0x3c0e41[_0x4eb4ab]['pairId'])&&(_0x3c0e41[_0x4eb4ab]['pairId']=_0x1b565f['get'](_0x3c0e41[_0x4eb4ab]['pairId']));}['_removeMissingPairs'](_0x1a0b2c){const _0x553a99=new Set(_0x1a0b2c['map'](_0x358583=>_0x358583['id']));for(let _0x198366=0x0;_0x198366<_0x1a0b2c['length'];_0x198366++)_0x553a99['has'](_0x1a0b2c[_0x198366]['pairId'])||0x0==_0x1a0b2c[_0x198366]['distance']||(_0x1a0b2c[_0x198366]['isIncorrect']=!0x0);return _0x1a0b2c['filter'](_0x456d72=>!_0x456d72['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5e920a){const _0x2b3019=new Set();for(let _0x14cf32=0x0;_0x14cf32<_0x5e920a['length'];_0x14cf32++){if(_0x2b3019['has'](_0x5e920a[_0x14cf32]['id'])&&_0x5e920a[_0x14cf32]['isRemoved']&&(_0x5e920a[_0x14cf32]['isIncorrect']=!0x0),_0x5e920a[_0x14cf32]['isIncorrect'])continue;if(0x0==_0x5e920a[_0x14cf32]['distance'])continue;if('elementStart'!=_0x5e920a[_0x14cf32]['type'])continue;if(null==_0x5e920a[_0x14cf32]['pairId'])continue;let _0x27860d=_0x14cf32+0x1,_0x22c874=0x0;for(;_0x5e920a[_0x27860d]['id']!=_0x5e920a[_0x14cf32]['pairId'];)'elementStart'==_0x5e920a[_0x27860d]['type']?_0x22c874++:'elementEnd'==_0x5e920a[_0x27860d]['type']&&_0x22c874--,_0x27860d++;if(0x0!=_0x22c874){if(_0x5e920a[_0x14cf32]['isRemoved'])_0x5e920a[_0x14cf32]['isIncorrect']=!0x0;else{for(;_0x27860d!=_0x14cf32;)_0x5e920a[_0x27860d]['isRemoved']&&0x0!=_0x5e920a[_0x27860d]['distance']&&(_0x5e920a[_0x27860d]['isIncorrect']=!0x0,_0x2b3019['add'](_0x5e920a[_0x27860d]['pairId'])),_0x27860d--;}}}return _0x5e920a['filter'](_0x13f81a=>!_0x13f81a['isIncorrect']);}['_removeUnsupportedChanges'](_0x89f49f){const _0x1be42a=this['editor']['model']['schema'];for(let _0x290c2a=0x0;_0x290c2a<_0x89f49f['length'];_0x290c2a++){if(!(_0x89f49f[_0x290c2a]['isAdded']||_0x89f49f[_0x290c2a]['isAddSuggestion']||_0x89f49f[_0x290c2a]['isRemoved']||_0x89f49f[_0x290c2a]['isRemoveSuggestion']))continue;if(0x0==_0x89f49f[_0x290c2a]['distance'])continue;const _0x2efc2a=_0x89f49f[_0x290c2a]['item'];_0x1be42a['isBlock'](_0x2efc2a)||_0x1be42a['isLimit'](_0x2efc2a)||(_0x89f49f[_0x290c2a]['isAdded']&&delete _0x89f49f[_0x290c2a]['isAdded'],_0x89f49f[_0x290c2a]['isAddSuggestion']&&delete _0x89f49f[_0x290c2a]['isAddSuggestion'],_0x89f49f[_0x290c2a]['isRemoveSuggestion']&&delete _0x89f49f[_0x290c2a]['isRemoveSuggestion'],_0x89f49f[_0x290c2a]['isRemoved']&&(_0x89f49f[_0x290c2a]['isIncorrect']=!0x0));}return _0x89f49f['filter'](_0x334e16=>!_0x334e16['isIncorrect']);}['_makeModelFromTape'](_0x5dfb5f,_0x3b8a6a,_0x5cf83b){const _0xc4c31=new ModelDocumentFragment(),_0x346461=[],_0x33c1ab=new Map(),_0x37535c=this['editor']['model'],_0x515d25=_0x37535c['schema'],_0x49f0bd=[_0xc4c31],_0x449ee1={},_0xd71297={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x206ba9=null;const _0x5e471e=[0x0];for(let _0x16181c=0x0;_0x16181c<_0x5dfb5f['length'];_0x16181c++)if('elementStart'===_0x5dfb5f[_0x16181c]['type']){_0x5dfb5f[_0x16181c]['previousPosition']=_0x37535c['createPositionFromPath'](_0xc4c31,_0x5e471e);const _0x2a6215=new ModelElement(_0x5dfb5f[_0x16181c]['item']['name'],_0x5dfb5f[_0x16181c]['item']['getAttributes']());_0x49f0bd[0x0]['_appendChild'](_0x2a6215),_0x5e471e['push'](0x0),_0x49f0bd['unshift'](_0x2a6215),_0x5dfb5f[_0x16181c]['nextPosition']=_0x37535c['createPositionFromPath'](_0xc4c31,_0x5e471e);}else'elementEnd'===_0x5dfb5f[_0x16181c]['type']?(_0x49f0bd['shift'](),_0x5dfb5f[_0x16181c]['previousPosition']=_0x37535c['createPositionFromPath'](_0xc4c31,_0x5e471e),_0x5e471e['pop'](),_0x5e471e[_0x5e471e['length']-0x1]++,_0x5dfb5f[_0x16181c]['nextPosition']=_0x37535c['createPositionFromPath'](_0xc4c31,_0x5e471e)):(_0x5dfb5f[_0x16181c]['previousPosition']=_0x37535c['createPositionFromPath'](_0xc4c31,_0x5e471e),_0x206ba9?_0x206ba9['_data']+=_0x5dfb5f[_0x16181c]['item']['data']:_0x206ba9=new ModelText(_0x5dfb5f[_0x16181c]['item']['data'],_0x5dfb5f[_0x16181c]['item']['getAttributes']()),_0x5dfb5f[_0x16181c+0x1]&&'text'===_0x5dfb5f[_0x16181c+0x1]['type']&&_0x117e8d(_0x206ba9,_0x5dfb5f[_0x16181c+0x1]['item'])||(_0x49f0bd[0x0]['_appendChild'](_0x206ba9),_0x206ba9=null),_0x5e471e[_0x5e471e['length']-0x1]+=_0x5dfb5f[_0x16181c]['item']['offsetSize'],_0x5dfb5f[_0x16181c]['nextPosition']=_0x37535c['createPositionFromPath'](_0xc4c31,_0x5e471e));for(let _0x58f44e=0x0;_0x58f44e<_0x5dfb5f['length'];_0x58f44e++){const _0x59a24a=_0x5dfb5f[_0x58f44e]['previousPosition'],_0x11b817=_0x5dfb5f[_0x58f44e]['nextPosition'];for(const _0x577dd1 of _0x5dfb5f[_0x58f44e]['markersStart'])_0x33c1ab['set'](_0x577dd1,{'start':_0x59a24a,'end':null});_0x2b7691('isRemoveSuggestion',_0x58f44e,_0x59a24a,_0x11b817),_0x2b7691('isAddSuggestion',_0x58f44e,_0x59a24a,_0x11b817),_0x2b7691('isRemoved',_0x58f44e,_0x59a24a,_0x11b817),_0x2b7691('isAdded',_0x58f44e,_0x59a24a,_0x11b817);for(const _0x2101f6 of _0x5dfb5f[_0x58f44e]['markersEnd']){const _0x491d25=_0x33c1ab['get'](_0x2101f6);_0x491d25?_0x491d25['end']=_0x11b817:_0x33c1ab['set'](_0x2101f6,{'start':_0x11b817,'end':_0x11b817});}}for(const [_0x121ee2,_0x1c09b1]of _0x33c1ab){const _0x4a0cbf=this['editor']['model']['createRange'](_0x1c09b1['start'],_0x1c09b1['end']);_0xc4c31['markers']['set'](_0x121ee2,_0x4a0cbf);}return _0x346461['sort']((_0x4256ec,_0xaddc73)=>{const _0x17c8ee=_0xc4c31['markers']['get']('revision:'+_0x4256ec['id']),_0x5d157d=_0xc4c31['markers']['get']('revision:'+_0xaddc73['id']);return _0x17c8ee['start']['isBefore'](_0x5d157d['start'])?-0x1:_0x17c8ee['start']['isAfter'](_0x5d157d['start'])?0x1:_0x17c8ee['end']['isBefore'](_0x5d157d['end'])?-0x1:_0x17c8ee['end']['isAfter'](_0x5d157d['end'])?0x1:'add'===_0x4256ec['type']?-0x1:0x1;}),{'root':_0xc4c31,'changes':_0x346461};function _0x2b7691(_0x39087f,_0x2a8d6c,_0x1c426c,_0x6640a5){const _0x187d61=!!_0x5dfb5f[_0x2a8d6c][_0x39087f],_0x3d4530=_0x187d61?_0x5dfb5f[_0x2a8d6c][_0x39087f]['userId']:null,_0x5d03cd=_0x2a8d6c===_0x5dfb5f['length']-0x1,_0x482908=_0xd71297[_0x39087f][0x0],_0x34fc6d=_0x515d25['isObject'](_0x5dfb5f[_0x2a8d6c]['item']);!_0x449ee1[_0x39087f]&&_0x187d61?_0x449ee1[_0x39087f]={'start':_0x1c426c,'tapeItem':_0x5dfb5f[_0x2a8d6c],'userId':_0x3d4530,'type':_0x39087f}:_0x449ee1[_0x39087f]&&!_0x187d61?(_0x449ee1[_0x39087f]['end']=_0x1c426c,_0x3f10e1(_0x449ee1[_0x39087f]),_0x449ee1[_0x39087f]=null):_0x449ee1[_0x39087f]&&_0x187d61&&_0x449ee1[_0x39087f]['userId']!==_0x3d4530&&(_0x449ee1[_0x39087f]['end']=_0x1c426c,_0x482908&&_0x482908['userId']===_0x449ee1[_0x39087f]['userId']||_0x3f10e1(_0x449ee1[_0x39087f]),_0x449ee1[_0x39087f]={'start':_0x1c426c,'tapeItem':_0x5dfb5f[_0x2a8d6c],'userId':_0x3d4530,'type':_0x39087f}),_0x449ee1[_0x39087f]&&_0x34fc6d&&('elementStart'!==_0x5dfb5f[_0x2a8d6c]['type']||_0x482908&&_0x482908['userId']===_0x3d4530||_0xd71297[_0x39087f]['unshift']({'userId':_0x3d4530,'object':_0x5dfb5f[_0x2a8d6c]['item'],'change':_0x449ee1[_0x39087f]}),'elementEnd'===_0x5dfb5f[_0x2a8d6c]['type']&&_0x482908&&_0x482908['object']===_0x5dfb5f[_0x2a8d6c]['item']&&(_0xd71297[_0x39087f]['shift'](),_0x449ee1[_0x39087f]=_0x482908['change'])),_0x449ee1[_0x39087f]&&_0x5d03cd&&(_0x449ee1[_0x39087f]['end']=_0x6640a5,_0x3f10e1(_0x449ee1[_0x39087f]),_0x449ee1[_0x39087f]=null);}function _0x3f10e1({start:_0x10880c,end:_0x5db927,tapeItem:_0x53a176,userId:_0x46b87a,type:_0x40b2f6}){const _0x5ef386=_0x53a176['item'],_0x2b78be=_0x37535c['schema']['isBlock'](_0x5ef386)&&!_0x37535c['schema']['isLimit'](_0x5ef386),_0xa27af7=_0x10880c['nodeAfter']==_0x5db927['parent']&&_0x5db927['isAtStart'];if(_0x2b78be&&_0xa27af7)return;const _0xc870fa=_0x37535c['createRange'](_0x10880c,_0x5db927),_0x2d6a86=_0x3b8a6a['get'](_0x46b87a),_0x188d9a=new ChangeItem({'author':_0x2d6a86,'type':'isAdded'==_0x40b2f6||'isAddSuggestion'==_0x40b2f6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x40b2f6||'isRemoveSuggestion'==_0x40b2f6},'createdAt':new Date(),'rootName':_0x5cf83b});_0x346461['push'](_0x188d9a),_0xc4c31['markers']['set']('revision:'+_0x188d9a['id'],_0xc870fa);}function _0x117e8d(_0x480fc3,_0x586df2){const _0x2d8ba3=_0x480fc3['getAttributes'](),_0x2c83f3=_0x586df2['getAttributes']();for(const _0xd5bfaf of _0x2d8ba3){if(_0xd5bfaf[0x1]!==_0x586df2['getAttribute'](_0xd5bfaf[0x0]))return!0x1;_0x2c83f3['next']();}return _0x2c83f3['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x27e593=>{const _0x178f98=_0x27e593['markerName']['split'](':')[0x1],_0x2d355d=this['_getChangeFromId'](_0x178f98);if(!_0x2d355d)return null;const _0x393838='add'==_0x2d355d['type']?'insertion':'deletion',_0x50de6d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x393838];return _0x2d355d['data']['isSuggestion']&&_0x50de6d['push']('ck-suggestion-marker-'+_0x393838+'-new'),this['activeChange']==_0x2d355d&&_0x50de6d['push']('ck-suggestion-marker--active'),{'classes':_0x50de6d,'attributes':{'data-change-id':_0x178f98}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2cfed3=>{_0x2cfed3['on']('element:pre',(_0x3df914,_0x510bd2,_0x523181)=>{const _0x57a59c=_0x510bd2['viewItem']['getChild'](0x0);if(!_0x57a59c||!_0x57a59c['is']('element','code'))return;if(!_0x523181['consumable']['consume'](_0x57a59c,{'attributes':['vid_start','vid_end']}))return;const _0x22d62c=_0x510bd2['modelRange']['start']['nodeAfter'];_0x523181['writer']['setAttribute']('vid_start',_0x57a59c['getAttribute']('vid_start'),_0x22d62c),_0x523181['writer']['setAttribute']('vid_end',_0x57a59c['getAttribute']('vid_end'),_0x22d62c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2cbec6=>{_0x2cbec6['on']('element',(_0x344aaa,_0x27b5dc,_0x5efb3e)=>{if(!_0x5efb3e['consumable']['consume'](_0x27b5dc['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x27b5dc['modelRange']['isCollapsed'])return;const _0x1e4587=_0x27b5dc['modelRange']['start']['nodeAfter'];_0x1e4587['hasAttribute']('vid_start')||_0x1e4587['hasAttribute']('vid')||(_0x5efb3e['writer']['setAttribute']('vid_start',_0x27b5dc['viewItem']['getAttribute']('vid_start'),_0x1e4587),_0x5efb3e['writer']['setAttribute']('vid_end',_0x27b5dc['viewItem']['getAttribute']('vid_end'),_0x1e4587));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x180ef6=>_0x180ef6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4923e3,[,_0x3fefae])=>{['vid_start','vid_end','vid']['includes'](_0x3fefae)&&(_0x4923e3['return']=!0x0,_0x4923e3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5d2213=>{_0x5d2213['on']('attribute:vid',(_0x3d1061,_0x363dce,_0x411a43)=>{if('\x20'!=_0x363dce['item']['data']||_0x363dce['item']['parent']['maxOffset']>0x1)return;if(!_0x411a43['consumable']['consume'](_0x363dce['item'],_0x3d1061['name']))return;const _0x391515=_0x411a43['writer'],_0x12958e=_0x411a43['mapper']['toViewRange'](_0x363dce['range']);_0x391515['wrap'](_0x12958e,_0x391515['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',downcastSplitMergeMarker(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1218cb,_0x55082a,_0x525b15)=>{const _0x2bdcb4=_0x525b15['mapper']['markerNameToElements'](_0x55082a['markerName']);if(_0x2bdcb4){for(const _0x34d5e5 of _0x2bdcb4)(_0x34d5e5['hasClass']('ck-suggestion-marker-split')||_0x34d5e5['hasClass']('ck-suggestion-marker-merge'))&&(_0x525b15['mapper']['unbindElementFromMarkerName'](_0x34d5e5,_0x55082a['markerName']),_0x525b15['writer']['remove'](_0x34d5e5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x230039,_0x32fdbd,_0x35956c)=>{const _0x3c0c01=_0x32fdbd['markerName']['split'](':')[0x1],_0x15a969=this['_getChangeFromId'](_0x3c0c01);if(!_0x15a969)return null;const _0x41e2ae='add'==_0x15a969['type']?'split':'merge';if(_0x35956c['consumable']['test'](_0x32fdbd['markerRange'],_0x230039['name']))for(const _0x86bd7f of _0x32fdbd['markerRange']['getItems']()){if(!_0x86bd7f['is']('element','softBreak'))continue;const _0x66f9b4=_0x35956c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41e2ae}),_0x12a15d=_0x35956c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x86bd7f));_0x15a969['data']['isSuggestion']&&_0x35956c['writer']['addClass']('ck-suggestion-marker-'+_0x41e2ae+'-new',_0x66f9b4),this['activeChange']==_0x15a969&&_0x35956c['writer']['addClass']('ck-suggestion-marker--active',_0x66f9b4),_0x35956c['writer']['insert'](_0x12a15d,_0x66f9b4),_0x35956c['mapper']['bindElementToMarker'](_0x66f9b4,_0x32fdbd['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x560b76=>{for(const _0x590ff0 of this['editor']['model']['document']['getRootNames']()){const _0x55d53c=this['editor']['model']['document']['getRoot'](_0x590ff0),_0x5e6ef3=this['editor']['editing']['view']['document']['getRoot'](_0x590ff0);if(_0x5e6ef3){const _0x579286=_0x55d53c['getAttribute']('revisionHistoryAttachChange');if(_0x560b76['removeAttribute']('data-change-id',_0x5e6ef3),_0x560b76['removeClass']('ck-revision-history-root-add',_0x5e6ef3),_0x560b76['removeClass']('ck-revision-history-root-remove',_0x5e6ef3),_0x560b76['removeClass']('ck-revision-history-root--active',_0x5e6ef3),_0x579286){const _0x1da95b=this['_getChangeFromId'](_0x579286);if(!_0x1da95b)return null;_0x560b76['setAttribute']('data-change-id',_0x579286,_0x5e6ef3),_0x560b76['addClass']('ck-revision-history-root-'+_0x1da95b['type'],_0x5e6ef3),this['activeChange']==_0x1da95b&&_0x560b76['addClass']('ck-revision-history-root--active',_0x5e6ef3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x258208=>'revision-comment:'+_0x258208,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3e6fdb=>'revision-suggestion:'+_0x3e6fdb,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22767d=>({'name':'suggestion:'+_0x22767d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4c6219=>{const _0x2625f7=_0x4c6219['markerName']['split'](':')[0x1];return'insertion'!=_0x2625f7&&'deletion'!=_0x2625f7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2625f7]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',downcastSplitMergeMarkerSuggestion(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',downcastSplitMergeMarkerSuggestion(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x592994,_0x3acf77,_0x2855e3)=>{const _0x323e37=_0x2855e3['mapper']['markerNameToElements'](_0x3acf77['markerName']);if(_0x323e37){for(const _0x23320c of _0x323e37)_0x23320c['is']('uiElement')&&(_0x2855e3['mapper']['unbindElementFromMarkerName'](_0x23320c,_0x3acf77['markerName']),_0x2855e3['writer']['remove'](_0x23320c));}},{'priority':'high'});}['_getChangeFromId'](_0x33ef03){return this['_changeIdToChange']['get'](_0x33ef03);}['_getViewForChange'](_0xd68b82){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0xd68b82),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3b8ebc,_0x45e2bd,_0x1a6c56,_0x5a1a4e)=>{_0x5a1a4e&&this['_balloon']['remove'](_0x5a1a4e),_0x1a6c56&&(this['_balloon']['add']({'view':_0x1a6c56,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4dfa7c=this['editor']['editing'],_0x561bfa=this['_getChangeFromId'](_0x1a6c56['changeId']);let _0x52b46d;if(_0x561bfa['data']['isOnRoot']){const _0x500078=_0x4dfa7c['view']['getDomRoot'](_0x561bfa['rootName']);_0x52b46d=Array['from'](_0x500078['getClientRects']());}else{const _0x39a3ad=this['editor']['model']['markers']['get']('revision:'+_0x1a6c56['changeId']);_0x52b46d=Array['from'](_0x4dfa7c['mapper']['markerNameToElements'](_0x39a3ad['name']))['map'](_0x1a8c86=>_0x4dfa7c['view']['domConverter']['mapViewToDom'](_0x1a8c86))['map'](_0x57c669=>Array['from'](_0x57c669['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x52b46d[0x0];return _0x52b46d['find'](_0x3afb25=>_0x3afb25['top']-0x3<=this['_activeViewTarget']['y']&&_0x3afb25['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3afb25['left']-0x3<=this['_activeViewTarget']['x']&&_0x3afb25['right']+0x3>=this['_activeViewTarget']['x'])||_0x52b46d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1b8857,_0x407963,_0x28e095,_0x509e9c)=>{this['activeView']=_0x28e095?this['_getViewForChange'](_0x28e095):null,this['editor']['model']['change'](()=>{const _0x3c6655=this['editor']['editing'];_0x509e9c&&(_0x509e9c['data']['isOnRoot']?_0x3c6655['view']['change'](_0x2abb04=>{_0x2abb04['removeClass']('ck-revision-history-root--active',_0x3c6655['view']['document']['getRoot'](_0x509e9c['rootName']));}):_0x3c6655['reconvertMarker']('revision:'+_0x509e9c['id'])),_0x28e095&&(_0x28e095['data']['isOnRoot']?_0x3c6655['view']['change'](_0x60531f=>{_0x60531f['addClass']('ck-revision-history-root--active',_0x3c6655['view']['document']['getRoot'](_0x28e095['rootName']));}):_0x3c6655['reconvertMarker']('revision:'+_0x28e095['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x265ed2,_0x4fd50d)=>{if(this['activeChange'])return;const _0x1a356d=this['_findChangeIdFromDomTarget'](_0x4fd50d['target']),_0x342492=this['_changeIdToChange']['get'](_0x1a356d);_0x342492?(this['_activeViewTarget']={'x':_0x4fd50d['domEvent']['x'],'y':_0x4fd50d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x342492)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4f63ce,_0x1bc0d8)=>{const _0x326fc6=this['_findChangeIdFromDomTarget'](_0x1bc0d8['target']),_0x277e4a=this['_changeIdToChange']['get'](_0x326fc6);_0x277e4a?(this['_activeViewTarget']={'x':_0x1bc0d8['domEvent']['x'],'y':_0x1bc0d8['domEvent']['y']},_0x277e4a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x277e4a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2bf797){do{const _0x4fc5ef=_0x2bf797['getAttribute']('data-change-id');if(_0x4fc5ef)return _0x4fc5ef;_0x2bf797=_0x2bf797['parent'];}while(_0x2bf797);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x41a766=>{for(const _0x535b6c of this['editor']['model']['markers'])_0x41a766['removeMarker'](_0x535b6c);});}}function downcastSplitMergeMarker(_0x26d523){const _0xa17f5b=_0x26d523['plugins']['get']('RevisionViewer');return(_0x3f033c,_0x3f61c0,_0x477399)=>{const _0x3d80fc=_0x3f61c0['markerName']['split'](':')[0x1],_0x1d5de5=_0xa17f5b['_getChangeFromId'](_0x3d80fc);if(!_0x1d5de5)return null;const _0x58e7ba='add'==_0x1d5de5['type']?'split':'merge';if(!_0x477399['consumable']['test'](_0x3f61c0['markerRange'],_0x3f033c['name']))return;const _0x59af56=_0x3f61c0['markerRange']['getWalker'](),_0x423afd=_0x3f61c0['markerRange']['start'],_0x55968d=_0x26d523['model']['schema'];let _0x3873bc=null,_0x3a46eb=null,_0x4c11cf=!0x1,_0x3ff446=!0x1;for(const _0x52a208 of _0x59af56){const _0x1185f5=_0x52a208['item'];_0x4c11cf=_0x4c11cf||_0x55968d['isContent'](_0x1185f5);const _0x11b09a=_0x477399['mapper']['toViewElement'](_0x1185f5);if(_0x11b09a&&_0x11b09a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52a208['type']&&(_0x55968d['isBlock'](_0x1185f5)&&!_0x55968d['isLimit'](_0x1185f5)&&(_0x1185f5['nextSibling']||_0x423afd['isAtEnd']?_0x3873bc&&_0x3873bc['parent']==_0x1185f5||(_0x3873bc=_0x1185f5,_0x36c60a(_0x52a208['previousPosition']),_0x3ff446=!0x0):_0x3a46eb=_0x3a46eb||_0x52a208['previousPosition']));}function _0x36c60a(_0x11b583){const _0x45e607=_0x477399['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58e7ba}),_0x4e9190=_0x477399['mapper']['toViewPosition'](_0x11b583);_0x1d5de5['data']['isSuggestion']&&_0x477399['writer']['addClass']('ck-suggestion-marker-'+_0x58e7ba+'-new',_0x45e607),_0xa17f5b['activeChange']==_0x1d5de5&&_0x477399['writer']['addClass']('ck-suggestion-marker--active',_0x45e607),_0x477399['writer']['insert'](_0x4e9190,_0x45e607),_0x477399['mapper']['bindElementToMarker'](_0x45e607,_0x3f61c0['markerName']);}_0x4c11cf||_0x3ff446||!_0x3a46eb||_0x36c60a(_0x3a46eb);};}function downcastSplitMergeMarkerSuggestion(_0x4b6e77,_0xb4c9dd){return(_0x21d99e,_0x37372e,_0x3023d6)=>{if(!_0x3023d6['consumable']['test'](_0x37372e['markerRange'],_0x21d99e['name']))return;const _0x51c4ec=_0x37372e['markerRange']['getWalker'](),_0x3db376=_0x37372e['markerRange']['start'],_0x4d7814=_0x4b6e77['model']['schema'];let _0x5bc11e=null,_0x396411=null,_0x430779=!0x1,_0x29c629=!0x1;for(const _0x378f49 of _0x51c4ec){const _0x605d31=_0x378f49['item'];_0x430779=_0x430779||_0x4d7814['isContent'](_0x605d31);const _0x3a636c=_0x3023d6['mapper']['toViewElement'](_0x605d31);if(_0x3a636c&&_0x3a636c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x378f49['type']&&(_0x4d7814['isBlock'](_0x605d31)&&!_0x4d7814['isLimit'](_0x605d31)&&(_0x605d31['nextSibling']||_0x3db376['isAtEnd']?_0x5bc11e&&_0x5bc11e['parent']==_0x605d31||(_0x5bc11e=_0x605d31,_0x254615(_0x378f49['previousPosition']),_0x29c629=!0x0):_0x396411=_0x396411||_0x378f49['previousPosition']));}function _0x254615(_0x4e25ff){const _0x105f41=_0x3023d6['mapper']['toViewPosition'](_0x4e25ff),_0x1e3bed=_0x3023d6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xb4c9dd});_0x3023d6['writer']['insert'](_0x105f41,_0x1e3bed),_0x3023d6['mapper']['bindElementToMarker'](_0x1e3bed,_0x37372e['markerName']);}_0x430779||_0x29c629||!_0x396411||_0x254615(_0x396411);};}class RestoreRevisionCommand extends Command{constructor(_0x15a6c1){super(_0x15a6c1);const _0xbe8a46=_0x15a6c1['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0xbe8a46,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xbe8a46,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x39dff7=this['editor'],_0x28fcab=_0x39dff7['plugins']['get'](RevisionViewer),_0x2fb8a0=_0x28fcab['isReady']?_0x28fcab['diff']['newRevisionId']:null;_0x39dff7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2fb8a0);}['refresh'](){const {isReady:_0x3bf373,isEnabled:_0xc058f0,repository:_0x2a71ac,diff:_0x3c1f74}=this['editor']['plugins']['get'](RevisionViewer),_0x27f577=_0x3c1f74&&_0x2a71ac['getLaterVisibleRevision'](_0x3c1f74['newRevisionId']);this['isEnabled']=_0x3bf373&&_0xc058f0&&Boolean(_0x27f577);}}class ShowChangeCommand extends Command{['_step'];constructor(_0x3407bd,{direction:_0x2e271d}){super(_0x3407bd);const _0x205632=_0x3407bd['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0x2e271d?0x1:-0x1,this['listenTo'](_0x205632,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x205632,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x205632,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2a4b72=this['editor'],_0x10143a=_0x2a4b72['plugins']['get'](RevisionViewer),{isNavigationMode:_0x4f2384,currentChangeNumber:_0xb8a3ac}=_0x10143a;let _0x173c7f;if(_0x10143a['activeChange']=_0x4f2384?_0x10143a['diff']['changes']['get'](_0xb8a3ac+this['_step']):_0x10143a['diff']['changes']['first'],_0x10143a['activeChange']['data']['isOnRoot'])_0x173c7f=_0x2a4b72['editing']['view']['getDomRoot'](_0x10143a['activeChange']['rootName']);else{const _0x1e5970=_0x2a4b72['model']['markers']['get']('revision:'+_0x10143a['activeChange']['id']);_0x173c7f=getMarkerDomElement(_0x2a4b72['editing'],_0x1e5970);}scrollViewportToShowTarget({'target':_0x173c7f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4e1ca7,currentChangeNumber:_0x1aa370,numberOfChanges:_0x2ac044,isReady:_0x25324b,isEnabled:_0x43c7a5}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x43c7a5&&_0x25324b&&_0x2ac044)&&(!_0x4e1ca7||(0x1===this['_step']?_0x1aa370<_0x2ac044-0x1:_0x1aa370>0x0));}}class ChangesNavigationView extends View{constructor(_0x5b7425){super(_0x5b7425);const _0x4da91a=this['bindTemplate'],_0x33d631=new ButtonView(_0x5b7425),_0x24d428=new ButtonView(_0x5b7425);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0xf63355,_0x42be4e)=>_0xf63355&&_0x42be4e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x493383,_0x54cbd2,_0x1dfd48,_0x544db4)=>{if(!_0x493383)return getTranslation$4(_0x5b7425,'Loading...');if(!_0x1dfd48)return getTranslation$4(_0x5b7425,'No\x20changes');const _0x2d86c7=getTranslation$4(_0x5b7425,'NUMBER_OF_CHANGES',_0x1dfd48);return _0x544db4?getTranslation$4(_0x5b7425,'X_OF_Y_CHANGES',[_0x54cbd2+0x1,_0x1dfd48]):_0x2d86c7;}),_0x33d631['set']({'label':getTranslation$4(_0x5b7425,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0x24d428['set']({'label':getTranslation$4(_0x5b7425,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x33d631['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x24d428['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x33d631['on']('execute',()=>this['fire']('execute','backward')),_0x24d428['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4da91a['if']('_isStatusLabelVisible','ck-hidden',_0x3a7978=>!_0x3a7978)]},'children':[{'text':_0x4da91a['to']('isNavigationMode',_0x18c2e8=>_0x18c2e8?getTranslation$4(_0x5b7425,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$4(_0x5b7425,'Total')+':\x20')}]},{'text':_0x4da91a['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x33d631,_0x24d428]}]});}}const OVERLAY_CSS_CLASS='ck-editor__editable__loading-overlay';class RevisionViewerLoadingOverlay extends Plugin{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xd56dbb=this['editor']['editing']['view'];_0xd56dbb['change'](_0x163c11=>{for(const _0x30696e of _0xd56dbb['document']['roots'])_0x163c11['addClass'](OVERLAY_CSS_CLASS,_0x30696e);});}['hide'](){const _0x583460=this['editor']['editing']['view'];_0x583460['change'](_0x4cf6ec=>{for(const _0x3844a4 of _0x583460['document']['roots'])_0x4cf6ec['removeClass'](OVERLAY_CSS_CLASS,_0x3844a4);});}}class RevisionViewerUI extends Plugin{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionViewer,RevisionViewerLoadingOverlay];}['init'](){const _0x228376=this['editor'],_0xd58e04=_0x228376['plugins']['get'](RevisionViewer),_0x43e5e3=_0x228376['plugins']['get'](RevisionViewerLoadingOverlay);_0x228376['ui']['componentFactory']['add']('exitToEditing',_0x84fde8=>{const _0x228724=new ButtonView(_0x84fde8);return _0x228724['set']({'label':getTranslation$4(_0x84fde8,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x228724,'execute',()=>{_0x228376['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x228724;}),_0x228376['ui']['componentFactory']['add']('restoreRevision',_0x3b0c58=>{const _0x3984e8=new ButtonView(_0x3b0c58);return _0x3984e8['set']({'label':getTranslation$4(_0x3b0c58,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3984e8['bind']('isEnabled')['to'](_0x228376['commands']['get']('restoreRevision')),this['listenTo'](_0x3984e8,'execute',()=>_0x228376['execute']('restoreRevision')),_0x3984e8;}),_0x228376['ui']['componentFactory']['add']('changesNavigation',_0x50c408=>{const _0x1ba788=new ChangesNavigationView(_0x50c408),_0x5e3b33=_0x228376['commands']['get']('showPreviousChange'),_0xda66b7=_0x228376['commands']['get']('showNextChange');return _0x1ba788['bind']('isBackwardNavigationEnabled')['to'](_0x5e3b33,'isEnabled'),_0x1ba788['bind']('isForwardNavigationEnabled')['to'](_0xda66b7,'isEnabled'),_0x1ba788['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xd58e04),this['listenTo'](_0x1ba788,'execute',(_0xb14922,_0x258fab)=>{_0x228376['execute']('forward'===_0x258fab?'showNextChange':'showPreviousChange');}),_0x1ba788;}),_0x43e5e3['show'](),_0xd58e04['on']('change:isReady',(_0xcd3b6e,_0x22838c,_0x5002e9)=>{_0x5002e9?_0x43e5e3['hide']():_0x43e5e3['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x27f8ec,_0x1e55cd){super(_0x27f8ec,_0x1e55cd);const _0x31c077=this['bindTemplate'];this['set']({'label':getTranslation$4(_0x27f8ec,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$4(_0x27f8ec,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x31c077['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x1b4a02(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5cd7ff=this['fieldView']['element'];this['_tooltipString']=_0x5cd7ff['scrollWidth']>_0x5cd7ff['clientWidth']&&_0x5cd7ff['value']||'';}}class RevisionAuthorView extends View{constructor(_0x1d94cf,_0x4bca05,_0x23666d){super(_0x1d94cf);const _0x564668=new IconView();_0x564668['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0x1ac780=['ck','ck-revision-history-sidebar__revision-author'];_0x23666d&&_0x1ac780['push']('ck-revision-history-sidebar__revision-author_creator');const _0x449a2f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$4(_0x1d94cf,_0x23666d?'Revision\x20creator':'Revision\x20author')},'children':[_0x564668,_0x4bca05['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ac780},'children':_0x449a2f});}}function dateToPrettyFormat(_0x4c1d1d,_0x3186a3){return _0x3186a3['toLocaleDateString'](_0x4c1d1d,{'month':'long','day':'numeric'})+',\x20'+_0x3186a3['toLocaleTimeString'](_0x4c1d1d,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0xb37595,_0x4525fe){const _0x565627=_0xb37595['bindTemplate'],_0xefb69b=_0xb37595['locale'],_0x3ae85b=createDropdown(_0xefb69b);_0x3ae85b['panelPosition']='sw';const _0x5dbe56=_createDropdownOptions(_0xb37595,_0x4525fe);return _0xb37595['bind']('isActionsDropdownOpen')['to'](_0x3ae85b,'isOpen'),_0x3ae85b['buttonView']['set']({'label':getTranslation$4(_0xefb69b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x3ae85b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x565627['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x565627['to'](_0x28841c=>_0x28841c['stopPropagation']())}}),_0x3ae85b['on']('execute',_0x79dcc4=>{_0xb37595['isReady']&&'function'==typeof _0x79dcc4['source']['_action']&&_0x79dcc4['source']['_action'](_0xb37595);}),addListToDropdown(_0x3ae85b,_0x5dbe56,{'role':'menu'}),_0x3ae85b['listenTo'](_0xb37595,'change:isActionsDropdownOpen',(_0xbfc177,_0x3c7ef3,_0x2915d5)=>{if(_0x2915d5)for(const _0x4b1f96 of _0x3ae85b['listView']['items']){const _0x223225=_0x4b1f96['children']['first'],_0x4dc152=_0x4525fe['find'](_0x4ab864=>_0x4ab864['action']===_0x223225['_action'])['isVisible'];_0x4b1f96['isVisible']=void 0x0===_0x4dc152||_0x4dc152(_0xb37595);}}),_0x3ae85b;}function _createDropdownOptions(_0x518220,_0x4fb7f9){const _0x1404f0=_getLocalizedOptions(_0x518220,_0x4fb7f9),_0x4b444c=new Collection();for(const _0x4f7e3e of _0x1404f0){const _0x424465={'type':'button','model':new UIModel({'label':_0x4f7e3e['name'],'class':_0x4f7e3e['class'],'withText':!0x0,'role':'menuitem','_action':_0x4f7e3e['action']})};_0x424465['model']['bind']('isEnabled')['to'](_0x518220,'isActionsDropdownOpen',_0x484ae6=>'function'!=typeof _0x4f7e3e['isEnabled']||(!_0x484ae6||_0x4f7e3e['isEnabled'](_0x518220))),_0x4b444c['add'](_0x424465);}return _0x4b444c;}function _getLocalizedOptions(_0x2acf78,_0x251574){const _0x56a2e1=_0x2acf78['locale'],_0x1694b7={'Compare\x20against\x20selected':getTranslation$4(_0x56a2e1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$4(_0x56a2e1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$4(_0x56a2e1,'Restore\x20this\x20revision')};return _0x251574['map'](_0x465f3c=>{const _0x5be55d=_0x1694b7[_0x465f3c['name']];return _0x5be55d&&_0x5be55d!==_0x465f3c['name']&&(_0x465f3c['name']=_0x5be55d),_0x465f3c;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3734d9,_0x3fc7a6,_0x51c062,_0x27cb27){super(_0x3734d9);const _0x1966fa=this['bindTemplate'],_0x348050=getAuthorViews(_0x3734d9,_0x3fc7a6);this['id']=_0x3fc7a6['id'],this['_revision']=_0x3fc7a6,this['_requireRevisionName']=_0x27cb27,this['bind']('name','createdAt')['to'](_0x3fc7a6),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x926311=>dateToPrettyFormat(_0x3734d9['uiLanguage'],_0x926311)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x3734d9,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3e7cbf=>_0x3e7cbf||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3a2585,_0x42be9f)=>_0x3a2585&&_0x42be9f),this['revisionActionsView']=_0x51c062&&_0x51c062['length']?createActionsDropdownView(this,_0x51c062):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1966fa['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1966fa['if']('isEnabled','ck-disabled',_0x3a0c57=>!_0x3a0c57),_0x1966fa['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1966fa['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1966fa['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1966fa['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x348050}]},this['revisionActionsView']],'on':{'click':_0x1966fa['to'](_0x216008=>{_0x216008['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x436ac8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x436ac8,'change',()=>{this['_requireRevisionName']&&!_0x436ac8['value']||this['fire']('setName',{'id':this['id'],'name':_0x436ac8['value']}),_0x436ac8['value']||(_0x436ac8['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function getAuthorViews(_0x33f72d,_0x46fade){const _0x319ee1=Array['from'](_0x46fade['authors'])['filter'](_0x38f460=>_0x38f460!=_0x46fade['creator']);return _0x46fade['creator']&&_0x319ee1['unshift'](_0x46fade['creator']),_0x319ee1['map'](_0x4da081=>new RevisionAuthorView(_0x33f72d,_0x4da081,_0x4da081==_0x46fade['creator']));}function getDateTimePeriodInfo(_0x40d3e8,_0xf77c87){const _0xb2c749=DateTime['fromJSDate'](_0x40d3e8)['setLocale'](_0xf77c87),_0x4384ee=DateTime['local'](),_0x4503df=_0x4384ee['minus']({'days':0x1})['startOf']('day');let _0x572a38,_0x4aa6cc;return _0xb2c749['hasSame'](_0x4384ee,'day')?(_0x572a38=_0xb2c749['startOf']('day')['toJSDate'](),_0x4aa6cc=_0xb2c749['toRelativeCalendar']()):_0xb2c749['hasSame'](_0x4503df,'day')?(_0x572a38=_0x4503df['toJSDate'](),_0x4aa6cc=_0xb2c749['toRelativeCalendar']()):_0xb2c749['hasSame'](_0x4384ee,'week')?(_0x572a38=_0xb2c749['startOf']('week')['toJSDate'](),_0x4aa6cc=_0xb2c749['weekdayLong']||''):_0xb2c749['hasSame'](_0x4384ee,'year')?(_0x572a38=_0xb2c749['startOf']('month')['toJSDate'](),_0x4aa6cc=_0xb2c749['monthLong']||''):(_0x572a38=_0xb2c749['startOf']('year')['toJSDate'](),_0x4aa6cc=String(_0xb2c749['year'])),{'startDate':_0x572a38,'localizedPeriodName':_0x4aa6cc};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x493032,_0x43e7cc,_0x3f7510,_0x47d50f){super(_0x493032);const _0x9a5e26=getDateTimePeriodInfo(_0x43e7cc,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x43e7cc,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3f7510,this['_requireRevisionName']=_0x47d50f,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x9a5e26}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x370f68){const _0x15cb8b=new RevisionView(this['locale'],_0x370f68,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x15cb8b);}['removeRevision'](_0x48d96b){const _0x5f13bd=this['revisionViews']['find'](_0x44be01=>_0x44be01['id']===_0x48d96b['id']);this['revisionViews']['remove'](_0x5f13bd);}}class RevisionsSidebarHeaderView extends View{constructor(_0x1b411d){super(_0x1b411d);const _0x571231=new IconView();_0x571231['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x571231,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$4(_0x1b411d,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x402c81,_0x314fa8,_0x148137,_0x58736d){super(_0x402c81);const _0x25e42e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x314fa8,this['_revisionActions']=_0x148137,this['_requireRevisionName']=_0x58736d,this['on']('select',(_0x18ae19,_0x1cf8c3)=>{this['fire']('revisionSelected',_0x1cf8c3);}),this['on']('setName',(_0xd827c1,_0x21c080)=>{this['fire']('revisionSetName',_0x21c080);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x402c81),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x25e42e['if']('isEnabled','ck-disabled',_0x55c9a4=>!_0x55c9a4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4bcfbd of this['_revisions'])this['_addRevision'](_0x4bcfbd);this['_revisions']['on']('add',(_0x512204,_0x455efa)=>{this['_addRevision'](_0x455efa);}),this['_revisions']['on']('remove',(_0x4a9a0d,_0x464e33)=>{this['_removeRevision'](_0x464e33);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x288e12=>_0x288e12['revisionViews']['map'](_0xac921f=>_0xac921f))['flat']();}['selectRevision'](_0x305a0c){for(const _0x503211 of this['revisionViews'])_0x305a0c&&_0x305a0c['id']===_0x503211['id']?_0x503211['select']():_0x503211['deselect']();}['highlightRevisions'](_0x3c4671){for(const _0x35a9ee of this['revisionViews'])_0x3c4671['some'](({id:_0x1bab80})=>_0x1bab80===_0x35a9ee['id'])?_0x35a9ee['highlight']():_0x35a9ee['unhighlight']();}['_addRevision'](_0x387eb1){const _0x62468c=getDateTimePeriodInfo(_0x387eb1['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x387ce0=this['_getTimePeriodViewByStartDate'](_0x62468c);_0x387ce0||(_0x387ce0=new RevisionsSidebarTimePeriodView(this['locale'],_0x62468c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x387ce0)),_0x387ce0['addRevision'](_0x387eb1);}['_removeRevision'](_0x2c9876){const _0x5721ff=getDateTimePeriodInfo(_0x2c9876['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5721ff)['removeRevision'](_0x2c9876);}['_getTimePeriodViewByStartDate'](_0x532160){return this['timePeriodViews']['find'](_0x10980a=>_0x10980a['startDate']['getTime']()===_0x532160['getTime']());}}class RevisionsSidebar extends Plugin{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
availableRevisionActions();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionViewer];}constructor(_0x10b03a){super(_0x10b03a),this['_revisionViewer']=_0x10b03a['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x32510b=this['_revisionsRepository']['_revisions'],_0x26cc7c=this['_createRevisionActions'](),_0x2de039=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0x32510b,_0x26cc7c,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x34a784,_0x4482a4)=>{_0x4482a4['revisionViews']['on']('add',(_0x1e59b8,_0x51d1d3)=>{_0x51d1d3['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x2de039['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4945f4=this['_revisionsRepository']['getRevision'](0x0);if(_0x4945f4){const _0x5cb929=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4945f4['id']);this['_revisionViewer']['compare'](_0x4945f4,_0x5cb929);}}['_handleRevisionSelected'](_0x4c2720,_0x369dbd){const _0x43b075=this['_revisionsRepository']['getRevision'](_0x369dbd['id']),_0x4173bf=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x43b075['id']);this['_revisionViewer']['compare'](_0x43b075,_0x4173bf);}['_handleRevisionSetName'](_0xa2ffe5,_0x3c9377){this['_revisionsRepository']['getRevision'](_0x3c9377['id'])['setName'](_0x3c9377['name']);}['_handleDiffChange'](_0x1df87c,_0x31ff97,_0x32d6bf){const _0x3da645=this['_revisionsRepository']['getRevisionsInDiff'](_0x32d6bf);_0x3da645['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3da645),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3da645[0x0]));}['_createRevisionActions'](){const _0x1b7759=this['editor'],_0x5e9673=RevisionsSidebar['availableRevisionActions'],_0x2074ae=_0x1b7759['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x2074ae['length'])return _0x2074ae['map'](_0x3ffe20=>{const _0x3f97a3='string'==typeof _0x3ffe20?Object['assign']({},_0x5e9673[_0x3ffe20]):_0x3ffe20;return _0x3f97a3['action']=_0x3f97a3['action']['bind'](this,_0x1b7759),_0x3f97a3['isVisible']&&(_0x3f97a3['isVisible']=_0x3f97a3['isVisible']['bind'](this,_0x1b7759)),_0x3f97a3;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x351001},_0x15cd4c)=>{const _0x106c37=_0x351001['get'](RevisionViewer),_0x28bed3=_0x106c37['repository'];let _0x4c6969=_0x106c37['diff']['newRevisionId'],_0x41bed3=_0x15cd4c['id'];_0x28bed3['getIndex'](_0x4c6969)>_0x28bed3['getIndex'](_0x41bed3)&&([_0x4c6969,_0x41bed3]=[_0x41bed3,_0x4c6969]),_0x106c37['compare'](_0x4c6969,_0x41bed3);},'isVisible':({plugins:_0x21412a},_0x5e0958)=>{const _0x4533b4=_0x21412a['get'](RevisionViewer);return!(_0x4533b4['repository']['getRevisionsInDiff'](_0x4533b4['diff'])['length']>0x2)&&!_0x5e0958['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x22b79f,{id:_0x3b286c})=>{_0x22b79f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3b286c);},'isVisible':({plugins:_0x1dd9bd},_0x5e148d)=>!!_0x1dd9bd['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0x5e148d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x482df5},{id:_0xe9948e,revisionNameView:_0x1c1964})=>{const _0x2938ec=_0x482df5['get'](RevisionViewer),_0x9ed387=_0x2938ec['repository']['getEarlierVisibleRevision'](_0xe9948e);_0x2938ec['compare'](_0xe9948e,_0x9ed387),_0x1c1964['focus'](),_0x1c1964['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x31be17,_0x24d28b){super(_0x31be17),this['_view']=_0x24d28b,this['_toolbarConfig']=normalizeToolbarConfig(_0x31be17['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0xecee54){const _0x4e6f97=this['editor'],_0x394a64=this['view'],_0x275ee9=_0x4e6f97['editing']['view'],_0x1e76d2=_0x394a64['editable'],_0x5218b8=_0x275ee9['document']['getRoot']();_0x1e76d2['name']=_0x5218b8['rootName'],_0x394a64['render']();const _0x5b5a46=_0x1e76d2['element'];this['setEditableElement'](_0x1e76d2['name'],_0x5b5a46),_0x394a64['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x275ee9['attachDomRoot'](_0x5b5a46),this['_elementReplacer']['replace'](_0xecee54,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xb63e6e=this['view'],_0x461617=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x461617['detachDomRoot'](_0xb63e6e['editable']['name']),_0xb63e6e['destroy']();}['_initToolbar'](){const _0x21b995=this['view'];_0x21b995['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x21b995['stickyPanel']['limiterElement']=_0x21b995['element'],_0x21b995['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x212a0d})=>_0x212a0d),_0x21b995['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x21b995['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x389e92,_0x47f3e9,_0x244c6a={}){super(_0x389e92),this['stickyPanel']=new StickyPanelView(_0x389e92),this['toolbar']=new ToolbarView(_0x389e92,{'shouldGroupWhenFull':_0x244c6a['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0x389e92,_0x47f3e9);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class RevisionViewerEditor extends/* #__PURE__ -- @preserve */
ElementApiMixin(Editor){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x59b4fd,_0x12f9d6){super(_0x12f9d6),this['sourceElement']=_0x59b4fd,this['model']['document']['createRoot']();const _0x364a8b=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0x364a8b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x361de1,_0x1acaf3){const _0x3e5a7a=new this(_0x361de1,_0x1acaf3);return await _0x3e5a7a['initPlugins'](),await _0x3e5a7a['ui']['init'](_0x361de1),await _0x3e5a7a['data']['init'](_0x3e5a7a['config']['get']('initialData')||''),_0x3e5a7a['fire']('ready'),_0x3e5a7a;}}const blackListedPlugins=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions','AIChatShortcuts','AITranslate'];class RevisionViewerIntegration extends Plugin{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17d707){function _0x4d0e3e(_0x1e4a99){return _0x1e4a99['map'](_0x1a37cb=>String['fromCharCode'](_0x1a37cb))['join']('');}super(_0x17d707),this['result']='end',_0x17d707[_0x4d0e3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d0e3e([0x76,0x69,0x65,0x77])][_0x4d0e3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d0e3e([0x61,0x75,0x74,0x6f]),_0x17d707[_0x4d0e3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d0e3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d0e3e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d0e3e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d0e3e([0x6f,0x6b])});}}class RevisionHistory extends Plugin{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionTracker,RevisionHistoryUI];}constructor(_0x5d6d4c){if(super(_0x5d6d4c),!this['editor']['config']['get']('revisionHistory'))throw new CKEditorError('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5b04d6=>this['_showRevisionViewer']({..._0x5b04d6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x36ba94=>this['_closeRevisionViewer'](_0x36ba94)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x57f912=>this['_restoreRevision'](_0x57f912)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x148435){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x148435;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x40944c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x40944c);}['getRevision'](_0x2a80b4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2a80b4);}['getRevisions'](_0x4e3696){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4e3696||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1b5679=this['editor'],_0x2f01c9=sanitizeEditorConfig(_0x1b5679,blackListedPlugins),_0x229fe4=_0x1b5679['plugins']['get']('RevisionTracker'),_0x2917b0=_0x1b5679['plugins']['get'](Users)['users'];return _0x2f01c9['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2f01c9['lazyRoots'],(_0x2f01c9['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,Users];}['init'](){const _0x182341=this['editor']['plugins']['get'](Users);for(const _0x169cb6 of _0x2917b0)_0x169cb6['isAnonymous']||_0x182341['getUser'](_0x169cb6['id'])||_0x182341['addUser'](_0x169cb6);const _0x5dd116=_0x229fe4['repository']['getRevisions']();let _0x4191a5=null;const _0x169af1=this['editor']['plugins']['get']('RevisionViewer');_0x169af1['adapter']=_0x229fe4['adapter'],_0x169af1['bind']('isEnabled')['to'](_0x229fe4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1b5679,'isReadOnly',_0x4f90f5=>!_0x4f90f5);for(const _0xb1c8e3 of _0x5dd116){const _0xf67a3e=null===_0xb1c8e3['creator'];if(_0xf67a3e&&_0xb1c8e3['toVersion']===_0xb1c8e3['fromVersion'])continue;const _0x253607=_0xb1c8e3['toJSON']();_0x169af1['addRevisionData'](_0x253607,(_0x5d9bbc,_0x422b67,_0x479eee)=>{if(_0xf67a3e){if(_0x4191a5)_0x4191a5['_update'](_0x5d9bbc,_0x422b67);else{if(!_0x422b67){const _0x154aac=_0x479eee['toJSON']();_0x154aac['id']=uid(),_0x229fe4['saveRevision'](_0x154aac,_0x479eee['toVersion'])['then'](_0x3fef6f=>{_0x4191a5=_0x3fef6f;});}}}else _0xb1c8e3['_update'](_0x5d9bbc,_0x422b67);});}}},RevisionsSidebar),_0x2f01c9);}['_enhanceShowRevisionViewerCallback'](){const _0xac3600=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1b5d24=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5e85ba=this['editor']['plugins']['get']('Autosave');await _0x5e85ba['save']();}else await _0x1b5d24['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x37fc6f=this['editor']['plugins']['get']('Dialog');_0x37fc6f['isOpen']&&_0x37fc6f['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x4a7e3e=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x371d8d of _0x4a7e3e)_0x371d8d['class']=_0x371d8d['class']?_0x371d8d['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x1e92ac=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x1e92ac&&_0x1e92ac['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x598fb1=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x598fb1&&_0x598fb1['setAttribute']('tabindex','-1');}}const _0x377035=this['_getRevisionViewerEditorConfig']();return _0xac3600(_0x377035)['then'](_0x21c01e=>{return(this['_viewerEditor']=_0x21c01e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x21c01e);})['catch'](_0x5885e2=>(console['error'](_0x5885e2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d2104=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x27bd7b=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1fd6c9 of _0x27bd7b)_0x1fd6c9['class']='ck-tab-panel_disabled'===_0x1fd6c9['class']?'':_0x1fd6c9['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0xdde19d=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0xdde19d&&_0xdde19d['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x152d09=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x152d09&&_0x152d09['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4d2104(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x31ee3c=this['editor']['plugins']['get']('Annotations');_0x31ee3c['refreshVisibility'](),_0x31ee3c['refreshPositioning']();}});});}['_showRevisionViewer'](_0x230b6b){const _0x43847d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x510e26=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x569a3d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x569a3d,_0x230b6b)['then'](_0x432b77=>(_0x510e26['style']['display']='block',_0x43847d['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x432b77));}['_closeRevisionViewer'](_0x4a9cfe){const _0x4b03d0=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4b03d0['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4a9cfe['destroy']();}async['_restoreRevision'](_0x29f513){const _0x46ae00=this['editor'],_0x5cd466=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3bf20c=_0x46ae00['plugins']['get']('RevisionTracker'),_0x19654f=_0x46ae00['plugins']['get']('RevisionHistoryUtils'),_0x13e306=_0x5cd466['repository']['getRevision'](_0x29f513);let _0xfaa321,_0x1f9dfe,_0x1f5667;try{await _0x19654f['loadRevisionData'](_0x13e306,this['adapter']),_0xfaa321=_0x19654f['getRevisionDocumentData'](_0x13e306),_0x1f9dfe=_0x19654f['getRevisionRootsAttributes'](_0x13e306);}catch(_0x2e4a49){return void console['error'](_0x2e4a49);}_0x46ae00['model']['change'](_0x371ecf=>{for(const _0x111137 of Array['from'](_0x46ae00['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x371ecf['removeMarker'](_0x111137);}),_0x5cd466['isReady']=!0x1,_0x46ae00['model']['enqueueChange'](_0x1cbd6f=>{_0x1cbd6f['setSelection'](null),_0x1cbd6f['removeSelectionAttribute'](_0x46ae00['model']['document']['selection']['getAttributeKeys']());const _0x3e5405=Object['keys'](_0xfaa321);for(const _0xa64296 of _0x46ae00['model']['document']['roots'])'$graveyard'!=_0xa64296['rootName']&&_0xa64296['isAttached']()&&!_0x3e5405['includes'](_0xa64296['rootName'])&&_0x1cbd6f['detachRoot'](_0xa64296);for(const _0x49c25f of _0x3e5405){let _0x54a024=_0x46ae00['model']['document']['getRoot'](_0x49c25f);_0x54a024&&_0x54a024['isAttached']()||(_0x54a024=_0x1cbd6f['addRoot'](_0x49c25f));const _0x5c63ba=_0x1f9dfe[_0x49c25f],_0x578631=Object['keys'](_0x5c63ba),_0x11ee2e=_0xfaa321[_0x49c25f];for(const _0x1cdb21 of _0x54a024['getAttributeKeys']())_0x578631['includes'](_0x1cdb21)||_0x1cbd6f['removeAttribute'](_0x1cdb21,_0x54a024);for(const _0x38970f of _0x578631)_0x1cbd6f['setAttribute'](_0x38970f,_0x1f9dfe[_0x49c25f][_0x38970f],_0x54a024);_0x1cbd6f['remove'](_0x1cbd6f['createRangeIn'](_0x54a024)),_0x1cbd6f['insert'](_0x46ae00['data']['parse'](_0x11ee2e,_0x54a024),_0x54a024,0x0);}});const _0x37d1b0=getTranslation$4(_0x46ae00['locale'],'Restored');if(_0x13e306['name'])_0x1f5667=-0x1==_0x13e306['name']['indexOf'](_0x37d1b0)?_0x37d1b0+':\x20'+_0x13e306['name']:_0x13e306['name'];else _0x1f5667=_0x37d1b0+':\x20'+(_0x13e306['createdAt']['toLocaleDateString'](_0x46ae00['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x13e306['createdAt']['toLocaleTimeString'](_0x46ae00['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3bf20c['saveRevision']({'name':_0x1f5667}),_0x5cd466['isReady']=!0x0,_0x46ae00['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}class CloudServicesRevisionHistoryAdapter extends Plugin{static ['RevisionHistoryService']=/* #__PURE__ -- @preserve */
((()=>RevisionHistoryService)());['_lastRequestId'];['_revisionTracker'];['_revisionHistoryService'];['_oldOffset'];static get['requires'](){return[WebSocketGateway,RealTimeCollaborationClient,RevisionHistory,Sessions,Users];}static get['pluginName'](){return'CloudServicesRevisionHistoryAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4afe1a){super(_0x4afe1a);const _0x205793=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x205793);}async['init'](){const _0x457eb8=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x5c8fee=_0x457eb8['serverHistory'],_0x33ee5e=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0x5c8fee,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x457eb8['sessionId']});const _0x4314e2=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x118cb6,_0x51af1d=await EditorService['isBundleUploaded'](_0x33ee5e['connection'],_0x4314e2);this['editor']['plugins']['get'](RevisionHistory)['adapter']={'getRevision':async({revisionId:_0x2f3fc4})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x2f3fc4)),'updateRevisions':async _0x367536=>{await this['_waitForServiceReady']();const _0x2a214f=this['_revisionTracker']['currentRevision'];if(_0x51af1d&&0x1===_0x367536['length']&&_0x367536[0x0]['id']===_0x2a214f['id'])return _0x367536;for(const _0x1102f0 of _0x367536)_0x1102f0['id']===_0x2a214f['id']&&(_0x1102f0['isEmptyCurrent']=_0x1102f0['fromVersion']===_0x1102f0['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x367536,this['_lastRequestId'])['then'](_0x3d32bc=>(this['_lastRequestId']=_0x3d32bc,_0x367536))['catch'](_0x48165e=>{if(isDisconnectionError(_0x48165e)||'400'===_0x48165e['code']&&void 0x0!==_0x48165e['data']['wrongRequestId']){for(const _0xba3d9a of _0x367536){!this['_revisionTracker']['repository']['getRevision'](_0xba3d9a['id'])||this['_revisionTracker']['_bufferUpdate'](_0xba3d9a['id'],_0xba3d9a,!0x1);}if(isDisconnectionError(_0x48165e)&&'destroyed'!==this['editor']['state'])throw _0x48165e;return _0x367536;}throw _0x48165e;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x30ae55,{revisionsData:_0x534f60,requestId:_0x523af1})=>{Math['max'](..._0x534f60['map'](_0x269e5c=>_0x269e5c['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x534f60,_0x523af1);}):this['_handleRevisionsUpdate'](_0x534f60,_0x523af1);});const {revisions:_0x5ea396,requestId:_0x1f1b60}=await this['_revisionHistoryService']['connect'](_0x33ee5e['connection']);_0x33ee5e['addToReconnectionStack'](this),this['_lastRequestId']=_0x1f1b60,await this['_fetchMissingUsers'](_0x5ea396);for(const _0x5c4ce4 of _0x5ea396)this['_revisionTracker']['addRevisionData'](_0x5c4ce4);this['listenTo'](_0x457eb8,'change:_isConnected',(_0x31d2d8,_0x317200,_0x282506)=>{_0x282506&&(this['_oldOffset']=_0x457eb8['_offset'],_0x31d2d8['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x33ee5e,'state',_0x3afa17=>_0x3afa17===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x380ba2=this['editor']['plugins']['get'](WebSocketGateway),_0x343b91=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x602680=async()=>{const _0xf0a3ec=this['_revisionTracker']['currentRevision'],_0xf048e8=_0xf0a3ec['id'],_0x4da64a=_0xf048e8!==_0x343b91['sessionId'];if(_0x4da64a){const _0x3b53e6=_0x343b91['_offset']-this['_oldOffset'],_0x4ff2a9=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0xf0a3ec['toVersion']+_0x3b53e6!==_0x4ff2a9){const _0x13b8d4=_0xf0a3ec['fromVersion']+_0x3b53e6,_0x2a6859=this['editor']['plugins']['get'](Users),_0x1d1c55=this['_revisionTracker']['buildRevisionData']({'revision':_0xf0a3ec,'from':_0x13b8d4,'to':_0x4ff2a9});_0x1d1c55['id']=_0xf0a3ec['id'];const _0x1db8c4=_0x1d1c55['authorsIds']['map'](_0x1bcd25=>_0x2a6859['getUser'](_0x1bcd25));_0xf0a3ec['_update']({..._0x1d1c55,'authors':_0x1db8c4},!0x0),this['_revisionTracker']['_bufferUpdate'](_0xf0a3ec['id'],_0x1d1c55,!0x0);}this['_revisionTracker']['_startingVersion']=_0x4ff2a9,(_0xf0a3ec['toVersion']===_0xf0a3ec['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0xf048e8)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0xf048e8),this['_revisionTracker']['_createCurrentRevision'](_0x4ff2a9));}const {revisions:_0x28dc41,requestId:_0x13a1c6}=await this['_revisionHistoryService']['reconnect'](_0x380ba2['connection'],this['_lastRequestId']);_0x4da64a&&_0x28dc41['length']>0x0?_0x343b91['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x28dc41),this['_handleRevisionsUpdate'](_0x28dc41,_0x13a1c6),this['_revisionTracker']['sendBufferedUpdates']());};return _0x343b91['_isConnected']?_0x602680():new Promise((_0x120ed6,_0x18b59a)=>{_0x343b91['once']('change:_isConnected',()=>{_0x602680()['then'](_0x120ed6)['catch'](_0x18b59a);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0x1cde2=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0x133464=>{_0x133464['off'](),_0x1cde2();});});}['_getLatestVersionFromServerOperations'](){const _0x4dab94=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0x58e168 of _0x4dab94)if('marker'!==_0x58e168['type']||_0x58e168['affectsData'])return _0x58e168['baseVersion']+0x1;}['_getLatestVersion'](){const _0x317e87=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0x3329df=>{_0x317e87['_isPendingUpdate']?_0x317e87['once']('change:_isPendingUpdate',()=>{_0x3329df(this['_getLatestVersionFromServerOperations']());}):_0x3329df(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x3d1c37,_0x1898b8){const _0x415755=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x1898b8;for(const _0x3fe454 of _0x3d1c37){const _0x58a5f4=_0x415755['getRevision'](_0x3fe454['id']);if(_0x58a5f4){if((_0x3fe454['fromVersion']||_0x3fe454['toVersion'])&&(_0x3fe454['diffData']=null),_0x58a5f4===this['_revisionTracker']['currentRevision']){const _0x199b0d=Math['max'](_0x58a5f4['toVersion'],_0x3fe454['toVersion']),_0x4b08f3=Math['max'](_0x58a5f4['fromVersion'],_0x3fe454['fromVersion']);let _0x19ab44;_0x58a5f4['toVersion']===_0x3fe454['toVersion']&&_0x58a5f4['fromVersion']===_0x3fe454['fromVersion']?(_0x19ab44=!0x0,this['_preventResendingRevisionData'](_0x3fe454)):_0x3fe454['toVersion']===_0x199b0d&&_0x3fe454['fromVersion']===_0x4b08f3?_0x19ab44=!0x1:(_0x58a5f4['toVersion']===_0x199b0d&&_0x58a5f4['fromVersion']===_0x4b08f3||this['_fixRevision']({'revision':_0x58a5f4,'from':_0x4b08f3,'to':_0x199b0d}),_0x19ab44=!0x0),_0x19ab44&&(delete _0x3fe454['fromVersion'],delete _0x3fe454['toVersion'],delete _0x3fe454['diffData'],delete _0x3fe454['createdAt'],delete _0x3fe454['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x3fe454),this['_preventResendingRevisionData'](_0x3fe454);}else this['_revisionTracker']['addRevisionData'](_0x3fe454);}const _0x237590=_0x415755['getRevisions']();_0x237590['reverse']();for(let _0xa41fd3=0x0;_0xa41fd3<_0x237590['length']-0x1;_0xa41fd3++){const _0x467259=_0x237590[_0xa41fd3],_0x1f277a=_0x237590[_0xa41fd3+0x1];if(_0x467259['fromVersion']<_0x1f277a['toVersion']){const _0x3cb086=_0x1f277a['toVersion'],_0x5c43fc=Math['max'](_0x3cb086,_0x467259['toVersion']);this['_fixRevision']({'revision':_0x467259,'from':_0x3cb086,'to':_0x5c43fc});}}}['_fixRevision']({revision:_0x588374,from:_0x3d2e88,to:_0xfb9e55}={}){const _0x22ebd7=this['editor']['plugins']['get'](Users),_0x5843c0=this['_revisionTracker']['buildRevisionData']({'revision':_0x588374,'from':_0x3d2e88,'to':_0xfb9e55});_0x5843c0['authors']=_0x5843c0['authorsIds']['map'](_0x460e32=>_0x22ebd7['getUser'](_0x460e32)),_0x588374['_update'](_0x5843c0);}['_preventResendingRevisionData'](_0x3f33fd){const _0x1ff9fb={};_0x1ff9fb['id']=_0x3f33fd['id'];for(const _0x9da9ab of Object['keys'](_0x3f33fd))'id'!==_0x9da9ab&&(_0x1ff9fb[_0x9da9ab]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x1ff9fb['id'],_0x1ff9fb,!0x0);}async['_fetchMissingUsers'](_0x1da1b2){const _0x37850a=this['editor']['plugins']['get'](Users),{connection:_0x40d2c9}=this['editor']['plugins']['get'](WebSocketGateway),_0x31b54e=new Set();for(const _0x404e7d of _0x1da1b2){for(const _0x7f7d4c of _0x404e7d['authorsIds'])_0x484b5d(_0x7f7d4c);_0x404e7d['creatorId']&&_0x484b5d(_0x404e7d['creatorId']);}if(0x0===_0x31b54e['size'])return;const _0x3e71b5=await User['getMany'](_0x40d2c9,Array['from'](_0x31b54e));for(const _0x22acc4 of _0x3e71b5)_0x37850a['getUser'](_0x22acc4['id'])||_0x37850a['addUser'](_0x22acc4);function _0x484b5d(_0x562da8){_0x37850a['getUser'](_0x562da8)||_0x31b54e['add'](_0x562da8);}}}function isDisconnectionError(_0x3113b5){return _0x3113b5['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x3113b5['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x3113b5['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class RealTimeCollaborativeRevisionHistory extends Plugin{static get['requires'](){return[RevisionHistory,CloudServicesRevisionHistoryAdapter,RealTimeCollaborativeEditing];}static get['pluginName'](){return'RealTimeCollaborativeRevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class PresenceCounterView extends View{['_collapseAt'];constructor(_0x30198b,_0x4fc560=0x6){super(_0x30198b);const _0x3da4b8=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0x4fc560,this['bind']('isHidden')['to'](this,'usersCount',_0x3dfec8=>_0x3dfec8<_0x4fc560),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x3da4b8['if']('isHidden','ck-presence-list__counter--hidden')],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__users-counter']},'children':[{'tag':'div','attributes':{'class':['ck','ck-presence-list__users-counter__text']},'children':[{'text':_0x3da4b8['to']('usersCount',_0x235d29=>'+'+(_0x235d29-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0x4a1c1c){super(_0x4a1c1c);const _0x543f4d=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x543f4d['if']('hasPopup'),'aria-expanded':_0x543f4d['to']('isExpanded',_0x192807=>this['hasPopup']&&String(_0x192807)),'aria-label':_0x543f4d['to']('hasPopup',_0x1554e8=>getTranslation$6(_0x4a1c1c,_0x1554e8?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x543f4d['to']('hasPopup',_0x2cda4d=>!!_0x2cda4d&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x543f4d['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x543f4d['to'](_0xda4311=>{const _0x34566a=_0xda4311,_0x3c6b3c=document['querySelector']('.ck-presence-list__dropdown-list'),_0x2c2739=document['querySelector']('.ck-balloon-panel_with-arrow');_0x3c6b3c?.['contains'](_0x34566a['relatedTarget'])||_0x2c2739?.['contains'](_0x34566a['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x408859,_0x48611a,_0x27559d)=>{this['element']&&(_0x27559d?this['element']['setAttribute']('aria-expanded',String(this['isExpanded'])):this['element']['removeAttribute']('aria-expanded'));});}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['keystrokes']['listenTo'](this['element']);}}class PresenceListView extends View{['counterView'];['inlineListView'];constructor(_0x286c50,_0x2814bc=0x6){super(_0x286c50);const _0x3b1ffd=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0x2814bc),this['inlineListView']=new PresenceInlineListView(_0x286c50),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x17b0c9 of this['inlineListView']['items'])_0x17b0c9['tooltipPosition']='s';this['inlineListView']['items']['first']&&(this['inlineListView']['items']['first']['tooltipPosition']='se');}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list','ck-reset','ck-rounded-corners',_0x3b1ffd['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x44fef6,_0x1bfc18){super(_0x44fef6);const _0x766b72=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x44fef6,_0x1bfc18),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x44fef6,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x766b72['to'](_0x2d45d3=>{const _0x484051=_0x2d45d3,_0x26f70a=document['querySelector']('.ck-presence-list__list'),_0x4076ca=document['querySelector']('.ck-balloon-panel_with-arrow');_0x26f70a?.['contains'](_0x484051['relatedTarget'])||_0x4076ca?.['contains'](_0x484051['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x357609,_0x5f223e){super(_0x357609);const _0x514b47=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x5f223e?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x514b47['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x514b47['to']('role'),'aria-label':_0x514b47['to']('ariaLabel'),'aria-labelledby':_0x514b47['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x1a0b09['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x480d43=this['element'];_0x480d43&&(this['_isScrollable']=Math['max'](_0x480d43['scrollHeight'],_0x480d43['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x41d521,_0x34e77f,_0x2cdf3a){super(_0x41d521);const _0x1a4c2e=this['bindTemplate'];this['userView']=new UserView(_0x41d521,_0x34e77f);const _0x47805a={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x34e77f['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x34e77f['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x34e77f['color']['getBackgroundColorClass']()],'style':{'--ck-user-color':_0x34e77f['color']['getColorVariable'](),'--ck-user-color-alpha':_0x34e77f['color']['getColorAlphaVariable']()},'aria-hidden':'true'}}]};_0x2cdf3a&&(_0x47805a['tag']='button',_0x47805a['on']={'click':_0x1a4c2e['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x47805a);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x55a2ba,_0x4e7d37,_0x2eebd2){super(_0x55a2ba);const _0x51771a=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x55a2ba,_0x4e7d37),this['markerView']=new MarkerView(_0x55a2ba,_0x4e7d37);const _0x481dec=new LabelView(_0x55a2ba);_0x481dec['template']['tag']='span',_0x481dec['text']=_0x4e7d37['name'];const _0x349fcd={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x51771a['to']('isFocusable',_0x2fcb60=>!!_0x2fcb60&&0x0),'aria-labelledby':_0x481dec['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x51771a['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x51771a['to']('hasTooltip',_0x16ae97=>!_0x16ae97),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x481dec]};_0x2eebd2&&(_0x349fcd['tag']='button',_0x349fcd['on']={'click':_0x51771a['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x349fcd);}}class MarkerView extends View{constructor(_0x250f0d,_0x2b59bd){super(_0x250f0d),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x2b59bd['color']['getBackgroundColorClass']()],'style':{'--ck-user-color':_0x2b59bd['color']['getColorVariable'](),'--ck-user-color-alpha':_0x2b59bd['color']['getColorAlphaVariable']()},'aria-hidden':'true'}});}}const defaultPresenceListConfig={'collapseAt':0x6,'displayMe':!0x0};class PresenceListUI extends ContextPlugin{['currentDisplayedUsers'];['balloonPanelView'];['view'];['presenceDropdownView'];['_bodyCollection']=null;static get['pluginName'](){return'PresenceListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2da8e7){super(_0x2da8e7),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x37483c=_0x2da8e7['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x37483c)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x37483c<0x1)throw new CKEditorError('presencelist-collapseat-invalid-format',this);this['_allConnectedUsers']=this['context']['plugins']['get'](Sessions)['allConnectedUsers'],this['set']('usersCount',0x0),this['currentDisplayedUsers']=new Collection(),this['balloonPanelView']=new BalloonPanelView(),this['balloonPanelView']['class']='ck\x20ck-presence-list__balloon',this['view']=this['_createView'](),this['presenceDropdownView']=void 0x0;}static get['requires'](){return[Sessions];}['init'](){for(const _0x5bfe70 of this['_allConnectedUsers'])this['_handleUserAdd'](_0x5bfe70);this['listenTo'](this['_allConnectedUsers'],'add',(_0x5aa74f,_0x54ffa0)=>{this['_handleUserAdd'](_0x54ffa0);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x1b74f6,_0x1fef50)=>{this['_handleUserRemove'](_0x1fef50);});}['_createView'](){const _0x2d2276=this['context'],_0x1d5de8=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0xd2256=this['balloonPanelView'];if(!isElement$2(_0x2d2276['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x1d5de8['counterView']['bind']('usersCount')['to'](this),_0x1d5de8['bind']('isCollapsed')['to'](this,'usersCount',_0x37c133=>{const {collapseAt:_0x3fae69}=_0x2d2276['config']['get']('presenceList'),_0x12d5df=_0x37c133>=_0x3fae69;if(_0x12d5df&&!_0x1d5de8['inlineListView']['items']['find'](_0x2d39de=>_0x2d39de instanceof PresenceCounterView)){const _0x3c9941=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x3c9941&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x1d5de8['inlineListView']['items']['add'](_0x1d5de8['counterView']);}return _0x12d5df||this['hideDropdown'](),_0x12d5df;}),_0x1d5de8['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x4ff557=>{const _0xb925cd=_0x2d2276['config']['get']('presenceList'),_0x20247c=new PresenceInlineListItemView(_0x2d2276['locale'],_0x4ff557,!!_0xb925cd['onClick']);return _0x20247c['bind']('hasTooltip')['to'](_0x1d5de8,'isCollapsed',_0x3965c9=>!_0x3965c9),_0x20247c['bind']('isFocusable')['to'](_0x1d5de8,'isCollapsed',_0x2d742b=>!_0x2d742b),_0xb925cd['onClick']&&this['listenTo'](_0x20247c,'execute',()=>{this['view']['isCollapsed']||_0xb925cd['onClick'](_0x4ff557,_0x20247c['element']);}),_0x20247c;}),this['listenTo'](_0x1d5de8['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x1d5de8['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x1d5de8['inlineListView']['keystrokes']['set']('Enter',(_0xf7887,_0x22fbfe)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x22fbfe());}),_0x1d5de8['render'](),_0xd2256['render'](),clickOutsideHandler({'emitter':_0x1d5de8,'activator':()=>_0xd2256['isVisible'],'contextElements':[_0xd2256['element'],_0x1d5de8['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x2d2276['config']['get']('presenceList.container')['appendChild'](_0x1d5de8['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x1d5de8;}['_handleUserAdd'](_0x17bca2){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x17bca2['isMe'])return;const _0x5f13ae=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x5f13ae-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x170c9a=_0x17bca2['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x17bca2,_0x170c9a);}['_handleUserRemove'](_0x10dd38){this['usersCount']--;const {collapseAt:_0x1f2c72}=this['context']['config']['get']('presenceList'),_0x51250a=this['usersCount']>=_0x1f2c72;if(this['currentDisplayedUsers']['get'](_0x10dd38['id']))this['currentDisplayedUsers']['remove'](_0x10dd38['id']);else{if(_0x51250a&&this['currentDisplayedUsers']['length']+0x1===_0x1f2c72-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x51250a?0x1:0x0)<this['usersCount']){for(const _0xd84d2b of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0xd84d2b['id'])&&(this['currentDisplayedUsers']['add'](_0xd84d2b,Math['min'](this['currentDisplayedUsers']['length']-(_0x51250a?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x51250a?0x1:0x0)===_0x1f2c72-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x1e81c5=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0x1e81c5['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x12b388}=this['presenceDropdownView'];_0x12b388['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x4b5afe=>{if(!_0x1e81c5['displayMe']&&_0x4b5afe['isMe'])return null;const _0x51baed=new PresenceDropdownListItemView(this['context']['locale'],_0x4b5afe,!!_0x1e81c5['onClick']);return _0x1e81c5['onClick']&&this['listenTo'](_0x51baed,'execute',()=>{_0x1e81c5['onClick'](_0x4b5afe,_0x51baed['element']);}),_0x51baed;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x12b388['focus'](),_0x12b388['checkIfScrollable']();const _0x3f2b46=(_0x513284,_0x1f17e3)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x1f17e3();};_0x12b388['keystrokes']['set']('Esc',_0x3f2b46),_0x12b388['keystrokes']['set']('Shift+Tab',_0x3f2b46),_0x12b388['keystrokes']['set']('Tab',(_0x422833,_0xa6f75b)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0xa6f75b();}),_0x12b388['focusTracker']['add'](this['view']['element']),_0x12b388['focusTracker']['on']('change:isFocused',(_0x314da5,_0x2d4616,_0x195252)=>{_0x195252||this['hideDropdown']();});}['hideDropdown'](){this['presenceDropdownView']&&(this['view']['inlineListView']['isExpanded']=!0x1,this['balloonPanelView']['unpin'](),this['balloonPanelView']['content']['remove'](this['presenceDropdownView']),this['presenceDropdownView']['destroy'](),this['presenceDropdownView']=void 0x0);}['destroy'](){super['destroy'](),this['view']&&this['view']['isRendered']&&this['view']['destroy'](),this['_bodyCollection']&&(this['_bodyCollection']['detachFromDom'](),this['_bodyCollection']['destroy'](),this['_bodyCollection']=null);}}function focusNextElement(_0x4adc2a){const _0xc48755=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x333c74=>_0x333c74+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x3ad90b=[...document['body']['querySelectorAll'](_0xc48755)]['filter'](_0xa12aa0=>_0xa12aa0===document['activeElement']||_0xa12aa0['offsetWidth']+_0xa12aa0['offsetHeight']>0x0)['sort']((_0x53bc83,_0x146b2b)=>(_0x53bc83['tabIndex']||0x0)-(_0x146b2b['tabIndex']||0x0)),_0x345ad0=_0x3ad90b['indexOf'](_0x4adc2a),_0x23c4e7=_0x3ad90b[(_0x345ad0+0x1)%_0x3ad90b['length']];_0x23c4e7&&_0x23c4e7['focus']();}class PresenceList extends ContextPlugin{static get['requires'](){return[Sessions,PresenceListUI];}static get['pluginName'](){return'PresenceList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$3(_0x1f138d,_0x4aafa7){const t=_0x1f138d['t'],_0x468caf=_0x1f138d['t'];switch(_0x4aafa7){case'AI\x20Assistant':return _0x468caf('AI\x20Assistant');case'Block\x20quote':return _0x468caf('Block\x20quote');case'Bulleted\x20List':return _0x468caf('Bulleted\x20List');case'Insert\x20code\x20block':return _0x468caf('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x468caf('Open\x20file\x20manager');case'Insert\x20image':return _0x468caf('Insert\x20image');case'Heading\x201':return _0x468caf('Heading\x201');case'Heading\x202':return _0x468caf('Heading\x202');case'Heading\x203':return _0x468caf('Heading\x203');case'Heading\x204':return _0x468caf('Heading\x204');case'Heading\x205':return _0x468caf('Heading\x205');case'Heading\x206':return _0x468caf('Heading\x206');case'Horizontal\x20line':return _0x468caf('Horizontal\x20line');case'Insert\x20HTML':return _0x468caf('Insert\x20HTML');case'Increase\x20indent':return _0x468caf('Increase\x20indent');case'Insert\x20table':return _0x468caf('Insert\x20table');case'Table\x20of\x20contents':return _0x468caf('Table\x20of\x20contents');case'Numbered\x20List':return _0x468caf('Numbered\x20List');case'Decrease\x20indent':return _0x468caf('Decrease\x20indent');case'Paragraph':return _0x468caf('Paragraph');case'To-do\x20List':return _0x468caf('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x4aafa7;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f1bd9){super(_0x2f1bd9),this['_allowedCommands']=null;}['afterInit'](){const _0x32b429=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x5d233a=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x3d4344=this['getDefaultCommands']()['filter'](_0x3bd328=>!_0x5d233a['includes'](_0x3bd328['id']));let _0x19ca58=_0x3d4344['filter'](_0x36fbc0=>!_0x32b429['includes'](_0x36fbc0['commandName']));const _0x533f40=this['editor']['config']['get']('slashCommand.extraCommands');_0x533f40&&_0x533f40['length']&&(_0x19ca58=_0x19ca58['concat'](_0x533f40));const _0x43f09b=this['editor']['config']['get']('template.definitions');_0x43f09b&&_0x43f09b['length']&&(_0x19ca58=_0x19ca58['concat'](mapTemplates(_0x43f09b)));const _0x2b1ec7=this['editor']['config']['get']('style.definitions');_0x2b1ec7&&_0x2b1ec7['length']&&(_0x19ca58=_0x19ca58['concat'](mapStyles(_0x2b1ec7)));const _0x835ed2=_0x19ca58['filter'](_0x392ff1=>!_0x392ff1['commandName']||void 0x0!==this['editor']['commands']['get'](_0x392ff1['commandName'])),_0x475d4e=[];for(const _0x1f889b of _0x835ed2)_0x475d4e['push']({'id':_0x1f889b['id'],'commandName':_0x1f889b['commandName'],'title':'function'==typeof _0x1f889b['title']?_0x1f889b['title'](this['editor']):_0x1f889b['title'],'description':_0x1f889b['description'],'icon':_0x1f889b['icon'],'isIconColorInherited':_0x1f889b['isIconColorInherited'],'aliases':_0x1f889b['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x1f889b),'execute':()=>this['_proxyExecute'](_0x1f889b)});this['_allowedCommands']=_0x475d4e['sort'](compareCommands),checkLicense$3(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x73f13f=_0x5e8ab6=>getTranslation$3(this['editor']['locale'],_0x5e8ab6);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x73f13f('AI\x20Assistant'),'description':_0x73f13f('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x2ed3b9=>{setTimeout(()=>_0x2ed3b9['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x73f13f('Block\x20quote'),'description':_0x73f13f('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x73f13f('Bulleted\x20List'),'description':_0x73f13f('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x73f13f('Insert\x20code\x20block'),'description':_0x73f13f('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':IconBrowseFiles,'title':_0x73f13f('Open\x20file\x20manager'),'description':_0x73f13f('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':IconBrowseFiles,'title':_0x73f13f('Insert\x20image'),'description':_0x73f13f('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x73f13f('Emoji'),'description':_0x73f13f('Insert\x20an\x20emoji'),'execute':_0x1ed8e8=>{setTimeout(()=>_0x1ed8e8['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x73f13f('Heading\x201'),'description':_0x73f13f('Create\x20a\x20heading\x20level\x201'),'execute':_0x49dcce=>{_0x49dcce['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x73f13f('Heading\x202'),'description':_0x73f13f('Create\x20a\x20heading\x20level\x202'),'execute':_0x18c7bb=>{_0x18c7bb['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x73f13f('Heading\x203'),'description':_0x73f13f('Create\x20a\x20heading\x20level\x203'),'execute':_0x14f18d=>{_0x14f18d['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x73f13f('Heading\x204'),'description':_0x73f13f('Create\x20a\x20heading\x20level\x204'),'execute':_0x4e7123=>{_0x4e7123['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x73f13f('Heading\x205'),'description':_0x73f13f('Create\x20a\x20heading\x20level\x205'),'execute':_0x222681=>{_0x222681['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x73f13f('Heading\x206'),'description':_0x73f13f('Create\x20a\x20heading\x20level\x206'),'execute':_0xa96e7a=>{_0xa96e7a['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x73f13f('Horizontal\x20line'),'description':_0x73f13f('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x73f13f('Insert\x20HTML'),'description':_0x73f13f('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x73f13f('Increase\x20indent'),'description':_0x73f13f('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x73f13f('Insert\x20Mermaid\x20diagram'),'description':_0x73f13f('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x73f13f('Insert\x20table'),'description':_0x73f13f('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x73f13f('Table\x20of\x20contents'),'description':_0x73f13f('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x73f13f('Numbered\x20List'),'description':_0x73f13f('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x73f13f('Decrease\x20indent'),'description':_0x73f13f('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x73f13f('Paragraph'),'description':_0x73f13f('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x73f13f('To-do\x20List'),'description':_0x73f13f('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':IconFootnote,'title':_0x73f13f('Footnote'),'description':_0x73f13f('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x54f2ae){return _0x54f2ae['isEnabled']?_0x54f2ae['isEnabled'](this['editor']):!_0x54f2ae['commandName']||this['editor']['commands']['get'](_0x54f2ae['commandName'])['isEnabled'];}['_proxyExecute'](_0x595b16){if(_0x595b16['execute'])_0x595b16['execute'](this['editor']);else{if(!_0x595b16['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x595b16});this['editor']['execute'](_0x595b16['commandName']);}}}function compareCommands(_0x1c46bf,_0x617376){return _0x1c46bf['title']<_0x617376['title']?-0x1:_0x1c46bf['title']>_0x617376['title']?0x1:0x0;}function convertTitleToId(_0x2183a8,_0x4b4aef){return _0x4b4aef+'-'+_0x2183a8['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x509bc3){return _0x509bc3['map'](_0x340b75=>{const {title:_0x4d8902,icon:_0x240e08,description:_0xd71098,data:_0x26c2b4}=_0x340b75,_0x33b442={'id':convertTitleToId(_0x4d8902,'template'),'commandName':'insertTemplate','execute':_0x4cb920=>{_0x4cb920['execute']('insertTemplate',_0x26c2b4);},'description':_0xd71098,'icon':_0x240e08,'title':_0x4d8902};return _0x240e08&&(_0x33b442['isIconColorInherited']=!0x1),_0x33b442;});}function mapStyles(_0x4fce5c){return _0x4fce5c['map'](_0x32837f=>{const _0x47ff74={'id':convertTitleToId(_0x32837f['name'],'style'),'commandName':'style','execute':_0x42f34d=>{_0x42f34d['execute']('style',{'styleName':_0x32837f['name']});},'isEnabled':_0x6ab8d2=>{const _0x5dcd27=_0x6ab8d2['commands']['get']('style');return _0x5dcd27['isEnabled']&&_0x5dcd27['enabledStyles']['includes'](_0x32837f['name']);},'title':_0x32837f['name']};return _0x47ff74;});}function getExcludedHeadings(_0x3858ae){let _0x40b00a=['heading4','heading5','heading6'];if(_0x3858ae){const _0x32befc=_0x3858ae['map'](_0x454ed3=>_0x454ed3['model']);_0x40b00a=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x19b858=>!_0x32befc['includes'](_0x19b858));}return _0x40b00a;}async function checkLicense$3(_0x7ce33a){const _0x310d5e=_0x429ac6([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0xc2a02b=window[_0x429ac6([0x44,0x61,0x74,0x65])][_0x429ac6([0x6e,0x6f,0x77])](),_0x5969cf=_0x7ce33a[_0x429ac6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cfefd=new window[(_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab3a4=>{_0x5969cf[_0x429ac6([0x6f,0x6e,0x63,0x65])](_0x429ac6([0x72,0x65,0x61,0x64,0x79]),_0x1ab3a4);}),_0x5e7fc6={[_0x429ac6([0x6b,0x74,0x79])]:_0x429ac6([0x45,0x43]),[_0x429ac6([0x75,0x73,0x65])]:_0x429ac6([0x73,0x69,0x67]),[_0x429ac6([0x63,0x72,0x76])]:_0x429ac6([0x50,0x2d,0x32,0x35,0x36]),[_0x429ac6([0x78])]:_0x429ac6([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x429ac6([0x79])]:_0x429ac6([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x429ac6([0x61,0x6c,0x67])]:_0x429ac6([0x45,0x53,0x32,0x35,0x36])},_0x502b07=_0x5969cf[_0x429ac6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x429ac6([0x67,0x65,0x74])](_0x429ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3d154e=await(async function(){let _0x1c9ba8,_0x52acf0=null,_0x459280=null;try{if(_0x502b07==_0x429ac6([0x47,0x50,0x4c]))return _0x429ac6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c9ba8=(function(){const _0x352741=_0x502b07[_0x429ac6([0x73,0x70,0x6c,0x69,0x74])](_0x429ac6([0x2e]));if(0x3!=_0x352741[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4a9aaa=_0x352741[0x1];return _0x1e7dda(_0x4a9aaa);function _0x1e7dda(_0x2f2f0a){const _0x3f44fd=_0x43a943(_0x2f2f0a);return _0x3f44fd&&_0x32b066()?_0x3f44fd:null;function _0x32b066(){const _0x474064=_0x3f44fd[_0x429ac6([0x6a,0x74,0x69])],_0x527b2e=window[_0x429ac6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474064[_0x429ac6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x474064[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41df51={..._0x3f44fd,[_0x429ac6([0x6a,0x74,0x69])]:_0x474064[_0x429ac6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x474064[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41df51[_0x429ac6([0x76,0x63])],_0x4d1fbf(_0x41df51)==_0x527b2e;}}}()),!_0x1c9ba8)return _0x429ac6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1c9ba8[_0x429ac6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x459280=function(_0x2d8cb2,_0x47b2df){return new window[(_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x76a8b7=>{if(_0x599133())return _0x76a8b7(_0x429ac6([0x56,0x61,0x6c,0x69,0x64]));_0xfe4633(),_0x5969cf[_0x429ac6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x429ac6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1883ae=!0x1;const _0x3e6dec=uid();function _0x5d7c1b(_0x23a140){return!!_0x23a140&&(typeof _0x23a140===_0x429ac6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23a140===_0x429ac6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23a140[_0x429ac6([0x74,0x68,0x65,0x6e])]===_0x429ac6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23a140[_0x429ac6([0x63,0x61,0x74,0x63,0x68])]===_0x429ac6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x390188(_0x2f8376){_0x6509a(_0x2f8376)[_0x429ac6([0x74,0x68,0x65,0x6e])](_0x5eb072=>{if(!_0x5eb072||_0x5eb072[_0x429ac6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x429ac6([0x6f,0x6b]))return _0x429ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5102e8(_0x4d1fbf(_0x3e6dec+_0x47b2df))!=_0x5eb072[_0x429ac6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x429ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x429ac6([0x56,0x61,0x6c,0x69,0x64]);})[_0x429ac6([0x74,0x68,0x65,0x6e])](_0x3efad9=>(_0x5b2659(),_0x3efad9),()=>{const _0x266bf3=_0x532023();return null==_0x266bf3?(_0x5b2659(),_0x429ac6([0x56,0x61,0x6c,0x69,0x64])):_0x429ac6(_0xc2a02b-_0x266bf3>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x429ac6([0x74,0x68,0x65,0x6e])](_0x76a8b7)[_0x429ac6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x76a8b7(_0x429ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5099d1=0x36ee80;function _0x5b2659(){const _0x5e65c3=_0x429ac6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5102e8(_0x4d1fbf(_0x2d8cb2)),_0x306960=_0x433f8d(_0x5102e8(window[_0x429ac6([0x4d,0x61,0x74,0x68])][_0x429ac6([0x63,0x65,0x69,0x6c])](_0xc2a02b/_0x5099d1)));window[_0x429ac6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x429ac6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e65c3,_0x306960);}function _0x532023(){const _0x3f9430=_0x429ac6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5102e8(_0x4d1fbf(_0x2d8cb2)),_0x58265f=window[_0x429ac6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x429ac6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f9430);return _0x58265f?window[_0x429ac6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x433f8d(_0x58265f),0x10)*_0x5099d1:null;}function _0x6509a(_0x57ca93){return new window[(_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41fe87,_0x1b9c42)=>{_0x57ca93[_0x429ac6([0x74,0x68,0x65,0x6e])](_0x41fe87,_0x1b9c42),window[_0x429ac6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b9c42,0x1d4c0);});}}_0x5969cf[_0x429ac6([0x6f,0x6e])](_0x429ac6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f9631,_0x1ce333)=>{if(_0x1ce333[0x0]!=_0x2d8cb2)return _0x76a8b7(_0x429ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ce333[0x1]={..._0x1ce333[0x1],[_0x429ac6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e6dec};},{[_0x429ac6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x429ac6([0x68,0x69,0x67,0x68])}),_0x5969cf[_0x429ac6([0x6f,0x6e])](_0x429ac6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f205b=>{_0x5d7c1b(_0x2f205b[_0x429ac6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1883ae=!0x0,_0x390188(_0x2f205b[_0x429ac6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x429ac6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x429ac6([0x6c,0x6f,0x77])}),_0x5cfefd[_0x429ac6([0x74,0x68,0x65,0x6e])](()=>{_0x1883ae||_0x76a8b7(_0x429ac6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x599133(){return _0x5969cf[_0x429ac6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x429ac6([0x76,0x69,0x65,0x77])][_0x429ac6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x429ac6([0x61,0x75,0x74,0x6f]);}function _0xfe4633(){_0x5969cf[_0x429ac6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x429ac6([0x76,0x69,0x65,0x77])][_0x429ac6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x429ac6([0x61,0x75,0x74,0x6f]);}}(_0x1c9ba8[_0x429ac6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c9ba8[_0x429ac6([0x6a,0x74,0x69])]));const _0x2c39a8=await(async function(){let _0x4a24f3=!0x0;try{const _0x1638aa=_0x502b07[_0x429ac6([0x73,0x70,0x6c,0x69,0x74])](_0x429ac6([0x2e])),[_0x3add4b,_0x5e3716,_0x107b8f]=_0x1638aa;return _0x2b12d4(_0x3add4b),await _0x45018e(_0x3add4b,_0x5e3716,_0x107b8f),_0x4a24f3;}catch{return!0x1;}function _0x2b12d4(_0x2d1db8){const _0x2b059=_0x43a943(_0x2d1db8);_0x2b059&&_0x2b059[_0x429ac6([0x61,0x6c,0x67])]==_0x429ac6([0x45,0x53,0x32,0x35,0x36])||(_0x4a24f3=!0x1);}async function _0x45018e(_0x60c5a3,_0x35d468,_0x232a62){const _0x4321dc=window[_0x429ac6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x429ac6([0x66,0x72,0x6f,0x6d])](_0x9c5765(_0x232a62),_0x5d344c=>_0x5d344c[_0x429ac6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4781a3=new window[(_0x429ac6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x429ac6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x60c5a3+_0x429ac6([0x2e])+_0x35d468),_0x5a141d=window[_0x429ac6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x429ac6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a141d)return;const _0x237f68=await _0x5a141d[_0x429ac6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x429ac6([0x6a,0x77,0x6b]),_0x5e7fc6,{[_0x429ac6([0x6e,0x61,0x6d,0x65])]:_0x429ac6([0x45,0x43,0x44,0x53,0x41]),[_0x429ac6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x429ac6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x429ac6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a141d[_0x429ac6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x429ac6([0x6e,0x61,0x6d,0x65])]:_0x429ac6([0x45,0x43,0x44,0x53,0x41]),[_0x429ac6([0x68,0x61,0x73,0x68])]:{[_0x429ac6([0x6e,0x61,0x6d,0x65])]:_0x429ac6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x237f68,_0x4321dc,_0x4781a3)||(_0x4a24f3=!0x1);}}());return _0x2c39a8?(function(){const _0x2cbbf9=_0x1c9ba8[_0x429ac6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2cbbf9)return!0x1;if(_0x2cbbf9[_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429ac6([0x2a])))return!0x0;if(_0x2cbbf9[_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429ac6([0x53,0x43])))return!0x0;if(_0x2cbbf9[_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429ac6([0x50,0x50])))return!0x0;if(_0x2cbbf9[_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429ac6([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x429ac6([0x67,0x6c,0x6f,0x62])]&&window[_0x429ac6([0x67,0x6c,0x6f,0x62])][_0x429ac6([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x547d55=[_0x429ac6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x429ac6([0x74,0x72,0x69,0x61,0x6c])][_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9ba8[_0x429ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc2a02b/0x3e8:0x6a03bf00;return _0x1c9ba8[_0x429ac6([0x65,0x78,0x70])]<_0x547d55;}())?_0x429ac6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x6aa469=_0x1c9ba8[_0x429ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6aa469||0x0==_0x6aa469[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a351a}=new URL(window[_0x429ac6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6aa469[_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a351a))return!0x0;const _0xf7fe3e=_0x4a351a[_0x429ac6([0x73,0x70,0x6c,0x69,0x74])](_0x429ac6([0x2e]));return _0x6aa469[_0x429ac6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x311037=>_0x311037[_0x429ac6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x429ac6([0x2a])))[_0x429ac6([0x6d,0x61,0x70])](_0x152cc1=>_0x152cc1[_0x429ac6([0x73,0x70,0x6c,0x69,0x74])](_0x429ac6([0x2e])))[_0x429ac6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x563188=>_0x563188[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf7fe3e[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x429ac6([0x6d,0x61,0x70])](_0x2e9873=>Array(_0xf7fe3e[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e9873[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x429ac6([0x66,0x69,0x6c,0x6c])](_0x2e9873[0x0]===_0x429ac6([0x2a])?_0x429ac6([0x2a]):'')[_0x429ac6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e9873))[_0x429ac6([0x73,0x6f,0x6d,0x65])](_0x2809fc=>_0xf7fe3e[_0x429ac6([0x65,0x76,0x65,0x72,0x79])]((_0x186ae1,_0x1780e3)=>_0x2809fc[_0x1780e3]===_0x186ae1||_0x2809fc[_0x1780e3]===_0x429ac6([0x2a])));}())?(_0x1c9ba8[_0x429ac6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x429ac6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52acf0=function(_0x7a01ab){const _0x2abe6f=new window[(_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51e7a1=>setTimeout(_0x51e7a1,0x93ecc)),_0x5ad670=_0x5cfefd[_0x429ac6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42e096=>{let _0x151fb2=0x0;_0x5969cf[_0x429ac6([0x6d,0x6f,0x64,0x65,0x6c])][_0x429ac6([0x6f,0x6e])](_0x429ac6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cff3c,_0x1dc336)=>{_0x1dc336[0x0][_0x429ac6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x151fb2++,0x5e8==_0x151fb2&&(_0x42e096(),_0x3cff3c[_0x429ac6([0x6f,0x66,0x66])]());});})),_0x4dc1dd=[_0x2abe6f,_0x5ad670];return window[_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x429ac6([0x72,0x61,0x63,0x65])](_0x4dc1dd)[_0x429ac6([0x74,0x68,0x65,0x6e])](()=>_0x7a01ab);}(_0x429ac6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x52acf0&&_0x459280)return new window[(_0x429ac6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x565c04,_0x104c3e)=>{_0x52acf0[_0x429ac6([0x74,0x68,0x65,0x6e])](_0x565c04,_0x104c3e),_0x459280[_0x429ac6([0x74,0x68,0x65,0x6e])](_0xe53377=>{_0xe53377!=_0x429ac6([0x56,0x61,0x6c,0x69,0x64])&&_0x565c04(_0xe53377);},_0x104c3e);});return _0x52acf0||_0x459280||_0x429ac6([0x56,0x61,0x6c,0x69,0x64]);}())):_0x429ac6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x429ac6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x429ac6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x429ac6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x43a943(_0x12e16b){return _0x12e16b[_0x429ac6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x429ac6([0x65,0x79]))?JSON[_0x429ac6([0x70,0x61,0x72,0x73,0x65])](_0x9c5765(_0x12e16b)):null;}function _0x9c5765(_0x149402){return window[_0x429ac6([0x61,0x74,0x6f,0x62])](_0x149402[_0x429ac6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x429ac6([0x2b]))[_0x429ac6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x429ac6([0x2f])));}function _0x4d1fbf(_0x2a58a0){let _0x21c6bf=0x1505;function _0x3b3363(_0x29d69f){for(let _0x5ccbf7=0x0;_0x5ccbf7<_0x29d69f[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ccbf7++){const _0x141089=_0x29d69f[_0x429ac6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ccbf7);_0x21c6bf=(_0x21c6bf<<0x5)+_0x21c6bf+_0x141089,_0x21c6bf&=_0x21c6bf;}}return function _0x3dd34d(_0x4326d9){Array[_0x429ac6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4326d9)?_0x4326d9[_0x429ac6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3dd34d):_0x4326d9&&typeof _0x4326d9==_0x429ac6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x429ac6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4326d9)[_0x429ac6([0x73,0x6f,0x72,0x74])]()[_0x429ac6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x508568,_0x4f719d])=>{_0x3b3363(_0x508568),_0x3dd34d(_0x4f719d);}):_0x3b3363(window[_0x429ac6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4326d9));}(_0x2a58a0),_0x21c6bf>>>0x0;}function _0x5102e8(_0x31e14e){return _0x31e14e[_0x429ac6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x429ac6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x429ac6([0x30]));}function _0x433f8d(_0x4c22fc){return _0x4c22fc[_0x429ac6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x429ac6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x429ac6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e6e0c(){}function _0x429ac6(_0x479228){return _0x479228['map'](_0xac3d59=>String['fromCharCode'](_0xac3d59))['join']('');}!function(_0x3b82fb){const _0x4299d2=(function(){const _0x1a437b=window[_0x429ac6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x429ac6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x429ac6([0x6e,0x6f,0x77])]())[_0x429ac6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x429ac6([0x2e]),'');let _0x3e0899=_0x429ac6([0x75]);for(let _0x5027d4=0x0;_0x5027d4<_0x1a437b[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5027d4+=0x2){let _0x149a5c=window[_0x429ac6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a437b[_0x429ac6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5027d4,_0x5027d4+0x2));_0x149a5c>=_0x310d5e[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x149a5c-=_0x310d5e[_0x429ac6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e0899+=_0x310d5e[_0x149a5c];}return _0x3e0899;}());_0x5969cf[_0x4299d2]=_0x429ac6([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b82fb,_0x3b82fb!=_0x429ac6([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5cfefd,_0x5969cf[_0x429ac6([0x6d,0x6f,0x64,0x65,0x6c])][_0x429ac6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e6e0c,_0x5969cf[_0x429ac6([0x6d,0x6f,0x64,0x65,0x6c])][_0x429ac6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e6e0c,_0x5969cf[_0x429ac6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x429ac6([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3d154e);}class SlashCommandEditing extends Plugin{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x560e9b){const _0x3bc369=_0x560e9b&&_0x560e9b['toLowerCase']();let _0x55bfba=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x55bfba=_0x55bfba['filter'](_0x5f6f7=>_0x5f6f7['isEnabled']()),_0x3bc369){const _0x4fb655=[],_0x2a330c=[],_0x3ff467=[],_0x5a66d6=[];for(const _0x51f649 of _0x55bfba)_0x51f649['id']['toLowerCase']()['includes'](_0x3bc369)?_0x4fb655['push'](_0x51f649):_0x51f649['title']['toLowerCase']()['includes'](_0x3bc369)?_0x2a330c['push'](_0x51f649):_0x51f649['aliases']&&_0x51f649['aliases']['some'](_0x5e16ab=>_0x5e16ab['toLowerCase']()['includes'](_0x3bc369))?_0x3ff467['push'](_0x51f649):_0x51f649['description']&&_0x51f649['description']['toLowerCase']()['includes'](_0x3bc369)&&_0x5a66d6['push'](_0x51f649);_0x55bfba=_0x4fb655['concat'](_0x2a330c,_0x3ff467,_0x5a66d6);}return _0x55bfba;}}class SlashCommandButtonView extends ButtonView{constructor(_0x754a2d,_0x127211){super(_0x754a2d),this['textPartView']=this['_createTextPartView'](_0x754a2d,_0x127211),void 0x0!==_0x127211['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x127211['isIconColorInherited']),this['set']({'icon':_0x127211['icon']||IconPlay,'withText':!0x0,'label':_0x127211['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x358fbc,_0x3e2858){const _0x47f8b3=new View(_0x358fbc);return _0x47f8b3['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x3e2858['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x3e2858['description']}]}]:[this['labelView']]}),_0x47f8b3;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bfe27){super(_0x1bfe27),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c5aad=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f0005;for(const _0x1f6e4b in _0x4c5aad){const _0x4a54b4=_0x1f6e4b,_0x5237eb=_0x4c5aad[_0x4a54b4];if('slashCommandLicenseKeyValid'==_0x5237eb||'slashCommandLicenseKeyInvalid'==_0x5237eb||'slashCommandLicenseKeyExpired'==_0x5237eb||'slashCommandLicenseKeyDomainLimit'==_0x5237eb||'slashCommandLicenseKeyNotAllowed'==_0x5237eb||'slashCommandLicenseKeyEvaluationLimit'==_0x5237eb||'slashCommandLicenseKeyUsageLimit'==_0x5237eb){delete _0x4c5aad[_0x4a54b4],_0x1f0005=_0x5237eb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1f0005&&_0x4c5aad['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1f0005&&_0x4c5aad['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1f0005&&_0x4c5aad['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1f0005&&_0x4c5aad['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1f0005&&_0x4c5aad['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1f0005&&_0x4c5aad['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xe5bfad=this['editor'],_0x5408f3=this['editor']['plugins']['get']('SlashCommandEditing'),_0xa29f33=_0xe5bfad['config']['get']('mention.feeds');_0xa29f33['push']({'marker':'/','feed':_0x18ee68=>_0x5408f3['getMatchingCommands'](_0x18ee68),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xe5bfad['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xe5bfad['config']['set']('mention.feeds',_0xa29f33);}['_overrideMentionExecuteListener'](){const _0x3b8b78=this['editor'];_0x3b8b78['commands']['get']('mention')['on']('execute',(_0x53145f,_0x26e0eb)=>{const _0x387821=_0x26e0eb[0x0],_0x40a9db=_0x3b8b78['model'];'/'===_0x387821['marker']&&_0x40a9db['change'](_0x4edf1d=>{_0x4edf1d['remove'](_0x387821['range']),_0x387821['mention']['execute'](),_0x53145f['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4d334c){const _0x1b3f54=this['editor']['locale'],_0xeede00=new SlashCommandButtonView(_0x1b3f54,_0x4d334c);return _0xeede00['render'](),_0xeede00['element'];}}class SlashCommand extends Plugin{static get['requires'](){return[Mention,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$2(_0x5aa5e5,_0x34d608){const t=_0x5aa5e5['t'];switch(_0x34d608){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x34d608;}}function getActiveRootName(_0x36c427){const _0x564ebb=_0x36c427['editing']['view']['document']['roots'],_0x55d2a1=_0x564ebb['length'];if(0x0===_0x55d2a1)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0x36c427);if(0x1===_0x55d2a1)return _0x564ebb['first']['rootName'];return Array['from'](_0x36c427['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x462d8d){return isHtml(_0x462d8d)?formatHtml(_0x462d8d):_0x462d8d;}function unformatSource(_0x4f53df){return isHtml(_0x4f53df['replace'](/^[\n\s]*/g,''))?_0x4f53df['replace'](/\s+/g,''):_0x4f53df;}function isHtml(_0x275db4){return _0x275db4['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0x296ada){if(_0x296ada<0x300)return!0x1;for(let _0x214c73=0x0,_0x2e6af5=rangeFrom['length'];;){let _0x4eb28d=_0x214c73+_0x2e6af5>>0x1;if(_0x296ada<rangeFrom[_0x4eb28d])_0x2e6af5=_0x4eb28d;else{if(!(_0x296ada>=rangeTo[_0x4eb28d]))return!0x0;_0x214c73=_0x4eb28d+0x1;}if(_0x214c73==_0x2e6af5)return!0x1;}}function isRegionalIndicator(_0x169330){return _0x169330>=0x1f1e6&&_0x169330<=0x1f1ff;}((()=>{let _0x1bd6b0='lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o'['split'](',')['map'](_0x55605a=>_0x55605a?parseInt(_0x55605a,0x24):0x1);for(let _0x533fa7=0x0,_0x29da1f=0x0;_0x533fa7<_0x1bd6b0['length'];_0x533fa7++)(_0x533fa7%0x2?rangeTo:rangeFrom)['push'](_0x29da1f+=_0x1bd6b0[_0x533fa7]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x2c28e2,_0x2809c2,_0x41a1ec=!0x0,_0x432a91=!0x0){return(_0x41a1ec?nextClusterBreak:prevClusterBreak)(_0x2c28e2,_0x2809c2,_0x432a91);}function nextClusterBreak(_0x3d04af,_0x22a390,_0x16cef4){if(_0x22a390==_0x3d04af['length'])return _0x22a390;_0x22a390&&surrogateLow$1(_0x3d04af['charCodeAt'](_0x22a390))&&surrogateHigh$1(_0x3d04af['charCodeAt'](_0x22a390-0x1))&&_0x22a390--;let _0x314fac=codePointAt$1(_0x3d04af,_0x22a390);for(_0x22a390+=codePointSize$1(_0x314fac);_0x22a390<_0x3d04af['length'];){let _0x2ebabe=codePointAt$1(_0x3d04af,_0x22a390);if(_0x314fac==ZWJ||_0x2ebabe==ZWJ||_0x16cef4&&isExtendingChar(_0x2ebabe))_0x22a390+=codePointSize$1(_0x2ebabe),_0x314fac=_0x2ebabe;else{if(!isRegionalIndicator(_0x2ebabe))break;{let _0x1224c0=0x0,_0x26dfaa=_0x22a390-0x2;for(;_0x26dfaa>=0x0&&isRegionalIndicator(codePointAt$1(_0x3d04af,_0x26dfaa));)_0x1224c0++,_0x26dfaa-=0x2;if(_0x1224c0%0x2==0x0)break;_0x22a390+=0x2;}}}return _0x22a390;}function prevClusterBreak(_0x54542a,_0x2d1885,_0x4d6696){for(;_0x2d1885>0x0;){let _0x1d5cd6=nextClusterBreak(_0x54542a,_0x2d1885-0x2,_0x4d6696);if(_0x1d5cd6<_0x2d1885)return _0x1d5cd6;_0x2d1885--;}return 0x0;}function codePointAt$1(_0x4f5c56,_0x452bcf){let _0xac0181=_0x4f5c56['charCodeAt'](_0x452bcf);if(!surrogateHigh$1(_0xac0181)||_0x452bcf+0x1==_0x4f5c56['length'])return _0xac0181;let _0x7c299e=_0x4f5c56['charCodeAt'](_0x452bcf+0x1);return surrogateLow$1(_0x7c299e)?_0x7c299e-0xdc00+(_0xac0181-0xd800<<0xa)+0x10000:_0xac0181;}function surrogateLow$1(_0x33f129){return _0x33f129>=0xdc00&&_0x33f129<0xe000;}function surrogateHigh$1(_0x2734bf){return _0x2734bf>=0xd800&&_0x2734bf<0xdc00;}function codePointSize$1(_0x29579f){return _0x29579f<0x10000?0x1:0x2;}let Text$1=class e{['lineAt'](_0x4abe61){if(_0x4abe61<0x0||_0x4abe61>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x4abe61+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x4abe61,!0x1,0x1,0x0);}['line'](_0x35e0dc){if(_0x35e0dc<0x1||_0x35e0dc>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x35e0dc+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x35e0dc,!0x0,0x1,0x0);}['replace'](_0x2b5351,_0x41282e,_0x53db89){[_0x2b5351,_0x41282e]=clip(this,_0x2b5351,_0x41282e);let _0x21391f=[];return this['decompose'](0x0,_0x2b5351,_0x21391f,0x2),_0x53db89['length']&&_0x53db89['decompose'](0x0,_0x53db89['length'],_0x21391f,0x3),this['decompose'](_0x41282e,this['length'],_0x21391f,0x1),TextNode['from'](_0x21391f,this['length']-(_0x41282e-_0x2b5351)+_0x53db89['length']);}['append'](_0x46407b){return this['replace'](this['length'],this['length'],_0x46407b);}['slice'](_0x3ab4d7,_0x15d21c=this['length']){[_0x3ab4d7,_0x15d21c]=clip(this,_0x3ab4d7,_0x15d21c);let _0x5f2386=[];return this['decompose'](_0x3ab4d7,_0x15d21c,_0x5f2386,0x0),TextNode['from'](_0x5f2386,_0x15d21c-_0x3ab4d7);}['eq'](_0x31ae90){if(_0x31ae90==this)return!0x0;if(_0x31ae90['length']!=this['length']||_0x31ae90['lines']!=this['lines'])return!0x1;let _0x1f19a5=this['scanIdentical'](_0x31ae90,0x1),_0x32dcce=this['length']-this['scanIdentical'](_0x31ae90,-0x1),_0x2c1568=new RawTextCursor(this),_0x55e22b=new RawTextCursor(_0x31ae90);for(let _0x4f773e=_0x1f19a5,_0x3df5a6=_0x1f19a5;;){if(_0x2c1568['next'](_0x4f773e),_0x55e22b['next'](_0x4f773e),_0x4f773e=0x0,_0x2c1568['lineBreak']!=_0x55e22b['lineBreak']||_0x2c1568['done']!=_0x55e22b['done']||_0x2c1568['value']!=_0x55e22b['value'])return!0x1;if(_0x3df5a6+=_0x2c1568['value']['length'],_0x2c1568['done']||_0x3df5a6>=_0x32dcce)return!0x0;}}['iter'](_0x39c42a=0x1){return new RawTextCursor(this,_0x39c42a);}['iterRange'](_0x2f2d06,_0xf52aa2=this['length']){return new PartialTextCursor(this,_0x2f2d06,_0xf52aa2);}['iterLines'](_0xc6a46a,_0x5ab015){let _0x905758;if(null==_0xc6a46a)_0x905758=this['iter']();else{null==_0x5ab015&&(_0x5ab015=this['lines']+0x1);let _0x2a28b6=this['line'](_0xc6a46a)['from'];_0x905758=this['iterRange'](_0x2a28b6,Math['max'](_0x2a28b6,_0x5ab015==this['lines']+0x1?this['length']:_0x5ab015<=0x1?0x0:this['line'](_0x5ab015-0x1)['to']));}return new LineCursor(_0x905758);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x16f6c1=[];return this['flatten'](_0x16f6c1),_0x16f6c1;}constructor(){}static['of'](_0x696480){if(0x0==_0x696480['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x696480['length']||_0x696480[0x0]?_0x696480['length']<=0x20?new TextLeaf(_0x696480):TextNode['from'](TextLeaf['split'](_0x696480,[])):e['empty'];}};class TextLeaf extends Text$1{constructor(_0x5c33ea,_0x75e170=textLength(_0x5c33ea)){super(),this['text']=_0x5c33ea,this['length']=_0x75e170;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x37f77a,_0x7b3b6b,_0xdf0033,_0x56b68b){for(let _0x2b9fc6=0x0;;_0x2b9fc6++){let _0x46fe1e=this['text'][_0x2b9fc6],_0x3a934c=_0x56b68b+_0x46fe1e['length'];if((_0x7b3b6b?_0xdf0033:_0x3a934c)>=_0x37f77a)return new Line$1(_0x56b68b,_0x3a934c,_0xdf0033,_0x46fe1e);_0x56b68b=_0x3a934c+0x1,_0xdf0033++;}}['decompose'](_0x1d870d,_0x4a2f9c,_0x2bfd06,_0x1ad6c6){let _0x343057=_0x1d870d<=0x0&&_0x4a2f9c>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x1d870d,_0x4a2f9c),Math['min'](_0x4a2f9c,this['length'])-Math['max'](0x0,_0x1d870d));if(0x1&_0x1ad6c6){let _0x2dc804=_0x2bfd06['pop'](),_0x16834e=appendText(_0x343057['text'],_0x2dc804['text']['slice'](),0x0,_0x343057['length']);if(_0x16834e['length']<=0x20)_0x2bfd06['push'](new TextLeaf(_0x16834e,_0x2dc804['length']+_0x343057['length']));else{let _0x2a1c5d=_0x16834e['length']>>0x1;_0x2bfd06['push'](new TextLeaf(_0x16834e['slice'](0x0,_0x2a1c5d)),new TextLeaf(_0x16834e['slice'](_0x2a1c5d)));}}else _0x2bfd06['push'](_0x343057);}['replace'](_0x2f7be8,_0x50918a,_0x17a764){if(!(_0x17a764 instanceof TextLeaf))return super['replace'](_0x2f7be8,_0x50918a,_0x17a764);[_0x2f7be8,_0x50918a]=clip(this,_0x2f7be8,_0x50918a);let _0x3a5637=appendText(this['text'],appendText(_0x17a764['text'],sliceText(this['text'],0x0,_0x2f7be8)),_0x50918a),_0x257582=this['length']+_0x17a764['length']-(_0x50918a-_0x2f7be8);return _0x3a5637['length']<=0x20?new TextLeaf(_0x3a5637,_0x257582):TextNode['from'](TextLeaf['split'](_0x3a5637,[]),_0x257582);}['sliceString'](_0x3bb5ec,_0x3b3cd=this['length'],_0x409411='\x0a'){[_0x3bb5ec,_0x3b3cd]=clip(this,_0x3bb5ec,_0x3b3cd);let _0x57d80f='';for(let _0x36f720=0x0,_0x25baa4=0x0;_0x36f720<=_0x3b3cd&&_0x25baa4<this['text']['length'];_0x25baa4++){let _0x2fe52d=this['text'][_0x25baa4],_0x3e36da=_0x36f720+_0x2fe52d['length'];_0x36f720>_0x3bb5ec&&_0x25baa4&&(_0x57d80f+=_0x409411),_0x3bb5ec<_0x3e36da&&_0x3b3cd>_0x36f720&&(_0x57d80f+=_0x2fe52d['slice'](Math['max'](0x0,_0x3bb5ec-_0x36f720),_0x3b3cd-_0x36f720)),_0x36f720=_0x3e36da+0x1;}return _0x57d80f;}['flatten'](_0x398b6a){for(let _0x2bbe35 of this['text'])_0x398b6a['push'](_0x2bbe35);}['scanIdentical'](){return 0x0;}static['split'](_0x29d76b,_0x390f3a){let _0x162f19=[],_0x1361cf=-0x1;for(let _0x3ad1e3 of _0x29d76b)_0x162f19['push'](_0x3ad1e3),_0x1361cf+=_0x3ad1e3['length']+0x1,0x20==_0x162f19['length']&&(_0x390f3a['push'](new TextLeaf(_0x162f19,_0x1361cf)),_0x162f19=[],_0x1361cf=-0x1);return _0x1361cf>-0x1&&_0x390f3a['push'](new TextLeaf(_0x162f19,_0x1361cf)),_0x390f3a;}}class TextNode extends Text$1{constructor(_0x3907ac,_0x4d2b4a){super(),this['children']=_0x3907ac,this['length']=_0x4d2b4a,this['lines']=0x0;for(let _0x4b97cf of _0x3907ac)this['lines']+=_0x4b97cf['lines'];}['lineInner'](_0xc46907,_0x5c4644,_0x10669e,_0x3e0b1a){for(let _0x542a16=0x0;;_0x542a16++){let _0x121a16=this['children'][_0x542a16],_0x1839e9=_0x3e0b1a+_0x121a16['length'],_0x4fe2a6=_0x10669e+_0x121a16['lines']-0x1;if((_0x5c4644?_0x4fe2a6:_0x1839e9)>=_0xc46907)return _0x121a16['lineInner'](_0xc46907,_0x5c4644,_0x10669e,_0x3e0b1a);_0x3e0b1a=_0x1839e9+0x1,_0x10669e=_0x4fe2a6+0x1;}}['decompose'](_0x3541a9,_0x3f6fb6,_0x22b624,_0x178ae6){for(let _0xe896d5=0x0,_0x32dbe4=0x0;_0x32dbe4<=_0x3f6fb6&&_0xe896d5<this['children']['length'];_0xe896d5++){let _0x6a98c0=this['children'][_0xe896d5],_0x18704a=_0x32dbe4+_0x6a98c0['length'];if(_0x3541a9<=_0x18704a&&_0x3f6fb6>=_0x32dbe4){let _0x5e7f52=_0x178ae6&((_0x32dbe4<=_0x3541a9?0x1:0x0)|(_0x18704a>=_0x3f6fb6?0x2:0x0));_0x32dbe4>=_0x3541a9&&_0x18704a<=_0x3f6fb6&&!_0x5e7f52?_0x22b624['push'](_0x6a98c0):_0x6a98c0['decompose'](_0x3541a9-_0x32dbe4,_0x3f6fb6-_0x32dbe4,_0x22b624,_0x5e7f52);}_0x32dbe4=_0x18704a+0x1;}}['replace'](_0x34d186,_0x506702,_0x143fdf){if([_0x34d186,_0x506702]=clip(this,_0x34d186,_0x506702),_0x143fdf['lines']<this['lines'])for(let _0x3a1e13=0x0,_0x615e08=0x0;_0x3a1e13<this['children']['length'];_0x3a1e13++){let _0x1c5cb8=this['children'][_0x3a1e13],_0x402d00=_0x615e08+_0x1c5cb8['length'];if(_0x34d186>=_0x615e08&&_0x506702<=_0x402d00){let _0x388dd8=_0x1c5cb8['replace'](_0x34d186-_0x615e08,_0x506702-_0x615e08,_0x143fdf),_0x9c3eee=this['lines']-_0x1c5cb8['lines']+_0x388dd8['lines'];if(_0x388dd8['lines']<_0x9c3eee>>0x4&&_0x388dd8['lines']>_0x9c3eee>>0x6){let _0x146292=this['children']['slice']();return _0x146292[_0x3a1e13]=_0x388dd8,new TextNode(_0x146292,this['length']-(_0x506702-_0x34d186)+_0x143fdf['length']);}return super['replace'](_0x615e08,_0x402d00,_0x388dd8);}_0x615e08=_0x402d00+0x1;}return super['replace'](_0x34d186,_0x506702,_0x143fdf);}['sliceString'](_0x2e1871,_0x2c9848=this['length'],_0x26f158='\x0a'){[_0x2e1871,_0x2c9848]=clip(this,_0x2e1871,_0x2c9848);let _0x36ea37='';for(let _0x13699b=0x0,_0xdb4a93=0x0;_0x13699b<this['children']['length']&&_0xdb4a93<=_0x2c9848;_0x13699b++){let _0x4d1c40=this['children'][_0x13699b],_0x45a3da=_0xdb4a93+_0x4d1c40['length'];_0xdb4a93>_0x2e1871&&_0x13699b&&(_0x36ea37+=_0x26f158),_0x2e1871<_0x45a3da&&_0x2c9848>_0xdb4a93&&(_0x36ea37+=_0x4d1c40['sliceString'](_0x2e1871-_0xdb4a93,_0x2c9848-_0xdb4a93,_0x26f158)),_0xdb4a93=_0x45a3da+0x1;}return _0x36ea37;}['flatten'](_0x18f493){for(let _0x529cb7 of this['children'])_0x529cb7['flatten'](_0x18f493);}['scanIdentical'](_0x11df28,_0x2a01eb){if(!(_0x11df28 instanceof TextNode))return 0x0;let _0x212bc3=0x0,[_0xa6a9f7,_0x93037f,_0xdce272,_0x33c9b0]=_0x2a01eb>0x0?[0x0,0x0,this['children']['length'],_0x11df28['children']['length']]:[this['children']['length']-0x1,_0x11df28['children']['length']-0x1,-0x1,-0x1];for(;;_0xa6a9f7+=_0x2a01eb,_0x93037f+=_0x2a01eb){if(_0xa6a9f7==_0xdce272||_0x93037f==_0x33c9b0)return _0x212bc3;let _0x44c2bb=this['children'][_0xa6a9f7],_0x4312d2=_0x11df28['children'][_0x93037f];if(_0x44c2bb!=_0x4312d2)return _0x212bc3+_0x44c2bb['scanIdentical'](_0x4312d2,_0x2a01eb);_0x212bc3+=_0x44c2bb['length']+0x1;}}static['from'](_0x4fe68a,_0x1b76c1=_0x4fe68a['reduce']((_0x1988d9,_0x103539)=>_0x1988d9+_0x103539['length']+0x1,-0x1)){let _0x227c1b=0x0;for(let _0x437b9e of _0x4fe68a)_0x227c1b+=_0x437b9e['lines'];if(_0x227c1b<0x20){let _0x57c39e=[];for(let _0x35881a of _0x4fe68a)_0x35881a['flatten'](_0x57c39e);return new TextLeaf(_0x57c39e,_0x1b76c1);}let _0x5da0c7=Math['max'](0x20,_0x227c1b>>0x5),_0x28d832=_0x5da0c7<<0x1,_0x393004=_0x5da0c7>>0x1,_0x4333c5=[],_0x4975d7=0x0,_0x1bf6eb=-0x1,_0x5ec141=[];function _0x2ade1f(_0x1c553d){let _0x5ce43c;if(_0x1c553d['lines']>_0x28d832&&_0x1c553d instanceof TextNode){for(let _0x58440c of _0x1c553d['children'])_0x2ade1f(_0x58440c);}else _0x1c553d['lines']>_0x393004&&(_0x4975d7>_0x393004||!_0x4975d7)?(_0x496640(),_0x4333c5['push'](_0x1c553d)):_0x1c553d instanceof TextLeaf&&_0x4975d7&&(_0x5ce43c=_0x5ec141[_0x5ec141['length']-0x1])instanceof TextLeaf&&_0x1c553d['lines']+_0x5ce43c['lines']<=0x20?(_0x4975d7+=_0x1c553d['lines'],_0x1bf6eb+=_0x1c553d['length']+0x1,_0x5ec141[_0x5ec141['length']-0x1]=new TextLeaf(_0x5ce43c['text']['concat'](_0x1c553d['text']),_0x5ce43c['length']+0x1+_0x1c553d['length'])):(_0x4975d7+_0x1c553d['lines']>_0x5da0c7&&_0x496640(),_0x4975d7+=_0x1c553d['lines'],_0x1bf6eb+=_0x1c553d['length']+0x1,_0x5ec141['push'](_0x1c553d));}function _0x496640(){0x0!=_0x4975d7&&(_0x4333c5['push'](0x1==_0x5ec141['length']?_0x5ec141[0x0]:TextNode['from'](_0x5ec141,_0x1bf6eb)),_0x1bf6eb=-0x1,_0x4975d7=_0x5ec141['length']=0x0);}for(let _0x6cbfb6 of _0x4fe68a)_0x2ade1f(_0x6cbfb6);return _0x496640(),0x1==_0x4333c5['length']?_0x4333c5[0x0]:new TextNode(_0x4333c5,_0x1b76c1);}}function textLength(_0x150f88){let _0x554570=-0x1;for(let _0x24a675 of _0x150f88)_0x554570+=_0x24a675['length']+0x1;return _0x554570;}function appendText(_0x1e6a7d,_0x400764,_0x121a5a=0x0,_0x4d12ba=0x3b9aca00){for(let _0x463d8a=0x0,_0x16a6e6=0x0,_0x198f5a=!0x0;_0x16a6e6<_0x1e6a7d['length']&&_0x463d8a<=_0x4d12ba;_0x16a6e6++){let _0x5635f8=_0x1e6a7d[_0x16a6e6],_0x1fe60f=_0x463d8a+_0x5635f8['length'];_0x1fe60f>=_0x121a5a&&(_0x1fe60f>_0x4d12ba&&(_0x5635f8=_0x5635f8['slice'](0x0,_0x4d12ba-_0x463d8a)),_0x463d8a<_0x121a5a&&(_0x5635f8=_0x5635f8['slice'](_0x121a5a-_0x463d8a)),_0x198f5a?(_0x400764[_0x400764['length']-0x1]+=_0x5635f8,_0x198f5a=!0x1):_0x400764['push'](_0x5635f8)),_0x463d8a=_0x1fe60f+0x1;}return _0x400764;}function sliceText(_0x1c8b05,_0x51165d,_0x20c2ec){return appendText(_0x1c8b05,[''],_0x51165d,_0x20c2ec);}Text$1['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x1392a0,_0x339a1d=0x1){this['dir']=_0x339a1d,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x1392a0],this['offsets']=[_0x339a1d>0x0?0x1:(_0x1392a0 instanceof TextLeaf?_0x1392a0['text']['length']:_0x1392a0['children']['length'])<<0x1];}['nextInner'](_0x3643e5,_0x3b1a6c){for(this['done']=this['lineBreak']=!0x1;;){let _0x4e1bea=this['nodes']['length']-0x1,_0x36570c=this['nodes'][_0x4e1bea],_0x47d20a=this['offsets'][_0x4e1bea],_0x2687b7=_0x47d20a>>0x1,_0x23aaf2=_0x36570c instanceof TextLeaf?_0x36570c['text']['length']:_0x36570c['children']['length'];if(_0x2687b7==(_0x3b1a6c>0x0?_0x23aaf2:0x0)){if(0x0==_0x4e1bea)return this['done']=!0x0,this['value']='',this;_0x3b1a6c>0x0&&this['offsets'][_0x4e1bea-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x47d20a)==(_0x3b1a6c>0x0?0x0:0x1)){if(this['offsets'][_0x4e1bea]+=_0x3b1a6c,0x0==_0x3643e5)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x3643e5--;}else{if(_0x36570c instanceof TextLeaf){let _0x359690=_0x36570c['text'][_0x2687b7+(_0x3b1a6c<0x0?-0x1:0x0)];if(this['offsets'][_0x4e1bea]+=_0x3b1a6c,_0x359690['length']>Math['max'](0x0,_0x3643e5))return this['value']=0x0==_0x3643e5?_0x359690:_0x3b1a6c>0x0?_0x359690['slice'](_0x3643e5):_0x359690['slice'](0x0,_0x359690['length']-_0x3643e5),this;_0x3643e5-=_0x359690['length'];}else{let _0x3ea316=_0x36570c['children'][_0x2687b7+(_0x3b1a6c<0x0?-0x1:0x0)];_0x3643e5>_0x3ea316['length']?(_0x3643e5-=_0x3ea316['length'],this['offsets'][_0x4e1bea]+=_0x3b1a6c):(_0x3b1a6c<0x0&&this['offsets'][_0x4e1bea]--,this['nodes']['push'](_0x3ea316),this['offsets']['push'](_0x3b1a6c>0x0?0x1:(_0x3ea316 instanceof TextLeaf?_0x3ea316['text']['length']:_0x3ea316['children']['length'])<<0x1));}}}}}['next'](_0x44f751=0x0){return _0x44f751<0x0&&(this['nextInner'](-_0x44f751,-this['dir']),_0x44f751=this['value']['length']),this['nextInner'](_0x44f751,this['dir']);}}class PartialTextCursor{constructor(_0x322c01,_0x1cd995,_0x3ad43e){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0x322c01,_0x1cd995>_0x3ad43e?-0x1:0x1),this['pos']=_0x1cd995>_0x3ad43e?_0x322c01['length']:0x0,this['from']=Math['min'](_0x1cd995,_0x3ad43e),this['to']=Math['max'](_0x1cd995,_0x3ad43e);}['nextInner'](_0x400d68,_0xf58b80){if(_0xf58b80<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x400d68+=Math['max'](0x0,_0xf58b80<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0xe666b6=_0xf58b80<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x400d68>_0xe666b6&&(_0x400d68=_0xe666b6),_0xe666b6-=_0x400d68;let {value:_0x3b2c9b}=this['cursor']['next'](_0x400d68);return this['pos']+=(_0x3b2c9b['length']+_0x400d68)*_0xf58b80,this['value']=_0x3b2c9b['length']<=_0xe666b6?_0x3b2c9b:_0xf58b80<0x0?_0x3b2c9b['slice'](_0x3b2c9b['length']-_0xe666b6):_0x3b2c9b['slice'](0x0,_0xe666b6),this['done']=!this['value'],this;}['next'](_0x13b94e=0x0){return _0x13b94e<0x0?_0x13b94e=Math['max'](_0x13b94e,this['from']-this['pos']):_0x13b94e>0x0&&(_0x13b94e=Math['min'](_0x13b94e,this['to']-this['pos'])),this['nextInner'](_0x13b94e,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x26af09){this['inner']=_0x26af09,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x75e616=0x0){let {done:_0x4af4a5,lineBreak:_0x2e04f9,value:_0x4bab99}=this['inner']['next'](_0x75e616);return _0x4af4a5&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x4af4a5?(this['done']=!0x0,this['value']=''):_0x2e04f9?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x4bab99,this['afterBreak']=!0x1),this;}get['lineBreak'](){return!0x1;}}'undefined'!=typeof Symbol&&(Text$1['prototype'][Symbol['iterator']]=function(){return this['iter']();},RawTextCursor['prototype'][Symbol['iterator']]=PartialTextCursor['prototype'][Symbol['iterator']]=LineCursor['prototype'][Symbol['iterator']]=function(){return this;});let Line$1=class{constructor(_0xecff38,_0xbf3515,_0x76dab4,_0x1b704f){this['from']=_0xecff38,this['to']=_0xbf3515,this['number']=_0x76dab4,this['text']=_0x1b704f;}get['length'](){return this['to']-this['from'];}};function clip(_0x21ec01,_0x3535a6,_0x560f93){return[_0x3535a6=Math['max'](0x0,Math['min'](_0x21ec01['length'],_0x3535a6)),Math['max'](_0x3535a6,Math['min'](_0x21ec01['length'],_0x560f93))];}function findClusterBreak(_0x10d11e,_0x34ef00,_0x5234c6=!0x0,_0x2dc6bf=!0x0){return findClusterBreak$1(_0x10d11e,_0x34ef00,_0x5234c6,_0x2dc6bf);}function surrogateLow(_0x458cf2){return _0x458cf2>=0xdc00&&_0x458cf2<0xe000;}function surrogateHigh(_0x1d1fe0){return _0x1d1fe0>=0xd800&&_0x1d1fe0<0xdc00;}function codePointAt(_0xdd54e7,_0x4a8fe1){let _0x2e0c4f=_0xdd54e7['charCodeAt'](_0x4a8fe1);if(!surrogateHigh(_0x2e0c4f)||_0x4a8fe1+0x1==_0xdd54e7['length'])return _0x2e0c4f;let _0x213146=_0xdd54e7['charCodeAt'](_0x4a8fe1+0x1);return surrogateLow(_0x213146)?_0x213146-0xdc00+(_0x2e0c4f-0xd800<<0xa)+0x10000:_0x2e0c4f;}function fromCodePoint(_0x1d11f1){return _0x1d11f1<=0xffff?String['fromCharCode'](_0x1d11f1):(_0x1d11f1-=0x10000,String['fromCharCode'](0xd800+(_0x1d11f1>>0xa),0xdc00+(0x3ff&_0x1d11f1)));}function codePointSize(_0x5ed562){return _0x5ed562<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x4dd582){return _0x4dd582[_0x4dd582['Simple']=0x0]='Simple',_0x4dd582[_0x4dd582['TrackDel']=0x1]='TrackDel',_0x4dd582[_0x4dd582['TrackBefore']=0x2]='TrackBefore',_0x4dd582[_0x4dd582['TrackAfter']=0x3]='TrackAfter',_0x4dd582;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x48f729){this['sections']=_0x48f729;}get['length'](){let _0x1e4b82=0x0;for(let _0x31f55c=0x0;_0x31f55c<this['sections']['length'];_0x31f55c+=0x2)_0x1e4b82+=this['sections'][_0x31f55c];return _0x1e4b82;}get['newLength'](){let _0x2eb066=0x0;for(let _0x1cb4bc=0x0;_0x1cb4bc<this['sections']['length'];_0x1cb4bc+=0x2){let _0x291963=this['sections'][_0x1cb4bc+0x1];_0x2eb066+=_0x291963<0x0?this['sections'][_0x1cb4bc]:_0x291963;}return _0x2eb066;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x1cc63e){for(let _0x15aa99=0x0,_0x3dbbb8=0x0,_0x38e767=0x0;_0x15aa99<this['sections']['length'];){let _0x283fe9=this['sections'][_0x15aa99++],_0x2ff29a=this['sections'][_0x15aa99++];_0x2ff29a<0x0?(_0x1cc63e(_0x3dbbb8,_0x38e767,_0x283fe9),_0x38e767+=_0x283fe9):_0x38e767+=_0x2ff29a,_0x3dbbb8+=_0x283fe9;}}['iterChangedRanges'](_0x3f01d4,_0x26e2cf=!0x1){iterChanges(this,_0x3f01d4,_0x26e2cf);}get['invertedDesc'](){let _0x303acf=[];for(let _0x57393a=0x0;_0x57393a<this['sections']['length'];){let _0x50e441=this['sections'][_0x57393a++],_0x22b99e=this['sections'][_0x57393a++];_0x22b99e<0x0?_0x303acf['push'](_0x50e441,_0x22b99e):_0x303acf['push'](_0x22b99e,_0x50e441);}return new ChangeDesc(_0x303acf);}['composeDesc'](_0x328b09){return this['empty']?_0x328b09:_0x328b09['empty']?this:composeSets(this,_0x328b09);}['mapDesc'](_0x566dfd,_0xaf533b=!0x1){return _0x566dfd['empty']?this:mapSet(this,_0x566dfd,_0xaf533b);}['mapPos'](_0x2fc9f8,_0x287422=-0x1,_0x5bed3d=MapMode['Simple']){let _0x53ff92=0x0,_0x4a1673=0x0;for(let _0x3ccfde=0x0;_0x3ccfde<this['sections']['length'];){let _0x2c41a4=this['sections'][_0x3ccfde++],_0x186796=this['sections'][_0x3ccfde++],_0xda88b6=_0x53ff92+_0x2c41a4;if(_0x186796<0x0){if(_0xda88b6>_0x2fc9f8)return _0x4a1673+(_0x2fc9f8-_0x53ff92);_0x4a1673+=_0x2c41a4;}else{if(_0x5bed3d!=MapMode['Simple']&&_0xda88b6>=_0x2fc9f8&&(_0x5bed3d==MapMode['TrackDel']&&_0x53ff92<_0x2fc9f8&&_0xda88b6>_0x2fc9f8||_0x5bed3d==MapMode['TrackBefore']&&_0x53ff92<_0x2fc9f8||_0x5bed3d==MapMode['TrackAfter']&&_0xda88b6>_0x2fc9f8))return null;if(_0xda88b6>_0x2fc9f8||_0xda88b6==_0x2fc9f8&&_0x287422<0x0&&!_0x2c41a4)return _0x2fc9f8==_0x53ff92||_0x287422<0x0?_0x4a1673:_0x4a1673+_0x186796;_0x4a1673+=_0x186796;}_0x53ff92=_0xda88b6;}if(_0x2fc9f8>_0x53ff92)throw new RangeError('Position\x20'+_0x2fc9f8+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x53ff92);return _0x4a1673;}['touchesRange'](_0x2148c7,_0x2636d3=_0x2148c7){for(let _0x41b8ac=0x0,_0x567890=0x0;_0x41b8ac<this['sections']['length']&&_0x567890<=_0x2636d3;){let _0x4ab16d=_0x567890+this['sections'][_0x41b8ac++];if(this['sections'][_0x41b8ac++]>=0x0&&_0x567890<=_0x2636d3&&_0x4ab16d>=_0x2148c7)return!(_0x567890<_0x2148c7&&_0x4ab16d>_0x2636d3)||'cover';_0x567890=_0x4ab16d;}return!0x1;}['toString'](){let _0x35eb9f='';for(let _0x279ff0=0x0;_0x279ff0<this['sections']['length'];){let _0x9be8be=this['sections'][_0x279ff0++],_0x54ddb8=this['sections'][_0x279ff0++];_0x35eb9f+=(_0x35eb9f?'\x20':'')+_0x9be8be+(_0x54ddb8>=0x0?':'+_0x54ddb8:'');}return _0x35eb9f;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x301290){if(!Array['isArray'](_0x301290)||_0x301290['length']%0x2||_0x301290['some'](_0x6bb62=>'number'!=typeof _0x6bb62))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x301290);}static['create'](_0x2dee1e){return new ChangeDesc(_0x2dee1e);}}class ChangeSet extends ChangeDesc{constructor(_0x320720,_0x8c7424){super(_0x320720),this['inserted']=_0x8c7424;}['apply'](_0xedbab2){if(this['length']!=_0xedbab2['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x3b36a6,_0x365361,_0x46468c,_0x105d2b,_0x61355d)=>_0xedbab2=_0xedbab2['replace'](_0x46468c,_0x46468c+(_0x365361-_0x3b36a6),_0x61355d),!0x1),_0xedbab2;}['mapDesc'](_0x274395,_0x39e6a0=!0x1){return mapSet(this,_0x274395,_0x39e6a0,!0x0);}['invert'](_0x863ef0){let _0x1b11bc=this['sections']['slice'](),_0x51c5ef=[];for(let _0x5d7496=0x0,_0x145922=0x0;_0x5d7496<_0x1b11bc['length'];_0x5d7496+=0x2){let _0x2f4dcb=_0x1b11bc[_0x5d7496],_0x457384=_0x1b11bc[_0x5d7496+0x1];if(_0x457384>=0x0){_0x1b11bc[_0x5d7496]=_0x457384,_0x1b11bc[_0x5d7496+0x1]=_0x2f4dcb;let _0x38239f=_0x5d7496>>0x1;for(;_0x51c5ef['length']<_0x38239f;)_0x51c5ef['push'](Text$1['empty']);_0x51c5ef['push'](_0x2f4dcb?_0x863ef0['slice'](_0x145922,_0x145922+_0x2f4dcb):Text$1['empty']);}_0x145922+=_0x2f4dcb;}return new ChangeSet(_0x1b11bc,_0x51c5ef);}['compose'](_0xa017f9){return this['empty']?_0xa017f9:_0xa017f9['empty']?this:composeSets(this,_0xa017f9,!0x0);}['map'](_0x37d42b,_0x5bf84d=!0x1){return _0x37d42b['empty']?this:mapSet(this,_0x37d42b,_0x5bf84d,!0x0);}['iterChanges'](_0x3c126c,_0x53325b=!0x1){iterChanges(this,_0x3c126c,_0x53325b);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x26ee4e){let _0x2980a0=[],_0x5f4961=[],_0x3722ee=[],_0x1adc61=new SectionIter(this);t:for(let _0x2c14e7=0x0,_0x1dab46=0x0;;){let _0x2a8295=_0x2c14e7==_0x26ee4e['length']?0x3b9aca00:_0x26ee4e[_0x2c14e7++];for(;_0x1dab46<_0x2a8295||_0x1dab46==_0x2a8295&&0x0==_0x1adc61['len'];){if(_0x1adc61['done'])break t;let _0x24dec2=Math['min'](_0x1adc61['len'],_0x2a8295-_0x1dab46);addSection(_0x3722ee,_0x24dec2,-0x1);let _0x114195=-0x1==_0x1adc61['ins']?-0x1:0x0==_0x1adc61['off']?_0x1adc61['ins']:0x0;addSection(_0x2980a0,_0x24dec2,_0x114195),_0x114195>0x0&&addInsert(_0x5f4961,_0x2980a0,_0x1adc61['text']),_0x1adc61['forward'](_0x24dec2),_0x1dab46+=_0x24dec2;}let _0x519af4=_0x26ee4e[_0x2c14e7++];for(;_0x1dab46<_0x519af4;){if(_0x1adc61['done'])break t;let _0x1d056e=Math['min'](_0x1adc61['len'],_0x519af4-_0x1dab46);addSection(_0x2980a0,_0x1d056e,-0x1),addSection(_0x3722ee,_0x1d056e,-0x1==_0x1adc61['ins']?-0x1:0x0==_0x1adc61['off']?_0x1adc61['ins']:0x0),_0x1adc61['forward'](_0x1d056e),_0x1dab46+=_0x1d056e;}}return{'changes':new ChangeSet(_0x2980a0,_0x5f4961),'filtered':ChangeDesc['create'](_0x3722ee)};}['toJSON'](){let _0x9c05e0=[];for(let _0x39b9ff=0x0;_0x39b9ff<this['sections']['length'];_0x39b9ff+=0x2){let _0x3f290e=this['sections'][_0x39b9ff],_0x2b3daa=this['sections'][_0x39b9ff+0x1];_0x2b3daa<0x0?_0x9c05e0['push'](_0x3f290e):0x0==_0x2b3daa?_0x9c05e0['push']([_0x3f290e]):_0x9c05e0['push']([_0x3f290e]['concat'](this['inserted'][_0x39b9ff>>0x1]['toJSON']()));}return _0x9c05e0;}static['of'](_0x4650df,_0x59e91b,_0x35b2c5){let _0x118095=[],_0x57f1a2=[],_0xacd186=0x0,_0x244aae=null;function _0x344ef8(_0x597647=!0x1){if(!_0x597647&&!_0x118095['length'])return;_0xacd186<_0x59e91b&&addSection(_0x118095,_0x59e91b-_0xacd186,-0x1);let _0x54d5ab=new ChangeSet(_0x118095,_0x57f1a2);_0x244aae=_0x244aae?_0x244aae['compose'](_0x54d5ab['map'](_0x244aae)):_0x54d5ab,_0x118095=[],_0x57f1a2=[],_0xacd186=0x0;}return function _0x35def6(_0x1c7b7e){if(Array['isArray'](_0x1c7b7e)){for(let _0x87d567 of _0x1c7b7e)_0x35def6(_0x87d567);}else{if(_0x1c7b7e instanceof ChangeSet){if(_0x1c7b7e['length']!=_0x59e91b)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x1c7b7e['length']+',\x20expected\x20'+_0x59e91b+')');_0x344ef8(),_0x244aae=_0x244aae?_0x244aae['compose'](_0x1c7b7e['map'](_0x244aae)):_0x1c7b7e;}else{let {from:_0x5c2acd,to:_0x17f6e7=_0x5c2acd,insert:_0x57fa07}=_0x1c7b7e;if(_0x5c2acd>_0x17f6e7||_0x5c2acd<0x0||_0x17f6e7>_0x59e91b)throw new RangeError('Invalid\x20change\x20range\x20'+_0x5c2acd+'\x20to\x20'+_0x17f6e7+'\x20(in\x20doc\x20of\x20length\x20'+_0x59e91b+')');let _0x3bd1fa=_0x57fa07?'string'==typeof _0x57fa07?Text$1['of'](_0x57fa07['split'](_0x35b2c5||DefaultSplit)):_0x57fa07:Text$1['empty'],_0x4251fe=_0x3bd1fa['length'];if(_0x5c2acd==_0x17f6e7&&0x0==_0x4251fe)return;_0x5c2acd<_0xacd186&&_0x344ef8(),_0x5c2acd>_0xacd186&&addSection(_0x118095,_0x5c2acd-_0xacd186,-0x1),addSection(_0x118095,_0x17f6e7-_0x5c2acd,_0x4251fe),addInsert(_0x57f1a2,_0x118095,_0x3bd1fa),_0xacd186=_0x17f6e7;}}}(_0x4650df),_0x344ef8(!_0x244aae),_0x244aae;}static['empty'](_0xfdb23e){return new ChangeSet(_0xfdb23e?[_0xfdb23e,-0x1]:[],[]);}static['fromJSON'](_0x55fc12){if(!Array['isArray'](_0x55fc12))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x3cffb5=[],_0x466ee1=[];for(let _0x2d0a1f=0x0;_0x2d0a1f<_0x55fc12['length'];_0x2d0a1f++){let _0x271ed8=_0x55fc12[_0x2d0a1f];if('number'==typeof _0x271ed8)_0x3cffb5['push'](_0x271ed8,-0x1);else{if(!Array['isArray'](_0x271ed8)||'number'!=typeof _0x271ed8[0x0]||_0x271ed8['some']((_0x46b6bf,_0x19f63b)=>_0x19f63b&&'string'!=typeof _0x46b6bf))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x271ed8['length'])_0x3cffb5['push'](_0x271ed8[0x0],0x0);else{for(;_0x466ee1['length']<_0x2d0a1f;)_0x466ee1['push'](Text$1['empty']);_0x466ee1[_0x2d0a1f]=Text$1['of'](_0x271ed8['slice'](0x1)),_0x3cffb5['push'](_0x271ed8[0x0],_0x466ee1[_0x2d0a1f]['length']);}}}return new ChangeSet(_0x3cffb5,_0x466ee1);}static['createSet'](_0x3b595b,_0x3c13f7){return new ChangeSet(_0x3b595b,_0x3c13f7);}}function addSection(_0x59c5a6,_0x3af17,_0x525644,_0x43ae4b=!0x1){if(0x0==_0x3af17&&_0x525644<=0x0)return;let _0x14efc8=_0x59c5a6['length']-0x2;_0x14efc8>=0x0&&_0x525644<=0x0&&_0x525644==_0x59c5a6[_0x14efc8+0x1]?_0x59c5a6[_0x14efc8]+=_0x3af17:_0x14efc8>=0x0&&0x0==_0x3af17&&0x0==_0x59c5a6[_0x14efc8]?_0x59c5a6[_0x14efc8+0x1]+=_0x525644:_0x43ae4b?(_0x59c5a6[_0x14efc8]+=_0x3af17,_0x59c5a6[_0x14efc8+0x1]+=_0x525644):_0x59c5a6['push'](_0x3af17,_0x525644);}function addInsert(_0x43be0f,_0x40aa41,_0x5ed062){if(0x0==_0x5ed062['length'])return;let _0x5dc104=_0x40aa41['length']-0x2>>0x1;if(_0x5dc104<_0x43be0f['length'])_0x43be0f[_0x43be0f['length']-0x1]=_0x43be0f[_0x43be0f['length']-0x1]['append'](_0x5ed062);else{for(;_0x43be0f['length']<_0x5dc104;)_0x43be0f['push'](Text$1['empty']);_0x43be0f['push'](_0x5ed062);}}function iterChanges(_0x5addcc,_0x3b2151,_0x2dc7dc){let _0x437e95=_0x5addcc['inserted'];for(let _0x49cc39=0x0,_0x27f1b4=0x0,_0x39c4d8=0x0;_0x39c4d8<_0x5addcc['sections']['length'];){let _0x1e69a6=_0x5addcc['sections'][_0x39c4d8++],_0x313eb9=_0x5addcc['sections'][_0x39c4d8++];if(_0x313eb9<0x0)_0x49cc39+=_0x1e69a6,_0x27f1b4+=_0x1e69a6;else{let _0x3a9007=_0x49cc39,_0x10c019=_0x27f1b4,_0x5a1878=Text$1['empty'];for(;_0x3a9007+=_0x1e69a6,_0x10c019+=_0x313eb9,_0x313eb9&&_0x437e95&&(_0x5a1878=_0x5a1878['append'](_0x437e95[_0x39c4d8-0x2>>0x1])),!(_0x2dc7dc||_0x39c4d8==_0x5addcc['sections']['length']||_0x5addcc['sections'][_0x39c4d8+0x1]<0x0);)_0x1e69a6=_0x5addcc['sections'][_0x39c4d8++],_0x313eb9=_0x5addcc['sections'][_0x39c4d8++];_0x3b2151(_0x49cc39,_0x3a9007,_0x27f1b4,_0x10c019,_0x5a1878),_0x49cc39=_0x3a9007,_0x27f1b4=_0x10c019;}}}function mapSet(_0x6b1d8e,_0x2757ac,_0xd15ed4,_0x5d6521=!0x1){let _0xfd9c5=[],_0x47b513=_0x5d6521?[]:null,_0x7cd983=new SectionIter(_0x6b1d8e),_0x2939d7=new SectionIter(_0x2757ac);for(let _0x12d7be=-0x1;;){if(_0x7cd983['done']&&_0x2939d7['len']||_0x2939d7['done']&&_0x7cd983['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x7cd983['ins']&&-0x1==_0x2939d7['ins']){let _0x547096=Math['min'](_0x7cd983['len'],_0x2939d7['len']);addSection(_0xfd9c5,_0x547096,-0x1),_0x7cd983['forward'](_0x547096),_0x2939d7['forward'](_0x547096);}else{if(_0x2939d7['ins']>=0x0&&(_0x7cd983['ins']<0x0||_0x12d7be==_0x7cd983['i']||0x0==_0x7cd983['off']&&(_0x2939d7['len']<_0x7cd983['len']||_0x2939d7['len']==_0x7cd983['len']&&!_0xd15ed4))){let _0x57827a=_0x2939d7['len'];for(addSection(_0xfd9c5,_0x2939d7['ins'],-0x1);_0x57827a;){let _0x2f1f43=Math['min'](_0x7cd983['len'],_0x57827a);_0x7cd983['ins']>=0x0&&_0x12d7be<_0x7cd983['i']&&_0x7cd983['len']<=_0x2f1f43&&(addSection(_0xfd9c5,0x0,_0x7cd983['ins']),_0x47b513&&addInsert(_0x47b513,_0xfd9c5,_0x7cd983['text']),_0x12d7be=_0x7cd983['i']),_0x7cd983['forward'](_0x2f1f43),_0x57827a-=_0x2f1f43;}_0x2939d7['next']();}else{if(!(_0x7cd983['ins']>=0x0)){if(_0x7cd983['done']&&_0x2939d7['done'])return _0x47b513?ChangeSet['createSet'](_0xfd9c5,_0x47b513):ChangeDesc['create'](_0xfd9c5);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x419ec7=0x0,_0x31382c=_0x7cd983['len'];for(;_0x31382c;)if(-0x1==_0x2939d7['ins']){let _0x26e97f=Math['min'](_0x31382c,_0x2939d7['len']);_0x419ec7+=_0x26e97f,_0x31382c-=_0x26e97f,_0x2939d7['forward'](_0x26e97f);}else{if(!(0x0==_0x2939d7['ins']&&_0x2939d7['len']<_0x31382c))break;_0x31382c-=_0x2939d7['len'],_0x2939d7['next']();}addSection(_0xfd9c5,_0x419ec7,_0x12d7be<_0x7cd983['i']?_0x7cd983['ins']:0x0),_0x47b513&&_0x12d7be<_0x7cd983['i']&&addInsert(_0x47b513,_0xfd9c5,_0x7cd983['text']),_0x12d7be=_0x7cd983['i'],_0x7cd983['forward'](_0x7cd983['len']-_0x31382c);}}}}}function composeSets(_0x215930,_0x5a251e,_0x2c7257=!0x1){let _0x2291ed=[],_0x297117=_0x2c7257?[]:null,_0x35170d=new SectionIter(_0x215930),_0x19480b=new SectionIter(_0x5a251e);for(let _0x153fbb=!0x1;;){if(_0x35170d['done']&&_0x19480b['done'])return _0x297117?ChangeSet['createSet'](_0x2291ed,_0x297117):ChangeDesc['create'](_0x2291ed);if(0x0==_0x35170d['ins'])addSection(_0x2291ed,_0x35170d['len'],0x0,_0x153fbb),_0x35170d['next']();else{if(0x0!=_0x19480b['len']||_0x19480b['done']){if(_0x35170d['done']||_0x19480b['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x341cf0=Math['min'](_0x35170d['len2'],_0x19480b['len']),_0x2bd459=_0x2291ed['length'];if(-0x1==_0x35170d['ins']){let _0xb16fd8=-0x1==_0x19480b['ins']?-0x1:_0x19480b['off']?0x0:_0x19480b['ins'];addSection(_0x2291ed,_0x341cf0,_0xb16fd8,_0x153fbb),_0x297117&&_0xb16fd8&&addInsert(_0x297117,_0x2291ed,_0x19480b['text']);}else-0x1==_0x19480b['ins']?(addSection(_0x2291ed,_0x35170d['off']?0x0:_0x35170d['len'],_0x341cf0,_0x153fbb),_0x297117&&addInsert(_0x297117,_0x2291ed,_0x35170d['textBit'](_0x341cf0))):(addSection(_0x2291ed,_0x35170d['off']?0x0:_0x35170d['len'],_0x19480b['off']?0x0:_0x19480b['ins'],_0x153fbb),_0x297117&&!_0x19480b['off']&&addInsert(_0x297117,_0x2291ed,_0x19480b['text']));_0x153fbb=(_0x35170d['ins']>_0x341cf0||_0x19480b['ins']>=0x0&&_0x19480b['len']>_0x341cf0)&&(_0x153fbb||_0x2291ed['length']>_0x2bd459),_0x35170d['forward2'](_0x341cf0),_0x19480b['forward'](_0x341cf0);}}else addSection(_0x2291ed,0x0,_0x19480b['ins'],_0x153fbb),_0x297117&&addInsert(_0x297117,_0x2291ed,_0x19480b['text']),_0x19480b['next']();}}}class SectionIter{constructor(_0x4a9df7){this['set']=_0x4a9df7,this['i']=0x0,this['next']();}['next'](){let {sections:_0x45c4d6}=this['set'];this['i']<_0x45c4d6['length']?(this['len']=_0x45c4d6[this['i']++],this['ins']=_0x45c4d6[this['i']++]):(this['len']=0x0,this['ins']=-0x2),this['off']=0x0;}get['done'](){return-0x2==this['ins'];}get['len2'](){return this['ins']<0x0?this['len']:this['ins'];}get['text'](){let {inserted:_0x2cb103}=this['set'],_0x1d3c3b=this['i']-0x2>>0x1;return _0x1d3c3b>=_0x2cb103['length']?Text$1['empty']:_0x2cb103[_0x1d3c3b];}['textBit'](_0xbf8b87){let {inserted:_0x5bb0c7}=this['set'],_0x1f628d=this['i']-0x2>>0x1;return _0x1f628d>=_0x5bb0c7['length']&&!_0xbf8b87?Text$1['empty']:_0x5bb0c7[_0x1f628d]['slice'](this['off'],null==_0xbf8b87?void 0x0:this['off']+_0xbf8b87);}['forward'](_0x5cb187){_0x5cb187==this['len']?this['next']():(this['len']-=_0x5cb187,this['off']+=_0x5cb187);}['forward2'](_0x363f7c){-0x1==this['ins']?this['forward'](_0x363f7c):_0x363f7c==this['ins']?this['next']():(this['ins']-=_0x363f7c,this['off']+=_0x363f7c);}}class SelectionRange{constructor(_0x27c0f6,_0x5a2352,_0x325436){this['from']=_0x27c0f6,this['to']=_0x5a2352,this['flags']=_0x325436;}get['anchor'](){return 0x20&this['flags']?this['to']:this['from'];}get['head'](){return 0x20&this['flags']?this['from']:this['to'];}get['empty'](){return this['from']==this['to'];}get['assoc'](){return 0x8&this['flags']?-0x1:0x10&this['flags']?0x1:0x0;}get['bidiLevel'](){let _0x587422=0x7&this['flags'];return 0x7==_0x587422?null:_0x587422;}get['goalColumn'](){let _0x49009b=this['flags']>>0x6;return 0xffffff==_0x49009b?void 0x0:_0x49009b;}['map'](_0x2e5cd9,_0x3c315d=-0x1){let _0x2cc885,_0x1495ea;return this['empty']?_0x2cc885=_0x1495ea=_0x2e5cd9['mapPos'](this['from'],_0x3c315d):(_0x2cc885=_0x2e5cd9['mapPos'](this['from'],0x1),_0x1495ea=_0x2e5cd9['mapPos'](this['to'],-0x1)),_0x2cc885==this['from']&&_0x1495ea==this['to']?this:new SelectionRange(_0x2cc885,_0x1495ea,this['flags']);}['extend'](_0x18cc68,_0x4a515d=_0x18cc68){if(_0x18cc68<=this['anchor']&&_0x4a515d>=this['anchor'])return EditorSelection['range'](_0x18cc68,_0x4a515d);let _0x3c25cf=Math['abs'](_0x18cc68-this['anchor'])>Math['abs'](_0x4a515d-this['anchor'])?_0x18cc68:_0x4a515d;return EditorSelection['range'](this['anchor'],_0x3c25cf);}['eq'](_0x1e7e90,_0x27f5a0=!0x1){return!(this['anchor']!=_0x1e7e90['anchor']||this['head']!=_0x1e7e90['head']||_0x27f5a0&&this['empty']&&this['assoc']!=_0x1e7e90['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x48a900){if(!_0x48a900||'number'!=typeof _0x48a900['anchor']||'number'!=typeof _0x48a900['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x48a900['anchor'],_0x48a900['head']);}static['create'](_0x415d35,_0x53ac20,_0x5ec46a){return new SelectionRange(_0x415d35,_0x53ac20,_0x5ec46a);}}class EditorSelection{constructor(_0x567172,_0x34d578){this['ranges']=_0x567172,this['mainIndex']=_0x34d578;}['map'](_0x47e11d,_0x4e6a3b=-0x1){return _0x47e11d['empty']?this:EditorSelection['create'](this['ranges']['map'](_0x3d38d4=>_0x3d38d4['map'](_0x47e11d,_0x4e6a3b)),this['mainIndex']);}['eq'](_0x34a3b8,_0x27dfc1=!0x1){if(this['ranges']['length']!=_0x34a3b8['ranges']['length']||this['mainIndex']!=_0x34a3b8['mainIndex'])return!0x1;for(let _0x56d78c=0x0;_0x56d78c<this['ranges']['length'];_0x56d78c++)if(!this['ranges'][_0x56d78c]['eq'](_0x34a3b8['ranges'][_0x56d78c],_0x27dfc1))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x431c3b,_0x14d624=!0x0){return EditorSelection['create']([_0x431c3b]['concat'](this['ranges']),_0x14d624?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x2ff5a9,_0x597e1b=this['mainIndex']){let _0x239c64=this['ranges']['slice']();return _0x239c64[_0x597e1b]=_0x2ff5a9,EditorSelection['create'](_0x239c64,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0x2e85b7=>_0x2e85b7['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x27c415){if(!_0x27c415||!Array['isArray'](_0x27c415['ranges'])||'number'!=typeof _0x27c415['main']||_0x27c415['main']>=_0x27c415['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x27c415['ranges']['map'](_0x58ed33=>SelectionRange['fromJSON'](_0x58ed33)),_0x27c415['main']);}static['single'](_0x3042b9,_0x1cf559=_0x3042b9){return new EditorSelection([EditorSelection['range'](_0x3042b9,_0x1cf559)],0x0);}static['create'](_0x3dc84c,_0x5b288b=0x0){if(0x0==_0x3dc84c['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x4e655b=0x0,_0xff2ddc=0x0;_0xff2ddc<_0x3dc84c['length'];_0xff2ddc++){let _0x29dd7d=_0x3dc84c[_0xff2ddc];if(_0x29dd7d['empty']?_0x29dd7d['from']<=_0x4e655b:_0x29dd7d['from']<_0x4e655b)return EditorSelection['normalized'](_0x3dc84c['slice'](),_0x5b288b);_0x4e655b=_0x29dd7d['to'];}return new EditorSelection(_0x3dc84c,_0x5b288b);}static['cursor'](_0x1a0e07,_0x4675fb=0x0,_0x3e0278,_0x7bedac){return SelectionRange['create'](_0x1a0e07,_0x1a0e07,(0x0==_0x4675fb?0x0:_0x4675fb<0x0?0x8:0x10)|(null==_0x3e0278?0x7:Math['min'](0x6,_0x3e0278))|(null!=_0x7bedac?_0x7bedac:0xffffff)<<0x6);}static['range'](_0x3f946b,_0x3d3fc9,_0x915c76,_0x325003){let _0x401791=(null!=_0x915c76?_0x915c76:0xffffff)<<0x6|(null==_0x325003?0x7:Math['min'](0x6,_0x325003));return _0x3d3fc9<_0x3f946b?SelectionRange['create'](_0x3d3fc9,_0x3f946b,0x30|_0x401791):SelectionRange['create'](_0x3f946b,_0x3d3fc9,(_0x3d3fc9>_0x3f946b?0x8:0x0)|_0x401791);}static['normalized'](_0x5ba69b,_0x121741=0x0){let _0xd7ab81=_0x5ba69b[_0x121741];_0x5ba69b['sort']((_0x9218a8,_0x2d5ace)=>_0x9218a8['from']-_0x2d5ace['from']),_0x121741=_0x5ba69b['indexOf'](_0xd7ab81);for(let _0x2006f0=0x1;_0x2006f0<_0x5ba69b['length'];_0x2006f0++){let _0x5b4e21=_0x5ba69b[_0x2006f0],_0x500901=_0x5ba69b[_0x2006f0-0x1];if(_0x5b4e21['empty']?_0x5b4e21['from']<=_0x500901['to']:_0x5b4e21['from']<_0x500901['to']){let _0x3b78f6=_0x500901['from'],_0xe012fc=Math['max'](_0x5b4e21['to'],_0x500901['to']);_0x2006f0<=_0x121741&&_0x121741--,_0x5ba69b['splice'](--_0x2006f0,0x2,_0x5b4e21['anchor']>_0x5b4e21['head']?EditorSelection['range'](_0xe012fc,_0x3b78f6):EditorSelection['range'](_0x3b78f6,_0xe012fc));}}return new EditorSelection(_0x5ba69b,_0x121741);}}function checkSelection(_0x1d6ba3,_0x58fa01){for(let _0x3508af of _0x1d6ba3['ranges'])if(_0x3508af['to']>_0x58fa01)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x1383d0,_0x2734cb,_0x356643,_0x21c83f,_0x29402e){this['combine']=_0x1383d0,this['compareInput']=_0x2734cb,this['compare']=_0x356643,this['isStatic']=_0x21c83f,this['id']=nextID++,this['default']=_0x1383d0([]),this['extensions']='function'==typeof _0x29402e?_0x29402e(this):_0x29402e;}get['reader'](){return this;}static['define'](_0x34616f={}){return new Facet(_0x34616f['combine']||(_0x44061b=>_0x44061b),_0x34616f['compareInput']||((_0x2d67e4,_0x3df08d)=>_0x2d67e4===_0x3df08d),_0x34616f['compare']||(_0x34616f['combine']?(_0x441b91,_0x3a8e7b)=>_0x441b91===_0x3a8e7b:sameArray$1),!!_0x34616f['static'],_0x34616f['enables']);}['of'](_0x4434f){return new FacetProvider([],this,0x0,_0x4434f);}['compute'](_0x25003c,_0x3c61d1){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x25003c,this,0x1,_0x3c61d1);}['computeN'](_0x4f68fe,_0x27cc45){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x4f68fe,this,0x2,_0x27cc45);}['from'](_0x45fb1d,_0x40b8d6){return _0x40b8d6||(_0x40b8d6=_0x12fe34=>_0x12fe34),this['compute']([_0x45fb1d],_0x5045e5=>_0x40b8d6(_0x5045e5['field'](_0x45fb1d)));}}function sameArray$1(_0x550c8c,_0x2757eb){return _0x550c8c==_0x2757eb||_0x550c8c['length']==_0x2757eb['length']&&_0x550c8c['every']((_0x1f30d3,_0x3cc695)=>_0x1f30d3===_0x2757eb[_0x3cc695]);}class FacetProvider{constructor(_0x170f36,_0x1d556a,_0x2a60ce,_0x16f118){this['dependencies']=_0x170f36,this['facet']=_0x1d556a,this['type']=_0x2a60ce,this['value']=_0x16f118,this['id']=nextID++;}['dynamicSlot'](_0x3502c7){var _0x49a5ec;let _0x1c8176=this['value'],_0x454ec0=this['facet']['compareInput'],_0x48873d=this['id'],_0x1da4b1=_0x3502c7[_0x48873d]>>0x1,_0x2d7eed=0x2==this['type'],_0x5899a3=!0x1,_0x18a8db=!0x1,_0xc0b7ca=[];for(let _0x2e9954 of this['dependencies'])'doc'==_0x2e9954?_0x5899a3=!0x0:'selection'==_0x2e9954?_0x18a8db=!0x0:0x1&(null!==(_0x49a5ec=_0x3502c7[_0x2e9954['id']])&&void 0x0!==_0x49a5ec?_0x49a5ec:0x1)||_0xc0b7ca['push'](_0x3502c7[_0x2e9954['id']]);return{'create':_0xf815cd=>(_0xf815cd['values'][_0x1da4b1]=_0x1c8176(_0xf815cd),0x1),'update'(_0x12ad6f,_0x4ee0c0){if(_0x5899a3&&_0x4ee0c0['docChanged']||_0x18a8db&&(_0x4ee0c0['docChanged']||_0x4ee0c0['selection'])||ensureAll(_0x12ad6f,_0xc0b7ca)){let _0x1da42c=_0x1c8176(_0x12ad6f);if(_0x2d7eed?!compareArray(_0x1da42c,_0x12ad6f['values'][_0x1da4b1],_0x454ec0):!_0x454ec0(_0x1da42c,_0x12ad6f['values'][_0x1da4b1]))return _0x12ad6f['values'][_0x1da4b1]=_0x1da42c,0x1;}return 0x0;},'reconfigure':(_0x4e1359,_0x30c47f)=>{let _0x5b0e13,_0x3308c5=_0x30c47f['config']['address'][_0x48873d];if(null!=_0x3308c5){let _0x584c26=getAddr(_0x30c47f,_0x3308c5);if(this['dependencies']['every'](_0x40e6f1=>_0x40e6f1 instanceof Facet?_0x30c47f['facet'](_0x40e6f1)===_0x4e1359['facet'](_0x40e6f1):!(_0x40e6f1 instanceof StateField)||_0x30c47f['field'](_0x40e6f1,!0x1)==_0x4e1359['field'](_0x40e6f1,!0x1))||(_0x2d7eed?compareArray(_0x5b0e13=_0x1c8176(_0x4e1359),_0x584c26,_0x454ec0):_0x454ec0(_0x5b0e13=_0x1c8176(_0x4e1359),_0x584c26)))return _0x4e1359['values'][_0x1da4b1]=_0x584c26,0x0;}else _0x5b0e13=_0x1c8176(_0x4e1359);return _0x4e1359['values'][_0x1da4b1]=_0x5b0e13,0x1;}};}}function compareArray(_0x54345d,_0x272e45,_0x5ec616){if(_0x54345d['length']!=_0x272e45['length'])return!0x1;for(let _0x485880=0x0;_0x485880<_0x54345d['length'];_0x485880++)if(!_0x5ec616(_0x54345d[_0x485880],_0x272e45[_0x485880]))return!0x1;return!0x0;}function ensureAll(_0x2e66e8,_0x1ab7bf){let _0x1fdc7c=!0x1;for(let _0x1ae021 of _0x1ab7bf)0x1&ensureAddr(_0x2e66e8,_0x1ae021)&&(_0x1fdc7c=!0x0);return _0x1fdc7c;}function dynamicFacetSlot(_0x5395c4,_0x4b0a8e,_0x371589){let _0x49e141=_0x371589['map'](_0x227849=>_0x5395c4[_0x227849['id']]),_0x3a26e4=_0x371589['map'](_0xa6dba=>_0xa6dba['type']),_0x519c30=_0x49e141['filter'](_0x503ae6=>!(0x1&_0x503ae6)),_0x2bd4a4=_0x5395c4[_0x4b0a8e['id']]>>0x1;function _0x5ba155(_0x3df842){let _0x20cd61=[];for(let _0x13f89c=0x0;_0x13f89c<_0x49e141['length'];_0x13f89c++){let _0x5ace27=getAddr(_0x3df842,_0x49e141[_0x13f89c]);if(0x2==_0x3a26e4[_0x13f89c]){for(let _0x32b15f of _0x5ace27)_0x20cd61['push'](_0x32b15f);}else _0x20cd61['push'](_0x5ace27);}return _0x4b0a8e['combine'](_0x20cd61);}return{'create'(_0x29f32e){for(let _0x327a69 of _0x49e141)ensureAddr(_0x29f32e,_0x327a69);return _0x29f32e['values'][_0x2bd4a4]=_0x5ba155(_0x29f32e),0x1;},'update'(_0x24339c,_0x4c17ea){if(!ensureAll(_0x24339c,_0x519c30))return 0x0;let _0x522100=_0x5ba155(_0x24339c);return _0x4b0a8e['compare'](_0x522100,_0x24339c['values'][_0x2bd4a4])?0x0:(_0x24339c['values'][_0x2bd4a4]=_0x522100,0x1);},'reconfigure'(_0x43d11d,_0x7b8d68){let _0x383671=ensureAll(_0x43d11d,_0x49e141),_0x525d51=_0x7b8d68['config']['facets'][_0x4b0a8e['id']],_0x54efe1=_0x7b8d68['facet'](_0x4b0a8e);if(_0x525d51&&!_0x383671&&sameArray$1(_0x371589,_0x525d51))return _0x43d11d['values'][_0x2bd4a4]=_0x54efe1,0x0;let _0x5d7965=_0x5ba155(_0x43d11d);return _0x4b0a8e['compare'](_0x5d7965,_0x54efe1)?(_0x43d11d['values'][_0x2bd4a4]=_0x54efe1,0x0):(_0x43d11d['values'][_0x2bd4a4]=_0x5d7965,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x258c4c,_0x1100ba,_0x8a5686,_0x229c77,_0x43e1c7){this['id']=_0x258c4c,this['createF']=_0x1100ba,this['updateF']=_0x8a5686,this['compareF']=_0x229c77,this['spec']=_0x43e1c7,this['provides']=void 0x0;}static['define'](_0x3457ae){let _0x42b608=new StateField(nextID++,_0x3457ae['create'],_0x3457ae['update'],_0x3457ae['compare']||((_0x4955df,_0x52f183)=>_0x4955df===_0x52f183),_0x3457ae);return _0x3457ae['provide']&&(_0x42b608['provides']=_0x3457ae['provide'](_0x42b608)),_0x42b608;}['create'](_0x15af3d){let _0x254b93=_0x15af3d['facet'](initField)['find'](_0x20fa79=>_0x20fa79['field']==this);return((null==_0x254b93?void 0x0:_0x254b93['create'])||this['createF'])(_0x15af3d);}['slot'](_0x74ad3c){let _0x473292=_0x74ad3c[this['id']]>>0x1;return{'create':_0x72b75a=>(_0x72b75a['values'][_0x473292]=this['create'](_0x72b75a),0x1),'update':(_0x228dc5,_0xf7bec1)=>{let _0x143a64=_0x228dc5['values'][_0x473292],_0x20c057=this['updateF'](_0x143a64,_0xf7bec1);return this['compareF'](_0x143a64,_0x20c057)?0x0:(_0x228dc5['values'][_0x473292]=_0x20c057,0x1);},'reconfigure':(_0xa25445,_0x3b4c41)=>{let _0x541017,_0x1e5650=_0xa25445['facet'](initField),_0x576293=_0x3b4c41['facet'](initField);return(_0x541017=_0x1e5650['find'](_0x5865ad=>_0x5865ad['field']==this))&&_0x541017!=_0x576293['find'](_0x12a1ea=>_0x12a1ea['field']==this)?(_0xa25445['values'][_0x473292]=_0x541017['create'](_0xa25445),0x1):null!=_0x3b4c41['config']['address'][this['id']]?(_0xa25445['values'][_0x473292]=_0x3b4c41['field'](this),0x0):(_0xa25445['values'][_0x473292]=this['create'](_0xa25445),0x1);}};}['init'](_0x271b0d){return[this,initField['of']({'field':this,'create':_0x271b0d})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x20a743){return _0x1d3ee3=>new PrecExtension(_0x1d3ee3,_0x20a743);}const Prec={'highest':prec(Prec_['highest']),'high':prec(Prec_['high']),'default':prec(Prec_['default']),'low':prec(Prec_['low']),'lowest':prec(Prec_['lowest'])};class PrecExtension{constructor(_0x31e3ac,_0x1091c4){this['inner']=_0x31e3ac,this['prec']=_0x1091c4;}}class Compartment{['of'](_0x25cf39){return new CompartmentInstance(this,_0x25cf39);}['reconfigure'](_0x389022){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x389022});}['get'](_0x4b933f){return _0x4b933f['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x1322a4,_0x2f78ff){this['compartment']=_0x1322a4,this['inner']=_0x2f78ff;}}class Configuration{constructor(_0x1e83af,_0x279c86,_0x23265a,_0x71ea7a,_0x2f1358,_0x3d1a9a){for(this['base']=_0x1e83af,this['compartments']=_0x279c86,this['dynamicSlots']=_0x23265a,this['address']=_0x71ea7a,this['staticValues']=_0x2f1358,this['facets']=_0x3d1a9a,this['statusTemplate']=[];this['statusTemplate']['length']<_0x23265a['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0x5afb45){let _0xc2a97b=this['address'][_0x5afb45['id']];return null==_0xc2a97b?_0x5afb45['default']:this['staticValues'][_0xc2a97b>>0x1];}static['resolve'](_0x32499b,_0x29e75e,_0x1955fd){let _0x5932f0=[],_0x5468a4=Object['create'](null),_0x397a5c=new Map();for(let _0x3aeaa3 of flatten(_0x32499b,_0x29e75e,_0x397a5c))_0x3aeaa3 instanceof StateField?_0x5932f0['push'](_0x3aeaa3):(_0x5468a4[_0x3aeaa3['facet']['id']]||(_0x5468a4[_0x3aeaa3['facet']['id']]=[]))['push'](_0x3aeaa3);let _0x459c1f=Object['create'](null),_0x18bb75=[],_0x5ca4bd=[];for(let _0x4dbc6f of _0x5932f0)_0x459c1f[_0x4dbc6f['id']]=_0x5ca4bd['length']<<0x1,_0x5ca4bd['push'](_0x5916dc=>_0x4dbc6f['slot'](_0x5916dc));let _0x54a73a=null==_0x1955fd?void 0x0:_0x1955fd['config']['facets'];for(let _0x120fe4 in _0x5468a4){let _0x2f000e=_0x5468a4[_0x120fe4],_0x492fcd=_0x2f000e[0x0]['facet'],_0x1db013=_0x54a73a&&_0x54a73a[_0x120fe4]||[];if(_0x2f000e['every'](_0x29b5a9=>0x0==_0x29b5a9['type'])){if(_0x459c1f[_0x492fcd['id']]=_0x18bb75['length']<<0x1|0x1,sameArray$1(_0x1db013,_0x2f000e))_0x18bb75['push'](_0x1955fd['facet'](_0x492fcd));else{let _0x1cd4b4=_0x492fcd['combine'](_0x2f000e['map'](_0x51201d=>_0x51201d['value']));_0x18bb75['push'](_0x1955fd&&_0x492fcd['compare'](_0x1cd4b4,_0x1955fd['facet'](_0x492fcd))?_0x1955fd['facet'](_0x492fcd):_0x1cd4b4);}}else{for(let _0x22cadd of _0x2f000e)0x0==_0x22cadd['type']?(_0x459c1f[_0x22cadd['id']]=_0x18bb75['length']<<0x1|0x1,_0x18bb75['push'](_0x22cadd['value'])):(_0x459c1f[_0x22cadd['id']]=_0x5ca4bd['length']<<0x1,_0x5ca4bd['push'](_0x310056=>_0x22cadd['dynamicSlot'](_0x310056)));_0x459c1f[_0x492fcd['id']]=_0x5ca4bd['length']<<0x1,_0x5ca4bd['push'](_0x1e4ee4=>dynamicFacetSlot(_0x1e4ee4,_0x492fcd,_0x2f000e));}}let _0x5eac6b=_0x5ca4bd['map'](_0x310a2b=>_0x310a2b(_0x459c1f));return new Configuration(_0x32499b,_0x397a5c,_0x5eac6b,_0x459c1f,_0x18bb75,_0x5468a4);}}function flatten(_0xdb389b,_0x2a284a,_0x31fb21){let _0x2d629d=[[],[],[],[],[]],_0x1c2cea=new Map();return function _0x39e2db(_0x2bb3ba,_0x4554a2){let _0x13eddf=_0x1c2cea['get'](_0x2bb3ba);if(null!=_0x13eddf){if(_0x13eddf<=_0x4554a2)return;let _0x32f753=_0x2d629d[_0x13eddf]['indexOf'](_0x2bb3ba);_0x32f753>-0x1&&_0x2d629d[_0x13eddf]['splice'](_0x32f753,0x1),_0x2bb3ba instanceof CompartmentInstance&&_0x31fb21['delete'](_0x2bb3ba['compartment']);}if(_0x1c2cea['set'](_0x2bb3ba,_0x4554a2),Array['isArray'](_0x2bb3ba)){for(let _0x4d89a3 of _0x2bb3ba)_0x39e2db(_0x4d89a3,_0x4554a2);}else{if(_0x2bb3ba instanceof CompartmentInstance){if(_0x31fb21['has'](_0x2bb3ba['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0x7eeebd=_0x2a284a['get'](_0x2bb3ba['compartment'])||_0x2bb3ba['inner'];_0x31fb21['set'](_0x2bb3ba['compartment'],_0x7eeebd),_0x39e2db(_0x7eeebd,_0x4554a2);}else{if(_0x2bb3ba instanceof PrecExtension)_0x39e2db(_0x2bb3ba['inner'],_0x2bb3ba['prec']);else{if(_0x2bb3ba instanceof StateField)_0x2d629d[_0x4554a2]['push'](_0x2bb3ba),_0x2bb3ba['provides']&&_0x39e2db(_0x2bb3ba['provides'],_0x4554a2);else{if(_0x2bb3ba instanceof FacetProvider)_0x2d629d[_0x4554a2]['push'](_0x2bb3ba),_0x2bb3ba['facet']['extensions']&&_0x39e2db(_0x2bb3ba['facet']['extensions'],Prec_['default']);else{let _0xe5636c=_0x2bb3ba['extension'];if(!_0xe5636c)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x2bb3ba+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x39e2db(_0xe5636c,_0x4554a2);}}}}}}(_0xdb389b,Prec_['default']),_0x2d629d['reduce']((_0x43c712,_0x12eead)=>_0x43c712['concat'](_0x12eead));}function ensureAddr(_0x50fda3,_0x197662){if(0x1&_0x197662)return 0x2;let _0x2cab33=_0x197662>>0x1,_0x46ab5c=_0x50fda3['status'][_0x2cab33];if(0x4==_0x46ab5c)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x46ab5c)return _0x46ab5c;_0x50fda3['status'][_0x2cab33]=0x4;let _0x4f24a1=_0x50fda3['computeSlot'](_0x50fda3,_0x50fda3['config']['dynamicSlots'][_0x2cab33]);return _0x50fda3['status'][_0x2cab33]=0x2|_0x4f24a1;}function getAddr(_0x515dd2,_0x3e3e3f){return 0x1&_0x3e3e3f?_0x515dd2['config']['staticValues'][_0x3e3e3f>>0x1]:_0x515dd2['values'][_0x3e3e3f>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0x492afc=>_0x492afc['some'](_0xfcf32e=>_0xfcf32e),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0x12b12d=>_0x12b12d['length']?_0x12b12d[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x4c962d=>!!_0x4c962d['length']&&_0x4c962d[0x0]});class Annotation{constructor(_0x547ab2,_0x470111){this['type']=_0x547ab2,this['value']=_0x470111;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0x47dfec){return new Annotation(this,_0x47dfec);}}class StateEffectType{constructor(_0x3a61fc){this['map']=_0x3a61fc;}['of'](_0x6d09b9){return new StateEffect(this,_0x6d09b9);}}class StateEffect{constructor(_0x10275c,_0x2a8921){this['type']=_0x10275c,this['value']=_0x2a8921;}['map'](_0x55322b){let _0x4538b2=this['type']['map'](this['value'],_0x55322b);return void 0x0===_0x4538b2?void 0x0:_0x4538b2==this['value']?this:new StateEffect(this['type'],_0x4538b2);}['is'](_0x3fa9e5){return this['type']==_0x3fa9e5;}static['define'](_0x11760a={}){return new StateEffectType(_0x11760a['map']||(_0x1a52da=>_0x1a52da));}static['mapEffects'](_0x5302ae,_0x50f392){if(!_0x5302ae['length'])return _0x5302ae;let _0x98533=[];for(let _0x31130a of _0x5302ae){let _0x4cfb02=_0x31130a['map'](_0x50f392);_0x4cfb02&&_0x98533['push'](_0x4cfb02);}return _0x98533;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x4598ca,_0x1b5655,_0x30ece6,_0xc6922a,_0x1c4b93,_0xe0933){this['startState']=_0x4598ca,this['changes']=_0x1b5655,this['selection']=_0x30ece6,this['effects']=_0xc6922a,this['annotations']=_0x1c4b93,this['scrollIntoView']=_0xe0933,this['_doc']=null,this['_state']=null,_0x30ece6&&checkSelection(_0x30ece6,_0x1b5655['newLength']),_0x1c4b93['some'](_0x3f677d=>_0x3f677d['type']==Transaction['time'])||(this['annotations']=_0x1c4b93['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x3ced17,_0x45b0d3,_0x14c686,_0x5f5d6b,_0x46a6eb,_0x410aae){return new Transaction(_0x3ced17,_0x45b0d3,_0x14c686,_0x5f5d6b,_0x46a6eb,_0x410aae);}get['newDoc'](){return this['_doc']||(this['_doc']=this['changes']['apply'](this['startState']['doc']));}get['newSelection'](){return this['selection']||this['startState']['selection']['map'](this['changes']);}get['state'](){return this['_state']||this['startState']['applyTransaction'](this),this['_state'];}['annotation'](_0x41c1fb){for(let _0x244603 of this['annotations'])if(_0x244603['type']==_0x41c1fb)return _0x244603['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x310fbd){let _0x2e934a=this['annotation'](Transaction['userEvent']);return!(!_0x2e934a||!(_0x2e934a==_0x310fbd||_0x2e934a['length']>_0x310fbd['length']&&_0x2e934a['slice'](0x0,_0x310fbd['length'])==_0x310fbd&&'.'==_0x2e934a[_0x310fbd['length']]));}}function joinRanges(_0x1198c8,_0x2adf98){let _0x252548=[];for(let _0x3b0e48=0x0,_0x5b5c29=0x0;;){let _0x1bbab5,_0x5e7535;if(_0x3b0e48<_0x1198c8['length']&&(_0x5b5c29==_0x2adf98['length']||_0x2adf98[_0x5b5c29]>=_0x1198c8[_0x3b0e48]))_0x1bbab5=_0x1198c8[_0x3b0e48++],_0x5e7535=_0x1198c8[_0x3b0e48++];else{if(!(_0x5b5c29<_0x2adf98['length']))return _0x252548;_0x1bbab5=_0x2adf98[_0x5b5c29++],_0x5e7535=_0x2adf98[_0x5b5c29++];}!_0x252548['length']||_0x252548[_0x252548['length']-0x1]<_0x1bbab5?_0x252548['push'](_0x1bbab5,_0x5e7535):_0x252548[_0x252548['length']-0x1]<_0x5e7535&&(_0x252548[_0x252548['length']-0x1]=_0x5e7535);}}function mergeTransaction(_0x429db3,_0x592b4e,_0x23dd50){var _0x58c252;let _0x8d396c,_0x4dbdd7,_0x533b81;return _0x23dd50?(_0x8d396c=_0x592b4e['changes'],_0x4dbdd7=ChangeSet['empty'](_0x592b4e['changes']['length']),_0x533b81=_0x429db3['changes']['compose'](_0x592b4e['changes'])):(_0x8d396c=_0x592b4e['changes']['map'](_0x429db3['changes']),_0x4dbdd7=_0x429db3['changes']['mapDesc'](_0x592b4e['changes'],!0x0),_0x533b81=_0x429db3['changes']['compose'](_0x8d396c)),{'changes':_0x533b81,'selection':_0x592b4e['selection']?_0x592b4e['selection']['map'](_0x4dbdd7):null===(_0x58c252=_0x429db3['selection'])||void 0x0===_0x58c252?void 0x0:_0x58c252['map'](_0x8d396c),'effects':StateEffect['mapEffects'](_0x429db3['effects'],_0x8d396c)['concat'](StateEffect['mapEffects'](_0x592b4e['effects'],_0x4dbdd7)),'annotations':_0x429db3['annotations']['length']?_0x429db3['annotations']['concat'](_0x592b4e['annotations']):_0x592b4e['annotations'],'scrollIntoView':_0x429db3['scrollIntoView']||_0x592b4e['scrollIntoView']};}function resolveTransactionInner(_0x159429,_0x4f293c,_0x8ae8b9){let _0x4a2600=_0x4f293c['selection'],_0x4dee1a=asArray$1(_0x4f293c['annotations']);return _0x4f293c['userEvent']&&(_0x4dee1a=_0x4dee1a['concat'](Transaction['userEvent']['of'](_0x4f293c['userEvent']))),{'changes':_0x4f293c['changes']instanceof ChangeSet?_0x4f293c['changes']:ChangeSet['of'](_0x4f293c['changes']||[],_0x8ae8b9,_0x159429['facet'](lineSeparator)),'selection':_0x4a2600&&(_0x4a2600 instanceof EditorSelection?_0x4a2600:EditorSelection['single'](_0x4a2600['anchor'],_0x4a2600['head'])),'effects':asArray$1(_0x4f293c['effects']),'annotations':_0x4dee1a,'scrollIntoView':!!_0x4f293c['scrollIntoView']};}function resolveTransaction(_0x289cd3,_0x494487,_0x4f9444){let _0x4e0307=resolveTransactionInner(_0x289cd3,_0x494487['length']?_0x494487[0x0]:{},_0x289cd3['doc']['length']);_0x494487['length']&&!0x1===_0x494487[0x0]['filter']&&(_0x4f9444=!0x1);for(let _0x13969e=0x1;_0x13969e<_0x494487['length'];_0x13969e++){!0x1===_0x494487[_0x13969e]['filter']&&(_0x4f9444=!0x1);let _0x3e0288=!!_0x494487[_0x13969e]['sequential'];_0x4e0307=mergeTransaction(_0x4e0307,resolveTransactionInner(_0x289cd3,_0x494487[_0x13969e],_0x3e0288?_0x4e0307['changes']['newLength']:_0x289cd3['doc']['length']),_0x3e0288);}let _0x521a9c=Transaction['create'](_0x289cd3,_0x4e0307['changes'],_0x4e0307['selection'],_0x4e0307['effects'],_0x4e0307['annotations'],_0x4e0307['scrollIntoView']);return extendTransaction(_0x4f9444?filterTransaction(_0x521a9c):_0x521a9c);}function filterTransaction(_0x383bb8){let _0x3e93a9=_0x383bb8['startState'],_0x528078=!0x0;for(let _0x101165 of _0x3e93a9['facet'](changeFilter)){let _0x1c3089=_0x101165(_0x383bb8);if(!0x1===_0x1c3089){_0x528078=!0x1;break;}Array['isArray'](_0x1c3089)&&(_0x528078=!0x0===_0x528078?_0x1c3089:joinRanges(_0x528078,_0x1c3089));}if(!0x0!==_0x528078){let _0x62fbd5,_0x381b06;if(!0x1===_0x528078)_0x381b06=_0x383bb8['changes']['invertedDesc'],_0x62fbd5=ChangeSet['empty'](_0x3e93a9['doc']['length']);else{let _0x1f8937=_0x383bb8['changes']['filter'](_0x528078);_0x62fbd5=_0x1f8937['changes'],_0x381b06=_0x1f8937['filtered']['mapDesc'](_0x1f8937['changes'])['invertedDesc'];}_0x383bb8=Transaction['create'](_0x3e93a9,_0x62fbd5,_0x383bb8['selection']&&_0x383bb8['selection']['map'](_0x381b06),StateEffect['mapEffects'](_0x383bb8['effects'],_0x381b06),_0x383bb8['annotations'],_0x383bb8['scrollIntoView']);}let _0x29f2c1=_0x3e93a9['facet'](transactionFilter);for(let _0x406502=_0x29f2c1['length']-0x1;_0x406502>=0x0;_0x406502--){let _0x3546e6=_0x29f2c1[_0x406502](_0x383bb8);_0x383bb8=_0x3546e6 instanceof Transaction?_0x3546e6:Array['isArray'](_0x3546e6)&&0x1==_0x3546e6['length']&&_0x3546e6[0x0]instanceof Transaction?_0x3546e6[0x0]:resolveTransaction(_0x3e93a9,asArray$1(_0x3546e6),!0x1);}return _0x383bb8;}function extendTransaction(_0x471283){let _0x42269f=_0x471283['startState'],_0x819840=_0x42269f['facet'](transactionExtender),_0x433f64=_0x471283;for(let _0x2c79df=_0x819840['length']-0x1;_0x2c79df>=0x0;_0x2c79df--){let _0x28cd7e=_0x819840[_0x2c79df](_0x471283);_0x28cd7e&&Object['keys'](_0x28cd7e)['length']&&(_0x433f64=mergeTransaction(_0x433f64,resolveTransactionInner(_0x42269f,_0x28cd7e,_0x471283['changes']['newLength']),!0x0));}return _0x433f64==_0x471283?_0x471283:Transaction['create'](_0x42269f,_0x471283['changes'],_0x471283['selection'],_0x433f64['effects'],_0x433f64['annotations'],_0x433f64['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$1(_0x465759){return null==_0x465759?none$3:Array['isArray'](_0x465759)?_0x465759:[_0x465759];}var CharCategory=function(_0x343658){return _0x343658[_0x343658['Word']=0x0]='Word',_0x343658[_0x343658['Space']=0x1]='Space',_0x343658[_0x343658['Other']=0x2]='Other',_0x343658;}(CharCategory||(CharCategory={}));const nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let wordChar;try{wordChar=new RegExp('[\x5cp{Alphabetic}\x5cp{Number}_]','u');}catch(_0x19561b){}function hasWordChar(_0x1aec9b){if(wordChar)return wordChar['test'](_0x1aec9b);for(let _0x217cfb=0x0;_0x217cfb<_0x1aec9b['length'];_0x217cfb++){let _0x94a93d=_0x1aec9b[_0x217cfb];if(/\w/['test'](_0x94a93d)||_0x94a93d>'\u0080'&&(_0x94a93d['toUpperCase']()!=_0x94a93d['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x94a93d)))return!0x0;}return!0x1;}function makeCategorizer(_0x43b241){return _0x22f9dc=>{if(!/\S/['test'](_0x22f9dc))return CharCategory['Space'];if(hasWordChar(_0x22f9dc))return CharCategory['Word'];for(let _0x4efbb0=0x0;_0x4efbb0<_0x43b241['length'];_0x4efbb0++)if(_0x22f9dc['indexOf'](_0x43b241[_0x4efbb0])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x1b5753,_0x294364,_0x571f72,_0x575288,_0x41c48a,_0x265609){this['config']=_0x1b5753,this['doc']=_0x294364,this['selection']=_0x571f72,this['values']=_0x575288,this['status']=_0x1b5753['statusTemplate']['slice'](),this['computeSlot']=_0x41c48a,_0x265609&&(_0x265609['_state']=this);for(let _0x130806=0x0;_0x130806<this['config']['dynamicSlots']['length'];_0x130806++)ensureAddr(this,_0x130806<<0x1);this['computeSlot']=null;}['field'](_0x28b9c4,_0x465483=!0x0){let _0x152db9=this['config']['address'][_0x28b9c4['id']];if(null!=_0x152db9)return ensureAddr(this,_0x152db9),getAddr(this,_0x152db9);if(_0x465483)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x1a9b83){return resolveTransaction(this,_0x1a9b83,!0x0);}['applyTransaction'](_0x557320){let _0xcd28d7,_0xcd71ec=this['config'],{base:_0x3f02e0,compartments:_0x141eaf}=_0xcd71ec;for(let _0xfd675c of _0x557320['effects'])_0xfd675c['is'](Compartment['reconfigure'])?(_0xcd71ec&&(_0x141eaf=new Map(),_0xcd71ec['compartments']['forEach']((_0x5b2de6,_0x3a6970)=>_0x141eaf['set'](_0x3a6970,_0x5b2de6)),_0xcd71ec=null),_0x141eaf['set'](_0xfd675c['value']['compartment'],_0xfd675c['value']['extension'])):_0xfd675c['is'](StateEffect['reconfigure'])?(_0xcd71ec=null,_0x3f02e0=_0xfd675c['value']):_0xfd675c['is'](StateEffect['appendConfig'])&&(_0xcd71ec=null,_0x3f02e0=asArray$1(_0x3f02e0)['concat'](_0xfd675c['value']));if(_0xcd71ec)_0xcd28d7=_0x557320['startState']['values']['slice']();else _0xcd71ec=Configuration['resolve'](_0x3f02e0,_0x141eaf,this),_0xcd28d7=new EditorState(_0xcd71ec,this['doc'],this['selection'],_0xcd71ec['dynamicSlots']['map'](()=>null),(_0x42b64c,_0x86cb80)=>_0x86cb80['reconfigure'](_0x42b64c,this),null)['values'];let _0xc36466=_0x557320['startState']['facet'](allowMultipleSelections)?_0x557320['newSelection']:_0x557320['newSelection']['asSingle']();new EditorState(_0xcd71ec,_0x557320['newDoc'],_0xc36466,_0xcd28d7,(_0x251ca3,_0x1edd74)=>_0x1edd74['update'](_0x251ca3,_0x557320),_0x557320);}['replaceSelection'](_0x23ae26){return'string'==typeof _0x23ae26&&(_0x23ae26=this['toText'](_0x23ae26)),this['changeByRange'](_0x3a982d=>({'changes':{'from':_0x3a982d['from'],'to':_0x3a982d['to'],'insert':_0x23ae26},'range':EditorSelection['cursor'](_0x3a982d['from']+_0x23ae26['length'])}));}['changeByRange'](_0x1188c5){let _0x1ca93b=this['selection'],_0xe01856=_0x1188c5(_0x1ca93b['ranges'][0x0]),_0x26e5e6=this['changes'](_0xe01856['changes']),_0x3e7cc1=[_0xe01856['range']],_0x15d9ee=asArray$1(_0xe01856['effects']);for(let _0x91088b=0x1;_0x91088b<_0x1ca93b['ranges']['length'];_0x91088b++){let _0x3ef073=_0x1188c5(_0x1ca93b['ranges'][_0x91088b]),_0x40fb4a=this['changes'](_0x3ef073['changes']),_0x384ca0=_0x40fb4a['map'](_0x26e5e6);for(let _0x370bdc=0x0;_0x370bdc<_0x91088b;_0x370bdc++)_0x3e7cc1[_0x370bdc]=_0x3e7cc1[_0x370bdc]['map'](_0x384ca0);let _0x44791e=_0x26e5e6['mapDesc'](_0x40fb4a,!0x0);_0x3e7cc1['push'](_0x3ef073['range']['map'](_0x44791e)),_0x26e5e6=_0x26e5e6['compose'](_0x384ca0),_0x15d9ee=StateEffect['mapEffects'](_0x15d9ee,_0x384ca0)['concat'](StateEffect['mapEffects'](asArray$1(_0x3ef073['effects']),_0x44791e));}return{'changes':_0x26e5e6,'selection':EditorSelection['create'](_0x3e7cc1,_0x1ca93b['mainIndex']),'effects':_0x15d9ee};}['changes'](_0x5f2155=[]){return _0x5f2155 instanceof ChangeSet?_0x5f2155:ChangeSet['of'](_0x5f2155,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x419bf7){return Text$1['of'](_0x419bf7['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x3692e6=0x0,_0xbe057=this['doc']['length']){return this['doc']['sliceString'](_0x3692e6,_0xbe057,this['lineBreak']);}['facet'](_0x3e0dba){let _0x49277d=this['config']['address'][_0x3e0dba['id']];return null==_0x49277d?_0x3e0dba['default']:(ensureAddr(this,_0x49277d),getAddr(this,_0x49277d));}['toJSON'](_0x45a8c3){let _0x3cab34={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x45a8c3)for(let _0x4d47d4 in _0x45a8c3){let _0xe23c49=_0x45a8c3[_0x4d47d4];_0xe23c49 instanceof StateField&&null!=this['config']['address'][_0xe23c49['id']]&&(_0x3cab34[_0x4d47d4]=_0xe23c49['spec']['toJSON'](this['field'](_0x45a8c3[_0x4d47d4]),this));}return _0x3cab34;}static['fromJSON'](_0x3c2a5e,_0x14d5e8={},_0x3fc6cb){if(!_0x3c2a5e||'string'!=typeof _0x3c2a5e['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x4bfc4b=[];if(_0x3fc6cb){for(let _0x2527f6 in _0x3fc6cb)if(Object['prototype']['hasOwnProperty']['call'](_0x3c2a5e,_0x2527f6)){let _0x19116b=_0x3fc6cb[_0x2527f6],_0x1c7f63=_0x3c2a5e[_0x2527f6];_0x4bfc4b['push'](_0x19116b['init'](_0x28d2e1=>_0x19116b['spec']['fromJSON'](_0x1c7f63,_0x28d2e1)));}}return EditorState['create']({'doc':_0x3c2a5e['doc'],'selection':EditorSelection['fromJSON'](_0x3c2a5e['selection']),'extensions':_0x14d5e8['extensions']?_0x4bfc4b['concat']([_0x14d5e8['extensions']]):_0x4bfc4b});}static['create'](_0x209189={}){let _0x108987=Configuration['resolve'](_0x209189['extensions']||[],new Map()),_0x19e5e1=_0x209189['doc']instanceof Text$1?_0x209189['doc']:Text$1['of']((_0x209189['doc']||'')['split'](_0x108987['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0x27b34c=_0x209189['selection']?_0x209189['selection']instanceof EditorSelection?_0x209189['selection']:EditorSelection['single'](_0x209189['selection']['anchor'],_0x209189['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0x27b34c,_0x19e5e1['length']),_0x108987['staticFacet'](allowMultipleSelections)||(_0x27b34c=_0x27b34c['asSingle']()),new EditorState(_0x108987,_0x19e5e1,_0x27b34c,_0x108987['dynamicSlots']['map'](()=>null),(_0x352af8,_0x29b524)=>_0x29b524['create'](_0x352af8),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x1cbb20,..._0x5bb965){for(let _0x202bf3 of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x202bf3,_0x1cbb20)){_0x1cbb20=_0x202bf3[_0x1cbb20];break;}return _0x5bb965['length']&&(_0x1cbb20=_0x1cbb20['replace'](/\$(\$|\d*)/g,(_0x212df9,_0x39e71a)=>{if('$'==_0x39e71a)return'$';let _0x2435aa=+(_0x39e71a||0x1);return!_0x2435aa||_0x2435aa>_0x5bb965['length']?_0x212df9:_0x5bb965[_0x2435aa-0x1];})),_0x1cbb20;}['languageDataAt'](_0x357318,_0x247e09,_0x24ff46=-0x1){let _0x2230b7=[];for(let _0x27b467 of this['facet'](languageData))for(let _0x504470 of _0x27b467(this,_0x247e09,_0x24ff46))Object['prototype']['hasOwnProperty']['call'](_0x504470,_0x357318)&&_0x2230b7['push'](_0x504470[_0x357318]);return _0x2230b7;}['charCategorizer'](_0x131be1){return makeCategorizer(this['languageDataAt']('wordChars',_0x131be1)['join'](''));}['wordAt'](_0x5919d1){let {text:_0x3db13f,from:_0x4d4884,length:_0x1d982f}=this['doc']['lineAt'](_0x5919d1),_0x19d339=this['charCategorizer'](_0x5919d1),_0x5f31cb=_0x5919d1-_0x4d4884,_0x479ea9=_0x5919d1-_0x4d4884;for(;_0x5f31cb>0x0;){let _0x182dd0=findClusterBreak(_0x3db13f,_0x5f31cb,!0x1);if(_0x19d339(_0x3db13f['slice'](_0x182dd0,_0x5f31cb))!=CharCategory['Word'])break;_0x5f31cb=_0x182dd0;}for(;_0x479ea9<_0x1d982f;){let _0x409cf0=findClusterBreak(_0x3db13f,_0x479ea9);if(_0x19d339(_0x3db13f['slice'](_0x479ea9,_0x409cf0))!=CharCategory['Word'])break;_0x479ea9=_0x409cf0;}return _0x5f31cb==_0x479ea9?null:EditorSelection['range'](_0x5f31cb+_0x4d4884,_0x479ea9+_0x4d4884);}}function combineConfig(_0x5706b9,_0x4d5a9b,_0x3da53a={}){let _0x1ffcdb={};for(let _0x5494f5 of _0x5706b9)for(let _0x1e13a8 of Object['keys'](_0x5494f5)){let _0x2a493d=_0x5494f5[_0x1e13a8],_0x41c4c7=_0x1ffcdb[_0x1e13a8];if(void 0x0===_0x41c4c7)_0x1ffcdb[_0x1e13a8]=_0x2a493d;else{if(_0x41c4c7===_0x2a493d||void 0x0===_0x2a493d);else{if(!Object['hasOwnProperty']['call'](_0x3da53a,_0x1e13a8))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0x1e13a8);_0x1ffcdb[_0x1e13a8]=_0x3da53a[_0x1e13a8](_0x41c4c7,_0x2a493d);}}}for(let _0x20082d in _0x4d5a9b)void 0x0===_0x1ffcdb[_0x20082d]&&(_0x1ffcdb[_0x20082d]=_0x4d5a9b[_0x20082d]);return _0x1ffcdb;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0x34633c=>_0x34633c['length']?_0x34633c[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0xd79cc4,_0xa0a5d1){let _0x2a2068=Object['keys'](_0xd79cc4),_0x50f165=Object['keys'](_0xa0a5d1);return _0x2a2068['length']==_0x50f165['length']&&_0x2a2068['every'](_0x3b5897=>_0xd79cc4[_0x3b5897]==_0xa0a5d1[_0x3b5897]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x267093){return this==_0x267093;}['range'](_0x5dce67,_0x2c0789=_0x5dce67){return Range$1['create'](_0x5dce67,_0x2c0789,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x45147e,_0x5cd713,_0x22dfb4){this['from']=_0x45147e,this['to']=_0x5cd713,this['value']=_0x22dfb4;}static['create'](_0x39716b,_0x285dd2,_0x57f1d3){return new e(_0x39716b,_0x285dd2,_0x57f1d3);}};function cmpRange(_0x6219b0,_0x5ae5f5){return _0x6219b0['from']-_0x5ae5f5['from']||_0x6219b0['value']['startSide']-_0x5ae5f5['value']['startSide'];}class Chunk{constructor(_0x15b5de,_0x598de9,_0x2efc72,_0xd4c028){this['from']=_0x15b5de,this['to']=_0x598de9,this['value']=_0x2efc72,this['maxPoint']=_0xd4c028;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x4d5a3e,_0x8835f6,_0x44278f,_0x1ee4b8=0x0){let _0x536411=_0x44278f?this['to']:this['from'];for(let _0x4627b8=_0x1ee4b8,_0x161741=_0x536411['length'];;){if(_0x4627b8==_0x161741)return _0x4627b8;let _0xec9f97=_0x4627b8+_0x161741>>0x1,_0x261b79=_0x536411[_0xec9f97]-_0x4d5a3e||(_0x44278f?this['value'][_0xec9f97]['endSide']:this['value'][_0xec9f97]['startSide'])-_0x8835f6;if(_0xec9f97==_0x4627b8)return _0x261b79>=0x0?_0x4627b8:_0x161741;_0x261b79>=0x0?_0x161741=_0xec9f97:_0x4627b8=_0xec9f97+0x1;}}['between'](_0x5af20e,_0x23e171,_0x3ef1cd,_0x1c58a8){for(let _0x3aa646=this['findIndex'](_0x23e171,-0x3b9aca00,!0x0),_0x1e2831=this['findIndex'](_0x3ef1cd,0x3b9aca00,!0x1,_0x3aa646);_0x3aa646<_0x1e2831;_0x3aa646++)if(!0x1===_0x1c58a8(this['from'][_0x3aa646]+_0x5af20e,this['to'][_0x3aa646]+_0x5af20e,this['value'][_0x3aa646]))return!0x1;}['map'](_0x361540,_0x415aa4){let _0x36f5c1=[],_0x3e6331=[],_0x7d9025=[],_0x355640=-0x1,_0x3fbc58=-0x1;for(let _0x322b6a=0x0;_0x322b6a<this['value']['length'];_0x322b6a++){let _0x39742c,_0x207297,_0x49a8f1=this['value'][_0x322b6a],_0xe22986=this['from'][_0x322b6a]+_0x361540,_0x287487=this['to'][_0x322b6a]+_0x361540;if(_0xe22986==_0x287487){let _0x5219b5=_0x415aa4['mapPos'](_0xe22986,_0x49a8f1['startSide'],_0x49a8f1['mapMode']);if(null==_0x5219b5)continue;if(_0x39742c=_0x207297=_0x5219b5,_0x49a8f1['startSide']!=_0x49a8f1['endSide']&&(_0x207297=_0x415aa4['mapPos'](_0xe22986,_0x49a8f1['endSide']),_0x207297<_0x39742c))continue;}else{if(_0x39742c=_0x415aa4['mapPos'](_0xe22986,_0x49a8f1['startSide']),_0x207297=_0x415aa4['mapPos'](_0x287487,_0x49a8f1['endSide']),_0x39742c>_0x207297||_0x39742c==_0x207297&&_0x49a8f1['startSide']>0x0&&_0x49a8f1['endSide']<=0x0)continue;}(_0x207297-_0x39742c||_0x49a8f1['endSide']-_0x49a8f1['startSide'])<0x0||(_0x355640<0x0&&(_0x355640=_0x39742c),_0x49a8f1['point']&&(_0x3fbc58=Math['max'](_0x3fbc58,_0x207297-_0x39742c)),_0x36f5c1['push'](_0x49a8f1),_0x3e6331['push'](_0x39742c-_0x355640),_0x7d9025['push'](_0x207297-_0x355640));}return{'mapped':_0x36f5c1['length']?new Chunk(_0x3e6331,_0x7d9025,_0x36f5c1,_0x3fbc58):null,'pos':_0x355640};}}class RangeSet{constructor(_0x3887bc,_0x4c6a57,_0x2eeca4,_0x197e1f){this['chunkPos']=_0x3887bc,this['chunk']=_0x4c6a57,this['nextLayer']=_0x2eeca4,this['maxPoint']=_0x197e1f;}static['create'](_0x221371,_0x467aef,_0x35eaf2,_0x529826){return new RangeSet(_0x221371,_0x467aef,_0x35eaf2,_0x529826);}get['length'](){let _0x5e0416=this['chunk']['length']-0x1;return _0x5e0416<0x0?0x0:Math['max'](this['chunkEnd'](_0x5e0416),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0x185288=this['nextLayer']['size'];for(let _0x3db759 of this['chunk'])_0x185288+=_0x3db759['value']['length'];return _0x185288;}['chunkEnd'](_0x41260c){return this['chunkPos'][_0x41260c]+this['chunk'][_0x41260c]['length'];}['update'](_0x6df209){let {add:_0xddc6a5=[],sort:_0x1e40bc=!0x1,filterFrom:_0x43d9c0=0x0,filterTo:_0x30e640=this['length']}=_0x6df209,_0x945a14=_0x6df209['filter'];if(0x0==_0xddc6a5['length']&&!_0x945a14)return this;if(_0x1e40bc&&(_0xddc6a5=_0xddc6a5['slice']()['sort'](cmpRange)),this['isEmpty'])return _0xddc6a5['length']?RangeSet['of'](_0xddc6a5):this;let _0xfb6a76=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x35ee84=0x0,_0x265851=[],_0x160047=new RangeSetBuilder();for(;_0xfb6a76['value']||_0x35ee84<_0xddc6a5['length'];)if(_0x35ee84<_0xddc6a5['length']&&(_0xfb6a76['from']-_0xddc6a5[_0x35ee84]['from']||_0xfb6a76['startSide']-_0xddc6a5[_0x35ee84]['value']['startSide'])>=0x0){let _0x67470a=_0xddc6a5[_0x35ee84++];_0x160047['addInner'](_0x67470a['from'],_0x67470a['to'],_0x67470a['value'])||_0x265851['push'](_0x67470a);}else 0x1==_0xfb6a76['rangeIndex']&&_0xfb6a76['chunkIndex']<this['chunk']['length']&&(_0x35ee84==_0xddc6a5['length']||this['chunkEnd'](_0xfb6a76['chunkIndex'])<_0xddc6a5[_0x35ee84]['from'])&&(!_0x945a14||_0x43d9c0>this['chunkEnd'](_0xfb6a76['chunkIndex'])||_0x30e640<this['chunkPos'][_0xfb6a76['chunkIndex']])&&_0x160047['addChunk'](this['chunkPos'][_0xfb6a76['chunkIndex']],this['chunk'][_0xfb6a76['chunkIndex']])?_0xfb6a76['nextChunk']():((!_0x945a14||_0x43d9c0>_0xfb6a76['to']||_0x30e640<_0xfb6a76['from']||_0x945a14(_0xfb6a76['from'],_0xfb6a76['to'],_0xfb6a76['value']))&&(_0x160047['addInner'](_0xfb6a76['from'],_0xfb6a76['to'],_0xfb6a76['value'])||_0x265851['push'](Range$1['create'](_0xfb6a76['from'],_0xfb6a76['to'],_0xfb6a76['value']))),_0xfb6a76['next']());return _0x160047['finishInner'](this['nextLayer']['isEmpty']&&!_0x265851['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x265851,'filter':_0x945a14,'filterFrom':_0x43d9c0,'filterTo':_0x30e640}));}['map'](_0x4f1196){if(_0x4f1196['empty']||this['isEmpty'])return this;let _0x3729e7=[],_0x49e3e8=[],_0x491b03=-0x1;for(let _0x298598=0x0;_0x298598<this['chunk']['length'];_0x298598++){let _0x47dd5b=this['chunkPos'][_0x298598],_0x5629f3=this['chunk'][_0x298598],_0x84f902=_0x4f1196['touchesRange'](_0x47dd5b,_0x47dd5b+_0x5629f3['length']);if(!0x1===_0x84f902)_0x491b03=Math['max'](_0x491b03,_0x5629f3['maxPoint']),_0x3729e7['push'](_0x5629f3),_0x49e3e8['push'](_0x4f1196['mapPos'](_0x47dd5b));else{if(!0x0===_0x84f902){let {mapped:_0x522d0e,pos:_0x4f76d2}=_0x5629f3['map'](_0x47dd5b,_0x4f1196);_0x522d0e&&(_0x491b03=Math['max'](_0x491b03,_0x522d0e['maxPoint']),_0x3729e7['push'](_0x522d0e),_0x49e3e8['push'](_0x4f76d2));}}}let _0x142571=this['nextLayer']['map'](_0x4f1196);return 0x0==_0x3729e7['length']?_0x142571:new RangeSet(_0x49e3e8,_0x3729e7,_0x142571||RangeSet['empty'],_0x491b03);}['between'](_0x2ab19a,_0x26d638,_0x4f9369){if(!this['isEmpty']){for(let _0x7f45f5=0x0;_0x7f45f5<this['chunk']['length'];_0x7f45f5++){let _0x131470=this['chunkPos'][_0x7f45f5],_0x31b0de=this['chunk'][_0x7f45f5];if(_0x26d638>=_0x131470&&_0x2ab19a<=_0x131470+_0x31b0de['length']&&!0x1===_0x31b0de['between'](_0x131470,_0x2ab19a-_0x131470,_0x26d638-_0x131470,_0x4f9369))return;}this['nextLayer']['between'](_0x2ab19a,_0x26d638,_0x4f9369);}}['iter'](_0x3d8d76=0x0){return HeapCursor['from']([this])['goto'](_0x3d8d76);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x4ac3a7,_0x6c457c=0x0){return HeapCursor['from'](_0x4ac3a7)['goto'](_0x6c457c);}static['compare'](_0x524bfb,_0xdffc7b,_0x38d227,_0x412346,_0x6a7003=-0x1){let _0x441f9f=_0x524bfb['filter'](_0x394100=>_0x394100['maxPoint']>0x0||!_0x394100['isEmpty']&&_0x394100['maxPoint']>=_0x6a7003),_0x2ae3d7=_0xdffc7b['filter'](_0x1d8b5b=>_0x1d8b5b['maxPoint']>0x0||!_0x1d8b5b['isEmpty']&&_0x1d8b5b['maxPoint']>=_0x6a7003),_0x4ddd36=findSharedChunks(_0x441f9f,_0x2ae3d7,_0x38d227),_0x43d13f=new SpanCursor(_0x441f9f,_0x4ddd36,_0x6a7003),_0x5c4958=new SpanCursor(_0x2ae3d7,_0x4ddd36,_0x6a7003);_0x38d227['iterGaps']((_0x507747,_0x17130d,_0x21966c)=>compare(_0x43d13f,_0x507747,_0x5c4958,_0x17130d,_0x21966c,_0x412346)),_0x38d227['empty']&&0x0==_0x38d227['length']&&compare(_0x43d13f,0x0,_0x5c4958,0x0,0x0,_0x412346);}static['eq'](_0x347b61,_0x1343fd,_0x94e451=0x0,_0x131f38){null==_0x131f38&&(_0x131f38=0x3b9ac9ff);let _0x128bca=_0x347b61['filter'](_0x2f4931=>!_0x2f4931['isEmpty']&&_0x1343fd['indexOf'](_0x2f4931)<0x0),_0x377d1a=_0x1343fd['filter'](_0x3a8f03=>!_0x3a8f03['isEmpty']&&_0x347b61['indexOf'](_0x3a8f03)<0x0);if(_0x128bca['length']!=_0x377d1a['length'])return!0x1;if(!_0x128bca['length'])return!0x0;let _0x236023=findSharedChunks(_0x128bca,_0x377d1a),_0x5b0d5e=new SpanCursor(_0x128bca,_0x236023,0x0)['goto'](_0x94e451),_0x3eef4c=new SpanCursor(_0x377d1a,_0x236023,0x0)['goto'](_0x94e451);for(;;){if(_0x5b0d5e['to']!=_0x3eef4c['to']||!sameValues(_0x5b0d5e['active'],_0x3eef4c['active'])||_0x5b0d5e['point']&&(!_0x3eef4c['point']||!_0x5b0d5e['point']['eq'](_0x3eef4c['point'])))return!0x1;if(_0x5b0d5e['to']>_0x131f38)return!0x0;_0x5b0d5e['next'](),_0x3eef4c['next']();}}static['spans'](_0x11a0d7,_0x596df4,_0x9bc16a,_0x1568a8,_0x1dc897=-0x1){let _0x787f4d=new SpanCursor(_0x11a0d7,null,_0x1dc897)['goto'](_0x596df4),_0x5a3a49=_0x596df4,_0x3a3434=_0x787f4d['openStart'];for(;;){let _0x2a721f=Math['min'](_0x787f4d['to'],_0x9bc16a);if(_0x787f4d['point']){let _0x32dcdb=_0x787f4d['activeForPoint'](_0x787f4d['to']),_0x56e702=_0x787f4d['pointFrom']<_0x596df4?_0x32dcdb['length']+0x1:_0x787f4d['point']['startSide']<0x0?_0x32dcdb['length']:Math['min'](_0x32dcdb['length'],_0x3a3434);_0x1568a8['point'](_0x5a3a49,_0x2a721f,_0x787f4d['point'],_0x32dcdb,_0x56e702,_0x787f4d['pointRank']),_0x3a3434=Math['min'](_0x787f4d['openEnd'](_0x2a721f),_0x32dcdb['length']);}else _0x2a721f>_0x5a3a49&&(_0x1568a8['span'](_0x5a3a49,_0x2a721f,_0x787f4d['active'],_0x3a3434),_0x3a3434=_0x787f4d['openEnd'](_0x2a721f));if(_0x787f4d['to']>_0x9bc16a)return _0x3a3434+(_0x787f4d['point']&&_0x787f4d['to']>_0x9bc16a?0x1:0x0);_0x5a3a49=_0x787f4d['to'],_0x787f4d['next']();}}static['of'](_0x4dd38f,_0x1f7a99=!0x1){let _0x3c0ed0=new RangeSetBuilder();for(let _0x251a21 of _0x4dd38f instanceof Range$1?[_0x4dd38f]:_0x1f7a99?lazySort(_0x4dd38f):_0x4dd38f)_0x3c0ed0['add'](_0x251a21['from'],_0x251a21['to'],_0x251a21['value']);return _0x3c0ed0['finish']();}static['join'](_0x4775f7){if(!_0x4775f7['length'])return RangeSet['empty'];let _0x572b6b=_0x4775f7[_0x4775f7['length']-0x1];for(let _0xb8c43b=_0x4775f7['length']-0x2;_0xb8c43b>=0x0;_0xb8c43b--)for(let _0x146ccc=_0x4775f7[_0xb8c43b];_0x146ccc!=RangeSet['empty'];_0x146ccc=_0x146ccc['nextLayer'])_0x572b6b=new RangeSet(_0x146ccc['chunkPos'],_0x146ccc['chunk'],_0x572b6b,Math['max'](_0x146ccc['maxPoint'],_0x572b6b['maxPoint']));return _0x572b6b;}}function lazySort(_0x1a50d4){if(_0x1a50d4['length']>0x1)for(let _0xa958bc=_0x1a50d4[0x0],_0x4042b2=0x1;_0x4042b2<_0x1a50d4['length'];_0x4042b2++){let _0x1263a5=_0x1a50d4[_0x4042b2];if(cmpRange(_0xa958bc,_0x1263a5)>0x0)return _0x1a50d4['slice']()['sort'](cmpRange);_0xa958bc=_0x1263a5;}return _0x1a50d4;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0x54692c){this['chunks']['push'](new Chunk(this['from'],this['to'],this['value'],this['maxPoint'])),this['chunkPos']['push'](this['chunkStart']),this['chunkStart']=-0x1,this['setMaxPoint']=Math['max'](this['setMaxPoint'],this['maxPoint']),this['maxPoint']=-0x1,_0x54692c&&(this['from']=[],this['to']=[],this['value']=[]);}constructor(){this['chunks']=[],this['chunkPos']=[],this['chunkStart']=-0x1,this['last']=null,this['lastFrom']=-0x3b9aca00,this['lastTo']=-0x3b9aca00,this['from']=[],this['to']=[],this['value']=[],this['maxPoint']=-0x1,this['setMaxPoint']=-0x1,this['nextLayer']=null;}['add'](_0x1e1707,_0x415a11,_0x5191d8){this['addInner'](_0x1e1707,_0x415a11,_0x5191d8)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x1e1707,_0x415a11,_0x5191d8);}['addInner'](_0x19e0f5,_0x1ac1d0,_0x273b59){let _0x2ada13=_0x19e0f5-this['lastTo']||_0x273b59['startSide']-this['last']['endSide'];if(_0x2ada13<=0x0&&(_0x19e0f5-this['lastFrom']||_0x273b59['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x2ada13<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x19e0f5),this['from']['push'](_0x19e0f5-this['chunkStart']),this['to']['push'](_0x1ac1d0-this['chunkStart']),this['last']=_0x273b59,this['lastFrom']=_0x19e0f5,this['lastTo']=_0x1ac1d0,this['value']['push'](_0x273b59),_0x273b59['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x1ac1d0-_0x19e0f5)),!0x0);}['addChunk'](_0x4d12b3,_0x47bea6){if((_0x4d12b3-this['lastTo']||_0x47bea6['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x47bea6['maxPoint']),this['chunks']['push'](_0x47bea6),this['chunkPos']['push'](_0x4d12b3);let _0x4f9974=_0x47bea6['value']['length']-0x1;return this['last']=_0x47bea6['value'][_0x4f9974],this['lastFrom']=_0x47bea6['from'][_0x4f9974]+_0x4d12b3,this['lastTo']=_0x47bea6['to'][_0x4f9974]+_0x4d12b3,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0xb0e0be){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0xb0e0be;let _0x3aea54=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0xb0e0be):_0xb0e0be,this['setMaxPoint']);return this['from']=null,_0x3aea54;}}function findSharedChunks(_0x4201c3,_0x175e34,_0x505e0f){let _0x96698c=new Map();for(let _0x26b502 of _0x4201c3)for(let _0x2a8372=0x0;_0x2a8372<_0x26b502['chunk']['length'];_0x2a8372++)_0x26b502['chunk'][_0x2a8372]['maxPoint']<=0x0&&_0x96698c['set'](_0x26b502['chunk'][_0x2a8372],_0x26b502['chunkPos'][_0x2a8372]);let _0x443ab6=new Set();for(let _0xd1ea6 of _0x175e34)for(let _0x4ec8bc=0x0;_0x4ec8bc<_0xd1ea6['chunk']['length'];_0x4ec8bc++){let _0x212d21=_0x96698c['get'](_0xd1ea6['chunk'][_0x4ec8bc]);null==_0x212d21||(_0x505e0f?_0x505e0f['mapPos'](_0x212d21):_0x212d21)!=_0xd1ea6['chunkPos'][_0x4ec8bc]||(null==_0x505e0f?void 0x0:_0x505e0f['touchesRange'](_0x212d21,_0x212d21+_0xd1ea6['chunk'][_0x4ec8bc]['length']))||_0x443ab6['add'](_0xd1ea6['chunk'][_0x4ec8bc]);}return _0x443ab6;}class LayerCursor{constructor(_0x34a4a4,_0xc6640e,_0x5e44b9,_0x212dfb=0x0){this['layer']=_0x34a4a4,this['skip']=_0xc6640e,this['minPoint']=_0x5e44b9,this['rank']=_0x212dfb;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x55a93e,_0x5a7601=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x55a93e,_0x5a7601,!0x1),this;}['gotoInner'](_0x4ab2d5,_0x79b0bf,_0xdfa1f0){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0x1f0658=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0x1f0658)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x4ab2d5||_0x1f0658['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0xdfa1f0=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0x5bc850=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x4ab2d5-this['layer']['chunkPos'][this['chunkIndex']],_0x79b0bf,!0x0);(!_0xdfa1f0||this['rangeIndex']<_0x5bc850)&&this['setRangeIndex'](_0x5bc850);}this['next']();}['forward'](_0x5dd4a9,_0x2ace03){(this['to']-_0x5dd4a9||this['endSide']-_0x2ace03)<0x0&&this['gotoInner'](_0x5dd4a9,_0x2ace03,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x34f6ec=this['layer']['chunkPos'][this['chunkIndex']],_0x3a1d45=this['layer']['chunk'][this['chunkIndex']],_0x47ddeb=_0x34f6ec+_0x3a1d45['from'][this['rangeIndex']];if(this['from']=_0x47ddeb,this['to']=_0x34f6ec+_0x3a1d45['to'][this['rangeIndex']],this['value']=_0x3a1d45['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x5e13f0){if(_0x5e13f0==this['layer']['chunk'][this['chunkIndex']]['value']['length']){if(this['chunkIndex']++,this['skip']){for(;this['chunkIndex']<this['layer']['chunk']['length']&&this['skip']['has'](this['layer']['chunk'][this['chunkIndex']]);)this['chunkIndex']++;}this['rangeIndex']=0x0;}else this['rangeIndex']=_0x5e13f0;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0xeaee49){return this['from']-_0xeaee49['from']||this['startSide']-_0xeaee49['startSide']||this['rank']-_0xeaee49['rank']||this['to']-_0xeaee49['to']||this['endSide']-_0xeaee49['endSide'];}}class HeapCursor{constructor(_0x45ef60){this['heap']=_0x45ef60;}static['from'](_0x317c88,_0xc1cbc4=null,_0x3a2197=-0x1){let _0x5d5fc5=[];for(let _0x2a88fb=0x0;_0x2a88fb<_0x317c88['length'];_0x2a88fb++)for(let _0x252bcb=_0x317c88[_0x2a88fb];!_0x252bcb['isEmpty'];_0x252bcb=_0x252bcb['nextLayer'])_0x252bcb['maxPoint']>=_0x3a2197&&_0x5d5fc5['push'](new LayerCursor(_0x252bcb,_0xc1cbc4,_0x3a2197,_0x2a88fb));return 0x1==_0x5d5fc5['length']?_0x5d5fc5[0x0]:new HeapCursor(_0x5d5fc5);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0xa21f3a,_0x52ebe5=-0x3b9aca00){for(let _0x3f5a28 of this['heap'])_0x3f5a28['goto'](_0xa21f3a,_0x52ebe5);for(let _0x5e3b3e=this['heap']['length']>>0x1;_0x5e3b3e>=0x0;_0x5e3b3e--)heapBubble(this['heap'],_0x5e3b3e);return this['next'](),this;}['forward'](_0x60e0fe,_0x41e67a){for(let _0x48d169 of this['heap'])_0x48d169['forward'](_0x60e0fe,_0x41e67a);for(let _0x1ff5a1=this['heap']['length']>>0x1;_0x1ff5a1>=0x0;_0x1ff5a1--)heapBubble(this['heap'],_0x1ff5a1);(this['to']-_0x60e0fe||this['value']['endSide']-_0x41e67a)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x5807fa=this['heap'][0x0];this['from']=_0x5807fa['from'],this['to']=_0x5807fa['to'],this['value']=_0x5807fa['value'],this['rank']=_0x5807fa['rank'],_0x5807fa['value']&&_0x5807fa['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x4e388e,_0x3ce655){for(let _0x4d65c1=_0x4e388e[_0x3ce655];;){let _0x2eb338=0x1+(_0x3ce655<<0x1);if(_0x2eb338>=_0x4e388e['length'])break;let _0xe790bf=_0x4e388e[_0x2eb338];if(_0x2eb338+0x1<_0x4e388e['length']&&_0xe790bf['compare'](_0x4e388e[_0x2eb338+0x1])>=0x0&&(_0xe790bf=_0x4e388e[_0x2eb338+0x1],_0x2eb338++),_0x4d65c1['compare'](_0xe790bf)<0x0)break;_0x4e388e[_0x2eb338]=_0x4d65c1,_0x4e388e[_0x3ce655]=_0xe790bf,_0x3ce655=_0x2eb338;}}class SpanCursor{constructor(_0x2d267a,_0x4c5d12,_0x3b10a5){this['minPoint']=_0x3b10a5,this['active']=[],this['activeTo']=[],this['activeRank']=[],this['minActive']=-0x1,this['point']=null,this['pointFrom']=0x0,this['pointRank']=0x0,this['to']=-0x3b9aca00,this['endSide']=0x0,this['openStart']=-0x1,this['cursor']=HeapCursor['from'](_0x2d267a,_0x4c5d12,_0x3b10a5);}['goto'](_0x50411f,_0x3a1de2=-0x3b9aca00){return this['cursor']['goto'](_0x50411f,_0x3a1de2),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x50411f,this['endSide']=_0x3a1de2,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x1354ef,_0x3f89c9){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x1354ef||this['active'][this['minActive']]['endSide']-_0x3f89c9)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x1354ef,_0x3f89c9);}['removeActive'](_0x2a8279){remove(this['active'],_0x2a8279),remove(this['activeTo'],_0x2a8279),remove(this['activeRank'],_0x2a8279),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0x5eba8c){let _0x12f445=0x0,{value:_0x2d2ff,to:_0x36ead4,rank:_0x5cf8e0}=this['cursor'];for(;_0x12f445<this['activeRank']['length']&&(_0x5cf8e0-this['activeRank'][_0x12f445]||_0x36ead4-this['activeTo'][_0x12f445])>0x0;)_0x12f445++;insert(this['active'],_0x12f445,_0x2d2ff),insert(this['activeTo'],_0x12f445,_0x36ead4),insert(this['activeRank'],_0x12f445,_0x5cf8e0),_0x5eba8c&&insert(_0x5eba8c,_0x12f445,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x4fc92f=this['to'],_0x585e10=this['point'];this['point']=null;let _0x53dc47=this['openStart']<0x0?[]:null;for(;;){let _0xf9928a=this['minActive'];if(_0xf9928a>-0x1&&(this['activeTo'][_0xf9928a]-this['cursor']['from']||this['active'][_0xf9928a]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0xf9928a]>_0x4fc92f){this['to']=this['activeTo'][_0xf9928a],this['endSide']=this['active'][_0xf9928a]['endSide'];break;}this['removeActive'](_0xf9928a),_0x53dc47&&remove(_0x53dc47,_0xf9928a);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x4fc92f){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x52ce8a=this['cursor']['value'];if(_0x52ce8a['point']){if(!(_0x585e10&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x52ce8a,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x52ce8a['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x53dc47),this['cursor']['next']();}}}if(_0x53dc47){this['openStart']=0x0;for(let _0x5c238e=_0x53dc47['length']-0x1;_0x5c238e>=0x0&&_0x53dc47[_0x5c238e]<_0x4fc92f;_0x5c238e--)this['openStart']++;}}['activeForPoint'](_0x19e34){if(!this['active']['length'])return this['active'];let _0x34bd14=[];for(let _0x2c2c40=this['active']['length']-0x1;_0x2c2c40>=0x0&&!(this['activeRank'][_0x2c2c40]<this['pointRank']);_0x2c2c40--)(this['activeTo'][_0x2c2c40]>_0x19e34||this['activeTo'][_0x2c2c40]==_0x19e34&&this['active'][_0x2c2c40]['endSide']>=this['point']['endSide'])&&_0x34bd14['push'](this['active'][_0x2c2c40]);return _0x34bd14['reverse']();}['openEnd'](_0x8f219){let _0x31b94b=0x0;for(let _0x52059d=this['activeTo']['length']-0x1;_0x52059d>=0x0&&this['activeTo'][_0x52059d]>_0x8f219;_0x52059d--)_0x31b94b++;return _0x31b94b;}}function compare(_0x553e17,_0x16730e,_0x11d842,_0x1d0f2a,_0x4ac90e,_0x160b56){_0x553e17['goto'](_0x16730e),_0x11d842['goto'](_0x1d0f2a);let _0x4cad88=_0x1d0f2a+_0x4ac90e,_0x4ce464=_0x1d0f2a,_0x5c7f8b=_0x1d0f2a-_0x16730e;for(;;){let _0x58faa0=_0x553e17['to']+_0x5c7f8b-_0x11d842['to'],_0x249d6d=_0x58faa0||_0x553e17['endSide']-_0x11d842['endSide'],_0x15437f=_0x249d6d<0x0?_0x553e17['to']+_0x5c7f8b:_0x11d842['to'],_0x23d2f0=Math['min'](_0x15437f,_0x4cad88);if(_0x553e17['point']||_0x11d842['point']?_0x553e17['point']&&_0x11d842['point']&&(_0x553e17['point']==_0x11d842['point']||_0x553e17['point']['eq'](_0x11d842['point']))&&sameValues(_0x553e17['activeForPoint'](_0x553e17['to']),_0x11d842['activeForPoint'](_0x11d842['to']))||_0x160b56['comparePoint'](_0x4ce464,_0x23d2f0,_0x553e17['point'],_0x11d842['point']):_0x23d2f0>_0x4ce464&&!sameValues(_0x553e17['active'],_0x11d842['active'])&&_0x160b56['compareRange'](_0x4ce464,_0x23d2f0,_0x553e17['active'],_0x11d842['active']),_0x15437f>_0x4cad88)break;(_0x58faa0||_0x553e17['openEnd']!=_0x11d842['openEnd'])&&_0x160b56['boundChange']&&_0x160b56['boundChange'](_0x15437f),_0x4ce464=_0x15437f,_0x249d6d<=0x0&&_0x553e17['next'](),_0x249d6d>=0x0&&_0x11d842['next']();}}function sameValues(_0x161a67,_0x147928){if(_0x161a67['length']!=_0x147928['length'])return!0x1;for(let _0x2e520c=0x0;_0x2e520c<_0x161a67['length'];_0x2e520c++)if(_0x161a67[_0x2e520c]!=_0x147928[_0x2e520c]&&!_0x161a67[_0x2e520c]['eq'](_0x147928[_0x2e520c]))return!0x1;return!0x0;}function remove(_0x45604c,_0x336e87){for(let _0x3323ca=_0x336e87,_0x46a508=_0x45604c['length']-0x1;_0x3323ca<_0x46a508;_0x3323ca++)_0x45604c[_0x3323ca]=_0x45604c[_0x3323ca+0x1];_0x45604c['pop']();}function insert(_0x40f124,_0xbe950a,_0x5c33b5){for(let _0x5f1de9=_0x40f124['length']-0x1;_0x5f1de9>=_0xbe950a;_0x5f1de9--)_0x40f124[_0x5f1de9+0x1]=_0x40f124[_0x5f1de9];_0x40f124[_0xbe950a]=_0x5c33b5;}function findMinIndex(_0x2ae079,_0x146ab1){let _0x422d5=-0x1,_0xc89f1f=0x3b9aca00;for(let _0x2595ef=0x0;_0x2595ef<_0x146ab1['length'];_0x2595ef++)(_0x146ab1[_0x2595ef]-_0xc89f1f||_0x2ae079[_0x2595ef]['endSide']-_0x2ae079[_0x422d5]['endSide'])<0x0&&(_0x422d5=_0x2595ef,_0xc89f1f=_0x146ab1[_0x2595ef]);return _0x422d5;}function countColumn(_0x348d58,_0x34e8b9,_0x3b34e1=_0x348d58['length']){let _0x569976=0x0;for(let _0x4a036c=0x0;_0x4a036c<_0x3b34e1&&_0x4a036c<_0x348d58['length'];)0x9==_0x348d58['charCodeAt'](_0x4a036c)?(_0x569976+=_0x34e8b9-_0x569976%_0x34e8b9,_0x4a036c++):(_0x569976++,_0x4a036c=findClusterBreak(_0x348d58,_0x4a036c));return _0x569976;}function findColumn(_0x4920af,_0x27fe2e,_0x230422,_0x2d48c7){for(let _0x5d9a41=0x0,_0x3a33d0=0x0;;){if(_0x3a33d0>=_0x27fe2e)return _0x5d9a41;if(_0x5d9a41==_0x4920af['length'])break;_0x3a33d0+=0x9==_0x4920af['charCodeAt'](_0x5d9a41)?_0x230422-_0x3a33d0%_0x230422:0x1,_0x5d9a41=findClusterBreak(_0x4920af,_0x5d9a41);}return!0x0===_0x2d48c7?-0x1:_0x4920af['length'];}const C$1='ͼ',COUNT='undefined'==typeof Symbol?'__'+C$1:Symbol['for'](C$1),SET='undefined'==typeof Symbol?'__styleSet'+Math['floor'](0x5f5e100*Math['random']()):Symbol('styleSet'),top='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:{};class StyleModule{constructor(_0x11cdbf,_0x3f35a0){this['rules']=[];let {finish:_0x5d81a0}=_0x3f35a0||{};function _0x162907(_0x5e3541){return/^@/['test'](_0x5e3541)?[_0x5e3541]:_0x5e3541['split'](/,\s*/);}function _0x1d56f9(_0x36d918,_0x329976,_0xff3559,_0x696d98){let _0x11db7a=[],_0x5bea67=/^@(\w+)\b/['exec'](_0x36d918[0x0]),_0x318bbb=_0x5bea67&&'keyframes'==_0x5bea67[0x1];if(_0x5bea67&&null==_0x329976)return _0xff3559['push'](_0x36d918[0x0]+';');for(let _0x439bc4 in _0x329976){let _0x59abb1=_0x329976[_0x439bc4];if(/&/['test'](_0x439bc4))_0x1d56f9(_0x439bc4['split'](/,\s*/)['map'](_0x48b886=>_0x36d918['map'](_0xe3074b=>_0x48b886['replace'](/&/,_0xe3074b)))['reduce']((_0x55f628,_0x40d4ff)=>_0x55f628['concat'](_0x40d4ff)),_0x59abb1,_0xff3559);else{if(_0x59abb1&&'object'==typeof _0x59abb1){if(!_0x5bea67)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x439bc4+')\x20should\x20be\x20a\x20primitive\x20value.');_0x1d56f9(_0x162907(_0x439bc4),_0x59abb1,_0x11db7a,_0x318bbb);}else null!=_0x59abb1&&_0x11db7a['push'](_0x439bc4['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x4541c7=>'-'+_0x4541c7['toLowerCase']())+':\x20'+_0x59abb1+';');}}(_0x11db7a['length']||_0x318bbb)&&_0xff3559['push']((!_0x5d81a0||_0x5bea67||_0x696d98?_0x36d918:_0x36d918['map'](_0x5d81a0))['join'](',\x20')+'\x20{'+_0x11db7a['join']('\x20')+'}');}for(let _0x5f1d96 in _0x11cdbf)_0x1d56f9(_0x162907(_0x5f1d96),_0x11cdbf[_0x5f1d96],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0x518e6e=top[COUNT]||0x1;return top[COUNT]=_0x518e6e+0x1,C$1+_0x518e6e['toString'](0x24);}static['mount'](_0x10706c,_0x2ae432,_0x591169){let _0x378384=_0x10706c[SET],_0xb41e75=_0x591169&&_0x591169['nonce'];_0x378384?_0xb41e75&&_0x378384['setNonce'](_0xb41e75):_0x378384=new StyleSet(_0x10706c,_0xb41e75),_0x378384['mount'](Array['isArray'](_0x2ae432)?_0x2ae432:[_0x2ae432],_0x10706c);}}let adoptedSet=new Map();class StyleSet{constructor(_0x352e44,_0x2d8551){let _0x1cc806=_0x352e44['ownerDocument']||_0x352e44,_0x148008=_0x1cc806['defaultView'];if(!_0x352e44['head']&&_0x352e44['adoptedStyleSheets']&&_0x148008['CSSStyleSheet']){let _0x1c460c=adoptedSet['get'](_0x1cc806);if(_0x1c460c)return _0x352e44[SET]=_0x1c460c;this['sheet']=new _0x148008['CSSStyleSheet'](),adoptedSet['set'](_0x1cc806,this);}else this['styleTag']=_0x1cc806['createElement']('style'),_0x2d8551&&this['styleTag']['setAttribute']('nonce',_0x2d8551);this['modules']=[],_0x352e44[SET]=this;}['mount'](_0x11cccd,_0xfaadd6){let _0x1cf4da=this['sheet'],_0x5cebef=0x0,_0x346f48=0x0;for(let _0x3dd5ab=0x0;_0x3dd5ab<_0x11cccd['length'];_0x3dd5ab++){let _0x931642=_0x11cccd[_0x3dd5ab],_0x391944=this['modules']['indexOf'](_0x931642);if(_0x391944<_0x346f48&&_0x391944>-0x1&&(this['modules']['splice'](_0x391944,0x1),_0x346f48--,_0x391944=-0x1),-0x1==_0x391944){if(this['modules']['splice'](_0x346f48++,0x0,_0x931642),_0x1cf4da){for(let _0x8647e6=0x0;_0x8647e6<_0x931642['rules']['length'];_0x8647e6++)_0x1cf4da['insertRule'](_0x931642['rules'][_0x8647e6],_0x5cebef++);}}else{for(;_0x346f48<_0x391944;)_0x5cebef+=this['modules'][_0x346f48++]['rules']['length'];_0x5cebef+=_0x931642['rules']['length'],_0x346f48++;}}if(_0x1cf4da)_0xfaadd6['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0xfaadd6['adoptedStyleSheets']=[this['sheet'],..._0xfaadd6['adoptedStyleSheets']]);else{let _0x482dfb='';for(let _0x181dda=0x0;_0x181dda<this['modules']['length'];_0x181dda++)_0x482dfb+=this['modules'][_0x181dda]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x482dfb;let _0x5684da=_0xfaadd6['head']||_0xfaadd6;this['styleTag']['parentNode']!=_0x5684da&&_0x5684da['insertBefore'](this['styleTag'],_0x5684da['firstChild']);}}['setNonce'](_0xa0943b){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0xa0943b&&this['styleTag']['setAttribute']('nonce',_0xa0943b);}}for(var base$1={0x8:'Backspace',0x9:'Tab',0xa:'Enter',0xc:'NumLock',0xd:'Enter',0x10:'Shift',0x11:'Control',0x12:'Alt',0x14:'CapsLock',0x1b:'Escape',0x20:'\x20',0x21:'PageUp',0x22:'PageDown',0x23:'End',0x24:'Home',0x25:'ArrowLeft',0x26:'ArrowUp',0x27:'ArrowRight',0x28:'ArrowDown',0x2c:'PrintScreen',0x2d:'Insert',0x2e:'Delete',0x3b:';',0x3d:'=',0x5b:'Meta',0x5c:'Meta',0x6a:'*',0x6b:'+',0x6c:',',0x6d:'-',0x6e:'.',0x6f:'/',0x90:'NumLock',0x91:'ScrollLock',0xa0:'Shift',0xa1:'Shift',0xa2:'Control',0xa3:'Control',0xa4:'Alt',0xa5:'Alt',0xad:'-',0xba:';',0xbb:'=',0xbc:',',0xbd:'-',0xbe:'.',0xbf:'/',0xc0:'`',0xdb:'[',0xdc:'\x5c',0xdd:']',0xde:'\x27'},shift={0x30:')',0x31:'!',0x32:'@',0x33:'#',0x34:'$',0x35:'%',0x36:'^',0x37:'&',0x38:'*',0x39:'(',0x3b:':',0x3d:'+',0xad:'_',0xba:':',0xbb:'+',0xbc:'<',0xbd:'_',0xbe:'>',0xbf:'?',0xc0:'~',0xdb:'{',0xdc:'|',0xdd:'}',0xde:'\x22'},mac='undefined'!=typeof navigator&&/Mac/['test'](navigator['platform']),ie$2='undefined'!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](navigator['userAgent']),i=0x0;i<0xa;i++)base$1[0x30+i]=base$1[0x60+i]=String(i);for(var i=0x1;i<=0x18;i++)base$1[i+0x6f]='F'+i;for(var i=0x41;i<=0x5a;i++)base$1[i]=String['fromCharCode'](i+0x20),shift[i]=String['fromCharCode'](i);for(var code in base$1)shift['hasOwnProperty'](code)||(shift[code]=base$1[code]);function keyName(_0x6abd0){var _0x17ee99=!(mac&&_0x6abd0['metaKey']&&_0x6abd0['shiftKey']&&!_0x6abd0['ctrlKey']&&!_0x6abd0['altKey']||ie$2&&_0x6abd0['shiftKey']&&_0x6abd0['key']&&0x1==_0x6abd0['key']['length']||'Unidentified'==_0x6abd0['key'])&&_0x6abd0['key']||(_0x6abd0['shiftKey']?shift:base$1)[_0x6abd0['keyCode']]||_0x6abd0['key']||'Unidentified';return'Esc'==_0x17ee99&&(_0x17ee99='Escape'),'Del'==_0x17ee99&&(_0x17ee99='Delete'),'Left'==_0x17ee99&&(_0x17ee99='ArrowLeft'),'Up'==_0x17ee99&&(_0x17ee99='ArrowUp'),'Right'==_0x17ee99&&(_0x17ee99='ArrowRight'),'Down'==_0x17ee99&&(_0x17ee99='ArrowDown'),_0x17ee99;}let nav='undefined'!=typeof navigator?navigator:{'userAgent':'','vendor':'','platform':''},doc='undefined'!=typeof document?document:{'documentElement':{'style':{}}};const ie_edge=/Edge\/(\d+)/['exec'](nav['userAgent']),ie_upto10=/MSIE \d/['test'](nav['userAgent']),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](nav['userAgent']),ie$1=!!(ie_upto10||ie_11up||ie_edge),gecko=!ie$1&&/gecko\/(\d+)/i['test'](nav['userAgent']),chrome=!ie$1&&/Chrome\/(\d+)/['exec'](nav['userAgent']),webkit='webkitFontSmoothing'in doc['documentElement']['style'],safari=!ie$1&&/Apple Computer/['test'](nav['vendor']),ios=safari&&(/Mobile\/\w+/['test'](nav['userAgent'])||nav['maxTouchPoints']>0x2);var browser={'mac':ios||/Mac/['test'](nav['platform']),'windows':/Win/['test'](nav['platform']),'linux':/Linux|X11/['test'](nav['platform']),'ie':ie$1,'ie_version':ie_upto10?doc['documentMode']||0x6:ie_11up?+ie_11up[0x1]:ie_edge?+ie_edge[0x1]:0x0,'gecko':gecko,'gecko_version':gecko?+(/Firefox\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'chrome':!!chrome,'chrome_version':chrome?+chrome[0x1]:0x0,'ios':ios,'android':/Android\b/['test'](nav['userAgent']),'webkit_version':webkit?+(/\bAppleWebKit\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'safari':safari,'safari_version':safari?+(/\bVersion\/(\d+(\.\d+)?)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'tabSize':null!=doc['documentElement']['style']['tabSize']?'tab-size':'-moz-tab-size'};function getSelection(_0x266858){let _0x1e3585;return _0x1e3585=0xb==_0x266858['nodeType']?_0x266858['getSelection']?_0x266858:_0x266858['ownerDocument']:_0x266858,_0x1e3585['getSelection']();}function contains(_0x3b9ab8,_0x352dbe){return!!_0x352dbe&&(_0x3b9ab8==_0x352dbe||_0x3b9ab8['contains'](0x1!=_0x352dbe['nodeType']?_0x352dbe['parentNode']:_0x352dbe));}function hasSelection(_0x341a29,_0x236cd0){if(!_0x236cd0['anchorNode'])return!0x1;try{return contains(_0x341a29,_0x236cd0['anchorNode']);}catch(_0x2acf0e){return!0x1;}}function clientRectsFor(_0xb8d0cf){return 0x3==_0xb8d0cf['nodeType']?textRange(_0xb8d0cf,0x0,_0xb8d0cf['nodeValue']['length'])['getClientRects']():0x1==_0xb8d0cf['nodeType']?_0xb8d0cf['getClientRects']():[];}function isEquivalentPosition(_0xcb1fc0,_0x566d9a,_0x4720ab,_0x264d44){return!!_0x4720ab&&(scanFor(_0xcb1fc0,_0x566d9a,_0x4720ab,_0x264d44,-0x1)||scanFor(_0xcb1fc0,_0x566d9a,_0x4720ab,_0x264d44,0x1));}function domIndex(_0x3b93e0){for(var _0x1b8fe6=0x0;;_0x1b8fe6++)if(!(_0x3b93e0=_0x3b93e0['previousSibling']))return _0x1b8fe6;}function isBlockElement(_0x25ef11){return 0x1==_0x25ef11['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x25ef11['nodeName']);}function scanFor(_0x38400d,_0x157f94,_0x27e1db,_0x5acb1b,_0x3c65c2){for(;;){if(_0x38400d==_0x27e1db&&_0x157f94==_0x5acb1b)return!0x0;if(_0x157f94==(_0x3c65c2<0x0?0x0:maxOffset(_0x38400d))){if('DIV'==_0x38400d['nodeName'])return!0x1;let _0x34a96b=_0x38400d['parentNode'];if(!_0x34a96b||0x1!=_0x34a96b['nodeType'])return!0x1;_0x157f94=domIndex(_0x38400d)+(_0x3c65c2<0x0?0x0:0x1),_0x38400d=_0x34a96b;}else{if(0x1!=_0x38400d['nodeType'])return!0x1;if(0x1==(_0x38400d=_0x38400d['childNodes'][_0x157f94+(_0x3c65c2<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x38400d['contentEditable'])return!0x1;_0x157f94=_0x3c65c2<0x0?maxOffset(_0x38400d):0x0;}}}function maxOffset(_0x39c4d4){return 0x3==_0x39c4d4['nodeType']?_0x39c4d4['nodeValue']['length']:_0x39c4d4['childNodes']['length'];}function flattenRect(_0x8264f0,_0x2a28f7){let _0x489fad=_0x2a28f7?_0x8264f0['left']:_0x8264f0['right'];return{'left':_0x489fad,'right':_0x489fad,'top':_0x8264f0['top'],'bottom':_0x8264f0['bottom']};}function windowRect(_0x1f480c){let _0xef9550=_0x1f480c['visualViewport'];return _0xef9550?{'left':0x0,'right':_0xef9550['width'],'top':0x0,'bottom':_0xef9550['height']}:{'left':0x0,'right':_0x1f480c['innerWidth'],'top':0x0,'bottom':_0x1f480c['innerHeight']};}function getScale(_0x1c166b,_0x5dd437){let _0x4cd3c3=_0x5dd437['width']/_0x1c166b['offsetWidth'],_0x51581e=_0x5dd437['height']/_0x1c166b['offsetHeight'];return(_0x4cd3c3>0.995&&_0x4cd3c3<1.005||!isFinite(_0x4cd3c3)||Math['abs'](_0x5dd437['width']-_0x1c166b['offsetWidth'])<0x1)&&(_0x4cd3c3=0x1),(_0x51581e>0.995&&_0x51581e<1.005||!isFinite(_0x51581e)||Math['abs'](_0x5dd437['height']-_0x1c166b['offsetHeight'])<0x1)&&(_0x51581e=0x1),{'scaleX':_0x4cd3c3,'scaleY':_0x51581e};}function scrollRectIntoView(_0x2f4dea,_0x230ee1,_0x1a609e,_0x119fea,_0x5af645,_0x41552b,_0x2aaa6b,_0x4f7bdc){let _0x192a54=_0x2f4dea['ownerDocument'],_0x5de7bc=_0x192a54['defaultView']||window;for(let _0x26b02b=_0x2f4dea,_0x34206b=!0x1;_0x26b02b&&!_0x34206b;)if(0x1==_0x26b02b['nodeType']){let _0x10bb2b,_0x352245=_0x26b02b==_0x192a54['body'],_0x481a53=0x1,_0x5970e3=0x1;if(_0x352245)_0x10bb2b=windowRect(_0x5de7bc);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x26b02b)['position'])&&(_0x34206b=!0x0),_0x26b02b['scrollHeight']<=_0x26b02b['clientHeight']&&_0x26b02b['scrollWidth']<=_0x26b02b['clientWidth']){_0x26b02b=_0x26b02b['assignedSlot']||_0x26b02b['parentNode'];continue;}let _0x453e0b=_0x26b02b['getBoundingClientRect']();({scaleX:_0x481a53,scaleY:_0x5970e3}=getScale(_0x26b02b,_0x453e0b),_0x10bb2b={'left':_0x453e0b['left'],'right':_0x453e0b['left']+_0x26b02b['clientWidth']*_0x481a53,'top':_0x453e0b['top'],'bottom':_0x453e0b['top']+_0x26b02b['clientHeight']*_0x5970e3});}let _0x1b79b8=0x0,_0x2ff248=0x0;if('nearest'==_0x5af645)_0x230ee1['top']<_0x10bb2b['top']?(_0x2ff248=_0x230ee1['top']-(_0x10bb2b['top']+_0x2aaa6b),_0x1a609e>0x0&&_0x230ee1['bottom']>_0x10bb2b['bottom']+_0x2ff248&&(_0x2ff248=_0x230ee1['bottom']-_0x10bb2b['bottom']+_0x2aaa6b)):_0x230ee1['bottom']>_0x10bb2b['bottom']&&(_0x2ff248=_0x230ee1['bottom']-_0x10bb2b['bottom']+_0x2aaa6b,_0x1a609e<0x0&&_0x230ee1['top']-_0x2ff248<_0x10bb2b['top']&&(_0x2ff248=_0x230ee1['top']-(_0x10bb2b['top']+_0x2aaa6b)));else{let _0x783fce=_0x230ee1['bottom']-_0x230ee1['top'],_0x43214c=_0x10bb2b['bottom']-_0x10bb2b['top'];_0x2ff248=('center'==_0x5af645&&_0x783fce<=_0x43214c?_0x230ee1['top']+_0x783fce/0x2-_0x43214c/0x2:'start'==_0x5af645||'center'==_0x5af645&&_0x1a609e<0x0?_0x230ee1['top']-_0x2aaa6b:_0x230ee1['bottom']-_0x43214c+_0x2aaa6b)-_0x10bb2b['top'];}if('nearest'==_0x119fea)_0x230ee1['left']<_0x10bb2b['left']?(_0x1b79b8=_0x230ee1['left']-(_0x10bb2b['left']+_0x41552b),_0x1a609e>0x0&&_0x230ee1['right']>_0x10bb2b['right']+_0x1b79b8&&(_0x1b79b8=_0x230ee1['right']-_0x10bb2b['right']+_0x41552b)):_0x230ee1['right']>_0x10bb2b['right']&&(_0x1b79b8=_0x230ee1['right']-_0x10bb2b['right']+_0x41552b,_0x1a609e<0x0&&_0x230ee1['left']<_0x10bb2b['left']+_0x1b79b8&&(_0x1b79b8=_0x230ee1['left']-(_0x10bb2b['left']+_0x41552b)));else _0x1b79b8=('center'==_0x119fea?_0x230ee1['left']+(_0x230ee1['right']-_0x230ee1['left'])/0x2-(_0x10bb2b['right']-_0x10bb2b['left'])/0x2:'start'==_0x119fea==_0x4f7bdc?_0x230ee1['left']-_0x41552b:_0x230ee1['right']-(_0x10bb2b['right']-_0x10bb2b['left'])+_0x41552b)-_0x10bb2b['left'];if(_0x1b79b8||_0x2ff248){if(_0x352245)_0x5de7bc['scrollBy'](_0x1b79b8,_0x2ff248);else{let _0x52288e=0x0,_0x40a912=0x0;if(_0x2ff248){let _0x1d122b=_0x26b02b['scrollTop'];_0x26b02b['scrollTop']+=_0x2ff248/_0x5970e3,_0x40a912=(_0x26b02b['scrollTop']-_0x1d122b)*_0x5970e3;}if(_0x1b79b8){let _0x2916fa=_0x26b02b['scrollLeft'];_0x26b02b['scrollLeft']+=_0x1b79b8/_0x481a53,_0x52288e=(_0x26b02b['scrollLeft']-_0x2916fa)*_0x481a53;}_0x230ee1={'left':_0x230ee1['left']-_0x52288e,'top':_0x230ee1['top']-_0x40a912,'right':_0x230ee1['right']-_0x52288e,'bottom':_0x230ee1['bottom']-_0x40a912},_0x52288e&&Math['abs'](_0x52288e-_0x1b79b8)<0x1&&(_0x119fea='nearest'),_0x40a912&&Math['abs'](_0x40a912-_0x2ff248)<0x1&&(_0x5af645='nearest');}}if(_0x352245)break;(_0x230ee1['top']<_0x10bb2b['top']||_0x230ee1['bottom']>_0x10bb2b['bottom']||_0x230ee1['left']<_0x10bb2b['left']||_0x230ee1['right']>_0x10bb2b['right'])&&(_0x230ee1={'left':Math['max'](_0x230ee1['left'],_0x10bb2b['left']),'right':Math['min'](_0x230ee1['right'],_0x10bb2b['right']),'top':Math['max'](_0x230ee1['top'],_0x10bb2b['top']),'bottom':Math['min'](_0x230ee1['bottom'],_0x10bb2b['bottom'])}),_0x26b02b=_0x26b02b['assignedSlot']||_0x26b02b['parentNode'];}else{if(0xb!=_0x26b02b['nodeType'])break;_0x26b02b=_0x26b02b['host'];}}function scrollableParents(_0x5b6442){let _0x1b53bc,_0x5915fc,_0x2ebbe1=_0x5b6442['ownerDocument'];for(let _0x3d86aa=_0x5b6442['parentNode'];_0x3d86aa&&!(_0x3d86aa==_0x2ebbe1['body']||_0x1b53bc&&_0x5915fc);)if(0x1==_0x3d86aa['nodeType'])!_0x5915fc&&_0x3d86aa['scrollHeight']>_0x3d86aa['clientHeight']&&(_0x5915fc=_0x3d86aa),!_0x1b53bc&&_0x3d86aa['scrollWidth']>_0x3d86aa['clientWidth']&&(_0x1b53bc=_0x3d86aa),_0x3d86aa=_0x3d86aa['assignedSlot']||_0x3d86aa['parentNode'];else{if(0xb!=_0x3d86aa['nodeType'])break;_0x3d86aa=_0x3d86aa['host'];}return{'x':_0x1b53bc,'y':_0x5915fc};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x519e94){return this['anchorNode']==_0x519e94['anchorNode']&&this['anchorOffset']==_0x519e94['anchorOffset']&&this['focusNode']==_0x519e94['focusNode']&&this['focusOffset']==_0x519e94['focusOffset'];}['setRange'](_0x424b96){let {anchorNode:_0x141fa8,focusNode:_0x1e2c81}=_0x424b96;this['set'](_0x141fa8,Math['min'](_0x424b96['anchorOffset'],_0x141fa8?maxOffset(_0x141fa8):0x0),_0x1e2c81,Math['min'](_0x424b96['focusOffset'],_0x1e2c81?maxOffset(_0x1e2c81):0x0));}['set'](_0x3e28a8,_0xcc56b,_0x2a846a,_0x14baaf){this['anchorNode']=_0x3e28a8,this['anchorOffset']=_0xcc56b,this['focusNode']=_0x2a846a,this['focusOffset']=_0x14baaf;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x1a3bcb){if(_0x1a3bcb['setActive'])return _0x1a3bcb['setActive']();if(preventScrollSupported)return _0x1a3bcb['focus'](preventScrollSupported);let _0x350ddb=[];for(let _0x30387b=_0x1a3bcb;_0x30387b&&(_0x350ddb['push'](_0x30387b,_0x30387b['scrollTop'],_0x30387b['scrollLeft']),_0x30387b!=_0x30387b['ownerDocument']);_0x30387b=_0x30387b['parentNode']);if(_0x1a3bcb['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x1566d8=0x0;_0x1566d8<_0x350ddb['length'];){let _0x1173fd=_0x350ddb[_0x1566d8++],_0x178227=_0x350ddb[_0x1566d8++],_0x11d920=_0x350ddb[_0x1566d8++];_0x1173fd['scrollTop']!=_0x178227&&(_0x1173fd['scrollTop']=_0x178227),_0x1173fd['scrollLeft']!=_0x11d920&&(_0x1173fd['scrollLeft']=_0x11d920);}}}function textRange(_0x348e85,_0x13488f,_0x136e47=_0x13488f){let _0x78088b=scratchRange||(scratchRange=document['createRange']());return _0x78088b['setEnd'](_0x348e85,_0x136e47),_0x78088b['setStart'](_0x348e85,_0x13488f),_0x78088b;}function dispatchKey(_0x253c79,_0x1056a0,_0x4ece99,_0x26ccf0){let _0xf389={'key':_0x1056a0,'code':_0x1056a0,'keyCode':_0x4ece99,'which':_0x4ece99,'cancelable':!0x0};_0x26ccf0&&({altKey:_0xf389['altKey'],ctrlKey:_0xf389['ctrlKey'],shiftKey:_0xf389['shiftKey'],metaKey:_0xf389['metaKey']}=_0x26ccf0);let _0x19fee0=new KeyboardEvent('keydown',_0xf389);_0x19fee0['synthetic']=!0x0,_0x253c79['dispatchEvent'](_0x19fee0);let _0x233eb2=new KeyboardEvent('keyup',_0xf389);return _0x233eb2['synthetic']=!0x0,_0x253c79['dispatchEvent'](_0x233eb2),_0x19fee0['defaultPrevented']||_0x233eb2['defaultPrevented'];}function getRoot(_0x47bb91){for(;_0x47bb91;){if(_0x47bb91&&(0x9==_0x47bb91['nodeType']||0xb==_0x47bb91['nodeType']&&_0x47bb91['host']))return _0x47bb91;_0x47bb91=_0x47bb91['assignedSlot']||_0x47bb91['parentNode'];}return null;}function clearAttributes(_0x4e0d98){for(;_0x4e0d98['attributes']['length'];)_0x4e0d98['removeAttributeNode'](_0x4e0d98['attributes'][0x0]);}function atElementStart(_0x4c7b92,_0xba4a23){let _0x5e56a8=_0xba4a23['focusNode'],_0x48f084=_0xba4a23['focusOffset'];if(!_0x5e56a8||_0xba4a23['anchorNode']!=_0x5e56a8||_0xba4a23['anchorOffset']!=_0x48f084)return!0x1;for(_0x48f084=Math['min'](_0x48f084,maxOffset(_0x5e56a8));;)if(_0x48f084){if(0x1!=_0x5e56a8['nodeType'])return!0x1;let _0x156ffe=_0x5e56a8['childNodes'][_0x48f084-0x1];'false'==_0x156ffe['contentEditable']?_0x48f084--:(_0x5e56a8=_0x156ffe,_0x48f084=maxOffset(_0x5e56a8));}else{if(_0x5e56a8==_0x4c7b92)return!0x0;_0x48f084=domIndex(_0x5e56a8),_0x5e56a8=_0x5e56a8['parentNode'];}}function isScrolledToBottom(_0x202974){return _0x202974['scrollTop']>Math['max'](0x1,_0x202974['scrollHeight']-_0x202974['clientHeight']-0x4);}function textNodeBefore(_0x35d0ba,_0x1b9dae){for(let _0x319e1f=_0x35d0ba,_0x5ae65f=_0x1b9dae;;){if(0x3==_0x319e1f['nodeType']&&_0x5ae65f>0x0)return{'node':_0x319e1f,'offset':_0x5ae65f};if(0x1==_0x319e1f['nodeType']&&_0x5ae65f>0x0){if('false'==_0x319e1f['contentEditable'])return null;_0x319e1f=_0x319e1f['childNodes'][_0x5ae65f-0x1],_0x5ae65f=maxOffset(_0x319e1f);}else{if(!_0x319e1f['parentNode']||isBlockElement(_0x319e1f))return null;_0x5ae65f=domIndex(_0x319e1f),_0x319e1f=_0x319e1f['parentNode'];}}}function textNodeAfter(_0x21fd2b,_0x3db8e3){for(let _0x43cef7=_0x21fd2b,_0x572f23=_0x3db8e3;;){if(0x3==_0x43cef7['nodeType']&&_0x572f23<_0x43cef7['nodeValue']['length'])return{'node':_0x43cef7,'offset':_0x572f23};if(0x1==_0x43cef7['nodeType']&&_0x572f23<_0x43cef7['childNodes']['length']){if('false'==_0x43cef7['contentEditable'])return null;_0x43cef7=_0x43cef7['childNodes'][_0x572f23],_0x572f23=0x0;}else{if(!_0x43cef7['parentNode']||isBlockElement(_0x43cef7))return null;_0x572f23=domIndex(_0x43cef7)+0x1,_0x43cef7=_0x43cef7['parentNode'];}}}browser['safari']&&browser['safari_version']>=0x1a&&(preventScrollSupported=!0x1);class DOMPos{constructor(_0x1218f,_0x53da95,_0x3318c3=!0x0){this['node']=_0x1218f,this['offset']=_0x53da95,this['precise']=_0x3318c3;}static['before'](_0x4ff963,_0x22ded7){return new DOMPos(_0x4ff963['parentNode'],domIndex(_0x4ff963),_0x22ded7);}static['after'](_0x57f36c,_0x34c124){return new DOMPos(_0x57f36c['parentNode'],domIndex(_0x57f36c)+0x1,_0x34c124);}}const noChildren=[];class ContentView{constructor(){this['parent']=null,this['dom']=null,this['flags']=0x2;}get['overrideDOMText'](){return null;}get['posAtStart'](){return this['parent']?this['parent']['posBefore'](this):0x0;}get['posAtEnd'](){return this['posAtStart']+this['length'];}['posBefore'](_0x2a2b1e){let _0x25cef7=this['posAtStart'];for(let _0x41ec79 of this['children']){if(_0x41ec79==_0x2a2b1e)return _0x25cef7;_0x25cef7+=_0x41ec79['length']+_0x41ec79['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0x5b5530){return this['posBefore'](_0x5b5530)+_0x5b5530['length'];}['sync'](_0x2d6533,_0x3e0f05){if(0x2&this['flags']){let _0x25efba,_0x5032ed=this['dom'],_0x28e3bc=null;for(let _0x35a32d of this['children']){if(0x7&_0x35a32d['flags']){if(!_0x35a32d['dom']&&(_0x25efba=_0x28e3bc?_0x28e3bc['nextSibling']:_0x5032ed['firstChild'])){let _0x3c5de0=ContentView['get'](_0x25efba);(!_0x3c5de0||!_0x3c5de0['parent']&&_0x3c5de0['canReuseDOM'](_0x35a32d))&&_0x35a32d['reuseDOM'](_0x25efba);}_0x35a32d['sync'](_0x2d6533,_0x3e0f05),_0x35a32d['flags']&=-0x8;}if(_0x25efba=_0x28e3bc?_0x28e3bc['nextSibling']:_0x5032ed['firstChild'],_0x3e0f05&&!_0x3e0f05['written']&&_0x3e0f05['node']==_0x5032ed&&_0x25efba!=_0x35a32d['dom']&&(_0x3e0f05['written']=!0x0),_0x35a32d['dom']['parentNode']==_0x5032ed){for(;_0x25efba&&_0x25efba!=_0x35a32d['dom'];)_0x25efba=rm$1(_0x25efba);}else _0x5032ed['insertBefore'](_0x35a32d['dom'],_0x25efba);_0x28e3bc=_0x35a32d['dom'];}for(_0x25efba=_0x28e3bc?_0x28e3bc['nextSibling']:_0x5032ed['firstChild'],_0x25efba&&_0x3e0f05&&_0x3e0f05['node']==_0x5032ed&&(_0x3e0f05['written']=!0x0);_0x25efba;)_0x25efba=rm$1(_0x25efba);}else{if(0x1&this['flags']){for(let _0x3ebefe of this['children'])0x7&_0x3ebefe['flags']&&(_0x3ebefe['sync'](_0x2d6533,_0x3e0f05),_0x3ebefe['flags']&=-0x8);}}}['reuseDOM'](_0x1ae53e){}['localPosFromDOM'](_0x453402,_0x5dc561){let _0x55792b;if(_0x453402==this['dom'])_0x55792b=this['dom']['childNodes'][_0x5dc561];else{let _0x214b64=0x0==maxOffset(_0x453402)?0x0:0x0==_0x5dc561?-0x1:0x1;for(;;){let _0x5732a2=_0x453402['parentNode'];if(_0x5732a2==this['dom'])break;0x0==_0x214b64&&_0x5732a2['firstChild']!=_0x5732a2['lastChild']&&(_0x214b64=_0x453402==_0x5732a2['firstChild']?-0x1:0x1),_0x453402=_0x5732a2;}_0x55792b=_0x214b64<0x0?_0x453402:_0x453402['nextSibling'];}if(_0x55792b==this['dom']['firstChild'])return 0x0;for(;_0x55792b&&!ContentView['get'](_0x55792b);)_0x55792b=_0x55792b['nextSibling'];if(!_0x55792b)return this['length'];for(let _0x4198b8=0x0,_0x33422f=0x0;;_0x4198b8++){let _0x313094=this['children'][_0x4198b8];if(_0x313094['dom']==_0x55792b)return _0x33422f;_0x33422f+=_0x313094['length']+_0x313094['breakAfter'];}}['domBoundsAround'](_0x495318,_0x135210,_0x5d158a=0x0){let _0x4afd7d=-0x1,_0x884e9e=-0x1,_0x4ca217=-0x1,_0x31ab49=-0x1;for(let _0x214503=0x0,_0x383196=_0x5d158a,_0x669791=_0x5d158a;_0x214503<this['children']['length'];_0x214503++){let _0x567d2c=this['children'][_0x214503],_0x1a559e=_0x383196+_0x567d2c['length'];if(_0x383196<_0x495318&&_0x1a559e>_0x135210)return _0x567d2c['domBoundsAround'](_0x495318,_0x135210,_0x383196);if(_0x1a559e>=_0x495318&&-0x1==_0x4afd7d&&(_0x4afd7d=_0x214503,_0x884e9e=_0x383196),_0x383196>_0x135210&&_0x567d2c['dom']['parentNode']==this['dom']){_0x4ca217=_0x214503,_0x31ab49=_0x669791;break;}_0x669791=_0x1a559e,_0x383196=_0x1a559e+_0x567d2c['breakAfter'];}return{'from':_0x884e9e,'to':_0x31ab49<0x0?_0x5d158a+this['length']:_0x31ab49,'startDOM':(_0x4afd7d?this['children'][_0x4afd7d-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0x4ca217<this['children']['length']&&_0x4ca217>=0x0?this['children'][_0x4ca217]['dom']:null};}['markDirty'](_0x4d06fc=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0x4d06fc);}['markParentsDirty'](_0x5e4e5f){for(let _0x4c577a=this['parent'];_0x4c577a;_0x4c577a=_0x4c577a['parent']){if(_0x5e4e5f&&(_0x4c577a['flags']|=0x2),0x1&_0x4c577a['flags'])return;_0x4c577a['flags']|=0x1,_0x5e4e5f=!0x1;}}['setParent'](_0x4d3ad9){this['parent']!=_0x4d3ad9&&(this['parent']=_0x4d3ad9,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x2f6fbd){this['dom']!=_0x2f6fbd&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x2f6fbd,_0x2f6fbd['cmView']=this);}get['rootView'](){for(let _0xef8453=this;;){let _0x4d15bf=_0xef8453['parent'];if(!_0x4d15bf)return _0xef8453;_0xef8453=_0x4d15bf;}}['replaceChildren'](_0x44e166,_0x57f8b4,_0x594e09=noChildren){this['markDirty']();for(let _0x4bf0ba=_0x44e166;_0x4bf0ba<_0x57f8b4;_0x4bf0ba++){let _0x232a15=this['children'][_0x4bf0ba];_0x232a15['parent']==this&&_0x594e09['indexOf'](_0x232a15)<0x0&&_0x232a15['destroy']();}_0x594e09['length']<0xfa?this['children']['splice'](_0x44e166,_0x57f8b4-_0x44e166,..._0x594e09):this['children']=[]['concat'](this['children']['slice'](0x0,_0x44e166),_0x594e09,this['children']['slice'](_0x57f8b4));for(let _0x4bd99e=0x0;_0x4bd99e<_0x594e09['length'];_0x4bd99e++)_0x594e09[_0x4bd99e]['setParent'](this);}['ignoreMutation'](_0x5144f6){return!0x1;}['ignoreEvent'](_0x4567ec){return!0x1;}['childCursor'](_0x4b400d=this['length']){return new ChildCursor(this['children'],_0x4b400d,this['children']['length']);}['childPos'](_0x270ca3,_0x43afcc=0x1){return this['childCursor']()['findPos'](_0x270ca3,_0x43afcc);}['toString'](){let _0x4c5807=this['constructor']['name']['replace']('View','');return _0x4c5807+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x4c5807?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0x4cb2c1){return _0x4cb2c1['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0x3baab8,_0x44cbf0,_0x50b3ae,_0x2aeccb,_0x12585b,_0x4b2e98){return!0x1;}['become'](_0x5eafa8){return!0x1;}['canReuseDOM'](_0x2722ce){return _0x2722ce['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x2722ce['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0x39196c of this['children'])_0x39196c['parent']==this&&_0x39196c['destroy']();this['parent']=null;}}function rm$1(_0x1a7481){let _0x4c291a=_0x1a7481['nextSibling'];return _0x1a7481['parentNode']['removeChild'](_0x1a7481),_0x4c291a;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x2636a8,_0x40166c,_0x4c200b){this['children']=_0x2636a8,this['pos']=_0x40166c,this['i']=_0x4c200b,this['off']=0x0;}['findPos'](_0x5a22a2,_0x380e64=0x1){for(;;){if(_0x5a22a2>this['pos']||_0x5a22a2==this['pos']&&(_0x380e64>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x5a22a2-this['pos'],this;let _0x4218b7=this['children'][--this['i']];this['pos']-=_0x4218b7['length']+_0x4218b7['breakAfter'];}}}function replaceRange(_0x4e386b,_0x317cef,_0x3d125d,_0x2d5612,_0x189567,_0x2c554d,_0x5dd416,_0xfacc6a,_0x39f459){let {children:_0x99ad90}=_0x4e386b,_0x26b2a0=_0x99ad90['length']?_0x99ad90[_0x317cef]:null,_0x126adf=_0x2c554d['length']?_0x2c554d[_0x2c554d['length']-0x1]:null,_0x1e3d31=_0x126adf?_0x126adf['breakAfter']:_0x5dd416;if(!(_0x317cef==_0x2d5612&&_0x26b2a0&&!_0x5dd416&&!_0x1e3d31&&_0x2c554d['length']<0x2&&_0x26b2a0['merge'](_0x3d125d,_0x189567,_0x2c554d['length']?_0x126adf:null,0x0==_0x3d125d,_0xfacc6a,_0x39f459))){if(_0x2d5612<_0x99ad90['length']){let _0x2616fd=_0x99ad90[_0x2d5612];_0x2616fd&&(_0x189567<_0x2616fd['length']||_0x2616fd['breakAfter']&&(null==_0x126adf?void 0x0:_0x126adf['breakAfter']))?(_0x317cef==_0x2d5612&&(_0x2616fd=_0x2616fd['split'](_0x189567),_0x189567=0x0),!_0x1e3d31&&_0x126adf&&_0x2616fd['merge'](0x0,_0x189567,_0x126adf,!0x0,0x0,_0x39f459)?_0x2c554d[_0x2c554d['length']-0x1]=_0x2616fd:((_0x189567||_0x2616fd['children']['length']&&!_0x2616fd['children'][0x0]['length'])&&_0x2616fd['merge'](0x0,_0x189567,null,!0x1,0x0,_0x39f459),_0x2c554d['push'](_0x2616fd))):(null==_0x2616fd?void 0x0:_0x2616fd['breakAfter'])&&(_0x126adf?_0x126adf['breakAfter']=0x1:_0x5dd416=0x1),_0x2d5612++;}for(_0x26b2a0&&(_0x26b2a0['breakAfter']=_0x5dd416,_0x3d125d>0x0&&(!_0x5dd416&&_0x2c554d['length']&&_0x26b2a0['merge'](_0x3d125d,_0x26b2a0['length'],_0x2c554d[0x0],!0x1,_0xfacc6a,0x0)?_0x26b2a0['breakAfter']=_0x2c554d['shift']()['breakAfter']:(_0x3d125d<_0x26b2a0['length']||_0x26b2a0['children']['length']&&0x0==_0x26b2a0['children'][_0x26b2a0['children']['length']-0x1]['length'])&&_0x26b2a0['merge'](_0x3d125d,_0x26b2a0['length'],null,!0x1,_0xfacc6a,0x0),_0x317cef++));_0x317cef<_0x2d5612&&_0x2c554d['length'];)if(_0x99ad90[_0x2d5612-0x1]['become'](_0x2c554d[_0x2c554d['length']-0x1]))_0x2d5612--,_0x2c554d['pop'](),_0x39f459=_0x2c554d['length']?0x0:_0xfacc6a;else{if(!_0x99ad90[_0x317cef]['become'](_0x2c554d[0x0]))break;_0x317cef++,_0x2c554d['shift'](),_0xfacc6a=_0x2c554d['length']?0x0:_0x39f459;}!_0x2c554d['length']&&_0x317cef&&_0x2d5612<_0x99ad90['length']&&!_0x99ad90[_0x317cef-0x1]['breakAfter']&&_0x99ad90[_0x2d5612]['merge'](0x0,0x0,_0x99ad90[_0x317cef-0x1],!0x1,_0xfacc6a,_0x39f459)&&_0x317cef--,(_0x317cef<_0x2d5612||_0x2c554d['length'])&&_0x4e386b['replaceChildren'](_0x317cef,_0x2d5612,_0x2c554d);}}function mergeChildrenInto(_0x5ed171,_0x101017,_0x8eefe0,_0x512491,_0x38672e,_0x31560c){let _0x334f18=_0x5ed171['childCursor'](),{i:_0x1015c3,off:_0x3f3a8b}=_0x334f18['findPos'](_0x8eefe0,0x1),{i:_0x19da04,off:_0x1675f6}=_0x334f18['findPos'](_0x101017,-0x1),_0x4a042d=_0x101017-_0x8eefe0;for(let _0x4f50b6 of _0x512491)_0x4a042d+=_0x4f50b6['length'];_0x5ed171['length']+=_0x4a042d,replaceRange(_0x5ed171,_0x19da04,_0x1675f6,_0x1015c3,_0x3f3a8b,_0x512491,0x0,_0x38672e,_0x31560c);}const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x3bd23e){super(),this['text']=_0x3bd23e;}get['length'](){return this['text']['length'];}['createDOM'](_0x5c0e85){this['setDOM'](_0x5c0e85||document['createTextNode'](this['text']));}['sync'](_0x5f0a40,_0x49fb5a){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x49fb5a&&_0x49fb5a['node']==this['dom']&&(_0x49fb5a['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x67a3ac){0x3==_0x67a3ac['nodeType']&&this['createDOM'](_0x67a3ac);}['merge'](_0x184080,_0x1c0dd7,_0x2d83f5){return!(0x8&this['flags']||_0x2d83f5&&(!(_0x2d83f5 instanceof TextView)||this['length']-(_0x1c0dd7-_0x184080)+_0x2d83f5['length']>MaxJoinLen||0x8&_0x2d83f5['flags']))&&(this['text']=this['text']['slice'](0x0,_0x184080)+(_0x2d83f5?_0x2d83f5['text']:'')+this['text']['slice'](_0x1c0dd7),this['markDirty'](),!0x0);}['split'](_0x199d6c){let _0x27d39c=new TextView(this['text']['slice'](_0x199d6c));return this['text']=this['text']['slice'](0x0,_0x199d6c),this['markDirty'](),_0x27d39c['flags']|=0x8&this['flags'],_0x27d39c;}['localPosFromDOM'](_0x5edbbc,_0x28f86a){return _0x5edbbc==this['dom']?_0x28f86a:_0x28f86a?this['text']['length']:0x0;}['domAtPos'](_0x4dcf9a){return new DOMPos(this['dom'],_0x4dcf9a);}['domBoundsAround'](_0x5f2a1b,_0x10851d,_0x3fd97a){return{'from':_0x3fd97a,'to':_0x3fd97a+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0x5c2188,_0x187e76){return textCoords(this['dom'],_0x5c2188,_0x187e76);}}class MarkView extends ContentView{constructor(_0x1428cf,_0x3a312a=[],_0x3e5fbf=0x0){super(),this['mark']=_0x1428cf,this['children']=_0x3a312a,this['length']=_0x3e5fbf;for(let _0x58803d of _0x3a312a)_0x58803d['setParent'](this);}['setAttrs'](_0x19f32f){if(clearAttributes(_0x19f32f),this['mark']['class']&&(_0x19f32f['className']=this['mark']['class']),this['mark']['attrs']){for(let _0x706550 in this['mark']['attrs'])_0x19f32f['setAttribute'](_0x706550,this['mark']['attrs'][_0x706550]);}return _0x19f32f;}['canReuseDOM'](_0x1b02bf){return super['canReuseDOM'](_0x1b02bf)&&!(0x8&(this['flags']|_0x1b02bf['flags']));}['reuseDOM'](_0x554e28){_0x554e28['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x554e28),this['flags']|=0x6);}['sync'](_0x4d4219,_0x6d496){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x4d4219,_0x6d496);}['merge'](_0x44a88b,_0x35aa48,_0x3a8b32,_0x40da0f,_0x1195a9,_0x3e8a69){return(!_0x3a8b32||!(!(_0x3a8b32 instanceof MarkView&&_0x3a8b32['mark']['eq'](this['mark']))||_0x44a88b&&_0x1195a9<=0x0||_0x35aa48<this['length']&&_0x3e8a69<=0x0))&&(mergeChildrenInto(this,_0x44a88b,_0x35aa48,_0x3a8b32?_0x3a8b32['children']['slice']():[],_0x1195a9-0x1,_0x3e8a69-0x1),this['markDirty'](),!0x0);}['split'](_0x200377){let _0x516808=[],_0xd12e27=0x0,_0xe0a6c5=-0x1,_0x340464=0x0;for(let _0x577163 of this['children']){let _0x554dc7=_0xd12e27+_0x577163['length'];_0x554dc7>_0x200377&&_0x516808['push'](_0xd12e27<_0x200377?_0x577163['split'](_0x200377-_0xd12e27):_0x577163),_0xe0a6c5<0x0&&_0xd12e27>=_0x200377&&(_0xe0a6c5=_0x340464),_0xd12e27=_0x554dc7,_0x340464++;}let _0x4ea623=this['length']-_0x200377;return this['length']=_0x200377,_0xe0a6c5>-0x1&&(this['children']['length']=_0xe0a6c5,this['markDirty']()),new MarkView(this['mark'],_0x516808,_0x4ea623);}['domAtPos'](_0x2aa594){return inlineDOMAtPos(this,_0x2aa594);}['coordsAt'](_0xb3c677,_0x883452){return coordsInChildren(this,_0xb3c677,_0x883452);}}function textCoords(_0x249809,_0x363f82,_0x3821ab){let _0x33c45e=_0x249809['nodeValue']['length'];_0x363f82>_0x33c45e&&(_0x363f82=_0x33c45e);let _0x49b45c=_0x363f82,_0x5b58f4=_0x363f82,_0x91ae71=0x0;0x0==_0x363f82&&_0x3821ab<0x0||_0x363f82==_0x33c45e&&_0x3821ab>=0x0?browser['chrome']||browser['gecko']||(_0x363f82?(_0x49b45c--,_0x91ae71=0x1):_0x5b58f4<_0x33c45e&&(_0x5b58f4++,_0x91ae71=-0x1)):_0x3821ab<0x0?_0x49b45c--:_0x5b58f4<_0x33c45e&&_0x5b58f4++;let _0x1a04dc=textRange(_0x249809,_0x49b45c,_0x5b58f4)['getClientRects']();if(!_0x1a04dc['length'])return null;let _0x4a5ded=_0x1a04dc[(_0x91ae71?_0x91ae71<0x0:_0x3821ab>=0x0)?0x0:_0x1a04dc['length']-0x1];return browser['safari']&&!_0x91ae71&&0x0==_0x4a5ded['width']&&(_0x4a5ded=Array['prototype']['find']['call'](_0x1a04dc,_0x581db0=>_0x581db0['width'])||_0x4a5ded),_0x91ae71?flattenRect(_0x4a5ded,_0x91ae71<0x0):_0x4a5ded||null;}class WidgetView extends ContentView{static['create'](_0x32a072,_0x8edd0b,_0xc8cd7b){return new WidgetView(_0x32a072,_0x8edd0b,_0xc8cd7b);}constructor(_0x3bfbe3,_0x4b9099,_0x3c8dae){super(),this['widget']=_0x3bfbe3,this['length']=_0x4b9099,this['side']=_0x3c8dae,this['prevWidget']=null;}['split'](_0x27327a){let _0x57c5f5=WidgetView['create'](this['widget'],this['length']-_0x27327a,this['side']);return this['length']-=_0x27327a,_0x57c5f5;}['sync'](_0x585d12){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x585d12)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x585d12)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x112772,_0x1aafb4,_0x4783ef,_0x287273,_0xe7cd53,_0x5e0b7d){return!(_0x4783ef&&(!(_0x4783ef instanceof WidgetView&&this['widget']['compare'](_0x4783ef['widget']))||_0x112772>0x0&&_0xe7cd53<=0x0||_0x1aafb4<this['length']&&_0x5e0b7d<=0x0))&&(this['length']=_0x112772+(_0x4783ef?_0x4783ef['length']:0x0)+(this['length']-_0x1aafb4),!0x0);}['become'](_0x4668c2){return _0x4668c2 instanceof WidgetView&&_0x4668c2['side']==this['side']&&this['widget']['constructor']==_0x4668c2['widget']['constructor']&&(this['widget']['compare'](_0x4668c2['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x4668c2['widget'],this['length']=_0x4668c2['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x27d116){return this['widget']['ignoreEvent'](_0x27d116);}get['overrideDOMText'](){if(0x0==this['length'])return Text$1['empty'];let _0x2ba864=this;for(;_0x2ba864['parent'];)_0x2ba864=_0x2ba864['parent'];let {view:_0x18cfd1}=_0x2ba864,_0x354e9d=_0x18cfd1&&_0x18cfd1['state']['doc'],_0x1d53fc=this['posAtStart'];return _0x354e9d?_0x354e9d['slice'](_0x1d53fc,_0x1d53fc+this['length']):Text$1['empty'];}['domAtPos'](_0xdd6b48){return(this['length']?0x0==_0xdd6b48:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0xdd6b48==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x5dc17b,_0x2879d7){let _0x40a92c=this['widget']['coordsAt'](this['dom'],_0x5dc17b,_0x2879d7);if(_0x40a92c)return _0x40a92c;let _0x19d70b=this['dom']['getClientRects'](),_0xe190f5=null;if(!_0x19d70b['length'])return null;let _0x2fe509=this['side']?this['side']<0x0:_0x5dc17b>0x0;for(let _0x2d5829=_0x2fe509?_0x19d70b['length']-0x1:0x0;_0xe190f5=_0x19d70b[_0x2d5829],!(_0x5dc17b>0x0?0x0==_0x2d5829:_0x2d5829==_0x19d70b['length']-0x1||_0xe190f5['top']<_0xe190f5['bottom']);_0x2d5829+=_0x2fe509?-0x1:0x1);return flattenRect(_0xe190f5,!_0x2fe509);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}get['isHidden'](){return this['widget']['isHidden'];}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}}class WidgetBufferView extends ContentView{constructor(_0x118c28){super(),this['side']=_0x118c28;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x3f4334){return _0x3f4334 instanceof WidgetBufferView&&_0x3f4334['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0x431058=document['createElement']('img');_0x431058['className']='cm-widgetBuffer',_0x431058['setAttribute']('aria-hidden','true'),this['setDOM'](_0x431058);}}['getSide'](){return this['side'];}['domAtPos'](_0x44016b){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x33805d){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text$1['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x583856,_0x5ac219){let _0x37f4f5=_0x583856['dom'],{children:_0x539e70}=_0x583856,_0x510b36=0x0;for(let _0x54e0ca=0x0;_0x510b36<_0x539e70['length'];_0x510b36++){let _0x5b3119=_0x539e70[_0x510b36],_0xadf27f=_0x54e0ca+_0x5b3119['length'];if(!(_0xadf27f==_0x54e0ca&&_0x5b3119['getSide']()<=0x0)){if(_0x5ac219>_0x54e0ca&&_0x5ac219<_0xadf27f&&_0x5b3119['dom']['parentNode']==_0x37f4f5)return _0x5b3119['domAtPos'](_0x5ac219-_0x54e0ca);if(_0x5ac219<=_0x54e0ca)break;_0x54e0ca=_0xadf27f;}}for(let _0x82192b=_0x510b36;_0x82192b>0x0;_0x82192b--){let _0xe99553=_0x539e70[_0x82192b-0x1];if(_0xe99553['dom']['parentNode']==_0x37f4f5)return _0xe99553['domAtPos'](_0xe99553['length']);}for(let _0x2f2d55=_0x510b36;_0x2f2d55<_0x539e70['length'];_0x2f2d55++){let _0x314b6e=_0x539e70[_0x2f2d55];if(_0x314b6e['dom']['parentNode']==_0x37f4f5)return _0x314b6e['domAtPos'](0x0);}return new DOMPos(_0x37f4f5,0x0);}function joinInlineInto(_0x4024f4,_0x2b0600,_0x30e59c){let _0x263a16,{children:_0x5d5c22}=_0x4024f4;_0x30e59c>0x0&&_0x2b0600 instanceof MarkView&&_0x5d5c22['length']&&(_0x263a16=_0x5d5c22[_0x5d5c22['length']-0x1])instanceof MarkView&&_0x263a16['mark']['eq'](_0x2b0600['mark'])?joinInlineInto(_0x263a16,_0x2b0600['children'][0x0],_0x30e59c-0x1):(_0x5d5c22['push'](_0x2b0600),_0x2b0600['setParent'](_0x4024f4)),_0x4024f4['length']+=_0x2b0600['length'];}function coordsInChildren(_0x5765b6,_0x2c6d18,_0x367de2){let _0x2cc4d7=null,_0xa73038=-0x1,_0x48b521=null,_0x3b974c=-0x1;!function _0x455912(_0x4c3c05,_0x51912f){for(let _0x44d369=0x0,_0x18699d=0x0;_0x44d369<_0x4c3c05['children']['length']&&_0x18699d<=_0x51912f;_0x44d369++){let _0x3e7b51=_0x4c3c05['children'][_0x44d369],_0xa72411=_0x18699d+_0x3e7b51['length'];_0xa72411>=_0x51912f&&(_0x3e7b51['children']['length']?_0x455912(_0x3e7b51,_0x51912f-_0x18699d):(!_0x48b521||_0x48b521['isHidden']&&(_0x367de2>0x0||onSameLine(_0x48b521,_0x3e7b51)))&&(_0xa72411>_0x51912f||_0x18699d==_0xa72411&&_0x3e7b51['getSide']()>0x0)?(_0x48b521=_0x3e7b51,_0x3b974c=_0x51912f-_0x18699d):(_0x18699d<_0x51912f||_0x18699d==_0xa72411&&_0x3e7b51['getSide']()<0x0&&!_0x3e7b51['isHidden'])&&(_0x2cc4d7=_0x3e7b51,_0xa73038=_0x51912f-_0x18699d)),_0x18699d=_0xa72411;}}(_0x5765b6,_0x2c6d18);let _0x4598e3=(_0x367de2<0x0?_0x2cc4d7:_0x48b521)||_0x2cc4d7||_0x48b521;return _0x4598e3?_0x4598e3['coordsAt'](Math['max'](0x0,_0x4598e3==_0x2cc4d7?_0xa73038:_0x3b974c),_0x367de2):fallbackRect(_0x5765b6);}function fallbackRect(_0x4feb4b){let _0x4a3c4d=_0x4feb4b['dom']['lastChild'];if(!_0x4a3c4d)return _0x4feb4b['dom']['getBoundingClientRect']();let _0x1e3813=clientRectsFor(_0x4a3c4d);return _0x1e3813[_0x1e3813['length']-0x1]||null;}function onSameLine(_0xde04fe,_0x4c3488){let _0xfc3802=_0xde04fe['coordsAt'](0x0,0x1),_0x4936c3=_0x4c3488['coordsAt'](0x0,0x1);return _0xfc3802&&_0x4936c3&&_0x4936c3['top']<_0xfc3802['bottom'];}function combineAttrs(_0x3a3841,_0x1b74cb){for(let _0x136ba4 in _0x3a3841)'class'==_0x136ba4&&_0x1b74cb['class']?_0x1b74cb['class']+='\x20'+_0x3a3841['class']:'style'==_0x136ba4&&_0x1b74cb['style']?_0x1b74cb['style']+=';'+_0x3a3841['style']:_0x1b74cb[_0x136ba4]=_0x3a3841[_0x136ba4];return _0x1b74cb;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x51997a,_0x31eaaa,_0x219bed){if(_0x51997a==_0x31eaaa)return!0x0;_0x51997a||(_0x51997a=noAttrs$1),_0x31eaaa||(_0x31eaaa=noAttrs$1);let _0x1edcfb=Object['keys'](_0x51997a),_0x4b6588=Object['keys'](_0x31eaaa);if(_0x1edcfb['length']-(_0x219bed&&_0x1edcfb['indexOf'](_0x219bed)>-0x1?0x1:0x0)!=_0x4b6588['length']-(_0x219bed&&_0x4b6588['indexOf'](_0x219bed)>-0x1?0x1:0x0))return!0x1;for(let _0x2ac10c of _0x1edcfb)if(_0x2ac10c!=_0x219bed&&(-0x1==_0x4b6588['indexOf'](_0x2ac10c)||_0x51997a[_0x2ac10c]!==_0x31eaaa[_0x2ac10c]))return!0x1;return!0x0;}function updateAttrs(_0x2f598b,_0x53661,_0x1c09d3){let _0x3bdc40=!0x1;if(_0x53661){for(let _0xef66fe in _0x53661)_0x1c09d3&&_0xef66fe in _0x1c09d3||(_0x3bdc40=!0x0,'style'==_0xef66fe?_0x2f598b['style']['cssText']='':_0x2f598b['removeAttribute'](_0xef66fe));}if(_0x1c09d3){for(let _0x19fedc in _0x1c09d3)_0x53661&&_0x53661[_0x19fedc]==_0x1c09d3[_0x19fedc]||(_0x3bdc40=!0x0,'style'==_0x19fedc?_0x2f598b['style']['cssText']=_0x1c09d3[_0x19fedc]:_0x2f598b['setAttribute'](_0x19fedc,_0x1c09d3[_0x19fedc]));}return _0x3bdc40;}function getAttrs$1(_0x49f6d3){let _0x2dcb03=Object['create'](null);for(let _0x632423=0x0;_0x632423<_0x49f6d3['attributes']['length'];_0x632423++){let _0x5e30ee=_0x49f6d3['attributes'][_0x632423];_0x2dcb03[_0x5e30ee['name']]=_0x5e30ee['value'];}return _0x2dcb03;}class WidgetType{['eq'](_0x2e2574){return!0x1;}['updateDOM'](_0x2a3548,_0x3b0488){return!0x1;}['compare'](_0x5dd6c7){return this==_0x5dd6c7||this['constructor']==_0x5dd6c7['constructor']&&this['eq'](_0x5dd6c7);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x1e493e){return!0x0;}['coordsAt'](_0xe643e0,_0x5dbc16,_0x58a5c3){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0x5eb604){}}var BlockType=function(_0x44dbde){return _0x44dbde[_0x44dbde['Text']=0x0]='Text',_0x44dbde[_0x44dbde['WidgetBefore']=0x1]='WidgetBefore',_0x44dbde[_0x44dbde['WidgetAfter']=0x2]='WidgetAfter',_0x44dbde[_0x44dbde['WidgetRange']=0x3]='WidgetRange',_0x44dbde;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0xa2d5f6,_0x3e1cb7,_0xcc6e38,_0x3cbe12){super(),this['startSide']=_0xa2d5f6,this['endSide']=_0x3e1cb7,this['widget']=_0xcc6e38,this['spec']=_0x3cbe12;}get['heightRelevant'](){return!0x1;}static['mark'](_0x976e95){return new MarkDecoration(_0x976e95);}static['widget'](_0x5afba3){let _0x35023c=Math['max'](-0x2710,Math['min'](0x2710,_0x5afba3['side']||0x0)),_0x31fd8d=!!_0x5afba3['block'];return _0x35023c+=_0x31fd8d&&!_0x5afba3['inlineOrder']?_0x35023c>0x0?0x11e1a300:-0x17d78400:_0x35023c>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x5afba3,_0x35023c,_0x35023c,_0x31fd8d,_0x5afba3['widget']||null,!0x1);}static['replace'](_0x1ae7ca){let _0x4dc7c0,_0x36eb8e,_0x20ebb5=!!_0x1ae7ca['block'];if(_0x1ae7ca['isBlockGap'])_0x4dc7c0=-0x1dcd6500,_0x36eb8e=0x17d78400;else{let {start:_0x3cbc96,end:_0x198514}=getInclusive(_0x1ae7ca,_0x20ebb5);_0x4dc7c0=(_0x3cbc96?_0x20ebb5?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x36eb8e=0x1+(_0x198514?_0x20ebb5?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x1ae7ca,_0x4dc7c0,_0x36eb8e,_0x20ebb5,_0x1ae7ca['widget']||null,!0x0);}static['line'](_0x3d0dab){return new LineDecoration(_0x3d0dab);}static['set'](_0x13e9bb,_0x17344b=!0x1){return RangeSet['of'](_0x13e9bb,_0x17344b);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x2856bb){let {start:_0x37e00c,end:_0x5a1193}=getInclusive(_0x2856bb);super(_0x37e00c?-0x1:0x1dcd6500,_0x5a1193?0x1:-0x23c34600,null,_0x2856bb),this['tagName']=_0x2856bb['tagName']||'span',this['class']=_0x2856bb['class']||'',this['attrs']=_0x2856bb['attributes']||null;}['eq'](_0x1599ee){var _0x490505,_0x22b7be;return this==_0x1599ee||_0x1599ee instanceof MarkDecoration&&this['tagName']==_0x1599ee['tagName']&&(this['class']||(null===(_0x490505=this['attrs'])||void 0x0===_0x490505?void 0x0:_0x490505['class']))==(_0x1599ee['class']||(null===(_0x22b7be=_0x1599ee['attrs'])||void 0x0===_0x22b7be?void 0x0:_0x22b7be['class']))&&attrsEq(this['attrs'],_0x1599ee['attrs'],'class');}['range'](_0x4f1147,_0x3bc954=_0x4f1147){if(_0x4f1147>=_0x3bc954)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x4f1147,_0x3bc954);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0xe84a3e){super(-0xbebc200,-0xbebc200,null,_0xe84a3e);}['eq'](_0x1903b6){return _0x1903b6 instanceof LineDecoration&&this['spec']['class']==_0x1903b6['spec']['class']&&attrsEq(this['spec']['attributes'],_0x1903b6['spec']['attributes']);}['range'](_0x43aabc,_0x4b92fa=_0x43aabc){if(_0x4b92fa!=_0x43aabc)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x43aabc,_0x4b92fa);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x2c163d,_0xc61b20,_0x5c61b0,_0x4ff2d1,_0x120f91,_0x2b8db7){super(_0xc61b20,_0x5c61b0,_0x120f91,_0x2c163d),this['block']=_0x4ff2d1,this['isReplace']=_0x2b8db7,this['mapMode']=_0x4ff2d1?_0xc61b20<=0x0?MapMode['TrackBefore']:MapMode['TrackAfter']:MapMode['TrackDel'];}get['type'](){return this['startSide']!=this['endSide']?BlockType['WidgetRange']:this['startSide']<=0x0?BlockType['WidgetBefore']:BlockType['WidgetAfter'];}get['heightRelevant'](){return this['block']||!!this['widget']&&(this['widget']['estimatedHeight']>=0x5||this['widget']['lineBreaks']>0x0);}['eq'](_0x14802d){return _0x14802d instanceof PointDecoration&&widgetsEq(this['widget'],_0x14802d['widget'])&&this['block']==_0x14802d['block']&&this['startSide']==_0x14802d['startSide']&&this['endSide']==_0x14802d['endSide'];}['range'](_0x5d7df7,_0x4fb2d0=_0x5d7df7){if(this['isReplace']&&(_0x5d7df7>_0x4fb2d0||_0x5d7df7==_0x4fb2d0&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0x4fb2d0!=_0x5d7df7)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x5d7df7,_0x4fb2d0);}}function getInclusive(_0x1efadc,_0x44f346=!0x1){let {inclusiveStart:_0x5a3816,inclusiveEnd:_0x309506}=_0x1efadc;return null==_0x5a3816&&(_0x5a3816=_0x1efadc['inclusive']),null==_0x309506&&(_0x309506=_0x1efadc['inclusive']),{'start':null!=_0x5a3816?_0x5a3816:_0x44f346,'end':null!=_0x309506?_0x309506:_0x44f346};}function widgetsEq(_0x54cd4a,_0x25bf4e){return _0x54cd4a==_0x25bf4e||!!(_0x54cd4a&&_0x25bf4e&&_0x54cd4a['compare'](_0x25bf4e));}function addRange(_0x50ba84,_0x197309,_0x4f6200,_0x30ea62=0x0){let _0x52329e=_0x4f6200['length']-0x1;_0x52329e>=0x0&&_0x4f6200[_0x52329e]+_0x30ea62>=_0x50ba84?_0x4f6200[_0x52329e]=Math['max'](_0x4f6200[_0x52329e],_0x197309):_0x4f6200['push'](_0x50ba84,_0x197309);}PointDecoration['prototype']['point']=!0x0;class LineView extends ContentView{constructor(){super(...arguments),this['children']=[],this['length']=0x0,this['prevAttrs']=void 0x0,this['attrs']=null,this['breakAfter']=0x0;}['merge'](_0x28c401,_0x5f51c3,_0x56521c,_0x400a7f,_0x253143,_0x4adb88){if(_0x56521c){if(!(_0x56521c instanceof LineView))return!0x1;this['dom']||_0x56521c['transferDOM'](this);}return _0x400a7f&&this['setDeco'](_0x56521c?_0x56521c['attrs']:null),mergeChildrenInto(this,_0x28c401,_0x5f51c3,_0x56521c?_0x56521c['children']['slice']():[],_0x253143,_0x4adb88),!0x0;}['split'](_0x3ed1a2){let _0x1d1c96=new LineView();if(_0x1d1c96['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x1d1c96;let {i:_0x1f2cf5,off:_0x3ad38}=this['childPos'](_0x3ed1a2);_0x3ad38&&(_0x1d1c96['append'](this['children'][_0x1f2cf5]['split'](_0x3ad38),0x0),this['children'][_0x1f2cf5]['merge'](_0x3ad38,this['children'][_0x1f2cf5]['length'],null,!0x1,0x0,0x0),_0x1f2cf5++);for(let _0x4261b7=_0x1f2cf5;_0x4261b7<this['children']['length'];_0x4261b7++)_0x1d1c96['append'](this['children'][_0x4261b7],0x0);for(;_0x1f2cf5>0x0&&0x0==this['children'][_0x1f2cf5-0x1]['length'];)this['children'][--_0x1f2cf5]['destroy']();return this['children']['length']=_0x1f2cf5,this['markDirty'](),this['length']=_0x3ed1a2,_0x1d1c96;}['transferDOM'](_0x28dfcb){this['dom']&&(this['markDirty'](),_0x28dfcb['setDOM'](this['dom']),_0x28dfcb['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x2757e2){attrsEq(this['attrs'],_0x2757e2)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x2757e2);}['append'](_0x12b395,_0x1a32e7){joinInlineInto(this,_0x12b395,_0x1a32e7);}['addLineDeco'](_0x277a5e){let _0x245a2c=_0x277a5e['spec']['attributes'],_0x2ba4a2=_0x277a5e['spec']['class'];_0x245a2c&&(this['attrs']=combineAttrs(_0x245a2c,this['attrs']||{})),_0x2ba4a2&&(this['attrs']=combineAttrs({'class':_0x2ba4a2},this['attrs']||{}));}['domAtPos'](_0x70c053){return inlineDOMAtPos(this,_0x70c053);}['reuseDOM'](_0x270e84){'DIV'==_0x270e84['nodeName']&&(this['setDOM'](_0x270e84),this['flags']|=0x6);}['sync'](_0x133d97,_0x4c69e2){var _0xfb46fe;this['dom']?0x4&this['flags']&&(clearAttributes(this['dom']),this['dom']['className']='cm-line',this['prevAttrs']=this['attrs']?null:void 0x0):(this['setDOM'](document['createElement']('div')),this['dom']['className']='cm-line',this['prevAttrs']=this['attrs']?null:void 0x0),void 0x0!==this['prevAttrs']&&(updateAttrs(this['dom'],this['prevAttrs'],this['attrs']),this['dom']['classList']['add']('cm-line'),this['prevAttrs']=void 0x0),super['sync'](_0x133d97,_0x4c69e2);let _0x376ea2=this['dom']['lastChild'];for(;_0x376ea2&&ContentView['get'](_0x376ea2)instanceof MarkView;)_0x376ea2=_0x376ea2['lastChild'];if(!(_0x376ea2&&this['length']&&('BR'==_0x376ea2['nodeName']||0x0!=(null===(_0xfb46fe=ContentView['get'](_0x376ea2))||void 0x0===_0xfb46fe?void 0x0:_0xfb46fe['isEditable'])||browser['ios']&&this['children']['some'](_0x31ca02=>_0x31ca02 instanceof TextView)))){let _0x4546be=document['createElement']('BR');_0x4546be['cmIgnore']=!0x0,this['dom']['appendChild'](_0x4546be);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0x5d91e5,_0x536510=0x0;for(let _0x223020 of this['children']){if(!(_0x223020 instanceof TextView)||/[^ -~]/['test'](_0x223020['text']))return null;let _0x300c9b=clientRectsFor(_0x223020['dom']);if(0x1!=_0x300c9b['length'])return null;_0x536510+=_0x300c9b[0x0]['width'],_0x5d91e5=_0x300c9b[0x0]['height'];}return _0x536510?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0x536510/this['length'],'textHeight':_0x5d91e5}:null;}['coordsAt'](_0xf2d917,_0x10ad43){let _0x441f2e=coordsInChildren(this,_0xf2d917,_0x10ad43);if(!this['children']['length']&&_0x441f2e&&this['parent']){let {heightOracle:_0x3de61b}=this['parent']['view']['viewState'],_0x330522=_0x441f2e['bottom']-_0x441f2e['top'];if(Math['abs'](_0x330522-_0x3de61b['lineHeight'])<0x2&&_0x3de61b['textHeight']<_0x330522){let _0x117d40=(_0x330522-_0x3de61b['textHeight'])/0x2;return{'top':_0x441f2e['top']+_0x117d40,'bottom':_0x441f2e['bottom']-_0x117d40,'left':_0x441f2e['left'],'right':_0x441f2e['left']};}}return _0x441f2e;}['become'](_0x195fd7){return _0x195fd7 instanceof LineView&&0x0==this['children']['length']&&0x0==_0x195fd7['children']['length']&&attrsEq(this['attrs'],_0x195fd7['attrs'])&&this['breakAfter']==_0x195fd7['breakAfter'];}['covers'](){return!0x0;}static['find'](_0x31a479,_0x28c6ce){for(let _0x1a9dc2=0x0,_0x73711e=0x0;_0x1a9dc2<_0x31a479['children']['length'];_0x1a9dc2++){let _0x137845=_0x31a479['children'][_0x1a9dc2],_0xe9fc9b=_0x73711e+_0x137845['length'];if(_0xe9fc9b>=_0x28c6ce){if(_0x137845 instanceof LineView)return _0x137845;if(_0xe9fc9b>_0x28c6ce)break;}_0x73711e=_0xe9fc9b+_0x137845['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x5e8aff,_0x4b9bed,_0x549404){super(),this['widget']=_0x5e8aff,this['length']=_0x4b9bed,this['deco']=_0x549404,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0x3721ca,_0x30e4d1,_0x534d3e,_0x54f05f,_0x28ccb9,_0x3cf888){return!(_0x534d3e&&(!(_0x534d3e instanceof BlockWidgetView&&this['widget']['compare'](_0x534d3e['widget']))||_0x3721ca>0x0&&_0x28ccb9<=0x0||_0x30e4d1<this['length']&&_0x3cf888<=0x0))&&(this['length']=_0x3721ca+(_0x534d3e?_0x534d3e['length']:0x0)+(this['length']-_0x30e4d1),!0x0);}['domAtPos'](_0x42cfd8){return 0x0==_0x42cfd8?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x42cfd8==this['length']);}['split'](_0x310328){let _0x4869e9=this['length']-_0x310328;this['length']=_0x310328;let _0x506008=new BlockWidgetView(this['widget'],_0x4869e9,this['deco']);return _0x506008['breakAfter']=this['breakAfter'],_0x506008;}get['children'](){return noChildren;}['sync'](_0x10594d){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x10594d)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x10594d)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}get['overrideDOMText'](){return this['parent']?this['parent']['view']['state']['doc']['slice'](this['posAtStart'],this['posAtEnd']):Text$1['empty'];}['domBoundsAround'](){return null;}['become'](_0x1cc8f2){return _0x1cc8f2 instanceof BlockWidgetView&&_0x1cc8f2['widget']['constructor']==this['widget']['constructor']&&(_0x1cc8f2['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x1cc8f2['widget'],this['length']=_0x1cc8f2['length'],this['deco']=_0x1cc8f2['deco'],this['breakAfter']=_0x1cc8f2['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x58185b){return this['widget']['ignoreEvent'](_0x58185b);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x2f0fec,_0x196567){let _0x91ae5a=this['widget']['coordsAt'](this['dom'],_0x2f0fec,_0x196567);return _0x91ae5a||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x2f0fec:_0x196567<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0x5ea2d5){let {startSide:_0x1ae3df,endSide:_0x534e50}=this['deco'];return _0x1ae3df!=_0x534e50&&(_0x5ea2d5<0x0?_0x1ae3df<0x0:_0x534e50>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0x5b5d8e){super(),this['height']=_0x5b5d8e;}['toDOM'](){let _0x260468=document['createElement']('div');return _0x260468['className']='cm-gap',this['updateDOM'](_0x260468),_0x260468;}['eq'](_0x4d4c1e){return _0x4d4c1e['height']==this['height'];}['updateDOM'](_0x27daae){return _0x27daae['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x455479,_0x2cbe95,_0x1025d5,_0x52fb6e){this['doc']=_0x455479,this['pos']=_0x2cbe95,this['end']=_0x1025d5,this['disallowBlockEffectsFor']=_0x52fb6e,this['content']=[],this['curLine']=null,this['breakAtStart']=0x0,this['pendingBuffer']=0x0,this['bufferMarks']=[],this['atCursorPos']=!0x0,this['openStart']=-0x1,this['openEnd']=-0x1,this['text']='',this['textOff']=0x0,this['cursor']=_0x455479['iter'](),this['skip']=_0x2cbe95;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x59db8e=this['content'][this['content']['length']-0x1];return!(_0x59db8e['breakAfter']||_0x59db8e instanceof BlockWidgetView&&_0x59db8e['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x584f6c=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x584f6c),_0x584f6c['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x3a7411){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x3a7411);}['finish'](_0x3f5381){this['pendingBuffer']&&_0x3f5381<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0x3f5381&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x913dab,_0x5400c2,_0x165675){for(;_0x913dab>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x48d352,lineBreak:_0x426b46,done:_0x1f7b8e}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x1f7b8e)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x426b46){this['posCovered']()||this['getLine'](),this['content']['length']?this['content'][this['content']['length']-0x1]['breakAfter']=0x1:this['breakAtStart']=0x1,this['flushBuffer'](),this['curLine']=null,this['atCursorPos']=!0x0,_0x913dab--;continue;}this['text']=_0x48d352,this['textOff']=0x0;}let _0x590ea0=Math['min'](this['text']['length']-this['textOff'],_0x913dab),_0x4d725e=Math['min'](_0x590ea0,0x200);this['flushBuffer'](_0x5400c2['slice'](_0x5400c2['length']-_0x165675)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x4d725e)),_0x5400c2),_0x165675),this['atCursorPos']=!0x0,this['textOff']+=_0x4d725e,_0x913dab-=_0x4d725e,_0x165675=_0x590ea0<=_0x4d725e?0x0:_0x5400c2['length'];}}['span'](_0x3c8319,_0x32fdc4,_0x4ba3b2,_0x3a7757){this['buildText'](_0x32fdc4-_0x3c8319,_0x4ba3b2,_0x3a7757),this['pos']=_0x32fdc4,this['openStart']<0x0&&(this['openStart']=_0x3a7757);}['point'](_0x5857ae,_0x24a015,_0x2db900,_0x14a7f8,_0x11e42c,_0x312326){if(this['disallowBlockEffectsFor'][_0x312326]&&_0x2db900 instanceof PointDecoration){if(_0x2db900['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x24a015>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x4758fc=_0x24a015-_0x5857ae;if(_0x2db900 instanceof PointDecoration){if(_0x2db900['block'])_0x2db900['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0x2db900['widget']||NullWidget['block'],_0x4758fc,_0x2db900));else{let _0x259862=WidgetView['create'](_0x2db900['widget']||NullWidget['inline'],_0x4758fc,_0x4758fc?0x0:_0x2db900['startSide']),_0x263941=this['atCursorPos']&&!_0x259862['isEditable']&&_0x11e42c<=_0x14a7f8['length']&&(_0x5857ae<_0x24a015||_0x2db900['startSide']>0x0),_0x135942=!_0x259862['isEditable']&&(_0x5857ae<_0x24a015||_0x11e42c>_0x14a7f8['length']||_0x2db900['startSide']<=0x0),_0x4698b5=this['getLine']();0x2!=this['pendingBuffer']||_0x263941||_0x259862['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0x14a7f8),_0x263941&&(_0x4698b5['append'](wrapMarks(new WidgetBufferView(0x1),_0x14a7f8),_0x11e42c),_0x11e42c=_0x14a7f8['length']+Math['max'](0x0,_0x11e42c-_0x14a7f8['length'])),_0x4698b5['append'](wrapMarks(_0x259862,_0x14a7f8),_0x11e42c),this['atCursorPos']=_0x135942,this['pendingBuffer']=_0x135942?_0x5857ae<_0x24a015||_0x11e42c>_0x14a7f8['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0x14a7f8['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0x2db900);_0x4758fc&&(this['textOff']+_0x4758fc<=this['text']['length']?this['textOff']+=_0x4758fc:(this['skip']+=_0x4758fc-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x24a015),this['openStart']<0x0&&(this['openStart']=_0x11e42c);}static['build'](_0x18d200,_0x2f372a,_0x38c529,_0x403331,_0x488177){let _0xeb18e1=new ContentBuilder(_0x18d200,_0x2f372a,_0x38c529,_0x488177);return _0xeb18e1['openEnd']=RangeSet['spans'](_0x403331,_0x2f372a,_0x38c529,_0xeb18e1),_0xeb18e1['openStart']<0x0&&(_0xeb18e1['openStart']=_0xeb18e1['openEnd']),_0xeb18e1['finish'](_0xeb18e1['openEnd']),_0xeb18e1;}}function wrapMarks(_0x50428c,_0x198065){for(let _0x1167b9 of _0x198065)_0x50428c=new MarkView(_0x1167b9,[_0x50428c],_0x50428c['length']);return _0x50428c;}class NullWidget extends WidgetType{constructor(_0x397a6a){super(),this['tag']=_0x397a6a;}['eq'](_0x499470){return _0x499470['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x5af449){return _0x5af449['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x24e12b){return _0x24e12b[_0x24e12b['LTR']=0x0]='LTR',_0x24e12b[_0x24e12b['RTL']=0x1]='RTL',_0x24e12b;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x470ea5){let _0x5d3d63=[];for(let _0x4565bf=0x0;_0x4565bf<_0x470ea5['length'];_0x4565bf++)_0x5d3d63['push'](0x1<<+_0x470ea5[_0x4565bf]);return _0x5d3d63;}const LowTypes=dec('88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008'),ArabicTypes=dec('4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333'),Brackets=Object['create'](null),BracketStack=[];for(let e of['()','[]','{}']){let i=e['charCodeAt'](0x0),n=e['charCodeAt'](0x1);Brackets[i]=n,Brackets[n]=-i;}function charType(_0x400a85){return _0x400a85<=0xf7?LowTypes[_0x400a85]:0x590<=_0x400a85&&_0x400a85<=0x5f4?0x2:0x600<=_0x400a85&&_0x400a85<=0x6f9?ArabicTypes[_0x400a85-0x600]:0x6ee<=_0x400a85&&_0x400a85<=0x8ac?0x4:0x2000<=_0x400a85&&_0x400a85<=0x200c?0x100:0xfb50<=_0x400a85&&_0x400a85<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x37caa7,_0x23753c,_0x1bce56){this['from']=_0x37caa7,this['to']=_0x23753c,this['level']=_0x1bce56;}['side'](_0x33b540,_0x4e8e3d){return this['dir']==_0x4e8e3d==_0x33b540?this['to']:this['from'];}['forward'](_0x1f8352,_0x18c294){return _0x1f8352==(this['dir']==_0x18c294);}static['find'](_0x25d617,_0x2e93ac,_0x585ecf,_0x25d4fb){let _0x21a482=-0x1;for(let _0x2750c8=0x0;_0x2750c8<_0x25d617['length'];_0x2750c8++){let _0x29af79=_0x25d617[_0x2750c8];if(_0x29af79['from']<=_0x2e93ac&&_0x29af79['to']>=_0x2e93ac){if(_0x29af79['level']==_0x585ecf)return _0x2750c8;(_0x21a482<0x0||(0x0!=_0x25d4fb?_0x25d4fb<0x0?_0x29af79['from']<_0x2e93ac:_0x29af79['to']>_0x2e93ac:_0x25d617[_0x21a482]['level']>_0x29af79['level']))&&(_0x21a482=_0x2750c8);}}if(_0x21a482<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x21a482;}}function isolatesEq(_0x356371,_0x478fcc){if(_0x356371['length']!=_0x478fcc['length'])return!0x1;for(let _0x296e46=0x0;_0x296e46<_0x356371['length'];_0x296e46++){let _0x5c3709=_0x356371[_0x296e46],_0x2d26f7=_0x478fcc[_0x296e46];if(_0x5c3709['from']!=_0x2d26f7['from']||_0x5c3709['to']!=_0x2d26f7['to']||_0x5c3709['direction']!=_0x2d26f7['direction']||!isolatesEq(_0x5c3709['inner'],_0x2d26f7['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0x5b06e6,_0x44b1f0,_0xfaa4f,_0x1b0ad4,_0x48c1d5){for(let _0x3ef78c=0x0;_0x3ef78c<=_0x1b0ad4['length'];_0x3ef78c++){let _0x2e8d5c=_0x3ef78c?_0x1b0ad4[_0x3ef78c-0x1]['to']:_0x44b1f0,_0x1b2388=_0x3ef78c<_0x1b0ad4['length']?_0x1b0ad4[_0x3ef78c]['from']:_0xfaa4f,_0x32d01e=_0x3ef78c?0x100:_0x48c1d5;for(let _0x4f94a7=_0x2e8d5c,_0x1f3a87=_0x32d01e,_0x21857d=_0x32d01e;_0x4f94a7<_0x1b2388;_0x4f94a7++){let _0x3d4414=charType(_0x5b06e6['charCodeAt'](_0x4f94a7));0x200==_0x3d4414?_0x3d4414=_0x1f3a87:0x8==_0x3d4414&&0x4==_0x21857d&&(_0x3d4414=0x10),types[_0x4f94a7]=0x4==_0x3d4414?0x2:_0x3d4414,0x7&_0x3d4414&&(_0x21857d=_0x3d4414),_0x1f3a87=_0x3d4414;}for(let _0x5d9501=_0x2e8d5c,_0x70d306=_0x32d01e,_0x5313f4=_0x32d01e;_0x5d9501<_0x1b2388;_0x5d9501++){let _0x5b4ef5=types[_0x5d9501];if(0x80==_0x5b4ef5)_0x5d9501<_0x1b2388-0x1&&_0x70d306==types[_0x5d9501+0x1]&&0x18&_0x70d306?_0x5b4ef5=types[_0x5d9501]=_0x70d306:types[_0x5d9501]=0x100;else{if(0x40==_0x5b4ef5){let _0x59b46c=_0x5d9501+0x1;for(;_0x59b46c<_0x1b2388&&0x40==types[_0x59b46c];)_0x59b46c++;let _0x4336f0=_0x5d9501&&0x8==_0x70d306||_0x59b46c<_0xfaa4f&&0x8==types[_0x59b46c]?0x1==_0x5313f4?0x1:0x8:0x100;for(let _0xf90d28=_0x5d9501;_0xf90d28<_0x59b46c;_0xf90d28++)types[_0xf90d28]=_0x4336f0;_0x5d9501=_0x59b46c-0x1;}else 0x8==_0x5b4ef5&&0x1==_0x5313f4&&(types[_0x5d9501]=0x1);}_0x70d306=_0x5b4ef5,0x7&_0x5b4ef5&&(_0x5313f4=_0x5b4ef5);}}}function processBracketPairs(_0x46d0d5,_0x5558b3,_0x1672fe,_0x49fe03,_0x37541a){let _0x39fd66=0x1==_0x37541a?0x2:0x1;for(let _0x4e9191=0x0,_0x36c88e=0x0,_0x159068=0x0;_0x4e9191<=_0x49fe03['length'];_0x4e9191++){let _0x4b5039=_0x4e9191?_0x49fe03[_0x4e9191-0x1]['to']:_0x5558b3,_0x521997=_0x4e9191<_0x49fe03['length']?_0x49fe03[_0x4e9191]['from']:_0x1672fe;for(let _0x78939d,_0x5e5ed0,_0x2ec53e,_0x364958=_0x4b5039;_0x364958<_0x521997;_0x364958++)if(_0x5e5ed0=Brackets[_0x78939d=_0x46d0d5['charCodeAt'](_0x364958)]){if(_0x5e5ed0<0x0){for(let _0x27f835=_0x36c88e-0x3;_0x27f835>=0x0;_0x27f835-=0x3)if(BracketStack[_0x27f835+0x1]==-_0x5e5ed0){let _0x1de085=BracketStack[_0x27f835+0x2],_0x4be2ae=0x2&_0x1de085?_0x37541a:0x4&_0x1de085?0x1&_0x1de085?_0x39fd66:_0x37541a:0x0;_0x4be2ae&&(types[_0x364958]=types[BracketStack[_0x27f835]]=_0x4be2ae),_0x36c88e=_0x27f835;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0x36c88e++]=_0x364958,BracketStack[_0x36c88e++]=_0x78939d,BracketStack[_0x36c88e++]=_0x159068;}}else{if(0x2==(_0x2ec53e=types[_0x364958])||0x1==_0x2ec53e){let _0x2d03f9=_0x2ec53e==_0x37541a;_0x159068=_0x2d03f9?0x0:0x1;for(let _0x5a8c04=_0x36c88e-0x3;_0x5a8c04>=0x0;_0x5a8c04-=0x3){let _0x47c7da=BracketStack[_0x5a8c04+0x2];if(0x2&_0x47c7da)break;if(_0x2d03f9)BracketStack[_0x5a8c04+0x2]|=0x2;else{if(0x4&_0x47c7da)break;BracketStack[_0x5a8c04+0x2]|=0x4;}}}}}}function processNeutrals(_0x524ec1,_0xf07dfb,_0x2582a5,_0x24bdde){for(let _0xe9656f=0x0,_0x500a2b=_0x24bdde;_0xe9656f<=_0x2582a5['length'];_0xe9656f++){let _0x12007f=_0xe9656f?_0x2582a5[_0xe9656f-0x1]['to']:_0x524ec1,_0x24d6b6=_0xe9656f<_0x2582a5['length']?_0x2582a5[_0xe9656f]['from']:_0xf07dfb;for(let _0x2b599e=_0x12007f;_0x2b599e<_0x24d6b6;){let _0x46b893=types[_0x2b599e];if(0x100==_0x46b893){let _0x2895c7=_0x2b599e+0x1;for(;;)if(_0x2895c7==_0x24d6b6){if(_0xe9656f==_0x2582a5['length'])break;_0x2895c7=_0x2582a5[_0xe9656f++]['to'],_0x24d6b6=_0xe9656f<_0x2582a5['length']?_0x2582a5[_0xe9656f]['from']:_0xf07dfb;}else{if(0x100!=types[_0x2895c7])break;_0x2895c7++;}let _0x3e15be=0x1==_0x500a2b,_0x1c7ee3=_0x3e15be==(0x1==(_0x2895c7<_0xf07dfb?types[_0x2895c7]:_0x24bdde))?_0x3e15be?0x1:0x2:_0x24bdde;for(let _0x437283=_0x2895c7,_0x2204d8=_0xe9656f,_0x3f45d3=_0x2204d8?_0x2582a5[_0x2204d8-0x1]['to']:_0x524ec1;_0x437283>_0x2b599e;)_0x437283==_0x3f45d3&&(_0x437283=_0x2582a5[--_0x2204d8]['from'],_0x3f45d3=_0x2204d8?_0x2582a5[_0x2204d8-0x1]['to']:_0x524ec1),types[--_0x437283]=_0x1c7ee3;_0x2b599e=_0x2895c7;}else _0x500a2b=_0x46b893,_0x2b599e++;}}}function emitSpans(_0x3e4181,_0x3aa169,_0x49a3cb,_0x54e82f,_0x4dd878,_0x1712ec,_0x1b6e53){let _0x1b18d1=_0x54e82f%0x2?0x2:0x1;if(_0x54e82f%0x2==_0x4dd878%0x2)for(let _0x444712=_0x3aa169,_0xe2c9aa=0x0;_0x444712<_0x49a3cb;){let _0x4f2ce2=!0x0,_0x35b186=!0x1;if(_0xe2c9aa==_0x1712ec['length']||_0x444712<_0x1712ec[_0xe2c9aa]['from']){let _0x58740c=types[_0x444712];_0x58740c!=_0x1b18d1&&(_0x4f2ce2=!0x1,_0x35b186=0x10==_0x58740c);}let _0x647967=_0x4f2ce2||0x1!=_0x1b18d1?null:[],_0x549276=_0x4f2ce2?_0x54e82f:_0x54e82f+0x1,_0x8528d5=_0x444712;t:for(;;)if(_0xe2c9aa<_0x1712ec['length']&&_0x8528d5==_0x1712ec[_0xe2c9aa]['from']){if(_0x35b186)break t;let _0x203940=_0x1712ec[_0xe2c9aa];if(!_0x4f2ce2)for(let _0x5eac14=_0x203940['to'],_0x78877c=_0xe2c9aa+0x1;;){if(_0x5eac14==_0x49a3cb)break t;if(!(_0x78877c<_0x1712ec['length']&&_0x1712ec[_0x78877c]['from']==_0x5eac14)){if(types[_0x5eac14]==_0x1b18d1)break t;break;}_0x5eac14=_0x1712ec[_0x78877c++]['to'];}if(_0xe2c9aa++,_0x647967)_0x647967['push'](_0x203940);else _0x203940['from']>_0x444712&&_0x1b6e53['push'](new BidiSpan(_0x444712,_0x203940['from'],_0x549276)),computeSectionOrder(_0x3e4181,_0x203940['direction']==LTR!=!(_0x549276%0x2)?_0x54e82f+0x1:_0x54e82f,_0x4dd878,_0x203940['inner'],_0x203940['from'],_0x203940['to'],_0x1b6e53),_0x444712=_0x203940['to'];_0x8528d5=_0x203940['to'];}else{if(_0x8528d5==_0x49a3cb||(_0x4f2ce2?types[_0x8528d5]!=_0x1b18d1:types[_0x8528d5]==_0x1b18d1))break;_0x8528d5++;}_0x647967?emitSpans(_0x3e4181,_0x444712,_0x8528d5,_0x54e82f+0x1,_0x4dd878,_0x647967,_0x1b6e53):_0x444712<_0x8528d5&&_0x1b6e53['push'](new BidiSpan(_0x444712,_0x8528d5,_0x549276)),_0x444712=_0x8528d5;}else for(let _0x315fef=_0x49a3cb,_0x5dfd3e=_0x1712ec['length'];_0x315fef>_0x3aa169;){let _0x327957=!0x0,_0x2d6110=!0x1;if(!_0x5dfd3e||_0x315fef>_0x1712ec[_0x5dfd3e-0x1]['to']){let _0x3eb4ce=types[_0x315fef-0x1];_0x3eb4ce!=_0x1b18d1&&(_0x327957=!0x1,_0x2d6110=0x10==_0x3eb4ce);}let _0x3e77b8=_0x327957||0x1!=_0x1b18d1?null:[],_0x26049b=_0x327957?_0x54e82f:_0x54e82f+0x1,_0x4b4744=_0x315fef;t:for(;;)if(_0x5dfd3e&&_0x4b4744==_0x1712ec[_0x5dfd3e-0x1]['to']){if(_0x2d6110)break t;let _0x220646=_0x1712ec[--_0x5dfd3e];if(!_0x327957)for(let _0x52ec60=_0x220646['from'],_0x350f4d=_0x5dfd3e;;){if(_0x52ec60==_0x3aa169)break t;if(!_0x350f4d||_0x1712ec[_0x350f4d-0x1]['to']!=_0x52ec60){if(types[_0x52ec60-0x1]==_0x1b18d1)break t;break;}_0x52ec60=_0x1712ec[--_0x350f4d]['from'];}if(_0x3e77b8)_0x3e77b8['push'](_0x220646);else _0x220646['to']<_0x315fef&&_0x1b6e53['push'](new BidiSpan(_0x220646['to'],_0x315fef,_0x26049b)),computeSectionOrder(_0x3e4181,_0x220646['direction']==LTR!=!(_0x26049b%0x2)?_0x54e82f+0x1:_0x54e82f,_0x4dd878,_0x220646['inner'],_0x220646['from'],_0x220646['to'],_0x1b6e53),_0x315fef=_0x220646['from'];_0x4b4744=_0x220646['from'];}else{if(_0x4b4744==_0x3aa169||(_0x327957?types[_0x4b4744-0x1]!=_0x1b18d1:types[_0x4b4744-0x1]==_0x1b18d1))break;_0x4b4744--;}_0x3e77b8?emitSpans(_0x3e4181,_0x4b4744,_0x315fef,_0x54e82f+0x1,_0x4dd878,_0x3e77b8,_0x1b6e53):_0x4b4744<_0x315fef&&_0x1b6e53['push'](new BidiSpan(_0x4b4744,_0x315fef,_0x26049b)),_0x315fef=_0x4b4744;}}function computeSectionOrder(_0x1562e7,_0x341584,_0x266f7a,_0x46b7c8,_0x265a18,_0x5d0619,_0x4047b0){let _0x21fe1e=_0x341584%0x2?0x2:0x1;computeCharTypes(_0x1562e7,_0x265a18,_0x5d0619,_0x46b7c8,_0x21fe1e),processBracketPairs(_0x1562e7,_0x265a18,_0x5d0619,_0x46b7c8,_0x21fe1e),processNeutrals(_0x265a18,_0x5d0619,_0x46b7c8,_0x21fe1e),emitSpans(_0x1562e7,_0x265a18,_0x5d0619,_0x341584,_0x266f7a,_0x46b7c8,_0x4047b0);}function computeOrder(_0x2b894d,_0x421a2e,_0x54bab6){if(!_0x2b894d)return[new BidiSpan(0x0,0x0,_0x421a2e==RTL?0x1:0x0)];if(_0x421a2e==LTR&&!_0x54bab6['length']&&!BidiRE['test'](_0x2b894d))return trivialOrder(_0x2b894d['length']);if(_0x54bab6['length']){for(;_0x2b894d['length']>types['length'];)types[types['length']]=0x100;}let _0x48ea66=[],_0x3510fa=_0x421a2e==LTR?0x0:0x1;return computeSectionOrder(_0x2b894d,_0x3510fa,_0x3510fa,_0x54bab6,0x0,_0x2b894d['length'],_0x48ea66),_0x48ea66;}function trivialOrder(_0x3493a8){return[new BidiSpan(0x0,_0x3493a8,0x0)];}let movedOver='';function moveVisually(_0x52eda0,_0x14a812,_0x5235a8,_0x2b3dec,_0x3ea133){var _0x2558f5;let _0x15c6c0=_0x2b3dec['head']-_0x52eda0['from'],_0x544ae2=BidiSpan['find'](_0x14a812,_0x15c6c0,null!==(_0x2558f5=_0x2b3dec['bidiLevel'])&&void 0x0!==_0x2558f5?_0x2558f5:-0x1,_0x2b3dec['assoc']),_0xa8738c=_0x14a812[_0x544ae2],_0xbf27bc=_0xa8738c['side'](_0x3ea133,_0x5235a8);if(_0x15c6c0==_0xbf27bc){let _0x300a47=_0x544ae2+=_0x3ea133?0x1:-0x1;if(_0x300a47<0x0||_0x300a47>=_0x14a812['length'])return null;_0xa8738c=_0x14a812[_0x544ae2=_0x300a47],_0x15c6c0=_0xa8738c['side'](!_0x3ea133,_0x5235a8),_0xbf27bc=_0xa8738c['side'](_0x3ea133,_0x5235a8);}let _0x1cc742=findClusterBreak(_0x52eda0['text'],_0x15c6c0,_0xa8738c['forward'](_0x3ea133,_0x5235a8));(_0x1cc742<_0xa8738c['from']||_0x1cc742>_0xa8738c['to'])&&(_0x1cc742=_0xbf27bc),movedOver=_0x52eda0['text']['slice'](Math['min'](_0x15c6c0,_0x1cc742),Math['max'](_0x15c6c0,_0x1cc742));let _0x3587ae=_0x544ae2==(_0x3ea133?_0x14a812['length']-0x1:0x0)?null:_0x14a812[_0x544ae2+(_0x3ea133?0x1:-0x1)];return _0x3587ae&&_0x1cc742==_0xbf27bc&&_0x3587ae['level']+(_0x3ea133?0x0:0x1)<_0xa8738c['level']?EditorSelection['cursor'](_0x3587ae['side'](!_0x3ea133,_0x5235a8)+_0x52eda0['from'],_0x3587ae['forward'](_0x3ea133,_0x5235a8)?0x1:-0x1,_0x3587ae['level']):EditorSelection['cursor'](_0x1cc742+_0x52eda0['from'],_0xa8738c['forward'](_0x3ea133,_0x5235a8)?-0x1:0x1,_0xa8738c['level']);}function autoDirection(_0x49dde5,_0x339353,_0x42dde2){for(let _0x1e5741=_0x339353;_0x1e5741<_0x42dde2;_0x1e5741++){let _0x3794e0=charType(_0x49dde5['charCodeAt'](_0x1e5741));if(0x1==_0x3794e0)return LTR;if(0x2==_0x3794e0||0x4==_0x3794e0)return RTL;}return LTR;}const clickAddsSelectionRange=Facet['define'](),dragMovesSelection$1=Facet['define'](),mouseSelectionStyle=Facet['define'](),exceptionSink=Facet['define'](),updateListener=Facet['define'](),inputHandler$1=Facet['define'](),focusChangeEffect=Facet['define'](),clipboardInputFilter=Facet['define'](),clipboardOutputFilter=Facet['define'](),perLineTextDirection=Facet['define']({'combine':_0x1406d1=>_0x1406d1['some'](_0x165248=>_0x165248)}),nativeSelectionHidden=Facet['define']({'combine':_0x2be33c=>_0x2be33c['some'](_0x42b219=>_0x42b219)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0xb41563,_0xe312a4='nearest',_0x400f61='nearest',_0x26bfe7=0x5,_0x38fc17=0x5,_0x37afa9=!0x1){this['range']=_0xb41563,this['y']=_0xe312a4,this['x']=_0x400f61,this['yMargin']=_0x26bfe7,this['xMargin']=_0x38fc17,this['isSnapshot']=_0x37afa9;}['map'](_0x52a475){return _0x52a475['empty']?this:new ScrollTarget(this['range']['map'](_0x52a475),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x5d7bd6){return this['range']['to']<=_0x5d7bd6['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x5d7bd6['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0x4f7c1a)=>t['map'](_0x4f7c1a)}),setEditContextFormatting=StateEffect['define']();function logException(_0x33b3d4,_0x1e15e2,_0x4577c6){let _0x3d3274=_0x33b3d4['facet'](exceptionSink);_0x3d3274['length']?_0x3d3274[0x0](_0x1e15e2):window['onerror']&&window['onerror'](String(_0x1e15e2),_0x4577c6,void 0x0,void 0x0,_0x1e15e2)||(_0x4577c6?console['error'](_0x4577c6+':',_0x1e15e2):console['error'](_0x1e15e2));}const editable=Facet['define']({'combine':_0x79d110=>!_0x79d110['length']||_0x79d110[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0x5526ef=>_0x5526ef['filter']((_0x574dc6,_0x1890a5)=>{for(let _0x54691f=0x0;_0x54691f<_0x1890a5;_0x54691f++)if(_0x5526ef[_0x54691f]['plugin']==_0x574dc6['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x3f2ad2,_0x4f145e,_0x398dfc,_0x241e3e,_0x1b08e4){this['id']=_0x3f2ad2,this['create']=_0x4f145e,this['domEventHandlers']=_0x398dfc,this['domEventObservers']=_0x241e3e,this['baseExtensions']=_0x1b08e4(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x2b4487){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0x2b4487}));}static['define'](_0x4deb2b,_0x4341e8){const {eventHandlers:_0x3bfc55,eventObservers:_0x6eaa3,provide:_0x5494b4,decorations:_0x388ff1}=_0x4341e8||{};return new ViewPlugin(nextPluginID++,_0x4deb2b,_0x3bfc55,_0x6eaa3,_0x4125b3=>{let _0x542930=[];return _0x388ff1&&_0x542930['push'](decorations['of'](_0x224768=>{let _0x5e9748=_0x224768['plugin'](_0x4125b3);return _0x5e9748?_0x388ff1(_0x5e9748):Decoration['none'];})),_0x5494b4&&_0x542930['push'](_0x5494b4(_0x4125b3)),_0x542930;});}static['fromClass'](_0x34c1d2,_0x5bd0f0){return ViewPlugin['define']((_0x4265da,_0x39f54d)=>new _0x34c1d2(_0x4265da,_0x39f54d),_0x5bd0f0);}}class PluginInstance{constructor(_0x1ad9de){this['spec']=_0x1ad9de,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0x13bcdd){if(this['value']){if(this['mustUpdate']){let _0x209e95=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x209e95);}catch(_0x569e40){if(logException(_0x209e95['state'],_0x569e40,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x4e62f5){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x13bcdd,this['spec']['arg']);}catch(_0xdf560a){logException(_0x13bcdd['state'],_0xdf560a,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x13b7ba){var _0x2fd917;if(null===(_0x2fd917=this['value'])||void 0x0===_0x2fd917?void 0x0:_0x2fd917['destroy'])try{this['value']['destroy']();}catch(_0x5d8ab1){logException(_0x13b7ba['state'],_0x5d8ab1,'CodeMirror\x20plugin\x20crashed');}}['deactivate'](){this['spec']=this['value']=null;}}const editorAttributes=Facet['define'](),contentAttributes=Facet['define'](),decorations=Facet['define'](),outerDecorations=Facet['define'](),atomicRanges=Facet['define'](),bidiIsolatedRanges=Facet['define']();function getIsolatedRanges(_0x9c26c3,_0x124d52){let _0x2df567=_0x9c26c3['state']['facet'](bidiIsolatedRanges);if(!_0x2df567['length'])return _0x2df567;let _0x329c1b=_0x2df567['map'](_0x1bec22=>_0x1bec22 instanceof Function?_0x1bec22(_0x9c26c3):_0x1bec22),_0x5a2e8c=[];return RangeSet['spans'](_0x329c1b,_0x124d52['from'],_0x124d52['to'],{'point'(){},'span'(_0x3da416,_0x5f126a,_0x49163c,_0x94956){let _0x440ac8=_0x3da416-_0x124d52['from'],_0x5cd4ba=_0x5f126a-_0x124d52['from'],_0x497a6e=_0x5a2e8c;for(let _0x9e5e0=_0x49163c['length']-0x1;_0x9e5e0>=0x0;_0x9e5e0--,_0x94956--){let _0x554d93,_0x2bee33=_0x49163c[_0x9e5e0]['spec']['bidiIsolate'];if(null==_0x2bee33&&(_0x2bee33=autoDirection(_0x124d52['text'],_0x440ac8,_0x5cd4ba)),_0x94956>0x0&&_0x497a6e['length']&&(_0x554d93=_0x497a6e[_0x497a6e['length']-0x1])['to']==_0x440ac8&&_0x554d93['direction']==_0x2bee33)_0x554d93['to']=_0x5cd4ba,_0x497a6e=_0x554d93['inner'];else{let _0x29b52d={'from':_0x440ac8,'to':_0x5cd4ba,'direction':_0x2bee33,'inner':[]};_0x497a6e['push'](_0x29b52d),_0x497a6e=_0x29b52d['inner'];}}}}),_0x5a2e8c;}const scrollMargins=Facet['define']();function getScrollMargins(_0xc2407){let _0x3b9fbb=0x0,_0x48e76e=0x0,_0x5bae61=0x0,_0x2f4bfd=0x0;for(let _0x355196 of _0xc2407['state']['facet'](scrollMargins)){let _0x54bd2c=_0x355196(_0xc2407);_0x54bd2c&&(null!=_0x54bd2c['left']&&(_0x3b9fbb=Math['max'](_0x3b9fbb,_0x54bd2c['left'])),null!=_0x54bd2c['right']&&(_0x48e76e=Math['max'](_0x48e76e,_0x54bd2c['right'])),null!=_0x54bd2c['top']&&(_0x5bae61=Math['max'](_0x5bae61,_0x54bd2c['top'])),null!=_0x54bd2c['bottom']&&(_0x2f4bfd=Math['max'](_0x2f4bfd,_0x54bd2c['bottom'])));}return{'left':_0x3b9fbb,'right':_0x48e76e,'top':_0x5bae61,'bottom':_0x2f4bfd};}const styleModule=Facet['define']();class ChangedRange{constructor(_0x27d578,_0x2e417f,_0x3cda82,_0x2f3edc){this['fromA']=_0x27d578,this['toA']=_0x2e417f,this['fromB']=_0x3cda82,this['toB']=_0x2f3edc;}['join'](_0x381244){return new ChangedRange(Math['min'](this['fromA'],_0x381244['fromA']),Math['max'](this['toA'],_0x381244['toA']),Math['min'](this['fromB'],_0x381244['fromB']),Math['max'](this['toB'],_0x381244['toB']));}['addToSet'](_0x3c4c77){let _0x1544bc=_0x3c4c77['length'],_0x279fcf=this;for(;_0x1544bc>0x0;_0x1544bc--){let _0x13e6a6=_0x3c4c77[_0x1544bc-0x1];if(!(_0x13e6a6['fromA']>_0x279fcf['toA'])){if(_0x13e6a6['toA']<_0x279fcf['fromA'])break;_0x279fcf=_0x279fcf['join'](_0x13e6a6),_0x3c4c77['splice'](_0x1544bc-0x1,0x1);}}return _0x3c4c77['splice'](_0x1544bc,0x0,_0x279fcf),_0x3c4c77;}static['extendWithRanges'](_0x15f562,_0x3f7860){if(0x0==_0x3f7860['length'])return _0x15f562;let _0x49974a=[];for(let _0x5acc25=0x0,_0xab202=0x0,_0x1bca67=0x0,_0x4da924=0x0;;_0x5acc25++){let _0x124504=_0x5acc25==_0x15f562['length']?null:_0x15f562[_0x5acc25],_0x383d35=_0x1bca67-_0x4da924,_0xc709c7=_0x124504?_0x124504['fromB']:0x3b9aca00;for(;_0xab202<_0x3f7860['length']&&_0x3f7860[_0xab202]<_0xc709c7;){let _0x1334a5=_0x3f7860[_0xab202],_0x1f3076=_0x3f7860[_0xab202+0x1],_0x3ca593=Math['max'](_0x4da924,_0x1334a5),_0x37e198=Math['min'](_0xc709c7,_0x1f3076);if(_0x3ca593<=_0x37e198&&new ChangedRange(_0x3ca593+_0x383d35,_0x37e198+_0x383d35,_0x3ca593,_0x37e198)['addToSet'](_0x49974a),_0x1f3076>_0xc709c7)break;_0xab202+=0x2;}if(!_0x124504)return _0x49974a;new ChangedRange(_0x124504['fromA'],_0x124504['toA'],_0x124504['fromB'],_0x124504['toB'])['addToSet'](_0x49974a),_0x1bca67=_0x124504['toA'],_0x4da924=_0x124504['toB'];}}}class ViewUpdate{constructor(_0x4da8b9,_0x13d023,_0x371b44){this['view']=_0x4da8b9,this['state']=_0x13d023,this['transactions']=_0x371b44,this['flags']=0x0,this['startState']=_0x4da8b9['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x471c83 of _0x371b44)this['changes']=this['changes']['compose'](_0x471c83['changes']);let _0x5345ff=[];this['changes']['iterChangedRanges']((_0x2db547,_0x2bfd0e,_0xd55c4c,_0x43073d)=>_0x5345ff['push'](new ChangedRange(_0x2db547,_0x2bfd0e,_0xd55c4c,_0x43073d))),this['changedRanges']=_0x5345ff;}static['create'](_0x5a043b,_0xc58ca7,_0x2c7b3c){return new ViewUpdate(_0x5a043b,_0xc58ca7,_0x2c7b3c);}get['viewportChanged'](){return(0x4&this['flags'])>0x0;}get['viewportMoved'](){return(0x8&this['flags'])>0x0;}get['heightChanged'](){return(0x2&this['flags'])>0x0;}get['geometryChanged'](){return this['docChanged']||(0x12&this['flags'])>0x0;}get['focusChanged'](){return(0x1&this['flags'])>0x0;}get['docChanged'](){return!this['changes']['empty'];}get['selectionSet'](){return this['transactions']['some'](_0x356a18=>_0x356a18['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x3f9c51){super(),this['view']=_0x3f9c51,this['decorations']=[],this['dynamicDecorationMap']=[!0x1],this['domChanged']=null,this['hasComposition']=null,this['markedForComposition']=new Set(),this['editContextFormatting']=Decoration['none'],this['lastCompositionAfterCursor']=!0x1,this['minWidth']=0x0,this['minWidthFrom']=0x0,this['minWidthTo']=0x0,this['impreciseAnchor']=null,this['impreciseHead']=null,this['forceSelection']=!0x1,this['lastUpdate']=Date['now'](),this['setDOM'](_0x3f9c51['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x3f9c51['state']['doc']['length'])],0x0,null);}['update'](_0x1893eb){var _0x51b14e;let _0x1154f2=_0x1893eb['changedRanges'];this['minWidth']>0x0&&_0x1154f2['length']&&(_0x1154f2['every'](({fromA:_0x10f7b5,toA:_0x3a266a})=>_0x3a266a<this['minWidthFrom']||_0x10f7b5>this['minWidthTo'])?(this['minWidthFrom']=_0x1893eb['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x1893eb['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x1893eb);let _0x223ac4=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x51b14e=this['domChanged'])||void 0x0===_0x51b14e?void 0x0:_0x51b14e['newSel'])?_0x223ac4=this['domChanged']['newSel']['head']:touchesComposition(_0x1893eb['changes'],this['hasComposition'])||_0x1893eb['selectionSet']||(_0x223ac4=_0x1893eb['state']['selection']['main']['head']));let _0x2504e8=_0x223ac4>-0x1?findCompositionRange(this['view'],_0x1893eb['changes'],_0x223ac4):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0x3fd410,to:_0x2ce121}=this['hasComposition'];_0x1154f2=new ChangedRange(_0x3fd410,_0x2ce121,_0x1893eb['changes']['mapPos'](_0x3fd410,-0x1),_0x1893eb['changes']['mapPos'](_0x2ce121,0x1))['addToSet'](_0x1154f2['slice']());}this['hasComposition']=_0x2504e8?{'from':_0x2504e8['range']['fromB'],'to':_0x2504e8['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x2504e8&&_0x1893eb&&_0x1893eb['state']['doc']['lines']!=_0x1893eb['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0x404e2b=findChangedDeco(this['decorations'],this['updateDeco'](),_0x1893eb['changes']);return _0x1154f2=ChangedRange['extendWithRanges'](_0x1154f2,_0x404e2b),!!(0x7&this['flags']||0x0!=_0x1154f2['length'])&&(this['updateInner'](_0x1154f2,_0x1893eb['startState']['doc']['length'],_0x2504e8),_0x1893eb['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0x5a31a9,_0x335398,_0x1b24e9){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0x5a31a9,_0x335398,_0x1b24e9);let {observer:_0x546e2a}=this['view'];_0x546e2a['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x4a0fd7=browser['chrome']||browser['ios']?{'node':_0x546e2a['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x4a0fd7),this['flags']&=-0x8,_0x4a0fd7&&(_0x4a0fd7['written']||_0x546e2a['selectionRange']['focusNode']!=_0x4a0fd7['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0x51d088=>_0x51d088['flags']&=-0x9);let _0x1788b7=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x575e4d of this['children'])_0x575e4d instanceof BlockWidgetView&&_0x575e4d['widget']instanceof BlockGapWidget&&_0x1788b7['push'](_0x575e4d['dom']);}_0x546e2a['updateGaps'](_0x1788b7);}['updateChildren'](_0x1a5c13,_0x3aaaa9,_0x3cc295){let _0x40de1b=_0x3cc295?_0x3cc295['range']['addToSet'](_0x1a5c13['slice']()):_0x1a5c13,_0x336650=this['childCursor'](_0x3aaaa9);for(let _0x113010=_0x40de1b['length']-0x1;;_0x113010--){let _0x202fbf=_0x113010>=0x0?_0x40de1b[_0x113010]:null;if(!_0x202fbf)break;let _0x5f5c31,_0x38f563,_0x302039,_0x357087,{fromA:_0x2ddb25,toA:_0x337d05,fromB:_0xcce486,toB:_0x298a12}=_0x202fbf;if(_0x3cc295&&_0x3cc295['range']['fromB']<_0x298a12&&_0x3cc295['range']['toB']>_0xcce486){let _0x5e25ad=ContentBuilder['build'](this['view']['state']['doc'],_0xcce486,_0x3cc295['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x3a2970=ContentBuilder['build'](this['view']['state']['doc'],_0x3cc295['range']['toB'],_0x298a12,this['decorations'],this['dynamicDecorationMap']);_0x38f563=_0x5e25ad['breakAtStart'],_0x302039=_0x5e25ad['openStart'],_0x357087=_0x3a2970['openEnd'];let _0x2739b4=this['compositionView'](_0x3cc295);_0x3a2970['breakAtStart']?_0x2739b4['breakAfter']=0x1:_0x3a2970['content']['length']&&_0x2739b4['merge'](_0x2739b4['length'],_0x2739b4['length'],_0x3a2970['content'][0x0],!0x1,_0x3a2970['openStart'],0x0)&&(_0x2739b4['breakAfter']=_0x3a2970['content'][0x0]['breakAfter'],_0x3a2970['content']['shift']()),_0x5e25ad['content']['length']&&_0x2739b4['merge'](0x0,0x0,_0x5e25ad['content'][_0x5e25ad['content']['length']-0x1],!0x0,0x0,_0x5e25ad['openEnd'])&&_0x5e25ad['content']['pop'](),_0x5f5c31=_0x5e25ad['content']['concat'](_0x2739b4)['concat'](_0x3a2970['content']);}else({content:_0x5f5c31,breakAtStart:_0x38f563,openStart:_0x302039,openEnd:_0x357087}=ContentBuilder['build'](this['view']['state']['doc'],_0xcce486,_0x298a12,this['decorations'],this['dynamicDecorationMap']));let {i:_0x1b9e0e,off:_0x4ff30c}=_0x336650['findPos'](_0x337d05,0x1),{i:_0x249c44,off:_0x59d89b}=_0x336650['findPos'](_0x2ddb25,-0x1);replaceRange(this,_0x249c44,_0x59d89b,_0x1b9e0e,_0x4ff30c,_0x5f5c31,_0x38f563,_0x302039,_0x357087);}_0x3cc295&&this['fixCompositionDOM'](_0x3cc295);}['updateEditContextFormatting'](_0x3f8cb0){this['editContextFormatting']=this['editContextFormatting']['map'](_0x3f8cb0['changes']);for(let _0x25e309 of _0x3f8cb0['transactions'])for(let _0x3b1f91 of _0x25e309['effects'])_0x3b1f91['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0x3b1f91['value']);}['compositionView'](_0xfdda68){let _0x76bd7c=new TextView(_0xfdda68['text']['nodeValue']);_0x76bd7c['flags']|=0x8;for(let {deco:_0x2c91f1}of _0xfdda68['marks'])_0x76bd7c=new MarkView(_0x2c91f1,[_0x76bd7c],_0x76bd7c['length']);let _0x4e1cf1=new LineView();return _0x4e1cf1['append'](_0x76bd7c,0x0),_0x4e1cf1;}['fixCompositionDOM'](_0x3db9df){let _0x133cbd=(_0x2ec939,_0x64d54e)=>{_0x64d54e['flags']|=0x8|(_0x64d54e['children']['some'](_0x56338e=>0x7&_0x56338e['flags'])?0x1:0x0),this['markedForComposition']['add'](_0x64d54e);let _0x149d03=ContentView['get'](_0x2ec939);_0x149d03&&_0x149d03!=_0x64d54e&&(_0x149d03['dom']=null),_0x64d54e['setDOM'](_0x2ec939);},_0x4d1fbd=this['childPos'](_0x3db9df['range']['fromB'],0x1),_0x1d233e=this['children'][_0x4d1fbd['i']];_0x133cbd(_0x3db9df['line'],_0x1d233e);for(let _0x50e650=_0x3db9df['marks']['length']-0x1;_0x50e650>=-0x1;_0x50e650--)_0x4d1fbd=_0x1d233e['childPos'](_0x4d1fbd['off'],0x1),_0x1d233e=_0x1d233e['children'][_0x4d1fbd['i']],_0x133cbd(_0x50e650>=0x0?_0x3db9df['marks'][_0x50e650]['node']:_0x3db9df['text'],_0x1d233e);}['updateSelection'](_0x1dc518=!0x1,_0x1a9377=!0x1){!_0x1dc518&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0x2fee72=this['view']['root']['activeElement'],_0x247b50=_0x2fee72==this['dom'],_0x2ddc1a=!_0x247b50&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0x2fee72&&this['dom']['contains'](_0x2fee72));if(!(_0x247b50||_0x1a9377||_0x2ddc1a))return;let _0x3c4d0f=this['forceSelection'];this['forceSelection']=!0x1;let _0x1eafb9=this['view']['state']['selection']['main'],_0x25710b=this['moveToLine'](this['domAtPos'](_0x1eafb9['anchor'])),_0x22b72c=_0x1eafb9['empty']?_0x25710b:this['moveToLine'](this['domAtPos'](_0x1eafb9['head']));if(browser['gecko']&&_0x1eafb9['empty']&&!this['hasComposition']&&betweenUneditable(_0x25710b)){let _0x1ce87b=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x25710b['node']['insertBefore'](_0x1ce87b,_0x25710b['node']['childNodes'][_0x25710b['offset']]||null)),_0x25710b=_0x22b72c=new DOMPos(_0x1ce87b,0x0),_0x3c4d0f=!0x0;}let _0x3cb4f2=this['view']['observer']['selectionRange'];!_0x3c4d0f&&_0x3cb4f2['focusNode']&&(isEquivalentPosition(_0x25710b['node'],_0x25710b['offset'],_0x3cb4f2['anchorNode'],_0x3cb4f2['anchorOffset'])&&isEquivalentPosition(_0x22b72c['node'],_0x22b72c['offset'],_0x3cb4f2['focusNode'],_0x3cb4f2['focusOffset'])||this['suppressWidgetCursorChange'](_0x3cb4f2,_0x1eafb9))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x3cb4f2['focusNode'])&&inUneditable(_0x3cb4f2['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0x347086=getSelection(this['view']['root']);if(_0x347086){if(_0x1eafb9['empty']){if(browser['gecko']){let _0x368a8c=nextToUneditable(_0x25710b['node'],_0x25710b['offset']);if(_0x368a8c&&0x3!=_0x368a8c){let _0x1a48d6=(0x1==_0x368a8c?textNodeBefore:textNodeAfter)(_0x25710b['node'],_0x25710b['offset']);_0x1a48d6&&(_0x25710b=new DOMPos(_0x1a48d6['node'],_0x1a48d6['offset']));}}_0x347086['collapse'](_0x25710b['node'],_0x25710b['offset']),null!=_0x1eafb9['bidiLevel']&&void 0x0!==_0x347086['caretBidiLevel']&&(_0x347086['caretBidiLevel']=_0x1eafb9['bidiLevel']);}else{if(_0x347086['extend']){_0x347086['collapse'](_0x25710b['node'],_0x25710b['offset']);try{_0x347086['extend'](_0x22b72c['node'],_0x22b72c['offset']);}catch(_0xc71355){}}else{let _0x261f3e=document['createRange']();_0x1eafb9['anchor']>_0x1eafb9['head']&&([_0x25710b,_0x22b72c]=[_0x22b72c,_0x25710b]),_0x261f3e['setEnd'](_0x22b72c['node'],_0x22b72c['offset']),_0x261f3e['setStart'](_0x25710b['node'],_0x25710b['offset']),_0x347086['removeAllRanges'](),_0x347086['addRange'](_0x261f3e);}}}else;_0x2ddc1a&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0x2fee72&&_0x2fee72['focus']());}),this['view']['observer']['setSelectionRange'](_0x25710b,_0x22b72c)),this['impreciseAnchor']=_0x25710b['precise']?null:new DOMPos(_0x3cb4f2['anchorNode'],_0x3cb4f2['anchorOffset']),this['impreciseHead']=_0x22b72c['precise']?null:new DOMPos(_0x3cb4f2['focusNode'],_0x3cb4f2['focusOffset']);}['suppressWidgetCursorChange'](_0x41cf78,_0x336b5b){return this['hasComposition']&&_0x336b5b['empty']&&isEquivalentPosition(_0x41cf78['focusNode'],_0x41cf78['focusOffset'],_0x41cf78['anchorNode'],_0x41cf78['anchorOffset'])&&this['posFromDOM'](_0x41cf78['focusNode'],_0x41cf78['focusOffset'])==_0x336b5b['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x4c0781}=this,_0x235822=_0x4c0781['state']['selection']['main'],_0x363ac8=getSelection(_0x4c0781['root']),{anchorNode:_0x5b0b1b,anchorOffset:_0x42efa8}=_0x4c0781['observer']['selectionRange'];if(!(_0x363ac8&&_0x235822['empty']&&_0x235822['assoc']&&_0x363ac8['modify']))return;let _0x28665c=LineView['find'](this,_0x235822['head']);if(!_0x28665c)return;let _0x5d778c=_0x28665c['posAtStart'];if(_0x235822['head']==_0x5d778c||_0x235822['head']==_0x5d778c+_0x28665c['length'])return;let _0x214dac=this['coordsAt'](_0x235822['head'],-0x1),_0x15c035=this['coordsAt'](_0x235822['head'],0x1);if(!_0x214dac||!_0x15c035||_0x214dac['bottom']>_0x15c035['top'])return;let _0x5a8745=this['domAtPos'](_0x235822['head']+_0x235822['assoc']);_0x363ac8['collapse'](_0x5a8745['node'],_0x5a8745['offset']),_0x363ac8['modify']('move',_0x235822['assoc']<0x0?'forward':'backward','lineboundary'),_0x4c0781['observer']['readSelectionRange']();let _0x49582f=_0x4c0781['observer']['selectionRange'];_0x4c0781['docView']['posFromDOM'](_0x49582f['anchorNode'],_0x49582f['anchorOffset'])!=_0x235822['from']&&_0x363ac8['collapse'](_0x5b0b1b,_0x42efa8);}['moveToLine'](_0x3b7f4d){let _0x4ddf80,_0x37e304=this['dom'];if(_0x3b7f4d['node']!=_0x37e304)return _0x3b7f4d;for(let _0x52f358=_0x3b7f4d['offset'];!_0x4ddf80&&_0x52f358<_0x37e304['childNodes']['length'];_0x52f358++){let _0x541a64=ContentView['get'](_0x37e304['childNodes'][_0x52f358]);_0x541a64 instanceof LineView&&(_0x4ddf80=_0x541a64['domAtPos'](0x0));}for(let _0x5347fb=_0x3b7f4d['offset']-0x1;!_0x4ddf80&&_0x5347fb>=0x0;_0x5347fb--){let _0x25d1b1=ContentView['get'](_0x37e304['childNodes'][_0x5347fb]);_0x25d1b1 instanceof LineView&&(_0x4ddf80=_0x25d1b1['domAtPos'](_0x25d1b1['length']));}return _0x4ddf80?new DOMPos(_0x4ddf80['node'],_0x4ddf80['offset'],!0x0):_0x3b7f4d;}['nearest'](_0x388594){for(let _0x41b4bd=_0x388594;_0x41b4bd;){let _0x3a95df=ContentView['get'](_0x41b4bd);if(_0x3a95df&&_0x3a95df['rootView']==this)return _0x3a95df;_0x41b4bd=_0x41b4bd['parentNode'];}return null;}['posFromDOM'](_0xd74f78,_0x181327){let _0x1e316e=this['nearest'](_0xd74f78);if(!_0x1e316e)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x1e316e['localPosFromDOM'](_0xd74f78,_0x181327)+_0x1e316e['posAtStart'];}['domAtPos'](_0x5f3ce2){let {i:_0x5d631b,off:_0x510b55}=this['childCursor']()['findPos'](_0x5f3ce2,-0x1);for(;_0x5d631b<this['children']['length']-0x1;){let _0x455f99=this['children'][_0x5d631b];if(_0x510b55<_0x455f99['length']||_0x455f99 instanceof LineView)break;_0x5d631b++,_0x510b55=0x0;}return this['children'][_0x5d631b]['domAtPos'](_0x510b55);}['coordsAt'](_0x47a351,_0x240946){let _0x2431fe=null,_0x4482a7=0x0;for(let _0x4f56ef=this['length'],_0x1350ef=this['children']['length']-0x1;_0x1350ef>=0x0;_0x1350ef--){let _0x413541=this['children'][_0x1350ef],_0x25bf3d=_0x4f56ef-_0x413541['breakAfter'],_0x16eba8=_0x25bf3d-_0x413541['length'];if(_0x25bf3d<_0x47a351)break;if(_0x16eba8<=_0x47a351&&(_0x16eba8<_0x47a351||_0x413541['covers'](-0x1))&&(_0x25bf3d>_0x47a351||_0x413541['covers'](0x1))&&(!_0x2431fe||_0x413541 instanceof LineView&&!(_0x2431fe instanceof LineView&&_0x240946>=0x0)))_0x2431fe=_0x413541,_0x4482a7=_0x16eba8;else{if(_0x2431fe&&_0x16eba8==_0x47a351&&_0x25bf3d==_0x47a351&&_0x413541 instanceof BlockWidgetView&&Math['abs'](_0x240946)<0x2){if(_0x413541['deco']['startSide']<0x0)break;_0x1350ef&&(_0x2431fe=null);}}_0x4f56ef=_0x16eba8;}return _0x2431fe?_0x2431fe['coordsAt'](_0x47a351-_0x4482a7,_0x240946):null;}['coordsForChar'](_0x16316e){let {i:_0x825a76,off:_0x17cf68}=this['childPos'](_0x16316e,0x1),_0x1992f5=this['children'][_0x825a76];if(!(_0x1992f5 instanceof LineView))return null;for(;_0x1992f5['children']['length'];){let {i:_0x545287,off:_0x23f35c}=_0x1992f5['childPos'](_0x17cf68,0x1);for(;;_0x545287++){if(_0x545287==_0x1992f5['children']['length'])return null;if((_0x1992f5=_0x1992f5['children'][_0x545287])['length'])break;}_0x17cf68=_0x23f35c;}if(!(_0x1992f5 instanceof TextView))return null;let _0xb3a95c=findClusterBreak(_0x1992f5['text'],_0x17cf68);if(_0xb3a95c==_0x17cf68)return null;let _0x1b775a=textRange(_0x1992f5['dom'],_0x17cf68,_0xb3a95c)['getClientRects']();for(let _0x548626=0x0;_0x548626<_0x1b775a['length'];_0x548626++){let _0x52a2ad=_0x1b775a[_0x548626];if(_0x548626==_0x1b775a['length']-0x1||_0x52a2ad['top']<_0x52a2ad['bottom']&&_0x52a2ad['left']<_0x52a2ad['right'])return _0x52a2ad;}return null;}['measureVisibleLineHeights'](_0x1f2c96){let _0x1a5c63=[],{from:_0xd06725,to:_0x4a3382}=_0x1f2c96,_0x2d1621=this['view']['contentDOM']['clientWidth'],_0x51f25c=_0x2d1621>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x5bcdb3=-0x1,_0x25317a=this['view']['textDirection']==Direction['LTR'];for(let _0x4cd768=0x0,_0x47488a=0x0;_0x47488a<this['children']['length'];_0x47488a++){let _0x4e4d33=this['children'][_0x47488a],_0x4f286c=_0x4cd768+_0x4e4d33['length'];if(_0x4f286c>_0x4a3382)break;if(_0x4cd768>=_0xd06725){let _0x3e5b11=_0x4e4d33['dom']['getBoundingClientRect']();if(_0x1a5c63['push'](_0x3e5b11['height']),_0x51f25c){let _0x1b7507=_0x4e4d33['dom']['lastChild'],_0x5b693a=_0x1b7507?clientRectsFor(_0x1b7507):[];if(_0x5b693a['length']){let _0x205477=_0x5b693a[_0x5b693a['length']-0x1],_0x2e1875=_0x25317a?_0x205477['right']-_0x3e5b11['left']:_0x3e5b11['right']-_0x205477['left'];_0x2e1875>_0x5bcdb3&&(_0x5bcdb3=_0x2e1875,this['minWidth']=_0x2d1621,this['minWidthFrom']=_0x4cd768,this['minWidthTo']=_0x4f286c);}}}_0x4cd768=_0x4f286c+_0x4e4d33['breakAfter'];}return _0x1a5c63;}['textDirectionAt'](_0x4bb2be){let {i:_0x3d1f85}=this['childPos'](_0x4bb2be,0x1);return'rtl'==getComputedStyle(this['children'][_0x3d1f85]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x370146 of this['children'])if(_0x370146 instanceof LineView){let _0x2fef1e=_0x370146['measureTextSize']();if(_0x2fef1e)return _0x2fef1e;}let _0x44c7bc,_0x497b26,_0x43ec29,_0x2e5118=document['createElement']('div');return _0x2e5118['className']='cm-line',_0x2e5118['style']['width']='99999px',_0x2e5118['style']['position']='absolute',_0x2e5118['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0x2e5118);let _0x7ada06=clientRectsFor(_0x2e5118['firstChild'])[0x0];_0x44c7bc=_0x2e5118['getBoundingClientRect']()['height'],_0x497b26=_0x7ada06?_0x7ada06['width']/0x1b:0x7,_0x43ec29=_0x7ada06?_0x7ada06['height']:_0x44c7bc,_0x2e5118['remove']();}),{'lineHeight':_0x44c7bc,'charWidth':_0x497b26,'textHeight':_0x43ec29};}['childCursor'](_0x2d07ce=this['length']){let _0x30c01c=this['children']['length'];return _0x30c01c&&(_0x2d07ce-=this['children'][--_0x30c01c]['length']),new ChildCursor(this['children'],_0x2d07ce,_0x30c01c);}['computeBlockGapDeco'](){let _0x50bc15=[],_0x1d05ab=this['view']['viewState'];for(let _0x5d5b22=0x0,_0x10389b=0x0;;_0x10389b++){let _0x211dd5=_0x10389b==_0x1d05ab['viewports']['length']?null:_0x1d05ab['viewports'][_0x10389b],_0x216a37=_0x211dd5?_0x211dd5['from']-0x1:this['length'];if(_0x216a37>_0x5d5b22){let _0x5c5548=(_0x1d05ab['lineBlockAt'](_0x216a37)['bottom']-_0x1d05ab['lineBlockAt'](_0x5d5b22)['top'])/this['view']['scaleY'];_0x50bc15['push'](Decoration['replace']({'widget':new BlockGapWidget(_0x5c5548),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0x5d5b22,_0x216a37));}if(!_0x211dd5)break;_0x5d5b22=_0x211dd5['to']+0x1;}return Decoration['set'](_0x50bc15);}['updateDeco'](){let _0x460c86=0x1,_0x44e7e5=this['view']['state']['facet'](decorations)['map'](_0x3424ab=>(this['dynamicDecorationMap'][_0x460c86++]='function'==typeof _0x3424ab)?_0x3424ab(this['view']):_0x3424ab),_0x217be7=!0x1,_0x502339=this['view']['state']['facet'](outerDecorations)['map']((_0x3438a3,_0x1e9a7e)=>{let _0x3319dc='function'==typeof _0x3438a3;return _0x3319dc&&(_0x217be7=!0x0),_0x3319dc?_0x3438a3(this['view']):_0x3438a3;});for(_0x502339['length']&&(this['dynamicDecorationMap'][_0x460c86++]=_0x217be7,_0x44e7e5['push'](RangeSet['join'](_0x502339))),this['decorations']=[this['editContextFormatting'],..._0x44e7e5,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x460c86<this['decorations']['length'];)this['dynamicDecorationMap'][_0x460c86++]=!0x1;return this['decorations'];}['scrollIntoView'](_0xd366db){if(_0xd366db['isSnapshot']){let _0x337112=this['view']['viewState']['lineBlockAt'](_0xd366db['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x337112['top']-_0xd366db['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0xd366db['xMargin']);}for(let _0x2ebdeb of this['view']['state']['facet'](scrollHandler))try{if(_0x2ebdeb(this['view'],_0xd366db['range'],_0xd366db))return!0x0;}catch(_0x2987e7){logException(this['view']['state'],_0x2987e7,'scroll\x20handler');}let _0x30a8de,{range:_0x38f774}=_0xd366db,_0x3f6050=this['coordsAt'](_0x38f774['head'],_0x38f774['empty']?_0x38f774['assoc']:_0x38f774['head']>_0x38f774['anchor']?-0x1:0x1);if(!_0x3f6050)return;!_0x38f774['empty']&&(_0x30a8de=this['coordsAt'](_0x38f774['anchor'],_0x38f774['anchor']>_0x38f774['head']?-0x1:0x1))&&(_0x3f6050={'left':Math['min'](_0x3f6050['left'],_0x30a8de['left']),'top':Math['min'](_0x3f6050['top'],_0x30a8de['top']),'right':Math['max'](_0x3f6050['right'],_0x30a8de['right']),'bottom':Math['max'](_0x3f6050['bottom'],_0x30a8de['bottom'])});let _0x5e8691=getScrollMargins(this['view']),_0x586444={'left':_0x3f6050['left']-_0x5e8691['left'],'top':_0x3f6050['top']-_0x5e8691['top'],'right':_0x3f6050['right']+_0x5e8691['right'],'bottom':_0x3f6050['bottom']+_0x5e8691['bottom']},{offsetWidth:_0x2f7cbe,offsetHeight:_0x5a8552}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0x586444,_0x38f774['head']<_0x38f774['anchor']?-0x1:0x1,_0xd366db['x'],_0xd366db['y'],Math['max'](Math['min'](_0xd366db['xMargin'],_0x2f7cbe),-_0x2f7cbe),Math['max'](Math['min'](_0xd366db['yMargin'],_0x5a8552),-_0x5a8552),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x28c27b){return 0x1==_0x28c27b['node']['nodeType']&&_0x28c27b['node']['firstChild']&&(0x0==_0x28c27b['offset']||'false'==_0x28c27b['node']['childNodes'][_0x28c27b['offset']-0x1]['contentEditable'])&&(_0x28c27b['offset']==_0x28c27b['node']['childNodes']['length']||'false'==_0x28c27b['node']['childNodes'][_0x28c27b['offset']]['contentEditable']);}function findCompositionNode(_0xfcb41c,_0x4b02ae){let _0x41e696=_0xfcb41c['observer']['selectionRange'];if(!_0x41e696['focusNode'])return null;let _0x2dcdcc=textNodeBefore(_0x41e696['focusNode'],_0x41e696['focusOffset']),_0x446f1d=textNodeAfter(_0x41e696['focusNode'],_0x41e696['focusOffset']),_0x1b9fd3=_0x2dcdcc||_0x446f1d;if(_0x446f1d&&_0x2dcdcc&&_0x446f1d['node']!=_0x2dcdcc['node']){let _0x4af129=ContentView['get'](_0x446f1d['node']);if(!_0x4af129||_0x4af129 instanceof TextView&&_0x4af129['text']!=_0x446f1d['node']['nodeValue'])_0x1b9fd3=_0x446f1d;else{if(_0xfcb41c['docView']['lastCompositionAfterCursor']){let _0x4e9623=ContentView['get'](_0x2dcdcc['node']);!_0x4e9623||_0x4e9623 instanceof TextView&&_0x4e9623['text']!=_0x2dcdcc['node']['nodeValue']||(_0x1b9fd3=_0x446f1d);}}}if(_0xfcb41c['docView']['lastCompositionAfterCursor']=_0x1b9fd3!=_0x2dcdcc,!_0x1b9fd3)return null;let _0x5be937=_0x4b02ae-_0x1b9fd3['offset'];return{'from':_0x5be937,'to':_0x5be937+_0x1b9fd3['node']['nodeValue']['length'],'node':_0x1b9fd3['node']};}function findCompositionRange(_0x7a31fc,_0x7566eb,_0x2e23ed){let _0x1ae339=findCompositionNode(_0x7a31fc,_0x2e23ed);if(!_0x1ae339)return null;let {node:_0x4f6647,from:_0x45ba48,to:_0x14d210}=_0x1ae339,_0x3d0af3=_0x4f6647['nodeValue'];if(/[\n\r]/['test'](_0x3d0af3))return null;if(_0x7a31fc['state']['doc']['sliceString'](_0x1ae339['from'],_0x1ae339['to'])!=_0x3d0af3)return null;let _0x4c4c8f=_0x7566eb['invertedDesc'],_0x4dbe17=new ChangedRange(_0x4c4c8f['mapPos'](_0x45ba48),_0x4c4c8f['mapPos'](_0x14d210),_0x45ba48,_0x14d210),_0x12eaaa=[];for(let _0x47ac95=_0x4f6647['parentNode'];;_0x47ac95=_0x47ac95['parentNode']){let _0x11e979=ContentView['get'](_0x47ac95);if(_0x11e979 instanceof MarkView)_0x12eaaa['push']({'node':_0x47ac95,'deco':_0x11e979['mark']});else{if(_0x11e979 instanceof LineView||'DIV'==_0x47ac95['nodeName']&&_0x47ac95['parentNode']==_0x7a31fc['contentDOM'])return{'range':_0x4dbe17,'text':_0x4f6647,'marks':_0x12eaaa,'line':_0x47ac95};if(_0x47ac95==_0x7a31fc['contentDOM'])return null;_0x12eaaa['push']({'node':_0x47ac95,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0x47ac95),'tagName':_0x47ac95['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x54ef12,_0x581924){return 0x1!=_0x54ef12['nodeType']?0x0:(_0x581924&&'false'==_0x54ef12['childNodes'][_0x581924-0x1]['contentEditable']?0x1:0x0)|(_0x581924<_0x54ef12['childNodes']['length']&&'false'==_0x54ef12['childNodes'][_0x581924]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x2eaa78,_0x242540){addRange(_0x2eaa78,_0x242540,this['changes']);}['comparePoint'](_0x7ab327,_0x5239ba){addRange(_0x7ab327,_0x5239ba,this['changes']);}['boundChange'](_0x2f07b0){addRange(_0x2f07b0,_0x2f07b0,this['changes']);}};function findChangedDeco(_0x412cb9,_0x5960e6,_0x35cbbe){let _0x32c94d=new DecorationComparator$1();return RangeSet['compare'](_0x412cb9,_0x5960e6,_0x35cbbe,_0x32c94d),_0x32c94d['changes'];}function inUneditable(_0x51bb44,_0x4b2864){for(let _0x225eaf=_0x51bb44;_0x225eaf&&_0x225eaf!=_0x4b2864;_0x225eaf=_0x225eaf['assignedSlot']||_0x225eaf['parentNode'])if(0x1==_0x225eaf['nodeType']&&'false'==_0x225eaf['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x3293a6,_0xc336e7){let _0x3923c7=!0x1;return _0xc336e7&&_0x3293a6['iterChangedRanges']((_0x6404b0,_0x2f0e90)=>{_0x6404b0<_0xc336e7['to']&&_0x2f0e90>_0xc336e7['from']&&(_0x3923c7=!0x0);}),_0x3923c7;}function groupAt(_0x328cec,_0x2434ec,_0xafef4f=0x1){let _0x506856=_0x328cec['charCategorizer'](_0x2434ec),_0x2ec0d0=_0x328cec['doc']['lineAt'](_0x2434ec),_0x283095=_0x2434ec-_0x2ec0d0['from'];if(0x0==_0x2ec0d0['length'])return EditorSelection['cursor'](_0x2434ec);0x0==_0x283095?_0xafef4f=0x1:_0x283095==_0x2ec0d0['length']&&(_0xafef4f=-0x1);let _0x312e58=_0x283095,_0x43b52b=_0x283095;_0xafef4f<0x0?_0x312e58=findClusterBreak(_0x2ec0d0['text'],_0x283095,!0x1):_0x43b52b=findClusterBreak(_0x2ec0d0['text'],_0x283095);let _0x4b98a7=_0x506856(_0x2ec0d0['text']['slice'](_0x312e58,_0x43b52b));for(;_0x312e58>0x0;){let _0x59faa1=findClusterBreak(_0x2ec0d0['text'],_0x312e58,!0x1);if(_0x506856(_0x2ec0d0['text']['slice'](_0x59faa1,_0x312e58))!=_0x4b98a7)break;_0x312e58=_0x59faa1;}for(;_0x43b52b<_0x2ec0d0['length'];){let _0xf68376=findClusterBreak(_0x2ec0d0['text'],_0x43b52b);if(_0x506856(_0x2ec0d0['text']['slice'](_0x43b52b,_0xf68376))!=_0x4b98a7)break;_0x43b52b=_0xf68376;}return EditorSelection['range'](_0x312e58+_0x2ec0d0['from'],_0x43b52b+_0x2ec0d0['from']);}function getdx(_0x5e92d7,_0x3370cf){return _0x3370cf['left']>_0x5e92d7?_0x3370cf['left']-_0x5e92d7:Math['max'](0x0,_0x5e92d7-_0x3370cf['right']);}function getdy(_0x4de1aa,_0x35e3f6){return _0x35e3f6['top']>_0x4de1aa?_0x35e3f6['top']-_0x4de1aa:Math['max'](0x0,_0x4de1aa-_0x35e3f6['bottom']);}function yOverlap(_0x4e3209,_0x545a89){return _0x4e3209['top']<_0x545a89['bottom']-0x1&&_0x4e3209['bottom']>_0x545a89['top']+0x1;}function upTop(_0x3f19ba,_0x57ecd0){return _0x57ecd0<_0x3f19ba['top']?{'top':_0x57ecd0,'left':_0x3f19ba['left'],'right':_0x3f19ba['right'],'bottom':_0x3f19ba['bottom']}:_0x3f19ba;}function upBot(_0x26a6e6,_0x4d64dd){return _0x4d64dd>_0x26a6e6['bottom']?{'top':_0x26a6e6['top'],'left':_0x26a6e6['left'],'right':_0x26a6e6['right'],'bottom':_0x4d64dd}:_0x26a6e6;}function domPosAtCoords(_0x14fc31,_0x1c85f6,_0x38d566){let _0x2312c9,_0x2adfa2,_0x3e39ad,_0xffba8,_0x12472a,_0x5fad9,_0xb8cfe0,_0x33ad8f,_0x2c361e=!0x1;for(let _0x12f0b1=_0x14fc31['firstChild'];_0x12f0b1;_0x12f0b1=_0x12f0b1['nextSibling']){let _0x2f6b03=clientRectsFor(_0x12f0b1);for(let _0x2b6f7a=0x0;_0x2b6f7a<_0x2f6b03['length'];_0x2b6f7a++){let _0x2c90a5=_0x2f6b03[_0x2b6f7a];_0x2adfa2&&yOverlap(_0x2adfa2,_0x2c90a5)&&(_0x2c90a5=upTop(upBot(_0x2c90a5,_0x2adfa2['bottom']),_0x2adfa2['top']));let _0xdb7b23=getdx(_0x1c85f6,_0x2c90a5),_0x3593c9=getdy(_0x38d566,_0x2c90a5);if(0x0==_0xdb7b23&&0x0==_0x3593c9)return 0x3==_0x12f0b1['nodeType']?domPosInText(_0x12f0b1,_0x1c85f6,_0x38d566):domPosAtCoords(_0x12f0b1,_0x1c85f6,_0x38d566);(!_0x2312c9||_0xffba8>_0x3593c9||_0xffba8==_0x3593c9&&_0x3e39ad>_0xdb7b23)&&(_0x2312c9=_0x12f0b1,_0x2adfa2=_0x2c90a5,_0x3e39ad=_0xdb7b23,_0xffba8=_0x3593c9,_0x2c361e=!_0xdb7b23||(_0x1c85f6<_0x2c90a5['left']?_0x2b6f7a>0x0:_0x2b6f7a<_0x2f6b03['length']-0x1)),0x0==_0xdb7b23?_0x38d566>_0x2c90a5['bottom']&&(!_0xb8cfe0||_0xb8cfe0['bottom']<_0x2c90a5['bottom'])?(_0x12472a=_0x12f0b1,_0xb8cfe0=_0x2c90a5):_0x38d566<_0x2c90a5['top']&&(!_0x33ad8f||_0x33ad8f['top']>_0x2c90a5['top'])&&(_0x5fad9=_0x12f0b1,_0x33ad8f=_0x2c90a5):_0xb8cfe0&&yOverlap(_0xb8cfe0,_0x2c90a5)?_0xb8cfe0=upBot(_0xb8cfe0,_0x2c90a5['bottom']):_0x33ad8f&&yOverlap(_0x33ad8f,_0x2c90a5)&&(_0x33ad8f=upTop(_0x33ad8f,_0x2c90a5['top']));}}if(_0xb8cfe0&&_0xb8cfe0['bottom']>=_0x38d566?(_0x2312c9=_0x12472a,_0x2adfa2=_0xb8cfe0):_0x33ad8f&&_0x33ad8f['top']<=_0x38d566&&(_0x2312c9=_0x5fad9,_0x2adfa2=_0x33ad8f),!_0x2312c9)return{'node':_0x14fc31,'offset':0x0};let _0x1ea67e=Math['max'](_0x2adfa2['left'],Math['min'](_0x2adfa2['right'],_0x1c85f6));return 0x3==_0x2312c9['nodeType']?domPosInText(_0x2312c9,_0x1ea67e,_0x38d566):_0x2c361e&&'false'!=_0x2312c9['contentEditable']?domPosAtCoords(_0x2312c9,_0x1ea67e,_0x38d566):{'node':_0x14fc31,'offset':Array['prototype']['indexOf']['call'](_0x14fc31['childNodes'],_0x2312c9)+(_0x1c85f6>=(_0x2adfa2['left']+_0x2adfa2['right'])/0x2?0x1:0x0)};}function domPosInText(_0x302c14,_0x1bfc44,_0x96fe87){let _0x49becc=_0x302c14['nodeValue']['length'],_0x4d2c67=-0x1,_0x1326bd=0x3b9aca00,_0x9f237a=0x0;for(let _0x2305ab=0x0;_0x2305ab<_0x49becc;_0x2305ab++){let _0x2c6a61=textRange(_0x302c14,_0x2305ab,_0x2305ab+0x1)['getClientRects']();for(let _0xf2bcea=0x0;_0xf2bcea<_0x2c6a61['length'];_0xf2bcea++){let _0x30f2bd=_0x2c6a61[_0xf2bcea];if(_0x30f2bd['top']==_0x30f2bd['bottom'])continue;_0x9f237a||(_0x9f237a=_0x1bfc44-_0x30f2bd['left']);let _0x2a0182=(_0x30f2bd['top']>_0x96fe87?_0x30f2bd['top']-_0x96fe87:_0x96fe87-_0x30f2bd['bottom'])-0x1;if(_0x30f2bd['left']-0x1<=_0x1bfc44&&_0x30f2bd['right']+0x1>=_0x1bfc44&&_0x2a0182<_0x1326bd){let _0x371de=_0x1bfc44>=(_0x30f2bd['left']+_0x30f2bd['right'])/0x2,_0x4ca328=_0x371de;(browser['chrome']||browser['gecko'])&&(textRange(_0x302c14,_0x2305ab)['getBoundingClientRect']()['left']==_0x30f2bd['right']&&(_0x4ca328=!_0x371de));if(_0x2a0182<=0x0)return{'node':_0x302c14,'offset':_0x2305ab+(_0x4ca328?0x1:0x0)};_0x4d2c67=_0x2305ab+(_0x4ca328?0x1:0x0),_0x1326bd=_0x2a0182;}}}return{'node':_0x302c14,'offset':_0x4d2c67>-0x1?_0x4d2c67:_0x9f237a>0x0?_0x302c14['nodeValue']['length']:0x0};}function posAtCoords(_0x5bada8,_0x1e7635,_0x28f36b,_0x2f329b=-0x1){var _0x3b4aed,_0x1f3e07;let _0x52bccb,_0xc0b8cc=_0x5bada8['contentDOM']['getBoundingClientRect'](),_0x427b30=_0xc0b8cc['top']+_0x5bada8['viewState']['paddingTop'],{docHeight:_0x483e15}=_0x5bada8['viewState'],{x:_0x43dcb6,y:_0x536a2e}=_0x1e7635,_0x160e54=_0x536a2e-_0x427b30;if(_0x160e54<0x0)return 0x0;if(_0x160e54>_0x483e15)return _0x5bada8['state']['doc']['length'];for(let _0x175764=_0x5bada8['viewState']['heightOracle']['textHeight']/0x2,_0x4bf6e0=!0x1;_0x52bccb=_0x5bada8['elementAtHeight'](_0x160e54),_0x52bccb['type']!=BlockType['Text'];)for(;_0x160e54=_0x2f329b>0x0?_0x52bccb['bottom']+_0x175764:_0x52bccb['top']-_0x175764,!(_0x160e54>=0x0&&_0x160e54<=_0x483e15);){if(_0x4bf6e0)return _0x28f36b?null:0x0;_0x4bf6e0=!0x0,_0x2f329b=-_0x2f329b;}_0x536a2e=_0x427b30+_0x160e54;let _0x310b1d=_0x52bccb['from'];if(_0x310b1d<_0x5bada8['viewport']['from'])return 0x0==_0x5bada8['viewport']['from']?0x0:_0x28f36b?null:posAtCoordsImprecise(_0x5bada8,_0xc0b8cc,_0x52bccb,_0x43dcb6,_0x536a2e);if(_0x310b1d>_0x5bada8['viewport']['to'])return _0x5bada8['viewport']['to']==_0x5bada8['state']['doc']['length']?_0x5bada8['state']['doc']['length']:_0x28f36b?null:posAtCoordsImprecise(_0x5bada8,_0xc0b8cc,_0x52bccb,_0x43dcb6,_0x536a2e);let _0x2a072f=_0x5bada8['dom']['ownerDocument'],_0x3428e1=_0x5bada8['root']['elementFromPoint']?_0x5bada8['root']:_0x2a072f,_0x243f87=_0x3428e1['elementFromPoint'](_0x43dcb6,_0x536a2e);_0x243f87&&!_0x5bada8['contentDOM']['contains'](_0x243f87)&&(_0x243f87=null),_0x243f87||(_0x43dcb6=Math['max'](_0xc0b8cc['left']+0x1,Math['min'](_0xc0b8cc['right']-0x1,_0x43dcb6)),_0x243f87=_0x3428e1['elementFromPoint'](_0x43dcb6,_0x536a2e),_0x243f87&&!_0x5bada8['contentDOM']['contains'](_0x243f87)&&(_0x243f87=null));let _0x3aac08,_0x523f58=-0x1;if(_0x243f87&&0x0!=(null===(_0x3b4aed=_0x5bada8['docView']['nearest'](_0x243f87))||void 0x0===_0x3b4aed?void 0x0:_0x3b4aed['isEditable'])){if(_0x2a072f['caretPositionFromPoint']){let _0x5dab7e=_0x2a072f['caretPositionFromPoint'](_0x43dcb6,_0x536a2e);_0x5dab7e&&({offsetNode:_0x3aac08,offset:_0x523f58}=_0x5dab7e);}else{if(_0x2a072f['caretRangeFromPoint']){let _0x3c0e2d=_0x2a072f['caretRangeFromPoint'](_0x43dcb6,_0x536a2e);_0x3c0e2d&&({startContainer:_0x3aac08,startOffset:_0x523f58}=_0x3c0e2d);}}_0x3aac08&&(!_0x5bada8['contentDOM']['contains'](_0x3aac08)||browser['safari']&&isSuspiciousSafariCaretResult(_0x3aac08,_0x523f58,_0x43dcb6)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x3aac08,_0x523f58,_0x43dcb6))&&(_0x3aac08=void 0x0),_0x3aac08&&(_0x523f58=Math['min'](maxOffset(_0x3aac08),_0x523f58));}if(!_0x3aac08||!_0x5bada8['docView']['dom']['contains'](_0x3aac08)){let _0x2ae281=LineView['find'](_0x5bada8['docView'],_0x310b1d);if(!_0x2ae281)return _0x160e54>_0x52bccb['top']+_0x52bccb['height']/0x2?_0x52bccb['to']:_0x52bccb['from'];({node:_0x3aac08,offset:_0x523f58}=domPosAtCoords(_0x2ae281['dom'],_0x43dcb6,_0x536a2e));}let _0x517087=_0x5bada8['docView']['nearest'](_0x3aac08);if(!_0x517087)return null;if(_0x517087['isWidget']&&0x1==(null===(_0x1f3e07=_0x517087['dom'])||void 0x0===_0x1f3e07?void 0x0:_0x1f3e07['nodeType'])){let _0x4c1f03=_0x517087['dom']['getBoundingClientRect']();return _0x1e7635['y']<_0x4c1f03['top']||_0x1e7635['y']<=_0x4c1f03['bottom']&&_0x1e7635['x']<=(_0x4c1f03['left']+_0x4c1f03['right'])/0x2?_0x517087['posAtStart']:_0x517087['posAtEnd'];}return _0x517087['localPosFromDOM'](_0x3aac08,_0x523f58)+_0x517087['posAtStart'];}function posAtCoordsImprecise(_0x529e1f,_0x1c1661,_0x42cc72,_0x3a1787,_0x1eba83){let _0x13620e=Math['round']((_0x3a1787-_0x1c1661['left'])*_0x529e1f['defaultCharacterWidth']);if(_0x529e1f['lineWrapping']&&_0x42cc72['height']>1.5*_0x529e1f['defaultLineHeight']){let _0x157171=_0x529e1f['viewState']['heightOracle']['textHeight'];_0x13620e+=Math['floor']((_0x1eba83-_0x42cc72['top']-0.5*(_0x529e1f['defaultLineHeight']-_0x157171))/_0x157171)*_0x529e1f['viewState']['heightOracle']['lineLength'];}let _0x349970=_0x529e1f['state']['sliceDoc'](_0x42cc72['from'],_0x42cc72['to']);return _0x42cc72['from']+findColumn(_0x349970,_0x13620e,_0x529e1f['state']['tabSize']);}function isEndOfLineBefore(_0x4ca562,_0x14fbce,_0x129fd4){let _0xc18643,_0x162b43=_0x4ca562;if(0x3!=_0x4ca562['nodeType']||_0x14fbce!=(_0xc18643=_0x4ca562['nodeValue']['length']))return!0x1;for(;;){let _0x35f705=_0x162b43['nextSibling'];if(_0x35f705){if('BR'==_0x35f705['nodeName'])break;return!0x1;}{let _0x40653d=_0x162b43['parentNode'];if(!_0x40653d||'DIV'==_0x40653d['nodeName'])break;_0x162b43=_0x40653d;}}return textRange(_0x4ca562,_0xc18643-0x1,_0xc18643)['getBoundingClientRect']()['right']>_0x129fd4;}function isSuspiciousSafariCaretResult(_0x14bc66,_0x693bc4,_0x3f330b){return isEndOfLineBefore(_0x14bc66,_0x693bc4,_0x3f330b);}function isSuspiciousChromeCaretResult(_0x436e0b,_0x3ce97b,_0x41dcb2){if(0x0!=_0x3ce97b)return isEndOfLineBefore(_0x436e0b,_0x3ce97b,_0x41dcb2);for(let _0x185887=_0x436e0b;;){let _0x41aee9=_0x185887['parentNode'];if(!_0x41aee9||0x1!=_0x41aee9['nodeType']||_0x41aee9['firstChild']!=_0x185887)return!0x1;if(_0x41aee9['classList']['contains']('cm-line'))break;_0x185887=_0x41aee9;}return _0x41dcb2-(0x1==_0x436e0b['nodeType']?_0x436e0b['getBoundingClientRect']():textRange(_0x436e0b,0x0,Math['max'](_0x436e0b['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x3fd26e,_0x535e81,_0x731846){let _0x259c89=_0x3fd26e['lineBlockAt'](_0x535e81);if(Array['isArray'](_0x259c89['type'])){let _0x1f8772;for(let _0x32d456 of _0x259c89['type']){if(_0x32d456['from']>_0x535e81)break;if(!(_0x32d456['to']<_0x535e81)){if(_0x32d456['from']<_0x535e81&&_0x32d456['to']>_0x535e81)return _0x32d456;_0x1f8772&&(_0x32d456['type']!=BlockType['Text']||_0x1f8772['type']==_0x32d456['type']&&!(_0x731846<0x0?_0x32d456['from']<_0x535e81:_0x32d456['to']>_0x535e81))||(_0x1f8772=_0x32d456);}}return _0x1f8772||_0x259c89;}return _0x259c89;}function moveToLineBoundary(_0x10b8f8,_0x1331af,_0x4452b4,_0x4fb6d4){let _0x113eb4=blockAt(_0x10b8f8,_0x1331af['head'],_0x1331af['assoc']||-0x1),_0x45ce4b=_0x4fb6d4&&_0x113eb4['type']==BlockType['Text']&&(_0x10b8f8['lineWrapping']||_0x113eb4['widgetLineBreaks'])?_0x10b8f8['coordsAtPos'](_0x1331af['assoc']<0x0&&_0x1331af['head']>_0x113eb4['from']?_0x1331af['head']-0x1:_0x1331af['head']):null;if(_0x45ce4b){let _0x4eb201=_0x10b8f8['dom']['getBoundingClientRect'](),_0x2423fb=_0x10b8f8['textDirectionAt'](_0x113eb4['from']),_0x136a5e=_0x10b8f8['posAtCoords']({'x':_0x4452b4==(_0x2423fb==Direction['LTR'])?_0x4eb201['right']-0x1:_0x4eb201['left']+0x1,'y':(_0x45ce4b['top']+_0x45ce4b['bottom'])/0x2});if(null!=_0x136a5e)return EditorSelection['cursor'](_0x136a5e,_0x4452b4?-0x1:0x1);}return EditorSelection['cursor'](_0x4452b4?_0x113eb4['to']:_0x113eb4['from'],_0x4452b4?-0x1:0x1);}function moveByChar(_0x558ae7,_0x33ad64,_0x290d3d,_0x34d4fc){let _0x30cb98=_0x558ae7['state']['doc']['lineAt'](_0x33ad64['head']),_0x5e2aed=_0x558ae7['bidiSpans'](_0x30cb98),_0x46b947=_0x558ae7['textDirectionAt'](_0x30cb98['from']);for(let _0x4adc77=_0x33ad64,_0x455c6c=null;;){let _0x525b52=moveVisually(_0x30cb98,_0x5e2aed,_0x46b947,_0x4adc77,_0x290d3d),_0x1e5344=movedOver;if(!_0x525b52){if(_0x30cb98['number']==(_0x290d3d?_0x558ae7['state']['doc']['lines']:0x1))return _0x4adc77;_0x1e5344='\x0a',_0x30cb98=_0x558ae7['state']['doc']['line'](_0x30cb98['number']+(_0x290d3d?0x1:-0x1)),_0x5e2aed=_0x558ae7['bidiSpans'](_0x30cb98),_0x525b52=_0x558ae7['visualLineSide'](_0x30cb98,!_0x290d3d);}if(_0x455c6c){if(!_0x455c6c(_0x1e5344))return _0x4adc77;}else{if(!_0x34d4fc)return _0x525b52;_0x455c6c=_0x34d4fc(_0x1e5344);}_0x4adc77=_0x525b52;}}function byGroup(_0x3cdb68,_0x178f3b,_0x3c2b8e){let _0x109a31=_0x3cdb68['state']['charCategorizer'](_0x178f3b),_0x108887=_0x109a31(_0x3c2b8e);return _0xc2bb5=>{let _0x5d4ca7=_0x109a31(_0xc2bb5);return _0x108887==CharCategory['Space']&&(_0x108887=_0x5d4ca7),_0x108887==_0x5d4ca7;};}function moveVertically(_0x238422,_0x283884,_0x1020bb,_0x101763){let _0x2b2f4e=_0x283884['head'],_0x4a1f9b=_0x1020bb?0x1:-0x1;if(_0x2b2f4e==(_0x1020bb?_0x238422['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0x2b2f4e,_0x283884['assoc']);let _0x190186,_0xb2e6f2=_0x283884['goalColumn'],_0x382a98=_0x238422['contentDOM']['getBoundingClientRect'](),_0x5ac041=_0x238422['coordsAtPos'](_0x2b2f4e,_0x283884['assoc']||-0x1),_0x1f5378=_0x238422['documentTop'];if(_0x5ac041)null==_0xb2e6f2&&(_0xb2e6f2=_0x5ac041['left']-_0x382a98['left']),_0x190186=_0x4a1f9b<0x0?_0x5ac041['top']:_0x5ac041['bottom'];else{let _0x95efcc=_0x238422['viewState']['lineBlockAt'](_0x2b2f4e);null==_0xb2e6f2&&(_0xb2e6f2=Math['min'](_0x382a98['right']-_0x382a98['left'],_0x238422['defaultCharacterWidth']*(_0x2b2f4e-_0x95efcc['from']))),_0x190186=(_0x4a1f9b<0x0?_0x95efcc['top']:_0x95efcc['bottom'])+_0x1f5378;}let _0x4de060=_0x382a98['left']+_0xb2e6f2,_0x418c17=null!=_0x101763?_0x101763:_0x238422['viewState']['heightOracle']['textHeight']>>0x1;for(let _0x78d819=0x0;;_0x78d819+=0xa){let _0x505a4e=_0x190186+(_0x418c17+_0x78d819)*_0x4a1f9b,_0x3a91d5=posAtCoords(_0x238422,{'x':_0x4de060,'y':_0x505a4e},!0x1,_0x4a1f9b);if(_0x505a4e<_0x382a98['top']||_0x505a4e>_0x382a98['bottom']||(_0x4a1f9b<0x0?_0x3a91d5<_0x2b2f4e:_0x3a91d5>_0x2b2f4e)){let _0x4a57c4=_0x238422['docView']['coordsForChar'](_0x3a91d5),_0x10027f=!_0x4a57c4||_0x505a4e<_0x4a57c4['top']?-0x1:0x1;return EditorSelection['cursor'](_0x3a91d5,_0x10027f,void 0x0,_0xb2e6f2);}}}function skipAtomicRanges(_0x150ff5,_0x39e243,_0x4b7ea0){for(;;){let _0x2c6f2a=0x0;for(let _0x502af1 of _0x150ff5)_0x502af1['between'](_0x39e243-0x1,_0x39e243+0x1,(_0x173a9c,_0x5d33de,_0x3cefd9)=>{if(_0x39e243>_0x173a9c&&_0x39e243<_0x5d33de){let _0x3a95c7=_0x2c6f2a||_0x4b7ea0||(_0x39e243-_0x173a9c<_0x5d33de-_0x39e243?-0x1:0x1);_0x39e243=_0x3a95c7<0x0?_0x173a9c:_0x5d33de,_0x2c6f2a=_0x3a95c7;}});if(!_0x2c6f2a)return _0x39e243;}}function skipAtomsForSelection(_0x30a753,_0x234a3c){let _0x45fce7=null;for(let _0x5b3497=0x0;_0x5b3497<_0x234a3c['ranges']['length'];_0x5b3497++){let _0x39e58f=_0x234a3c['ranges'][_0x5b3497],_0x548d25=null;if(_0x39e58f['empty']){let _0x3db96e=skipAtomicRanges(_0x30a753,_0x39e58f['from'],0x0);_0x3db96e!=_0x39e58f['from']&&(_0x548d25=EditorSelection['cursor'](_0x3db96e,-0x1));}else{let _0x4f882b=skipAtomicRanges(_0x30a753,_0x39e58f['from'],-0x1),_0xd84d0a=skipAtomicRanges(_0x30a753,_0x39e58f['to'],0x1);_0x4f882b==_0x39e58f['from']&&_0xd84d0a==_0x39e58f['to']||(_0x548d25=EditorSelection['range'](_0x39e58f['from']==_0x39e58f['anchor']?_0x4f882b:_0xd84d0a,_0x39e58f['from']==_0x39e58f['head']?_0x4f882b:_0xd84d0a));}_0x548d25&&(_0x45fce7||(_0x45fce7=_0x234a3c['ranges']['slice']()),_0x45fce7[_0x5b3497]=_0x548d25);}return _0x45fce7?EditorSelection['create'](_0x45fce7,_0x234a3c['mainIndex']):_0x234a3c;}function skipAtoms(_0x24cb3d,_0x13026c,_0x425265){let _0xe69237=skipAtomicRanges(_0x24cb3d['state']['facet'](atomicRanges)['map'](_0x29b741=>_0x29b741(_0x24cb3d)),_0x425265['from'],_0x13026c['head']>_0x425265['from']?-0x1:0x1);return _0xe69237==_0x425265['from']?_0x425265:EditorSelection['cursor'](_0xe69237,_0xe69237<_0x425265['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x56f00f,_0x15f6ae){this['points']=_0x56f00f,this['text']='',this['lineSeparator']=_0x15f6ae['facet'](EditorState['lineSeparator']);}['append'](_0x5779f9){this['text']+=_0x5779f9;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x21e454,_0x5ab415){if(!_0x21e454)return this;let _0x2098ea=_0x21e454['parentNode'];for(let _0x43127d=_0x21e454;;){this['findPointBefore'](_0x2098ea,_0x43127d);let _0x210215=this['text']['length'];this['readNode'](_0x43127d);let _0x13d5a8=_0x43127d['nextSibling'];if(_0x13d5a8==_0x5ab415)break;let _0x2cb05c=ContentView['get'](_0x43127d),_0x4b161d=ContentView['get'](_0x13d5a8);(_0x2cb05c&&_0x4b161d?_0x2cb05c['breakAfter']:(_0x2cb05c?_0x2cb05c['breakAfter']:isBlockElement(_0x43127d))||isBlockElement(_0x13d5a8)&&('BR'!=_0x43127d['nodeName']||_0x43127d['cmIgnore'])&&this['text']['length']>_0x210215)&&!isEmptyToEnd(_0x13d5a8,_0x5ab415)&&this['lineBreak'](),_0x43127d=_0x13d5a8;}return this['findPointBefore'](_0x2098ea,_0x5ab415),this;}['readTextNode'](_0x3fd848){let _0x1edf84=_0x3fd848['nodeValue'];for(let _0x4b3eec of this['points'])_0x4b3eec['node']==_0x3fd848&&(_0x4b3eec['pos']=this['text']['length']+Math['min'](_0x4b3eec['offset'],_0x1edf84['length']));for(let _0x4c883a=0x0,_0x27a798=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x1d7caa,_0x1ee946=-0x1,_0x3bc7d3=0x1;if(this['lineSeparator']?(_0x1ee946=_0x1edf84['indexOf'](this['lineSeparator'],_0x4c883a),_0x3bc7d3=this['lineSeparator']['length']):(_0x1d7caa=_0x27a798['exec'](_0x1edf84))&&(_0x1ee946=_0x1d7caa['index'],_0x3bc7d3=_0x1d7caa[0x0]['length']),this['append'](_0x1edf84['slice'](_0x4c883a,_0x1ee946<0x0?_0x1edf84['length']:_0x1ee946)),_0x1ee946<0x0)break;if(this['lineBreak'](),_0x3bc7d3>0x1){for(let _0x25dd3d of this['points'])_0x25dd3d['node']==_0x3fd848&&_0x25dd3d['pos']>this['text']['length']&&(_0x25dd3d['pos']-=_0x3bc7d3-0x1);}_0x4c883a=_0x1ee946+_0x3bc7d3;}}['readNode'](_0x28ea27){if(_0x28ea27['cmIgnore'])return;let _0x481198=ContentView['get'](_0x28ea27),_0x5b48e0=_0x481198&&_0x481198['overrideDOMText'];if(null!=_0x5b48e0){this['findPointInside'](_0x28ea27,_0x5b48e0['length']);for(let _0x1c255a=_0x5b48e0['iter']();!_0x1c255a['next']()['done'];)_0x1c255a['lineBreak']?this['lineBreak']():this['append'](_0x1c255a['value']);}else 0x3==_0x28ea27['nodeType']?this['readTextNode'](_0x28ea27):'BR'==_0x28ea27['nodeName']?_0x28ea27['nextSibling']&&this['lineBreak']():0x1==_0x28ea27['nodeType']&&this['readRange'](_0x28ea27['firstChild'],null);}['findPointBefore'](_0x17b18e,_0x38e77a){for(let _0x32e14b of this['points'])_0x32e14b['node']==_0x17b18e&&_0x17b18e['childNodes'][_0x32e14b['offset']]==_0x38e77a&&(_0x32e14b['pos']=this['text']['length']);}['findPointInside'](_0x3c3fed,_0x535b67){for(let _0x5ce313 of this['points'])(0x3==_0x3c3fed['nodeType']?_0x5ce313['node']==_0x3c3fed:_0x3c3fed['contains'](_0x5ce313['node']))&&(_0x5ce313['pos']=this['text']['length']+(isAtEnd(_0x3c3fed,_0x5ce313['node'],_0x5ce313['offset'])?_0x535b67:0x0));}}function isAtEnd(_0x1aa1ce,_0x1bc5bf,_0x27ed0e){for(;;){if(!_0x1bc5bf||_0x27ed0e<maxOffset(_0x1bc5bf))return!0x1;if(_0x1bc5bf==_0x1aa1ce)return!0x0;_0x27ed0e=domIndex(_0x1bc5bf)+0x1,_0x1bc5bf=_0x1bc5bf['parentNode'];}}function isEmptyToEnd(_0x498864,_0x3dfa55){let _0x1ee71d;for(;_0x498864!=_0x3dfa55&&_0x498864;_0x498864=_0x498864['nextSibling']){let _0x4a3845=ContentView['get'](_0x498864);if(!(null==_0x4a3845?void 0x0:_0x4a3845['isWidget'])&&!_0x498864['cmIgnore'])return!0x1;_0x4a3845&&(_0x1ee71d||(_0x1ee71d=[]))['push'](_0x4a3845);}if(_0x1ee71d)for(let _0x264057 of _0x1ee71d){let _0x38cb03=_0x264057['overrideDOMText'];if(null==_0x38cb03?void 0x0:_0x38cb03['length'])return!0x1;}return!0x0;}class DOMPoint{constructor(_0x2e8302,_0xac2c67){this['node']=_0x2e8302,this['offset']=_0xac2c67,this['pos']=-0x1;}}class DOMChange{constructor(_0x4e978d,_0x511b9a,_0x5c5e5a,_0x126598){this['typeOver']=_0x126598,this['bounds']=null,this['text']='',this['domChanged']=_0x511b9a>-0x1;let {impreciseHead:_0x27ab3e,impreciseAnchor:_0x2acf51}=_0x4e978d['docView'];if(_0x4e978d['state']['readOnly']&&_0x511b9a>-0x1)this['newSel']=null;else{if(_0x511b9a>-0x1&&(this['bounds']=_0x4e978d['docView']['domBoundsAround'](_0x511b9a,_0x5c5e5a,0x0))){let _0x4edccc=_0x27ab3e||_0x2acf51?[]:selectionPoints(_0x4e978d),_0x532760=new DOMReader(_0x4edccc,_0x4e978d['state']);_0x532760['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x532760['text'],this['newSel']=selectionFromPoints(_0x4edccc,this['bounds']['from']);}else{let _0x531652=_0x4e978d['observer']['selectionRange'],_0x3363d4=_0x27ab3e&&_0x27ab3e['node']==_0x531652['focusNode']&&_0x27ab3e['offset']==_0x531652['focusOffset']||!contains(_0x4e978d['contentDOM'],_0x531652['focusNode'])?_0x4e978d['state']['selection']['main']['head']:_0x4e978d['docView']['posFromDOM'](_0x531652['focusNode'],_0x531652['focusOffset']),_0x536a6a=_0x2acf51&&_0x2acf51['node']==_0x531652['anchorNode']&&_0x2acf51['offset']==_0x531652['anchorOffset']||!contains(_0x4e978d['contentDOM'],_0x531652['anchorNode'])?_0x4e978d['state']['selection']['main']['anchor']:_0x4e978d['docView']['posFromDOM'](_0x531652['anchorNode'],_0x531652['anchorOffset']),_0x2ade85=_0x4e978d['viewport'];if((browser['ios']||browser['chrome'])&&_0x4e978d['state']['selection']['main']['empty']&&_0x3363d4!=_0x536a6a&&(_0x2ade85['from']>0x0||_0x2ade85['to']<_0x4e978d['state']['doc']['length'])){let _0x5b893=Math['min'](_0x3363d4,_0x536a6a),_0x5b791c=Math['max'](_0x3363d4,_0x536a6a),_0x2f35f5=_0x2ade85['from']-_0x5b893,_0x7fc9f=_0x2ade85['to']-_0x5b791c;0x0!=_0x2f35f5&&0x1!=_0x2f35f5&&0x0!=_0x5b893||0x0!=_0x7fc9f&&-0x1!=_0x7fc9f&&_0x5b791c!=_0x4e978d['state']['doc']['length']||(_0x3363d4=0x0,_0x536a6a=_0x4e978d['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x536a6a,_0x3363d4);}}}}function applyDOMChange(_0xf26f2f,_0x97b80e){let _0x369c7a,{newSel:_0x36c56d}=_0x97b80e,_0x1c8ecd=_0xf26f2f['state']['selection']['main'],_0x4bef60=_0xf26f2f['inputState']['lastKeyTime']>Date['now']()-0x64?_0xf26f2f['inputState']['lastKeyCode']:-0x1;if(_0x97b80e['bounds']){let {from:_0x5e5894,to:_0x4e9cfc}=_0x97b80e['bounds'],_0x5c2018=_0x1c8ecd['from'],_0x36afe0=null;(0x8===_0x4bef60||browser['android']&&_0x97b80e['text']['length']<_0x4e9cfc-_0x5e5894)&&(_0x5c2018=_0x1c8ecd['to'],_0x36afe0='end');let _0x5c714e=findDiff(_0xf26f2f['state']['doc']['sliceString'](_0x5e5894,_0x4e9cfc,LineBreakPlaceholder),_0x97b80e['text'],_0x5c2018-_0x5e5894,_0x36afe0);_0x5c714e&&(browser['chrome']&&0xd==_0x4bef60&&_0x5c714e['toB']==_0x5c714e['from']+0x2&&_0x97b80e['text']['slice'](_0x5c714e['from'],_0x5c714e['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0x5c714e['toB']--,_0x369c7a={'from':_0x5e5894+_0x5c714e['from'],'to':_0x5e5894+_0x5c714e['toA'],'insert':Text$1['of'](_0x97b80e['text']['slice'](_0x5c714e['from'],_0x5c714e['toB'])['split'](LineBreakPlaceholder))});}else _0x36c56d&&(!_0xf26f2f['hasFocus']&&_0xf26f2f['state']['facet'](editable)||_0x36c56d['main']['eq'](_0x1c8ecd))&&(_0x36c56d=null);if(!_0x369c7a&&!_0x36c56d)return!0x1;if(!_0x369c7a&&_0x97b80e['typeOver']&&!_0x1c8ecd['empty']&&_0x36c56d&&_0x36c56d['main']['empty']?_0x369c7a={'from':_0x1c8ecd['from'],'to':_0x1c8ecd['to'],'insert':_0xf26f2f['state']['doc']['slice'](_0x1c8ecd['from'],_0x1c8ecd['to'])}:(browser['mac']||browser['android'])&&_0x369c7a&&_0x369c7a['from']==_0x369c7a['to']&&_0x369c7a['from']==_0x1c8ecd['head']-0x1&&/^\. ?$/['test'](_0x369c7a['insert']['toString']())&&'off'==_0xf26f2f['contentDOM']['getAttribute']('autocorrect')?(_0x36c56d&&0x2==_0x369c7a['insert']['length']&&(_0x36c56d=EditorSelection['single'](_0x36c56d['main']['anchor']-0x1,_0x36c56d['main']['head']-0x1)),_0x369c7a={'from':_0x369c7a['from'],'to':_0x369c7a['to'],'insert':Text$1['of']([_0x369c7a['insert']['toString']()['replace']('.','\x20')])}):_0x369c7a&&_0x369c7a['from']>=_0x1c8ecd['from']&&_0x369c7a['to']<=_0x1c8ecd['to']&&(_0x369c7a['from']!=_0x1c8ecd['from']||_0x369c7a['to']!=_0x1c8ecd['to'])&&_0x1c8ecd['to']-_0x1c8ecd['from']-(_0x369c7a['to']-_0x369c7a['from'])<=0x4?_0x369c7a={'from':_0x1c8ecd['from'],'to':_0x1c8ecd['to'],'insert':_0xf26f2f['state']['doc']['slice'](_0x1c8ecd['from'],_0x369c7a['from'])['append'](_0x369c7a['insert'])['append'](_0xf26f2f['state']['doc']['slice'](_0x369c7a['to'],_0x1c8ecd['to']))}:browser['chrome']&&_0x369c7a&&_0x369c7a['from']==_0x369c7a['to']&&_0x369c7a['from']==_0x1c8ecd['head']&&'\x0a\x20'==_0x369c7a['insert']['toString']()&&_0xf26f2f['lineWrapping']&&(_0x36c56d&&(_0x36c56d=EditorSelection['single'](_0x36c56d['main']['anchor']-0x1,_0x36c56d['main']['head']-0x1)),_0x369c7a={'from':_0x1c8ecd['from'],'to':_0x1c8ecd['to'],'insert':Text$1['of'](['\x20'])}),_0x369c7a)return applyDOMChangeInner(_0xf26f2f,_0x369c7a,_0x36c56d,_0x4bef60);if(_0x36c56d&&!_0x36c56d['main']['eq'](_0x1c8ecd)){let _0xa954fd=!0x1,_0x2da276='select';return _0xf26f2f['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0xf26f2f['inputState']['lastSelectionOrigin']&&(_0xa954fd=!0x0),_0x2da276=_0xf26f2f['inputState']['lastSelectionOrigin'],'select.pointer'==_0x2da276&&(_0x36c56d=skipAtomsForSelection(_0xf26f2f['state']['facet'](atomicRanges)['map'](_0xa9ba78=>_0xa9ba78(_0xf26f2f)),_0x36c56d))),_0xf26f2f['dispatch']({'selection':_0x36c56d,'scrollIntoView':_0xa954fd,'userEvent':_0x2da276}),!0x0;}return!0x1;}function applyDOMChangeInner(_0x3e7169,_0x1ea33f,_0x1c4565,_0x4e56e5=-0x1){if(browser['ios']&&_0x3e7169['inputState']['flushIOSKey'](_0x1ea33f))return!0x0;let _0x1c0542=_0x3e7169['state']['selection']['main'];if(browser['android']&&(_0x1ea33f['to']==_0x1c0542['to']&&(_0x1ea33f['from']==_0x1c0542['from']||_0x1ea33f['from']==_0x1c0542['from']-0x1&&'\x20'==_0x3e7169['state']['sliceDoc'](_0x1ea33f['from'],_0x1c0542['from']))&&0x1==_0x1ea33f['insert']['length']&&0x2==_0x1ea33f['insert']['lines']&&dispatchKey(_0x3e7169['contentDOM'],'Enter',0xd)||(_0x1ea33f['from']==_0x1c0542['from']-0x1&&_0x1ea33f['to']==_0x1c0542['to']&&0x0==_0x1ea33f['insert']['length']||0x8==_0x4e56e5&&_0x1ea33f['insert']['length']<_0x1ea33f['to']-_0x1ea33f['from']&&_0x1ea33f['to']>_0x1c0542['head'])&&dispatchKey(_0x3e7169['contentDOM'],'Backspace',0x8)||_0x1ea33f['from']==_0x1c0542['from']&&_0x1ea33f['to']==_0x1c0542['to']+0x1&&0x0==_0x1ea33f['insert']['length']&&dispatchKey(_0x3e7169['contentDOM'],'Delete',0x2e)))return!0x0;let _0x4a0557,_0x4d78d3=_0x1ea33f['insert']['toString']();_0x3e7169['inputState']['composing']>=0x0&&_0x3e7169['inputState']['composing']++;let _0x370fcf=()=>_0x4a0557||(_0x4a0557=applyDefaultInsert(_0x3e7169,_0x1ea33f,_0x1c4565));return _0x3e7169['state']['facet'](inputHandler$1)['some'](_0x5a124d=>_0x5a124d(_0x3e7169,_0x1ea33f['from'],_0x1ea33f['to'],_0x4d78d3,_0x370fcf))||_0x3e7169['dispatch'](_0x370fcf()),!0x0;}function applyDefaultInsert(_0xeb4ca6,_0x1bb14a,_0x1c1ba9){let _0x58c489,_0x302393=_0xeb4ca6['state'],_0x228560=_0x302393['selection']['main'],_0x47b095=-0x1;if(_0x1bb14a['from']==_0x1bb14a['to']&&_0x1bb14a['from']<_0x228560['from']||_0x1bb14a['from']>_0x228560['to']){let _0x4f3e7b=_0x1bb14a['from']<_0x228560['from']?-0x1:0x1,_0x553c38=_0x4f3e7b<0x0?_0x228560['from']:_0x228560['to'],_0x4970d3=skipAtomicRanges(_0x302393['facet'](atomicRanges)['map'](_0x3993fd=>_0x3993fd(_0xeb4ca6)),_0x553c38,_0x4f3e7b);_0x1bb14a['from']==_0x4970d3&&(_0x47b095=_0x4970d3);}if(_0x47b095>-0x1)_0x58c489={'changes':_0x1bb14a,'selection':EditorSelection['cursor'](_0x1bb14a['from']+_0x1bb14a['insert']['length'],-0x1)};else{if(_0x1bb14a['from']>=_0x228560['from']&&_0x1bb14a['to']<=_0x228560['to']&&_0x1bb14a['to']-_0x1bb14a['from']>=(_0x228560['to']-_0x228560['from'])/0x3&&(!_0x1c1ba9||_0x1c1ba9['main']['empty']&&_0x1c1ba9['main']['from']==_0x1bb14a['from']+_0x1bb14a['insert']['length'])&&_0xeb4ca6['inputState']['composing']<0x0){let _0x2292b1=_0x228560['from']<_0x1bb14a['from']?_0x302393['sliceDoc'](_0x228560['from'],_0x1bb14a['from']):'',_0x1b6153=_0x228560['to']>_0x1bb14a['to']?_0x302393['sliceDoc'](_0x1bb14a['to'],_0x228560['to']):'';_0x58c489=_0x302393['replaceSelection'](_0xeb4ca6['state']['toText'](_0x2292b1+_0x1bb14a['insert']['sliceString'](0x0,void 0x0,_0xeb4ca6['state']['lineBreak'])+_0x1b6153));}else{let _0x1d159b=_0x302393['changes'](_0x1bb14a),_0x11fefd=_0x1c1ba9&&_0x1c1ba9['main']['to']<=_0x1d159b['newLength']?_0x1c1ba9['main']:void 0x0;if(_0x302393['selection']['ranges']['length']>0x1&&_0xeb4ca6['inputState']['composing']>=0x0&&_0x1bb14a['to']<=_0x228560['to']&&_0x1bb14a['to']>=_0x228560['to']-0xa){let _0x39c3f4,_0x2dd422=_0xeb4ca6['state']['sliceDoc'](_0x1bb14a['from'],_0x1bb14a['to']),_0x321f1d=_0x1c1ba9&&findCompositionNode(_0xeb4ca6,_0x1c1ba9['main']['head']);if(_0x321f1d){let _0x566edc=_0x1bb14a['insert']['length']-(_0x1bb14a['to']-_0x1bb14a['from']);_0x39c3f4={'from':_0x321f1d['from'],'to':_0x321f1d['to']-_0x566edc};}else _0x39c3f4=_0xeb4ca6['state']['doc']['lineAt'](_0x228560['head']);let _0x44c5c7=_0x228560['to']-_0x1bb14a['to'],_0x2d60e7=_0x228560['to']-_0x228560['from'];_0x58c489=_0x302393['changeByRange'](_0x20807f=>{if(_0x20807f['from']==_0x228560['from']&&_0x20807f['to']==_0x228560['to'])return{'changes':_0x1d159b,'range':_0x11fefd||_0x20807f['map'](_0x1d159b)};let _0x35280c=_0x20807f['to']-_0x44c5c7,_0x55a89d=_0x35280c-_0x2dd422['length'];if(_0x20807f['to']-_0x20807f['from']!=_0x2d60e7||_0xeb4ca6['state']['sliceDoc'](_0x55a89d,_0x35280c)!=_0x2dd422||_0x20807f['to']>=_0x39c3f4['from']&&_0x20807f['from']<=_0x39c3f4['to'])return{'range':_0x20807f};let _0x5eaf5e=_0x302393['changes']({'from':_0x55a89d,'to':_0x35280c,'insert':_0x1bb14a['insert']}),_0x548845=_0x20807f['to']-_0x228560['to'];return{'changes':_0x5eaf5e,'range':_0x11fefd?EditorSelection['range'](Math['max'](0x0,_0x11fefd['anchor']+_0x548845),Math['max'](0x0,_0x11fefd['head']+_0x548845)):_0x20807f['map'](_0x5eaf5e)};});}else _0x58c489={'changes':_0x1d159b,'selection':_0x11fefd&&_0x302393['selection']['replaceRange'](_0x11fefd)};}}let _0x294206='input.type';return(_0xeb4ca6['composing']||_0xeb4ca6['inputState']['compositionPendingChange']&&_0xeb4ca6['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0xeb4ca6['inputState']['compositionPendingChange']=!0x1,_0x294206+='.compose',_0xeb4ca6['inputState']['compositionFirstChange']&&(_0x294206+='.start',_0xeb4ca6['inputState']['compositionFirstChange']=!0x1)),_0x302393['update'](_0x58c489,{'userEvent':_0x294206,'scrollIntoView':!0x0});}function findDiff(_0x3ca11b,_0x41b9cd,_0x391069,_0x2ac9e2){let _0x1090b8=Math['min'](_0x3ca11b['length'],_0x41b9cd['length']),_0x5e16b9=0x0;for(;_0x5e16b9<_0x1090b8&&_0x3ca11b['charCodeAt'](_0x5e16b9)==_0x41b9cd['charCodeAt'](_0x5e16b9);)_0x5e16b9++;if(_0x5e16b9==_0x1090b8&&_0x3ca11b['length']==_0x41b9cd['length'])return null;let _0xfcc1e6=_0x3ca11b['length'],_0x4cc13e=_0x41b9cd['length'];for(;_0xfcc1e6>0x0&&_0x4cc13e>0x0&&_0x3ca11b['charCodeAt'](_0xfcc1e6-0x1)==_0x41b9cd['charCodeAt'](_0x4cc13e-0x1);)_0xfcc1e6--,_0x4cc13e--;'end'==_0x2ac9e2&&(_0x391069-=_0xfcc1e6+Math['max'](0x0,_0x5e16b9-Math['min'](_0xfcc1e6,_0x4cc13e))-_0x5e16b9);if(_0xfcc1e6<_0x5e16b9&&_0x3ca11b['length']<_0x41b9cd['length'])_0x5e16b9-=_0x391069<=_0x5e16b9&&_0x391069>=_0xfcc1e6?_0x5e16b9-_0x391069:0x0,_0x4cc13e=_0x5e16b9+(_0x4cc13e-_0xfcc1e6),_0xfcc1e6=_0x5e16b9;else _0x4cc13e<_0x5e16b9&&(_0x5e16b9-=_0x391069<=_0x5e16b9&&_0x391069>=_0x4cc13e?_0x5e16b9-_0x391069:0x0,_0xfcc1e6=_0x5e16b9+(_0xfcc1e6-_0x4cc13e),_0x4cc13e=_0x5e16b9);return{'from':_0x5e16b9,'toA':_0xfcc1e6,'toB':_0x4cc13e};}function selectionPoints(_0x403f85){let _0x5697e9=[];if(_0x403f85['root']['activeElement']!=_0x403f85['contentDOM'])return _0x5697e9;let {anchorNode:_0x1a28c4,anchorOffset:_0x535281,focusNode:_0x5c77a4,focusOffset:_0x27606b}=_0x403f85['observer']['selectionRange'];return _0x1a28c4&&(_0x5697e9['push'](new DOMPoint(_0x1a28c4,_0x535281)),_0x5c77a4==_0x1a28c4&&_0x27606b==_0x535281||_0x5697e9['push'](new DOMPoint(_0x5c77a4,_0x27606b))),_0x5697e9;}function selectionFromPoints(_0x37eeee,_0x4d9557){if(0x0==_0x37eeee['length'])return null;let _0x843d27=_0x37eeee[0x0]['pos'],_0x34fe03=0x2==_0x37eeee['length']?_0x37eeee[0x1]['pos']:_0x843d27;return _0x843d27>-0x1&&_0x34fe03>-0x1?EditorSelection['single'](_0x843d27+_0x4d9557,_0x34fe03+_0x4d9557):null;}class InputState{['setSelectionOrigin'](_0x57b09f){this['lastSelectionOrigin']=_0x57b09f,this['lastSelectionTime']=Date['now']();}constructor(_0x48b315){this['view']=_0x48b315,this['lastKeyCode']=0x0,this['lastKeyTime']=0x0,this['lastTouchTime']=0x0,this['lastFocusTime']=0x0,this['lastScrollTop']=0x0,this['lastScrollLeft']=0x0,this['pendingIOSKey']=void 0x0,this['tabFocusMode']=-0x1,this['lastSelectionOrigin']=null,this['lastSelectionTime']=0x0,this['lastContextMenu']=0x0,this['scrollHandlers']=[],this['handlers']=Object['create'](null),this['composing']=-0x1,this['compositionFirstChange']=null,this['compositionEndedAt']=0x0,this['compositionPendingKey']=!0x1,this['compositionPendingChange']=!0x1,this['mouseSelection']=null,this['draggedContent']=null,this['handleEvent']=this['handleEvent']['bind'](this),this['notifiedFocused']=_0x48b315['hasFocus'],browser['safari']&&_0x48b315['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x48b315['contentDOM']['ownerDocument']);}['handleEvent'](_0x26de4a){eventBelongsToEditor(this['view'],_0x26de4a)&&!this['ignoreDuringComposition'](_0x26de4a)&&('keydown'==_0x26de4a['type']&&this['keydown'](_0x26de4a)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x26de4a['type'],_0x26de4a)):this['runHandlers'](_0x26de4a['type'],_0x26de4a)));}['runHandlers'](_0x257613,_0x15c5fd){let _0x48ba57=this['handlers'][_0x257613];if(_0x48ba57){for(let _0x4232de of _0x48ba57['observers'])_0x4232de(this['view'],_0x15c5fd);for(let _0x5e6f77 of _0x48ba57['handlers']){if(_0x15c5fd['defaultPrevented'])break;if(_0x5e6f77(this['view'],_0x15c5fd)){_0x15c5fd['preventDefault']();break;}}}}['ensureHandlers'](_0x376776){let _0x120d37=computeHandlers(_0x376776),_0x529382=this['handlers'],_0x1b7e3e=this['view']['contentDOM'];for(let _0x456755 in _0x120d37)if('scroll'!=_0x456755){let _0x1cf37c=!_0x120d37[_0x456755]['handlers']['length'],_0x557285=_0x529382[_0x456755];_0x557285&&_0x1cf37c!=!_0x557285['handlers']['length']&&(_0x1b7e3e['removeEventListener'](_0x456755,this['handleEvent']),_0x557285=null),_0x557285||_0x1b7e3e['addEventListener'](_0x456755,this['handleEvent'],{'passive':_0x1cf37c});}for(let _0x48949d in _0x529382)'scroll'==_0x48949d||_0x120d37[_0x48949d]||_0x1b7e3e['removeEventListener'](_0x48949d,this['handleEvent']);this['handlers']=_0x120d37;}['keydown'](_0x3f85d7){if(this['lastKeyCode']=_0x3f85d7['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x3f85d7['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x3f85d7['keyCode']&&modifierCodes['indexOf'](_0x3f85d7['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x3f85d7['synthetic']&&(0xd==_0x3f85d7['keyCode']||0x8==_0x3f85d7['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x3f85d7['key'],_0x3f85d7['keyCode']),!0x0;let _0x150c11;return!browser['ios']||_0x3f85d7['synthetic']||_0x3f85d7['altKey']||_0x3f85d7['metaKey']||!((_0x150c11=PendingKeys['find'](_0x46f19f=>_0x46f19f['keyCode']==_0x3f85d7['keyCode']))&&!_0x3f85d7['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x3f85d7['key'])>-0x1&&_0x3f85d7['ctrlKey']&&!_0x3f85d7['shiftKey'])?(0xe5!=_0x3f85d7['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x150c11||_0x3f85d7,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x600fb7){let _0x226152=this['pendingIOSKey'];return!!_0x226152&&(!('Enter'==_0x226152['key']&&_0x600fb7&&_0x600fb7['from']<_0x600fb7['to']&&/^\S+$/['test'](_0x600fb7['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0x226152['key'],_0x226152['keyCode'],_0x226152 instanceof KeyboardEvent?_0x226152:void 0x0)));}['ignoreDuringComposition'](_0x4c79be){return!(!/^key/['test'](_0x4c79be['type'])||_0x4c79be['synthetic'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x475296){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x475296;}['update'](_0x28948b){this['view']['observer']['update'](_0x28948b),this['mouseSelection']&&this['mouseSelection']['update'](_0x28948b),this['draggedContent']&&_0x28948b['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x28948b['changes'])),_0x28948b['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x46460c,_0x5e27c4){return(_0x4fcc67,_0x3474c4)=>{try{return _0x5e27c4['call'](_0x46460c,_0x3474c4,_0x4fcc67);}catch(_0x1de5eb){logException(_0x4fcc67['state'],_0x1de5eb);}};}function computeHandlers(_0x4ba767){let _0x496a85=Object['create'](null);function _0x117d0c(_0x40b1cd){return _0x496a85[_0x40b1cd]||(_0x496a85[_0x40b1cd]={'observers':[],'handlers':[]});}for(let _0x303b0f of _0x4ba767){let _0x340412=_0x303b0f['spec'],_0x18ec1e=_0x340412&&_0x340412['plugin']['domEventHandlers'],_0x23f951=_0x340412&&_0x340412['plugin']['domEventObservers'];if(_0x18ec1e)for(let _0x3fbec6 in _0x18ec1e){let _0x56958a=_0x18ec1e[_0x3fbec6];_0x56958a&&_0x117d0c(_0x3fbec6)['handlers']['push'](bindHandler(_0x303b0f['value'],_0x56958a));}if(_0x23f951)for(let _0x27c607 in _0x23f951){let _0x43b703=_0x23f951[_0x27c607];_0x43b703&&_0x117d0c(_0x27c607)['observers']['push'](bindHandler(_0x303b0f['value'],_0x43b703));}}for(let _0x468086 in handlers)_0x117d0c(_0x468086)['handlers']['push'](handlers[_0x468086]);for(let _0x50248b in observers)_0x117d0c(_0x50248b)['observers']['push'](observers[_0x50248b]);return _0x496a85;}const PendingKeys=[{'key':'Backspace','keyCode':0x8,'inputType':'deleteContentBackward'},{'key':'Enter','keyCode':0xd,'inputType':'insertParagraph'},{'key':'Enter','keyCode':0xd,'inputType':'insertLineBreak'},{'key':'Delete','keyCode':0x2e,'inputType':'deleteContentForward'}],EmacsyPendingKeys='dthko',modifierCodes=[0x10,0x11,0x12,0x14,0x5b,0x5c,0xe0,0xe1],dragScrollMargin=0x6;function dragScrollSpeed(_0x3094ac){return 0.7*Math['max'](0x0,_0x3094ac)+0x8;}function dist(_0x2f898b,_0x16b18a){return Math['max'](Math['abs'](_0x2f898b['clientX']-_0x16b18a['clientX']),Math['abs'](_0x2f898b['clientY']-_0x16b18a['clientY']));}class MouseSelection{constructor(_0x1ccd50,_0x322ada,_0x43af39,_0x576b2c){this['view']=_0x1ccd50,this['startEvent']=_0x322ada,this['style']=_0x43af39,this['mustSelect']=_0x576b2c,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x322ada,this['scrollParents']=scrollableParents(_0x1ccd50['contentDOM']),this['atoms']=_0x1ccd50['state']['facet'](atomicRanges)['map'](_0x2fae2c=>_0x2fae2c(_0x1ccd50));let _0x5eee7a=_0x1ccd50['contentDOM']['ownerDocument'];_0x5eee7a['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x5eee7a['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x322ada['shiftKey'],this['multiple']=_0x1ccd50['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x1ccd50,_0x322ada),this['dragging']=!(!isInPrimarySelection(_0x1ccd50,_0x322ada)||0x1!=getClickType(_0x322ada))&&null;}['start'](_0x7651a3){!0x1===this['dragging']&&this['select'](_0x7651a3);}['move'](_0x69a8a3){if(0x0==_0x69a8a3['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x69a8a3)<0xa)return;this['select'](this['lastEvent']=_0x69a8a3);let _0x43e670=0x0,_0x49e02f=0x0,_0x2b884f=0x0,_0x1de84a=0x0,_0x498444=this['view']['win']['innerWidth'],_0x295792=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x2b884f,right:_0x498444}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x1de84a,bottom:_0x295792}=this['scrollParents']['y']['getBoundingClientRect']());let _0x2db28a=getScrollMargins(this['view']);_0x69a8a3['clientX']-_0x2db28a['left']<=_0x2b884f+dragScrollMargin?_0x43e670=-dragScrollSpeed(_0x2b884f-_0x69a8a3['clientX']):_0x69a8a3['clientX']+_0x2db28a['right']>=_0x498444-dragScrollMargin&&(_0x43e670=dragScrollSpeed(_0x69a8a3['clientX']-_0x498444)),_0x69a8a3['clientY']-_0x2db28a['top']<=_0x1de84a+dragScrollMargin?_0x49e02f=-dragScrollSpeed(_0x1de84a-_0x69a8a3['clientY']):_0x69a8a3['clientY']+_0x2db28a['bottom']>=_0x295792-dragScrollMargin&&(_0x49e02f=dragScrollSpeed(_0x69a8a3['clientY']-_0x295792)),this['setScrollSpeed'](_0x43e670,_0x49e02f);}['up'](_0x3a9336){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0x3a9336['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x4a4424=this['view']['contentDOM']['ownerDocument'];_0x4a4424['removeEventListener']('mousemove',this['move']),_0x4a4424['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0x28cd4c,_0x189696){this['scrollSpeed']={'x':_0x28cd4c,'y':_0x189696},_0x28cd4c||_0x189696?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x567d9a,y:_0x41805b}=this['scrollSpeed'];_0x567d9a&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x567d9a,_0x567d9a=0x0),_0x41805b&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x41805b,_0x41805b=0x0),(_0x567d9a||_0x41805b)&&this['view']['win']['scrollBy'](_0x567d9a,_0x41805b),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x266aaa){let {view:_0x5365a9}=this,_0x22a9b3=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x266aaa,this['extend'],this['multiple']));!this['mustSelect']&&_0x22a9b3['eq'](_0x5365a9['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x22a9b3,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x171cb2){_0x171cb2['transactions']['some'](_0x554280=>_0x554280['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x171cb2)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x21febb,_0x709653){let _0x598325=_0x21febb['state']['facet'](clickAddsSelectionRange);return _0x598325['length']?_0x598325[0x0](_0x709653):browser['mac']?_0x709653['metaKey']:_0x709653['ctrlKey'];}function dragMovesSelection(_0x21ae0d,_0x27636e){let _0x56542f=_0x21ae0d['state']['facet'](dragMovesSelection$1);return _0x56542f['length']?_0x56542f[0x0](_0x27636e):browser['mac']?!_0x27636e['altKey']:!_0x27636e['ctrlKey'];}function isInPrimarySelection(_0x10c7b7,_0x4a9668){let {main:_0x341d22}=_0x10c7b7['state']['selection'];if(_0x341d22['empty'])return!0x1;let _0x262a1d=getSelection(_0x10c7b7['root']);if(!_0x262a1d||0x0==_0x262a1d['rangeCount'])return!0x0;let _0x15121b=_0x262a1d['getRangeAt'](0x0)['getClientRects']();for(let _0x496991=0x0;_0x496991<_0x15121b['length'];_0x496991++){let _0x8d8db0=_0x15121b[_0x496991];if(_0x8d8db0['left']<=_0x4a9668['clientX']&&_0x8d8db0['right']>=_0x4a9668['clientX']&&_0x8d8db0['top']<=_0x4a9668['clientY']&&_0x8d8db0['bottom']>=_0x4a9668['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0x20e744,_0x28df50){if(!_0x28df50['bubbles'])return!0x0;if(_0x28df50['defaultPrevented'])return!0x1;for(let _0x2fe262,_0x14539e=_0x28df50['target'];_0x14539e!=_0x20e744['contentDOM'];_0x14539e=_0x14539e['parentNode'])if(!_0x14539e||0xb==_0x14539e['nodeType']||(_0x2fe262=ContentView['get'](_0x14539e))&&_0x2fe262['ignoreEvent'](_0x28df50))return!0x1;return!0x0;}const handlers=Object['create'](null),observers=Object['create'](null),brokenClipboardAPI=browser['ie']&&browser['ie_version']<0xf||browser['ios']&&browser['webkit_version']<0x25c;function capturePaste(_0x326294){let _0x17b5bb=_0x326294['dom']['parentNode'];if(!_0x17b5bb)return;let _0x168eb9=_0x17b5bb['appendChild'](document['createElement']('textarea'));_0x168eb9['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x168eb9['focus'](),setTimeout(()=>{_0x326294['focus'](),_0x168eb9['remove'](),doPaste(_0x326294,_0x168eb9['value']);},0x32);}function textFilter(_0x45801c,_0x5c4475,_0x2142d9){for(let _0x5a0156 of _0x45801c['facet'](_0x5c4475))_0x2142d9=_0x5a0156(_0x2142d9,_0x45801c);return _0x2142d9;}function doPaste(_0x1b38ce,_0x203672){_0x203672=textFilter(_0x1b38ce['state'],clipboardInputFilter,_0x203672);let _0x396f45,{state:_0x5d1908}=_0x1b38ce,_0x3e0bd2=0x1,_0x364503=_0x5d1908['toText'](_0x203672),_0x179336=_0x364503['lines']==_0x5d1908['selection']['ranges']['length'];if(null!=lastLinewiseCopy&&_0x5d1908['selection']['ranges']['every'](_0x289105=>_0x289105['empty'])&&lastLinewiseCopy==_0x364503['toString']()){let _0x10f307=-0x1;_0x396f45=_0x5d1908['changeByRange'](_0x13dfc8=>{let _0x5387b2=_0x5d1908['doc']['lineAt'](_0x13dfc8['from']);if(_0x5387b2['from']==_0x10f307)return{'range':_0x13dfc8};_0x10f307=_0x5387b2['from'];let _0x123429=_0x5d1908['toText']((_0x179336?_0x364503['line'](_0x3e0bd2++)['text']:_0x203672)+_0x5d1908['lineBreak']);return{'changes':{'from':_0x5387b2['from'],'insert':_0x123429},'range':EditorSelection['cursor'](_0x13dfc8['from']+_0x123429['length'])};});}else _0x396f45=_0x179336?_0x5d1908['changeByRange'](_0x486a14=>{let _0x4954bc=_0x364503['line'](_0x3e0bd2++);return{'changes':{'from':_0x486a14['from'],'to':_0x486a14['to'],'insert':_0x4954bc['text']},'range':EditorSelection['cursor'](_0x486a14['from']+_0x4954bc['length'])};}):_0x5d1908['replaceSelection'](_0x364503);_0x1b38ce['dispatch'](_0x396f45,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x47c442,_0x218054,_0x5817f4,_0x18aa3c){if(0x1==_0x18aa3c)return EditorSelection['cursor'](_0x218054,_0x5817f4);if(0x2==_0x18aa3c)return groupAt(_0x47c442['state'],_0x218054,_0x5817f4);{let _0x14e22e=LineView['find'](_0x47c442['docView'],_0x218054),_0x2835dc=_0x47c442['state']['doc']['lineAt'](_0x14e22e?_0x14e22e['posAtEnd']:_0x218054),_0x4a8d82=_0x14e22e?_0x14e22e['posAtStart']:_0x2835dc['from'],_0x21815f=_0x14e22e?_0x14e22e['posAtEnd']:_0x2835dc['to'];return _0x21815f<_0x47c442['state']['doc']['length']&&_0x21815f==_0x2835dc['to']&&_0x21815f++,EditorSelection['range'](_0x4a8d82,_0x21815f);}}observers['scroll']=_0x1ebe26=>{_0x1ebe26['inputState']['lastScrollTop']=_0x1ebe26['scrollDOM']['scrollTop'],_0x1ebe26['inputState']['lastScrollLeft']=_0x1ebe26['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0x58e83f,_0x496919)=>(_0x58e83f['inputState']['setSelectionOrigin']('select'),0x1b==_0x496919['keyCode']&&0x0!=_0x58e83f['inputState']['tabFocusMode']&&(_0x58e83f['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0x1108e3,_0x8b7b32)=>{_0x1108e3['inputState']['lastTouchTime']=Date['now'](),_0x1108e3['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x58415a=>{_0x58415a['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x57696e,_0x44bbb1)=>{if(_0x57696e['observer']['flush'](),_0x57696e['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0x32b9ff=null;for(let _0x44579a of _0x57696e['state']['facet'](mouseSelectionStyle))if(_0x32b9ff=_0x44579a(_0x57696e,_0x44bbb1),_0x32b9ff)break;if(_0x32b9ff||0x0!=_0x44bbb1['button']||(_0x32b9ff=basicMouseSelection(_0x57696e,_0x44bbb1)),_0x32b9ff){let _0x2c0149=!_0x57696e['hasFocus'];_0x57696e['inputState']['startMouseSelection'](new MouseSelection(_0x57696e,_0x44bbb1,_0x32b9ff,_0x2c0149)),_0x2c0149&&_0x57696e['observer']['ignore'](()=>{focusPreventScroll(_0x57696e['contentDOM']);let _0x44f6c5=_0x57696e['root']['activeElement'];_0x44f6c5&&!_0x44f6c5['contains'](_0x57696e['contentDOM'])&&_0x44f6c5['blur']();});let _0x2b665b=_0x57696e['inputState']['mouseSelection'];if(_0x2b665b)return _0x2b665b['start'](_0x44bbb1),!0x1===_0x2b665b['dragging'];}else _0x57696e['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0x34747c,_0x4cfda6,_0x33389b)=>_0x4cfda6>=_0x33389b['top']&&_0x4cfda6<=_0x33389b['bottom']&&_0x34747c>=_0x33389b['left']&&_0x34747c<=_0x33389b['right'];function findPositionSide(_0x34b498,_0x3cc292,_0x3b3cba,_0x4fe80e){let _0x2326c6=LineView['find'](_0x34b498['docView'],_0x3cc292);if(!_0x2326c6)return 0x1;let _0x5ec7bd=_0x3cc292-_0x2326c6['posAtStart'];if(0x0==_0x5ec7bd)return 0x1;if(_0x5ec7bd==_0x2326c6['length'])return-0x1;let _0x32cb0c=_0x2326c6['coordsAt'](_0x5ec7bd,-0x1);if(_0x32cb0c&&inside(_0x3b3cba,_0x4fe80e,_0x32cb0c))return-0x1;let _0x15511b=_0x2326c6['coordsAt'](_0x5ec7bd,0x1);return _0x15511b&&inside(_0x3b3cba,_0x4fe80e,_0x15511b)?0x1:_0x32cb0c&&_0x32cb0c['bottom']>=_0x4fe80e?-0x1:0x1;}function queryPos(_0x1bb4c8,_0x5b4d46){let _0x481f4f=_0x1bb4c8['posAtCoords']({'x':_0x5b4d46['clientX'],'y':_0x5b4d46['clientY']},!0x1);return{'pos':_0x481f4f,'bias':findPositionSide(_0x1bb4c8,_0x481f4f,_0x5b4d46['clientX'],_0x5b4d46['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0x1731c8){if(!BadMouseDetail)return _0x1731c8['detail'];let _0x2d3f85=lastMouseDown,_0x264b3c=lastMouseDownTime;return lastMouseDown=_0x1731c8,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0x2d3f85||_0x264b3c>Date['now']()-0x190&&Math['abs'](_0x2d3f85['clientX']-_0x1731c8['clientX'])<0x2&&Math['abs'](_0x2d3f85['clientY']-_0x1731c8['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x43e771,_0x1f0ca1){let _0x5f1c3c=queryPos(_0x43e771,_0x1f0ca1),_0x20ed95=getClickType(_0x1f0ca1),_0x13b5fd=_0x43e771['state']['selection'];return{'update'(_0x458933){_0x458933['docChanged']&&(_0x5f1c3c['pos']=_0x458933['changes']['mapPos'](_0x5f1c3c['pos']),_0x13b5fd=_0x13b5fd['map'](_0x458933['changes']));},'get'(_0x4609b8,_0x199624,_0x108de6){let _0x1ce289,_0x1550ad=queryPos(_0x43e771,_0x4609b8),_0x481fad=rangeForClick(_0x43e771,_0x1550ad['pos'],_0x1550ad['bias'],_0x20ed95);if(_0x5f1c3c['pos']!=_0x1550ad['pos']&&!_0x199624){let _0x504240=rangeForClick(_0x43e771,_0x5f1c3c['pos'],_0x5f1c3c['bias'],_0x20ed95),_0x315dd0=Math['min'](_0x504240['from'],_0x481fad['from']),_0x4729c3=Math['max'](_0x504240['to'],_0x481fad['to']);_0x481fad=_0x315dd0<_0x481fad['from']?EditorSelection['range'](_0x315dd0,_0x4729c3):EditorSelection['range'](_0x4729c3,_0x315dd0);}return _0x199624?_0x13b5fd['replaceRange'](_0x13b5fd['main']['extend'](_0x481fad['from'],_0x481fad['to'])):_0x108de6&&0x1==_0x20ed95&&_0x13b5fd['ranges']['length']>0x1&&(_0x1ce289=removeRangeAround(_0x13b5fd,_0x1550ad['pos']))?_0x1ce289:_0x108de6?_0x13b5fd['addRange'](_0x481fad):EditorSelection['create']([_0x481fad]);}};}function removeRangeAround(_0x349544,_0x41b152){for(let _0x393408=0x0;_0x393408<_0x349544['ranges']['length'];_0x393408++){let {from:_0x511a1c,to:_0x1bb484}=_0x349544['ranges'][_0x393408];if(_0x511a1c<=_0x41b152&&_0x1bb484>=_0x41b152)return EditorSelection['create'](_0x349544['ranges']['slice'](0x0,_0x393408)['concat'](_0x349544['ranges']['slice'](_0x393408+0x1)),_0x349544['mainIndex']==_0x393408?0x0:_0x349544['mainIndex']-(_0x349544['mainIndex']>_0x393408?0x1:0x0));}return null;}function dropText(_0x29733a,_0x3665f2,_0x1d2f0a,_0x2167aa){if(!(_0x1d2f0a=textFilter(_0x29733a['state'],clipboardInputFilter,_0x1d2f0a)))return;let _0x23ae50=_0x29733a['posAtCoords']({'x':_0x3665f2['clientX'],'y':_0x3665f2['clientY']},!0x1),{draggedContent:_0x516800}=_0x29733a['inputState'],_0x49c563=_0x2167aa&&_0x516800&&dragMovesSelection(_0x29733a,_0x3665f2)?{'from':_0x516800['from'],'to':_0x516800['to']}:null,_0x4652a7={'from':_0x23ae50,'insert':_0x1d2f0a},_0x564d0d=_0x29733a['state']['changes'](_0x49c563?[_0x49c563,_0x4652a7]:_0x4652a7);_0x29733a['focus'](),_0x29733a['dispatch']({'changes':_0x564d0d,'selection':{'anchor':_0x564d0d['mapPos'](_0x23ae50,-0x1),'head':_0x564d0d['mapPos'](_0x23ae50,0x1)},'userEvent':_0x49c563?'move.drop':'input.drop'}),_0x29733a['inputState']['draggedContent']=null;}function captureCopy(_0x4f34c6,_0x4ad4b0){let _0x15e97d=_0x4f34c6['dom']['parentNode'];if(!_0x15e97d)return;let _0xc34e90=_0x15e97d['appendChild'](document['createElement']('textarea'));_0xc34e90['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0xc34e90['value']=_0x4ad4b0,_0xc34e90['focus'](),_0xc34e90['selectionEnd']=_0x4ad4b0['length'],_0xc34e90['selectionStart']=0x0,setTimeout(()=>{_0xc34e90['remove'](),_0x4f34c6['focus']();},0x32);}function copiedRange(_0x54e135){let _0xa88b30=[],_0x5218bb=[],_0x12fee9=!0x1;for(let _0x283926 of _0x54e135['selection']['ranges'])_0x283926['empty']||(_0xa88b30['push'](_0x54e135['sliceDoc'](_0x283926['from'],_0x283926['to'])),_0x5218bb['push'](_0x283926));if(!_0xa88b30['length']){let _0x52839d=-0x1;for(let {from:_0x8cd00d}of _0x54e135['selection']['ranges']){let _0x3a8554=_0x54e135['doc']['lineAt'](_0x8cd00d);_0x3a8554['number']>_0x52839d&&(_0xa88b30['push'](_0x3a8554['text']),_0x5218bb['push']({'from':_0x3a8554['from'],'to':Math['min'](_0x54e135['doc']['length'],_0x3a8554['to']+0x1)})),_0x52839d=_0x3a8554['number'];}_0x12fee9=!0x0;}return{'text':textFilter(_0x54e135,clipboardOutputFilter,_0xa88b30['join'](_0x54e135['lineBreak'])),'ranges':_0x5218bb,'linewise':_0x12fee9};}handlers['dragstart']=(_0x47c79c,_0x50759d)=>{let {selection:{main:_0x991aa4}}=_0x47c79c['state'];if(_0x50759d['target']['draggable']){let _0xb9ae86=_0x47c79c['docView']['nearest'](_0x50759d['target']);if(_0xb9ae86&&_0xb9ae86['isWidget']){let _0x4476ec=_0xb9ae86['posAtStart'],_0x2a4d61=_0x4476ec+_0xb9ae86['length'];(_0x4476ec>=_0x991aa4['to']||_0x2a4d61<=_0x991aa4['from'])&&(_0x991aa4=EditorSelection['range'](_0x4476ec,_0x2a4d61));}}let {inputState:_0x35e80f}=_0x47c79c;return _0x35e80f['mouseSelection']&&(_0x35e80f['mouseSelection']['dragging']=!0x0),_0x35e80f['draggedContent']=_0x991aa4,_0x50759d['dataTransfer']&&(_0x50759d['dataTransfer']['setData']('Text',textFilter(_0x47c79c['state'],clipboardOutputFilter,_0x47c79c['state']['sliceDoc'](_0x991aa4['from'],_0x991aa4['to']))),_0x50759d['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0x50d0e8=>(_0x50d0e8['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x4dc62e,_0x10292d)=>{if(!_0x10292d['dataTransfer'])return!0x1;if(_0x4dc62e['state']['readOnly'])return!0x0;let _0x4b94a2=_0x10292d['dataTransfer']['files'];if(_0x4b94a2&&_0x4b94a2['length']){let _0x3667fb=Array(_0x4b94a2['length']),_0x2bdeaa=0x0,_0x1090a6=()=>{++_0x2bdeaa==_0x4b94a2['length']&&dropText(_0x4dc62e,_0x10292d,_0x3667fb['filter'](_0x228f02=>null!=_0x228f02)['join'](_0x4dc62e['state']['lineBreak']),!0x1);};for(let _0x598e2b=0x0;_0x598e2b<_0x4b94a2['length'];_0x598e2b++){let _0x381450=new FileReader();_0x381450['onerror']=_0x1090a6,_0x381450['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0x381450['result'])||(_0x3667fb[_0x598e2b]=_0x381450['result']),_0x1090a6();},_0x381450['readAsText'](_0x4b94a2[_0x598e2b]);}return!0x0;}{let _0x50baf9=_0x10292d['dataTransfer']['getData']('Text');if(_0x50baf9)return dropText(_0x4dc62e,_0x10292d,_0x50baf9,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x20cacf,_0xdb0e98)=>{if(_0x20cacf['state']['readOnly'])return!0x0;_0x20cacf['observer']['flush']();let _0x1cec55=brokenClipboardAPI?null:_0xdb0e98['clipboardData'];return _0x1cec55?(doPaste(_0x20cacf,_0x1cec55['getData']('text/plain')||_0x1cec55['getData']('text/uri-list')),!0x0):(capturePaste(_0x20cacf),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x2a67da,_0x24d883)=>{let {text:_0x46387d,ranges:_0x57d6f1,linewise:_0x3ec55c}=copiedRange(_0x2a67da['state']);if(!_0x46387d&&!_0x3ec55c)return!0x1;lastLinewiseCopy=_0x3ec55c?_0x46387d:null,'cut'!=_0x24d883['type']||_0x2a67da['state']['readOnly']||_0x2a67da['dispatch']({'changes':_0x57d6f1,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x4add5b=brokenClipboardAPI?null:_0x24d883['clipboardData'];return _0x4add5b?(_0x4add5b['clearData'](),_0x4add5b['setData']('text/plain',_0x46387d),!0x0):(captureCopy(_0x2a67da,_0x46387d),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0x306af5,_0x214e60){let _0x191973=[];for(let _0x5bd86e of _0x306af5['facet'](focusChangeEffect)){let _0x3677d0=_0x5bd86e(_0x306af5,_0x214e60);_0x3677d0&&_0x191973['push'](_0x3677d0);}return _0x191973['length']?_0x306af5['update']({'effects':_0x191973,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x4a5918){setTimeout(()=>{let _0x2247c0=_0x4a5918['hasFocus'];if(_0x2247c0!=_0x4a5918['inputState']['notifiedFocused']){let _0x18b555=focusChangeTransaction(_0x4a5918['state'],_0x2247c0);_0x18b555?_0x4a5918['dispatch'](_0x18b555):_0x4a5918['update']([]);}},0xa);}observers['focus']=_0x44b502=>{_0x44b502['inputState']['lastFocusTime']=Date['now'](),_0x44b502['scrollDOM']['scrollTop']||!_0x44b502['inputState']['lastScrollTop']&&!_0x44b502['inputState']['lastScrollLeft']||(_0x44b502['scrollDOM']['scrollTop']=_0x44b502['inputState']['lastScrollTop'],_0x44b502['scrollDOM']['scrollLeft']=_0x44b502['inputState']['lastScrollLeft']),updateForFocusChange(_0x44b502);},observers['blur']=_0x4304df=>{_0x4304df['observer']['clearSelectionRange'](),updateForFocusChange(_0x4304df);},observers['compositionstart']=observers['compositionupdate']=_0x59e5ca=>{_0x59e5ca['observer']['editContext']||(null==_0x59e5ca['inputState']['compositionFirstChange']&&(_0x59e5ca['inputState']['compositionFirstChange']=!0x0),_0x59e5ca['inputState']['composing']<0x0&&(_0x59e5ca['inputState']['composing']=0x0));},observers['compositionend']=_0x3156b0=>{_0x3156b0['observer']['editContext']||(_0x3156b0['inputState']['composing']=-0x1,_0x3156b0['inputState']['compositionEndedAt']=Date['now'](),_0x3156b0['inputState']['compositionPendingKey']=!0x0,_0x3156b0['inputState']['compositionPendingChange']=_0x3156b0['observer']['pendingRecords']()['length']>0x0,_0x3156b0['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x3156b0['observer']['flushSoon']():_0x3156b0['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x3156b0['observer']['flush']()):setTimeout(()=>{_0x3156b0['inputState']['composing']<0x0&&_0x3156b0['docView']['hasComposition']&&_0x3156b0['update']([]);},0x32));},observers['contextmenu']=_0x2d035a=>{_0x2d035a['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x1c4500,_0x352d33)=>{var _0x2bd9ef,_0x494823;if('insertReplacementText'==_0x352d33['inputType']&&_0x1c4500['observer']['editContext']){let _0x3c70c2=null===(_0x2bd9ef=_0x352d33['dataTransfer'])||void 0x0===_0x2bd9ef?void 0x0:_0x2bd9ef['getData']('text/plain'),_0x18ba89=_0x352d33['getTargetRanges']();if(_0x3c70c2&&_0x18ba89['length']){let _0x52ef6d=_0x18ba89[0x0],_0x56c393=_0x1c4500['posAtDOM'](_0x52ef6d['startContainer'],_0x52ef6d['startOffset']),_0x856d70=_0x1c4500['posAtDOM'](_0x52ef6d['endContainer'],_0x52ef6d['endOffset']);return applyDOMChangeInner(_0x1c4500,{'from':_0x56c393,'to':_0x856d70,'insert':_0x1c4500['state']['toText'](_0x3c70c2)},null),!0x0;}}let _0x3a53f7;if(browser['chrome']&&browser['android']&&(_0x3a53f7=PendingKeys['find'](_0x450e63=>_0x450e63['inputType']==_0x352d33['inputType']))&&(_0x1c4500['observer']['delayAndroidKey'](_0x3a53f7['key'],_0x3a53f7['keyCode']),'Backspace'==_0x3a53f7['key']||'Delete'==_0x3a53f7['key'])){let _0x2d1a09=(null===(_0x494823=window['visualViewport'])||void 0x0===_0x494823?void 0x0:_0x494823['height'])||0x0;setTimeout(()=>{var _0x243086;((null===(_0x243086=window['visualViewport'])||void 0x0===_0x243086?void 0x0:_0x243086['height'])||0x0)>_0x2d1a09+0xa&&_0x1c4500['hasFocus']&&(_0x1c4500['contentDOM']['blur'](),_0x1c4500['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x352d33['inputType']&&_0x1c4500['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x352d33['inputType']&&_0x1c4500['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x1c4500,_0x352d33),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x12ef33){appliedFirefoxHack['has'](_0x12ef33)||(appliedFirefoxHack['add'](_0x12ef33),_0x12ef33['addEventListener']('copy',()=>{}),_0x12ef33['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0x22a2e5){this['lineWrapping']=_0x22a2e5,this['doc']=Text$1['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0x105c98,_0x225dd2){let _0x24884f=this['doc']['lineAt'](_0x225dd2)['number']-this['doc']['lineAt'](_0x105c98)['number']+0x1;return this['lineWrapping']&&(_0x24884f+=Math['max'](0x0,Math['ceil']((_0x225dd2-_0x105c98-_0x24884f*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x24884f;}['heightForLine'](_0x551691){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x551691-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x508d3f){return this['doc']=_0x508d3f,this;}['mustRefreshForWrapping'](_0x6de2fd){return wrappingWhiteSpace['indexOf'](_0x6de2fd)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x233851){let _0x6dfc41=!0x1;for(let _0x3fe382=0x0;_0x3fe382<_0x233851['length'];_0x3fe382++){let _0x1abe25=_0x233851[_0x3fe382];_0x1abe25<0x0?_0x3fe382++:this['heightSamples'][Math['floor'](0xa*_0x1abe25)]||(_0x6dfc41=!0x0,this['heightSamples'][Math['floor'](0xa*_0x1abe25)]=!0x0);}return _0x6dfc41;}['refresh'](_0x1d61bd,_0x21ca1c,_0x2d660b,_0x4f4127,_0x5c6c78,_0x47699f){let _0x239102=wrappingWhiteSpace['indexOf'](_0x1d61bd)>-0x1,_0x5419f3=Math['round'](_0x21ca1c)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x239102;if(this['lineWrapping']=_0x239102,this['lineHeight']=_0x21ca1c,this['charWidth']=_0x2d660b,this['textHeight']=_0x4f4127,this['lineLength']=_0x5c6c78,_0x5419f3){this['heightSamples']={};for(let _0xf725b5=0x0;_0xf725b5<_0x47699f['length'];_0xf725b5++){let _0x4b44d1=_0x47699f[_0xf725b5];_0x4b44d1<0x0?_0xf725b5++:this['heightSamples'][Math['floor'](0xa*_0x4b44d1)]=!0x0;}}return _0x5419f3;}}class MeasuredHeights{constructor(_0x2c53ae,_0x501395){this['from']=_0x2c53ae,this['heights']=_0x501395,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0x228d10,_0x245cfa,_0x3ef563,_0x3dbfaa,_0x4e9f6f){this['from']=_0x228d10,this['length']=_0x245cfa,this['top']=_0x3ef563,this['height']=_0x3dbfaa,this['_content']=_0x4e9f6f;}get['type'](){return'number'==typeof this['_content']?BlockType['Text']:Array['isArray'](this['_content'])?this['_content']:this['_content']['type'];}get['to'](){return this['from']+this['length'];}get['bottom'](){return this['top']+this['height'];}get['widget'](){return this['_content']instanceof PointDecoration?this['_content']['widget']:null;}get['widgetLineBreaks'](){return'number'==typeof this['_content']?this['_content']:0x0;}['join'](_0x2ba2c2){let _0x5a3a3f=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x2ba2c2['_content'])?_0x2ba2c2['_content']:[_0x2ba2c2]);return new BlockInfo(this['from'],this['length']+_0x2ba2c2['length'],this['top'],this['height']+_0x2ba2c2['height'],_0x5a3a3f);}}var QueryType=function(_0x33d473){return _0x33d473[_0x33d473['ByPos']=0x0]='ByPos',_0x33d473[_0x33d473['ByHeight']=0x1]='ByHeight',_0x33d473[_0x33d473['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x33d473;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0xf7e94,_0x4465e0,_0x48918a=0x2){this['length']=_0xf7e94,this['height']=_0x4465e0,this['flags']=_0x48918a;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0x1d43c6){this['flags']=(_0x1d43c6?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x4b0e06){this['height']!=_0x4b0e06&&(Math['abs'](this['height']-_0x4b0e06)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x4b0e06);}['replace'](_0x1ffc9c,_0x225546,_0x371d6b){return HeightMap['of'](_0x371d6b);}['decomposeLeft'](_0x572985,_0x5454bb){_0x5454bb['push'](this);}['decomposeRight'](_0x3fafe1,_0xfcf47c){_0xfcf47c['push'](this);}['applyChanges'](_0x3828c6,_0x28160e,_0xa48347,_0x3a4063){let _0x3eba52=this,_0x38e695=_0xa48347['doc'];for(let _0x1a8a9c=_0x3a4063['length']-0x1;_0x1a8a9c>=0x0;_0x1a8a9c--){let {fromA:_0x38388e,toA:_0x3aa807,fromB:_0xac87a4,toB:_0x3b7150}=_0x3a4063[_0x1a8a9c],_0x220b1f=_0x3eba52['lineAt'](_0x38388e,QueryType['ByPosNoHeight'],_0xa48347['setDoc'](_0x28160e),0x0,0x0),_0x46f380=_0x220b1f['to']>=_0x3aa807?_0x220b1f:_0x3eba52['lineAt'](_0x3aa807,QueryType['ByPosNoHeight'],_0xa48347,0x0,0x0);for(_0x3b7150+=_0x46f380['to']-_0x3aa807,_0x3aa807=_0x46f380['to'];_0x1a8a9c>0x0&&_0x220b1f['from']<=_0x3a4063[_0x1a8a9c-0x1]['toA'];)_0x38388e=_0x3a4063[_0x1a8a9c-0x1]['fromA'],_0xac87a4=_0x3a4063[_0x1a8a9c-0x1]['fromB'],_0x1a8a9c--,_0x38388e<_0x220b1f['from']&&(_0x220b1f=_0x3eba52['lineAt'](_0x38388e,QueryType['ByPosNoHeight'],_0xa48347,0x0,0x0));_0xac87a4+=_0x220b1f['from']-_0x38388e,_0x38388e=_0x220b1f['from'];let _0x1260dc=NodeBuilder['build'](_0xa48347['setDoc'](_0x38e695),_0x3828c6,_0xac87a4,_0x3b7150);_0x3eba52=replace(_0x3eba52,_0x3eba52['replace'](_0x38388e,_0x3aa807,_0x1260dc));}return _0x3eba52['updateHeight'](_0xa48347,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0x136be7){if(0x1==_0x136be7['length'])return _0x136be7[0x0];let _0x30ca53=0x0,_0x4635ca=_0x136be7['length'],_0x42a733=0x0,_0x409b8c=0x0;for(;;)if(_0x30ca53==_0x4635ca){if(_0x42a733>0x2*_0x409b8c){let _0x2ab014=_0x136be7[_0x30ca53-0x1];_0x2ab014['break']?_0x136be7['splice'](--_0x30ca53,0x1,_0x2ab014['left'],null,_0x2ab014['right']):_0x136be7['splice'](--_0x30ca53,0x1,_0x2ab014['left'],_0x2ab014['right']),_0x4635ca+=0x1+_0x2ab014['break'],_0x42a733-=_0x2ab014['size'];}else{if(!(_0x409b8c>0x2*_0x42a733))break;{let _0x5d34d=_0x136be7[_0x4635ca];_0x5d34d['break']?_0x136be7['splice'](_0x4635ca,0x1,_0x5d34d['left'],null,_0x5d34d['right']):_0x136be7['splice'](_0x4635ca,0x1,_0x5d34d['left'],_0x5d34d['right']),_0x4635ca+=0x2+_0x5d34d['break'],_0x409b8c-=_0x5d34d['size'];}}}else{if(_0x42a733<_0x409b8c){let _0x53a70a=_0x136be7[_0x30ca53++];_0x53a70a&&(_0x42a733+=_0x53a70a['size']);}else{let _0x3bec3c=_0x136be7[--_0x4635ca];_0x3bec3c&&(_0x409b8c+=_0x3bec3c['size']);}}let _0x32a606=0x0;return null==_0x136be7[_0x30ca53-0x1]?(_0x32a606=0x1,_0x30ca53--):null==_0x136be7[_0x30ca53]&&(_0x32a606=0x1,_0x4635ca++),new HeightMapBranch(HeightMap['of'](_0x136be7['slice'](0x0,_0x30ca53)),_0x32a606,HeightMap['of'](_0x136be7['slice'](_0x4635ca)));}}function replace(_0x1d746d,_0x527884){return _0x1d746d==_0x527884?_0x1d746d:(_0x1d746d['constructor']!=_0x527884['constructor']&&(heightChangeFlag=!0x0),_0x527884);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x164e3c,_0x32575d,_0x18c6bb){super(_0x164e3c,_0x32575d),this['deco']=_0x18c6bb;}['blockAt'](_0x2180f9,_0x18d533,_0x4ac568,_0x54a13f){return new BlockInfo(_0x54a13f,this['length'],_0x4ac568,this['height'],this['deco']||0x0);}['lineAt'](_0x9f1a9,_0x48b64d,_0x326e5d,_0x3da9fe,_0x4a0659){return this['blockAt'](0x0,_0x326e5d,_0x3da9fe,_0x4a0659);}['forEachLine'](_0x52c831,_0x2c853d,_0xaafed6,_0x4e9c1e,_0xcb267e,_0x4620b4){_0x52c831<=_0xcb267e+this['length']&&_0x2c853d>=_0xcb267e&&_0x4620b4(this['blockAt'](0x0,_0xaafed6,_0x4e9c1e,_0xcb267e));}['updateHeight'](_0x232f0c,_0x4d078c=0x0,_0x2d429d=!0x1,_0x12e2ad){return _0x12e2ad&&_0x12e2ad['from']<=_0x4d078c&&_0x12e2ad['more']&&this['setHeight'](_0x12e2ad['heights'][_0x12e2ad['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x34b0c7,_0xc6f7b3){super(_0x34b0c7,_0xc6f7b3,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x4a74d9,_0x13df68,_0x4c61d9,_0x1326b0){return new BlockInfo(_0x1326b0,this['length'],_0x4c61d9,this['height'],this['breaks']);}['replace'](_0x16156c,_0x1749c2,_0x386dc6){let _0x3d6872=_0x386dc6[0x0];return 0x1==_0x386dc6['length']&&(_0x3d6872 instanceof HeightMapText||_0x3d6872 instanceof HeightMapGap&&0x4&_0x3d6872['flags'])&&Math['abs'](this['length']-_0x3d6872['length'])<0xa?(_0x3d6872 instanceof HeightMapGap?_0x3d6872=new HeightMapText(_0x3d6872['length'],this['height']):_0x3d6872['height']=this['height'],this['outdated']||(_0x3d6872['outdated']=!0x1),_0x3d6872):HeightMap['of'](_0x386dc6);}['updateHeight'](_0x3aa4bd,_0x25393e=0x0,_0x454ac3=!0x1,_0x26f4c8){return _0x26f4c8&&_0x26f4c8['from']<=_0x25393e&&_0x26f4c8['more']?this['setHeight'](_0x26f4c8['heights'][_0x26f4c8['index']++]):(_0x454ac3||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x3aa4bd['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x3aa4bd['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x3817d6){super(_0x3817d6,0x0);}['heightMetrics'](_0x5608e4,_0x45dc9e){let _0x46e8e7,_0x53d1c0=_0x5608e4['doc']['lineAt'](_0x45dc9e)['number'],_0x368a71=_0x5608e4['doc']['lineAt'](_0x45dc9e+this['length'])['number'],_0x180b52=_0x368a71-_0x53d1c0+0x1,_0x2b6f1b=0x0;if(_0x5608e4['lineWrapping']){let _0x2bf75b=Math['min'](this['height'],_0x5608e4['lineHeight']*_0x180b52);_0x46e8e7=_0x2bf75b/_0x180b52,this['length']>_0x180b52+0x1&&(_0x2b6f1b=(this['height']-_0x2bf75b)/(this['length']-_0x180b52-0x1));}else _0x46e8e7=this['height']/_0x180b52;return{'firstLine':_0x53d1c0,'lastLine':_0x368a71,'perLine':_0x46e8e7,'perChar':_0x2b6f1b};}['blockAt'](_0x4c1d41,_0x4704d0,_0x4d27b2,_0xeb35cf){let {firstLine:_0x5ea979,lastLine:_0x12ebef,perLine:_0x5773d4,perChar:_0x35a429}=this['heightMetrics'](_0x4704d0,_0xeb35cf);if(_0x4704d0['lineWrapping']){let _0x5a0912=_0xeb35cf+(_0x4c1d41<_0x4704d0['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x4c1d41-_0x4d27b2)/this['height']))*this['length'])),_0x7ec131=_0x4704d0['doc']['lineAt'](_0x5a0912),_0x578c35=_0x5773d4+_0x7ec131['length']*_0x35a429,_0x5aa6b7=Math['max'](_0x4d27b2,_0x4c1d41-_0x578c35/0x2);return new BlockInfo(_0x7ec131['from'],_0x7ec131['length'],_0x5aa6b7,_0x578c35,0x0);}{let _0x2bb154=Math['max'](0x0,Math['min'](_0x12ebef-_0x5ea979,Math['floor']((_0x4c1d41-_0x4d27b2)/_0x5773d4))),{from:_0x1db4df,length:_0x3e35f6}=_0x4704d0['doc']['line'](_0x5ea979+_0x2bb154);return new BlockInfo(_0x1db4df,_0x3e35f6,_0x4d27b2+_0x5773d4*_0x2bb154,_0x5773d4,0x0);}}['lineAt'](_0x3de655,_0x26d26d,_0x309b61,_0x30d580,_0x2c023f){if(_0x26d26d==QueryType['ByHeight'])return this['blockAt'](_0x3de655,_0x309b61,_0x30d580,_0x2c023f);if(_0x26d26d==QueryType['ByPosNoHeight']){let {from:_0x177516,to:_0x5d1e1b}=_0x309b61['doc']['lineAt'](_0x3de655);return new BlockInfo(_0x177516,_0x5d1e1b-_0x177516,0x0,0x0,0x0);}let {firstLine:_0x4234c0,perLine:_0x317703,perChar:_0xc54989}=this['heightMetrics'](_0x309b61,_0x2c023f),_0xb2c973=_0x309b61['doc']['lineAt'](_0x3de655),_0x18dbc4=_0x317703+_0xb2c973['length']*_0xc54989,_0x1a2dd4=_0xb2c973['number']-_0x4234c0,_0x541ac0=_0x30d580+_0x317703*_0x1a2dd4+_0xc54989*(_0xb2c973['from']-_0x2c023f-_0x1a2dd4);return new BlockInfo(_0xb2c973['from'],_0xb2c973['length'],Math['max'](_0x30d580,Math['min'](_0x541ac0,_0x30d580+this['height']-_0x18dbc4)),_0x18dbc4,0x0);}['forEachLine'](_0x19411a,_0x236001,_0x45a46c,_0x59b06b,_0x88425,_0x17c7a2){_0x19411a=Math['max'](_0x19411a,_0x88425),_0x236001=Math['min'](_0x236001,_0x88425+this['length']);let {firstLine:_0x1cdbb6,perLine:_0x1c9b60,perChar:_0x4c399f}=this['heightMetrics'](_0x45a46c,_0x88425);for(let _0x585f07=_0x19411a,_0x396210=_0x59b06b;_0x585f07<=_0x236001;){let _0x3086eb=_0x45a46c['doc']['lineAt'](_0x585f07);if(_0x585f07==_0x19411a){let _0x5b8cfd=_0x3086eb['number']-_0x1cdbb6;_0x396210+=_0x1c9b60*_0x5b8cfd+_0x4c399f*(_0x19411a-_0x88425-_0x5b8cfd);}let _0x5889a1=_0x1c9b60+_0x4c399f*_0x3086eb['length'];_0x17c7a2(new BlockInfo(_0x3086eb['from'],_0x3086eb['length'],_0x396210,_0x5889a1,0x0)),_0x396210+=_0x5889a1,_0x585f07=_0x3086eb['to']+0x1;}}['replace'](_0xaee490,_0x40a4e8,_0x1c7d61){let _0x3aa88e=this['length']-_0x40a4e8;if(_0x3aa88e>0x0){let _0x23bbe4=_0x1c7d61[_0x1c7d61['length']-0x1];_0x23bbe4 instanceof HeightMapGap?_0x1c7d61[_0x1c7d61['length']-0x1]=new HeightMapGap(_0x23bbe4['length']+_0x3aa88e):_0x1c7d61['push'](null,new HeightMapGap(_0x3aa88e-0x1));}if(_0xaee490>0x0){let _0x3e0d35=_0x1c7d61[0x0];_0x3e0d35 instanceof HeightMapGap?_0x1c7d61[0x0]=new HeightMapGap(_0xaee490+_0x3e0d35['length']):_0x1c7d61['unshift'](new HeightMapGap(_0xaee490-0x1),null);}return HeightMap['of'](_0x1c7d61);}['decomposeLeft'](_0x41ca55,_0x3dd46b){_0x3dd46b['push'](new HeightMapGap(_0x41ca55-0x1),null);}['decomposeRight'](_0x53ec8d,_0x474ead){_0x474ead['push'](null,new HeightMapGap(this['length']-_0x53ec8d-0x1));}['updateHeight'](_0x1a6077,_0x4bfc75=0x0,_0x4efd07=!0x1,_0x7a9b7a){let _0x2d7dbc=_0x4bfc75+this['length'];if(_0x7a9b7a&&_0x7a9b7a['from']<=_0x4bfc75+this['length']&&_0x7a9b7a['more']){let _0x756c6c=[],_0x8421fe=Math['max'](_0x4bfc75,_0x7a9b7a['from']),_0x538cb1=-0x1;for(_0x7a9b7a['from']>_0x4bfc75&&_0x756c6c['push'](new HeightMapGap(_0x7a9b7a['from']-_0x4bfc75-0x1)['updateHeight'](_0x1a6077,_0x4bfc75));_0x8421fe<=_0x2d7dbc&&_0x7a9b7a['more'];){let _0x446e61=_0x1a6077['doc']['lineAt'](_0x8421fe)['length'];_0x756c6c['length']&&_0x756c6c['push'](null);let _0x54953a=_0x7a9b7a['heights'][_0x7a9b7a['index']++];-0x1==_0x538cb1?_0x538cb1=_0x54953a:Math['abs'](_0x54953a-_0x538cb1)>=Epsilon&&(_0x538cb1=-0x2);let _0x7a8ff8=new HeightMapText(_0x446e61,_0x54953a);_0x7a8ff8['outdated']=!0x1,_0x756c6c['push'](_0x7a8ff8),_0x8421fe+=_0x446e61+0x1;}_0x8421fe<=_0x2d7dbc&&_0x756c6c['push'](null,new HeightMapGap(_0x2d7dbc-_0x8421fe)['updateHeight'](_0x1a6077,_0x8421fe));let _0x20d277=HeightMap['of'](_0x756c6c);return(_0x538cb1<0x0||Math['abs'](_0x20d277['height']-this['height'])>=Epsilon||Math['abs'](_0x538cb1-this['heightMetrics'](_0x1a6077,_0x4bfc75)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x20d277);}return(_0x4efd07||this['outdated'])&&(this['setHeight'](_0x1a6077['heightForGap'](_0x4bfc75,_0x4bfc75+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x21e419,_0x3afc80,_0x409c5c){super(_0x21e419['length']+_0x3afc80+_0x409c5c['length'],_0x21e419['height']+_0x409c5c['height'],_0x3afc80|(_0x21e419['outdated']||_0x409c5c['outdated']?0x2:0x0)),this['left']=_0x21e419,this['right']=_0x409c5c,this['size']=_0x21e419['size']+_0x409c5c['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x5e3c45,_0x341c9f,_0x1034c2,_0x32d404){let _0x1679bc=_0x1034c2+this['left']['height'];return _0x5e3c45<_0x1679bc?this['left']['blockAt'](_0x5e3c45,_0x341c9f,_0x1034c2,_0x32d404):this['right']['blockAt'](_0x5e3c45,_0x341c9f,_0x1679bc,_0x32d404+this['left']['length']+this['break']);}['lineAt'](_0x3470fd,_0x1e270c,_0xcf22c7,_0x1400c1,_0x880d53){let _0x567ec4=_0x1400c1+this['left']['height'],_0x336b50=_0x880d53+this['left']['length']+this['break'],_0x35e765=_0x1e270c==QueryType['ByHeight']?_0x3470fd<_0x567ec4:_0x3470fd<_0x336b50,_0x2079fd=_0x35e765?this['left']['lineAt'](_0x3470fd,_0x1e270c,_0xcf22c7,_0x1400c1,_0x880d53):this['right']['lineAt'](_0x3470fd,_0x1e270c,_0xcf22c7,_0x567ec4,_0x336b50);if(this['break']||(_0x35e765?_0x2079fd['to']<_0x336b50:_0x2079fd['from']>_0x336b50))return _0x2079fd;let _0xcfc369=_0x1e270c==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x35e765?_0x2079fd['join'](this['right']['lineAt'](_0x336b50,_0xcfc369,_0xcf22c7,_0x567ec4,_0x336b50)):this['left']['lineAt'](_0x336b50,_0xcfc369,_0xcf22c7,_0x1400c1,_0x880d53)['join'](_0x2079fd);}['forEachLine'](_0x4aa7a7,_0x4b0f64,_0x17ce8f,_0x1afb4c,_0x340a92,_0x355750){let _0x5e5313=_0x1afb4c+this['left']['height'],_0x89ffae=_0x340a92+this['left']['length']+this['break'];if(this['break'])_0x4aa7a7<_0x89ffae&&this['left']['forEachLine'](_0x4aa7a7,_0x4b0f64,_0x17ce8f,_0x1afb4c,_0x340a92,_0x355750),_0x4b0f64>=_0x89ffae&&this['right']['forEachLine'](_0x4aa7a7,_0x4b0f64,_0x17ce8f,_0x5e5313,_0x89ffae,_0x355750);else{let _0x345fa2=this['lineAt'](_0x89ffae,QueryType['ByPos'],_0x17ce8f,_0x1afb4c,_0x340a92);_0x4aa7a7<_0x345fa2['from']&&this['left']['forEachLine'](_0x4aa7a7,_0x345fa2['from']-0x1,_0x17ce8f,_0x1afb4c,_0x340a92,_0x355750),_0x345fa2['to']>=_0x4aa7a7&&_0x345fa2['from']<=_0x4b0f64&&_0x355750(_0x345fa2),_0x4b0f64>_0x345fa2['to']&&this['right']['forEachLine'](_0x345fa2['to']+0x1,_0x4b0f64,_0x17ce8f,_0x5e5313,_0x89ffae,_0x355750);}}['replace'](_0x34d3bd,_0x4a0a83,_0x55e100){let _0x4cff00=this['left']['length']+this['break'];if(_0x4a0a83<_0x4cff00)return this['balanced'](this['left']['replace'](_0x34d3bd,_0x4a0a83,_0x55e100),this['right']);if(_0x34d3bd>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x34d3bd-_0x4cff00,_0x4a0a83-_0x4cff00,_0x55e100));let _0x2a8bd6=[];_0x34d3bd>0x0&&this['decomposeLeft'](_0x34d3bd,_0x2a8bd6);let _0xa7ba52=_0x2a8bd6['length'];for(let _0x16c4bf of _0x55e100)_0x2a8bd6['push'](_0x16c4bf);if(_0x34d3bd>0x0&&mergeGaps(_0x2a8bd6,_0xa7ba52-0x1),_0x4a0a83<this['length']){let _0x3c9e43=_0x2a8bd6['length'];this['decomposeRight'](_0x4a0a83,_0x2a8bd6),mergeGaps(_0x2a8bd6,_0x3c9e43);}return HeightMap['of'](_0x2a8bd6);}['decomposeLeft'](_0x2d6360,_0x25bcde){let _0x28614a=this['left']['length'];if(_0x2d6360<=_0x28614a)return this['left']['decomposeLeft'](_0x2d6360,_0x25bcde);_0x25bcde['push'](this['left']),this['break']&&(_0x28614a++,_0x2d6360>=_0x28614a&&_0x25bcde['push'](null)),_0x2d6360>_0x28614a&&this['right']['decomposeLeft'](_0x2d6360-_0x28614a,_0x25bcde);}['decomposeRight'](_0x51aa50,_0x4d3ef4){let _0x305536=this['left']['length'],_0x18b8a6=_0x305536+this['break'];if(_0x51aa50>=_0x18b8a6)return this['right']['decomposeRight'](_0x51aa50-_0x18b8a6,_0x4d3ef4);_0x51aa50<_0x305536&&this['left']['decomposeRight'](_0x51aa50,_0x4d3ef4),this['break']&&_0x51aa50<_0x18b8a6&&_0x4d3ef4['push'](null),_0x4d3ef4['push'](this['right']);}['balanced'](_0x5a1042,_0xe70521){return _0x5a1042['size']>0x2*_0xe70521['size']||_0xe70521['size']>0x2*_0x5a1042['size']?HeightMap['of'](this['break']?[_0x5a1042,null,_0xe70521]:[_0x5a1042,_0xe70521]):(this['left']=replace(this['left'],_0x5a1042),this['right']=replace(this['right'],_0xe70521),this['setHeight'](_0x5a1042['height']+_0xe70521['height']),this['outdated']=_0x5a1042['outdated']||_0xe70521['outdated'],this['size']=_0x5a1042['size']+_0xe70521['size'],this['length']=_0x5a1042['length']+this['break']+_0xe70521['length'],this);}['updateHeight'](_0x34b5fe,_0x8770f0=0x0,_0x79d215=!0x1,_0x4193da){let {left:_0x38a85e,right:_0x4c271d}=this,_0x5c3a78=_0x8770f0+_0x38a85e['length']+this['break'],_0x2e89c0=null;return _0x4193da&&_0x4193da['from']<=_0x8770f0+_0x38a85e['length']&&_0x4193da['more']?_0x2e89c0=_0x38a85e=_0x38a85e['updateHeight'](_0x34b5fe,_0x8770f0,_0x79d215,_0x4193da):_0x38a85e['updateHeight'](_0x34b5fe,_0x8770f0,_0x79d215),_0x4193da&&_0x4193da['from']<=_0x5c3a78+_0x4c271d['length']&&_0x4193da['more']?_0x2e89c0=_0x4c271d=_0x4c271d['updateHeight'](_0x34b5fe,_0x5c3a78,_0x79d215,_0x4193da):_0x4c271d['updateHeight'](_0x34b5fe,_0x5c3a78,_0x79d215),_0x2e89c0?this['balanced'](_0x38a85e,_0x4c271d):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x3dca60,_0x7b9e7d){let _0x49c93d,_0x2a231a;null==_0x3dca60[_0x7b9e7d]&&(_0x49c93d=_0x3dca60[_0x7b9e7d-0x1])instanceof HeightMapGap&&(_0x2a231a=_0x3dca60[_0x7b9e7d+0x1])instanceof HeightMapGap&&_0x3dca60['splice'](_0x7b9e7d-0x1,0x3,new HeightMapGap(_0x49c93d['length']+0x1+_0x2a231a['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0x14ec5f,_0x4713c9){this['pos']=_0x14ec5f,this['oracle']=_0x4713c9,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0x14ec5f;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x2b606e,_0x1628e0){if(this['lineStart']>-0x1){let _0x3258d3=Math['min'](_0x1628e0,this['lineEnd']),_0x2efb9e=this['nodes'][this['nodes']['length']-0x1];_0x2efb9e instanceof HeightMapText?_0x2efb9e['length']+=_0x3258d3-this['pos']:(_0x3258d3>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0x3258d3-this['pos'],-0x1)),this['writtenTo']=_0x3258d3,_0x1628e0>_0x3258d3&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x1628e0;}['point'](_0xb712bf,_0x23b6ea,_0x1e5827){if(_0xb712bf<_0x23b6ea||_0x1e5827['heightRelevant']){let _0x3ee2a3=_0x1e5827['widget']?_0x1e5827['widget']['estimatedHeight']:0x0,_0x3a7dc0=_0x1e5827['widget']?_0x1e5827['widget']['lineBreaks']:0x0;_0x3ee2a3<0x0&&(_0x3ee2a3=this['oracle']['lineHeight']);let _0x11d957=_0x23b6ea-_0xb712bf;_0x1e5827['block']?this['addBlock'](new HeightMapBlock(_0x11d957,_0x3ee2a3,_0x1e5827)):(_0x11d957||_0x3a7dc0||_0x3ee2a3>=relevantWidgetHeight)&&this['addLineDeco'](_0x3ee2a3,_0x3a7dc0,_0x11d957);}else _0x23b6ea>_0xb712bf&&this['span'](_0xb712bf,_0x23b6ea);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x53f29c,to:_0x21f802}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x53f29c,this['lineEnd']=_0x21f802,this['writtenTo']<_0x53f29c&&((this['writtenTo']<_0x53f29c-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x53f29c-0x1)),this['nodes']['push'](null)),this['pos']>_0x53f29c&&this['nodes']['push'](new HeightMapText(this['pos']-_0x53f29c,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0x59432f,_0x390071){let _0xa5648e=new HeightMapGap(_0x390071-_0x59432f);return this['oracle']['doc']['lineAt'](_0x59432f)['to']==_0x390071&&(_0xa5648e['flags']|=0x4),_0xa5648e;}['ensureLine'](){this['enterLine']();let _0x5431d6=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x5431d6 instanceof HeightMapText)return _0x5431d6;let _0x574837=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x574837),_0x574837;}['addBlock'](_0x10de53){this['enterLine']();let _0x39e0c0=_0x10de53['deco'];_0x39e0c0&&_0x39e0c0['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0x10de53),this['writtenTo']=this['pos']=this['pos']+_0x10de53['length'],_0x39e0c0&&_0x39e0c0['endSide']>0x0&&(this['covering']=_0x10de53);}['addLineDeco'](_0x124b61,_0x477fb4,_0x1fbda4){let _0x3a9226=this['ensureLine']();_0x3a9226['length']+=_0x1fbda4,_0x3a9226['collapsed']+=_0x1fbda4,_0x3a9226['widgetHeight']=Math['max'](_0x3a9226['widgetHeight'],_0x124b61),_0x3a9226['breaks']+=_0x477fb4,this['writtenTo']=this['pos']=this['pos']+_0x1fbda4;}['finish'](_0x163f80){let _0x32cf5c=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x32cf5c instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x32cf5c)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x4e7cc2=_0x163f80;for(let _0x586290 of this['nodes'])_0x586290 instanceof HeightMapText&&_0x586290['updateHeight'](this['oracle'],_0x4e7cc2),_0x4e7cc2+=_0x586290?_0x586290['length']:0x1;return this['nodes'];}static['build'](_0x3b8a26,_0x102f15,_0xbc0edd,_0x4fe0ef){let _0x6944b=new NodeBuilder(_0xbc0edd,_0x3b8a26);return RangeSet['spans'](_0x102f15,_0xbc0edd,_0x4fe0ef,_0x6944b,0x0),_0x6944b['finish'](_0xbc0edd);}}function heightRelevantDecoChanges(_0x4ff796,_0x29b3f8,_0x26e9a8){let _0xdb57fa=new DecorationComparator();return RangeSet['compare'](_0x4ff796,_0x29b3f8,_0x26e9a8,_0xdb57fa,0x0),_0xdb57fa['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x372d4b,_0x4203d9,_0x44d787,_0x504dcd){(_0x372d4b<_0x4203d9||_0x44d787&&_0x44d787['heightRelevant']||_0x504dcd&&_0x504dcd['heightRelevant'])&&addRange(_0x372d4b,_0x4203d9,this['changes'],0x5);}}function visiblePixelRange(_0x590734,_0xef8657){let _0x5b3abb=_0x590734['getBoundingClientRect'](),_0x42113a=_0x590734['ownerDocument'],_0x5cf3c8=_0x42113a['defaultView']||window,_0x363d71=Math['max'](0x0,_0x5b3abb['left']),_0x4b8a74=Math['min'](_0x5cf3c8['innerWidth'],_0x5b3abb['right']),_0x1926f7=Math['max'](0x0,_0x5b3abb['top']),_0x1f45ca=Math['min'](_0x5cf3c8['innerHeight'],_0x5b3abb['bottom']);for(let _0x3f4903=_0x590734['parentNode'];_0x3f4903&&_0x3f4903!=_0x42113a['body'];)if(0x1==_0x3f4903['nodeType']){let _0x32b714=_0x3f4903,_0x330d54=window['getComputedStyle'](_0x32b714);if((_0x32b714['scrollHeight']>_0x32b714['clientHeight']||_0x32b714['scrollWidth']>_0x32b714['clientWidth'])&&'visible'!=_0x330d54['overflow']){let _0x2ba97d=_0x32b714['getBoundingClientRect']();_0x363d71=Math['max'](_0x363d71,_0x2ba97d['left']),_0x4b8a74=Math['min'](_0x4b8a74,_0x2ba97d['right']),_0x1926f7=Math['max'](_0x1926f7,_0x2ba97d['top']),_0x1f45ca=Math['min'](_0x3f4903==_0x590734['parentNode']?_0x5cf3c8['innerHeight']:_0x1f45ca,_0x2ba97d['bottom']);}_0x3f4903='absolute'==_0x330d54['position']||'fixed'==_0x330d54['position']?_0x32b714['offsetParent']:_0x32b714['parentNode'];}else{if(0xb!=_0x3f4903['nodeType'])break;_0x3f4903=_0x3f4903['host'];}return{'left':_0x363d71-_0x5b3abb['left'],'right':Math['max'](_0x363d71,_0x4b8a74)-_0x5b3abb['left'],'top':_0x1926f7-(_0x5b3abb['top']+_0xef8657),'bottom':Math['max'](_0x1926f7,_0x1f45ca)-(_0x5b3abb['top']+_0xef8657)};}function inWindow(_0x5accd1){let _0xeeaa58=_0x5accd1['getBoundingClientRect'](),_0x518a64=_0x5accd1['ownerDocument']['defaultView']||window;return _0xeeaa58['left']<_0x518a64['innerWidth']&&_0xeeaa58['right']>0x0&&_0xeeaa58['top']<_0x518a64['innerHeight']&&_0xeeaa58['bottom']>0x0;}function fullPixelRange(_0x4ca6f2,_0x58e42d){let _0x296152=_0x4ca6f2['getBoundingClientRect']();return{'left':0x0,'right':_0x296152['right']-_0x296152['left'],'top':_0x58e42d,'bottom':_0x296152['bottom']-(_0x296152['top']+_0x58e42d)};}class LineGap{constructor(_0x5079d7,_0x1a95df,_0x15a924,_0x105ab1){this['from']=_0x5079d7,this['to']=_0x1a95df,this['size']=_0x15a924,this['displaySize']=_0x105ab1;}static['same'](_0x503c71,_0x38d1d4){if(_0x503c71['length']!=_0x38d1d4['length'])return!0x1;for(let _0x496968=0x0;_0x496968<_0x503c71['length'];_0x496968++){let _0x3cd794=_0x503c71[_0x496968],_0x5afaba=_0x38d1d4[_0x496968];if(_0x3cd794['from']!=_0x5afaba['from']||_0x3cd794['to']!=_0x5afaba['to']||_0x3cd794['size']!=_0x5afaba['size'])return!0x1;}return!0x0;}['draw'](_0x55a506,_0x11d0dd){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0x11d0dd?_0x55a506['scaleY']:_0x55a506['scaleX']),_0x11d0dd)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0x43cb6e,_0x4df78a){super(),this['size']=_0x43cb6e,this['vertical']=_0x4df78a;}['eq'](_0x60c726){return _0x60c726['size']==this['size']&&_0x60c726['vertical']==this['vertical'];}['toDOM'](){let _0x152793=document['createElement']('div');return this['vertical']?_0x152793['style']['height']=this['size']+'px':(_0x152793['style']['width']=this['size']+'px',_0x152793['style']['height']='2px',_0x152793['style']['display']='inline-block'),_0x152793;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x38fb86){this['state']=_0x38fb86,this['pixelViewport']={'left':0x0,'right':window['innerWidth'],'top':0x0,'bottom':0x0},this['inView']=!0x0,this['paddingTop']=0x0,this['paddingBottom']=0x0,this['contentDOMWidth']=0x0,this['contentDOMHeight']=0x0,this['editorHeight']=0x0,this['editorWidth']=0x0,this['scrollTop']=0x0,this['scrolledToBottom']=!0x1,this['scaleX']=0x1,this['scaleY']=0x1,this['scrollAnchorPos']=0x0,this['scrollAnchorHeight']=-0x1,this['scaler']=IdScaler,this['scrollTarget']=null,this['printing']=!0x1,this['mustMeasureContent']=!0x0,this['defaultTextDirection']=Direction['LTR'],this['visibleRanges']=[],this['mustEnforceCursorAssoc']=!0x1;let _0x40b7e0=_0x38fb86['facet'](contentAttributes)['some'](_0x2346b2=>'function'!=typeof _0x2346b2&&'cm-lineWrapping'==_0x2346b2['class']);this['heightOracle']=new HeightOracle(_0x40b7e0),this['stateDeco']=_0x38fb86['facet'](decorations)['filter'](_0x393789=>'function'!=typeof _0x393789),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text$1['empty'],this['heightOracle']['setDoc'](_0x38fb86['doc']),[new ChangedRange(0x0,0x0,0x0,_0x38fb86['doc']['length'])]);for(let _0x628324=0x0;_0x628324<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0x628324++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x21afd3=>_0x21afd3['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x5d3227=[this['viewport']],{main:_0x24e848}=this['state']['selection'];for(let _0x4a5fe8=0x0;_0x4a5fe8<=0x1;_0x4a5fe8++){let _0x283a98=_0x4a5fe8?_0x24e848['head']:_0x24e848['anchor'];if(!_0x5d3227['some'](({from:_0x3fec4e,to:_0x34d117})=>_0x283a98>=_0x3fec4e&&_0x283a98<=_0x34d117)){let {from:_0x145bcd,to:_0x4bae87}=this['lineBlockAt'](_0x283a98);_0x5d3227['push'](new Viewport(_0x145bcd,_0x4bae87));}}return this['viewports']=_0x5d3227['sort']((_0x8e95ab,_0x31203d)=>_0x8e95ab['from']-_0x31203d['from']),this['updateScaler']();}['updateScaler'](){let _0x496d22=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x496d22['eq'](this['scaler'])?0x0:0x2;}['updateViewportLines'](){this['viewportLines']=[],this['heightMap']['forEachLine'](this['viewport']['from'],this['viewport']['to'],this['heightOracle']['setDoc'](this['state']['doc']),0x0,0x0,_0x2b856d=>{this['viewportLines']['push'](scaleBlock(_0x2b856d,this['scaler']));});}['update'](_0x1cd51d,_0x14dd69=null){this['state']=_0x1cd51d['state'];let _0xc562d1=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x115ae3=>'function'!=typeof _0x115ae3);let _0x24929b=_0x1cd51d['changedRanges'],_0x142d44=ChangedRange['extendWithRanges'](_0x24929b,heightRelevantDecoChanges(_0xc562d1,this['stateDeco'],_0x1cd51d?_0x1cd51d['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x20cbe1=this['heightMap']['height'],_0x2a6465=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x1cd51d['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0x142d44),(this['heightMap']['height']!=_0x20cbe1||heightChangeFlag)&&(_0x1cd51d['flags']|=0x2),_0x2a6465?(this['scrollAnchorPos']=_0x1cd51d['changes']['mapPos'](_0x2a6465['from'],-0x1),this['scrollAnchorHeight']=_0x2a6465['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x20cbe1);let _0x3e81a3=_0x142d44['length']?this['mapViewport'](this['viewport'],_0x1cd51d['changes']):this['viewport'];(_0x14dd69&&(_0x14dd69['range']['head']<_0x3e81a3['from']||_0x14dd69['range']['head']>_0x3e81a3['to'])||!this['viewportIsAppropriate'](_0x3e81a3))&&(_0x3e81a3=this['getViewport'](0x0,_0x14dd69));let _0x3c3728=_0x3e81a3['from']!=this['viewport']['from']||_0x3e81a3['to']!=this['viewport']['to'];this['viewport']=_0x3e81a3,_0x1cd51d['flags']|=this['updateForViewport'](),(_0x3c3728||!_0x1cd51d['changes']['empty']||0x2&_0x1cd51d['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x1cd51d['changes']))),_0x1cd51d['flags']|=this['computeVisibleRanges'](_0x1cd51d['changes']),_0x14dd69&&(this['scrollTarget']=_0x14dd69),!this['mustEnforceCursorAssoc']&&_0x1cd51d['selectionSet']&&_0x1cd51d['view']['lineWrapping']&&_0x1cd51d['state']['selection']['main']['empty']&&_0x1cd51d['state']['selection']['main']['assoc']&&!_0x1cd51d['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x57f607){let _0x5d7bf5=_0x57f607['contentDOM'],_0x48dc5c=window['getComputedStyle'](_0x5d7bf5),_0x5be6c4=this['heightOracle'],_0x5458f8=_0x48dc5c['whiteSpace'];this['defaultTextDirection']='rtl'==_0x48dc5c['direction']?Direction['RTL']:Direction['LTR'];let _0x3d8af1=this['heightOracle']['mustRefreshForWrapping'](_0x5458f8),_0x2111d0=_0x5d7bf5['getBoundingClientRect'](),_0x438040=_0x3d8af1||this['mustMeasureContent']||this['contentDOMHeight']!=_0x2111d0['height'];this['contentDOMHeight']=_0x2111d0['height'],this['mustMeasureContent']=!0x1;let _0x3eec24=0x0,_0x554e65=0x0;if(_0x2111d0['width']&&_0x2111d0['height']){let {scaleX:_0x39c1db,scaleY:_0x4173fc}=getScale(_0x5d7bf5,_0x2111d0);(_0x39c1db>0.005&&Math['abs'](this['scaleX']-_0x39c1db)>0.005||_0x4173fc>0.005&&Math['abs'](this['scaleY']-_0x4173fc)>0.005)&&(this['scaleX']=_0x39c1db,this['scaleY']=_0x4173fc,_0x3eec24|=0x10,_0x3d8af1=_0x438040=!0x0);}let _0x4580c2=(parseInt(_0x48dc5c['paddingTop'])||0x0)*this['scaleY'],_0x1b8d69=(parseInt(_0x48dc5c['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x4580c2&&this['paddingBottom']==_0x1b8d69||(this['paddingTop']=_0x4580c2,this['paddingBottom']=_0x1b8d69,_0x3eec24|=0x12),this['editorWidth']!=_0x57f607['scrollDOM']['clientWidth']&&(_0x5be6c4['lineWrapping']&&(_0x438040=!0x0),this['editorWidth']=_0x57f607['scrollDOM']['clientWidth'],_0x3eec24|=0x10);let _0x289b01=_0x57f607['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x289b01&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x289b01),this['scrolledToBottom']=isScrolledToBottom(_0x57f607['scrollDOM']);let _0x4d664a=(this['printing']?fullPixelRange:visiblePixelRange)(_0x5d7bf5,this['paddingTop']),_0x16bbf5=_0x4d664a['top']-this['pixelViewport']['top'],_0x582233=_0x4d664a['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0x4d664a;let _0x43e61c=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x43e61c!=this['inView']&&(this['inView']=_0x43e61c,_0x43e61c&&(_0x438040=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x57f607['dom']))return 0x0;let _0x390dda=_0x2111d0['width'];if(this['contentDOMWidth']==_0x390dda&&this['editorHeight']==_0x57f607['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x2111d0['width'],this['editorHeight']=_0x57f607['scrollDOM']['clientHeight'],_0x3eec24|=0x10),_0x438040){let _0x20b99c=_0x57f607['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x5be6c4['mustRefreshForHeights'](_0x20b99c)&&(_0x3d8af1=!0x0),_0x3d8af1||_0x5be6c4['lineWrapping']&&Math['abs'](_0x390dda-this['contentDOMWidth'])>_0x5be6c4['charWidth']){let {lineHeight:_0x228701,charWidth:_0x56a807,textHeight:_0x5e16a5}=_0x57f607['docView']['measureTextSize']();_0x3d8af1=_0x228701>0x0&&_0x5be6c4['refresh'](_0x5458f8,_0x228701,_0x56a807,_0x5e16a5,Math['max'](0x5,_0x390dda/_0x56a807),_0x20b99c),_0x3d8af1&&(_0x57f607['docView']['minWidth']=0x0,_0x3eec24|=0x10);}_0x16bbf5>0x0&&_0x582233>0x0?_0x554e65=Math['max'](_0x16bbf5,_0x582233):_0x16bbf5<0x0&&_0x582233<0x0&&(_0x554e65=Math['min'](_0x16bbf5,_0x582233)),clearHeightChangeFlag();for(let _0x5e7169 of this['viewports']){let _0x4e55b9=_0x5e7169['from']==this['viewport']['from']?_0x20b99c:_0x57f607['docView']['measureVisibleLineHeights'](_0x5e7169);this['heightMap']=(_0x3d8af1?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text$1['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x57f607['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x5be6c4,0x0,_0x3d8af1,new MeasuredHeights(_0x5e7169['from'],_0x4e55b9));}heightChangeFlag&&(_0x3eec24|=0x2);}let _0x1e2e78=!this['viewportIsAppropriate'](this['viewport'],_0x554e65)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x1e2e78&&(0x2&_0x3eec24&&(_0x3eec24|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x554e65,this['scrollTarget']),_0x3eec24|=this['updateForViewport']()),(0x2&_0x3eec24||_0x1e2e78)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x3d8af1?[]:this['lineGaps'],_0x57f607)),_0x3eec24|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x57f607['docView']['enforceCursorAssoc']()),_0x3eec24;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x3ab0c7,_0x5ce654){let _0xe6fce2=0.5-Math['max'](-0.5,Math['min'](0.5,_0x3ab0c7/0x3e8/0x2)),_0x117be9=this['heightMap'],_0x4581c1=this['heightOracle'],{visibleTop:_0x1e021a,visibleBottom:_0x18d2b1}=this,_0x40e210=new Viewport(_0x117be9['lineAt'](_0x1e021a-0x3e8*_0xe6fce2,QueryType['ByHeight'],_0x4581c1,0x0,0x0)['from'],_0x117be9['lineAt'](_0x18d2b1+0x3e8*(0x1-_0xe6fce2),QueryType['ByHeight'],_0x4581c1,0x0,0x0)['to']);if(_0x5ce654){let {head:_0x3a63f4}=_0x5ce654['range'];if(_0x3a63f4<_0x40e210['from']||_0x3a63f4>_0x40e210['to']){let _0x56b139,_0xf76d46=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x564c5b=_0x117be9['lineAt'](_0x3a63f4,QueryType['ByPos'],_0x4581c1,0x0,0x0);_0x56b139='center'==_0x5ce654['y']?(_0x564c5b['top']+_0x564c5b['bottom'])/0x2-_0xf76d46/0x2:'start'==_0x5ce654['y']||'nearest'==_0x5ce654['y']&&_0x3a63f4<_0x40e210['from']?_0x564c5b['top']:_0x564c5b['bottom']-_0xf76d46,_0x40e210=new Viewport(_0x117be9['lineAt'](_0x56b139-0x1f4,QueryType['ByHeight'],_0x4581c1,0x0,0x0)['from'],_0x117be9['lineAt'](_0x56b139+_0xf76d46+0x1f4,QueryType['ByHeight'],_0x4581c1,0x0,0x0)['to']);}}return _0x40e210;}['mapViewport'](_0x1f9926,_0x36a26d){let _0x2a01e9=_0x36a26d['mapPos'](_0x1f9926['from'],-0x1),_0xa9e19=_0x36a26d['mapPos'](_0x1f9926['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0x2a01e9,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0xa9e19,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0x84a540,to:_0x40c81b},_0x5456bd=0x0){if(!this['inView'])return!0x0;let {top:_0xb47dff}=this['heightMap']['lineAt'](_0x84a540,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x355e9e}=this['heightMap']['lineAt'](_0x40c81b,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0xecdf6b,visibleBottom:_0x52babd}=this;return(0x0==_0x84a540||_0xb47dff<=_0xecdf6b-Math['max'](0xa,Math['min'](-_0x5456bd,0xfa)))&&(_0x40c81b==this['state']['doc']['length']||_0x355e9e>=_0x52babd+Math['max'](0xa,Math['min'](_0x5456bd,0xfa)))&&_0xb47dff>_0xecdf6b-0x7d0&&_0x355e9e<_0x52babd+0x7d0;}['mapLineGaps'](_0x32882a,_0x273d77){if(!_0x32882a['length']||_0x273d77['empty'])return _0x32882a;let _0x5bd7ec=[];for(let _0x3bef15 of _0x32882a)_0x273d77['touchesRange'](_0x3bef15['from'],_0x3bef15['to'])||_0x5bd7ec['push'](new LineGap(_0x273d77['mapPos'](_0x3bef15['from']),_0x273d77['mapPos'](_0x3bef15['to']),_0x3bef15['size'],_0x3bef15['displaySize']));return _0x5bd7ec;}['ensureLineGaps'](_0x2a6028,_0x4d675c){let _0x1ebba0=this['heightOracle']['lineWrapping'],_0x434555=_0x1ebba0?0x2710:0x7d0,_0x2034f8=_0x434555>>0x1,_0x4761bf=_0x434555<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x1ebba0)return[];let _0x384130=[],_0x1f5191=(_0x1bada2,_0x43d0c6,_0x57d985,_0x1e9f3c)=>{if(_0x43d0c6-_0x1bada2<_0x2034f8)return;let _0xba9e0f=this['state']['selection']['main'],_0x5a98e1=[_0xba9e0f['from']];_0xba9e0f['empty']||_0x5a98e1['push'](_0xba9e0f['to']);for(let _0x285b6c of _0x5a98e1)if(_0x285b6c>_0x1bada2&&_0x285b6c<_0x43d0c6)return _0x1f5191(_0x1bada2,_0x285b6c-0xa,_0x57d985,_0x1e9f3c),void _0x1f5191(_0x285b6c+0xa,_0x43d0c6,_0x57d985,_0x1e9f3c);let _0x46568f=find(_0x2a6028,_0x2bb7bf=>_0x2bb7bf['from']>=_0x57d985['from']&&_0x2bb7bf['to']<=_0x57d985['to']&&Math['abs'](_0x2bb7bf['from']-_0x1bada2)<_0x2034f8&&Math['abs'](_0x2bb7bf['to']-_0x43d0c6)<_0x2034f8&&!_0x5a98e1['some'](_0x3c6c03=>_0x2bb7bf['from']<_0x3c6c03&&_0x2bb7bf['to']>_0x3c6c03));if(!_0x46568f){if(_0x43d0c6<_0x57d985['to']&&_0x4d675c&&_0x1ebba0&&_0x4d675c['visibleRanges']['some'](_0x28b37b=>_0x28b37b['from']<=_0x43d0c6&&_0x28b37b['to']>=_0x43d0c6)){let _0x40a798=_0x4d675c['moveToLineBoundary'](EditorSelection['cursor'](_0x43d0c6),!0x1,!0x0)['head'];_0x40a798>_0x1bada2&&(_0x43d0c6=_0x40a798);}let _0x14381c=this['gapSize'](_0x57d985,_0x1bada2,_0x43d0c6,_0x1e9f3c);_0x46568f=new LineGap(_0x1bada2,_0x43d0c6,_0x14381c,_0x1ebba0||_0x14381c<0x1e8480?_0x14381c:0x1e8480);}_0x384130['push'](_0x46568f);},_0x42161a=_0x10db9e=>{if(_0x10db9e['length']<_0x4761bf||_0x10db9e['type']!=BlockType['Text'])return;let _0x3f89bf=lineStructure(_0x10db9e['from'],_0x10db9e['to'],this['stateDeco']);if(_0x3f89bf['total']<_0x4761bf)return;let _0x24e916,_0x2fa99a,_0x1f51d6=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x1ebba0){let _0x457672,_0x439616,_0x3df69e=_0x434555/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x1f51d6){let _0x549f71=findFraction(_0x3f89bf,_0x1f51d6),_0x1538ff=((this['visibleBottom']-this['visibleTop'])/0x2+_0x3df69e)/_0x10db9e['height'];_0x457672=_0x549f71-_0x1538ff,_0x439616=_0x549f71+_0x1538ff;}else _0x457672=(this['visibleTop']-_0x10db9e['top']-_0x3df69e)/_0x10db9e['height'],_0x439616=(this['visibleBottom']-_0x10db9e['top']+_0x3df69e)/_0x10db9e['height'];_0x24e916=findPosition(_0x3f89bf,_0x457672),_0x2fa99a=findPosition(_0x3f89bf,_0x439616);}else{let _0x7254dd=_0x3f89bf['total']*this['heightOracle']['charWidth'],_0x2b707d=_0x434555*this['heightOracle']['charWidth'],_0x485739=0x0;if(_0x7254dd>0x1e8480){for(let _0x5c1a9d of _0x2a6028)_0x5c1a9d['from']>=_0x10db9e['from']&&_0x5c1a9d['from']<_0x10db9e['to']&&_0x5c1a9d['size']!=_0x5c1a9d['displaySize']&&_0x5c1a9d['from']*this['heightOracle']['charWidth']+_0x485739<this['pixelViewport']['left']&&(_0x485739=_0x5c1a9d['size']-_0x5c1a9d['displaySize']);}let _0x1ce36c,_0x285924,_0x72cfab=this['pixelViewport']['left']+_0x485739,_0x2f1d25=this['pixelViewport']['right']+_0x485739;if(null!=_0x1f51d6){let _0x18d135=findFraction(_0x3f89bf,_0x1f51d6),_0x118848=((_0x2f1d25-_0x72cfab)/0x2+_0x2b707d)/_0x7254dd;_0x1ce36c=_0x18d135-_0x118848,_0x285924=_0x18d135+_0x118848;}else _0x1ce36c=(_0x72cfab-_0x2b707d)/_0x7254dd,_0x285924=(_0x2f1d25+_0x2b707d)/_0x7254dd;_0x24e916=findPosition(_0x3f89bf,_0x1ce36c),_0x2fa99a=findPosition(_0x3f89bf,_0x285924);}_0x24e916>_0x10db9e['from']&&_0x1f5191(_0x10db9e['from'],_0x24e916,_0x10db9e,_0x3f89bf),_0x2fa99a<_0x10db9e['to']&&_0x1f5191(_0x2fa99a,_0x10db9e['to'],_0x10db9e,_0x3f89bf);};for(let _0x126a15 of this['viewportLines'])Array['isArray'](_0x126a15['type'])?_0x126a15['type']['forEach'](_0x42161a):_0x42161a(_0x126a15);return _0x384130;}['gapSize'](_0x3e7292,_0x1b1449,_0x557946,_0x122d74){let _0x7a156e=findFraction(_0x122d74,_0x557946)-findFraction(_0x122d74,_0x1b1449);return this['heightOracle']['lineWrapping']?_0x3e7292['height']*_0x7a156e:_0x122d74['total']*this['heightOracle']['charWidth']*_0x7a156e;}['updateLineGaps'](_0x499a09){LineGap['same'](_0x499a09,this['lineGaps'])||(this['lineGaps']=_0x499a09,this['lineGapDeco']=Decoration['set'](_0x499a09['map'](_0x339061=>_0x339061['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0x34cafc){let _0x4b7320=this['stateDeco'];this['lineGaps']['length']&&(_0x4b7320=_0x4b7320['concat'](this['lineGapDeco']));let _0x8fbe50=[];RangeSet['spans'](_0x4b7320,this['viewport']['from'],this['viewport']['to'],{'span'(_0x25efdb,_0x464774){_0x8fbe50['push']({'from':_0x25efdb,'to':_0x464774});},'point'(){}},0x14);let _0x792175=0x0;if(_0x8fbe50['length']!=this['visibleRanges']['length'])_0x792175=0xc;else for(let _0x44a3a3=0x0;_0x44a3a3<_0x8fbe50['length']&&!(0x8&_0x792175);_0x44a3a3++){let _0x3c8731=this['visibleRanges'][_0x44a3a3],_0x58604c=_0x8fbe50[_0x44a3a3];_0x3c8731['from']==_0x58604c['from']&&_0x3c8731['to']==_0x58604c['to']||(_0x792175|=0x4,_0x34cafc&&_0x34cafc['mapPos'](_0x3c8731['from'],-0x1)==_0x58604c['from']&&_0x34cafc['mapPos'](_0x3c8731['to'],0x1)==_0x58604c['to']||(_0x792175|=0x8));}return this['visibleRanges']=_0x8fbe50,_0x792175;}['lineBlockAt'](_0x13e079){return _0x13e079>=this['viewport']['from']&&_0x13e079<=this['viewport']['to']&&this['viewportLines']['find'](_0x10ada9=>_0x10ada9['from']<=_0x13e079&&_0x10ada9['to']>=_0x13e079)||scaleBlock(this['heightMap']['lineAt'](_0x13e079,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x4316d2){return _0x4316d2>=this['viewportLines'][0x0]['top']&&_0x4316d2<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0x4850c3=>_0x4850c3['top']<=_0x4316d2&&_0x4850c3['bottom']>=_0x4316d2)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x4316d2),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x7e25b7){let _0x462cc4=this['lineBlockAtHeight'](_0x7e25b7+0x8);return _0x462cc4['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x7e25b7>0xc8?_0x462cc4:this['viewportLines'][0x0];}['elementAtHeight'](_0x3d3a1a){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x3d3a1a),this['heightOracle'],0x0,0x0),this['scaler']);}get['docHeight'](){return this['scaler']['toDOM'](this['heightMap']['height']);}get['contentHeight'](){return this['docHeight']+this['paddingTop']+this['paddingBottom'];}}class Viewport{constructor(_0x3b2234,_0x4f5f5c){this['from']=_0x3b2234,this['to']=_0x4f5f5c;}}function lineStructure(_0x3fb8d6,_0x129f0c,_0x2b0f8f){let _0x605f31=[],_0x5a55c4=_0x3fb8d6,_0x2cce92=0x0;return RangeSet['spans'](_0x2b0f8f,_0x3fb8d6,_0x129f0c,{'span'(){},'point'(_0x5656c2,_0x131af2){_0x5656c2>_0x5a55c4&&(_0x605f31['push']({'from':_0x5a55c4,'to':_0x5656c2}),_0x2cce92+=_0x5656c2-_0x5a55c4),_0x5a55c4=_0x131af2;}},0x14),_0x5a55c4<_0x129f0c&&(_0x605f31['push']({'from':_0x5a55c4,'to':_0x129f0c}),_0x2cce92+=_0x129f0c-_0x5a55c4),{'total':_0x2cce92,'ranges':_0x605f31};}function findPosition({total:_0x467cfa,ranges:_0x7b66c5},_0x228433){if(_0x228433<=0x0)return _0x7b66c5[0x0]['from'];if(_0x228433>=0x1)return _0x7b66c5[_0x7b66c5['length']-0x1]['to'];let _0x1c4b04=Math['floor'](_0x467cfa*_0x228433);for(let _0x2cf406=0x0;;_0x2cf406++){let {from:_0x23590f,to:_0x49382b}=_0x7b66c5[_0x2cf406],_0x224f79=_0x49382b-_0x23590f;if(_0x1c4b04<=_0x224f79)return _0x23590f+_0x1c4b04;_0x1c4b04-=_0x224f79;}}function findFraction(_0x489734,_0x6c66e1){let _0x68b946=0x0;for(let {from:_0x5081e0,to:_0x3e1695}of _0x489734['ranges']){if(_0x6c66e1<=_0x3e1695){_0x68b946+=_0x6c66e1-_0x5081e0;break;}_0x68b946+=_0x3e1695-_0x5081e0;}return _0x68b946/_0x489734['total'];}function find(_0x31c410,_0x4df962){for(let _0x3c75c2 of _0x31c410)if(_0x4df962(_0x3c75c2))return _0x3c75c2;}const IdScaler={'toDOM':_0xa3e9ab=>_0xa3e9ab,'fromDOM':_0x3790ec=>_0x3790ec,'scale':0x1,'eq'(_0x14cc17){return _0x14cc17==this;}};class BigScaler{constructor(_0x1da332,_0x40d399,_0x2018ad){let _0x97f8ed=0x0,_0x30c793=0x0,_0x3ab842=0x0;this['viewports']=_0x2018ad['map'](({from:_0x1d5e04,to:_0x286667})=>{let _0x40185e=_0x40d399['lineAt'](_0x1d5e04,QueryType['ByPos'],_0x1da332,0x0,0x0)['top'],_0x1fd8b6=_0x40d399['lineAt'](_0x286667,QueryType['ByPos'],_0x1da332,0x0,0x0)['bottom'];return _0x97f8ed+=_0x1fd8b6-_0x40185e,{'from':_0x1d5e04,'to':_0x286667,'top':_0x40185e,'bottom':_0x1fd8b6,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x97f8ed)/(_0x40d399['height']-_0x97f8ed);for(let _0x5d9aab of this['viewports'])_0x5d9aab['domTop']=_0x3ab842+(_0x5d9aab['top']-_0x30c793)*this['scale'],_0x3ab842=_0x5d9aab['domBottom']=_0x5d9aab['domTop']+(_0x5d9aab['bottom']-_0x5d9aab['top']),_0x30c793=_0x5d9aab['bottom'];}['toDOM'](_0x308b19){for(let _0xd0d0a6=0x0,_0x305308=0x0,_0x278201=0x0;;_0xd0d0a6++){let _0x2bd957=_0xd0d0a6<this['viewports']['length']?this['viewports'][_0xd0d0a6]:null;if(!_0x2bd957||_0x308b19<_0x2bd957['top'])return _0x278201+(_0x308b19-_0x305308)*this['scale'];if(_0x308b19<=_0x2bd957['bottom'])return _0x2bd957['domTop']+(_0x308b19-_0x2bd957['top']);_0x305308=_0x2bd957['bottom'],_0x278201=_0x2bd957['domBottom'];}}['fromDOM'](_0x302e6e){for(let _0x25c60f=0x0,_0x35d785=0x0,_0x3d6bbf=0x0;;_0x25c60f++){let _0x572777=_0x25c60f<this['viewports']['length']?this['viewports'][_0x25c60f]:null;if(!_0x572777||_0x302e6e<_0x572777['domTop'])return _0x35d785+(_0x302e6e-_0x3d6bbf)/this['scale'];if(_0x302e6e<=_0x572777['domBottom'])return _0x572777['top']+(_0x302e6e-_0x572777['domTop']);_0x35d785=_0x572777['bottom'],_0x3d6bbf=_0x572777['domBottom'];}}['eq'](_0x520c5d){return _0x520c5d instanceof BigScaler&&(this['scale']==_0x520c5d['scale']&&this['viewports']['length']==_0x520c5d['viewports']['length']&&this['viewports']['every']((_0x4cf593,_0x3931e1)=>_0x4cf593['from']==_0x520c5d['viewports'][_0x3931e1]['from']&&_0x4cf593['to']==_0x520c5d['viewports'][_0x3931e1]['to']));}}function scaleBlock(_0x4c7321,_0x47b4da){if(0x1==_0x47b4da['scale'])return _0x4c7321;let _0x50dbea=_0x47b4da['toDOM'](_0x4c7321['top']),_0x117cac=_0x47b4da['toDOM'](_0x4c7321['bottom']);return new BlockInfo(_0x4c7321['from'],_0x4c7321['length'],_0x50dbea,_0x117cac-_0x50dbea,Array['isArray'](_0x4c7321['_content'])?_0x4c7321['_content']['map'](_0x113b3f=>scaleBlock(_0x113b3f,_0x47b4da)):_0x4c7321['_content']);}const theme=Facet['define']({'combine':_0x318d0c=>_0x318d0c['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x4de0d0=>_0x4de0d0['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x756524,_0x51cb76,_0x204be4){return new StyleModule(_0x51cb76,{'finish':_0x109de8=>/&/['test'](_0x109de8)?_0x109de8['replace'](/&\w*/,_0x3f7801=>{if('&'==_0x3f7801)return _0x756524;if(!_0x204be4||!_0x204be4[_0x3f7801])throw new RangeError('Unsupported\x20selector:\x20'+_0x3f7801);return _0x204be4[_0x3f7801];}):_0x756524+'\x20'+_0x109de8});}const baseTheme$1$1=buildTheme('.'+baseThemeID,{'&':{'position':'relative\x20!important','boxSizing':'border-box','&.cm-focused':{'outline':'1px\x20dotted\x20#212121'},'display':'flex\x20!important','flexDirection':'column'},'.cm-scroller':{'display':'flex\x20!important','alignItems':'flex-start\x20!important','fontFamily':'monospace','lineHeight':1.4,'height':'100%','overflowX':'auto','position':'relative','zIndex':0x0,'overflowAnchor':'none'},'.cm-content':{'margin':0x0,'flexGrow':0x2,'flexShrink':0x0,'display':'block','whiteSpace':'pre','wordWrap':'normal','boxSizing':'border-box','minHeight':'100%','padding':'4px\x200','outline':'none','&[contenteditable=true]':{'WebkitUserModify':'read-write-plaintext-only'}},'.cm-lineWrapping':{'whiteSpace_fallback':'pre-wrap','whiteSpace':'break-spaces','wordBreak':'break-word','overflowWrap':'anywhere','flexShrink':0x1},'&light\x20.cm-content':{'caretColor':'black'},'&dark\x20.cm-content':{'caretColor':'white'},'.cm-line':{'display':'block','padding':'0\x202px\x200\x206px'},'.cm-layer':{'position':'absolute','left':0x0,'top':0x0,'contain':'size\x20style','&\x20>\x20*':{'position':'absolute'}},'&light\x20.cm-selectionBackground':{'background':'#d9d9d9'},'&dark\x20.cm-selectionBackground':{'background':'#222'},'&light.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground':{'background':'#d7d4f0'},'&dark.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground':{'background':'#233'},'.cm-cursorLayer':{'pointerEvents':'none'},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-cursorLayer':{'animation':'steps(1)\x20cm-blink\x201.2s\x20infinite'},'@keyframes\x20cm-blink':{'0%':{},'50%':{'opacity':0x0},'100%':{}},'@keyframes\x20cm-blink2':{'0%':{},'50%':{'opacity':0x0},'100%':{}},'.cm-cursor,\x20.cm-dropCursor':{'borderLeft':'1.2px\x20solid\x20black','marginLeft':'-0.6px','pointerEvents':'none'},'.cm-cursor':{'display':'none'},'&dark\x20.cm-cursor':{'borderLeftColor':'#ddd'},'.cm-dropCursor':{'position':'absolute'},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-cursorLayer\x20.cm-cursor':{'display':'block'},'.cm-iso':{'unicodeBidi':'isolate'},'.cm-announced':{'position':'fixed','top':'-10000px'},'@media\x20print':{'.cm-announced':{'display':'none'}},'&light\x20.cm-activeLine':{'backgroundColor':'#cceeff44'},'&dark\x20.cm-activeLine':{'backgroundColor':'#99eeff33'},'&light\x20.cm-specialChar':{'color':'red'},'&dark\x20.cm-specialChar':{'color':'#f78'},'.cm-gutters':{'flexShrink':0x0,'display':'flex','height':'100%','boxSizing':'border-box','zIndex':0xc8},'.cm-gutters-before':{'insetInlineStart':0x0},'.cm-gutters-after':{'insetInlineEnd':0x0},'&light\x20.cm-gutters':{'backgroundColor':'#f5f5f5','color':'#6c6c6c','border':'0px\x20solid\x20#ddd','&.cm-gutters-before':{'borderRightWidth':'1px'},'&.cm-gutters-after':{'borderLeftWidth':'1px'}},'&dark\x20.cm-gutters':{'backgroundColor':'#333338','color':'#ccc'},'.cm-gutter':{'display':'flex\x20!important','flexDirection':'column','flexShrink':0x0,'boxSizing':'border-box','minHeight':'100%','overflow':'hidden'},'.cm-gutterElement':{'boxSizing':'border-box'},'.cm-lineNumbers\x20.cm-gutterElement':{'padding':'0\x203px\x200\x205px','minWidth':'20px','textAlign':'right','whiteSpace':'nowrap'},'&light\x20.cm-activeLineGutter':{'backgroundColor':'#e2f2ff'},'&dark\x20.cm-activeLineGutter':{'backgroundColor':'#222227'},'.cm-panels':{'boxSizing':'border-box','position':'sticky','left':0x0,'right':0x0,'zIndex':0x12c},'&light\x20.cm-panels':{'backgroundColor':'#f5f5f5','color':'black'},'&light\x20.cm-panels-top':{'borderBottom':'1px\x20solid\x20#ddd'},'&light\x20.cm-panels-bottom':{'borderTop':'1px\x20solid\x20#ddd'},'&dark\x20.cm-panels':{'backgroundColor':'#333338','color':'white'},'.cm-dialog':{'padding':'2px\x2019px\x204px\x206px','position':'relative','&\x20label':{'fontSize':'80%'}},'.cm-dialog-close':{'position':'absolute','top':'3px','right':'4px','backgroundColor':'inherit','border':'none','font':'inherit','fontSize':'14px','padding':'0'},'.cm-tab':{'display':'inline-block','overflow':'hidden','verticalAlign':'bottom'},'.cm-widgetBuffer':{'verticalAlign':'text-top','height':'1em','width':0x0,'display':'inline'},'.cm-placeholder':{'color':'#888','display':'inline-block','verticalAlign':'top','userSelect':'none'},'.cm-highlightSpace':{'backgroundImage':'radial-gradient(circle\x20at\x2050%\x2055%,\x20#aaa\x2020%,\x20transparent\x205%)','backgroundPosition':'center'},'.cm-highlightTab':{'backgroundImage':'url(\x27data:image/svg+xml,<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20width=\x22200\x22\x20height=\x2220\x22><path\x20stroke=\x22%23888\x22\x20stroke-width=\x221\x22\x20fill=\x22none\x22\x20d=\x22M1\x2010H196L190\x205M190\x2015L196\x2010M197\x204L197\x2016\x22/></svg>\x27)','backgroundSize':'auto\x20100%','backgroundPosition':'right\x2090%','backgroundRepeat':'no-repeat'},'.cm-trailingSpace':{'backgroundColor':'#ff332255'},'.cm-button':{'verticalAlign':'middle','color':'inherit','fontSize':'70%','padding':'.2em\x201em','borderRadius':'1px'},'&light\x20.cm-button':{'backgroundImage':'linear-gradient(#eff1f5,\x20#d9d9df)','border':'1px\x20solid\x20#888','&:active':{'backgroundImage':'linear-gradient(#b4b4b4,\x20#d0d3d6)'}},'&dark\x20.cm-button':{'backgroundImage':'linear-gradient(#393939,\x20#111)','border':'1px\x20solid\x20#888','&:active':{'backgroundImage':'linear-gradient(#111,\x20#333)'}},'.cm-textfield':{'verticalAlign':'middle','color':'inherit','fontSize':'70%','border':'1px\x20solid\x20silver','padding':'.2em\x20.5em'},'&light\x20.cm-textfield':{'backgroundColor':'white'},'&dark\x20.cm-textfield':{'border':'1px\x20solid\x20#555','backgroundColor':'inherit'}},lightDarkIDs),observeOptions={'childList':!0x0,'characterData':!0x0,'subtree':!0x0,'attributes':!0x0,'characterDataOldValue':!0x0},useCharData=browser['ie']&&browser['ie_version']<=0xb;class DOMObserver{constructor(_0x344b54){this['view']=_0x344b54,this['active']=!0x1,this['editContext']=null,this['selectionRange']=new DOMSelectionState(),this['selectionChanged']=!0x1,this['delayedFlush']=-0x1,this['resizeTimeout']=-0x1,this['queue']=[],this['delayedAndroidKey']=null,this['flushingAndroidKey']=-0x1,this['lastChange']=0x0,this['scrollTargets']=[],this['intersection']=null,this['resizeScroll']=null,this['intersecting']=!0x1,this['gapIntersection']=null,this['gaps']=[],this['printQuery']=null,this['parentCheck']=-0x1,this['dom']=_0x344b54['contentDOM'],this['observer']=new MutationObserver(_0x1dad5a=>{for(let _0x3b3caa of _0x1dad5a)this['queue']['push'](_0x3b3caa);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0x344b54['composing'])&&_0x1dad5a['some'](_0x13a43b=>'childList'==_0x13a43b['type']&&_0x13a43b['removedNodes']['length']||'characterData'==_0x13a43b['type']&&_0x13a43b['oldValue']['length']>_0x13a43b['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0x344b54['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0x344b54),_0x344b54['state']['facet'](editable)&&(_0x344b54['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x3fad50=>{this['queue']['push']({'target':_0x3fad50['target'],'type':'characterData','oldValue':_0x3fad50['prevValue']}),this['flushSoon']();}),this['onSelectionChange']=this['onSelectionChange']['bind'](this),this['onResize']=this['onResize']['bind'](this),this['onPrint']=this['onPrint']['bind'](this),this['onScroll']=this['onScroll']['bind'](this),window['matchMedia']&&(this['printQuery']=window['matchMedia']('print')),'function'==typeof ResizeObserver&&(this['resizeScroll']=new ResizeObserver(()=>{var _0x59fe5e;(null===(_0x59fe5e=this['view']['docView'])||void 0x0===_0x59fe5e?void 0x0:_0x59fe5e['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0x344b54['scrollDOM'])),this['addWindowListeners'](this['win']=_0x344b54['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x1454d3=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x1454d3['length']>0x0&&_0x1454d3[_0x1454d3['length']-0x1]['intersectionRatio']>0x0!=this['intersecting']&&(this['intersecting']=!this['intersecting'],this['intersecting']!=this['view']['inView']&&this['onScrollChanged'](document['createEvent']('Event')));},{'threshold':[0x0,0.001]}),this['intersection']['observe'](this['dom']),this['gapIntersection']=new IntersectionObserver(_0x37d01d=>{_0x37d01d['length']>0x0&&_0x37d01d[_0x37d01d['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x270efb){this['view']['inputState']['runHandlers']('scroll',_0x270efb),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x107cc9){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x107cc9);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x25f558){('change'!=_0x25f558['type']&&_0x25f558['type']||_0x25f558['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0x259981){if(this['gapIntersection']&&(_0x259981['length']!=this['gaps']['length']||this['gaps']['some']((_0x1cfffc,_0x403946)=>_0x1cfffc!=_0x259981[_0x403946]))){this['gapIntersection']['disconnect']();for(let _0x4c4cf6 of _0x259981)this['gapIntersection']['observe'](_0x4c4cf6);this['gaps']=_0x259981;}}['onSelectionChange'](_0x19108e){let _0x12c520=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x588c4d}=this,_0x5ae5cc=this['selectionRange'];if(_0x588c4d['state']['facet'](editable)?_0x588c4d['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0x5ae5cc))return;let _0x5d95f2=_0x5ae5cc['anchorNode']&&_0x588c4d['docView']['nearest'](_0x5ae5cc['anchorNode']);_0x5d95f2&&_0x5d95f2['ignoreEvent'](_0x19108e)?_0x12c520||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x588c4d['state']['selection']['main']['empty']&&_0x5ae5cc['focusNode']&&isEquivalentPosition(_0x5ae5cc['focusNode'],_0x5ae5cc['focusOffset'],_0x5ae5cc['anchorNode'],_0x5ae5cc['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x256028}=this,_0x45d24f=getSelection(_0x256028['root']);if(!_0x45d24f)return!0x1;let _0x146788=browser['safari']&&0xb==_0x256028['root']['nodeType']&&_0x256028['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x45d24f)||_0x45d24f;if(!_0x146788||this['selectionRange']['eq'](_0x146788))return!0x1;let _0x1fab18=hasSelection(this['dom'],_0x146788);return _0x1fab18&&!this['selectionChanged']&&_0x256028['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x256028['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0x146788)?(this['view']['inputState']['lastFocusTime']=0x0,_0x256028['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x146788),_0x1fab18&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0x3ca11e,_0x4e4640){this['selectionRange']['set'](_0x3ca11e['node'],_0x3ca11e['offset'],_0x4e4640['node'],_0x4e4640['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x1d0095=0x0,_0x23826d=null;for(let _0x2b0568=this['dom'];_0x2b0568;)if(0x1==_0x2b0568['nodeType'])!_0x23826d&&_0x1d0095<this['scrollTargets']['length']&&this['scrollTargets'][_0x1d0095]==_0x2b0568?_0x1d0095++:_0x23826d||(_0x23826d=this['scrollTargets']['slice'](0x0,_0x1d0095)),_0x23826d&&_0x23826d['push'](_0x2b0568),_0x2b0568=_0x2b0568['assignedSlot']||_0x2b0568['parentNode'];else{if(0xb!=_0x2b0568['nodeType'])break;_0x2b0568=_0x2b0568['host'];}if(_0x1d0095<this['scrollTargets']['length']&&!_0x23826d&&(_0x23826d=this['scrollTargets']['slice'](0x0,_0x1d0095)),_0x23826d){for(let _0x10f12e of this['scrollTargets'])_0x10f12e['removeEventListener']('scroll',this['onScroll']);for(let _0x4213f7 of this['scrollTargets']=_0x23826d)_0x4213f7['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x297850){if(!this['active'])return _0x297850();try{return this['stop'](),_0x297850();}finally{this['start'](),this['clear']();}}['start'](){this['active']||(this['observer']['observe'](this['dom'],observeOptions),useCharData&&this['dom']['addEventListener']('DOMCharacterDataModified',this['onCharData']),this['active']=!0x0);}['stop'](){this['active']&&(this['active']=!0x1,this['observer']['disconnect'](),useCharData&&this['dom']['removeEventListener']('DOMCharacterDataModified',this['onCharData']));}['clear'](){this['processRecords'](),this['queue']['length']=0x0,this['selectionChanged']=!0x1;}['delayAndroidKey'](_0xb9619d,_0x5a0543){var _0x441c26;if(!this['delayedAndroidKey']){let _0x21612e=()=>{let _0x422f8b=this['delayedAndroidKey'];_0x422f8b&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x422f8b['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x422f8b['force']&&dispatchKey(this['dom'],_0x422f8b['key'],_0x422f8b['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x21612e);}this['delayedAndroidKey']&&'Enter'!=_0xb9619d||(this['delayedAndroidKey']={'key':_0xb9619d,'keyCode':_0x5a0543,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x441c26=this['delayedAndroidKey'])||void 0x0===_0x441c26?void 0x0:_0x441c26['force'])});}['clearDelayedAndroidKey'](){this['win']['cancelAnimationFrame'](this['flushingAndroidKey']),this['delayedAndroidKey']=null,this['flushingAndroidKey']=-0x1;}['flushSoon'](){this['delayedFlush']<0x0&&(this['delayedFlush']=this['view']['win']['requestAnimationFrame'](()=>{this['delayedFlush']=-0x1,this['flush']();}));}['forceFlush'](){this['delayedFlush']>=0x0&&(this['view']['win']['cancelAnimationFrame'](this['delayedFlush']),this['delayedFlush']=-0x1),this['flush']();}['pendingRecords'](){for(let _0x5c6a20 of this['observer']['takeRecords']())this['queue']['push'](_0x5c6a20);return this['queue'];}['processRecords'](){let _0xfa2268=this['pendingRecords']();_0xfa2268['length']&&(this['queue']=[]);let _0x373cd9=-0x1,_0xe25415=-0x1,_0x42d587=!0x1;for(let _0x956d72 of _0xfa2268){let _0x1b1780=this['readMutation'](_0x956d72);_0x1b1780&&(_0x1b1780['typeOver']&&(_0x42d587=!0x0),-0x1==_0x373cd9?{from:_0x373cd9,to:_0xe25415}=_0x1b1780:(_0x373cd9=Math['min'](_0x1b1780['from'],_0x373cd9),_0xe25415=Math['max'](_0x1b1780['to'],_0xe25415)));}return{'from':_0x373cd9,'to':_0xe25415,'typeOver':_0x42d587};}['readChange'](){let {from:_0x2b9bbe,to:_0x345d89,typeOver:_0x1ec3cc}=this['processRecords'](),_0x15c2be=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x2b9bbe<0x0&&!_0x15c2be)return null;_0x2b9bbe>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x562043=new DOMChange(this['view'],_0x2b9bbe,_0x345d89,_0x1ec3cc);return this['view']['docView']['domChanged']={'newSel':_0x562043['newSel']?_0x562043['newSel']['main']:null},_0x562043;}['flush'](_0x23edec=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x23edec&&this['readSelectionRange']();let _0x548873=this['readChange']();if(!_0x548873)return this['view']['requestMeasure'](),!0x1;let _0x54de1c=this['view']['state'],_0x185a2d=applyDOMChange(this['view'],_0x548873);return this['view']['state']==_0x54de1c&&(_0x548873['domChanged']||_0x548873['newSel']&&!_0x548873['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0x185a2d;}['readMutation'](_0x5720cc){let _0x599f49=this['view']['docView']['nearest'](_0x5720cc['target']);if(!_0x599f49||_0x599f49['ignoreMutation'](_0x5720cc))return null;if(_0x599f49['markDirty']('attributes'==_0x5720cc['type']),'attributes'==_0x5720cc['type']&&(_0x599f49['flags']|=0x4),'childList'==_0x5720cc['type']){let _0x936b3f=findChild(_0x599f49,_0x5720cc['previousSibling']||_0x5720cc['target']['previousSibling'],-0x1),_0x2b93f6=findChild(_0x599f49,_0x5720cc['nextSibling']||_0x5720cc['target']['nextSibling'],0x1);return{'from':_0x936b3f?_0x599f49['posAfter'](_0x936b3f):_0x599f49['posAtStart'],'to':_0x2b93f6?_0x599f49['posBefore'](_0x2b93f6):_0x599f49['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0x5720cc['type']?{'from':_0x599f49['posAtStart'],'to':_0x599f49['posAtEnd'],'typeOver':_0x5720cc['target']['nodeValue']==_0x5720cc['oldValue']}:null;}['setWindow'](_0x729c6){_0x729c6!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x729c6,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x2ecc24){_0x2ecc24['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x2ecc24['addEventListener']('beforeprint',this['onPrint']),_0x2ecc24['addEventListener']('scroll',this['onScroll']),_0x2ecc24['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0x13d8d1){_0x13d8d1['removeEventListener']('scroll',this['onScroll']),_0x13d8d1['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x13d8d1['removeEventListener']('beforeprint',this['onPrint']),_0x13d8d1['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x2bf4f4){this['editContext']&&(this['editContext']['update'](_0x2bf4f4),_0x2bf4f4['startState']['facet'](editable)!=_0x2bf4f4['state']['facet'](editable)&&(_0x2bf4f4['view']['contentDOM']['editContext']=_0x2bf4f4['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x1c7bbf,_0x56347f,_0x13d671;this['stop'](),null===(_0x1c7bbf=this['intersection'])||void 0x0===_0x1c7bbf||_0x1c7bbf['disconnect'](),null===(_0x56347f=this['gapIntersection'])||void 0x0===_0x56347f||_0x56347f['disconnect'](),null===(_0x13d671=this['resizeScroll'])||void 0x0===_0x13d671||_0x13d671['disconnect']();for(let _0x5c0d7f of this['scrollTargets'])_0x5c0d7f['removeEventListener']('scroll',this['onScroll']);this['removeWindowListeners'](this['win']),clearTimeout(this['parentCheck']),clearTimeout(this['resizeTimeout']),this['win']['cancelAnimationFrame'](this['delayedFlush']),this['win']['cancelAnimationFrame'](this['flushingAndroidKey']),this['editContext']&&(this['view']['contentDOM']['editContext']=null,this['editContext']['destroy']());}}function findChild(_0x1b1600,_0x5a2b1f,_0x4f7a1b){for(;_0x5a2b1f;){let _0x32ed88=ContentView['get'](_0x5a2b1f);if(_0x32ed88&&_0x32ed88['parent']==_0x1b1600)return _0x32ed88;let _0x4941b8=_0x5a2b1f['parentNode'];_0x5a2b1f=_0x4941b8!=_0x1b1600['dom']?_0x4941b8:_0x4f7a1b>0x0?_0x5a2b1f['nextSibling']:_0x5a2b1f['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0x331056,_0x342357){let _0x4a9765=_0x342357['startContainer'],_0x4d9a20=_0x342357['startOffset'],_0x208b9f=_0x342357['endContainer'],_0x31eb56=_0x342357['endOffset'],_0x5750c5=_0x331056['docView']['domAtPos'](_0x331056['state']['selection']['main']['anchor']);return isEquivalentPosition(_0x5750c5['node'],_0x5750c5['offset'],_0x208b9f,_0x31eb56)&&([_0x4a9765,_0x4d9a20,_0x208b9f,_0x31eb56]=[_0x208b9f,_0x31eb56,_0x4a9765,_0x4d9a20]),{'anchorNode':_0x4a9765,'anchorOffset':_0x4d9a20,'focusNode':_0x208b9f,'focusOffset':_0x31eb56};}function safariSelectionRangeHack(_0x296da0,_0x2ea98a){if(_0x2ea98a['getComposedRanges']){let _0x3123f9=_0x2ea98a['getComposedRanges'](_0x296da0['root'])[0x0];if(_0x3123f9)return buildSelectionRangeFromRange(_0x296da0,_0x3123f9);}let _0x2827fc=null;function _0x11df62(_0x507a9d){_0x507a9d['preventDefault'](),_0x507a9d['stopImmediatePropagation'](),_0x2827fc=_0x507a9d['getTargetRanges']()[0x0];}return _0x296da0['contentDOM']['addEventListener']('beforeinput',_0x11df62,!0x0),_0x296da0['dom']['ownerDocument']['execCommand']('indent'),_0x296da0['contentDOM']['removeEventListener']('beforeinput',_0x11df62,!0x0),_0x2827fc?buildSelectionRangeFromRange(_0x296da0,_0x2827fc):null;}class EditContextManager{constructor(_0x526727){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x526727['state']);let _0x4be7ca=this['editContext']=new window['EditContext']({'text':_0x526727['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x526727['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x526727['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x5bcb9a=>{let _0x503405=_0x526727['state']['selection']['main'],{anchor:_0x16e22a,head:_0x2b27b7}=_0x503405,_0x5375ab=this['toEditorPos'](_0x5bcb9a['updateRangeStart']),_0x559355=this['toEditorPos'](_0x5bcb9a['updateRangeEnd']);_0x526727['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x5bcb9a['updateRangeStart'],'editorBase':_0x5375ab,'drifted':!0x1});let _0x5a6161=_0x559355-_0x5375ab>_0x5bcb9a['text']['length'];_0x5375ab==this['from']&&_0x16e22a<this['from']?_0x5375ab=_0x16e22a:_0x559355==this['to']&&_0x16e22a>this['to']&&(_0x559355=_0x16e22a);let _0x3627d2=findDiff(_0x526727['state']['sliceDoc'](_0x5375ab,_0x559355),_0x5bcb9a['text'],(_0x5a6161?_0x503405['from']:_0x503405['to'])-_0x5375ab,_0x5a6161?'end':null);if(!_0x3627d2){let _0x54c48f=EditorSelection['single'](this['toEditorPos'](_0x5bcb9a['selectionStart']),this['toEditorPos'](_0x5bcb9a['selectionEnd']));return void(_0x54c48f['main']['eq'](_0x503405)||_0x526727['dispatch']({'selection':_0x54c48f,'userEvent':'select'}));}let _0x318967={'from':_0x3627d2['from']+_0x5375ab,'to':_0x3627d2['toA']+_0x5375ab,'insert':Text$1['of'](_0x5bcb9a['text']['slice'](_0x3627d2['from'],_0x3627d2['toB'])['split']('\x0a'))};if((browser['mac']||browser['android'])&&_0x318967['from']==_0x2b27b7-0x1&&/^\. ?$/['test'](_0x5bcb9a['text'])&&'off'==_0x526727['contentDOM']['getAttribute']('autocorrect')&&(_0x318967={'from':_0x5375ab,'to':_0x559355,'insert':Text$1['of']([_0x5bcb9a['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0x318967,!_0x526727['state']['readOnly']){let _0x23646b=this['to']-this['from']+(_0x318967['to']-_0x318967['from']+_0x318967['insert']['length']);applyDOMChangeInner(_0x526727,_0x318967,EditorSelection['single'](this['toEditorPos'](_0x5bcb9a['selectionStart'],_0x23646b),this['toEditorPos'](_0x5bcb9a['selectionEnd'],_0x23646b)));}this['pendingContextChange']&&(this['revertPending'](_0x526727['state']),this['setSelection'](_0x526727['state'])),_0x318967['from']<_0x318967['to']&&!_0x318967['insert']['length']&&_0x526727['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x4be7ca['text']['slice'](Math['max'](0x0,_0x5bcb9a['updateRangeStart']-0x1),Math['min'](_0x4be7ca['text']['length'],_0x5bcb9a['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0x5bcb9a);},this['handlers']['characterboundsupdate']=_0x54e777=>{let _0x2d75de=[],_0x212537=null;for(let _0x26e379=this['toEditorPos'](_0x54e777['rangeStart']),_0x4c025c=this['toEditorPos'](_0x54e777['rangeEnd']);_0x26e379<_0x4c025c;_0x26e379++){let _0x5984cd=_0x526727['coordsForChar'](_0x26e379);_0x212537=_0x5984cd&&new DOMRect(_0x5984cd['left'],_0x5984cd['top'],_0x5984cd['right']-_0x5984cd['left'],_0x5984cd['bottom']-_0x5984cd['top'])||_0x212537||new DOMRect(),_0x2d75de['push'](_0x212537);}_0x4be7ca['updateCharacterBounds'](_0x54e777['rangeStart'],_0x2d75de);},this['handlers']['textformatupdate']=_0x302a54=>{let _0x1107e5=[];for(let _0x460b08 of _0x302a54['getTextFormats']()){let _0x182491=_0x460b08['underlineStyle'],_0x35b7a2=_0x460b08['underlineThickness'];if(!/none/i['test'](_0x182491)&&!/none/i['test'](_0x35b7a2)){let _0x379e1b=this['toEditorPos'](_0x460b08['rangeStart']),_0x2389c5=this['toEditorPos'](_0x460b08['rangeEnd']);if(_0x379e1b<_0x2389c5){let _0x293b35='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0x182491)?_0x182491+'\x20':'Dashed'==_0x182491?'dashed\x20':'Squiggle'==_0x182491?'wavy\x20':'')+(/thin/i['test'](_0x35b7a2)?0x1:0x2)+'px';_0x1107e5['push'](Decoration['mark']({'attributes':{'style':_0x293b35}})['range'](_0x379e1b,_0x2389c5));}}}_0x526727['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x1107e5))});},this['handlers']['compositionstart']=()=>{_0x526727['inputState']['composing']<0x0&&(_0x526727['inputState']['composing']=0x0,_0x526727['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x526727['inputState']['composing']=-0x1,_0x526727['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x4ec21a}=this['composing'];this['composing']=null,_0x4ec21a&&this['reset'](_0x526727['state']);}};for(let _0x3f92df in this['handlers'])_0x4be7ca['addEventListener'](_0x3f92df,this['handlers'][_0x3f92df]);this['measureReq']={'read':_0x1f133d=>{this['editContext']['updateControlBounds'](_0x1f133d['contentDOM']['getBoundingClientRect']());let _0x5cf17c=getSelection(_0x1f133d['root']);_0x5cf17c&&_0x5cf17c['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x5cf17c['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x4d420c){let _0x58c392=0x0,_0x3758e9=!0x1,_0xdf4bbc=this['pendingContextChange'];return _0x4d420c['changes']['iterChanges']((_0x10cf55,_0x8a6218,_0x54f42e,_0x1f85e0,_0x1cce78)=>{if(_0x3758e9)return;let _0x552763=_0x1cce78['length']-(_0x8a6218-_0x10cf55);if(_0xdf4bbc&&_0x8a6218>=_0xdf4bbc['to']){if(_0xdf4bbc['from']==_0x10cf55&&_0xdf4bbc['to']==_0x8a6218&&_0xdf4bbc['insert']['eq'](_0x1cce78))return _0xdf4bbc=this['pendingContextChange']=null,_0x58c392+=_0x552763,void(this['to']+=_0x552763);_0xdf4bbc=null,this['revertPending'](_0x4d420c['state']);}if(_0x10cf55+=_0x58c392,(_0x8a6218+=_0x58c392)<=this['from'])this['from']+=_0x552763,this['to']+=_0x552763;else{if(_0x10cf55<this['to']){if(_0x10cf55<this['from']||_0x8a6218>this['to']||this['to']-this['from']+_0x1cce78['length']>0x7530)return void(_0x3758e9=!0x0);this['editContext']['updateText'](this['toContextPos'](_0x10cf55),this['toContextPos'](_0x8a6218),_0x1cce78['toString']()),this['to']+=_0x552763;}}_0x58c392+=_0x552763;}),_0xdf4bbc&&!_0x3758e9&&this['revertPending'](_0x4d420c['state']),!_0x3758e9;}['update'](_0x5ca63c){let _0x4d54f7=this['pendingContextChange'],_0x370d4e=_0x5ca63c['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x5ca63c['changes']['touchesRange'](_0x370d4e['from'],_0x370d4e['to'])&&_0x5ca63c['transactions']['some'](_0x169d85=>!_0x169d85['isUserEvent']('input.type')&&_0x169d85['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x5ca63c['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x5ca63c)&&this['rangeIsValid'](_0x5ca63c['state'])?(_0x5ca63c['docChanged']||_0x5ca63c['selectionSet']||_0x4d54f7)&&this['setSelection'](_0x5ca63c['state']):(this['pendingContextChange']=null,this['reset'](_0x5ca63c['state'])),(_0x5ca63c['geometryChanged']||_0x5ca63c['docChanged']||_0x5ca63c['selectionSet'])&&_0x5ca63c['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0x54dec3){let {head:_0x4bbb5f}=_0x54dec3['selection']['main'];this['from']=Math['max'](0x0,_0x4bbb5f-0x2710),this['to']=Math['min'](_0x54dec3['doc']['length'],_0x4bbb5f+0x2710);}['reset'](_0x30c5b0){this['resetRange'](_0x30c5b0),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x30c5b0['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x30c5b0);}['revertPending'](_0x32da72){let _0x3a78ba=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x3a78ba['from']),this['toContextPos'](_0x3a78ba['from']+_0x3a78ba['insert']['length']),_0x32da72['doc']['sliceString'](_0x3a78ba['from'],_0x3a78ba['to']));}['setSelection'](_0x448fec){let {main:_0x230ef6}=_0x448fec['selection'],_0x52af8e=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x230ef6['anchor']))),_0x5e322b=this['toContextPos'](_0x230ef6['head']);this['editContext']['selectionStart']==_0x52af8e&&this['editContext']['selectionEnd']==_0x5e322b||this['editContext']['updateSelection'](_0x52af8e,_0x5e322b);}['rangeIsValid'](_0x36d5aa){let {head:_0x3c1604}=_0x36d5aa['selection']['main'];return!(this['from']>0x0&&_0x3c1604-this['from']<0x1f4||this['to']<_0x36d5aa['doc']['length']&&this['to']-_0x3c1604<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0x3c66fa,_0x4a7c76=this['to']-this['from']){_0x3c66fa=Math['min'](_0x3c66fa,_0x4a7c76);let _0x25176a=this['composing'];return _0x25176a&&_0x25176a['drifted']?_0x25176a['editorBase']+(_0x3c66fa-_0x25176a['contextBase']):_0x3c66fa+this['from'];}['toContextPos'](_0x498b15){let _0x2a5668=this['composing'];return _0x2a5668&&_0x2a5668['drifted']?_0x2a5668['contextBase']+(_0x498b15-_0x2a5668['editorBase']):_0x498b15-this['from'];}['destroy'](){for(let _0x234914 in this['handlers'])this['editContext']['removeEventListener'](_0x234914,this['handlers'][_0x234914]);}}class EditorView{get['state'](){return this['viewState']['state'];}get['viewport'](){return this['viewState']['viewport'];}get['visibleRanges'](){return this['viewState']['visibleRanges'];}get['inView'](){return this['viewState']['inView'];}get['composing'](){return!!this['inputState']&&this['inputState']['composing']>0x0;}get['compositionStarted'](){return!!this['inputState']&&this['inputState']['composing']>=0x0;}get['root'](){return this['_root'];}get['win'](){return this['dom']['ownerDocument']['defaultView']||window;}constructor(_0x5a02af={}){var _0xc0fa98;this['plugins']=[],this['pluginMap']=new Map(),this['editorAttrs']={},this['contentAttrs']={},this['bidiCache']=[],this['destroyed']=!0x1,this['updateState']=0x2,this['measureScheduled']=-0x1,this['measureRequests']=[],this['contentDOM']=document['createElement']('div'),this['scrollDOM']=document['createElement']('div'),this['scrollDOM']['tabIndex']=-0x1,this['scrollDOM']['className']='cm-scroller',this['scrollDOM']['appendChild'](this['contentDOM']),this['announceDOM']=document['createElement']('div'),this['announceDOM']['className']='cm-announced',this['announceDOM']['setAttribute']('aria-live','polite'),this['dom']=document['createElement']('div'),this['dom']['appendChild'](this['announceDOM']),this['dom']['appendChild'](this['scrollDOM']),_0x5a02af['parent']&&_0x5a02af['parent']['appendChild'](this['dom']);let {dispatch:_0x2c6404}=_0x5a02af;this['dispatchTransactions']=_0x5a02af['dispatchTransactions']||_0x2c6404&&(_0x58428f=>_0x58428f['forEach'](_0x165928=>_0x2c6404(_0x165928,this)))||(_0x4439f6=>this['update'](_0x4439f6)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0x5a02af['root']||getRoot(_0x5a02af['parent'])||document,this['viewState']=new ViewState(_0x5a02af['state']||EditorState['create'](_0x5a02af)),_0x5a02af['scrollTo']&&_0x5a02af['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0x5a02af['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0xe09e79=>new PluginInstance(_0xe09e79));for(let _0x4300b7 of this['plugins'])_0x4300b7['update'](this);this['observer']=new DOMObserver(this),this['inputState']=new InputState(this),this['inputState']['ensureHandlers'](this['plugins']),this['docView']=new DocView(this),this['mountStyles'](),this['updateAttrs'](),this['updateState']=0x0,this['requestMeasure'](),(null===(_0xc0fa98=document['fonts'])||void 0x0===_0xc0fa98?void 0x0:_0xc0fa98['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0x2bae88){let _0x43a54b=0x1==_0x2bae88['length']&&_0x2bae88[0x0]instanceof Transaction?_0x2bae88:0x1==_0x2bae88['length']&&Array['isArray'](_0x2bae88[0x0])?_0x2bae88[0x0]:[this['state']['update'](..._0x2bae88)];this['dispatchTransactions'](_0x43a54b,this);}['update'](_0xef546b){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x532d29,_0x38d3ee=!0x1,_0x30ff34=!0x1,_0x26045c=this['state'];for(let _0xdb112b of _0xef546b){if(_0xdb112b['startState']!=_0x26045c)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0x26045c=_0xdb112b['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0x26045c);let _0x59dbcc=this['hasFocus'],_0x5201f8=0x0,_0x5332f5=null;_0xef546b['some'](_0x10c3f1=>_0x10c3f1['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x59dbcc,_0x5201f8=0x1):_0x59dbcc!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x59dbcc,_0x5332f5=focusChangeTransaction(_0x26045c,_0x59dbcc),_0x5332f5||(_0x5201f8=0x1));let _0x4a2b6f=this['observer']['delayedAndroidKey'],_0x4a6c48=null;if(_0x4a2b6f?(this['observer']['clearDelayedAndroidKey'](),_0x4a6c48=this['observer']['readChange'](),(_0x4a6c48&&!this['state']['doc']['eq'](_0x26045c['doc'])||!this['state']['selection']['eq'](_0x26045c['selection']))&&(_0x4a6c48=null)):this['observer']['clear'](),_0x26045c['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0x26045c);_0x532d29=ViewUpdate['create'](this,_0x26045c,_0xef546b),_0x532d29['flags']|=_0x5201f8;let _0x543b48=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x5ad113 of _0xef546b){if(_0x543b48&&(_0x543b48=_0x543b48['map'](_0x5ad113['changes'])),_0x5ad113['scrollIntoView']){let {main:_0x9365e7}=_0x5ad113['state']['selection'];_0x543b48=new ScrollTarget(_0x9365e7['empty']?_0x9365e7:EditorSelection['cursor'](_0x9365e7['head'],_0x9365e7['head']>_0x9365e7['anchor']?-0x1:0x1));}for(let _0x12d66b of _0x5ad113['effects'])_0x12d66b['is'](scrollIntoView$1)&&(_0x543b48=_0x12d66b['value']['clip'](this['state']));}this['viewState']['update'](_0x532d29,_0x543b48),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x532d29['changes']),_0x532d29['empty']||(this['updatePlugins'](_0x532d29),this['inputState']['update'](_0x532d29)),_0x38d3ee=this['docView']['update'](_0x532d29),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x30ff34=this['updateAttrs'](),this['showAnnouncements'](_0xef546b),this['docView']['updateSelection'](_0x38d3ee,_0xef546b['some'](_0x171187=>_0x171187['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x532d29['startState']['facet'](theme)!=_0x532d29['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x38d3ee||_0x30ff34||_0x543b48||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x38d3ee&&this['docViewUpdate'](),!_0x532d29['empty']){for(let _0x4e61bf of this['state']['facet'](updateListener))try{_0x4e61bf(_0x532d29);}catch(_0x1eb054){logException(this['state'],_0x1eb054,'update\x20listener');}}(_0x5332f5||_0x4a6c48)&&Promise['resolve']()['then'](()=>{_0x5332f5&&this['state']==_0x5332f5['startState']&&this['dispatch'](_0x5332f5),_0x4a6c48&&!applyDOMChange(this,_0x4a6c48)&&_0x4a2b6f['force']&&dispatchKey(this['contentDOM'],_0x4a2b6f['key'],_0x4a2b6f['keyCode']);});}['setState'](_0x30eb0a){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.setState\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');if(this['destroyed'])return void(this['viewState']['state']=_0x30eb0a);this['updateState']=0x2;let _0x14cf70=this['hasFocus'];try{for(let _0x86721a of this['plugins'])_0x86721a['destroy'](this);this['viewState']=new ViewState(_0x30eb0a),this['plugins']=_0x30eb0a['facet'](viewPlugin)['map'](_0x2e969c=>new PluginInstance(_0x2e969c)),this['pluginMap']['clear']();for(let _0x33f23c of this['plugins'])_0x33f23c['update'](this);this['docView']['destroy'](),this['docView']=new DocView(this),this['inputState']['ensureHandlers'](this['plugins']),this['mountStyles'](),this['updateAttrs'](),this['bidiCache']=[];}finally{this['updateState']=0x0;}_0x14cf70&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x112709){let _0x317752=_0x112709['startState']['facet'](viewPlugin),_0x8a3816=_0x112709['state']['facet'](viewPlugin);if(_0x317752!=_0x8a3816){let _0x5ee8d7=[];for(let _0x52a8dd of _0x8a3816){let _0x14173f=_0x317752['indexOf'](_0x52a8dd);if(_0x14173f<0x0)_0x5ee8d7['push'](new PluginInstance(_0x52a8dd));else{let _0x47c0a8=this['plugins'][_0x14173f];_0x47c0a8['mustUpdate']=_0x112709,_0x5ee8d7['push'](_0x47c0a8);}}for(let _0x5a7c21 of this['plugins'])_0x5a7c21['mustUpdate']!=_0x112709&&_0x5a7c21['destroy'](this);this['plugins']=_0x5ee8d7,this['pluginMap']['clear']();}else{for(let _0x490d16 of this['plugins'])_0x490d16['mustUpdate']=_0x112709;}for(let _0xdfff90=0x0;_0xdfff90<this['plugins']['length'];_0xdfff90++)this['plugins'][_0xdfff90]['update'](this);_0x317752!=_0x8a3816&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x308408 of this['plugins']){let _0xaa9540=_0x308408['value'];if(_0xaa9540&&_0xaa9540['docViewUpdate'])try{_0xaa9540['docViewUpdate'](this);}catch(_0x475704){logException(this['state'],_0x475704,'doc\x20view\x20update\x20listener');}}}['measure'](_0x43e567=!0x0){if(this['destroyed'])return;if(this['measureScheduled']>-0x1&&this['win']['cancelAnimationFrame'](this['measureScheduled']),this['observer']['delayedAndroidKey'])return this['measureScheduled']=-0x1,void this['requestMeasure']();this['measureScheduled']=0x0,_0x43e567&&this['observer']['forceFlush']();let _0x13ff15=null,_0x592e94=this['scrollDOM'],_0x3948f0=_0x592e94['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x466163,scrollAnchorHeight:_0x502750}=this['viewState'];Math['abs'](_0x3948f0-this['viewState']['scrollTop'])>0x1&&(_0x502750=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x1c5ea1=0x0;;_0x1c5ea1++){if(_0x502750<0x0){if(isScrolledToBottom(_0x592e94))_0x466163=-0x1,_0x502750=this['viewState']['heightMap']['height'];else{let _0x66bde5=this['viewState']['scrollAnchorAt'](_0x3948f0);_0x466163=_0x66bde5['from'],_0x502750=_0x66bde5['top'];}}this['updateState']=0x1;let _0x319ab1=this['viewState']['measure'](this);if(!_0x319ab1&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x1c5ea1>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x28780b=[];0x4&_0x319ab1||([this['measureRequests'],_0x28780b]=[_0x28780b,this['measureRequests']]);let _0x3ba71d=_0x28780b['map'](_0x471368=>{try{return _0x471368['read'](this);}catch(_0x26c995){return logException(this['state'],_0x26c995),BadMeasure;}}),_0x32516d=ViewUpdate['create'](this,this['state'],[]),_0x4a52f1=!0x1;_0x32516d['flags']|=_0x319ab1,_0x13ff15?_0x13ff15['flags']|=_0x319ab1:_0x13ff15=_0x32516d,this['updateState']=0x2,_0x32516d['empty']||(this['updatePlugins'](_0x32516d),this['inputState']['update'](_0x32516d),this['updateAttrs'](),_0x4a52f1=this['docView']['update'](_0x32516d),_0x4a52f1&&this['docViewUpdate']());for(let _0x5532e5=0x0;_0x5532e5<_0x28780b['length'];_0x5532e5++)if(_0x3ba71d[_0x5532e5]!=BadMeasure)try{let _0x2ab489=_0x28780b[_0x5532e5];_0x2ab489['write']&&_0x2ab489['write'](_0x3ba71d[_0x5532e5],this);}catch(_0x2d8e59){logException(this['state'],_0x2d8e59);}if(_0x4a52f1&&this['docView']['updateSelection'](!0x0),!_0x32516d['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0x502750=-0x1;continue;}{let _0x2b0c17=(_0x466163<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x466163)['top'])-_0x502750;if(_0x2b0c17>0x1||_0x2b0c17<-0x1){_0x3948f0+=_0x2b0c17,_0x592e94['scrollTop']=_0x3948f0/this['scaleY'],_0x502750=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0x13ff15&&!_0x13ff15['empty']){for(let _0x1c6787 of this['state']['facet'](updateListener))_0x1c6787(_0x13ff15);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x4c14ee=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0x561dcf={'spellcheck':'false','autocorrect':'off','autocapitalize':'off','writingsuggestions':'false','translate':'no','contenteditable':this['state']['facet'](editable)?'true':'false','class':'cm-content','style':browser['tabSize']+':\x20'+this['state']['tabSize'],'role':'textbox','aria-multiline':'true'};this['state']['readOnly']&&(_0x561dcf['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0x561dcf);let _0x378666=this['observer']['ignore'](()=>{let _0x398de0=updateAttrs(this['contentDOM'],this['contentAttrs'],_0x561dcf),_0x46a186=updateAttrs(this['dom'],this['editorAttrs'],_0x4c14ee);return _0x398de0||_0x46a186;});return this['editorAttrs']=_0x4c14ee,this['contentAttrs']=_0x561dcf,_0x378666;}['showAnnouncements'](_0x7117a5){let _0x28946a=!0x0;for(let _0x4b7322 of _0x7117a5)for(let _0x41c54f of _0x4b7322['effects'])_0x41c54f['is'](EditorView['announce'])&&(_0x28946a&&(this['announceDOM']['textContent']=''),_0x28946a=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x41c54f['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x10d38d=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x10d38d?{'nonce':_0x10d38d}:void 0x0);}['readMeasured'](){if(0x2==this['updateState'])throw new Error('Reading\x20the\x20editor\x20layout\x20isn\x27t\x20allowed\x20during\x20an\x20update');0x0==this['updateState']&&this['measureScheduled']>-0x1&&this['measure'](!0x1);}['requestMeasure'](_0x5c64aa){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x5c64aa){if(this['measureRequests']['indexOf'](_0x5c64aa)>-0x1)return;if(null!=_0x5c64aa['key']){for(let _0x4ed045=0x0;_0x4ed045<this['measureRequests']['length'];_0x4ed045++)if(this['measureRequests'][_0x4ed045]['key']===_0x5c64aa['key'])return void(this['measureRequests'][_0x4ed045]=_0x5c64aa);}this['measureRequests']['push'](_0x5c64aa);}}['plugin'](_0x3da55c){let _0x1c8a9f=this['pluginMap']['get'](_0x3da55c);return(void 0x0===_0x1c8a9f||_0x1c8a9f&&_0x1c8a9f['plugin']!=_0x3da55c)&&this['pluginMap']['set'](_0x3da55c,_0x1c8a9f=this['plugins']['find'](_0x2c7868=>_0x2c7868['plugin']==_0x3da55c)||null),_0x1c8a9f&&_0x1c8a9f['update'](this)['value'];}get['documentTop'](){return this['contentDOM']['getBoundingClientRect']()['top']+this['viewState']['paddingTop'];}get['documentPadding'](){return{'top':this['viewState']['paddingTop'],'bottom':this['viewState']['paddingBottom']};}get['scaleX'](){return this['viewState']['scaleX'];}get['scaleY'](){return this['viewState']['scaleY'];}['elementAtHeight'](_0x57e365){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x57e365);}['lineBlockAtHeight'](_0x33e4d2){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x33e4d2);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x4134cf){return this['viewState']['lineBlockAt'](_0x4134cf);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x4a22e7,_0x2d37e9,_0x421880){return skipAtoms(this,_0x4a22e7,moveByChar(this,_0x4a22e7,_0x2d37e9,_0x421880));}['moveByGroup'](_0x4a1dda,_0x3f2a95){return skipAtoms(this,_0x4a1dda,moveByChar(this,_0x4a1dda,_0x3f2a95,_0x6945db=>byGroup(this,_0x4a1dda['head'],_0x6945db)));}['visualLineSide'](_0x3614ef,_0x195086){let _0x321521=this['bidiSpans'](_0x3614ef),_0x262573=this['textDirectionAt'](_0x3614ef['from']),_0x251a83=_0x321521[_0x195086?_0x321521['length']-0x1:0x0];return EditorSelection['cursor'](_0x251a83['side'](_0x195086,_0x262573)+_0x3614ef['from'],_0x251a83['forward'](!_0x195086,_0x262573)?0x1:-0x1);}['moveToLineBoundary'](_0x1379fa,_0x486de8,_0x2be40e=!0x0){return moveToLineBoundary(this,_0x1379fa,_0x486de8,_0x2be40e);}['moveVertically'](_0x17789a,_0xa89c2c,_0x1101bc){return skipAtoms(this,_0x17789a,moveVertically(this,_0x17789a,_0xa89c2c,_0x1101bc));}['domAtPos'](_0x4c493b){return this['docView']['domAtPos'](_0x4c493b);}['posAtDOM'](_0x2f0941,_0x21f5b5=0x0){return this['docView']['posFromDOM'](_0x2f0941,_0x21f5b5);}['posAtCoords'](_0x3d883f,_0x5d27d6=!0x0){return this['readMeasured'](),posAtCoords(this,_0x3d883f,_0x5d27d6);}['coordsAtPos'](_0x58410e,_0x1649fb=0x1){this['readMeasured']();let _0x3ce395=this['docView']['coordsAt'](_0x58410e,_0x1649fb);if(!_0x3ce395||_0x3ce395['left']==_0x3ce395['right'])return _0x3ce395;let _0x5e0bc2=this['state']['doc']['lineAt'](_0x58410e),_0x38c978=this['bidiSpans'](_0x5e0bc2);return flattenRect(_0x3ce395,_0x38c978[BidiSpan['find'](_0x38c978,_0x58410e-_0x5e0bc2['from'],-0x1,_0x1649fb)]['dir']==Direction['LTR']==_0x1649fb>0x0);}['coordsForChar'](_0x1824d8){return this['readMeasured'](),this['docView']['coordsForChar'](_0x1824d8);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x543e56){return!this['state']['facet'](perLineTextDirection)||_0x543e56<this['viewport']['from']||_0x543e56>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x543e56));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0xac70db){if(_0xac70db['length']>MaxBidiLine)return trivialOrder(_0xac70db['length']);let _0x34264e,_0x2b278a=this['textDirectionAt'](_0xac70db['from']);for(let _0x499413 of this['bidiCache'])if(_0x499413['from']==_0xac70db['from']&&_0x499413['dir']==_0x2b278a&&(_0x499413['fresh']||isolatesEq(_0x499413['isolates'],_0x34264e=getIsolatedRanges(this,_0xac70db))))return _0x499413['order'];_0x34264e||(_0x34264e=getIsolatedRanges(this,_0xac70db));let _0x5d6364=computeOrder(_0xac70db['text'],_0x2b278a,_0x34264e);return this['bidiCache']['push'](new CachedOrder(_0xac70db['from'],_0xac70db['to'],_0x2b278a,_0x34264e,!0x0,_0x5d6364)),_0x5d6364;}get['hasFocus'](){var _0x58fd0c;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0x58fd0c=this['inputState'])||void 0x0===_0x58fd0c?void 0x0:_0x58fd0c['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x32173c){this['_root']!=_0x32173c&&(this['_root']=_0x32173c,this['observer']['setWindow']((0x9==_0x32173c['nodeType']?_0x32173c:_0x32173c['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x26d835 of this['plugins'])_0x26d835['destroy'](this);this['plugins']=[],this['inputState']['destroy'](),this['docView']['destroy'](),this['dom']['remove'](),this['observer']['destroy'](),this['measureScheduled']>-0x1&&this['win']['cancelAnimationFrame'](this['measureScheduled']),this['destroyed']=!0x0;}static['scrollIntoView'](_0x570b9b,_0x443dda={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0x570b9b?EditorSelection['cursor'](_0x570b9b):_0x570b9b,_0x443dda['y'],_0x443dda['x'],_0x443dda['yMargin'],_0x443dda['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x5c4d53,scrollLeft:_0x1d817c}=this['scrollDOM'],_0x5259f1=this['viewState']['scrollAnchorAt'](_0x5c4d53);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x5259f1['from']),'start','start',_0x5259f1['top']-_0x5c4d53,_0x1d817c,!0x0));}['setTabFocusMode'](_0x594396){null==_0x594396?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x594396?this['inputState']['tabFocusMode']=_0x594396?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x594396);}static['domEventHandlers'](_0x5ec999){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x5ec999});}static['domEventObservers'](_0x1bcc8a){return ViewPlugin['define'](()=>({}),{'eventObservers':_0x1bcc8a});}static['theme'](_0x1738f3,_0x18144f){let _0x2ff01b=StyleModule['newName'](),_0x24ca79=[theme['of'](_0x2ff01b),styleModule['of'](buildTheme('.'+_0x2ff01b,_0x1738f3))];return _0x18144f&&_0x18144f['dark']&&_0x24ca79['push'](darkTheme['of'](!0x0)),_0x24ca79;}static['baseTheme'](_0x27b9c9){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x27b9c9,lightDarkIDs)));}static['findFromDOM'](_0x4b5808){var _0x30a5b7;let _0x4563c8=_0x4b5808['querySelector']('.cm-content'),_0xfcba86=_0x4563c8&&ContentView['get'](_0x4563c8)||ContentView['get'](_0x4b5808);return(null===(_0x30a5b7=null==_0xfcba86?void 0x0:_0xfcba86['rootView'])||void 0x0===_0x30a5b7?void 0x0:_0x30a5b7['view'])||null;}}EditorView['styleModule']=styleModule,EditorView['inputHandler']=inputHandler$1,EditorView['clipboardInputFilter']=clipboardInputFilter,EditorView['clipboardOutputFilter']=clipboardOutputFilter,EditorView['scrollHandler']=scrollHandler,EditorView['focusChangeEffect']=focusChangeEffect,EditorView['perLineTextDirection']=perLineTextDirection,EditorView['exceptionSink']=exceptionSink,EditorView['updateListener']=updateListener,EditorView['editable']=editable,EditorView['mouseSelectionStyle']=mouseSelectionStyle,EditorView['dragMovesSelection']=dragMovesSelection$1,EditorView['clickAddsSelectionRange']=clickAddsSelectionRange,EditorView['decorations']=decorations,EditorView['outerDecorations']=outerDecorations,EditorView['atomicRanges']=atomicRanges,EditorView['bidiIsolatedRanges']=bidiIsolatedRanges,EditorView['scrollMargins']=scrollMargins,EditorView['darkTheme']=darkTheme,EditorView['cspNonce']=Facet['define']({'combine':_0x2d7749=>_0x2d7749['length']?_0x2d7749[0x0]:''}),EditorView['contentAttributes']=contentAttributes,EditorView['editorAttributes']=editorAttributes,EditorView['lineWrapping']=EditorView['contentAttributes']['of']({'class':'cm-lineWrapping'}),EditorView['announce']=StateEffect['define']();const MaxBidiLine=0x1000,BadMeasure={};class CachedOrder{constructor(_0x1bb8a9,_0x46e831,_0xbf9da5,_0x19e82c,_0x1de4e6,_0x4a0de8){this['from']=_0x1bb8a9,this['to']=_0x46e831,this['dir']=_0xbf9da5,this['isolates']=_0x19e82c,this['fresh']=_0x1de4e6,this['order']=_0x4a0de8;}static['update'](_0x1a71d7,_0x435103){if(_0x435103['empty']&&!_0x1a71d7['some'](_0xbc8831=>_0xbc8831['fresh']))return _0x1a71d7;let _0x57bd77=[],_0x23f695=_0x1a71d7['length']?_0x1a71d7[_0x1a71d7['length']-0x1]['dir']:Direction['LTR'];for(let _0x580c7e=Math['max'](0x0,_0x1a71d7['length']-0xa);_0x580c7e<_0x1a71d7['length'];_0x580c7e++){let _0x4645af=_0x1a71d7[_0x580c7e];_0x4645af['dir']!=_0x23f695||_0x435103['touchesRange'](_0x4645af['from'],_0x4645af['to'])||_0x57bd77['push'](new CachedOrder(_0x435103['mapPos'](_0x4645af['from'],0x1),_0x435103['mapPos'](_0x4645af['to'],-0x1),_0x4645af['dir'],_0x4645af['isolates'],!0x1,_0x4645af['order']));}return _0x57bd77;}}function attrsFromFacet(_0x485a46,_0x115e1b,_0x12f128){for(let _0x477943=_0x485a46['state']['facet'](_0x115e1b),_0x2515b9=_0x477943['length']-0x1;_0x2515b9>=0x0;_0x2515b9--){let _0x3fd1c6=_0x477943[_0x2515b9],_0x9ea204='function'==typeof _0x3fd1c6?_0x3fd1c6(_0x485a46):_0x3fd1c6;_0x9ea204&&combineAttrs(_0x9ea204,_0x12f128);}return _0x12f128;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0x3830bb,_0xf63edf){const _0x3e3ee3=_0x3830bb['split'](/-(?!$)/);let _0x1073f5,_0x5c2cef,_0x3c7128,_0x803dad,_0x11dc8e=_0x3e3ee3[_0x3e3ee3['length']-0x1];'Space'==_0x11dc8e&&(_0x11dc8e='\x20');for(let _0x66714e=0x0;_0x66714e<_0x3e3ee3['length']-0x1;++_0x66714e){const _0x49e373=_0x3e3ee3[_0x66714e];if(/^(cmd|meta|m)$/i['test'](_0x49e373))_0x803dad=!0x0;else{if(/^a(lt)?$/i['test'](_0x49e373))_0x1073f5=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x49e373))_0x5c2cef=!0x0;else{if(/^s(hift)?$/i['test'](_0x49e373))_0x3c7128=!0x0;else{if(!/^mod$/i['test'](_0x49e373))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x49e373);'mac'==_0xf63edf?_0x803dad=!0x0:_0x5c2cef=!0x0;}}}}}return _0x1073f5&&(_0x11dc8e='Alt-'+_0x11dc8e),_0x5c2cef&&(_0x11dc8e='Ctrl-'+_0x11dc8e),_0x803dad&&(_0x11dc8e='Meta-'+_0x11dc8e),_0x3c7128&&(_0x11dc8e='Shift-'+_0x11dc8e),_0x11dc8e;}function modifiers(_0x5ee5a7,_0xb20b68,_0xc30be7){return _0xb20b68['altKey']&&(_0x5ee5a7='Alt-'+_0x5ee5a7),_0xb20b68['ctrlKey']&&(_0x5ee5a7='Ctrl-'+_0x5ee5a7),_0xb20b68['metaKey']&&(_0x5ee5a7='Meta-'+_0x5ee5a7),!0x1!==_0xc30be7&&_0xb20b68['shiftKey']&&(_0x5ee5a7='Shift-'+_0x5ee5a7),_0x5ee5a7;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0x314a69,_0x4a6ab4)=>runHandlers(getKeymap(_0x4a6ab4['state']),_0x314a69,_0x4a6ab4,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x5299e0){let _0x5e6226=_0x5299e0['facet'](keymap),_0x4fd8ae=Keymaps['get'](_0x5e6226);return _0x4fd8ae||Keymaps['set'](_0x5e6226,_0x4fd8ae=buildKeymap(_0x5e6226['reduce']((_0x22a78a,_0x43335f)=>_0x22a78a['concat'](_0x43335f),[]))),_0x4fd8ae;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x32b012,_0x4ca88a=currentPlatform){let _0x3bfdca=Object['create'](null),_0x76c87a=Object['create'](null),_0x5ce7d1=(_0x4626ff,_0x399352)=>{let _0x378fbf=_0x76c87a[_0x4626ff];if(null==_0x378fbf)_0x76c87a[_0x4626ff]=_0x399352;else{if(_0x378fbf!=_0x399352)throw new Error('Key\x20binding\x20'+_0x4626ff+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x591aa0=(_0x48819a,_0x5ee3d2,_0x45d9d0,_0x57ff6f,_0x3ab3de)=>{var _0x56ebe4,_0x369af4;let _0x3c2df0=_0x3bfdca[_0x48819a]||(_0x3bfdca[_0x48819a]=Object['create'](null)),_0x5114c9=_0x5ee3d2['split'](/ (?!$)/)['map'](_0x377df4=>normalizeKeyName(_0x377df4,_0x4ca88a));for(let _0x4523d6=0x1;_0x4523d6<_0x5114c9['length'];_0x4523d6++){let _0xf4db6c=_0x5114c9['slice'](0x0,_0x4523d6)['join']('\x20');_0x5ce7d1(_0xf4db6c,!0x0),_0x3c2df0[_0xf4db6c]||(_0x3c2df0[_0xf4db6c]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x104011=>{let _0x1ede6c=storedPrefix={'view':_0x104011,'prefix':_0xf4db6c,'scope':_0x48819a};return setTimeout(()=>{storedPrefix==_0x1ede6c&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x205004=_0x5114c9['join']('\x20');_0x5ce7d1(_0x205004,!0x1);let _0x587a4e=_0x3c2df0[_0x205004]||(_0x3c2df0[_0x205004]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x369af4=null===(_0x56ebe4=_0x3c2df0['_any'])||void 0x0===_0x56ebe4?void 0x0:_0x56ebe4['run'])||void 0x0===_0x369af4?void 0x0:_0x369af4['slice']())||[]});_0x45d9d0&&_0x587a4e['run']['push'](_0x45d9d0),_0x57ff6f&&(_0x587a4e['preventDefault']=!0x0),_0x3ab3de&&(_0x587a4e['stopPropagation']=!0x0);};for(let _0x3e06f7 of _0x32b012){let _0x38689=_0x3e06f7['scope']?_0x3e06f7['scope']['split']('\x20'):['editor'];if(_0x3e06f7['any'])for(let _0x4715ad of _0x38689){let _0x5445bb=_0x3bfdca[_0x4715ad]||(_0x3bfdca[_0x4715ad]=Object['create'](null));_0x5445bb['_any']||(_0x5445bb['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x18e806}=_0x3e06f7;for(let _0x9ad165 in _0x5445bb)_0x5445bb[_0x9ad165]['run']['push'](_0x31b6b1=>_0x18e806(_0x31b6b1,currentKeyEvent));}let _0x16de15=_0x3e06f7[_0x4ca88a]||_0x3e06f7['key'];if(_0x16de15){for(let _0x38450e of _0x38689)_0x591aa0(_0x38450e,_0x16de15,_0x3e06f7['run'],_0x3e06f7['preventDefault'],_0x3e06f7['stopPropagation']),_0x3e06f7['shift']&&_0x591aa0(_0x38450e,'Shift-'+_0x16de15,_0x3e06f7['shift'],_0x3e06f7['preventDefault'],_0x3e06f7['stopPropagation']);}}return _0x3bfdca;}let currentKeyEvent=null;function runHandlers(_0xce6d94,_0x25baa2,_0x3793a4,_0x486d39){currentKeyEvent=_0x25baa2;let _0x3221d4=keyName(_0x25baa2),_0x3759e8=codePointSize(codePointAt(_0x3221d4,0x0))==_0x3221d4['length']&&'\x20'!=_0x3221d4,_0x218252='',_0x5499f2=!0x1,_0xfb85bf=!0x1,_0x3a65f9=!0x1;storedPrefix&&storedPrefix['view']==_0x3793a4&&storedPrefix['scope']==_0x486d39&&(_0x218252=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x25baa2['keyCode'])<0x0&&(_0xfb85bf=!0x0,storedPrefix=null));let _0x22a84f,_0x2885d6,_0x47be91=new Set(),_0x3850ee=_0x2c4b42=>{if(_0x2c4b42){for(let _0x3b44ab of _0x2c4b42['run'])if(!_0x47be91['has'](_0x3b44ab)&&(_0x47be91['add'](_0x3b44ab),_0x3b44ab(_0x3793a4)))return _0x2c4b42['stopPropagation']&&(_0x3a65f9=!0x0),!0x0;_0x2c4b42['preventDefault']&&(_0x2c4b42['stopPropagation']&&(_0x3a65f9=!0x0),_0xfb85bf=!0x0);}return!0x1;},_0x3f1eea=_0xce6d94[_0x486d39];return _0x3f1eea&&(_0x3850ee(_0x3f1eea[_0x218252+modifiers(_0x3221d4,_0x25baa2,!_0x3759e8)])?_0x5499f2=!0x0:!_0x3759e8||!(_0x25baa2['altKey']||_0x25baa2['metaKey']||_0x25baa2['ctrlKey'])||browser['windows']&&_0x25baa2['ctrlKey']&&_0x25baa2['altKey']||browser['mac']&&_0x25baa2['altKey']&&!_0x25baa2['ctrlKey']&&!_0x25baa2['metaKey']||!(_0x22a84f=base$1[_0x25baa2['keyCode']])||_0x22a84f==_0x3221d4?_0x3759e8&&_0x25baa2['shiftKey']&&_0x3850ee(_0x3f1eea[_0x218252+modifiers(_0x3221d4,_0x25baa2,!0x0)])&&(_0x5499f2=!0x0):(_0x3850ee(_0x3f1eea[_0x218252+modifiers(_0x22a84f,_0x25baa2,!0x0)])||_0x25baa2['shiftKey']&&(_0x2885d6=shift[_0x25baa2['keyCode']])!=_0x3221d4&&_0x2885d6!=_0x22a84f&&_0x3850ee(_0x3f1eea[_0x218252+modifiers(_0x2885d6,_0x25baa2,!0x1)]))&&(_0x5499f2=!0x0),!_0x5499f2&&_0x3850ee(_0x3f1eea['_any'])&&(_0x5499f2=!0x0)),_0xfb85bf&&(_0x5499f2=!0x0),_0x5499f2&&_0x3a65f9&&_0x25baa2['stopPropagation'](),currentKeyEvent=null,_0x5499f2;}class RectangleMarker{constructor(_0x5bc445,_0x32d46a,_0x541f71,_0x595a66,_0xf00cca){this['className']=_0x5bc445,this['left']=_0x32d46a,this['top']=_0x541f71,this['width']=_0x595a66,this['height']=_0xf00cca;}['draw'](){let _0x5c4a19=document['createElement']('div');return _0x5c4a19['className']=this['className'],this['adjust'](_0x5c4a19),_0x5c4a19;}['update'](_0x37a28a,_0xabcb5b){return _0xabcb5b['className']==this['className']&&(this['adjust'](_0x37a28a),!0x0);}['adjust'](_0x5859d2){_0x5859d2['style']['left']=this['left']+'px',_0x5859d2['style']['top']=this['top']+'px',null!=this['width']&&(_0x5859d2['style']['width']=this['width']+'px'),_0x5859d2['style']['height']=this['height']+'px';}['eq'](_0x16e4d0){return this['left']==_0x16e4d0['left']&&this['top']==_0x16e4d0['top']&&this['width']==_0x16e4d0['width']&&this['height']==_0x16e4d0['height']&&this['className']==_0x16e4d0['className'];}static['forRange'](_0x2950ff,_0x36a5da,_0x5c940f){if(_0x5c940f['empty']){let _0x4cf89e=_0x2950ff['coordsAtPos'](_0x5c940f['head'],_0x5c940f['assoc']||0x1);if(!_0x4cf89e)return[];let _0x38a500=getBase(_0x2950ff);return[new RectangleMarker(_0x36a5da,_0x4cf89e['left']-_0x38a500['left'],_0x4cf89e['top']-_0x38a500['top'],null,_0x4cf89e['bottom']-_0x4cf89e['top'])];}return rectanglesForRange(_0x2950ff,_0x36a5da,_0x5c940f);}}function getBase(_0x398db0){let _0x2ff31d=_0x398db0['scrollDOM']['getBoundingClientRect']();return{'left':(_0x398db0['textDirection']==Direction['LTR']?_0x2ff31d['left']:_0x2ff31d['right']-_0x398db0['scrollDOM']['clientWidth']*_0x398db0['scaleX'])-_0x398db0['scrollDOM']['scrollLeft']*_0x398db0['scaleX'],'top':_0x2ff31d['top']-_0x398db0['scrollDOM']['scrollTop']*_0x398db0['scaleY']};}function wrappedLine(_0x47d185,_0x2fbc81,_0x52e574,_0x1c1ade){let _0x29831f=_0x47d185['coordsAtPos'](_0x2fbc81,0x2*_0x52e574);if(!_0x29831f)return _0x1c1ade;let _0x32fb83=_0x47d185['dom']['getBoundingClientRect'](),_0x236b51=(_0x29831f['top']+_0x29831f['bottom'])/0x2,_0x13e227=_0x47d185['posAtCoords']({'x':_0x32fb83['left']+0x1,'y':_0x236b51}),_0x25924a=_0x47d185['posAtCoords']({'x':_0x32fb83['right']-0x1,'y':_0x236b51});return null==_0x13e227||null==_0x25924a?_0x1c1ade:{'from':Math['max'](_0x1c1ade['from'],Math['min'](_0x13e227,_0x25924a)),'to':Math['min'](_0x1c1ade['to'],Math['max'](_0x13e227,_0x25924a))};}function rectanglesForRange(_0xed0421,_0x2219dc,_0x51355b){if(_0x51355b['to']<=_0xed0421['viewport']['from']||_0x51355b['from']>=_0xed0421['viewport']['to'])return[];let _0x2aad3e=Math['max'](_0x51355b['from'],_0xed0421['viewport']['from']),_0x3aba76=Math['min'](_0x51355b['to'],_0xed0421['viewport']['to']),_0x1dd654=_0xed0421['textDirection']==Direction['LTR'],_0x919679=_0xed0421['contentDOM'],_0x5644a5=_0x919679['getBoundingClientRect'](),_0x353655=getBase(_0xed0421),_0x5bda6f=_0x919679['querySelector']('.cm-line'),_0xe883b1=_0x5bda6f&&window['getComputedStyle'](_0x5bda6f),_0x4a5484=_0x5644a5['left']+(_0xe883b1?parseInt(_0xe883b1['paddingLeft'])+Math['min'](0x0,parseInt(_0xe883b1['textIndent'])):0x0),_0x55a34f=_0x5644a5['right']-(_0xe883b1?parseInt(_0xe883b1['paddingRight']):0x0),_0x167afb=blockAt(_0xed0421,_0x2aad3e,0x1),_0x50bac3=blockAt(_0xed0421,_0x3aba76,-0x1),_0x39ac2c=_0x167afb['type']==BlockType['Text']?_0x167afb:null,_0x1c9109=_0x50bac3['type']==BlockType['Text']?_0x50bac3:null;if(_0x39ac2c&&(_0xed0421['lineWrapping']||_0x167afb['widgetLineBreaks'])&&(_0x39ac2c=wrappedLine(_0xed0421,_0x2aad3e,0x1,_0x39ac2c)),_0x1c9109&&(_0xed0421['lineWrapping']||_0x50bac3['widgetLineBreaks'])&&(_0x1c9109=wrappedLine(_0xed0421,_0x3aba76,-0x1,_0x1c9109)),_0x39ac2c&&_0x1c9109&&_0x39ac2c['from']==_0x1c9109['from']&&_0x39ac2c['to']==_0x1c9109['to'])return _0x11f1b2(_0x3d7691(_0x51355b['from'],_0x51355b['to'],_0x39ac2c));{let _0x34b7ab=_0x39ac2c?_0x3d7691(_0x51355b['from'],null,_0x39ac2c):_0x52b1f5(_0x167afb,!0x1),_0x4a4023=_0x1c9109?_0x3d7691(null,_0x51355b['to'],_0x1c9109):_0x52b1f5(_0x50bac3,!0x0),_0xa324eb=[];return(_0x39ac2c||_0x167afb)['to']<(_0x1c9109||_0x50bac3)['from']-(_0x39ac2c&&_0x1c9109?0x1:0x0)||_0x167afb['widgetLineBreaks']>0x1&&_0x34b7ab['bottom']+_0xed0421['defaultLineHeight']/0x2<_0x4a4023['top']?_0xa324eb['push'](_0x266cd8(_0x4a5484,_0x34b7ab['bottom'],_0x55a34f,_0x4a4023['top'])):_0x34b7ab['bottom']<_0x4a4023['top']&&_0xed0421['elementAtHeight']((_0x34b7ab['bottom']+_0x4a4023['top'])/0x2)['type']==BlockType['Text']&&(_0x34b7ab['bottom']=_0x4a4023['top']=(_0x34b7ab['bottom']+_0x4a4023['top'])/0x2),_0x11f1b2(_0x34b7ab)['concat'](_0xa324eb)['concat'](_0x11f1b2(_0x4a4023));}function _0x266cd8(_0x4292bd,_0x389ba8,_0x2f906a,_0x51cf29){return new RectangleMarker(_0x2219dc,_0x4292bd-_0x353655['left'],_0x389ba8-_0x353655['top'],_0x2f906a-_0x4292bd,_0x51cf29-_0x389ba8);}function _0x11f1b2({top:_0xc43402,bottom:_0x85ead3,horizontal:_0x657350}){let _0x277fa1=[];for(let _0x2bdf67=0x0;_0x2bdf67<_0x657350['length'];_0x2bdf67+=0x2)_0x277fa1['push'](_0x266cd8(_0x657350[_0x2bdf67],_0xc43402,_0x657350[_0x2bdf67+0x1],_0x85ead3));return _0x277fa1;}function _0x3d7691(_0x5b9b83,_0x289a32,_0x59e7a9){let _0x1f3616=0x3b9aca00,_0x453028=-0x3b9aca00,_0x59e43e=[];function _0x1a2688(_0x218b23,_0x49fbce,_0x3c212b,_0x273df4,_0x3eaec4){let _0x355f2a=_0xed0421['coordsAtPos'](_0x218b23,_0x218b23==_0x59e7a9['to']?-0x2:0x2),_0x1340a7=_0xed0421['coordsAtPos'](_0x3c212b,_0x3c212b==_0x59e7a9['from']?0x2:-0x2);_0x355f2a&&_0x1340a7&&(_0x1f3616=Math['min'](_0x355f2a['top'],_0x1340a7['top'],_0x1f3616),_0x453028=Math['max'](_0x355f2a['bottom'],_0x1340a7['bottom'],_0x453028),_0x3eaec4==Direction['LTR']?_0x59e43e['push'](_0x1dd654&&_0x49fbce?_0x4a5484:_0x355f2a['left'],_0x1dd654&&_0x273df4?_0x55a34f:_0x1340a7['right']):_0x59e43e['push'](!_0x1dd654&&_0x273df4?_0x4a5484:_0x1340a7['left'],!_0x1dd654&&_0x49fbce?_0x55a34f:_0x355f2a['right']));}let _0x4e9091=null!=_0x5b9b83?_0x5b9b83:_0x59e7a9['from'],_0x17e78c=null!=_0x289a32?_0x289a32:_0x59e7a9['to'];for(let _0x4d21f1 of _0xed0421['visibleRanges'])if(_0x4d21f1['to']>_0x4e9091&&_0x4d21f1['from']<_0x17e78c)for(let _0x24ef48=Math['max'](_0x4d21f1['from'],_0x4e9091),_0x317f35=Math['min'](_0x4d21f1['to'],_0x17e78c);;){let _0x15b71e=_0xed0421['state']['doc']['lineAt'](_0x24ef48);for(let _0xd0daab of _0xed0421['bidiSpans'](_0x15b71e)){let _0x16e7ea=_0xd0daab['from']+_0x15b71e['from'],_0x84a108=_0xd0daab['to']+_0x15b71e['from'];if(_0x16e7ea>=_0x317f35)break;_0x84a108>_0x24ef48&&_0x1a2688(Math['max'](_0x16e7ea,_0x24ef48),null==_0x5b9b83&&_0x16e7ea<=_0x4e9091,Math['min'](_0x84a108,_0x317f35),null==_0x289a32&&_0x84a108>=_0x17e78c,_0xd0daab['dir']);}if(_0x24ef48=_0x15b71e['to']+0x1,_0x24ef48>=_0x317f35)break;}return 0x0==_0x59e43e['length']&&_0x1a2688(_0x4e9091,null==_0x5b9b83,_0x17e78c,null==_0x289a32,_0xed0421['textDirection']),{'top':_0x1f3616,'bottom':_0x453028,'horizontal':_0x59e43e};}function _0x52b1f5(_0x218e28,_0x4c6da){let _0x47bedd=_0x5644a5['top']+(_0x4c6da?_0x218e28['top']:_0x218e28['bottom']);return{'top':_0x47bedd,'bottom':_0x47bedd,'horizontal':[]};}}function sameMarker(_0x4e4eb9,_0x6a6bc8){return _0x4e4eb9['constructor']==_0x6a6bc8['constructor']&&_0x4e4eb9['eq'](_0x6a6bc8);}class LayerView{constructor(_0x5b25b2,_0x322f1f){this['view']=_0x5b25b2,this['layer']=_0x322f1f,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0x5b25b2['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x322f1f['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x322f1f['class']&&this['dom']['classList']['add'](_0x322f1f['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0x5b25b2['state']),_0x5b25b2['requestMeasure'](this['measureReq']),_0x322f1f['mount']&&_0x322f1f['mount'](this['dom'],_0x5b25b2);}['update'](_0x4ef7b4){_0x4ef7b4['startState']['facet'](layerOrder)!=_0x4ef7b4['state']['facet'](layerOrder)&&this['setOrder'](_0x4ef7b4['state']),(this['layer']['update'](_0x4ef7b4,this['dom'])||_0x4ef7b4['geometryChanged'])&&(this['scale'](),_0x4ef7b4['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x47f2b2){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x47f2b2['requestMeasure'](this['measureReq']);}['setOrder'](_0x56b1c4){let _0x11b286=0x0,_0xea0121=_0x56b1c4['facet'](layerOrder);for(;_0x11b286<_0xea0121['length']&&_0xea0121[_0x11b286]!=this['layer'];)_0x11b286++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x11b286);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0x13923b,scaleY:_0x19d10e}=this['view'];_0x13923b==this['scaleX']&&_0x19d10e==this['scaleY']||(this['scaleX']=_0x13923b,this['scaleY']=_0x19d10e,this['dom']['style']['transform']='scale('+0x1/_0x13923b+',\x20'+0x1/_0x19d10e+')');}['draw'](_0x12c800){if(_0x12c800['length']!=this['drawn']['length']||_0x12c800['some']((_0x35b0f5,_0x413081)=>!sameMarker(_0x35b0f5,this['drawn'][_0x413081]))){let _0x5cdb65=this['dom']['firstChild'],_0x36b97d=0x0;for(let _0x1096b7 of _0x12c800)_0x1096b7['update']&&_0x5cdb65&&_0x1096b7['constructor']&&this['drawn'][_0x36b97d]['constructor']&&_0x1096b7['update'](_0x5cdb65,this['drawn'][_0x36b97d])?(_0x5cdb65=_0x5cdb65['nextSibling'],_0x36b97d++):this['dom']['insertBefore'](_0x1096b7['draw'](),_0x5cdb65);for(;_0x5cdb65;){let _0x4fe507=_0x5cdb65['nextSibling'];_0x5cdb65['remove'](),_0x5cdb65=_0x4fe507;}this['drawn']=_0x12c800,browser['safari']&&browser['safari_version']>=0x1a&&(this['dom']['style']['display']=this['dom']['firstChild']?'':'none');}}['destroy'](){this['layer']['destroy']&&this['layer']['destroy'](this['dom'],this['view']),this['dom']['remove']();}}const layerOrder=Facet['define']();function layer(_0x549e11){return[ViewPlugin['define'](_0x4fdaa6=>new LayerView(_0x4fdaa6,_0x549e11)),layerOrder['of'](_0x549e11)];}const selectionConfig=Facet['define']({'combine':_0x3292d1=>combineConfig(_0x3292d1,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0x14b31b,_0x50e32d)=>Math['min'](_0x14b31b,_0x50e32d),'drawRangeCursor':(_0xe1aeb6,_0x32fa4a)=>_0xe1aeb6||_0x32fa4a})});function drawSelection(_0x4aefaf={}){return[selectionConfig['of'](_0x4aefaf),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0x12d2e6){return _0x12d2e6['startState']['facet'](selectionConfig)!=_0x12d2e6['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x4cc7e6){let {state:_0x3eba1f}=_0x4cc7e6,_0x51c1d2=_0x3eba1f['facet'](selectionConfig),_0x32874b=[];for(let _0x384ea1 of _0x3eba1f['selection']['ranges']){let _0x542e63=_0x384ea1==_0x3eba1f['selection']['main'];if(_0x384ea1['empty']||_0x51c1d2['drawRangeCursor']){let _0x43ee1b=_0x542e63?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0x5203ea=_0x384ea1['empty']?_0x384ea1:EditorSelection['cursor'](_0x384ea1['head'],_0x384ea1['head']>_0x384ea1['anchor']?-0x1:0x1);for(let _0xe72308 of RectangleMarker['forRange'](_0x4cc7e6,_0x43ee1b,_0x5203ea))_0x32874b['push'](_0xe72308);}}return _0x32874b;},'update'(_0x196b24,_0xc8d723){_0x196b24['transactions']['some'](_0x4592eb=>_0x4592eb['selection'])&&(_0xc8d723['style']['animationName']='cm-blink'==_0xc8d723['style']['animationName']?'cm-blink2':'cm-blink');let _0x3c1ddd=configChanged(_0x196b24);return _0x3c1ddd&&setBlinkRate(_0x196b24['state'],_0xc8d723),_0x196b24['docChanged']||_0x196b24['selectionSet']||_0x3c1ddd;},'mount'(_0x43c727,_0x2acfef){setBlinkRate(_0x2acfef['state'],_0x43c727);},'class':'cm-cursorLayer'});function setBlinkRate(_0x1b1095,_0x1c033b){_0x1c033b['style']['animationDuration']=_0x1b1095['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x5735ec=>_0x5735ec['state']['selection']['ranges']['map'](_0x1ec5be=>_0x1ec5be['empty']?[]:RectangleMarker['forRange'](_0x5735ec,'cm-selectionBackground',_0x1ec5be))['reduce']((_0x3eef8c,_0x501813)=>_0x3eef8c['concat'](_0x501813)),'update':(_0x506505,_0x1116fe)=>_0x506505['docChanged']||_0x506505['selectionSet']||_0x506505['viewportChanged']||configChanged(_0x506505),'class':'cm-selectionLayer'}),hideNativeSelection=Prec['highest'](EditorView['theme']({'.cm-line':{'&\x20::selection,\x20&::selection':{'backgroundColor':'transparent\x20!important'},'caretColor':'transparent\x20!important'},'.cm-content':{'caretColor':'transparent\x20!important','&\x20:focus':{'caretColor':'initial\x20!important','&::selection,\x20&\x20::selection':{'backgroundColor':'Highlight\x20!important'}}}})),setDropCursorPos=StateEffect['define']({'map':(_0x39d8c3,_0x46cf8d)=>null==_0x39d8c3?null:_0x46cf8d['mapPos'](_0x39d8c3)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x3402b7,_0x763a2)=>(null!=_0x3402b7&&(_0x3402b7=_0x763a2['changes']['mapPos'](_0x3402b7)),_0x763a2['effects']['reduce']((_0x24203c,_0x502041)=>_0x502041['is'](setDropCursorPos)?_0x502041['value']:_0x24203c,_0x3402b7))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x350aed){this['view']=_0x350aed,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x124f32){var _0x4d55a6;let _0x5667b4=_0x124f32['state']['field'](dropCursorPos);null==_0x5667b4?null!=this['cursor']&&(null===(_0x4d55a6=this['cursor'])||void 0x0===_0x4d55a6||_0x4d55a6['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x124f32['startState']['field'](dropCursorPos)!=_0x5667b4||_0x124f32['docChanged']||_0x124f32['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x256050}=this,_0x3c238b=_0x256050['state']['field'](dropCursorPos),_0x34a572=null!=_0x3c238b&&_0x256050['coordsAtPos'](_0x3c238b);if(!_0x34a572)return null;let _0x41ab10=_0x256050['scrollDOM']['getBoundingClientRect']();return{'left':_0x34a572['left']-_0x41ab10['left']+_0x256050['scrollDOM']['scrollLeft']*_0x256050['scaleX'],'top':_0x34a572['top']-_0x41ab10['top']+_0x256050['scrollDOM']['scrollTop']*_0x256050['scaleY'],'height':_0x34a572['bottom']-_0x34a572['top']};}['drawCursor'](_0x1d0435){if(this['cursor']){let {scaleX:_0x7b632a,scaleY:_0x4b7794}=this['view'];_0x1d0435?(this['cursor']['style']['left']=_0x1d0435['left']/_0x7b632a+'px',this['cursor']['style']['top']=_0x1d0435['top']/_0x4b7794+'px',this['cursor']['style']['height']=_0x1d0435['height']/_0x4b7794+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0x3fef6e){this['view']['state']['field'](dropCursorPos)!=_0x3fef6e&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0x3fef6e)});}},{'eventObservers':{'dragover'(_0x5065d8){this['setDropPos'](this['view']['posAtCoords']({'x':_0x5065d8['clientX'],'y':_0x5065d8['clientY']}));},'dragleave'(_0xada10a){_0xada10a['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0xada10a['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0x4c1e34,_0x42d6df,_0x30f90d,_0x120cb1,_0x1ed418){_0x42d6df['lastIndex']=0x0;for(let _0x5b7239,_0xe2022b=_0x4c1e34['iterRange'](_0x30f90d,_0x120cb1),_0x1336cd=_0x30f90d;!_0xe2022b['next']()['done'];_0x1336cd+=_0xe2022b['value']['length'])if(!_0xe2022b['lineBreak']){for(;_0x5b7239=_0x42d6df['exec'](_0xe2022b['value']);)_0x1ed418(_0x1336cd+_0x5b7239['index'],_0x5b7239);}}function matchRanges(_0x3896b4,_0x7d76e7){let _0x375a28=_0x3896b4['visibleRanges'];if(0x1==_0x375a28['length']&&_0x375a28[0x0]['from']==_0x3896b4['viewport']['from']&&_0x375a28[0x0]['to']==_0x3896b4['viewport']['to'])return _0x375a28;let _0x447954=[];for(let {from:_0x48026d,to:_0x2e197f}of _0x375a28)_0x48026d=Math['max'](_0x3896b4['state']['doc']['lineAt'](_0x48026d)['from'],_0x48026d-_0x7d76e7),_0x2e197f=Math['min'](_0x3896b4['state']['doc']['lineAt'](_0x2e197f)['to'],_0x2e197f+_0x7d76e7),_0x447954['length']&&_0x447954[_0x447954['length']-0x1]['to']>=_0x48026d?_0x447954[_0x447954['length']-0x1]['to']=_0x2e197f:_0x447954['push']({'from':_0x48026d,'to':_0x2e197f});return _0x447954;}class MatchDecorator{constructor(_0x1afe01){const {regexp:_0x50a3fa,decoration:_0x40bff8,decorate:_0x5a70ca,boundary:_0x2cc3bc,maxLength:_0x5e687f=0x3e8}=_0x1afe01;if(!_0x50a3fa['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x50a3fa,_0x5a70ca)this['addMatch']=(_0x286328,_0x4be537,_0x5c6cc2,_0x253c53)=>_0x5a70ca(_0x253c53,_0x5c6cc2,_0x5c6cc2+_0x286328[0x0]['length'],_0x286328,_0x4be537);else{if('function'==typeof _0x40bff8)this['addMatch']=(_0x18e5ae,_0x580422,_0x5d17c8,_0x1c0253)=>{let _0x3acead=_0x40bff8(_0x18e5ae,_0x580422,_0x5d17c8);_0x3acead&&_0x1c0253(_0x5d17c8,_0x5d17c8+_0x18e5ae[0x0]['length'],_0x3acead);};else{if(!_0x40bff8)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x4b5d2c,_0x32fffa,_0x19e1ee,_0x527990)=>_0x527990(_0x19e1ee,_0x19e1ee+_0x4b5d2c[0x0]['length'],_0x40bff8);}}this['boundary']=_0x2cc3bc,this['maxLength']=_0x5e687f;}['createDeco'](_0xf1976){let _0x829c8e=new RangeSetBuilder(),_0x11afb3=_0x829c8e['add']['bind'](_0x829c8e);for(let {from:_0x2ee8a7,to:_0x34dc07}of matchRanges(_0xf1976,this['maxLength']))iterMatches(_0xf1976['state']['doc'],this['regexp'],_0x2ee8a7,_0x34dc07,(_0xfed9e4,_0x208bd6)=>this['addMatch'](_0x208bd6,_0xf1976,_0xfed9e4,_0x11afb3));return _0x829c8e['finish']();}['updateDeco'](_0x4df439,_0x5ec4d8){let _0x24f9ee=0x3b9aca00,_0x23b058=-0x1;return _0x4df439['docChanged']&&_0x4df439['changes']['iterChanges']((_0x34ba5f,_0x3b060a,_0xe8f979,_0x644f05)=>{_0x644f05>=_0x4df439['view']['viewport']['from']&&_0xe8f979<=_0x4df439['view']['viewport']['to']&&(_0x24f9ee=Math['min'](_0xe8f979,_0x24f9ee),_0x23b058=Math['max'](_0x644f05,_0x23b058));}),_0x4df439['viewportMoved']||_0x23b058-_0x24f9ee>0x3e8?this['createDeco'](_0x4df439['view']):_0x23b058>-0x1?this['updateRange'](_0x4df439['view'],_0x5ec4d8['map'](_0x4df439['changes']),_0x24f9ee,_0x23b058):_0x5ec4d8;}['updateRange'](_0x281b08,_0x488285,_0x496f97,_0x3478ef){for(let _0x31be8b of _0x281b08['visibleRanges']){let _0x16afcd=Math['max'](_0x31be8b['from'],_0x496f97),_0x499ca8=Math['min'](_0x31be8b['to'],_0x3478ef);if(_0x499ca8>=_0x16afcd){let _0x58db8b=_0x281b08['state']['doc']['lineAt'](_0x16afcd),_0xb78c7f=_0x58db8b['to']<_0x499ca8?_0x281b08['state']['doc']['lineAt'](_0x499ca8):_0x58db8b,_0x5fd4a8=Math['max'](_0x31be8b['from'],_0x58db8b['from']),_0x2935fc=Math['min'](_0x31be8b['to'],_0xb78c7f['to']);if(this['boundary']){for(;_0x16afcd>_0x58db8b['from'];_0x16afcd--)if(this['boundary']['test'](_0x58db8b['text'][_0x16afcd-0x1-_0x58db8b['from']])){_0x5fd4a8=_0x16afcd;break;}for(;_0x499ca8<_0xb78c7f['to'];_0x499ca8++)if(this['boundary']['test'](_0xb78c7f['text'][_0x499ca8-_0xb78c7f['from']])){_0x2935fc=_0x499ca8;break;}}let _0x3b975b,_0x16e166=[],_0x2fb003=(_0x5715d9,_0x5ba5f4,_0x151609)=>_0x16e166['push'](_0x151609['range'](_0x5715d9,_0x5ba5f4));if(_0x58db8b==_0xb78c7f){for(this['regexp']['lastIndex']=_0x5fd4a8-_0x58db8b['from'];(_0x3b975b=this['regexp']['exec'](_0x58db8b['text']))&&_0x3b975b['index']<_0x2935fc-_0x58db8b['from'];)this['addMatch'](_0x3b975b,_0x281b08,_0x3b975b['index']+_0x58db8b['from'],_0x2fb003);}else iterMatches(_0x281b08['state']['doc'],this['regexp'],_0x5fd4a8,_0x2935fc,(_0x1aa5b6,_0x33a269)=>this['addMatch'](_0x33a269,_0x281b08,_0x1aa5b6,_0x2fb003));_0x488285=_0x488285['update']({'filterFrom':_0x5fd4a8,'filterTo':_0x2935fc,'filter':(_0x45ad82,_0x3f1a95)=>_0x45ad82<_0x5fd4a8||_0x3f1a95>_0x2935fc,'add':_0x16e166});}}return _0x488285;}}const UnicodeRegexpSupport=null!=/x/['unicode']?'gu':'g',Specials=new RegExp('[\x00-\x08\x0a-\x1f\x7f-\u009f­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff￹-￼]',UnicodeRegexpSupport),Names={0x0:'null',0x7:'bell',0x8:'backspace',0xa:'newline',0xb:'vertical\x20tab',0xd:'carriage\x20return',0x1b:'escape',0x200b:'zero\x20width\x20space',0x200c:'zero\x20width\x20non-joiner',0x200d:'zero\x20width\x20joiner',0x200e:'left-to-right\x20mark',0x200f:'right-to-left\x20mark',0x2028:'line\x20separator',0x202d:'left-to-right\x20override',0x202e:'right-to-left\x20override',0x2066:'left-to-right\x20isolate',0x2067:'right-to-left\x20isolate',0x2069:'pop\x20directional\x20isolate',0x2029:'paragraph\x20separator',0xfeff:'zero\x20width\x20no-break\x20space',0xfffc:'object\x20replacement'};let _supportsTabSize=null;function supportsTabSize(){var _0x3c7ad5;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0x35ff04=document['body']['style'];_supportsTabSize=null!=(null!==(_0x3c7ad5=_0x35ff04['tabSize'])&&void 0x0!==_0x3c7ad5?_0x3c7ad5:_0x35ff04['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x1409c8){let _0x387777=combineConfig(_0x1409c8,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0x387777['replaceTabs']=!supportsTabSize())&&(_0x387777['specialChars']=new RegExp('\x09|'+_0x387777['specialChars']['source'],UnicodeRegexpSupport)),_0x387777['addSpecialChars']&&(_0x387777['specialChars']=new RegExp(_0x387777['specialChars']['source']+'|'+_0x387777['addSpecialChars']['source'],UnicodeRegexpSupport)),_0x387777;}});function highlightSpecialChars(_0x35adfa={}){return[specialCharConfig['of'](_0x35adfa),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x430793){this['view']=_0x430793,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x430793['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x430793);}['makeDecorator'](_0x337542){return new MatchDecorator({'regexp':_0x337542['specialChars'],'decoration':(_0x5a70c7,_0x161391,_0x4ecf0b)=>{let {doc:_0x54b25c}=_0x161391['state'],_0x57445b=codePointAt(_0x5a70c7[0x0],0x0);if(0x9==_0x57445b){let _0x450320=_0x54b25c['lineAt'](_0x4ecf0b),_0x36bc00=_0x161391['state']['tabSize'],_0x2957c8=countColumn(_0x450320['text'],_0x36bc00,_0x4ecf0b-_0x450320['from']);return Decoration['replace']({'widget':new TabWidget((_0x36bc00-_0x2957c8%_0x36bc00)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x57445b]||(this['decorationCache'][_0x57445b]=Decoration['replace']({'widget':new SpecialCharWidget(_0x337542,_0x57445b)}));},'boundary':_0x337542['replaceTabs']?void 0x0:/[^]/});}['update'](_0x4ba5e3){let _0x4581ca=_0x4ba5e3['state']['facet'](specialCharConfig);_0x4ba5e3['startState']['facet'](specialCharConfig)!=_0x4581ca?(this['decorator']=this['makeDecorator'](_0x4581ca),this['decorations']=this['decorator']['createDeco'](_0x4ba5e3['view'])):this['decorations']=this['decorator']['updateDeco'](_0x4ba5e3,this['decorations']);}},{'decorations':_0x493145=>_0x493145['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x1c5ecc){return _0x1c5ecc>=0x20?DefaultPlaceholder:0xa==_0x1c5ecc?'␤':String['fromCharCode'](0x2400+_0x1c5ecc);}class SpecialCharWidget extends WidgetType{constructor(_0x19e3e8,_0x4e5fa1){super(),this['options']=_0x19e3e8,this['code']=_0x4e5fa1;}['eq'](_0x115e96){return _0x115e96['code']==this['code'];}['toDOM'](_0x2b2b5e){let _0x316a06=placeholder$1(this['code']),_0x2a78b9=_0x2b2b5e['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0x47552c=this['options']['render']&&this['options']['render'](this['code'],_0x2a78b9,_0x316a06);if(_0x47552c)return _0x47552c;let _0xa0900d=document['createElement']('span');return _0xa0900d['textContent']=_0x316a06,_0xa0900d['title']=_0x2a78b9,_0xa0900d['setAttribute']('aria-label',_0x2a78b9),_0xa0900d['className']='cm-specialChar',_0xa0900d;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x2cbf56){super(),this['width']=_0x2cbf56;}['eq'](_0x5c9b00){return _0x5c9b00['width']==this['width'];}['toDOM'](){let _0x1b0e9a=document['createElement']('span');return _0x1b0e9a['textContent']='\x09',_0x1b0e9a['className']='cm-tab',_0x1b0e9a['style']['width']=this['width']+'px',_0x1b0e9a;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0x42a5b2){this['decorations']=this['getDeco'](_0x42a5b2);}['update'](_0x4fde22){(_0x4fde22['docChanged']||_0x4fde22['selectionSet'])&&(this['decorations']=this['getDeco'](_0x4fde22['view']));}['getDeco'](_0x5a158b){let _0x46d9da=-0x1,_0x3675b0=[];for(let _0x586e26 of _0x5a158b['state']['selection']['ranges']){let _0x2d45aa=_0x5a158b['lineBlockAt'](_0x586e26['head']);_0x2d45aa['from']>_0x46d9da&&(_0x3675b0['push'](lineDeco['range'](_0x2d45aa['from'])),_0x46d9da=_0x2d45aa['from']);}return Decoration['set'](_0x3675b0);}},{'decorations':_0xc7697d=>_0xc7697d['decorations']}),MaxOff=0x7d0;function rectangleFor(_0x2434ce,_0x2f98ef,_0x54f211){let _0x5f1d11=Math['min'](_0x2f98ef['line'],_0x54f211['line']),_0x341831=Math['max'](_0x2f98ef['line'],_0x54f211['line']),_0x4e995d=[];if(_0x2f98ef['off']>MaxOff||_0x54f211['off']>MaxOff||_0x2f98ef['col']<0x0||_0x54f211['col']<0x0){let _0x24b7d6=Math['min'](_0x2f98ef['off'],_0x54f211['off']),_0xb4464a=Math['max'](_0x2f98ef['off'],_0x54f211['off']);for(let _0x6fbb6f=_0x5f1d11;_0x6fbb6f<=_0x341831;_0x6fbb6f++){let _0x2d8d1f=_0x2434ce['doc']['line'](_0x6fbb6f);_0x2d8d1f['length']<=_0xb4464a&&_0x4e995d['push'](EditorSelection['range'](_0x2d8d1f['from']+_0x24b7d6,_0x2d8d1f['to']+_0xb4464a));}}else{let _0x1052c4=Math['min'](_0x2f98ef['col'],_0x54f211['col']),_0x36257b=Math['max'](_0x2f98ef['col'],_0x54f211['col']);for(let _0x18bc3b=_0x5f1d11;_0x18bc3b<=_0x341831;_0x18bc3b++){let _0x9aca8d=_0x2434ce['doc']['line'](_0x18bc3b),_0x357af7=findColumn(_0x9aca8d['text'],_0x1052c4,_0x2434ce['tabSize'],!0x0);if(_0x357af7<0x0)_0x4e995d['push'](EditorSelection['cursor'](_0x9aca8d['to']));else{let _0x1304d8=findColumn(_0x9aca8d['text'],_0x36257b,_0x2434ce['tabSize']);_0x4e995d['push'](EditorSelection['range'](_0x9aca8d['from']+_0x357af7,_0x9aca8d['from']+_0x1304d8));}}}return _0x4e995d;}function absoluteColumn(_0x5b6910,_0x1abe61){let _0x57ff21=_0x5b6910['coordsAtPos'](_0x5b6910['viewport']['from']);return _0x57ff21?Math['round'](Math['abs']((_0x57ff21['left']-_0x1abe61)/_0x5b6910['defaultCharacterWidth'])):-0x1;}function getPos(_0x2215da,_0x21eb31){let _0x2e61e2=_0x2215da['posAtCoords']({'x':_0x21eb31['clientX'],'y':_0x21eb31['clientY']},!0x1),_0x57fbf6=_0x2215da['state']['doc']['lineAt'](_0x2e61e2),_0x1264a3=_0x2e61e2-_0x57fbf6['from'],_0x324b33=_0x1264a3>MaxOff?-0x1:_0x1264a3==_0x57fbf6['length']?absoluteColumn(_0x2215da,_0x21eb31['clientX']):countColumn(_0x57fbf6['text'],_0x2215da['state']['tabSize'],_0x2e61e2-_0x57fbf6['from']);return{'line':_0x57fbf6['number'],'col':_0x324b33,'off':_0x1264a3};}function rectangleSelectionStyle(_0xd3304b,_0x150470){let _0x5102f2=getPos(_0xd3304b,_0x150470),_0x2162ed=_0xd3304b['state']['selection'];return _0x5102f2?{'update'(_0x1e1753){if(_0x1e1753['docChanged']){let _0x5dd607=_0x1e1753['changes']['mapPos'](_0x1e1753['startState']['doc']['line'](_0x5102f2['line'])['from']),_0x198a3d=_0x1e1753['state']['doc']['lineAt'](_0x5dd607);_0x5102f2={'line':_0x198a3d['number'],'col':_0x5102f2['col'],'off':Math['min'](_0x5102f2['off'],_0x198a3d['length'])},_0x2162ed=_0x2162ed['map'](_0x1e1753['changes']);}},'get'(_0x2d4cd3,_0x441c15,_0x54fb6b){let _0x2b5f61=getPos(_0xd3304b,_0x2d4cd3);if(!_0x2b5f61)return _0x2162ed;let _0x272e3f=rectangleFor(_0xd3304b['state'],_0x5102f2,_0x2b5f61);return _0x272e3f['length']?_0x54fb6b?EditorSelection['create'](_0x272e3f['concat'](_0x2162ed['ranges'])):EditorSelection['create'](_0x272e3f):_0x2162ed;}}:null;}function rectangularSelection(_0xffd25d){return EditorView['mouseSelectionStyle']['of']((_0x23d9a0,_0x2a85f3)=>{return(_0x21a43b=_0x2a85f3)['altKey']&&0x0==_0x21a43b['button']?rectangleSelectionStyle(_0x23d9a0,_0x2a85f3):null;var _0x21a43b;});}const keys={'Alt':[0x12,_0x4c38d0=>!!_0x4c38d0['altKey']],'Control':[0x11,_0x13d61b=>!!_0x13d61b['ctrlKey']],'Shift':[0x10,_0x5b021f=>!!_0x5b021f['shiftKey']],'Meta':[0x5b,_0x5f3d14=>!!_0x5f3d14['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0xf76d0a={}){let [_0x3850f6,_0x2431f1]=keys[_0xf76d0a['key']||'Alt'],_0x4f0789=ViewPlugin['fromClass'](class{constructor(_0x2492ec){this['view']=_0x2492ec,this['isDown']=!0x1;}['set'](_0x24004b){this['isDown']!=_0x24004b&&(this['isDown']=_0x24004b,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x295bda){this['set'](_0x295bda['keyCode']==_0x3850f6||_0x2431f1(_0x295bda));},'keyup'(_0x36e454){_0x36e454['keyCode']!=_0x3850f6&&_0x2431f1(_0x36e454)||this['set'](!0x1);},'mousemove'(_0x554ac6){this['set'](_0x2431f1(_0x554ac6));}}});return[_0x4f0789,EditorView['contentAttributes']['of'](_0x35fff3=>{var _0x4f0fab;return(null===(_0x4f0fab=_0x35fff3['plugin'](_0x4f0789))||void 0x0===_0x4f0fab?void 0x0:_0x4f0fab['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x22f2e4,_0x56b4bb,_0x15309a,_0x5e18c6){this['facet']=_0x56b4bb,this['createTooltipView']=_0x15309a,this['removeTooltipView']=_0x5e18c6,this['input']=_0x22f2e4['state']['facet'](_0x56b4bb),this['tooltips']=this['input']['filter'](t=>t);let _0x2f0b43=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x2f0b43=_0x15309a(t,_0x2f0b43));}['update'](_0x4f0de2,_0x21d376){var _0x5f31a5;let _0x3fec22=_0x4f0de2['state']['facet'](this['facet']),_0x291de6=_0x3fec22['filter'](_0x48c45f=>_0x48c45f);if(_0x3fec22===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x4f0de2);return!0x1;}let _0x2f7725=[],_0x3ff512=_0x21d376?[]:null;for(let _0x4a632c=0x0;_0x4a632c<_0x291de6['length'];_0x4a632c++){let _0x2e355f=_0x291de6[_0x4a632c],_0x5bd7d9=-0x1;if(_0x2e355f){for(let _0xb7252b=0x0;_0xb7252b<this['tooltips']['length'];_0xb7252b++){let _0x2c3e6d=this['tooltips'][_0xb7252b];_0x2c3e6d&&_0x2c3e6d['create']==_0x2e355f['create']&&(_0x5bd7d9=_0xb7252b);}if(_0x5bd7d9<0x0)_0x2f7725[_0x4a632c]=this['createTooltipView'](_0x2e355f,_0x4a632c?_0x2f7725[_0x4a632c-0x1]:null),_0x3ff512&&(_0x3ff512[_0x4a632c]=!!_0x2e355f['above']);else{let _0x310fde=_0x2f7725[_0x4a632c]=this['tooltipViews'][_0x5bd7d9];_0x3ff512&&(_0x3ff512[_0x4a632c]=_0x21d376[_0x5bd7d9]),_0x310fde['update']&&_0x310fde['update'](_0x4f0de2);}}}for(let t of this['tooltipViews'])_0x2f7725['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0x5f31a5=t['destroy'])||void 0x0===_0x5f31a5||_0x5f31a5['call'](t));return _0x21d376&&(_0x3ff512['forEach']((_0x3afb9e,_0x400ee9)=>_0x21d376[_0x400ee9]=_0x3afb9e),_0x21d376['length']=_0x3ff512['length']),this['input']=_0x3fec22,this['tooltips']=_0x291de6,this['tooltipViews']=_0x2f7725,!0x0;}}function windowSpace(_0x56c5ce){let _0x1a993f=_0x56c5ce['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x1a993f['clientHeight'],'right':_0x1a993f['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x3e9ccc=>{var _0x292fe7,_0x5676ab,_0x33b112;return{'position':browser['ios']?'absolute':(null===(_0x292fe7=_0x3e9ccc['find'](_0x5b4970=>_0x5b4970['position']))||void 0x0===_0x292fe7?void 0x0:_0x292fe7['position'])||'fixed','parent':(null===(_0x5676ab=_0x3e9ccc['find'](_0x20d21d=>_0x20d21d['parent']))||void 0x0===_0x5676ab?void 0x0:_0x5676ab['parent'])||null,'tooltipSpace':(null===(_0x33b112=_0x3e9ccc['find'](_0x19b25f=>_0x19b25f['tooltipSpace']))||void 0x0===_0x33b112?void 0x0:_0x33b112['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x495245){this['view']=_0x495245,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x12214c=_0x495245['state']['facet'](tooltipConfig);this['position']=_0x12214c['position'],this['parent']=_0x12214c['parent'],this['classes']=_0x495245['themeClasses'],this['createContainer'](),this['measureReq']={'read':this['readMeasure']['bind'](this),'write':this['writeMeasure']['bind'](this),'key':this},this['resizeObserver']='function'==typeof ResizeObserver?new ResizeObserver(()=>this['measureSoon']()):null,this['manager']=new TooltipViewManager(_0x495245,showTooltip,(t,_0x51eea9)=>this['createTooltip'](t,_0x51eea9),t=>{this['resizeObserver']&&this['resizeObserver']['unobserve'](t['dom']),t['dom']['remove']();}),this['above']=this['manager']['tooltips']['map'](t=>!!t['above']),this['intersectionObserver']='function'==typeof IntersectionObserver?new IntersectionObserver(_0x3d8e71=>{Date['now']()>this['lastTransaction']-0x32&&_0x3d8e71['length']>0x0&&_0x3d8e71[_0x3d8e71['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x495245['win']['addEventListener']('resize',this['measureSoon']=this['measureSoon']['bind'](this)),this['maybeMeasure']();}['createContainer'](){this['parent']?(this['container']=document['createElement']('div'),this['container']['style']['position']='relative',this['container']['className']=this['view']['themeClasses'],this['parent']['appendChild'](this['container'])):this['container']=this['view']['dom'];}['observeIntersection'](){if(this['intersectionObserver']){this['intersectionObserver']['disconnect']();for(let _0x55bc87 of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x55bc87['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x24932e){_0x24932e['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x15722a=this['manager']['update'](_0x24932e,this['above']);_0x15722a&&this['observeIntersection']();let _0x3bd6bf=_0x15722a||_0x24932e['geometryChanged'],_0x20a1ca=_0x24932e['state']['facet'](tooltipConfig);if(_0x20a1ca['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0x20a1ca['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x3bd6bf=!0x0;}if(_0x20a1ca['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0x20a1ca['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x3bd6bf=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x3bd6bf&&this['maybeMeasure']();}['createTooltip'](_0x2f3805,_0x30ea89){let _0xced0eb=_0x2f3805['create'](this['view']),_0x13b3bd=_0x30ea89?_0x30ea89['dom']:null;if(_0xced0eb['dom']['classList']['add']('cm-tooltip'),_0x2f3805['arrow']&&!_0xced0eb['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x2e010a=document['createElement']('div');_0x2e010a['className']='cm-tooltip-arrow',_0xced0eb['dom']['appendChild'](_0x2e010a);}return _0xced0eb['dom']['style']['position']=this['position'],_0xced0eb['dom']['style']['top']=Outside,_0xced0eb['dom']['style']['left']='0px',this['container']['insertBefore'](_0xced0eb['dom'],_0x13b3bd),_0xced0eb['mount']&&_0xced0eb['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0xced0eb['dom']),_0xced0eb;}['destroy'](){var _0x3eb4c2,_0x4e1f7c,_0x5a0a5c;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x1f561a of this['manager']['tooltipViews'])_0x1f561a['dom']['remove'](),null===(_0x3eb4c2=_0x1f561a['destroy'])||void 0x0===_0x3eb4c2||_0x3eb4c2['call'](_0x1f561a);this['parent']&&this['container']['remove'](),null===(_0x4e1f7c=this['resizeObserver'])||void 0x0===_0x4e1f7c||_0x4e1f7c['disconnect'](),null===(_0x5a0a5c=this['intersectionObserver'])||void 0x0===_0x5a0a5c||_0x5a0a5c['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x3ace90=0x1,_0x1c9fd2=0x1,_0x5214fa=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x206da8}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x5214fa=_0x206da8['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x206da8['style']['top']==Outside&&'0px'==_0x206da8['style']['left']){let _0x536b04=_0x206da8['getBoundingClientRect']();_0x5214fa=Math['abs'](_0x536b04['top']+0x2710)>0x1||Math['abs'](_0x536b04['left'])>0x1;}}}if(_0x5214fa||'absolute'==this['position']){if(this['parent']){let _0x522b7d=this['parent']['getBoundingClientRect']();_0x522b7d['width']&&_0x522b7d['height']&&(_0x3ace90=_0x522b7d['width']/this['parent']['offsetWidth'],_0x1c9fd2=_0x522b7d['height']/this['parent']['offsetHeight']);}else({scaleX:_0x3ace90,scaleY:_0x1c9fd2}=this['view']['viewState']);}let _0x44be6e=this['view']['scrollDOM']['getBoundingClientRect'](),_0x207790=getScrollMargins(this['view']);return{'visible':{'left':_0x44be6e['left']+_0x207790['left'],'top':_0x44be6e['top']+_0x207790['top'],'right':_0x44be6e['right']-_0x207790['right'],'bottom':_0x44be6e['bottom']-_0x207790['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x47b51a)=>{let _0x3eb9de=this['manager']['tooltipViews'][_0x47b51a];return _0x3eb9de['getCoords']?_0x3eb9de['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x24a387})=>_0x24a387['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x3ace90,'scaleY':_0x1c9fd2,'makeAbsolute':_0x5214fa};}['writeMeasure'](_0x497015){var _0x38b4ca;if(_0x497015['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x4fecf8,space:_0xe6afbc,scaleX:_0x44b185,scaleY:_0x2ec8c0}=_0x497015,_0x254838=[];for(let _0x22cd19=0x0;_0x22cd19<this['manager']['tooltips']['length'];_0x22cd19++){let _0x494fe8=this['manager']['tooltips'][_0x22cd19],_0x1d258b=this['manager']['tooltipViews'][_0x22cd19],{dom:_0x17ec0c}=_0x1d258b,_0x18eef9=_0x497015['pos'][_0x22cd19],_0x345a57=_0x497015['size'][_0x22cd19];if(!_0x18eef9||!0x1!==_0x494fe8['clip']&&(_0x18eef9['bottom']<=Math['max'](_0x4fecf8['top'],_0xe6afbc['top'])||_0x18eef9['top']>=Math['min'](_0x4fecf8['bottom'],_0xe6afbc['bottom'])||_0x18eef9['right']<Math['max'](_0x4fecf8['left'],_0xe6afbc['left'])-0.1||_0x18eef9['left']>Math['min'](_0x4fecf8['right'],_0xe6afbc['right'])+0.1)){_0x17ec0c['style']['top']=Outside;continue;}let _0x442162=_0x494fe8['arrow']?_0x1d258b['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x400e23=_0x442162?0x7:0x0,_0x2d3e32=_0x345a57['right']-_0x345a57['left'],_0x4c0da2=null!==(_0x38b4ca=knownHeight['get'](_0x1d258b))&&void 0x0!==_0x38b4ca?_0x38b4ca:_0x345a57['bottom']-_0x345a57['top'],_0x1d3b8a=_0x1d258b['offset']||noOffset,_0x2a492a=this['view']['textDirection']==Direction['LTR'],_0x2179da=_0x345a57['width']>_0xe6afbc['right']-_0xe6afbc['left']?_0x2a492a?_0xe6afbc['left']:_0xe6afbc['right']-_0x345a57['width']:_0x2a492a?Math['max'](_0xe6afbc['left'],Math['min'](_0x18eef9['left']-(_0x442162?0xe:0x0)+_0x1d3b8a['x'],_0xe6afbc['right']-_0x2d3e32)):Math['min'](Math['max'](_0xe6afbc['left'],_0x18eef9['left']-_0x2d3e32+(_0x442162?0xe:0x0)-_0x1d3b8a['x']),_0xe6afbc['right']-_0x2d3e32),_0x57fdb9=this['above'][_0x22cd19];!_0x494fe8['strictSide']&&(_0x57fdb9?_0x18eef9['top']-_0x4c0da2-_0x400e23-_0x1d3b8a['y']<_0xe6afbc['top']:_0x18eef9['bottom']+_0x4c0da2+_0x400e23+_0x1d3b8a['y']>_0xe6afbc['bottom'])&&_0x57fdb9==_0xe6afbc['bottom']-_0x18eef9['bottom']>_0x18eef9['top']-_0xe6afbc['top']&&(_0x57fdb9=this['above'][_0x22cd19]=!_0x57fdb9);let _0x57342f=(_0x57fdb9?_0x18eef9['top']-_0xe6afbc['top']:_0xe6afbc['bottom']-_0x18eef9['bottom'])-_0x400e23;if(_0x57342f<_0x4c0da2&&!0x1!==_0x1d258b['resize']){if(_0x57342f<this['view']['defaultLineHeight']){_0x17ec0c['style']['top']=Outside;continue;}knownHeight['set'](_0x1d258b,_0x4c0da2),_0x17ec0c['style']['height']=(_0x4c0da2=_0x57342f)/_0x2ec8c0+'px';}else _0x17ec0c['style']['height']&&(_0x17ec0c['style']['height']='');let _0x4e7b28=_0x57fdb9?_0x18eef9['top']-_0x4c0da2-_0x400e23-_0x1d3b8a['y']:_0x18eef9['bottom']+_0x400e23+_0x1d3b8a['y'],_0x1435b0=_0x2179da+_0x2d3e32;if(!0x0!==_0x1d258b['overlap']){for(let _0x9f7405 of _0x254838)_0x9f7405['left']<_0x1435b0&&_0x9f7405['right']>_0x2179da&&_0x9f7405['top']<_0x4e7b28+_0x4c0da2&&_0x9f7405['bottom']>_0x4e7b28&&(_0x4e7b28=_0x57fdb9?_0x9f7405['top']-_0x4c0da2-0x2-_0x400e23:_0x9f7405['bottom']+_0x400e23+0x2);}if('absolute'==this['position']?(_0x17ec0c['style']['top']=(_0x4e7b28-_0x497015['parent']['top'])/_0x2ec8c0+'px',setLeftStyle(_0x17ec0c,(_0x2179da-_0x497015['parent']['left'])/_0x44b185)):(_0x17ec0c['style']['top']=_0x4e7b28/_0x2ec8c0+'px',setLeftStyle(_0x17ec0c,_0x2179da/_0x44b185)),_0x442162){let _0x1a9f92=_0x18eef9['left']+(_0x2a492a?_0x1d3b8a['x']:-_0x1d3b8a['x'])-(_0x2179da+0xe-0x7);_0x442162['style']['left']=_0x1a9f92/_0x44b185+'px';}!0x0!==_0x1d258b['overlap']&&_0x254838['push']({'left':_0x2179da,'top':_0x4e7b28,'right':_0x1435b0,'bottom':_0x4e7b28+_0x4c0da2}),_0x17ec0c['classList']['toggle']('cm-tooltip-above',_0x57fdb9),_0x17ec0c['classList']['toggle']('cm-tooltip-below',!_0x57fdb9),_0x1d258b['positioned']&&_0x1d258b['positioned'](_0x497015['space']);}}['maybeMeasure'](){if(this['manager']['tooltips']['length']&&(this['view']['inView']&&this['view']['requestMeasure'](this['measureReq']),this['inView']!=this['view']['inView']&&(this['inView']=this['view']['inView'],!this['inView']))){for(let _0x29024a of this['manager']['tooltipViews'])_0x29024a['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0xb84c4c,_0x4c5eee){let _0x4642a3=parseInt(_0xb84c4c['style']['left'],0xa);(isNaN(_0x4642a3)||Math['abs'](_0x4c5eee-_0x4642a3)>0x1)&&(_0xb84c4c['style']['left']=_0x4c5eee+'px');}const baseTheme$3=EditorView['baseTheme']({'.cm-tooltip':{'zIndex':0x1f4,'boxSizing':'border-box'},'&light\x20.cm-tooltip':{'border':'1px\x20solid\x20#bbb','backgroundColor':'#f5f5f5'},'&light\x20.cm-tooltip-section:not(:first-child)':{'borderTop':'1px\x20solid\x20#bbb'},'&dark\x20.cm-tooltip':{'backgroundColor':'#333338','color':'white'},'.cm-tooltip-arrow':{'height':'7px','width':'14px','position':'absolute','zIndex':-0x1,'overflow':'hidden','&:before,\x20&:after':{'content':'\x27\x27','position':'absolute','width':0x0,'height':0x0,'borderLeft':'7px\x20solid\x20transparent','borderRight':'7px\x20solid\x20transparent'},'.cm-tooltip-above\x20&':{'bottom':'-7px','&:before':{'borderTop':'7px\x20solid\x20#bbb'},'&:after':{'borderTop':'7px\x20solid\x20#f5f5f5','bottom':'1px'}},'.cm-tooltip-below\x20&':{'top':'-7px','&:before':{'borderBottom':'7px\x20solid\x20#bbb'},'&:after':{'borderBottom':'7px\x20solid\x20#f5f5f5','top':'1px'}}},'&dark\x20.cm-tooltip\x20.cm-tooltip-arrow':{'&:before':{'borderTopColor':'#333338','borderBottomColor':'#333338'},'&:after':{'borderTopColor':'transparent','borderBottomColor':'transparent'}}}),noOffset={'x':0x0,'y':0x0},showTooltip=Facet['define']({'enables':[tooltipPlugin,baseTheme$3]});function getTooltip(_0x267afb,_0x4a5a4f){let _0x4e0378=_0x267afb['plugin'](tooltipPlugin);if(!_0x4e0378)return null;let _0x161581=_0x4e0378['manager']['tooltips']['indexOf'](_0x4a5a4f);return _0x161581<0x0?null:_0x4e0378['manager']['tooltipViews'][_0x161581];}class GutterMarker extends RangeValue{['compare'](_0x5b8098){return this==_0x5b8098||this['constructor']==_0x5b8098['constructor']&&this['eq'](_0x5b8098);}['eq'](_0x4f17b1){return!0x1;}['destroy'](_0x547c5c){}}GutterMarker['prototype']['elementClass']='',GutterMarker['prototype']['toDOM']=void 0x0,GutterMarker['prototype']['mapMode']=MapMode['TrackBefore'],GutterMarker['prototype']['startSide']=GutterMarker['prototype']['endSide']=-0x1,GutterMarker['prototype']['point']=!0x0;const gutterLineClass=Facet['define'](),gutterWidgetClass=Facet['define'](),defaults$1={'class':'','renderEmptyElements':!0x1,'elementStyle':'','markers':()=>RangeSet['empty'],'lineMarker':()=>null,'widgetMarker':()=>null,'lineMarkerChange':null,'initialSpacer':null,'updateSpacer':null,'domEventHandlers':{},'side':'before'},activeGutters=Facet['define']();function gutter(_0x1c2143){return[gutters(),activeGutters['of']({...defaults$1,..._0x1c2143})];}const unfixGutters=Facet['define']({'combine':_0x2c0a79=>_0x2c0a79['some'](_0x6bb204=>_0x6bb204)});function gutters(_0x412173){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0x592f13){this['view']=_0x592f13,this['domAfter']=null,this['prevViewport']=_0x592f13['viewport'],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutters\x20cm-gutters-before',this['dom']['setAttribute']('aria-hidden','true'),this['dom']['style']['minHeight']=this['view']['contentHeight']/this['view']['scaleY']+'px',this['gutters']=_0x592f13['state']['facet'](activeGutters)['map'](_0x1a0a5e=>new SingleGutterView(_0x592f13,_0x1a0a5e)),this['fixed']=!_0x592f13['state']['facet'](unfixGutters);for(let _0x447206 of this['gutters'])'after'==_0x447206['config']['side']?this['getDOMAfter']()['appendChild'](_0x447206['dom']):this['dom']['appendChild'](_0x447206['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0x592f13['scrollDOM']['insertBefore'](this['dom'],_0x592f13['contentDOM']);}['getDOMAfter'](){return this['domAfter']||(this['domAfter']=document['createElement']('div'),this['domAfter']['className']='cm-gutters\x20cm-gutters-after',this['domAfter']['setAttribute']('aria-hidden','true'),this['domAfter']['style']['minHeight']=this['view']['contentHeight']/this['view']['scaleY']+'px',this['domAfter']['style']['position']=this['fixed']?'sticky':'',this['view']['scrollDOM']['appendChild'](this['domAfter'])),this['domAfter'];}['update'](_0x429d1a){if(this['updateGutters'](_0x429d1a)){let _0x4ea65c=this['prevViewport'],_0xa12216=_0x429d1a['view']['viewport'],_0x270659=Math['min'](_0x4ea65c['to'],_0xa12216['to'])-Math['max'](_0x4ea65c['from'],_0xa12216['from']);this['syncGutters'](_0x270659<0.8*(_0xa12216['to']-_0xa12216['from']));}if(_0x429d1a['geometryChanged']){let _0xca4959=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0xca4959,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0xca4959);}this['view']['state']['facet'](unfixGutters)!=!this['fixed']&&(this['fixed']=!this['fixed'],this['dom']['style']['position']=this['fixed']?'sticky':'',this['domAfter']&&(this['domAfter']['style']['position']=this['fixed']?'sticky':'')),this['prevViewport']=_0x429d1a['view']['viewport'];}['syncGutters'](_0x32b0e){let _0x485b0b=this['dom']['nextSibling'];_0x32b0e&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x11feca=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0x1cb6bc=[],_0x1798b1=this['gutters']['map'](_0x40dc08=>new UpdateContext(_0x40dc08,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x40345f of this['view']['viewportLineBlocks'])if(_0x1cb6bc['length']&&(_0x1cb6bc=[]),Array['isArray'](_0x40345f['type'])){let _0x1e2cc6=!0x0;for(let _0x45c1b0 of _0x40345f['type'])if(_0x45c1b0['type']==BlockType['Text']&&_0x1e2cc6){advanceCursor(_0x11feca,_0x1cb6bc,_0x45c1b0['from']);for(let _0x45f4b9 of _0x1798b1)_0x45f4b9['line'](this['view'],_0x45c1b0,_0x1cb6bc);_0x1e2cc6=!0x1;}else{if(_0x45c1b0['widget']){for(let _0x9d8e3d of _0x1798b1)_0x9d8e3d['widget'](this['view'],_0x45c1b0);}}}else{if(_0x40345f['type']==BlockType['Text']){advanceCursor(_0x11feca,_0x1cb6bc,_0x40345f['from']);for(let _0x4a41c7 of _0x1798b1)_0x4a41c7['line'](this['view'],_0x40345f,_0x1cb6bc);}else{if(_0x40345f['widget']){for(let _0x3bc873 of _0x1798b1)_0x3bc873['widget'](this['view'],_0x40345f);}}}for(let _0x152323 of _0x1798b1)_0x152323['finish']();_0x32b0e&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x485b0b),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x10a3da){let _0x531b3c=_0x10a3da['startState']['facet'](activeGutters),_0x2beae5=_0x10a3da['state']['facet'](activeGutters),_0x3ea150=_0x10a3da['docChanged']||_0x10a3da['heightChanged']||_0x10a3da['viewportChanged']||!RangeSet['eq'](_0x10a3da['startState']['facet'](gutterLineClass),_0x10a3da['state']['facet'](gutterLineClass),_0x10a3da['view']['viewport']['from'],_0x10a3da['view']['viewport']['to']);if(_0x531b3c==_0x2beae5){for(let _0x5349e4 of this['gutters'])_0x5349e4['update'](_0x10a3da)&&(_0x3ea150=!0x0);}else{_0x3ea150=!0x0;let _0x314c3f=[];for(let _0x8f92b1 of _0x2beae5){let _0x21b0ad=_0x531b3c['indexOf'](_0x8f92b1);_0x21b0ad<0x0?_0x314c3f['push'](new SingleGutterView(this['view'],_0x8f92b1)):(this['gutters'][_0x21b0ad]['update'](_0x10a3da),_0x314c3f['push'](this['gutters'][_0x21b0ad]));}for(let _0x12b3d6 of this['gutters'])_0x12b3d6['dom']['remove'](),_0x314c3f['indexOf'](_0x12b3d6)<0x0&&_0x12b3d6['destroy']();for(let _0x5c8625 of _0x314c3f)'after'==_0x5c8625['config']['side']?this['getDOMAfter']()['appendChild'](_0x5c8625['dom']):this['dom']['appendChild'](_0x5c8625['dom']);this['gutters']=_0x314c3f;}return _0x3ea150;}['destroy'](){for(let _0x259365 of this['gutters'])_0x259365['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x6024a5=>EditorView['scrollMargins']['of'](_0x28ca0f=>{let _0x31a34a=_0x28ca0f['plugin'](_0x6024a5);if(!_0x31a34a||0x0==_0x31a34a['gutters']['length']||!_0x31a34a['fixed'])return null;let _0x44f637=_0x31a34a['dom']['offsetWidth']*_0x28ca0f['scaleX'],_0x9f79fe=_0x31a34a['domAfter']?_0x31a34a['domAfter']['offsetWidth']*_0x28ca0f['scaleX']:0x0;return _0x28ca0f['textDirection']==Direction['LTR']?{'left':_0x44f637,'right':_0x9f79fe}:{'right':_0x44f637,'left':_0x9f79fe};})});function asArray(_0x239c1c){return Array['isArray'](_0x239c1c)?_0x239c1c:[_0x239c1c];}function advanceCursor(_0x2932fd,_0x1342a0,_0x3959d5){for(;_0x2932fd['value']&&_0x2932fd['from']<=_0x3959d5;)_0x2932fd['from']==_0x3959d5&&_0x1342a0['push'](_0x2932fd['value']),_0x2932fd['next']();}class UpdateContext{constructor(_0x96ceb4,_0x2e77b5,_0x27467f){this['gutter']=_0x96ceb4,this['height']=_0x27467f,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x96ceb4['markers'],_0x2e77b5['from']);}['addElement'](_0x5ace70,_0x4f6701,_0x3ebe43){let {gutter:_0x125097}=this,_0x5d6926=(_0x4f6701['top']-this['height'])/_0x5ace70['scaleY'],_0x3d7ce2=_0x4f6701['height']/_0x5ace70['scaleY'];if(this['i']==_0x125097['elements']['length']){let _0x4f72c0=new GutterElement(_0x5ace70,_0x3d7ce2,_0x5d6926,_0x3ebe43);_0x125097['elements']['push'](_0x4f72c0),_0x125097['dom']['appendChild'](_0x4f72c0['dom']);}else _0x125097['elements'][this['i']]['update'](_0x5ace70,_0x3d7ce2,_0x5d6926,_0x3ebe43);this['height']=_0x4f6701['bottom'],this['i']++;}['line'](_0x13207f,_0x40bf49,_0x35b189){let _0x55e759=[];advanceCursor(this['cursor'],_0x55e759,_0x40bf49['from']),_0x35b189['length']&&(_0x55e759=_0x55e759['concat'](_0x35b189));let _0x47aba2=this['gutter']['config']['lineMarker'](_0x13207f,_0x40bf49,_0x55e759);_0x47aba2&&_0x55e759['unshift'](_0x47aba2);let _0x33220f=this['gutter'];(0x0!=_0x55e759['length']||_0x33220f['config']['renderEmptyElements'])&&this['addElement'](_0x13207f,_0x40bf49,_0x55e759);}['widget'](_0x17aeda,_0x230b6c){let _0x5b8a93=this['gutter']['config']['widgetMarker'](_0x17aeda,_0x230b6c['widget'],_0x230b6c),_0xcf2dba=_0x5b8a93?[_0x5b8a93]:null;for(let _0x5d38bf of _0x17aeda['state']['facet'](gutterWidgetClass)){let _0x127bfc=_0x5d38bf(_0x17aeda,_0x230b6c['widget'],_0x230b6c);_0x127bfc&&(_0xcf2dba||(_0xcf2dba=[]))['push'](_0x127bfc);}_0xcf2dba&&this['addElement'](_0x17aeda,_0x230b6c,_0xcf2dba);}['finish'](){let _0x403908=this['gutter'];for(;_0x403908['elements']['length']>this['i'];){let _0x216d69=_0x403908['elements']['pop']();_0x403908['dom']['removeChild'](_0x216d69['dom']),_0x216d69['destroy']();}}}class SingleGutterView{constructor(_0xeb1b5,_0x58cd7c){this['view']=_0xeb1b5,this['config']=_0x58cd7c,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x10f270 in _0x58cd7c['domEventHandlers'])this['dom']['addEventListener'](_0x10f270,_0x35f9eb=>{let _0x3ae026,_0x38f518=_0x35f9eb['target'];if(_0x38f518!=this['dom']&&this['dom']['contains'](_0x38f518)){for(;_0x38f518['parentNode']!=this['dom'];)_0x38f518=_0x38f518['parentNode'];let _0xdc6957=_0x38f518['getBoundingClientRect']();_0x3ae026=(_0xdc6957['top']+_0xdc6957['bottom'])/0x2;}else _0x3ae026=_0x35f9eb['clientY'];let _0x525a1b=_0xeb1b5['lineBlockAtHeight'](_0x3ae026-_0xeb1b5['documentTop']);_0x58cd7c['domEventHandlers'][_0x10f270](_0xeb1b5,_0x525a1b,_0x35f9eb)&&_0x35f9eb['preventDefault']();});this['markers']=asArray(_0x58cd7c['markers'](_0xeb1b5)),_0x58cd7c['initialSpacer']&&(this['spacer']=new GutterElement(_0xeb1b5,0x0,0x0,[_0x58cd7c['initialSpacer'](_0xeb1b5)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x4bdc84){let _0x3a2e04=this['markers'];if(this['markers']=asArray(this['config']['markers'](_0x4bdc84['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x205c10=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x4bdc84);_0x205c10!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x4bdc84['view'],0x0,0x0,[_0x205c10]);}let _0x4b986b=_0x4bdc84['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x3a2e04,_0x4b986b['from'],_0x4b986b['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x4bdc84);}['destroy'](){for(let _0x7bd0d8 of this['elements'])_0x7bd0d8['destroy']();}}class GutterElement{constructor(_0x4cb8ee,_0x217f52,_0x4a7e9a,_0x10e40e){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x4cb8ee,_0x217f52,_0x4a7e9a,_0x10e40e);}['update'](_0x1cb08e,_0x32f2bd,_0x54624b,_0x3e24b9){this['height']!=_0x32f2bd&&(this['height']=_0x32f2bd,this['dom']['style']['height']=_0x32f2bd+'px'),this['above']!=_0x54624b&&(this['dom']['style']['marginTop']=(this['above']=_0x54624b)?_0x54624b+'px':''),sameMarkers(this['markers'],_0x3e24b9)||this['setMarkers'](_0x1cb08e,_0x3e24b9);}['setMarkers'](_0x1623b7,_0x48c5a1){let _0x33083c='cm-gutterElement',_0x4e8089=this['dom']['firstChild'];for(let _0x34802f=0x0,_0x3c4f55=0x0;;){let _0x4e9fae=_0x3c4f55,_0x683ca1=_0x34802f<_0x48c5a1['length']?_0x48c5a1[_0x34802f++]:null,_0x139cc4=!0x1;if(_0x683ca1){let _0x314718=_0x683ca1['elementClass'];_0x314718&&(_0x33083c+='\x20'+_0x314718);for(let _0x230832=_0x3c4f55;_0x230832<this['markers']['length'];_0x230832++)if(this['markers'][_0x230832]['compare'](_0x683ca1)){_0x4e9fae=_0x230832,_0x139cc4=!0x0;break;}}else _0x4e9fae=this['markers']['length'];for(;_0x3c4f55<_0x4e9fae;){let _0x4dd4ed=this['markers'][_0x3c4f55++];if(_0x4dd4ed['toDOM']){_0x4dd4ed['destroy'](_0x4e8089);let _0x2e87ea=_0x4e8089['nextSibling'];_0x4e8089['remove'](),_0x4e8089=_0x2e87ea;}}if(!_0x683ca1)break;_0x683ca1['toDOM']&&(_0x139cc4?_0x4e8089=_0x4e8089['nextSibling']:this['dom']['insertBefore'](_0x683ca1['toDOM'](_0x1623b7),_0x4e8089)),_0x139cc4&&_0x3c4f55++;}this['dom']['className']=_0x33083c,this['markers']=_0x48c5a1;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x480d66,_0x3309f5){if(_0x480d66['length']!=_0x3309f5['length'])return!0x1;for(let _0x1d1c13=0x0;_0x1d1c13<_0x480d66['length'];_0x1d1c13++)if(!_0x480d66[_0x1d1c13]['compare'](_0x3309f5[_0x1d1c13]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0x48230b=>combineConfig(_0x48230b,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x145408,_0x3f143c){let _0x9a0a80=Object['assign']({},_0x145408);for(let _0x25bdb1 in _0x3f143c){let _0x32f9c5=_0x9a0a80[_0x25bdb1],_0x21e302=_0x3f143c[_0x25bdb1];_0x9a0a80[_0x25bdb1]=_0x32f9c5?(_0x236c31,_0x4bddb9,_0x3b8521)=>_0x32f9c5(_0x236c31,_0x4bddb9,_0x3b8521)||_0x21e302(_0x236c31,_0x4bddb9,_0x3b8521):_0x21e302;}return _0x9a0a80;}})});class NumberMarker extends GutterMarker{constructor(_0x5c9858){super(),this['number']=_0x5c9858;}['eq'](_0x47db65){return this['number']==_0x47db65['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0xa271e9,_0x3b894e){return _0xa271e9['state']['facet'](lineNumberConfig)['formatNumber'](_0x3b894e,_0xa271e9['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x52158a=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x19b83b=>_0x19b83b['state']['facet'](lineNumberMarkers),'lineMarker':(_0x16a320,_0x144fc8,_0x5bfe06)=>_0x5bfe06['some'](_0x3d0990=>_0x3d0990['toDOM'])?null:new NumberMarker(formatNumber(_0x16a320,_0x16a320['state']['doc']['lineAt'](_0x144fc8['from'])['number'])),'widgetMarker':(_0x47d0cf,_0x888af0,_0x2e4cb6)=>{for(let _0x11bb5b of _0x47d0cf['state']['facet'](lineNumberWidgetMarker)){let _0x2e8688=_0x11bb5b(_0x47d0cf,_0x888af0,_0x2e4cb6);if(_0x2e8688)return _0x2e8688;}return null;},'lineMarkerChange':_0x3cb112=>_0x3cb112['startState']['facet'](lineNumberConfig)!=_0x3cb112['state']['facet'](lineNumberConfig),'initialSpacer':_0x2b1354=>new NumberMarker(formatNumber(_0x2b1354,maxLineNumber(_0x2b1354['state']['doc']['lines']))),'updateSpacer'(_0x233276,_0x6830a9){let _0x410c38=formatNumber(_0x6830a9['view'],maxLineNumber(_0x6830a9['view']['state']['doc']['lines']));return _0x410c38==_0x233276['number']?_0x233276:new NumberMarker(_0x410c38);},'domEventHandlers':_0x52158a['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0x2f5e4f={}){return[lineNumberConfig['of'](_0x2f5e4f),gutters(),lineNumberGutter];}function maxLineNumber(_0x40f497){let _0xfb9066=0x9;for(;_0xfb9066<_0x40f497;)_0xfb9066=0xa*_0xfb9066+0x9;return _0xfb9066;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x25ce17=>{let _0x13bdee=[],_0x1694c1=-0x1;for(let _0x2c5022 of _0x25ce17['selection']['ranges']){let _0x18c9a6=_0x25ce17['doc']['lineAt'](_0x2c5022['head'])['from'];_0x18c9a6>_0x1694c1&&(_0x1694c1=_0x18c9a6,_0x13bdee['push'](activeLineGutterMarker['range'](_0x18c9a6)));}return RangeSet['of'](_0x13bdee);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x46a8ad,_0x30b95d){this['from']=_0x46a8ad,this['to']=_0x30b95d;}}class NodeProp{constructor(_0x94377b={}){this['id']=nextPropID++,this['perNode']=!!_0x94377b['perNode'],this['deserialize']=_0x94377b['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x94377b['combine']||null;}['add'](_0x383b11){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x383b11&&(_0x383b11=NodeType['match'](_0x383b11)),_0x9c17a8=>{let _0x56107b=_0x383b11(_0x9c17a8);return void 0x0===_0x56107b?null:[this,_0x56107b];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x134a1d=>_0x134a1d['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x2c6114=>_0x2c6114['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0x1352cd=>_0x1352cd['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x2287a3=>{if(_0x2287a3&&'rtl'!=_0x2287a3&&'ltr'!=_0x2287a3&&'auto'!=_0x2287a3)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x2287a3);return _0x2287a3||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x2101e3,_0x5c88d5,_0x376fba){this['tree']=_0x2101e3,this['overlay']=_0x5c88d5,this['parser']=_0x376fba;}static['get'](_0x6a7cb1){return _0x6a7cb1&&_0x6a7cb1['props']&&_0x6a7cb1['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x3b2a90,_0x118bf9,_0x5d1980,_0x32fe4e=0x0){this['name']=_0x3b2a90,this['props']=_0x118bf9,this['id']=_0x5d1980,this['flags']=_0x32fe4e;}static['define'](_0x189e8a){let _0x15507c=_0x189e8a['props']&&_0x189e8a['props']['length']?Object['create'](null):noProps,_0x4d9c41=(_0x189e8a['top']?0x1:0x0)|(_0x189e8a['skipped']?0x2:0x0)|(_0x189e8a['error']?0x4:0x0)|(null==_0x189e8a['name']?0x8:0x0),_0x1f4cd1=new NodeType(_0x189e8a['name']||'',_0x15507c,_0x189e8a['id'],_0x4d9c41);if(_0x189e8a['props']){for(let _0x538423 of _0x189e8a['props'])if(Array['isArray'](_0x538423)||(_0x538423=_0x538423(_0x1f4cd1)),_0x538423){if(_0x538423[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x15507c[_0x538423[0x0]['id']]=_0x538423[0x1];}}return _0x1f4cd1;}['prop'](_0x4a8d98){return this['props'][_0x4a8d98['id']];}get['isTop'](){return(0x1&this['flags'])>0x0;}get['isSkipped'](){return(0x2&this['flags'])>0x0;}get['isError'](){return(0x4&this['flags'])>0x0;}get['isAnonymous'](){return(0x8&this['flags'])>0x0;}['is'](_0x2b309a){if('string'==typeof _0x2b309a){if(this['name']==_0x2b309a)return!0x0;let _0x432339=this['prop'](NodeProp['group']);return!!_0x432339&&_0x432339['indexOf'](_0x2b309a)>-0x1;}return this['id']==_0x2b309a;}static['match'](_0x28a6fc){let _0x200389=Object['create'](null);for(let _0x1a3c28 in _0x28a6fc)for(let _0x31c80b of _0x1a3c28['split']('\x20'))_0x200389[_0x31c80b]=_0x28a6fc[_0x1a3c28];return _0x1ca732=>{for(let _0x3be659=_0x1ca732['prop'](NodeProp['group']),_0x909552=-0x1;_0x909552<(_0x3be659?_0x3be659['length']:0x0);_0x909552++){let _0x161b68=_0x200389[_0x909552<0x0?_0x1ca732['name']:_0x3be659[_0x909552]];if(_0x161b68)return _0x161b68;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x3f49d1){this['types']=_0x3f49d1;for(let _0x4e691b=0x0;_0x4e691b<_0x3f49d1['length'];_0x4e691b++)if(_0x3f49d1[_0x4e691b]['id']!=_0x4e691b)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0xfbd9ac){let _0x4cdf81=[];for(let _0x493d12 of this['types']){let _0x3b73a0=null;for(let _0x102227 of _0xfbd9ac){let _0xe03ad5=_0x102227(_0x493d12);if(_0xe03ad5){_0x3b73a0||(_0x3b73a0=Object['assign']({},_0x493d12['props']));let _0x36f135=_0xe03ad5[0x1],_0x1ef5bb=_0xe03ad5[0x0];_0x1ef5bb['combine']&&_0x1ef5bb['id']in _0x3b73a0&&(_0x36f135=_0x1ef5bb['combine'](_0x3b73a0[_0x1ef5bb['id']],_0x36f135)),_0x3b73a0[_0x1ef5bb['id']]=_0x36f135;}}_0x4cdf81['push'](_0x3b73a0?new NodeType(_0x493d12['name'],_0x3b73a0,_0x493d12['id'],_0x493d12['flags']):_0x493d12);}return new NodeSet(_0x4cdf81);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x1582f8){_0x1582f8[_0x1582f8['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x1582f8[_0x1582f8['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x1582f8[_0x1582f8['IgnoreMounts']=0x4]='IgnoreMounts',_0x1582f8[_0x1582f8['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0xe7e3f0,_0x369102,_0x5c47f1,_0xef0892,_0x24d52c){if(this['type']=_0xe7e3f0,this['children']=_0x369102,this['positions']=_0x5c47f1,this['length']=_0xef0892,this['props']=null,_0x24d52c&&_0x24d52c['length']){this['props']=Object['create'](null);for(let [_0x31e5fe,_0x31e08e]of _0x24d52c)this['props']['number'==typeof _0x31e5fe?_0x31e5fe:_0x31e5fe['id']]=_0x31e08e;}}['toString'](){let _0x35c214=MountedTree['get'](this);if(_0x35c214&&!_0x35c214['overlay'])return _0x35c214['tree']['toString']();let _0x4ce79e='';for(let _0x5de386 of this['children']){let _0x4af817=_0x5de386['toString']();_0x4af817&&(_0x4ce79e&&(_0x4ce79e+=','),_0x4ce79e+=_0x4af817);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x4ce79e['length']?'('+_0x4ce79e+')':''):_0x4ce79e;}['cursor'](_0xc2865a=0x0){return new TreeCursor(this['topNode'],_0xc2865a);}['cursorAt'](_0x1bf740,_0x414bb4=0x0,_0x36f303=0x0){let _0x1d4ed7=CachedNode['get'](this)||this['topNode'],_0x275e36=new TreeCursor(_0x1d4ed7);return _0x275e36['moveTo'](_0x1bf740,_0x414bb4),CachedNode['set'](this,_0x275e36['_tree']),_0x275e36;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0xe39a16,_0x3cc03d=0x0){let _0x563c9d=resolveNode(CachedNode['get'](this)||this['topNode'],_0xe39a16,_0x3cc03d,!0x1);return CachedNode['set'](this,_0x563c9d),_0x563c9d;}['resolveInner'](_0x2d3870,_0x21061f=0x0){let _0x3c5072=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x2d3870,_0x21061f,!0x0);return CachedInnerNode['set'](this,_0x3c5072),_0x3c5072;}['resolveStack'](_0x52fc30,_0x23bb20=0x0){return stackIterator(this,_0x52fc30,_0x23bb20);}['iterate'](_0xd79868){let {enter:_0x40c461,leave:_0x1edde9,from:_0x469de6=0x0,to:_0x5a484e=this['length']}=_0xd79868,_0x4a50c1=_0xd79868['mode']||0x0,_0x12149a=(_0x4a50c1&IterMode['IncludeAnonymous'])>0x0;for(let _0x43fb57=this['cursor'](_0x4a50c1|IterMode['IncludeAnonymous']);;){let _0x53fdaa=!0x1;if(_0x43fb57['from']<=_0x5a484e&&_0x43fb57['to']>=_0x469de6&&(!_0x12149a&&_0x43fb57['type']['isAnonymous']||!0x1!==_0x40c461(_0x43fb57))){if(_0x43fb57['firstChild']())continue;_0x53fdaa=!0x0;}for(;_0x53fdaa&&_0x1edde9&&(_0x12149a||!_0x43fb57['type']['isAnonymous'])&&_0x1edde9(_0x43fb57),!_0x43fb57['nextSibling']();){if(!_0x43fb57['parent']())return;_0x53fdaa=!0x0;}}}['prop'](_0x207599){return _0x207599['perNode']?this['props']?this['props'][_0x207599['id']]:void 0x0:this['type']['prop'](_0x207599);}get['propValues'](){let _0x53122f=[];if(this['props']){for(let _0x4664d5 in this['props'])_0x53122f['push']([+_0x4664d5,this['props'][_0x4664d5]]);}return _0x53122f;}['balance'](_0x5c1378={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x422c31,_0x4a51c2,_0x3ffbac)=>new Tree(this['type'],_0x422c31,_0x4a51c2,_0x3ffbac,this['propValues']),_0x5c1378['makeTree']||((_0x2c44d7,_0x45b0e9,_0x4bb89d)=>new Tree(NodeType['none'],_0x2c44d7,_0x45b0e9,_0x4bb89d)));}static['build'](_0x3ac953){return buildTree(_0x3ac953);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0x1a5dde,_0xc710c3){this['buffer']=_0x1a5dde,this['index']=_0xc710c3;}get['id'](){return this['buffer'][this['index']-0x4];}get['start'](){return this['buffer'][this['index']-0x3];}get['end'](){return this['buffer'][this['index']-0x2];}get['size'](){return this['buffer'][this['index']-0x1];}get['pos'](){return this['index'];}['next'](){this['index']-=0x4;}['fork'](){return new FlatBufferCursor(this['buffer'],this['index']);}}class TreeBuffer{constructor(_0x2fd84f,_0xa04d2c,_0x314035){this['buffer']=_0x2fd84f,this['length']=_0xa04d2c,this['set']=_0x314035;}get['type'](){return NodeType['none'];}['toString'](){let _0x3386bc=[];for(let _0x11c2c8=0x0;_0x11c2c8<this['buffer']['length'];)_0x3386bc['push'](this['childString'](_0x11c2c8)),_0x11c2c8=this['buffer'][_0x11c2c8+0x3];return _0x3386bc['join'](',');}['childString'](_0x1a5afa){let _0x3648b7=this['buffer'][_0x1a5afa],_0x58da11=this['buffer'][_0x1a5afa+0x3],_0x4c1e72=this['set']['types'][_0x3648b7],_0x52d5fa=_0x4c1e72['name'];if(/\W/['test'](_0x52d5fa)&&!_0x4c1e72['isError']&&(_0x52d5fa=JSON['stringify'](_0x52d5fa)),_0x58da11==(_0x1a5afa+=0x4))return _0x52d5fa;let _0x377e40=[];for(;_0x1a5afa<_0x58da11;)_0x377e40['push'](this['childString'](_0x1a5afa)),_0x1a5afa=this['buffer'][_0x1a5afa+0x3];return _0x52d5fa+'('+_0x377e40['join'](',')+')';}['findChild'](_0x39c83b,_0x175cc7,_0x5f4ada,_0x5e07ba,_0x34ba39){let {buffer:_0x40ab43}=this,_0x6f6397=-0x1;for(let _0x5631fe=_0x39c83b;_0x5631fe!=_0x175cc7&&!(checkSide(_0x34ba39,_0x5e07ba,_0x40ab43[_0x5631fe+0x1],_0x40ab43[_0x5631fe+0x2])&&(_0x6f6397=_0x5631fe,_0x5f4ada>0x0));_0x5631fe=_0x40ab43[_0x5631fe+0x3]);return _0x6f6397;}['slice'](_0x1c48e0,_0x7d56b6,_0x202520){let _0x58aac8=this['buffer'],_0x20f4a6=new Uint16Array(_0x7d56b6-_0x1c48e0),_0x2df84b=0x0;for(let _0x3e1570=_0x1c48e0,_0x21ad25=0x0;_0x3e1570<_0x7d56b6;){_0x20f4a6[_0x21ad25++]=_0x58aac8[_0x3e1570++],_0x20f4a6[_0x21ad25++]=_0x58aac8[_0x3e1570++]-_0x202520;let _0xc0e148=_0x20f4a6[_0x21ad25++]=_0x58aac8[_0x3e1570++]-_0x202520;_0x20f4a6[_0x21ad25++]=_0x58aac8[_0x3e1570++]-_0x1c48e0,_0x2df84b=Math['max'](_0x2df84b,_0xc0e148);}return new TreeBuffer(_0x20f4a6,_0x2df84b,this['set']);}}function checkSide(_0x2c87fd,_0x12ebaa,_0x2b9c61,_0x262d1f){switch(_0x2c87fd){case-0x2:return _0x2b9c61<_0x12ebaa;case-0x1:return _0x262d1f>=_0x12ebaa&&_0x2b9c61<_0x12ebaa;case 0x0:return _0x2b9c61<_0x12ebaa&&_0x262d1f>_0x12ebaa;case 0x1:return _0x2b9c61<=_0x12ebaa&&_0x262d1f>_0x12ebaa;case 0x2:return _0x262d1f>_0x12ebaa;case 0x4:return!0x0;}}function resolveNode(_0x5ef806,_0x5d2560,_0x3d5ed0,_0x37476f){for(var _0x3d97bb;_0x5ef806['from']==_0x5ef806['to']||(_0x3d5ed0<0x1?_0x5ef806['from']>=_0x5d2560:_0x5ef806['from']>_0x5d2560)||(_0x3d5ed0>-0x1?_0x5ef806['to']<=_0x5d2560:_0x5ef806['to']<_0x5d2560);){let _0x2c3876=!_0x37476f&&_0x5ef806 instanceof TreeNode&&_0x5ef806['index']<0x0?null:_0x5ef806['parent'];if(!_0x2c3876)return _0x5ef806;_0x5ef806=_0x2c3876;}let _0x2d7063=_0x37476f?0x0:IterMode['IgnoreOverlays'];if(_0x37476f){for(let _0x3b5154=_0x5ef806,_0x3682c9=_0x3b5154['parent'];_0x3682c9;_0x3b5154=_0x3682c9,_0x3682c9=_0x3b5154['parent'])_0x3b5154 instanceof TreeNode&&_0x3b5154['index']<0x0&&(null===(_0x3d97bb=_0x3682c9['enter'](_0x5d2560,_0x3d5ed0,_0x2d7063))||void 0x0===_0x3d97bb?void 0x0:_0x3d97bb['from'])!=_0x3b5154['from']&&(_0x5ef806=_0x3682c9);}for(;;){let _0x39ecb6=_0x5ef806['enter'](_0x5d2560,_0x3d5ed0,_0x2d7063);if(!_0x39ecb6)return _0x5ef806;_0x5ef806=_0x39ecb6;}}class BaseNode{['cursor'](_0x3523d0=0x0){return new TreeCursor(this,_0x3523d0);}['getChild'](_0x5bcc0b,_0x5c8bf6=null,_0xc38c20=null){let _0x54b709=getChildren(this,_0x5bcc0b,_0x5c8bf6,_0xc38c20);return _0x54b709['length']?_0x54b709[0x0]:null;}['getChildren'](_0x3b70ce,_0x7fde8f=null,_0x56a128=null){return getChildren(this,_0x3b70ce,_0x7fde8f,_0x56a128);}['resolve'](_0x2b70bd,_0x4d01cd=0x0){return resolveNode(this,_0x2b70bd,_0x4d01cd,!0x1);}['resolveInner'](_0x4afccc,_0x51217c=0x0){return resolveNode(this,_0x4afccc,_0x51217c,!0x0);}['matchContext'](_0x43f73b){return matchNodeContext(this['parent'],_0x43f73b);}['enterUnfinishedNodesBefore'](_0x30418b){let _0x4a210c=this['childBefore'](_0x30418b),_0x546bd8=this;for(;_0x4a210c;){let _0x38b455=_0x4a210c['lastChild'];if(!_0x38b455||_0x38b455['to']!=_0x4a210c['to'])break;_0x38b455['type']['isError']&&_0x38b455['from']==_0x38b455['to']?(_0x546bd8=_0x4a210c,_0x4a210c=_0x38b455['prevSibling']):_0x4a210c=_0x38b455;}return _0x546bd8;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x4daf9b,_0x246393,_0x1a84a5,_0x475e57){super(),this['_tree']=_0x4daf9b,this['from']=_0x246393,this['index']=_0x1a84a5,this['_parent']=_0x475e57;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0x41efbc,_0x5d7955,_0x42a229,_0x5d585f,_0x34519b=0x0){for(let _0x5251de=this;;){for(let {children:_0x1048ed,positions:_0x1b11bb}=_0x5251de['_tree'],_0x37ec31=_0x5d7955>0x0?_0x1048ed['length']:-0x1;_0x41efbc!=_0x37ec31;_0x41efbc+=_0x5d7955){let _0x5439be=_0x1048ed[_0x41efbc],_0x4da791=_0x1b11bb[_0x41efbc]+_0x5251de['from'];if(checkSide(_0x5d585f,_0x42a229,_0x4da791,_0x4da791+_0x5439be['length'])){if(_0x5439be instanceof TreeBuffer){if(_0x34519b&IterMode['ExcludeBuffers'])continue;let _0x4c8d4b=_0x5439be['findChild'](0x0,_0x5439be['buffer']['length'],_0x5d7955,_0x42a229-_0x4da791,_0x5d585f);if(_0x4c8d4b>-0x1)return new BufferNode(new BufferContext(_0x5251de,_0x5439be,_0x41efbc,_0x4da791),null,_0x4c8d4b);}else{if(_0x34519b&IterMode['IncludeAnonymous']||!_0x5439be['type']['isAnonymous']||hasChild(_0x5439be)){let _0xf54221;if(!(_0x34519b&IterMode['IgnoreMounts'])&&(_0xf54221=MountedTree['get'](_0x5439be))&&!_0xf54221['overlay'])return new TreeNode(_0xf54221['tree'],_0x4da791,_0x41efbc,_0x5251de);let _0x133928=new TreeNode(_0x5439be,_0x4da791,_0x41efbc,_0x5251de);return _0x34519b&IterMode['IncludeAnonymous']||!_0x133928['type']['isAnonymous']?_0x133928:_0x133928['nextChild'](_0x5d7955<0x0?_0x5439be['children']['length']-0x1:0x0,_0x5d7955,_0x42a229,_0x5d585f);}}}}if(_0x34519b&IterMode['IncludeAnonymous']||!_0x5251de['type']['isAnonymous'])return null;if(_0x41efbc=_0x5251de['index']>=0x0?_0x5251de['index']+_0x5d7955:_0x5d7955<0x0?-0x1:_0x5251de['_parent']['_tree']['children']['length'],_0x5251de=_0x5251de['_parent'],!_0x5251de)return null;}}get['firstChild'](){return this['nextChild'](0x0,0x1,0x0,0x4);}get['lastChild'](){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,0x0,0x4);}['childAfter'](_0x50b6e2){return this['nextChild'](0x0,0x1,_0x50b6e2,0x2);}['childBefore'](_0x2e9097){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x2e9097,-0x2);}['enter'](_0x448223,_0x413ff8,_0xd641f=0x0){let _0xc71a5b;if(!(_0xd641f&IterMode['IgnoreOverlays'])&&(_0xc71a5b=MountedTree['get'](this['_tree']))&&_0xc71a5b['overlay']){let _0x41bad5=_0x448223-this['from'];for(let {from:_0x14bad3,to:_0xae00c4}of _0xc71a5b['overlay'])if((_0x413ff8>0x0?_0x14bad3<=_0x41bad5:_0x14bad3<_0x41bad5)&&(_0x413ff8<0x0?_0xae00c4>=_0x41bad5:_0xae00c4>_0x41bad5))return new TreeNode(_0xc71a5b['tree'],_0xc71a5b['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0x448223,_0x413ff8,_0xd641f);}['nextSignificantParent'](){let _0x11ba80=this;for(;_0x11ba80['type']['isAnonymous']&&_0x11ba80['_parent'];)_0x11ba80=_0x11ba80['_parent'];return _0x11ba80;}get['parent'](){return this['_parent']?this['_parent']['nextSignificantParent']():null;}get['nextSibling'](){return this['_parent']&&this['index']>=0x0?this['_parent']['nextChild'](this['index']+0x1,0x1,0x0,0x4):null;}get['prevSibling'](){return this['_parent']&&this['index']>=0x0?this['_parent']['nextChild'](this['index']-0x1,-0x1,0x0,0x4):null;}get['tree'](){return this['_tree'];}['toTree'](){return this['_tree'];}['toString'](){return this['_tree']['toString']();}}function getChildren(_0x32396b,_0x382768,_0x3724ec,_0x218383){let _0x43ab39=_0x32396b['cursor'](),_0x46b32e=[];if(!_0x43ab39['firstChild']())return _0x46b32e;if(null!=_0x3724ec){for(let _0x2f1f3f=!0x1;!_0x2f1f3f;)if(_0x2f1f3f=_0x43ab39['type']['is'](_0x3724ec),!_0x43ab39['nextSibling']())return _0x46b32e;}for(;;){if(null!=_0x218383&&_0x43ab39['type']['is'](_0x218383))return _0x46b32e;if(_0x43ab39['type']['is'](_0x382768)&&_0x46b32e['push'](_0x43ab39['node']),!_0x43ab39['nextSibling']())return null==_0x218383?_0x46b32e:[];}}function matchNodeContext(_0x2cb07a,_0x458b7d,_0x1f8be0=_0x458b7d['length']-0x1){for(let _0x2546a3=_0x2cb07a;_0x1f8be0>=0x0;_0x2546a3=_0x2546a3['parent']){if(!_0x2546a3)return!0x1;if(!_0x2546a3['type']['isAnonymous']){if(_0x458b7d[_0x1f8be0]&&_0x458b7d[_0x1f8be0]!=_0x2546a3['name'])return!0x1;_0x1f8be0--;}}return!0x0;}class BufferContext{constructor(_0x31b358,_0x2ac54d,_0x545372,_0x50c940){this['parent']=_0x31b358,this['buffer']=_0x2ac54d,this['index']=_0x545372,this['start']=_0x50c940;}}class BufferNode extends BaseNode{get['name'](){return this['type']['name'];}get['from'](){return this['context']['start']+this['context']['buffer']['buffer'][this['index']+0x1];}get['to'](){return this['context']['start']+this['context']['buffer']['buffer'][this['index']+0x2];}constructor(_0x34ff06,_0x54abe9,_0x79e1c0){super(),this['context']=_0x34ff06,this['_parent']=_0x54abe9,this['index']=_0x79e1c0,this['type']=_0x34ff06['buffer']['set']['types'][_0x34ff06['buffer']['buffer'][_0x79e1c0]];}['child'](_0x8c0989,_0x5f3431,_0x7285d4){let {buffer:_0x1e0f5d}=this['context'],_0x58e5d6=_0x1e0f5d['findChild'](this['index']+0x4,_0x1e0f5d['buffer'][this['index']+0x3],_0x8c0989,_0x5f3431-this['context']['start'],_0x7285d4);return _0x58e5d6<0x0?null:new BufferNode(this['context'],this,_0x58e5d6);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x1afcd2){return this['child'](0x1,_0x1afcd2,0x2);}['childBefore'](_0x14c3ac){return this['child'](-0x1,_0x14c3ac,-0x2);}['enter'](_0x319fe2,_0x1f12ad,_0x5c2a2b=0x0){if(_0x5c2a2b&IterMode['ExcludeBuffers'])return null;let {buffer:_0x62086f}=this['context'],_0x1634ca=_0x62086f['findChild'](this['index']+0x4,_0x62086f['buffer'][this['index']+0x3],_0x1f12ad>0x0?0x1:-0x1,_0x319fe2-this['context']['start'],_0x1f12ad);return _0x1634ca<0x0?null:new BufferNode(this['context'],this,_0x1634ca);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0x41dbac){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x41dbac,_0x41dbac,0x0,0x4);}get['nextSibling'](){let {buffer:_0x33126b}=this['context'],_0x919f34=_0x33126b['buffer'][this['index']+0x3];return _0x919f34<(this['_parent']?_0x33126b['buffer'][this['_parent']['index']+0x3]:_0x33126b['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x919f34):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x426144}=this['context'],_0x228ae8=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x228ae8?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x426144['findChild'](_0x228ae8,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x494fa5=[],_0x2bc3a2=[],{buffer:_0xe1496}=this['context'],_0x580915=this['index']+0x4,_0x1c1298=_0xe1496['buffer'][this['index']+0x3];if(_0x1c1298>_0x580915){let _0x212dbf=_0xe1496['buffer'][this['index']+0x1];_0x494fa5['push'](_0xe1496['slice'](_0x580915,_0x1c1298,_0x212dbf)),_0x2bc3a2['push'](0x0);}return new Tree(this['type'],_0x494fa5,_0x2bc3a2,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0x5f24ce){if(!_0x5f24ce['length'])return null;let _0x1a7ceb=0x0,_0x51ced3=_0x5f24ce[0x0];for(let _0x5d191f=0x1;_0x5d191f<_0x5f24ce['length'];_0x5d191f++){let _0x35631c=_0x5f24ce[_0x5d191f];(_0x35631c['from']>_0x51ced3['from']||_0x35631c['to']<_0x51ced3['to'])&&(_0x51ced3=_0x35631c,_0x1a7ceb=_0x5d191f);}let _0x24d924=_0x51ced3 instanceof TreeNode&&_0x51ced3['index']<0x0?null:_0x51ced3['parent'],_0x4ac782=_0x5f24ce['slice']();return _0x24d924?_0x4ac782[_0x1a7ceb]=_0x24d924:_0x4ac782['splice'](_0x1a7ceb,0x1),new StackIterator(_0x4ac782,_0x51ced3);}class StackIterator{constructor(_0x18d735,_0x3e38f3){this['heads']=_0x18d735,this['node']=_0x3e38f3;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x162a0e,_0x4d6d36,_0x2ae640){let _0xe68dc5=_0x162a0e['resolveInner'](_0x4d6d36,_0x2ae640),_0x33c6d2=null;for(let _0x5e7274=_0xe68dc5 instanceof TreeNode?_0xe68dc5:_0xe68dc5['context']['parent'];_0x5e7274;_0x5e7274=_0x5e7274['parent'])if(_0x5e7274['index']<0x0){let _0x460f8b=_0x5e7274['parent'];(_0x33c6d2||(_0x33c6d2=[_0xe68dc5]))['push'](_0x460f8b['resolve'](_0x4d6d36,_0x2ae640)),_0x5e7274=_0x460f8b;}else{let _0x310c9a=MountedTree['get'](_0x5e7274['tree']);if(_0x310c9a&&_0x310c9a['overlay']&&_0x310c9a['overlay'][0x0]['from']<=_0x4d6d36&&_0x310c9a['overlay'][_0x310c9a['overlay']['length']-0x1]['to']>=_0x4d6d36){let _0x3e62f4=new TreeNode(_0x310c9a['tree'],_0x310c9a['overlay'][0x0]['from']+_0x5e7274['from'],-0x1,_0x5e7274);(_0x33c6d2||(_0x33c6d2=[_0xe68dc5]))['push'](resolveNode(_0x3e62f4,_0x4d6d36,_0x2ae640,!0x1));}}return _0x33c6d2?iterStack(_0x33c6d2):_0xe68dc5;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0x3d7600,_0x3dde41=0x0){if(this['mode']=_0x3dde41,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0x3d7600 instanceof TreeNode)this['yieldNode'](_0x3d7600);else{this['_tree']=_0x3d7600['context']['parent'],this['buffer']=_0x3d7600['context'];for(let _0x4e7427=_0x3d7600['_parent'];_0x4e7427;_0x4e7427=_0x4e7427['_parent'])this['stack']['unshift'](_0x4e7427['index']);this['bufferNode']=_0x3d7600,this['yieldBuf'](_0x3d7600['index']);}}['yieldNode'](_0x219a3e){return!!_0x219a3e&&(this['_tree']=_0x219a3e,this['type']=_0x219a3e['type'],this['from']=_0x219a3e['from'],this['to']=_0x219a3e['to'],!0x0);}['yieldBuf'](_0x2a16aa,_0x542ca8){this['index']=_0x2a16aa;let {start:_0x218dab,buffer:_0x3f6f46}=this['buffer'];return this['type']=_0x542ca8||_0x3f6f46['set']['types'][_0x3f6f46['buffer'][_0x2a16aa]],this['from']=_0x218dab+_0x3f6f46['buffer'][_0x2a16aa+0x1],this['to']=_0x218dab+_0x3f6f46['buffer'][_0x2a16aa+0x2],!0x0;}['yield'](_0x18d4ab){return!!_0x18d4ab&&(_0x18d4ab instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x18d4ab)):(this['buffer']=_0x18d4ab['context'],this['yieldBuf'](_0x18d4ab['index'],_0x18d4ab['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0x4596e4,_0x1ccfc7,_0x488f97){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x4596e4<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x4596e4,_0x1ccfc7,_0x488f97,this['mode']));let {buffer:_0x2554b6}=this['buffer'],_0x44d537=_0x2554b6['findChild'](this['index']+0x4,_0x2554b6['buffer'][this['index']+0x3],_0x4596e4,_0x1ccfc7-this['buffer']['start'],_0x488f97);return!(_0x44d537<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x44d537));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0x2767a7){return this['enterChild'](0x1,_0x2767a7,0x2);}['childBefore'](_0x12a9fd){return this['enterChild'](-0x1,_0x12a9fd,-0x2);}['enter'](_0x472753,_0x183500,_0x550109=this['mode']){return this['buffer']?!(_0x550109&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x472753,_0x183500):this['yield'](this['_tree']['enter'](_0x472753,_0x183500,_0x550109));}['parent'](){if(!this['buffer'])return this['yieldNode'](this['mode']&IterMode['IncludeAnonymous']?this['_tree']['_parent']:this['_tree']['parent']);if(this['stack']['length'])return this['yieldBuf'](this['stack']['pop']());let _0x3772af=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x3772af);}['sibling'](_0x44a90b){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0x44a90b,_0x44a90b,0x0,0x4,this['mode']));let {buffer:_0x27dd09}=this['buffer'],_0x48d797=this['stack']['length']-0x1;if(_0x44a90b<0x0){let _0x1cdcd6=_0x48d797<0x0?0x0:this['stack'][_0x48d797]+0x4;if(this['index']!=_0x1cdcd6)return this['yieldBuf'](_0x27dd09['findChild'](_0x1cdcd6,this['index'],-0x1,0x0,0x4));}else{let _0x115123=_0x27dd09['buffer'][this['index']+0x3];if(_0x115123<(_0x48d797<0x0?_0x27dd09['buffer']['length']:_0x27dd09['buffer'][this['stack'][_0x48d797]+0x3]))return this['yieldBuf'](_0x115123);}return _0x48d797<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0x44a90b,_0x44a90b,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0x3ddf37){let _0x379ab4,_0x536538,{buffer:_0x287066}=this;if(_0x287066){if(_0x3ddf37>0x0){if(this['index']<_0x287066['buffer']['buffer']['length'])return!0x1;}else{for(let _0x23a297=0x0;_0x23a297<this['index'];_0x23a297++)if(_0x287066['buffer']['buffer'][_0x23a297+0x3]<this['index'])return!0x1;}({index:_0x379ab4,parent:_0x536538}=_0x287066);}else({index:_0x379ab4,_parent:_0x536538}=this['_tree']);for(;_0x536538;{index:_0x379ab4,_parent:_0x536538}=_0x536538)if(_0x379ab4>-0x1)for(let _0x1ccdb2=_0x379ab4+_0x3ddf37,_0x1cdde1=_0x3ddf37<0x0?-0x1:_0x536538['_tree']['children']['length'];_0x1ccdb2!=_0x1cdde1;_0x1ccdb2+=_0x3ddf37){let _0xfcee5=_0x536538['_tree']['children'][_0x1ccdb2];if(this['mode']&IterMode['IncludeAnonymous']||_0xfcee5 instanceof TreeBuffer||!_0xfcee5['type']['isAnonymous']||hasChild(_0xfcee5))return!0x1;}return!0x0;}['move'](_0x25bd08,_0x349b50){if(_0x349b50&&this['enterChild'](_0x25bd08,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x25bd08))return!0x0;if(this['atLastNode'](_0x25bd08)||!this['parent']())return!0x1;}}['next'](_0x1b2909=!0x0){return this['move'](0x1,_0x1b2909);}['prev'](_0x592b98=!0x0){return this['move'](-0x1,_0x592b98);}['moveTo'](_0x67f7b7,_0x11a37d=0x0){for(;(this['from']==this['to']||(_0x11a37d<0x1?this['from']>=_0x67f7b7:this['from']>_0x67f7b7)||(_0x11a37d>-0x1?this['to']<=_0x67f7b7:this['to']<_0x67f7b7))&&this['parent'](););for(;this['enterChild'](0x1,_0x67f7b7,_0x11a37d););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0xd4eae7=this['bufferNode'],_0x1a94ca=null,_0x4b545b=0x0;if(_0xd4eae7&&_0xd4eae7['context']==this['buffer']){t:for(let _0x1e0d59=this['index'],_0x4f5c25=this['stack']['length'];_0x4f5c25>=0x0;){for(let _0x454bc3=_0xd4eae7;_0x454bc3;_0x454bc3=_0x454bc3['_parent'])if(_0x454bc3['index']==_0x1e0d59){if(_0x1e0d59==this['index'])return _0x454bc3;_0x1a94ca=_0x454bc3,_0x4b545b=_0x4f5c25+0x1;break t;}_0x1e0d59=this['stack'][--_0x4f5c25];}}for(let _0x3fc299=_0x4b545b;_0x3fc299<this['stack']['length'];_0x3fc299++)_0x1a94ca=new BufferNode(this['buffer'],_0x1a94ca,this['stack'][_0x3fc299]);return this['bufferNode']=new BufferNode(this['buffer'],_0x1a94ca,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0x1a871e,_0x3adaa4){for(let _0x19136a=0x0;;){let _0x57f0a1=!0x1;if(this['type']['isAnonymous']||!0x1!==_0x1a871e(this)){if(this['firstChild']()){_0x19136a++;continue;}this['type']['isAnonymous']||(_0x57f0a1=!0x0);}for(;;){if(_0x57f0a1&&_0x3adaa4&&_0x3adaa4(this),_0x57f0a1=this['type']['isAnonymous'],!_0x19136a)return;if(this['nextSibling']())break;this['parent'](),_0x19136a--,_0x57f0a1=!0x0;}}}['matchContext'](_0x36ac35){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x36ac35);let {buffer:_0x49157d}=this['buffer'],{types:_0x5e3f9f}=_0x49157d['set'];for(let _0x30b1e8=_0x36ac35['length']-0x1,_0x4c1ece=this['stack']['length']-0x1;_0x30b1e8>=0x0;_0x4c1ece--){if(_0x4c1ece<0x0)return matchNodeContext(this['_tree'],_0x36ac35,_0x30b1e8);let _0x5b4e44=_0x5e3f9f[_0x49157d['buffer'][this['stack'][_0x4c1ece]]];if(!_0x5b4e44['isAnonymous']){if(_0x36ac35[_0x30b1e8]&&_0x36ac35[_0x30b1e8]!=_0x5b4e44['name'])return!0x1;_0x30b1e8--;}}return!0x0;}}function hasChild(_0x540722){return _0x540722['children']['some'](_0x15ef2b=>_0x15ef2b instanceof TreeBuffer||!_0x15ef2b['type']['isAnonymous']||hasChild(_0x15ef2b));}function buildTree(_0x8d687){var _0x1f45ae;let {buffer:_0x4bbc89,nodeSet:_0x2617c4,maxBufferLength:_0x152cd3=DefaultBufferLength,reused:_0x5dd597=[],minRepeatType:_0x23f074=_0x2617c4['types']['length']}=_0x8d687,_0x27fef8=Array['isArray'](_0x4bbc89)?new FlatBufferCursor(_0x4bbc89,_0x4bbc89['length']):_0x4bbc89,_0x99104f=_0x2617c4['types'],_0x436d5a=0x0,_0x53bc7f=0x0;function _0x443b0a(_0x1df0bb,_0x16f58d,_0x5233f3,_0xd225e4,_0x296a32,_0xe658ba){let {id:_0x328c7d,start:_0x50b9f5,end:_0x1a31c6,size:_0x3c8073}=_0x27fef8,_0x37b343=_0x53bc7f,_0x5afb5a=_0x436d5a;if(_0x3c8073<0x0){if(_0x27fef8['next'](),-0x1==_0x3c8073){let _0x44af6d=_0x5dd597[_0x328c7d];return _0x5233f3['push'](_0x44af6d),void _0xd225e4['push'](_0x50b9f5-_0x1df0bb);}if(-0x3==_0x3c8073)return void(_0x436d5a=_0x328c7d);if(-0x4==_0x3c8073)return void(_0x53bc7f=_0x328c7d);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x3c8073);}let _0x22bb24,_0x4f32f1,_0x3540ce=_0x99104f[_0x328c7d],_0x4f7374=_0x50b9f5-_0x1df0bb;if(_0x1a31c6-_0x50b9f5<=_0x152cd3&&(_0x4f32f1=function(_0x6a2347,_0x271df7){let _0x44ce3b=_0x27fef8['fork'](),_0x10c0fa=0x0,_0x354eae=0x0,_0x2ba581=0x0,_0x134eba=_0x44ce3b['end']-_0x152cd3,_0x88d83b={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0x119c47=_0x44ce3b['pos']-_0x6a2347;_0x44ce3b['pos']>_0x119c47;){let _0x44754e=_0x44ce3b['size'];if(_0x44ce3b['id']==_0x271df7&&_0x44754e>=0x0){_0x88d83b['size']=_0x10c0fa,_0x88d83b['start']=_0x354eae,_0x88d83b['skip']=_0x2ba581,_0x2ba581+=0x4,_0x10c0fa+=0x4,_0x44ce3b['next']();continue;}let _0x9e78f9=_0x44ce3b['pos']-_0x44754e;if(_0x44754e<0x0||_0x9e78f9<_0x119c47||_0x44ce3b['start']<_0x134eba)break;let _0x2eaf4c=_0x44ce3b['id']>=_0x23f074?0x4:0x0,_0x5a73ae=_0x44ce3b['start'];for(_0x44ce3b['next']();_0x44ce3b['pos']>_0x9e78f9;){if(_0x44ce3b['size']<0x0){if(-0x3!=_0x44ce3b['size'])break t;_0x2eaf4c+=0x4;}else _0x44ce3b['id']>=_0x23f074&&(_0x2eaf4c+=0x4);_0x44ce3b['next']();}_0x354eae=_0x5a73ae,_0x10c0fa+=_0x44754e,_0x2ba581+=_0x2eaf4c;}return(_0x271df7<0x0||_0x10c0fa==_0x6a2347)&&(_0x88d83b['size']=_0x10c0fa,_0x88d83b['start']=_0x354eae,_0x88d83b['skip']=_0x2ba581),_0x88d83b['size']>0x4?_0x88d83b:void 0x0;}(_0x27fef8['pos']-_0x16f58d,_0x296a32))){let _0x3f88b3=new Uint16Array(_0x4f32f1['size']-_0x4f32f1['skip']),_0xa08b25=_0x27fef8['pos']-_0x4f32f1['size'],_0x4e3fcd=_0x3f88b3['length'];for(;_0x27fef8['pos']>_0xa08b25;)_0x4e3fcd=_0x4665a1(_0x4f32f1['start'],_0x3f88b3,_0x4e3fcd);_0x22bb24=new TreeBuffer(_0x3f88b3,_0x1a31c6-_0x4f32f1['start'],_0x2617c4),_0x4f7374=_0x4f32f1['start']-_0x1df0bb;}else{let _0x15724c=_0x27fef8['pos']-_0x3c8073;_0x27fef8['next']();let _0x820233=[],_0x601db9=[],_0x3f6d42=_0x328c7d>=_0x23f074?_0x328c7d:-0x1,_0x672ce3=0x0,_0x200cad=_0x1a31c6;for(;_0x27fef8['pos']>_0x15724c;)_0x3f6d42>=0x0&&_0x27fef8['id']==_0x3f6d42&&_0x27fef8['size']>=0x0?(_0x27fef8['end']<=_0x200cad-_0x152cd3&&(_0x5f19c9(_0x820233,_0x601db9,_0x50b9f5,_0x672ce3,_0x27fef8['end'],_0x200cad,_0x3f6d42,_0x37b343,_0x5afb5a),_0x672ce3=_0x820233['length'],_0x200cad=_0x27fef8['end']),_0x27fef8['next']()):_0xe658ba>0x9c4?_0x2ccd84(_0x50b9f5,_0x15724c,_0x820233,_0x601db9):_0x443b0a(_0x50b9f5,_0x15724c,_0x820233,_0x601db9,_0x3f6d42,_0xe658ba+0x1);if(_0x3f6d42>=0x0&&_0x672ce3>0x0&&_0x672ce3<_0x820233['length']&&_0x5f19c9(_0x820233,_0x601db9,_0x50b9f5,_0x672ce3,_0x50b9f5,_0x200cad,_0x3f6d42,_0x37b343,_0x5afb5a),_0x820233['reverse'](),_0x601db9['reverse'](),_0x3f6d42>-0x1&&_0x672ce3>0x0){let _0x4add87=function(_0x2d277a,_0x1bebc7){return(_0x372366,_0x1d0715,_0x3ff78a)=>{let _0x59e87d,_0xa3b71d,_0x33ae2a=0x0,_0x15123d=_0x372366['length']-0x1;if(_0x15123d>=0x0&&(_0x59e87d=_0x372366[_0x15123d])instanceof Tree){if(!_0x15123d&&_0x59e87d['type']==_0x2d277a&&_0x59e87d['length']==_0x3ff78a)return _0x59e87d;(_0xa3b71d=_0x59e87d['prop'](NodeProp['lookAhead']))&&(_0x33ae2a=_0x1d0715[_0x15123d]+_0x59e87d['length']+_0xa3b71d);}return _0x3e8c0e(_0x2d277a,_0x372366,_0x1d0715,_0x3ff78a,_0x33ae2a,_0x1bebc7);};}(_0x3540ce,_0x5afb5a);_0x22bb24=balanceRange(_0x3540ce,_0x820233,_0x601db9,0x0,_0x820233['length'],0x0,_0x1a31c6-_0x50b9f5,_0x4add87,_0x4add87);}else _0x22bb24=_0x3e8c0e(_0x3540ce,_0x820233,_0x601db9,_0x1a31c6-_0x50b9f5,_0x37b343-_0x1a31c6,_0x5afb5a);}_0x5233f3['push'](_0x22bb24),_0xd225e4['push'](_0x4f7374);}function _0x2ccd84(_0x529163,_0xa42eeb,_0x14b118,_0x3ca087){let _0x2dbca1=[],_0x336f32=0x0,_0x2a93d8=-0x1;for(;_0x27fef8['pos']>_0xa42eeb;){let {id:_0x2df075,start:_0x2cdf9d,end:_0x354cd9,size:_0x1dba1f}=_0x27fef8;if(_0x1dba1f>0x4)_0x27fef8['next']();else{if(_0x2a93d8>-0x1&&_0x2cdf9d<_0x2a93d8)break;_0x2a93d8<0x0&&(_0x2a93d8=_0x354cd9-_0x152cd3),_0x2dbca1['push'](_0x2df075,_0x2cdf9d,_0x354cd9),_0x336f32++,_0x27fef8['next']();}}if(_0x336f32){let _0xd788d=new Uint16Array(0x4*_0x336f32),_0x1ecda6=_0x2dbca1[_0x2dbca1['length']-0x2];for(let _0x718853=_0x2dbca1['length']-0x3,_0x19ed05=0x0;_0x718853>=0x0;_0x718853-=0x3)_0xd788d[_0x19ed05++]=_0x2dbca1[_0x718853],_0xd788d[_0x19ed05++]=_0x2dbca1[_0x718853+0x1]-_0x1ecda6,_0xd788d[_0x19ed05++]=_0x2dbca1[_0x718853+0x2]-_0x1ecda6,_0xd788d[_0x19ed05++]=_0x19ed05;_0x14b118['push'](new TreeBuffer(_0xd788d,_0x2dbca1[0x2]-_0x1ecda6,_0x2617c4)),_0x3ca087['push'](_0x1ecda6-_0x529163);}}function _0x5f19c9(_0x556509,_0x5bef7b,_0x25e064,_0x12926e,_0xadfbe2,_0x2cb2a8,_0x42cee4,_0x49b921,_0x24f882){let _0x285c2c=[],_0x526aa7=[];for(;_0x556509['length']>_0x12926e;)_0x285c2c['push'](_0x556509['pop']()),_0x526aa7['push'](_0x5bef7b['pop']()+_0x25e064-_0xadfbe2);_0x556509['push'](_0x3e8c0e(_0x2617c4['types'][_0x42cee4],_0x285c2c,_0x526aa7,_0x2cb2a8-_0xadfbe2,_0x49b921-_0x2cb2a8,_0x24f882)),_0x5bef7b['push'](_0xadfbe2-_0x25e064);}function _0x3e8c0e(_0x1d0f1f,_0x2b0a24,_0x1aa11c,_0x5a604e,_0x4e38ea,_0x2857d9,_0x56aceb){if(_0x2857d9){let _0x8e4cae=[NodeProp['contextHash'],_0x2857d9];_0x56aceb=_0x56aceb?[_0x8e4cae]['concat'](_0x56aceb):[_0x8e4cae];}if(_0x4e38ea>0x19){let _0x1324dd=[NodeProp['lookAhead'],_0x4e38ea];_0x56aceb=_0x56aceb?[_0x1324dd]['concat'](_0x56aceb):[_0x1324dd];}return new Tree(_0x1d0f1f,_0x2b0a24,_0x1aa11c,_0x5a604e,_0x56aceb);}function _0x4665a1(_0x47b8ce,_0x118d4c,_0x3ce714){let {id:_0x603ebe,start:_0x890808,end:_0xb9ede2,size:_0x3bbfda}=_0x27fef8;if(_0x27fef8['next'](),_0x3bbfda>=0x0&&_0x603ebe<_0x23f074){let _0x18e0b2=_0x3ce714;if(_0x3bbfda>0x4){let _0x5872df=_0x27fef8['pos']-(_0x3bbfda-0x4);for(;_0x27fef8['pos']>_0x5872df;)_0x3ce714=_0x4665a1(_0x47b8ce,_0x118d4c,_0x3ce714);}_0x118d4c[--_0x3ce714]=_0x18e0b2,_0x118d4c[--_0x3ce714]=_0xb9ede2-_0x47b8ce,_0x118d4c[--_0x3ce714]=_0x890808-_0x47b8ce,_0x118d4c[--_0x3ce714]=_0x603ebe;}else-0x3==_0x3bbfda?_0x436d5a=_0x603ebe:-0x4==_0x3bbfda&&(_0x53bc7f=_0x603ebe);return _0x3ce714;}let _0x289d53=[],_0x22da97=[];for(;_0x27fef8['pos']>0x0;)_0x443b0a(_0x8d687['start']||0x0,_0x8d687['bufferStart']||0x0,_0x289d53,_0x22da97,-0x1,0x0);let _0x6ea9a1=null!==(_0x1f45ae=_0x8d687['length'])&&void 0x0!==_0x1f45ae?_0x1f45ae:_0x289d53['length']?_0x22da97[0x0]+_0x289d53[0x0]['length']:0x0;return new Tree(_0x99104f[_0x8d687['topID']],_0x289d53['reverse'](),_0x22da97['reverse'](),_0x6ea9a1);}const nodeSizeCache=new WeakMap();function nodeSize(_0x365e71,_0x24fc78){if(!_0x365e71['isAnonymous']||_0x24fc78 instanceof TreeBuffer||_0x24fc78['type']!=_0x365e71)return 0x1;let _0x38c41f=nodeSizeCache['get'](_0x24fc78);if(null==_0x38c41f){_0x38c41f=0x1;for(let _0x6bc2bc of _0x24fc78['children']){if(_0x6bc2bc['type']!=_0x365e71||!(_0x6bc2bc instanceof Tree)){_0x38c41f=0x1;break;}_0x38c41f+=nodeSize(_0x365e71,_0x6bc2bc);}nodeSizeCache['set'](_0x24fc78,_0x38c41f);}return _0x38c41f;}function balanceRange(_0x52a293,_0x2f919a,_0x11d9ae,_0xcaf916,_0x3a2a25,_0x2da9f1,_0x15f92e,_0x4b6662,_0x186241){let _0x14b5d3=0x0;for(let _0x3d0469=_0xcaf916;_0x3d0469<_0x3a2a25;_0x3d0469++)_0x14b5d3+=nodeSize(_0x52a293,_0x2f919a[_0x3d0469]);let _0x2a31f0=Math['ceil'](1.5*_0x14b5d3/0x8),_0x4eb2b=[],_0x22f101=[];return function _0x37b544(_0x2dbc5b,_0x39ad83,_0x3728aa,_0x4e4746,_0x258171){for(let _0x8b067b=_0x3728aa;_0x8b067b<_0x4e4746;){let _0x10f440=_0x8b067b,_0x6ce2f7=_0x39ad83[_0x8b067b],_0x141465=nodeSize(_0x52a293,_0x2dbc5b[_0x8b067b]);for(_0x8b067b++;_0x8b067b<_0x4e4746;_0x8b067b++){let _0xd84028=nodeSize(_0x52a293,_0x2dbc5b[_0x8b067b]);if(_0x141465+_0xd84028>=_0x2a31f0)break;_0x141465+=_0xd84028;}if(_0x8b067b==_0x10f440+0x1){if(_0x141465>_0x2a31f0){let _0x1b3187=_0x2dbc5b[_0x10f440];_0x37b544(_0x1b3187['children'],_0x1b3187['positions'],0x0,_0x1b3187['children']['length'],_0x39ad83[_0x10f440]+_0x258171);continue;}_0x4eb2b['push'](_0x2dbc5b[_0x10f440]);}else{let _0x5667b2=_0x39ad83[_0x8b067b-0x1]+_0x2dbc5b[_0x8b067b-0x1]['length']-_0x6ce2f7;_0x4eb2b['push'](balanceRange(_0x52a293,_0x2dbc5b,_0x39ad83,_0x10f440,_0x8b067b,_0x6ce2f7,_0x5667b2,null,_0x186241));}_0x22f101['push'](_0x6ce2f7+_0x258171-_0x2da9f1);}}(_0x2f919a,_0x11d9ae,_0xcaf916,_0x3a2a25,0x0),(_0x4b6662||_0x186241)(_0x4eb2b,_0x22f101,_0x15f92e);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0x2ba245,_0xc20133,_0x45ba99){let _0xf47aae=this['map']['get'](_0x2ba245);_0xf47aae||this['map']['set'](_0x2ba245,_0xf47aae=new Map()),_0xf47aae['set'](_0xc20133,_0x45ba99);}['getBuffer'](_0x15e234,_0xa26640){let _0x15e5db=this['map']['get'](_0x15e234);return _0x15e5db&&_0x15e5db['get'](_0xa26640);}['set'](_0x2ab2c2,_0x40d76c){_0x2ab2c2 instanceof BufferNode?this['setBuffer'](_0x2ab2c2['context']['buffer'],_0x2ab2c2['index'],_0x40d76c):_0x2ab2c2 instanceof TreeNode&&this['map']['set'](_0x2ab2c2['tree'],_0x40d76c);}['get'](_0x1e3131){return _0x1e3131 instanceof BufferNode?this['getBuffer'](_0x1e3131['context']['buffer'],_0x1e3131['index']):_0x1e3131 instanceof TreeNode?this['map']['get'](_0x1e3131['tree']):void 0x0;}['cursorSet'](_0x57abde,_0x358081){_0x57abde['buffer']?this['setBuffer'](_0x57abde['buffer']['buffer'],_0x57abde['index'],_0x358081):this['map']['set'](_0x57abde['tree'],_0x358081);}['cursorGet'](_0x9ccdff){return _0x9ccdff['buffer']?this['getBuffer'](_0x9ccdff['buffer']['buffer'],_0x9ccdff['index']):this['map']['get'](_0x9ccdff['tree']);}}class TreeFragment{constructor(_0x2c45eb,_0x4e3872,_0x3f04c0,_0x4da947,_0x585aa1=!0x1,_0xe2449b=!0x1){this['from']=_0x2c45eb,this['to']=_0x4e3872,this['tree']=_0x3f04c0,this['offset']=_0x4da947,this['open']=(_0x585aa1?0x1:0x0)|(_0xe2449b?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x53a60d,_0x1beb9c=[],_0x8da1a1=!0x1){let _0x10e478=[new TreeFragment(0x0,_0x53a60d['length'],_0x53a60d,0x0,!0x1,_0x8da1a1)];for(let _0x3599fc of _0x1beb9c)_0x3599fc['to']>_0x53a60d['length']&&_0x10e478['push'](_0x3599fc);return _0x10e478;}static['applyChanges'](_0x1f3679,_0x315820,_0x480c66=0x80){if(!_0x315820['length'])return _0x1f3679;let _0x571355=[],_0x359a0f=0x1,_0xa8785a=_0x1f3679['length']?_0x1f3679[0x0]:null;for(let _0x39c20c=0x0,_0xc2b4fb=0x0,_0x50e072=0x0;;_0x39c20c++){let _0x8e4a61=_0x39c20c<_0x315820['length']?_0x315820[_0x39c20c]:null,_0xce04a6=_0x8e4a61?_0x8e4a61['fromA']:0x3b9aca00;if(_0xce04a6-_0xc2b4fb>=_0x480c66)for(;_0xa8785a&&_0xa8785a['from']<_0xce04a6;){let _0x430298=_0xa8785a;if(_0xc2b4fb>=_0x430298['from']||_0xce04a6<=_0x430298['to']||_0x50e072){let _0x350b65=Math['max'](_0x430298['from'],_0xc2b4fb)-_0x50e072,_0x564498=Math['min'](_0x430298['to'],_0xce04a6)-_0x50e072;_0x430298=_0x350b65>=_0x564498?null:new TreeFragment(_0x350b65,_0x564498,_0x430298['tree'],_0x430298['offset']+_0x50e072,_0x39c20c>0x0,!!_0x8e4a61);}if(_0x430298&&_0x571355['push'](_0x430298),_0xa8785a['to']>_0xce04a6)break;_0xa8785a=_0x359a0f<_0x1f3679['length']?_0x1f3679[_0x359a0f++]:null;}if(!_0x8e4a61)break;_0xc2b4fb=_0x8e4a61['toA'],_0x50e072=_0x8e4a61['toA']-_0x8e4a61['toB'];}return _0x571355;}}class Parser{['startParse'](_0x54e034,_0x34d1d5,_0xc2856e){return'string'==typeof _0x54e034&&(_0x54e034=new StringInput(_0x54e034)),_0xc2856e=_0xc2856e?_0xc2856e['length']?_0xc2856e['map'](_0x164548=>new Range(_0x164548['from'],_0x164548['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0x54e034['length'])],this['createParse'](_0x54e034,_0x34d1d5||[],_0xc2856e);}['parse'](_0x217b72,_0xef069c,_0xa35f39){let _0x1533f8=this['startParse'](_0x217b72,_0xef069c,_0xa35f39);for(;;){let _0xe34e3e=_0x1533f8['advance']();if(_0xe34e3e)return _0xe34e3e;}}}class StringInput{constructor(_0x420068){this['string']=_0x420068;}get['length'](){return this['string']['length'];}['chunk'](_0x2666ce){return this['string']['slice'](_0x2666ce);}get['lineChunks'](){return!0x1;}['read'](_0x853123,_0x255e9b){return this['string']['slice'](_0x853123,_0x255e9b);}}function parseMixed(_0x2e48b9){return(_0x481732,_0x5a1c87,_0x5b5e28,_0x5f6882)=>new MixedParse(_0x481732,_0x2e48b9,_0x5a1c87,_0x5b5e28,_0x5f6882);}class InnerParse{constructor(_0x406b3e,_0x18c06c,_0x5b1ca8,_0x4fe6ee,_0x2ddb3b){this['parser']=_0x406b3e,this['parse']=_0x18c06c,this['overlay']=_0x5b1ca8,this['target']=_0x4fe6ee,this['from']=_0x2ddb3b;}}function checkRanges(_0xbcea99){if(!_0xbcea99['length']||_0xbcea99['some'](_0x19a03f=>_0x19a03f['from']>=_0x19a03f['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0xbcea99));}class ActiveOverlay{constructor(_0x4537e2,_0xe7ff2d,_0x25658d,_0x2cf7eb,_0x20fd13,_0x29980c,_0x46b151){this['parser']=_0x4537e2,this['predicate']=_0xe7ff2d,this['mounts']=_0x25658d,this['index']=_0x2cf7eb,this['start']=_0x20fd13,this['target']=_0x29980c,this['prev']=_0x46b151,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x4f0b37,_0x293685,_0x5efdfa,_0x4d131f,_0x202db1){this['nest']=_0x293685,this['input']=_0x5efdfa,this['fragments']=_0x4d131f,this['ranges']=_0x202db1,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x4f0b37;}['advance'](){if(this['baseParse']){let _0x412823=this['baseParse']['advance']();if(!_0x412823)return null;if(this['baseParse']=null,this['baseTree']=_0x412823,this['startInner'](),null!=this['stoppedAt']){for(let _0x209fcd of this['inner'])_0x209fcd['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x43c53d=this['baseTree'];return null!=this['stoppedAt']&&(_0x43c53d=new Tree(_0x43c53d['type'],_0x43c53d['children'],_0x43c53d['positions'],_0x43c53d['length'],_0x43c53d['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x43c53d;}let _0x5a24cc=this['inner'][this['innerDone']],_0x4c51ff=_0x5a24cc['parse']['advance']();if(_0x4c51ff){this['innerDone']++;let _0x21d5fb=Object['assign'](Object['create'](null),_0x5a24cc['target']['props']);_0x21d5fb[NodeProp['mounted']['id']]=new MountedTree(_0x4c51ff,_0x5a24cc['overlay'],_0x5a24cc['parser']),_0x5a24cc['target']['props']=_0x21d5fb;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x31a9fc=this['input']['length'];for(let _0x5d88c1=this['innerDone'];_0x5d88c1<this['inner']['length'];_0x5d88c1++)this['inner'][_0x5d88c1]['from']<_0x31a9fc&&(_0x31a9fc=Math['min'](_0x31a9fc,this['inner'][_0x5d88c1]['parse']['parsedPos']));return _0x31a9fc;}['stopAt'](_0x252753){if(this['stoppedAt']=_0x252753,this['baseParse'])this['baseParse']['stopAt'](_0x252753);else{for(let _0x5de8cb=this['innerDone'];_0x5de8cb<this['inner']['length'];_0x5de8cb++)this['inner'][_0x5de8cb]['parse']['stopAt'](_0x252753);}}['startInner'](){let _0x2393a4=new FragmentCursor$2(this['fragments']),_0x52ecd1=null,_0x1b9b47=null,_0x1022e9=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x1cd0d4,_0x402621;;){let _0x336ec1,_0x270469=!0x0;if(null!=this['stoppedAt']&&_0x1022e9['from']>=this['stoppedAt'])_0x270469=!0x1;else{if(_0x2393a4['hasNode'](_0x1022e9)){if(_0x52ecd1){let _0x10652d=_0x52ecd1['mounts']['find'](_0x48b96e=>_0x48b96e['frag']['from']<=_0x1022e9['from']&&_0x48b96e['frag']['to']>=_0x1022e9['to']&&_0x48b96e['mount']['overlay']);if(_0x10652d)for(let _0x2a982b of _0x10652d['mount']['overlay']){let _0x354f11=_0x2a982b['from']+_0x10652d['pos'],_0x130840=_0x2a982b['to']+_0x10652d['pos'];_0x354f11>=_0x1022e9['from']&&_0x130840<=_0x1022e9['to']&&!_0x52ecd1['ranges']['some'](_0x20ef0e=>_0x20ef0e['from']<_0x130840&&_0x20ef0e['to']>_0x354f11)&&_0x52ecd1['ranges']['push']({'from':_0x354f11,'to':_0x130840});}}_0x270469=!0x1;}else{if(_0x1b9b47&&(_0x402621=checkCover(_0x1b9b47['ranges'],_0x1022e9['from'],_0x1022e9['to'])))_0x270469=0x2!=_0x402621;else{if(!_0x1022e9['type']['isAnonymous']&&(_0x1cd0d4=this['nest'](_0x1022e9,this['input']))&&(_0x1022e9['from']<_0x1022e9['to']||!_0x1cd0d4['overlay'])){_0x1022e9['tree']||(materialize(_0x1022e9),_0x52ecd1&&_0x52ecd1['depth']++,_0x1b9b47&&_0x1b9b47['depth']++);let _0x5392ec=_0x2393a4['findMounts'](_0x1022e9['from'],_0x1cd0d4['parser']);if('function'==typeof _0x1cd0d4['overlay'])_0x52ecd1=new ActiveOverlay(_0x1cd0d4['parser'],_0x1cd0d4['overlay'],_0x5392ec,this['inner']['length'],_0x1022e9['from'],_0x1022e9['tree'],_0x52ecd1);else{let _0x326c50=punchRanges(this['ranges'],_0x1cd0d4['overlay']||(_0x1022e9['from']<_0x1022e9['to']?[new Range(_0x1022e9['from'],_0x1022e9['to'])]:[]));_0x326c50['length']&&checkRanges(_0x326c50),!_0x326c50['length']&&_0x1cd0d4['overlay']||this['inner']['push'](new InnerParse(_0x1cd0d4['parser'],_0x326c50['length']?_0x1cd0d4['parser']['startParse'](this['input'],enterFragments(_0x5392ec,_0x326c50),_0x326c50):_0x1cd0d4['parser']['startParse'](''),_0x1cd0d4['overlay']?_0x1cd0d4['overlay']['map'](_0xcf3a11=>new Range(_0xcf3a11['from']-_0x1022e9['from'],_0xcf3a11['to']-_0x1022e9['from'])):null,_0x1022e9['tree'],_0x326c50['length']?_0x326c50[0x0]['from']:_0x1022e9['from'])),_0x1cd0d4['overlay']?_0x326c50['length']&&(_0x1b9b47={'ranges':_0x326c50,'depth':0x0,'prev':_0x1b9b47}):_0x270469=!0x1;}}else{if(_0x52ecd1&&(_0x336ec1=_0x52ecd1['predicate'](_0x1022e9))&&(!0x0===_0x336ec1&&(_0x336ec1=new Range(_0x1022e9['from'],_0x1022e9['to'])),_0x336ec1['from']<_0x336ec1['to'])){let _0x4f24d1=_0x52ecd1['ranges']['length']-0x1;_0x4f24d1>=0x0&&_0x52ecd1['ranges'][_0x4f24d1]['to']==_0x336ec1['from']?_0x52ecd1['ranges'][_0x4f24d1]={'from':_0x52ecd1['ranges'][_0x4f24d1]['from'],'to':_0x336ec1['to']}:_0x52ecd1['ranges']['push'](_0x336ec1);}}}}}if(_0x270469&&_0x1022e9['firstChild']())_0x52ecd1&&_0x52ecd1['depth']++,_0x1b9b47&&_0x1b9b47['depth']++;else for(;!_0x1022e9['nextSibling']();){if(!_0x1022e9['parent']())break t;if(_0x52ecd1&&!--_0x52ecd1['depth']){let _0x34b011=punchRanges(this['ranges'],_0x52ecd1['ranges']);_0x34b011['length']&&(checkRanges(_0x34b011),this['inner']['splice'](_0x52ecd1['index'],0x0,new InnerParse(_0x52ecd1['parser'],_0x52ecd1['parser']['startParse'](this['input'],enterFragments(_0x52ecd1['mounts'],_0x34b011),_0x34b011),_0x52ecd1['ranges']['map'](_0x4e7253=>new Range(_0x4e7253['from']-_0x52ecd1['start'],_0x4e7253['to']-_0x52ecd1['start'])),_0x52ecd1['target'],_0x34b011[0x0]['from']))),_0x52ecd1=_0x52ecd1['prev'];}_0x1b9b47&&!--_0x1b9b47['depth']&&(_0x1b9b47=_0x1b9b47['prev']);}}}}function checkCover(_0xb3cce1,_0x3d7c48,_0x573e99){for(let _0x4e4cca of _0xb3cce1){if(_0x4e4cca['from']>=_0x573e99)break;if(_0x4e4cca['to']>_0x3d7c48)return _0x4e4cca['from']<=_0x3d7c48&&_0x4e4cca['to']>=_0x573e99?0x2:0x1;}return 0x0;}function sliceBuf(_0x4398d6,_0x73b5a3,_0x3ce270,_0x54f071,_0x25d8eb,_0x72506f){if(_0x73b5a3<_0x3ce270){let _0x284b30=_0x4398d6['buffer'][_0x73b5a3+0x1];_0x54f071['push'](_0x4398d6['slice'](_0x73b5a3,_0x3ce270,_0x284b30)),_0x25d8eb['push'](_0x284b30-_0x72506f);}}function materialize(_0x3e3836){let {node:_0x59d885}=_0x3e3836,_0x2cbda5=[],_0x5b631f=_0x59d885['context']['buffer'];do{_0x2cbda5['push'](_0x3e3836['index']),_0x3e3836['parent']();}while(!_0x3e3836['tree']);let _0x45a30d=_0x3e3836['tree'],_0x27cce5=_0x45a30d['children']['indexOf'](_0x5b631f),_0x48c9b7=_0x45a30d['children'][_0x27cce5],_0x227a5f=_0x48c9b7['buffer'],_0x2fb7a5=[_0x27cce5];_0x45a30d['children'][_0x27cce5]=function _0x5dd871(_0x18ec61,_0x3cd36e,_0x3d61e2,_0x331517,_0x2fb2c9,_0x39184f){let _0x13aea7=_0x2cbda5[_0x39184f],_0x28d39b=[],_0x1b2abf=[];sliceBuf(_0x48c9b7,_0x18ec61,_0x13aea7,_0x28d39b,_0x1b2abf,_0x331517);let _0x51b392=_0x227a5f[_0x13aea7+0x1],_0x3989c3=_0x227a5f[_0x13aea7+0x2];_0x2fb7a5['push'](_0x28d39b['length']);let _0x15c397=_0x39184f?_0x5dd871(_0x13aea7+0x4,_0x227a5f[_0x13aea7+0x3],_0x48c9b7['set']['types'][_0x227a5f[_0x13aea7]],_0x51b392,_0x3989c3-_0x51b392,_0x39184f-0x1):_0x59d885['toTree']();return _0x28d39b['push'](_0x15c397),_0x1b2abf['push'](_0x51b392-_0x331517),sliceBuf(_0x48c9b7,_0x227a5f[_0x13aea7+0x3],_0x3cd36e,_0x28d39b,_0x1b2abf,_0x331517),new Tree(_0x3d61e2,_0x28d39b,_0x1b2abf,_0x2fb2c9);}(0x0,_0x227a5f['length'],NodeType['none'],0x0,_0x48c9b7['length'],_0x2cbda5['length']-0x1);for(let _0x26fa1d of _0x2fb7a5){let _0x470f53=_0x3e3836['tree']['children'][_0x26fa1d],_0x269ec6=_0x3e3836['tree']['positions'][_0x26fa1d];_0x3e3836['yield'](new TreeNode(_0x470f53,_0x269ec6+_0x3e3836['from'],_0x26fa1d,_0x3e3836['_tree']));}}class StructureCursor{constructor(_0x22bf83,_0x2c4082){this['offset']=_0x2c4082,this['done']=!0x1,this['cursor']=_0x22bf83['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x24a077){let {cursor:_0x4f80ef}=this,_0x1068f3=_0x24a077-this['offset'];for(;!this['done']&&_0x4f80ef['from']<_0x1068f3;)_0x4f80ef['to']>=_0x24a077&&_0x4f80ef['enter'](_0x1068f3,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x4f80ef['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x348821){if(this['moveTo'](_0x348821['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x348821['from']&&this['cursor']['tree'])for(let _0x35185e=this['cursor']['tree'];;){if(_0x35185e==_0x348821['tree'])return!0x0;if(!(_0x35185e['children']['length']&&0x0==_0x35185e['positions'][0x0]&&_0x35185e['children'][0x0]instanceof Tree))break;_0x35185e=_0x35185e['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x4abaf7){var _0x4f82cb;if(this['fragments']=_0x4abaf7,this['curTo']=0x0,this['fragI']=0x0,_0x4abaf7['length']){let _0x1a27b0=this['curFrag']=_0x4abaf7[0x0];this['curTo']=null!==(_0x4f82cb=_0x1a27b0['tree']['prop'](stoppedInner))&&void 0x0!==_0x4f82cb?_0x4f82cb:_0x1a27b0['to'],this['inner']=new StructureCursor(_0x1a27b0['tree'],-_0x1a27b0['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x3527b7){for(;this['curFrag']&&_0x3527b7['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x3527b7['from']&&this['curTo']>=_0x3527b7['to']&&this['inner']['hasNode'](_0x3527b7);}['nextFrag'](){var _0x5d6699;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x5df1e4=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0x5d6699=_0x5df1e4['tree']['prop'](stoppedInner))&&void 0x0!==_0x5d6699?_0x5d6699:_0x5df1e4['to'],this['inner']=new StructureCursor(_0x5df1e4['tree'],-_0x5df1e4['offset']);}}['findMounts'](_0x36437e,_0x485d25){var _0x2d53e2;let _0x2485a7=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x36437e,0x1);for(let _0x4b5aec=this['inner']['cursor']['node'];_0x4b5aec;_0x4b5aec=_0x4b5aec['parent']){let _0x1d1068=null===(_0x2d53e2=_0x4b5aec['tree'])||void 0x0===_0x2d53e2?void 0x0:_0x2d53e2['prop'](NodeProp['mounted']);if(_0x1d1068&&_0x1d1068['parser']==_0x485d25)for(let _0x1436a8=this['fragI'];_0x1436a8<this['fragments']['length'];_0x1436a8++){let _0x1a8ecc=this['fragments'][_0x1436a8];if(_0x1a8ecc['from']>=_0x4b5aec['to'])break;_0x1a8ecc['tree']==this['curFrag']['tree']&&_0x2485a7['push']({'frag':_0x1a8ecc,'pos':_0x4b5aec['from']-_0x1a8ecc['offset'],'mount':_0x1d1068});}}}return _0x2485a7;}};function punchRanges(_0x30c309,_0x48f64f){let _0x1f20b9=null,_0x3eb3f8=_0x48f64f;for(let _0x39971a=0x1,_0x7b8c72=0x0;_0x39971a<_0x30c309['length'];_0x39971a++){let _0x146361=_0x30c309[_0x39971a-0x1]['to'],_0x12d24a=_0x30c309[_0x39971a]['from'];for(;_0x7b8c72<_0x3eb3f8['length'];_0x7b8c72++){let _0x7e2b2f=_0x3eb3f8[_0x7b8c72];if(_0x7e2b2f['from']>=_0x12d24a)break;_0x7e2b2f['to']<=_0x146361||(_0x1f20b9||(_0x3eb3f8=_0x1f20b9=_0x48f64f['slice']()),_0x7e2b2f['from']<_0x146361?(_0x1f20b9[_0x7b8c72]=new Range(_0x7e2b2f['from'],_0x146361),_0x7e2b2f['to']>_0x12d24a&&_0x1f20b9['splice'](_0x7b8c72+0x1,0x0,new Range(_0x12d24a,_0x7e2b2f['to']))):_0x7e2b2f['to']>_0x12d24a?_0x1f20b9[_0x7b8c72--]=new Range(_0x12d24a,_0x7e2b2f['to']):_0x1f20b9['splice'](_0x7b8c72--,0x1));}}return _0x3eb3f8;}function findCoverChanges(_0xcf9224,_0x15eb07,_0xf88ff6,_0x41d201){let _0x1c40f2=0x0,_0x1a923e=0x0,_0x48e48b=!0x1,_0x308781=!0x1,_0x3b2caf=-0x3b9aca00,_0x51d8e8=[];for(;;){let _0x49380e=_0x1c40f2==_0xcf9224['length']?0x3b9aca00:_0x48e48b?_0xcf9224[_0x1c40f2]['to']:_0xcf9224[_0x1c40f2]['from'],_0x1463e4=_0x1a923e==_0x15eb07['length']?0x3b9aca00:_0x308781?_0x15eb07[_0x1a923e]['to']:_0x15eb07[_0x1a923e]['from'];if(_0x48e48b!=_0x308781){let _0x251f74=Math['max'](_0x3b2caf,_0xf88ff6),_0x18fdb1=Math['min'](_0x49380e,_0x1463e4,_0x41d201);_0x251f74<_0x18fdb1&&_0x51d8e8['push'](new Range(_0x251f74,_0x18fdb1));}if(_0x3b2caf=Math['min'](_0x49380e,_0x1463e4),0x3b9aca00==_0x3b2caf)break;_0x49380e==_0x3b2caf&&(_0x48e48b?(_0x48e48b=!0x1,_0x1c40f2++):_0x48e48b=!0x0),_0x1463e4==_0x3b2caf&&(_0x308781?(_0x308781=!0x1,_0x1a923e++):_0x308781=!0x0);}return _0x51d8e8;}function enterFragments(_0x98a867,_0x54f9c8){let _0x4d5a70=[];for(let {pos:_0x470f58,mount:_0xcf925a,frag:_0xa8f325}of _0x98a867){let _0x375b70=_0x470f58+(_0xcf925a['overlay']?_0xcf925a['overlay'][0x0]['from']:0x0),_0x5d09d2=_0x375b70+_0xcf925a['tree']['length'],_0x313141=Math['max'](_0xa8f325['from'],_0x375b70),_0x1f9473=Math['min'](_0xa8f325['to'],_0x5d09d2);if(_0xcf925a['overlay']){let _0x1299c5=findCoverChanges(_0x54f9c8,_0xcf925a['overlay']['map'](_0x26c9ab=>new Range(_0x26c9ab['from']+_0x470f58,_0x26c9ab['to']+_0x470f58)),_0x313141,_0x1f9473);for(let _0x29f22d=0x0,_0x78cadc=_0x313141;;_0x29f22d++){let _0x2368f9=_0x29f22d==_0x1299c5['length'],_0x11de52=_0x2368f9?_0x1f9473:_0x1299c5[_0x29f22d]['from'];if(_0x11de52>_0x78cadc&&_0x4d5a70['push'](new TreeFragment(_0x78cadc,_0x11de52,_0xcf925a['tree'],-_0x375b70,_0xa8f325['from']>=_0x78cadc||_0xa8f325['openStart'],_0xa8f325['to']<=_0x11de52||_0xa8f325['openEnd'])),_0x2368f9)break;_0x78cadc=_0x1299c5[_0x29f22d]['to'];}}else _0x4d5a70['push'](new TreeFragment(_0x313141,_0x1f9473,_0xcf925a['tree'],-_0x375b70,_0xa8f325['from']>=_0x375b70||_0xa8f325['openStart'],_0xa8f325['to']<=_0x5d09d2||_0xa8f325['openEnd']));}return _0x4d5a70;}let nextTagID=0x0;class Tag{constructor(_0x3afeae,_0x570fe1,_0x2f1e6a,_0x1fd4f3){this['name']=_0x3afeae,this['set']=_0x570fe1,this['base']=_0x2f1e6a,this['modified']=_0x1fd4f3,this['id']=nextTagID++;}['toString'](){let {name:_0x16397f}=this;for(let _0x247a72 of this['modified'])_0x247a72['name']&&(_0x16397f=_0x247a72['name']+'('+_0x16397f+')');return _0x16397f;}static['define'](_0x17ae06,_0x4efc2c){let _0x5c52bd='string'==typeof _0x17ae06?_0x17ae06:'?';if(_0x17ae06 instanceof Tag&&(_0x4efc2c=_0x17ae06),null==_0x4efc2c?void 0x0:_0x4efc2c['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0x1a8d0c=new Tag(_0x5c52bd,[],null,[]);if(_0x1a8d0c['set']['push'](_0x1a8d0c),_0x4efc2c){for(let t of _0x4efc2c['set'])_0x1a8d0c['set']['push'](t);}return _0x1a8d0c;}static['defineModifier'](_0x4ef301){let _0x566d42=new Modifier(_0x4ef301);return _0xeb6c7c=>_0xeb6c7c['modified']['indexOf'](_0x566d42)>-0x1?_0xeb6c7c:Modifier['get'](_0xeb6c7c['base']||_0xeb6c7c,_0xeb6c7c['modified']['concat'](_0x566d42)['sort']((_0x37afdf,_0x5350c4)=>_0x37afdf['id']-_0x5350c4['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x4c59e0){this['name']=_0x4c59e0,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0xb8b20e,_0x216c5d){if(!_0x216c5d['length'])return _0xb8b20e;let _0x310f00=_0x216c5d[0x0]['instances']['find'](t=>t['base']==_0xb8b20e&&sameArray(_0x216c5d,t['modified']));if(_0x310f00)return _0x310f00;let _0x1726d9=[],_0x100de4=new Tag(_0xb8b20e['name'],_0x1726d9,_0xb8b20e,_0x216c5d);for(let _0x2577d1 of _0x216c5d)_0x2577d1['instances']['push'](_0x100de4);let _0x45b49a=powerSet(_0x216c5d);for(let _0x16ed7d of _0xb8b20e['set'])if(!_0x16ed7d['modified']['length']){for(let _0x2f56cb of _0x45b49a)_0x1726d9['push'](Modifier['get'](_0x16ed7d,_0x2f56cb));}return _0x100de4;}}function sameArray(_0x5bbf92,_0xc2d8f3){return _0x5bbf92['length']==_0xc2d8f3['length']&&_0x5bbf92['every']((_0x388bf4,_0x19c43b)=>_0x388bf4==_0xc2d8f3[_0x19c43b]);}function powerSet(_0x449dff){let _0x11afe4=[[]];for(let _0x3e9f6e=0x0;_0x3e9f6e<_0x449dff['length'];_0x3e9f6e++)for(let _0x29d001=0x0,_0x40a4b7=_0x11afe4['length'];_0x29d001<_0x40a4b7;_0x29d001++)_0x11afe4['push'](_0x11afe4[_0x29d001]['concat'](_0x449dff[_0x3e9f6e]));return _0x11afe4['sort']((_0x5ee0bd,_0xecbb3f)=>_0xecbb3f['length']-_0x5ee0bd['length']);}function styleTags(_0x2b7b14){let _0x114682=Object['create'](null);for(let _0x4916d1 in _0x2b7b14){let _0x2c5608=_0x2b7b14[_0x4916d1];Array['isArray'](_0x2c5608)||(_0x2c5608=[_0x2c5608]);for(let _0x2bd625 of _0x4916d1['split']('\x20'))if(_0x2bd625){let _0x510f99=[],_0x235d54=0x2,_0xa5359c=_0x2bd625;for(let _0x309421=0x0;;){if('...'==_0xa5359c&&_0x309421>0x0&&_0x309421+0x3==_0x2bd625['length']){_0x235d54=0x1;break;}let _0x243baf=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0xa5359c);if(!_0x243baf)throw new RangeError('Invalid\x20path:\x20'+_0x2bd625);if(_0x510f99['push']('*'==_0x243baf[0x0]?'':'\x22'==_0x243baf[0x0][0x0]?JSON['parse'](_0x243baf[0x0]):_0x243baf[0x0]),_0x309421+=_0x243baf[0x0]['length'],_0x309421==_0x2bd625['length'])break;let _0xb55594=_0x2bd625[_0x309421++];if(_0x309421==_0x2bd625['length']&&'!'==_0xb55594){_0x235d54=0x0;break;}if('/'!=_0xb55594)throw new RangeError('Invalid\x20path:\x20'+_0x2bd625);_0xa5359c=_0x2bd625['slice'](_0x309421);}let _0x723b83=_0x510f99['length']-0x1,_0x73869b=_0x510f99[_0x723b83];if(!_0x73869b)throw new RangeError('Invalid\x20path:\x20'+_0x2bd625);let _0xa2f557=new Rule(_0x2c5608,_0x235d54,_0x723b83>0x0?_0x510f99['slice'](0x0,_0x723b83):null);_0x114682[_0x73869b]=_0xa2f557['sort'](_0x114682[_0x73869b]);}}return ruleNodeProp['add'](_0x114682);}const ruleNodeProp=new NodeProp({'combine'(_0x3e7319,_0x546817){let _0x45d07a,_0x1359a3,_0x21338a;for(;_0x3e7319||_0x546817;){if(!_0x3e7319||_0x546817&&_0x3e7319['depth']>=_0x546817['depth']?(_0x21338a=_0x546817,_0x546817=_0x546817['next']):(_0x21338a=_0x3e7319,_0x3e7319=_0x3e7319['next']),_0x45d07a&&_0x45d07a['mode']==_0x21338a['mode']&&!_0x21338a['context']&&!_0x45d07a['context'])continue;let _0x40566d=new Rule(_0x21338a['tags'],_0x21338a['mode'],_0x21338a['context']);_0x45d07a?_0x45d07a['next']=_0x40566d:_0x1359a3=_0x40566d,_0x45d07a=_0x40566d;}return _0x1359a3;}});class Rule{constructor(_0xd2ee13,_0x334ce2,_0x3e0b6b,_0x15495e){this['tags']=_0xd2ee13,this['mode']=_0x334ce2,this['context']=_0x3e0b6b,this['next']=_0x15495e;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x424f2a){return!_0x424f2a||_0x424f2a['depth']<this['depth']?(this['next']=_0x424f2a,this):(_0x424f2a['next']=this['sort'](_0x424f2a['next']),_0x424f2a);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x36c894,_0x2d36b2){let _0x448d99=Object['create'](null);for(let _0x8132de of _0x36c894)if(Array['isArray'](_0x8132de['tag'])){for(let _0x3ec0b0 of _0x8132de['tag'])_0x448d99[_0x3ec0b0['id']]=_0x8132de['class'];}else _0x448d99[_0x8132de['tag']['id']]=_0x8132de['class'];let {scope:_0x124253,all:_0x44caf5=null}=_0x2d36b2||{};return{'style':_0x28d270=>{let _0x3781b6=_0x44caf5;for(let _0x322da5 of _0x28d270)for(let _0x2c7bda of _0x322da5['set']){let _0x3f0070=_0x448d99[_0x2c7bda['id']];if(_0x3f0070){_0x3781b6=_0x3781b6?_0x3781b6+'\x20'+_0x3f0070:_0x3f0070;break;}}return _0x3781b6;},'scope':_0x124253};}function highlightTags(_0x3a01f6,_0x44c9d2){let _0x3a6567=null;for(let _0x2b55d4 of _0x3a01f6){let _0x4ab947=_0x2b55d4['style'](_0x44c9d2);_0x4ab947&&(_0x3a6567=_0x3a6567?_0x3a6567+'\x20'+_0x4ab947:_0x4ab947);}return _0x3a6567;}function highlightTree(_0x3ed3ca,_0x1c23f7,_0x418353,_0x4579b4=0x0,_0x481d8d=_0x3ed3ca['length']){let _0x32ea14=new HighlightBuilder(_0x4579b4,Array['isArray'](_0x1c23f7)?_0x1c23f7:[_0x1c23f7],_0x418353);_0x32ea14['highlightRange'](_0x3ed3ca['cursor'](),_0x4579b4,_0x481d8d,'',_0x32ea14['highlighters']),_0x32ea14['flush'](_0x481d8d);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0x305f43,_0x2ec7ec,_0x400028){this['at']=_0x305f43,this['highlighters']=_0x2ec7ec,this['span']=_0x400028,this['class']='';}['startSpan'](_0x4359fd,_0x2db28d){_0x2db28d!=this['class']&&(this['flush'](_0x4359fd),_0x4359fd>this['at']&&(this['at']=_0x4359fd),this['class']=_0x2db28d);}['flush'](_0x22f33e){_0x22f33e>this['at']&&this['class']&&this['span'](this['at'],_0x22f33e,this['class']);}['highlightRange'](_0x5140ba,_0x3c40c9,_0x240ca1,_0x548a8f,_0x21ca68){let {type:_0x4ef127,from:_0x39b51b,to:_0x29d6e2}=_0x5140ba;if(_0x39b51b>=_0x240ca1||_0x29d6e2<=_0x3c40c9)return;_0x4ef127['isTop']&&(_0x21ca68=this['highlighters']['filter'](_0x1f0c08=>!_0x1f0c08['scope']||_0x1f0c08['scope'](_0x4ef127)));let _0x149aa6=_0x548a8f,_0x2888b5=getStyleTags(_0x5140ba)||Rule['empty'],_0x3c0dac=highlightTags(_0x21ca68,_0x2888b5['tags']);if(_0x3c0dac&&(_0x149aa6&&(_0x149aa6+='\x20'),_0x149aa6+=_0x3c0dac,0x1==_0x2888b5['mode']&&(_0x548a8f+=(_0x548a8f?'\x20':'')+_0x3c0dac)),this['startSpan'](Math['max'](_0x3c40c9,_0x39b51b),_0x149aa6),_0x2888b5['opaque'])return;let _0x26429b=_0x5140ba['tree']&&_0x5140ba['tree']['prop'](NodeProp['mounted']);if(_0x26429b&&_0x26429b['overlay']){let _0x5cc7ea=_0x5140ba['node']['enter'](_0x26429b['overlay'][0x0]['from']+_0x39b51b,0x1),_0x96f1e=this['highlighters']['filter'](_0x3a0e9c=>!_0x3a0e9c['scope']||_0x3a0e9c['scope'](_0x26429b['tree']['type'])),_0x5d99cb=_0x5140ba['firstChild']();for(let _0x59a52c=0x0,_0x33c0d3=_0x39b51b;;_0x59a52c++){let _0x4c7ecb=_0x59a52c<_0x26429b['overlay']['length']?_0x26429b['overlay'][_0x59a52c]:null,_0x10daff=_0x4c7ecb?_0x4c7ecb['from']+_0x39b51b:_0x29d6e2,_0x58de0e=Math['max'](_0x3c40c9,_0x33c0d3),_0x2f3ca0=Math['min'](_0x240ca1,_0x10daff);if(_0x58de0e<_0x2f3ca0&&_0x5d99cb){for(;_0x5140ba['from']<_0x2f3ca0&&(this['highlightRange'](_0x5140ba,_0x58de0e,_0x2f3ca0,_0x548a8f,_0x21ca68),this['startSpan'](Math['min'](_0x2f3ca0,_0x5140ba['to']),_0x149aa6),!(_0x5140ba['to']>=_0x10daff)&&_0x5140ba['nextSibling']()););}if(!_0x4c7ecb||_0x10daff>_0x240ca1)break;_0x33c0d3=_0x4c7ecb['to']+_0x39b51b,_0x33c0d3>_0x3c40c9&&(this['highlightRange'](_0x5cc7ea['cursor'](),Math['max'](_0x3c40c9,_0x4c7ecb['from']+_0x39b51b),Math['min'](_0x240ca1,_0x33c0d3),'',_0x96f1e),this['startSpan'](Math['min'](_0x240ca1,_0x33c0d3),_0x149aa6));}_0x5d99cb&&_0x5140ba['parent']();}else{if(_0x5140ba['firstChild']()){_0x26429b&&(_0x548a8f='');do{if(!(_0x5140ba['to']<=_0x3c40c9)){if(_0x5140ba['from']>=_0x240ca1)break;this['highlightRange'](_0x5140ba,_0x3c40c9,_0x240ca1,_0x548a8f,_0x21ca68),this['startSpan'](Math['min'](_0x240ca1,_0x5140ba['to']),_0x149aa6);}}while(_0x5140ba['nextSibling']());_0x5140ba['parent']();}}}}function getStyleTags(_0x844f4f){let _0x463160=_0x844f4f['type']['prop'](ruleNodeProp);for(;_0x463160&&_0x463160['context']&&!_0x844f4f['matchContext'](_0x463160['context']);)_0x463160=_0x463160['next'];return _0x463160||null;}const t=Tag['define'],comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string=t(literal),number=t(literal),content=t(),heading=t(content),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta=t(),tags$1={'comment':comment,'lineComment':t(comment),'blockComment':t(comment),'docComment':t(comment),'name':name,'variableName':t(name),'typeName':typeName,'tagName':t(typeName),'propertyName':propertyName,'attributeName':t(propertyName),'className':t(name),'labelName':t(name),'namespace':t(name),'macroName':t(name),'literal':literal,'string':string,'docString':t(string),'character':t(string),'attributeValue':t(string),'number':number,'integer':t(number),'float':t(number),'bool':t(literal),'regexp':t(literal),'escape':t(literal),'color':t(literal),'url':t(literal),'keyword':keyword,'self':t(keyword),'null':t(keyword),'atom':t(keyword),'unit':t(keyword),'modifier':t(keyword),'operatorKeyword':t(keyword),'controlKeyword':t(keyword),'definitionKeyword':t(keyword),'moduleKeyword':t(keyword),'operator':operator,'derefOperator':t(operator),'arithmeticOperator':t(operator),'logicOperator':t(operator),'bitwiseOperator':t(operator),'compareOperator':t(operator),'updateOperator':t(operator),'definitionOperator':t(operator),'typeOperator':t(operator),'controlOperator':t(operator),'punctuation':punctuation,'separator':t(punctuation),'bracket':bracket,'angleBracket':t(bracket),'squareBracket':t(bracket),'paren':t(bracket),'brace':t(bracket),'content':content,'heading':heading,'heading1':t(heading),'heading2':t(heading),'heading3':t(heading),'heading4':t(heading),'heading5':t(heading),'heading6':t(heading),'contentSeparator':t(content),'list':t(content),'quote':t(content),'emphasis':t(content),'strong':t(content),'link':t(content),'monospace':t(content),'strikethrough':t(content),'inserted':t(),'deleted':t(),'changed':t(),'invalid':t(),'meta':meta,'documentMeta':t(meta),'annotation':t(meta),'processingInstruction':t(meta),'definition':Tag['defineModifier']('definition'),'constant':Tag['defineModifier']('constant'),'function':Tag['defineModifier']('function'),'standard':Tag['defineModifier']('standard'),'local':Tag['defineModifier']('local'),'special':Tag['defineModifier']('special')};for(let e in tags$1){let i=tags$1[e];i instanceof Tag&&(i['name']=e);}var _a$1;tagHighlighter([{'tag':tags$1['link'],'class':'tok-link'},{'tag':tags$1['heading'],'class':'tok-heading'},{'tag':tags$1['emphasis'],'class':'tok-emphasis'},{'tag':tags$1['strong'],'class':'tok-strong'},{'tag':tags$1['keyword'],'class':'tok-keyword'},{'tag':tags$1['atom'],'class':'tok-atom'},{'tag':tags$1['bool'],'class':'tok-bool'},{'tag':tags$1['url'],'class':'tok-url'},{'tag':tags$1['labelName'],'class':'tok-labelName'},{'tag':tags$1['inserted'],'class':'tok-inserted'},{'tag':tags$1['deleted'],'class':'tok-deleted'},{'tag':tags$1['literal'],'class':'tok-literal'},{'tag':tags$1['string'],'class':'tok-string'},{'tag':tags$1['number'],'class':'tok-number'},{'tag':[tags$1['regexp'],tags$1['escape'],tags$1['special'](tags$1['string'])],'class':'tok-string2'},{'tag':tags$1['variableName'],'class':'tok-variableName'},{'tag':tags$1['local'](tags$1['variableName']),'class':'tok-variableName\x20tok-local'},{'tag':tags$1['definition'](tags$1['variableName']),'class':'tok-variableName\x20tok-definition'},{'tag':tags$1['special'](tags$1['variableName']),'class':'tok-variableName2'},{'tag':tags$1['definition'](tags$1['propertyName']),'class':'tok-propertyName\x20tok-definition'},{'tag':tags$1['typeName'],'class':'tok-typeName'},{'tag':tags$1['namespace'],'class':'tok-namespace'},{'tag':tags$1['className'],'class':'tok-className'},{'tag':tags$1['macroName'],'class':'tok-macroName'},{'tag':tags$1['propertyName'],'class':'tok-propertyName'},{'tag':tags$1['operator'],'class':'tok-operator'},{'tag':tags$1['comment'],'class':'tok-comment'},{'tag':tags$1['meta'],'class':'tok-meta'},{'tag':tags$1['invalid'],'class':'tok-invalid'},{'tag':tags$1['punctuation'],'class':'tok-punctuation'}]);const languageDataProp=new NodeProp();function defineLanguageFacet(_0x2fa718){return Facet['define']({'combine':_0x2fa718?_0x1ca8f3=>_0x1ca8f3['concat'](_0x2fa718):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x4c19c7,_0x2cc633,_0x47e25b=[],_0x4d8ad0=''){this['data']=_0x4c19c7,this['name']=_0x4d8ad0,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x2cc633,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0x1f66b7,_0x4afcc3,_0x213657)=>{let _0x6a8ce8=topNodeAt(_0x1f66b7,_0x4afcc3,_0x213657),_0x3f1b6f=_0x6a8ce8['type']['prop'](languageDataProp);if(!_0x3f1b6f)return[];let _0x45ddd0=_0x1f66b7['facet'](_0x3f1b6f),_0x19a38f=_0x6a8ce8['type']['prop'](sublanguageProp);if(_0x19a38f){let _0x3deba2=_0x6a8ce8['resolve'](_0x4afcc3-_0x6a8ce8['from'],_0x213657);for(let _0x31a9e7 of _0x19a38f)if(_0x31a9e7['test'](_0x3deba2,_0x1f66b7)){let _0x4266c8=_0x1f66b7['facet'](_0x31a9e7['facet']);return'replace'==_0x31a9e7['type']?_0x4266c8:_0x4266c8['concat'](_0x45ddd0);}}return _0x45ddd0;})]['concat'](_0x47e25b);}['isActiveAt'](_0x52d0d0,_0x5792c2,_0x48ad2c=-0x1){return topNodeAt(_0x52d0d0,_0x5792c2,_0x48ad2c)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x47b080){let _0x20162e=_0x47b080['facet'](language);if((null==_0x20162e?void 0x0:_0x20162e['data'])==this['data'])return[{'from':0x0,'to':_0x47b080['doc']['length']}];if(!_0x20162e||!_0x20162e['allowsNesting'])return[];let _0x5891ce=[],_0x49aae4=(_0x4085fa,_0x52d4d3)=>{if(_0x4085fa['prop'](languageDataProp)==this['data'])return void _0x5891ce['push']({'from':_0x52d4d3,'to':_0x52d4d3+_0x4085fa['length']});let _0x7b4ff4=_0x4085fa['prop'](NodeProp['mounted']);if(_0x7b4ff4){if(_0x7b4ff4['tree']['prop'](languageDataProp)==this['data']){if(_0x7b4ff4['overlay']){for(let _0x32c973 of _0x7b4ff4['overlay'])_0x5891ce['push']({'from':_0x32c973['from']+_0x52d4d3,'to':_0x32c973['to']+_0x52d4d3});}else _0x5891ce['push']({'from':_0x52d4d3,'to':_0x52d4d3+_0x4085fa['length']});return;}if(_0x7b4ff4['overlay']){let _0x5eff61=_0x5891ce['length'];if(_0x49aae4(_0x7b4ff4['tree'],_0x7b4ff4['overlay'][0x0]['from']+_0x52d4d3),_0x5891ce['length']>_0x5eff61)return;}}for(let _0x54a432=0x0;_0x54a432<_0x4085fa['children']['length'];_0x54a432++){let _0x376c23=_0x4085fa['children'][_0x54a432];_0x376c23 instanceof Tree&&_0x49aae4(_0x376c23,_0x4085fa['positions'][_0x54a432]+_0x52d4d3);}};return _0x49aae4(syntaxTree(_0x47b080),0x0),_0x5891ce;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0xac7e36,_0x198b43,_0x402507){let _0x325d71=_0xac7e36['facet'](language),_0x250a81=syntaxTree(_0xac7e36)['topNode'];if(!_0x325d71||_0x325d71['allowsNesting']){for(let _0x296f00=_0x250a81;_0x296f00;_0x296f00=_0x296f00['enter'](_0x198b43,_0x402507,IterMode['ExcludeBuffers']))_0x296f00['type']['isTop']&&(_0x250a81=_0x296f00);}return _0x250a81;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x200e1a,_0x310ef6,_0x5efca2){super(_0x200e1a,_0x310ef6,[],_0x5efca2),this['parser']=_0x310ef6;}static['define'](_0x5936b6){let _0x356813=defineLanguageFacet(_0x5936b6['languageData']);return new LRLanguage(_0x356813,_0x5936b6['parser']['configure']({'props':[languageDataProp['add'](_0x267b70=>_0x267b70['isTop']?_0x356813:void 0x0)]}),_0x5936b6['name']);}['configure'](_0x22ec46,_0x2fdc36){return new LRLanguage(this['data'],this['parser']['configure'](_0x22ec46),_0x2fdc36||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0xec755a){let _0x4931e9=_0xec755a['field'](Language['state'],!0x1);return _0x4931e9?_0x4931e9['tree']:Tree['empty'];}class DocInput{constructor(_0x3b64c2){this['doc']=_0x3b64c2,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x3b64c2['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x5467c7){return this['string']=this['cursor']['next'](_0x5467c7-this['cursorPos'])['value'],this['cursorPos']=_0x5467c7+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x19cc4e){return this['syncTo'](_0x19cc4e),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x30aecb,_0x2a613a){let _0x1b5bbd=this['cursorPos']-this['string']['length'];return _0x30aecb<_0x1b5bbd||_0x2a613a>=this['cursorPos']?this['doc']['sliceString'](_0x30aecb,_0x2a613a):this['string']['slice'](_0x30aecb-_0x1b5bbd,_0x2a613a-_0x1b5bbd);}}let currentContext=null;class ParseContext{constructor(_0x547945,_0x334453,_0x1936d4=[],_0x27cc90,_0x72dc7b,_0x265265,_0x2aa17b,_0x3b3a43){this['parser']=_0x547945,this['state']=_0x334453,this['fragments']=_0x1936d4,this['tree']=_0x27cc90,this['treeLen']=_0x72dc7b,this['viewport']=_0x265265,this['skipped']=_0x2aa17b,this['scheduleOn']=_0x3b3a43,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x33f21a,_0x43b0a9,_0x1d41a5){return new ParseContext(_0x33f21a,_0x43b0a9,[],Tree['empty'],0x0,_0x1d41a5,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x4b0e8b,_0x4b505f){return null!=_0x4b505f&&_0x4b505f>=this['state']['doc']['length']&&(_0x4b505f=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x4b505f?_0x4b505f:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x34249e;if('number'==typeof _0x4b0e8b){let _0x5a94d4=Date['now']()+_0x4b0e8b;_0x4b0e8b=()=>Date['now']()>_0x5a94d4;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x4b505f&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x4b505f)&&_0x4b505f<this['state']['doc']['length']&&this['parse']['stopAt'](_0x4b505f);;){let _0x5e30db=this['parse']['advance']();if(_0x5e30db){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x5e30db,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x34249e=this['parse']['stoppedAt'])&&void 0x0!==_0x34249e?_0x34249e:this['state']['doc']['length'],this['tree']=_0x5e30db,this['parse']=null,!(this['treeLen']<(null!=_0x4b505f?_0x4b505f:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x4b0e8b())return!0x1;}});}['takeTree'](){let _0x44ac26,_0x3a64b3;this['parse']&&(_0x44ac26=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x44ac26)&&this['parse']['stopAt'](_0x44ac26),this['withContext'](()=>{for(;!(_0x3a64b3=this['parse']['advance']()););}),this['treeLen']=_0x44ac26,this['tree']=_0x3a64b3,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0x25a055){let _0xf93bbf=currentContext;currentContext=this;try{return _0x25a055();}finally{currentContext=_0xf93bbf;}}['withoutTempSkipped'](_0x582a38){for(let _0x17b856;_0x17b856=this['tempSkipped']['pop']();)_0x582a38=cutFragments(_0x582a38,_0x17b856['from'],_0x17b856['to']);return _0x582a38;}['changes'](_0x34afab,_0x29cf64){let {fragments:_0x455215,tree:_0x4b4d7d,treeLen:_0x4e52b2,viewport:_0x4dea77,skipped:_0x11056e}=this;if(this['takeTree'](),!_0x34afab['empty']){let _0x5c4dcd=[];if(_0x34afab['iterChangedRanges']((_0x4293b0,_0x30eee0,_0xae6378,_0x383131)=>_0x5c4dcd['push']({'fromA':_0x4293b0,'toA':_0x30eee0,'fromB':_0xae6378,'toB':_0x383131})),_0x455215=TreeFragment['applyChanges'](_0x455215,_0x5c4dcd),_0x4b4d7d=Tree['empty'],_0x4e52b2=0x0,_0x4dea77={'from':_0x34afab['mapPos'](_0x4dea77['from'],-0x1),'to':_0x34afab['mapPos'](_0x4dea77['to'],0x1)},this['skipped']['length']){_0x11056e=[];for(let _0x3d264e of this['skipped']){let _0x1bef85=_0x34afab['mapPos'](_0x3d264e['from'],0x1),_0x4ecf49=_0x34afab['mapPos'](_0x3d264e['to'],-0x1);_0x1bef85<_0x4ecf49&&_0x11056e['push']({'from':_0x1bef85,'to':_0x4ecf49});}}}return new ParseContext(this['parser'],_0x29cf64,_0x455215,_0x4b4d7d,_0x4e52b2,_0x4dea77,_0x11056e,this['scheduleOn']);}['updateViewport'](_0x6e0e82){if(this['viewport']['from']==_0x6e0e82['from']&&this['viewport']['to']==_0x6e0e82['to'])return!0x1;this['viewport']=_0x6e0e82;let _0x3dd6c5=this['skipped']['length'];for(let _0x2f5561=0x0;_0x2f5561<this['skipped']['length'];_0x2f5561++){let {from:_0x37ed36,to:_0x2ad0ab}=this['skipped'][_0x2f5561];_0x37ed36<_0x6e0e82['to']&&_0x2ad0ab>_0x6e0e82['from']&&(this['fragments']=cutFragments(this['fragments'],_0x37ed36,_0x2ad0ab),this['skipped']['splice'](_0x2f5561--,0x1));}return!(this['skipped']['length']>=_0x3dd6c5)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x591c1d,_0x589ecf){this['skipped']['push']({'from':_0x591c1d,'to':_0x589ecf});}static['getSkippingParser'](_0x21a431){return new class extends Parser{['createParse'](_0x2fd244,_0x29caa5,_0xfb0b02){let _0x3c6340=_0xfb0b02[0x0]['from'],_0x143f5e=_0xfb0b02[_0xfb0b02['length']-0x1]['to'];return{'parsedPos':_0x3c6340,'advance'(){let _0x170a96=currentContext;if(_0x170a96){for(let _0x73cc1a of _0xfb0b02)_0x170a96['tempSkipped']['push'](_0x73cc1a);_0x21a431&&(_0x170a96['scheduleOn']=_0x170a96['scheduleOn']?Promise['all']([_0x170a96['scheduleOn'],_0x21a431]):_0x21a431);}return this['parsedPos']=_0x143f5e,new Tree(NodeType['none'],[],[],_0x143f5e-_0x3c6340);},'stoppedAt':null,'stopAt'(){}};}}();}['isDone'](_0x28ac65){_0x28ac65=Math['min'](_0x28ac65,this['state']['doc']['length']);let _0x421053=this['fragments'];return this['treeLen']>=_0x28ac65&&_0x421053['length']&&0x0==_0x421053[0x0]['from']&&_0x421053[0x0]['to']>=_0x28ac65;}static['get'](){return currentContext;}}function cutFragments(_0x3ca5c6,_0x15b90c,_0xbd0990){return TreeFragment['applyChanges'](_0x3ca5c6,[{'fromA':_0x15b90c,'toA':_0xbd0990,'fromB':_0x15b90c,'toB':_0xbd0990}]);}class LanguageState{constructor(_0x469be9){this['context']=_0x469be9,this['tree']=_0x469be9['tree'];}['apply'](_0x197c6d){if(!_0x197c6d['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x2989bc=this['context']['changes'](_0x197c6d['changes'],_0x197c6d['state']),_0x5ea676=this['context']['treeLen']==_0x197c6d['startState']['doc']['length']?void 0x0:Math['max'](_0x197c6d['changes']['mapPos'](this['context']['treeLen']),_0x2989bc['viewport']['to']);return _0x2989bc['work'](0x14,_0x5ea676)||_0x2989bc['takeTree'](),new LanguageState(_0x2989bc);}static['init'](_0xd3d833){let _0x4f35a2=Math['min'](0xbb8,_0xd3d833['doc']['length']),_0x32b41b=ParseContext['create'](_0xd3d833['facet'](language)['parser'],_0xd3d833,{'from':0x0,'to':_0x4f35a2});return _0x32b41b['work'](0x14,_0x4f35a2)||_0x32b41b['takeTree'](),new LanguageState(_0x32b41b);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0x46b1c1,_0x7abf5f){for(let _0x385b36 of _0x7abf5f['effects'])if(_0x385b36['is'](Language['setState']))return _0x385b36['value'];return _0x7abf5f['startState']['facet'](language)!=_0x7abf5f['state']['facet'](language)?LanguageState['init'](_0x7abf5f['state']):_0x46b1c1['apply'](_0x7abf5f);}});let requestIdle=_0x5bf372=>{let _0x4014d8=setTimeout(()=>_0x5bf372(),0x1f4);return()=>clearTimeout(_0x4014d8);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x35813b=>{let _0x5dd828=-0x1,_0x581e2f=setTimeout(()=>{_0x5dd828=requestIdleCallback(_0x35813b,{'timeout':0x190});},0x64);return()=>_0x5dd828<0x0?clearTimeout(_0x581e2f):cancelIdleCallback(_0x5dd828);});const isInputPending='undefined'!=typeof navigator&&(null===(_a$1=navigator['scheduling'])||void 0x0===_a$1?void 0x0:_a$1['isInputPending'])?()=>navigator['scheduling']['isInputPending']():null,parseWorker=ViewPlugin['fromClass'](class{constructor(_0x43e563){this['view']=_0x43e563,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x2bb9a8){let _0x38c338=this['view']['state']['field'](Language['state'])['context'];(_0x38c338['updateViewport'](_0x2bb9a8['view']['viewport'])||this['view']['viewport']['to']>_0x38c338['treeLen'])&&this['scheduleWork'](),(_0x2bb9a8['docChanged']||_0x2bb9a8['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x38c338);}['scheduleWork'](){if(this['working'])return;let {state:_0x20b3f3}=this['view'],_0x412681=_0x20b3f3['field'](Language['state']);_0x412681['tree']==_0x412681['context']['tree']&&_0x412681['context']['isDone'](_0x20b3f3['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0x36e204){this['working']=null;let _0x426f06=Date['now']();if(this['chunkEnd']<_0x426f06&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x426f06+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x13cdb8,viewport:{to:_0x65b5d4}}=this['view'],_0x5ee004=_0x13cdb8['field'](Language['state']);if(_0x5ee004['tree']==_0x5ee004['context']['tree']&&_0x5ee004['context']['isDone'](_0x65b5d4+0x186a0))return;let _0x2a2e38=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0x36e204&&!isInputPending?Math['max'](0x19,_0x36e204['timeRemaining']()-0x5):0x3b9aca00),_0x15b3df=_0x5ee004['context']['treeLen']<_0x65b5d4&&_0x13cdb8['doc']['length']>_0x65b5d4+0x3e8,_0x2261c8=_0x5ee004['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0x2a2e38,_0x65b5d4+(_0x15b3df?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x426f06,(_0x2261c8||this['chunkBudget']<=0x0)&&(_0x5ee004['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x5ee004['context']))})),this['chunkBudget']>0x0&&(!_0x2261c8||_0x15b3df)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x5ee004['context']);}['checkAsyncSchedule'](_0x205281){_0x205281['scheduleOn']&&(this['workScheduled']++,_0x205281['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x1d03fa=>logException(this['view']['state'],_0x1d03fa))['then'](()=>this['workScheduled']--),_0x205281['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0xbaedd=>_0xbaedd['length']?_0xbaedd[0x0]:null,'enables':_0x84dc43=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x84dc43],_0x448fa8=>{let _0x48799b=_0x448fa8['facet'](_0x84dc43);return _0x48799b&&_0x48799b['name']?{'data-language':_0x48799b['name']}:{};})]});class LanguageSupport{constructor(_0x46d4c4,_0x44db7f=[]){this['language']=_0x46d4c4,this['support']=_0x44db7f,this['extension']=[_0x46d4c4,_0x44db7f];}}class LanguageDescription{constructor(_0xdc8e4a,_0x110186,_0x221ad1,_0x5d48d6,_0x25d738,_0x4cbcd6=void 0x0){this['name']=_0xdc8e4a,this['alias']=_0x110186,this['extensions']=_0x221ad1,this['filename']=_0x5d48d6,this['loadFunc']=_0x25d738,this['support']=_0x4cbcd6,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0x4f0f85=>this['support']=_0x4f0f85,_0x57a867=>{throw this['loading']=null,_0x57a867;}));}static['of'](_0xdb9f08){let {load:_0x32dd28,support:_0x351064}=_0xdb9f08;if(!_0x32dd28){if(!_0x351064)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x32dd28=()=>Promise['resolve'](_0x351064);}return new LanguageDescription(_0xdb9f08['name'],(_0xdb9f08['alias']||[])['concat'](_0xdb9f08['name'])['map'](_0x27c7de=>_0x27c7de['toLowerCase']()),_0xdb9f08['extensions']||[],_0xdb9f08['filename'],_0x32dd28,_0x351064);}static['matchFilename'](_0x2b753e,_0x3b4a43){for(let _0x5246df of _0x2b753e)if(_0x5246df['filename']&&_0x5246df['filename']['test'](_0x3b4a43))return _0x5246df;let _0x1222ee=/\.([^.]+)$/['exec'](_0x3b4a43);if(_0x1222ee){for(let _0x152589 of _0x2b753e)if(_0x152589['extensions']['indexOf'](_0x1222ee[0x1])>-0x1)return _0x152589;}return null;}static['matchLanguageName'](_0x512dd0,_0x3f41d2,_0xf9c6fa=!0x0){_0x3f41d2=_0x3f41d2['toLowerCase']();for(let _0x123033 of _0x512dd0)if(_0x123033['alias']['some'](_0x11d761=>_0x11d761==_0x3f41d2))return _0x123033;if(_0xf9c6fa){for(let _0x5c1169 of _0x512dd0)for(let _0x1202f4 of _0x5c1169['alias']){let _0x59239f=_0x3f41d2['indexOf'](_0x1202f4);if(_0x59239f>-0x1&&(_0x1202f4['length']>0x2||!/\w/['test'](_0x3f41d2[_0x59239f-0x1])&&!/\w/['test'](_0x3f41d2[_0x59239f+_0x1202f4['length']])))return _0x5c1169;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x186e89=>{if(!_0x186e89['length'])return'\x20\x20';let _0x11821c=_0x186e89[0x0];if(!_0x11821c||/\S/['test'](_0x11821c)||Array['from'](_0x11821c)['some'](_0x235674=>_0x235674!=_0x11821c[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x186e89[0x0]));return _0x11821c;}});function getIndentUnit(_0x5f0ac7){let _0x322a9a=_0x5f0ac7['facet'](indentUnit);return 0x9==_0x322a9a['charCodeAt'](0x0)?_0x5f0ac7['tabSize']*_0x322a9a['length']:_0x322a9a['length'];}function indentString(_0x321099,_0x186b60){let _0x3af499='',_0x2cebfc=_0x321099['tabSize'],_0x235ea8=_0x321099['facet'](indentUnit)[0x0];if('\x09'==_0x235ea8){for(;_0x186b60>=_0x2cebfc;)_0x3af499+='\x09',_0x186b60-=_0x2cebfc;_0x235ea8='\x20';}for(let _0x46a5a1=0x0;_0x46a5a1<_0x186b60;_0x46a5a1++)_0x3af499+=_0x235ea8;return _0x3af499;}function getIndentation(_0x692954,_0x433735){_0x692954 instanceof EditorState&&(_0x692954=new IndentContext(_0x692954));for(let _0x1395e8 of _0x692954['state']['facet'](indentService)){let _0x41ecef=_0x1395e8(_0x692954,_0x433735);if(void 0x0!==_0x41ecef)return _0x41ecef;}let _0x3efd8c=syntaxTree(_0x692954['state']);return _0x3efd8c['length']>=_0x433735?syntaxIndentation(_0x692954,_0x3efd8c,_0x433735):null;}class IndentContext{constructor(_0x49d692,_0x51d215={}){this['state']=_0x49d692,this['options']=_0x51d215,this['unit']=getIndentUnit(_0x49d692);}['lineAt'](_0x273a35,_0x3c473c=0x1){let _0x3ca1eb=this['state']['doc']['lineAt'](_0x273a35),{simulateBreak:_0xdcd1b8,simulateDoubleBreak:_0x285a2e}=this['options'];return null!=_0xdcd1b8&&_0xdcd1b8>=_0x3ca1eb['from']&&_0xdcd1b8<=_0x3ca1eb['to']?_0x285a2e&&_0xdcd1b8==_0x273a35?{'text':'','from':_0x273a35}:(_0x3c473c<0x0?_0xdcd1b8<_0x273a35:_0xdcd1b8<=_0x273a35)?{'text':_0x3ca1eb['text']['slice'](_0xdcd1b8-_0x3ca1eb['from']),'from':_0xdcd1b8}:{'text':_0x3ca1eb['text']['slice'](0x0,_0xdcd1b8-_0x3ca1eb['from']),'from':_0x3ca1eb['from']}:_0x3ca1eb;}['textAfterPos'](_0xc5a2e9,_0xbb955b=0x1){if(this['options']['simulateDoubleBreak']&&_0xc5a2e9==this['options']['simulateBreak'])return'';let {text:_0x3b7abd,from:_0x44fa7f}=this['lineAt'](_0xc5a2e9,_0xbb955b);return _0x3b7abd['slice'](_0xc5a2e9-_0x44fa7f,Math['min'](_0x3b7abd['length'],_0xc5a2e9+0x64-_0x44fa7f));}['column'](_0x3b5747,_0x45be53=0x1){let {text:_0x526885,from:_0x42c2e6}=this['lineAt'](_0x3b5747,_0x45be53),_0x113f23=this['countColumn'](_0x526885,_0x3b5747-_0x42c2e6),_0x2f30d7=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x42c2e6):-0x1;return _0x2f30d7>-0x1&&(_0x113f23+=_0x2f30d7-this['countColumn'](_0x526885,_0x526885['search'](/\S|$/))),_0x113f23;}['countColumn'](_0x3a52b7,_0x196384=_0x3a52b7['length']){return countColumn(_0x3a52b7,this['state']['tabSize'],_0x196384);}['lineIndent'](_0x3e3855,_0x2dc505=0x1){let {text:_0xb921d3,from:_0x1f489c}=this['lineAt'](_0x3e3855,_0x2dc505),_0x3107e5=this['options']['overrideIndentation'];if(_0x3107e5){let _0x3a36c6=_0x3107e5(_0x1f489c);if(_0x3a36c6>-0x1)return _0x3a36c6;}return this['countColumn'](_0xb921d3,_0xb921d3['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0x49a043,_0x18d5c8,_0x433cb3){let _0x174b95=_0x18d5c8['resolveStack'](_0x433cb3),_0x5c7f3d=_0x18d5c8['resolveInner'](_0x433cb3,-0x1)['resolve'](_0x433cb3,0x0)['enterUnfinishedNodesBefore'](_0x433cb3);if(_0x5c7f3d!=_0x174b95['node']){let _0x185f97=[];for(let _0x4dfd97=_0x5c7f3d;_0x4dfd97&&!(_0x4dfd97['from']<_0x174b95['node']['from']||_0x4dfd97['to']>_0x174b95['node']['to']||_0x4dfd97['from']==_0x174b95['node']['from']&&_0x4dfd97['type']==_0x174b95['node']['type']);_0x4dfd97=_0x4dfd97['parent'])_0x185f97['push'](_0x4dfd97);for(let _0x279393=_0x185f97['length']-0x1;_0x279393>=0x0;_0x279393--)_0x174b95={'node':_0x185f97[_0x279393],'next':_0x174b95};}return indentFor(_0x174b95,_0x49a043,_0x433cb3);}function indentFor(_0x21f83b,_0x1b7922,_0x129006){for(let _0xc26ca6=_0x21f83b;_0xc26ca6;_0xc26ca6=_0xc26ca6['next']){let _0x22b8dc=indentStrategy(_0xc26ca6['node']);if(_0x22b8dc)return _0x22b8dc(TreeIndentContext['create'](_0x1b7922,_0x129006,_0xc26ca6));}return 0x0;}function ignoreClosed(_0x22ccec){return _0x22ccec['pos']==_0x22ccec['options']['simulateBreak']&&_0x22ccec['options']['simulateDoubleBreak'];}function indentStrategy(_0xfe3f64){let _0x22264a=_0xfe3f64['type']['prop'](indentNodeProp);if(_0x22264a)return _0x22264a;let _0x2adf0f,_0x1b3ad2=_0xfe3f64['firstChild'];if(_0x1b3ad2&&(_0x2adf0f=_0x1b3ad2['type']['prop'](NodeProp['closedBy']))){let _0x8f4c05=_0xfe3f64['lastChild'],_0x4f1376=_0x8f4c05&&_0x2adf0f['indexOf'](_0x8f4c05['name'])>-0x1;return _0x3ba0b7=>delimitedStrategy(_0x3ba0b7,!0x0,0x1,void 0x0,_0x4f1376&&!ignoreClosed(_0x3ba0b7)?_0x8f4c05['from']:void 0x0);}return null==_0xfe3f64['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x1ebe9a,_0x4b7ebf,_0x2edff5){super(_0x1ebe9a['state'],_0x1ebe9a['options']),this['base']=_0x1ebe9a,this['pos']=_0x4b7ebf,this['context']=_0x2edff5;}get['node'](){return this['context']['node'];}static['create'](_0x2491a0,_0x3c13e9,_0x32070d){return new TreeIndentContext(_0x2491a0,_0x3c13e9,_0x32070d);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0xbe51bb){let _0x4a19ef=this['state']['doc']['lineAt'](_0xbe51bb['from']);for(;;){let _0xc3896e=_0xbe51bb['resolve'](_0x4a19ef['from']);for(;_0xc3896e['parent']&&_0xc3896e['parent']['from']==_0xc3896e['from'];)_0xc3896e=_0xc3896e['parent'];if(isParent(_0xc3896e,_0xbe51bb))break;_0x4a19ef=this['state']['doc']['lineAt'](_0xc3896e['from']);}return this['lineIndent'](_0x4a19ef['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x4bc4fa,_0x467103){for(let _0x131071=_0x467103;_0x131071;_0x131071=_0x131071['parent'])if(_0x4bc4fa==_0x131071)return!0x0;return!0x1;}function bracketedAligned(_0x5d8f9d){let _0x5ae463=_0x5d8f9d['node'],_0x7ea9b0=_0x5ae463['childAfter'](_0x5ae463['from']),_0x43defb=_0x5ae463['lastChild'];if(!_0x7ea9b0)return null;let _0x4144ce=_0x5d8f9d['options']['simulateBreak'],_0x2efb5d=_0x5d8f9d['state']['doc']['lineAt'](_0x7ea9b0['from']),_0x3803b6=null==_0x4144ce||_0x4144ce<=_0x2efb5d['from']?_0x2efb5d['to']:Math['min'](_0x2efb5d['to'],_0x4144ce);for(let _0x33acaf=_0x7ea9b0['to'];;){let _0xae5ce8=_0x5ae463['childAfter'](_0x33acaf);if(!_0xae5ce8||_0xae5ce8==_0x43defb)return null;if(!_0xae5ce8['type']['isSkipped']){if(_0xae5ce8['from']>=_0x3803b6)return null;let _0x25da75=/^ */['exec'](_0x2efb5d['text']['slice'](_0x7ea9b0['to']-_0x2efb5d['from']))[0x0]['length'];return{'from':_0x7ea9b0['from'],'to':_0x7ea9b0['to']+_0x25da75};}_0x33acaf=_0xae5ce8['to'];}}function delimitedIndent({closing:_0x40af48,align:_0x4fa00a=!0x0,units:_0x487e08=0x1}){return _0x4ab90b=>delimitedStrategy(_0x4ab90b,_0x4fa00a,_0x487e08,_0x40af48);}function delimitedStrategy(_0x1b1222,_0x59b3f8,_0xa95bb7,_0xf44f4c,_0x571386){let _0x17bbae=_0x1b1222['textAfter'],_0x56eefc=_0x17bbae['match'](/^\s*/)[0x0]['length'],_0x5e9e7b=_0xf44f4c&&_0x17bbae['slice'](_0x56eefc,_0x56eefc+_0xf44f4c['length'])==_0xf44f4c||_0x571386==_0x1b1222['pos']+_0x56eefc,_0xe52e98=_0x59b3f8?bracketedAligned(_0x1b1222):null;return _0xe52e98?_0x5e9e7b?_0x1b1222['column'](_0xe52e98['from']):_0x1b1222['column'](_0xe52e98['to']):_0x1b1222['baseIndent']+(_0x5e9e7b?0x0:_0x1b1222['unit']*_0xa95bb7);}const flatIndent=_0x5a2108=>_0x5a2108['baseIndent'];function continuedIndent({except:_0x3f6f22,units:_0x2a6c25=0x1}={}){return _0x28cee0=>{let _0x4ea70b=_0x3f6f22&&_0x3f6f22['test'](_0x28cee0['textAfter']);return _0x28cee0['baseIndent']+(_0x4ea70b?0x0:_0x2a6c25*_0x28cee0['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0x1656e9=>{if(!_0x1656e9['docChanged']||!_0x1656e9['isUserEvent']('input.type')&&!_0x1656e9['isUserEvent']('input.complete'))return _0x1656e9;let _0x569614=_0x1656e9['startState']['languageDataAt']('indentOnInput',_0x1656e9['startState']['selection']['main']['head']);if(!_0x569614['length'])return _0x1656e9;let _0x2341fb=_0x1656e9['newDoc'],{head:_0x18a818}=_0x1656e9['newSelection']['main'],_0x17adc9=_0x2341fb['lineAt'](_0x18a818);if(_0x18a818>_0x17adc9['from']+DontIndentBeyond)return _0x1656e9;let _0x33ba60=_0x2341fb['sliceString'](_0x17adc9['from'],_0x18a818);if(!_0x569614['some'](_0x33fee1=>_0x33fee1['test'](_0x33ba60)))return _0x1656e9;let {state:_0x2cecc2}=_0x1656e9,_0x3477b6=-0x1,_0x2c6d07=[];for(let {head:_0x16dac0}of _0x2cecc2['selection']['ranges']){let _0x396bbc=_0x2cecc2['doc']['lineAt'](_0x16dac0);if(_0x396bbc['from']==_0x3477b6)continue;_0x3477b6=_0x396bbc['from'];let _0x156614=getIndentation(_0x2cecc2,_0x396bbc['from']);if(null==_0x156614)continue;let _0x9388ab=/^\s*/['exec'](_0x396bbc['text'])[0x0],_0x5f3136=indentString(_0x2cecc2,_0x156614);_0x9388ab!=_0x5f3136&&_0x2c6d07['push']({'from':_0x396bbc['from'],'to':_0x396bbc['from']+_0x9388ab['length'],'insert':_0x5f3136});}return _0x2c6d07['length']?[_0x1656e9,{'changes':_0x2c6d07,'sequential':!0x0}]:_0x1656e9;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x27d5cd){let _0x2ff4e0=_0x27d5cd['firstChild'],_0x54d6fb=_0x27d5cd['lastChild'];return _0x2ff4e0&&_0x2ff4e0['to']<_0x54d6fb['from']?{'from':_0x2ff4e0['to'],'to':_0x54d6fb['type']['isError']?_0x27d5cd['to']:_0x54d6fb['from']}:null;}function syntaxFolding(_0x28625e,_0x277304,_0x43f8ad){let _0x16a0af=syntaxTree(_0x28625e);if(_0x16a0af['length']<_0x43f8ad)return null;let _0xaa32bb=null;for(let _0x935ac0=_0x16a0af['resolveStack'](_0x43f8ad,0x1);_0x935ac0;_0x935ac0=_0x935ac0['next']){let _0xd321c1=_0x935ac0['node'];if(_0xd321c1['to']<=_0x43f8ad||_0xd321c1['from']>_0x43f8ad)continue;if(_0xaa32bb&&_0xd321c1['from']<_0x277304)break;let _0x4e0abb=_0xd321c1['type']['prop'](foldNodeProp);if(_0x4e0abb&&(_0xd321c1['to']<_0x16a0af['length']-0x32||_0x16a0af['length']==_0x28625e['doc']['length']||!isUnfinished(_0xd321c1))){let _0x3a49eb=_0x4e0abb(_0xd321c1,_0x28625e);_0x3a49eb&&_0x3a49eb['from']<=_0x43f8ad&&_0x3a49eb['from']>=_0x277304&&_0x3a49eb['to']>_0x43f8ad&&(_0xaa32bb=_0x3a49eb);}}return _0xaa32bb;}function isUnfinished(_0x47b1c4){let _0x718bc6=_0x47b1c4['lastChild'];return _0x718bc6&&_0x718bc6['to']==_0x47b1c4['to']&&_0x718bc6['type']['isError'];}function foldable(_0x10689d,_0xb45cf9,_0x3eb919){for(let _0x585483 of _0x10689d['facet'](foldService)){let _0x569941=_0x585483(_0x10689d,_0xb45cf9,_0x3eb919);if(_0x569941)return _0x569941;}return syntaxFolding(_0x10689d,_0xb45cf9,_0x3eb919);}function mapRange(_0x29fdc9,_0x2806a0){let _0x26f1bf=_0x2806a0['mapPos'](_0x29fdc9['from'],0x1),_0x4fe04c=_0x2806a0['mapPos'](_0x29fdc9['to'],-0x1);return _0x26f1bf>=_0x4fe04c?void 0x0:{'from':_0x26f1bf,'to':_0x4fe04c};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x5e0134){let _0x215f32=[];for(let {head:_0x635576}of _0x5e0134['state']['selection']['ranges'])_0x215f32['some'](_0x474cfa=>_0x474cfa['from']<=_0x635576&&_0x474cfa['to']>=_0x635576)||_0x215f32['push'](_0x5e0134['lineBlockAt'](_0x635576));return _0x215f32;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x352606,_0x46e419){_0x46e419['isUserEvent']('delete')&&_0x46e419['changes']['iterChangedRanges']((_0x1f946b,_0x4cfea4)=>_0x352606=clearTouchedFolds(_0x352606,_0x1f946b,_0x4cfea4)),_0x352606=_0x352606['map'](_0x46e419['changes']);for(let _0x36ef38 of _0x46e419['effects'])if(_0x36ef38['is'](foldEffect)&&!foldExists(_0x352606,_0x36ef38['value']['from'],_0x36ef38['value']['to'])){let {preparePlaceholder:_0x302f3b}=_0x46e419['state']['facet'](foldConfig),_0x114288=_0x302f3b?Decoration['replace']({'widget':new PreparedFoldWidget(_0x302f3b(_0x46e419['state'],_0x36ef38['value']))}):foldWidget;_0x352606=_0x352606['update']({'add':[_0x114288['range'](_0x36ef38['value']['from'],_0x36ef38['value']['to'])]});}else _0x36ef38['is'](unfoldEffect)&&(_0x352606=_0x352606['update']({'filter':(_0x5a348e,_0x229ca2)=>_0x36ef38['value']['from']!=_0x5a348e||_0x36ef38['value']['to']!=_0x229ca2,'filterFrom':_0x36ef38['value']['from'],'filterTo':_0x36ef38['value']['to']}));return _0x46e419['selection']&&(_0x352606=clearTouchedFolds(_0x352606,_0x46e419['selection']['main']['head'])),_0x352606;},'provide':_0x443225=>EditorView['decorations']['from'](_0x443225),'toJSON'(_0x3ba0af,_0x3a7e2e){let _0x425392=[];return _0x3ba0af['between'](0x0,_0x3a7e2e['doc']['length'],(_0x40d993,_0x1863f3)=>{_0x425392['push'](_0x40d993,_0x1863f3);}),_0x425392;},'fromJSON'(_0x7c2f23){if(!Array['isArray'](_0x7c2f23)||_0x7c2f23['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x454082=[];for(let _0x3063da=0x0;_0x3063da<_0x7c2f23['length'];){let _0x355105=_0x7c2f23[_0x3063da++],_0x348e19=_0x7c2f23[_0x3063da++];if('number'!=typeof _0x355105||'number'!=typeof _0x348e19)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x454082['push'](foldWidget['range'](_0x355105,_0x348e19));}return Decoration['set'](_0x454082,!0x0);}});function clearTouchedFolds(_0x431f9b,_0x2d993c,_0x32550e=_0x2d993c){let _0x1c2b75=!0x1;return _0x431f9b['between'](_0x2d993c,_0x32550e,(_0x389a8f,_0x2e9b79)=>{_0x389a8f<_0x32550e&&_0x2e9b79>_0x2d993c&&(_0x1c2b75=!0x0);}),_0x1c2b75?_0x431f9b['update']({'filterFrom':_0x2d993c,'filterTo':_0x32550e,'filter':(_0xc7607a,_0x255051)=>_0xc7607a>=_0x32550e||_0x255051<=_0x2d993c}):_0x431f9b;}function findFold(_0x13c5dd,_0x4cdbea,_0x29046e){var _0xddf47;let _0x2b7489=null;return null===(_0xddf47=_0x13c5dd['field'](foldState,!0x1))||void 0x0===_0xddf47||_0xddf47['between'](_0x4cdbea,_0x29046e,(_0x7abd05,_0x58b609)=>{(!_0x2b7489||_0x2b7489['from']>_0x7abd05)&&(_0x2b7489={'from':_0x7abd05,'to':_0x58b609});}),_0x2b7489;}function foldExists(_0x20663e,_0x3287f0,_0x1f966a){let _0x2a5666=!0x1;return _0x20663e['between'](_0x3287f0,_0x3287f0,(_0x3cea15,_0xe20f2)=>{_0x3cea15==_0x3287f0&&_0xe20f2==_0x1f966a&&(_0x2a5666=!0x0);}),_0x2a5666;}function maybeEnable(_0x372056,_0x3fdf52){return _0x372056['field'](foldState,!0x1)?_0x3fdf52:_0x3fdf52['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x3b4a82=>{for(let _0x223fa2 of selectedLines(_0x3b4a82)){let _0x4595be=foldable(_0x3b4a82['state'],_0x223fa2['from'],_0x223fa2['to']);if(_0x4595be)return _0x3b4a82['dispatch']({'effects':maybeEnable(_0x3b4a82['state'],[foldEffect['of'](_0x4595be),announceFold(_0x3b4a82,_0x4595be)])}),!0x0;}return!0x1;},unfoldCode=_0x34f8d9=>{if(!_0x34f8d9['state']['field'](foldState,!0x1))return!0x1;let _0x25dfaa=[];for(let _0x53aaa6 of selectedLines(_0x34f8d9)){let _0x3b7823=findFold(_0x34f8d9['state'],_0x53aaa6['from'],_0x53aaa6['to']);_0x3b7823&&_0x25dfaa['push'](unfoldEffect['of'](_0x3b7823),announceFold(_0x34f8d9,_0x3b7823,!0x1));}return _0x25dfaa['length']&&_0x34f8d9['dispatch']({'effects':_0x25dfaa}),_0x25dfaa['length']>0x0;};function announceFold(_0x146f3c,_0x251929,_0x5890ad=!0x0){let _0x42a83b=_0x146f3c['state']['doc']['lineAt'](_0x251929['from'])['number'],_0x3060c3=_0x146f3c['state']['doc']['lineAt'](_0x251929['to'])['number'];return EditorView['announce']['of'](_0x146f3c['state']['phrase'](_0x5890ad?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x42a83b+'\x20'+_0x146f3c['state']['phrase']('to')+'\x20'+_0x3060c3+'.');}const foldAll=_0xcccfe4=>{let {state:_0xf5fbf0}=_0xcccfe4,_0x361b78=[];for(let _0x572463=0x0;_0x572463<_0xf5fbf0['doc']['length'];){let _0x223eb8=_0xcccfe4['lineBlockAt'](_0x572463),_0x23f161=foldable(_0xf5fbf0,_0x223eb8['from'],_0x223eb8['to']);_0x23f161&&_0x361b78['push'](foldEffect['of'](_0x23f161)),_0x572463=(_0x23f161?_0xcccfe4['lineBlockAt'](_0x23f161['to']):_0x223eb8)['to']+0x1;}return _0x361b78['length']&&_0xcccfe4['dispatch']({'effects':maybeEnable(_0xcccfe4['state'],_0x361b78)}),!!_0x361b78['length'];},unfoldAll=_0x2b8b1b=>{let _0x3b57c5=_0x2b8b1b['state']['field'](foldState,!0x1);if(!_0x3b57c5||!_0x3b57c5['size'])return!0x1;let _0xf76b7f=[];return _0x3b57c5['between'](0x0,_0x2b8b1b['state']['doc']['length'],(_0x5699a3,_0x4936a4)=>{_0xf76b7f['push'](unfoldEffect['of']({'from':_0x5699a3,'to':_0x4936a4}));}),_0x2b8b1b['dispatch']({'effects':_0xf76b7f}),!0x0;},foldKeymap=[{'key':'Ctrl-Shift-[','mac':'Cmd-Alt-[','run':foldCode},{'key':'Ctrl-Shift-]','mac':'Cmd-Alt-]','run':unfoldCode},{'key':'Ctrl-Alt-[','run':foldAll},{'key':'Ctrl-Alt-]','run':unfoldAll}],defaultConfig={'placeholderDOM':null,'preparePlaceholder':null,'placeholderText':'…'},foldConfig=Facet['define']({'combine':_0x3c20ab=>combineConfig(_0x3c20ab,defaultConfig)});function codeFolding(_0x2a1613){return[foldState,baseTheme$1];}function widgetToDOM(_0x1cbcce,_0x1b3ae0){let {state:_0x3a3b73}=_0x1cbcce,_0x27f329=_0x3a3b73['facet'](foldConfig),_0xbcfa0d=_0x2f946e=>{let _0x5c147f=_0x1cbcce['lineBlockAt'](_0x1cbcce['posAtDOM'](_0x2f946e['target'])),_0x5b7ff3=findFold(_0x1cbcce['state'],_0x5c147f['from'],_0x5c147f['to']);_0x5b7ff3&&_0x1cbcce['dispatch']({'effects':unfoldEffect['of'](_0x5b7ff3)}),_0x2f946e['preventDefault']();};if(_0x27f329['placeholderDOM'])return _0x27f329['placeholderDOM'](_0x1cbcce,_0xbcfa0d,_0x1b3ae0);let _0x391f6a=document['createElement']('span');return _0x391f6a['textContent']=_0x27f329['placeholderText'],_0x391f6a['setAttribute']('aria-label',_0x3a3b73['phrase']('folded\x20code')),_0x391f6a['title']=_0x3a3b73['phrase']('unfold'),_0x391f6a['className']='cm-foldPlaceholder',_0x391f6a['onclick']=_0xbcfa0d,_0x391f6a;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x5a7d56){return widgetToDOM(_0x5a7d56,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0x2d5cf4){super(),this['value']=_0x2d5cf4;}['eq'](_0x1d5066){return this['value']==_0x1d5066['value'];}['toDOM'](_0x5509ba){return widgetToDOM(_0x5509ba,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0x4c3094,_0x454baf){super(),this['config']=_0x4c3094,this['open']=_0x454baf;}['eq'](_0x50dfc2){return this['config']==_0x50dfc2['config']&&this['open']==_0x50dfc2['open'];}['toDOM'](_0x15d20e){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0x288b58=document['createElement']('span');return _0x288b58['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0x288b58['title']=_0x15d20e['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0x288b58;}}function foldGutter(_0x4e2d88={}){let _0x4ed3db={...foldGutterDefaults,..._0x4e2d88},_0x5be33e=new FoldMarker(_0x4ed3db,!0x0),_0x4de7ca=new FoldMarker(_0x4ed3db,!0x1),_0x3fcf53=ViewPlugin['fromClass'](class{constructor(_0xc85cc7){this['from']=_0xc85cc7['viewport']['from'],this['markers']=this['buildMarkers'](_0xc85cc7);}['update'](_0x1d4ebb){(_0x1d4ebb['docChanged']||_0x1d4ebb['viewportChanged']||_0x1d4ebb['startState']['facet'](language)!=_0x1d4ebb['state']['facet'](language)||_0x1d4ebb['startState']['field'](foldState,!0x1)!=_0x1d4ebb['state']['field'](foldState,!0x1)||syntaxTree(_0x1d4ebb['startState'])!=syntaxTree(_0x1d4ebb['state'])||_0x4ed3db['foldingChanged'](_0x1d4ebb))&&(this['markers']=this['buildMarkers'](_0x1d4ebb['view']));}['buildMarkers'](_0x35c000){let _0x233d7d=new RangeSetBuilder();for(let _0x24a258 of _0x35c000['viewportLineBlocks']){let _0xc87e09=findFold(_0x35c000['state'],_0x24a258['from'],_0x24a258['to'])?_0x4de7ca:foldable(_0x35c000['state'],_0x24a258['from'],_0x24a258['to'])?_0x5be33e:null;_0xc87e09&&_0x233d7d['add'](_0x24a258['from'],_0x24a258['from'],_0xc87e09);}return _0x233d7d['finish']();}}),{domEventHandlers:_0xb5ca6d}=_0x4ed3db;return[_0x3fcf53,gutter({'class':'cm-foldGutter','markers'(_0x3d38b9){var _0x37e414;return(null===(_0x37e414=_0x3d38b9['plugin'](_0x3fcf53))||void 0x0===_0x37e414?void 0x0:_0x37e414['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x4ed3db,!0x1),'domEventHandlers':{..._0xb5ca6d,'click':(_0x1c3839,_0x51b0df,_0x256242)=>{if(_0xb5ca6d['click']&&_0xb5ca6d['click'](_0x1c3839,_0x51b0df,_0x256242))return!0x0;let _0x81e4d=findFold(_0x1c3839['state'],_0x51b0df['from'],_0x51b0df['to']);if(_0x81e4d)return _0x1c3839['dispatch']({'effects':unfoldEffect['of'](_0x81e4d)}),!0x0;let _0x4d9887=foldable(_0x1c3839['state'],_0x51b0df['from'],_0x51b0df['to']);return!!_0x4d9887&&(_0x1c3839['dispatch']({'effects':foldEffect['of'](_0x4d9887)}),!0x0);}}}),codeFolding()];}const baseTheme$1=EditorView['baseTheme']({'.cm-foldPlaceholder':{'backgroundColor':'#eee','border':'1px\x20solid\x20#ddd','color':'#888','borderRadius':'.2em','margin':'0\x201px','padding':'0\x201px','cursor':'pointer'},'.cm-foldGutter\x20span':{'padding':'0\x201px','cursor':'pointer'}});class HighlightStyle{constructor(_0x3218de,_0x132619){let _0x3086ad;function _0x5c16e5(_0x5a9f81){let _0x556b8b=StyleModule['newName']();return(_0x3086ad||(_0x3086ad=Object['create'](null)))['.'+_0x556b8b]=_0x5a9f81,_0x556b8b;}this['specs']=_0x3218de;const _0x1b7839='string'==typeof _0x132619['all']?_0x132619['all']:_0x132619['all']?_0x5c16e5(_0x132619['all']):void 0x0,_0x2df47e=_0x132619['scope'];this['scope']=_0x2df47e instanceof Language?_0x5ef757=>_0x5ef757['prop'](languageDataProp)==_0x2df47e['data']:_0x2df47e?_0x41631d=>_0x41631d==_0x2df47e:void 0x0,this['style']=tagHighlighter(_0x3218de['map'](_0xbfdbd1=>({'tag':_0xbfdbd1['tag'],'class':_0xbfdbd1['class']||_0x5c16e5(Object['assign']({},_0xbfdbd1,{'tag':null}))})),{'all':_0x1b7839})['style'],this['module']=_0x3086ad?new StyleModule(_0x3086ad):null,this['themeType']=_0x132619['themeType'];}static['define'](_0x1eeb1b,_0x4bfe96){return new HighlightStyle(_0x1eeb1b,_0x4bfe96||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x4799fb=>_0x4799fb['length']?[_0x4799fb[0x0]]:null});function getHighlighters(_0x50b8bd){let _0xd6d324=_0x50b8bd['facet'](highlighterFacet);return _0xd6d324['length']?_0xd6d324:_0x50b8bd['facet'](fallbackHighlighter);}function syntaxHighlighting(_0xc5f42c,_0x576c76){let _0x2a5502,_0x53ff2b=[treeHighlighter];return _0xc5f42c instanceof HighlightStyle&&(_0xc5f42c['module']&&_0x53ff2b['push'](EditorView['styleModule']['of'](_0xc5f42c['module'])),_0x2a5502=_0xc5f42c['themeType']),(null==_0x576c76?void 0x0:_0x576c76['fallback'])?_0x53ff2b['push'](fallbackHighlighter['of'](_0xc5f42c)):_0x2a5502?_0x53ff2b['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x52783c=>_0x52783c['facet'](EditorView['darkTheme'])==('dark'==_0x2a5502)?[_0xc5f42c]:[])):_0x53ff2b['push'](highlighterFacet['of'](_0xc5f42c)),_0x53ff2b;}class TreeHighlighter{constructor(_0x5a5822){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x5a5822['state']),this['decorations']=this['buildDeco'](_0x5a5822,getHighlighters(_0x5a5822['state'])),this['decoratedTo']=_0x5a5822['viewport']['to'];}['update'](_0x13cf7b){let _0x5d435b=syntaxTree(_0x13cf7b['state']),_0x54dcf5=getHighlighters(_0x13cf7b['state']),_0xec0e00=_0x54dcf5!=getHighlighters(_0x13cf7b['startState']),{viewport:_0x261443}=_0x13cf7b['view'],_0x27390f=_0x13cf7b['changes']['mapPos'](this['decoratedTo'],0x1);_0x5d435b['length']<_0x261443['to']&&!_0xec0e00&&_0x5d435b['type']==this['tree']['type']&&_0x27390f>=_0x261443['to']?(this['decorations']=this['decorations']['map'](_0x13cf7b['changes']),this['decoratedTo']=_0x27390f):(_0x5d435b!=this['tree']||_0x13cf7b['viewportChanged']||_0xec0e00)&&(this['tree']=_0x5d435b,this['decorations']=this['buildDeco'](_0x13cf7b['view'],_0x54dcf5),this['decoratedTo']=_0x261443['to']);}['buildDeco'](_0x3de5f9,_0x3556be){if(!_0x3556be||!this['tree']['length'])return Decoration['none'];let _0x19db01=new RangeSetBuilder();for(let {from:_0x18ff77,to:_0x1705b1}of _0x3de5f9['visibleRanges'])highlightTree(this['tree'],_0x3556be,(_0x4e38bc,_0x494350,_0x31c8e4)=>{_0x19db01['add'](_0x4e38bc,_0x494350,this['markCache'][_0x31c8e4]||(this['markCache'][_0x31c8e4]=Decoration['mark']({'class':_0x31c8e4})));},_0x18ff77,_0x1705b1);return _0x19db01['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x23649c=>_0x23649c['decorations']})),defaultHighlightStyle=HighlightStyle['define']([{'tag':tags$1['meta'],'color':'#404740'},{'tag':tags$1['link'],'textDecoration':'underline'},{'tag':tags$1['heading'],'textDecoration':'underline','fontWeight':'bold'},{'tag':tags$1['emphasis'],'fontStyle':'italic'},{'tag':tags$1['strong'],'fontWeight':'bold'},{'tag':tags$1['strikethrough'],'textDecoration':'line-through'},{'tag':tags$1['keyword'],'color':'#708'},{'tag':[tags$1['atom'],tags$1['bool'],tags$1['url'],tags$1['contentSeparator'],tags$1['labelName']],'color':'#219'},{'tag':[tags$1['literal'],tags$1['inserted']],'color':'#164'},{'tag':[tags$1['string'],tags$1['deleted']],'color':'#a11'},{'tag':[tags$1['regexp'],tags$1['escape'],tags$1['special'](tags$1['string'])],'color':'#e40'},{'tag':tags$1['definition'](tags$1['variableName']),'color':'#00f'},{'tag':tags$1['local'](tags$1['variableName']),'color':'#30a'},{'tag':[tags$1['typeName'],tags$1['namespace']],'color':'#085'},{'tag':tags$1['className'],'color':'#167'},{'tag':[tags$1['special'](tags$1['variableName']),tags$1['macroName']],'color':'#256'},{'tag':tags$1['definition'](tags$1['propertyName']),'color':'#00c'},{'tag':tags$1['comment'],'color':'#940'},{'tag':tags$1['invalid'],'color':'#f00'}]),baseTheme$2=EditorView['baseTheme']({'&.cm-focused\x20.cm-matchingBracket':{'backgroundColor':'#328c8252'},'&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bb555544'}}),DefaultScanDist=0x2710,DefaultBrackets='()[]{}',bracketMatchingConfig=Facet['define']({'combine':_0x1dc6fc=>combineConfig(_0x1dc6fc,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0x2f3db5){let _0x2b04fc=[],_0x394d5f=_0x2f3db5['matched']?matchingMark:nonmatchingMark;return _0x2b04fc['push'](_0x394d5f['range'](_0x2f3db5['start']['from'],_0x2f3db5['start']['to'])),_0x2f3db5['end']&&_0x2b04fc['push'](_0x394d5f['range'](_0x2f3db5['end']['from'],_0x2f3db5['end']['to'])),_0x2b04fc;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x1e8f91,_0x5b990c){if(!_0x5b990c['docChanged']&&!_0x5b990c['selection'])return _0x1e8f91;let _0x56f354=[],_0x42d44b=_0x5b990c['state']['facet'](bracketMatchingConfig);for(let _0x4d7828 of _0x5b990c['state']['selection']['ranges']){if(!_0x4d7828['empty'])continue;let _0x2b0850=matchBrackets(_0x5b990c['state'],_0x4d7828['head'],-0x1,_0x42d44b)||_0x4d7828['head']>0x0&&matchBrackets(_0x5b990c['state'],_0x4d7828['head']-0x1,0x1,_0x42d44b)||_0x42d44b['afterCursor']&&(matchBrackets(_0x5b990c['state'],_0x4d7828['head'],0x1,_0x42d44b)||_0x4d7828['head']<_0x5b990c['state']['doc']['length']&&matchBrackets(_0x5b990c['state'],_0x4d7828['head']+0x1,-0x1,_0x42d44b));_0x2b0850&&(_0x56f354=_0x56f354['concat'](_0x42d44b['renderMatch'](_0x2b0850,_0x5b990c['state'])));}return Decoration['set'](_0x56f354,!0x0);},'provide':_0x4ee118=>EditorView['decorations']['from'](_0x4ee118)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0x47a5b3={}){return[bracketMatchingConfig['of'](_0x47a5b3),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x204f2f,_0x3cbcba,_0x31609a){let _0x319b9d=_0x204f2f['prop'](_0x3cbcba<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0x319b9d)return _0x319b9d;if(0x1==_0x204f2f['name']['length']){let _0x13a212=_0x31609a['indexOf'](_0x204f2f['name']);if(_0x13a212>-0x1&&_0x13a212%0x2==(_0x3cbcba<0x0?0x1:0x0))return[_0x31609a[_0x13a212+_0x3cbcba]];}return null;}function findHandle(_0x10a116){let _0x130119=_0x10a116['type']['prop'](bracketMatchingHandle);return _0x130119?_0x130119(_0x10a116['node']):_0x10a116;}function matchBrackets(_0x39d957,_0x52be63,_0x5a2750,_0x545375={}){let _0x32fdd5=_0x545375['maxScanDistance']||DefaultScanDist,_0x29d24d=_0x545375['brackets']||DefaultBrackets,_0x4d4435=syntaxTree(_0x39d957),_0x3412a8=_0x4d4435['resolveInner'](_0x52be63,_0x5a2750);for(let _0x4b7876=_0x3412a8;_0x4b7876;_0x4b7876=_0x4b7876['parent']){let _0x51ea46=matchingNodes(_0x4b7876['type'],_0x5a2750,_0x29d24d);if(_0x51ea46&&_0x4b7876['from']<_0x4b7876['to']){let _0x7f0b70=findHandle(_0x4b7876);if(_0x7f0b70&&(_0x5a2750>0x0?_0x52be63>=_0x7f0b70['from']&&_0x52be63<_0x7f0b70['to']:_0x52be63>_0x7f0b70['from']&&_0x52be63<=_0x7f0b70['to']))return matchMarkedBrackets(_0x39d957,_0x52be63,_0x5a2750,_0x4b7876,_0x7f0b70,_0x51ea46,_0x29d24d);}}return matchPlainBrackets(_0x39d957,_0x52be63,_0x5a2750,_0x4d4435,_0x3412a8['type'],_0x32fdd5,_0x29d24d);}function matchMarkedBrackets(_0x3fa70,_0x5b6023,_0x537184,_0x25b87d,_0x2d9856,_0x14c607,_0x33861a){let _0x304487=_0x25b87d['parent'],_0x40e05e={'from':_0x2d9856['from'],'to':_0x2d9856['to']},_0x4860a9=0x0,_0x51d881=null==_0x304487?void 0x0:_0x304487['cursor']();if(_0x51d881&&(_0x537184<0x0?_0x51d881['childBefore'](_0x25b87d['from']):_0x51d881['childAfter'](_0x25b87d['to'])))do{if(_0x537184<0x0?_0x51d881['to']<=_0x25b87d['from']:_0x51d881['from']>=_0x25b87d['to']){if(0x0==_0x4860a9&&_0x14c607['indexOf'](_0x51d881['type']['name'])>-0x1&&_0x51d881['from']<_0x51d881['to']){let _0x386ca6=findHandle(_0x51d881);return{'start':_0x40e05e,'end':_0x386ca6?{'from':_0x386ca6['from'],'to':_0x386ca6['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0x51d881['type'],_0x537184,_0x33861a))_0x4860a9++;else{if(matchingNodes(_0x51d881['type'],-_0x537184,_0x33861a)){if(0x0==_0x4860a9){let _0x575587=findHandle(_0x51d881);return{'start':_0x40e05e,'end':_0x575587&&_0x575587['from']<_0x575587['to']?{'from':_0x575587['from'],'to':_0x575587['to']}:void 0x0,'matched':!0x1};}_0x4860a9--;}}}}while(_0x537184<0x0?_0x51d881['prevSibling']():_0x51d881['nextSibling']());return{'start':_0x40e05e,'matched':!0x1};}function matchPlainBrackets(_0x3fc381,_0x5b02f9,_0x3a8182,_0x148f25,_0x3b94d9,_0x188ddf,_0xa02e19){let _0x4f8069=_0x3a8182<0x0?_0x3fc381['sliceDoc'](_0x5b02f9-0x1,_0x5b02f9):_0x3fc381['sliceDoc'](_0x5b02f9,_0x5b02f9+0x1),_0x1b5829=_0xa02e19['indexOf'](_0x4f8069);if(_0x1b5829<0x0||_0x1b5829%0x2==0x0!=_0x3a8182>0x0)return null;let _0xf1a3f9={'from':_0x3a8182<0x0?_0x5b02f9-0x1:_0x5b02f9,'to':_0x3a8182>0x0?_0x5b02f9+0x1:_0x5b02f9},_0x1528c0=_0x3fc381['doc']['iterRange'](_0x5b02f9,_0x3a8182>0x0?_0x3fc381['doc']['length']:0x0),_0x16de8e=0x0;for(let _0x382ffe=0x0;!_0x1528c0['next']()['done']&&_0x382ffe<=_0x188ddf;){let _0x1d65b6=_0x1528c0['value'];_0x3a8182<0x0&&(_0x382ffe+=_0x1d65b6['length']);let _0x1e45b8=_0x5b02f9+_0x382ffe*_0x3a8182;for(let _0x4d7896=_0x3a8182>0x0?0x0:_0x1d65b6['length']-0x1,_0xbd180a=_0x3a8182>0x0?_0x1d65b6['length']:-0x1;_0x4d7896!=_0xbd180a;_0x4d7896+=_0x3a8182){let _0x1c1201=_0xa02e19['indexOf'](_0x1d65b6[_0x4d7896]);if(!(_0x1c1201<0x0||_0x148f25['resolveInner'](_0x1e45b8+_0x4d7896,0x1)['type']!=_0x3b94d9)){if(_0x1c1201%0x2==0x0==_0x3a8182>0x0)_0x16de8e++;else{if(0x1==_0x16de8e)return{'start':_0xf1a3f9,'end':{'from':_0x1e45b8+_0x4d7896,'to':_0x1e45b8+_0x4d7896+0x1},'matched':_0x1c1201>>0x1==_0x1b5829>>0x1};_0x16de8e--;}}}_0x3a8182>0x0&&(_0x382ffe+=_0x1d65b6['length']);}return _0x1528c0['done']?{'start':_0xf1a3f9,'matched':!0x1}:null;}const noTokens=Object['create'](null),typeArray=[NodeType['none']],warned=[],byTag=Object['create'](null),defaultTable=Object['create'](null);for(let [e,i]of[['variable','variableName'],['variable-2','variableName.special'],['string-2','string.special'],['def','variableName.definition'],['tag','tagName'],['attribute','attributeName'],['type','typeName'],['builtin','variableName.standard'],['qualifier','modifier'],['error','invalid'],['header','heading'],['property','propertyName']])defaultTable[e]=createTokenType(noTokens,i);function warnForPart(_0x4572b1,_0x137ef3){warned['indexOf'](_0x4572b1)>-0x1||(warned['push'](_0x4572b1),console['warn'](_0x137ef3));}function createTokenType(_0x8436,_0x12aefe){let _0x1abc36=[];for(let _0x2da8e8 of _0x12aefe['split']('\x20')){let _0x22ddf3=[];for(let _0x359ed0 of _0x2da8e8['split']('.')){let _0x37f16c=_0x8436[_0x359ed0]||tags$1[_0x359ed0];_0x37f16c?'function'==typeof _0x37f16c?_0x22ddf3['length']?_0x22ddf3=_0x22ddf3['map'](_0x37f16c):warnForPart(_0x359ed0,'Modifier\x20'+_0x359ed0+'\x20used\x20at\x20start\x20of\x20tag'):_0x22ddf3['length']?warnForPart(_0x359ed0,'Tag\x20'+_0x359ed0+'\x20used\x20as\x20modifier'):_0x22ddf3=Array['isArray'](_0x37f16c)?_0x37f16c:[_0x37f16c]:warnForPart(_0x359ed0,'Unknown\x20highlighting\x20tag\x20'+_0x359ed0);}for(let _0x3b5fac of _0x22ddf3)_0x1abc36['push'](_0x3b5fac);}if(!_0x1abc36['length'])return 0x0;let _0x3fcfe0=_0x12aefe['replace'](/ /g,'_'),_0x3f36f5=_0x3fcfe0+'\x20'+_0x1abc36['map'](t=>t['id']),_0x5b75d6=byTag[_0x3f36f5];if(_0x5b75d6)return _0x5b75d6['id'];let _0x175519=byTag[_0x3f36f5]=NodeType['define']({'id':typeArray['length'],'name':_0x3fcfe0,'props':[styleTags({[_0x3fcfe0]:_0x1abc36})]});return typeArray['push'](_0x175519),_0x175519['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x2e9e92=>{let {state:_0x108a5a}=_0x2e9e92,_0x34608b=_0x108a5a['doc']['lineAt'](_0x108a5a['selection']['main']['from']),_0x507738=getConfig(_0x2e9e92['state'],_0x34608b['from']);return _0x507738['line']?toggleLineComment(_0x2e9e92):!!_0x507738['block']&&toggleBlockCommentByLine(_0x2e9e92);};function command(_0x271228,_0x101ff8){return({state:_0x33df8c,dispatch:_0x290029})=>{if(_0x33df8c['readOnly'])return!0x1;let _0x1147b4=_0x271228(_0x101ff8,_0x33df8c);return!!_0x1147b4&&(_0x290029(_0x33df8c['update'](_0x1147b4)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0x255e62,_0x25ef99)=>changeBlockComment(_0x255e62,_0x25ef99,selectedLineRanges(_0x25ef99)),0x0);function getConfig(_0xf822e2,_0x1f0da2){let _0x38822f=_0xf822e2['languageDataAt']('commentTokens',_0x1f0da2,0x1);return _0x38822f['length']?_0x38822f[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0x3ea5c1,{open:_0x35fc50,close:_0xeafa26},_0x473b39,_0x3cdbe4){let _0x136d29,_0x2c0f73,_0x10142b=_0x3ea5c1['sliceDoc'](_0x473b39-SearchMargin,_0x473b39),_0xd4cabd=_0x3ea5c1['sliceDoc'](_0x3cdbe4,_0x3cdbe4+SearchMargin),_0x23d6d4=/\s*$/['exec'](_0x10142b)[0x0]['length'],_0x4418f5=/^\s*/['exec'](_0xd4cabd)[0x0]['length'],_0x2d9b7e=_0x10142b['length']-_0x23d6d4;if(_0x10142b['slice'](_0x2d9b7e-_0x35fc50['length'],_0x2d9b7e)==_0x35fc50&&_0xd4cabd['slice'](_0x4418f5,_0x4418f5+_0xeafa26['length'])==_0xeafa26)return{'open':{'pos':_0x473b39-_0x23d6d4,'margin':_0x23d6d4&&0x1},'close':{'pos':_0x3cdbe4+_0x4418f5,'margin':_0x4418f5&&0x1}};_0x3cdbe4-_0x473b39<=0x2*SearchMargin?_0x136d29=_0x2c0f73=_0x3ea5c1['sliceDoc'](_0x473b39,_0x3cdbe4):(_0x136d29=_0x3ea5c1['sliceDoc'](_0x473b39,_0x473b39+SearchMargin),_0x2c0f73=_0x3ea5c1['sliceDoc'](_0x3cdbe4-SearchMargin,_0x3cdbe4));let _0x25543f=/^\s*/['exec'](_0x136d29)[0x0]['length'],_0x4e9bf2=/\s*$/['exec'](_0x2c0f73)[0x0]['length'],_0x258a48=_0x2c0f73['length']-_0x4e9bf2-_0xeafa26['length'];return _0x136d29['slice'](_0x25543f,_0x25543f+_0x35fc50['length'])==_0x35fc50&&_0x2c0f73['slice'](_0x258a48,_0x258a48+_0xeafa26['length'])==_0xeafa26?{'open':{'pos':_0x473b39+_0x25543f+_0x35fc50['length'],'margin':/\s/['test'](_0x136d29['charAt'](_0x25543f+_0x35fc50['length']))?0x1:0x0},'close':{'pos':_0x3cdbe4-_0x4e9bf2-_0xeafa26['length'],'margin':/\s/['test'](_0x2c0f73['charAt'](_0x258a48-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0x43b7d1){let _0xf6fed6=[];for(let _0x5cfef4 of _0x43b7d1['selection']['ranges']){let _0x22e120=_0x43b7d1['doc']['lineAt'](_0x5cfef4['from']),_0x176206=_0x5cfef4['to']<=_0x22e120['to']?_0x22e120:_0x43b7d1['doc']['lineAt'](_0x5cfef4['to']);_0x176206['from']>_0x22e120['from']&&_0x176206['from']==_0x5cfef4['to']&&(_0x176206=_0x5cfef4['to']==_0x22e120['to']+0x1?_0x22e120:_0x43b7d1['doc']['lineAt'](_0x5cfef4['to']-0x1));let _0xc2f181=_0xf6fed6['length']-0x1;_0xc2f181>=0x0&&_0xf6fed6[_0xc2f181]['to']>_0x22e120['from']?_0xf6fed6[_0xc2f181]['to']=_0x176206['to']:_0xf6fed6['push']({'from':_0x22e120['from']+/^\s*/['exec'](_0x22e120['text'])[0x0]['length'],'to':_0x176206['to']});}return _0xf6fed6;}function changeBlockComment(_0x350fb9,_0x1436cd,_0x359166=_0x1436cd['selection']['ranges']){let _0x245e16=_0x359166['map'](_0x96789d=>getConfig(_0x1436cd,_0x96789d['from'])['block']);if(!_0x245e16['every'](_0x68102e=>_0x68102e))return null;let _0x37410b=_0x359166['map']((_0x3c0f4b,_0x2d8f3c)=>findBlockComment(_0x1436cd,_0x245e16[_0x2d8f3c],_0x3c0f4b['from'],_0x3c0f4b['to']));if(0x2!=_0x350fb9&&!_0x37410b['every'](_0x170e01=>_0x170e01))return{'changes':_0x1436cd['changes'](_0x359166['map']((_0x68f972,_0x37db29)=>_0x37410b[_0x37db29]?[]:[{'from':_0x68f972['from'],'insert':_0x245e16[_0x37db29]['open']+'\x20'},{'from':_0x68f972['to'],'insert':'\x20'+_0x245e16[_0x37db29]['close']}]))};if(0x1!=_0x350fb9&&_0x37410b['some'](_0x5517e0=>_0x5517e0)){let _0x52fe21=[];for(let _0x57d96b,_0xf9ffc5=0x0;_0xf9ffc5<_0x37410b['length'];_0xf9ffc5++)if(_0x57d96b=_0x37410b[_0xf9ffc5]){let _0x110c3a=_0x245e16[_0xf9ffc5],{open:_0x105127,close:_0x50cf81}=_0x57d96b;_0x52fe21['push']({'from':_0x105127['pos']-_0x110c3a['open']['length'],'to':_0x105127['pos']+_0x105127['margin']},{'from':_0x50cf81['pos']-_0x50cf81['margin'],'to':_0x50cf81['pos']+_0x110c3a['close']['length']});}return{'changes':_0x52fe21};}return null;}function changeLineComment(_0x2dd939,_0x39c48f,_0x225562=_0x39c48f['selection']['ranges']){let _0x573245=[],_0x2abf77=-0x1;for(let {from:_0xa44c43,to:_0x32a01a}of _0x225562){let _0x1cdaac=_0x573245['length'],_0x1920e6=0x3b9aca00,_0x148c85=getConfig(_0x39c48f,_0xa44c43)['line'];if(_0x148c85){for(let _0x388fa4=_0xa44c43;_0x388fa4<=_0x32a01a;){let _0xf6ed05=_0x39c48f['doc']['lineAt'](_0x388fa4);if(_0xf6ed05['from']>_0x2abf77&&(_0xa44c43==_0x32a01a||_0x32a01a>_0xf6ed05['from'])){_0x2abf77=_0xf6ed05['from'];let _0x494938=/^\s*/['exec'](_0xf6ed05['text'])[0x0]['length'],_0x546593=_0x494938==_0xf6ed05['length'],_0x353286=_0xf6ed05['text']['slice'](_0x494938,_0x494938+_0x148c85['length'])==_0x148c85?_0x494938:-0x1;_0x494938<_0xf6ed05['text']['length']&&_0x494938<_0x1920e6&&(_0x1920e6=_0x494938),_0x573245['push']({'line':_0xf6ed05,'comment':_0x353286,'token':_0x148c85,'indent':_0x494938,'empty':_0x546593,'single':!0x1});}_0x388fa4=_0xf6ed05['to']+0x1;}if(_0x1920e6<0x3b9aca00){for(let _0x18110a=_0x1cdaac;_0x18110a<_0x573245['length'];_0x18110a++)_0x573245[_0x18110a]['indent']<_0x573245[_0x18110a]['line']['text']['length']&&(_0x573245[_0x18110a]['indent']=_0x1920e6);}_0x573245['length']==_0x1cdaac+0x1&&(_0x573245[_0x1cdaac]['single']=!0x0);}}if(0x2!=_0x2dd939&&_0x573245['some'](_0x7f75cf=>_0x7f75cf['comment']<0x0&&(!_0x7f75cf['empty']||_0x7f75cf['single']))){let _0x9c26a2=[];for(let {line:_0x35fe3d,token:_0x1b0e55,indent:_0x26a43d,empty:_0x34772c,single:_0x35bd37}of _0x573245)!_0x35bd37&&_0x34772c||_0x9c26a2['push']({'from':_0x35fe3d['from']+_0x26a43d,'insert':_0x1b0e55+'\x20'});let _0x26d282=_0x39c48f['changes'](_0x9c26a2);return{'changes':_0x26d282,'selection':_0x39c48f['selection']['map'](_0x26d282,0x1)};}if(0x1!=_0x2dd939&&_0x573245['some'](_0x13570d=>_0x13570d['comment']>=0x0)){let _0x1c27e9=[];for(let {line:_0x4bff69,comment:_0x52c7e4,token:_0x57a3e7}of _0x573245)if(_0x52c7e4>=0x0){let _0x54025b=_0x4bff69['from']+_0x52c7e4,_0xdc9404=_0x54025b+_0x57a3e7['length'];'\x20'==_0x4bff69['text'][_0xdc9404-_0x4bff69['from']]&&_0xdc9404++,_0x1c27e9['push']({'from':_0x54025b,'to':_0xdc9404});}return{'changes':_0x1c27e9};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x11588d=>combineConfig(_0x11588d,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x3088f4,_0x4efe37)=>_0x4efe37},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x166c99,_0x59e32e)=>(_0x2fa003,_0x1ed6da)=>_0x166c99(_0x2fa003,_0x1ed6da)||_0x59e32e(_0x2fa003,_0x1ed6da)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x27b738,_0x3c8ca7){let _0x346eb2=_0x3c8ca7['state']['facet'](historyConfig),_0x2d17ea=_0x3c8ca7['annotation'](fromHistory);if(_0x2d17ea){let _0x19d8b2=HistEvent['fromTransaction'](_0x3c8ca7,_0x2d17ea['selection']),_0x4e73c8=_0x2d17ea['side'],_0x19cf49=0x0==_0x4e73c8?_0x27b738['undone']:_0x27b738['done'];return _0x19cf49=_0x19d8b2?updateBranch(_0x19cf49,_0x19cf49['length'],_0x346eb2['minDepth'],_0x19d8b2):addSelection(_0x19cf49,_0x3c8ca7['startState']['selection']),new HistoryState(0x0==_0x4e73c8?_0x2d17ea['rest']:_0x19cf49,0x0==_0x4e73c8?_0x19cf49:_0x2d17ea['rest']);}let _0x4468bc=_0x3c8ca7['annotation'](isolateHistory);if('full'!=_0x4468bc&&'before'!=_0x4468bc||(_0x27b738=_0x27b738['isolate']()),!0x1===_0x3c8ca7['annotation'](Transaction['addToHistory']))return _0x3c8ca7['changes']['empty']?_0x27b738:_0x27b738['addMapping'](_0x3c8ca7['changes']['desc']);let _0x1d2791=HistEvent['fromTransaction'](_0x3c8ca7),_0x4c7ef4=_0x3c8ca7['annotation'](Transaction['time']),_0x102081=_0x3c8ca7['annotation'](Transaction['userEvent']);return _0x1d2791?_0x27b738=_0x27b738['addChanges'](_0x1d2791,_0x4c7ef4,_0x102081,_0x346eb2,_0x3c8ca7):_0x3c8ca7['selection']&&(_0x27b738=_0x27b738['addSelection'](_0x3c8ca7['startState']['selection'],_0x4c7ef4,_0x102081,_0x346eb2['newGroupDelay'])),'full'!=_0x4468bc&&'after'!=_0x4468bc||(_0x27b738=_0x27b738['isolate']()),_0x27b738;},'toJSON':_0xa9a9c4=>({'done':_0xa9a9c4['done']['map'](_0x33b81f=>_0x33b81f['toJSON']()),'undone':_0xa9a9c4['undone']['map'](_0x110f90=>_0x110f90['toJSON']())}),'fromJSON':_0x2bb893=>new HistoryState(_0x2bb893['done']['map'](HistEvent['fromJSON']),_0x2bb893['undone']['map'](HistEvent['fromJSON']))});function history(_0x16e5bd={}){return[historyField_,historyConfig['of'](_0x16e5bd),EditorView['domEventHandlers']({'beforeinput'(_0x578b01,_0x30c5bf){let _0x822a1e='historyUndo'==_0x578b01['inputType']?undo:'historyRedo'==_0x578b01['inputType']?redo:null;return!!_0x822a1e&&(_0x578b01['preventDefault'](),_0x822a1e(_0x30c5bf));}})];}function cmd(_0x332dd7,_0x26934c){return function({state:_0x1aa40a,dispatch:_0x54f905}){if(!_0x26934c&&_0x1aa40a['readOnly'])return!0x1;let _0x3bb84d=_0x1aa40a['field'](historyField_,!0x1);if(!_0x3bb84d)return!0x1;let _0x543f01=_0x3bb84d['pop'](_0x332dd7,_0x1aa40a,_0x26934c);return!!_0x543f01&&(_0x54f905(_0x543f01),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x3980da,_0xf2a253,_0x2f07a5,_0x1d682f,_0x4f7684){this['changes']=_0x3980da,this['effects']=_0xf2a253,this['mapped']=_0x2f07a5,this['startSelection']=_0x1d682f,this['selectionsAfter']=_0x4f7684;}['setSelAfter'](_0x254db2){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x254db2);}['toJSON'](){var _0x51959a,_0x4f5802,_0x4ad60d;return{'changes':null===(_0x51959a=this['changes'])||void 0x0===_0x51959a?void 0x0:_0x51959a['toJSON'](),'mapped':null===(_0x4f5802=this['mapped'])||void 0x0===_0x4f5802?void 0x0:_0x4f5802['toJSON'](),'startSelection':null===(_0x4ad60d=this['startSelection'])||void 0x0===_0x4ad60d?void 0x0:_0x4ad60d['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0xa23f8=>_0xa23f8['toJSON']())};}static['fromJSON'](_0x23eeef){return new HistEvent(_0x23eeef['changes']&&ChangeSet['fromJSON'](_0x23eeef['changes']),[],_0x23eeef['mapped']&&ChangeDesc['fromJSON'](_0x23eeef['mapped']),_0x23eeef['startSelection']&&EditorSelection['fromJSON'](_0x23eeef['startSelection']),_0x23eeef['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x32c1e6,_0x4d9210){let _0x108a8c=none$2;for(let _0x399df7 of _0x32c1e6['startState']['facet'](invertedEffects)){let _0x2fdc2a=_0x399df7(_0x32c1e6);_0x2fdc2a['length']&&(_0x108a8c=_0x108a8c['concat'](_0x2fdc2a));}return!_0x108a8c['length']&&_0x32c1e6['changes']['empty']?null:new HistEvent(_0x32c1e6['changes']['invert'](_0x32c1e6['startState']['doc']),_0x108a8c,void 0x0,_0x4d9210||_0x32c1e6['startState']['selection'],none$2);}static['selection'](_0x3914a7){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x3914a7);}}function updateBranch(_0x483045,_0x4e731d,_0xd45e10,_0x3aa766){let _0x1ce5bd=_0x4e731d+0x1>_0xd45e10+0x14?_0x4e731d-_0xd45e10-0x1:0x0,_0x4f990f=_0x483045['slice'](_0x1ce5bd,_0x4e731d);return _0x4f990f['push'](_0x3aa766),_0x4f990f;}function isAdjacent(_0x423f65,_0x46fb76){let _0x11c34e=[],_0x599649=!0x1;return _0x423f65['iterChangedRanges']((_0x173d2d,t)=>_0x11c34e['push'](_0x173d2d,t)),_0x46fb76['iterChangedRanges']((_0x387b30,_0x2bb679,_0x22f0dd,t)=>{for(let _0x24e752=0x0;_0x24e752<_0x11c34e['length'];){let _0x4dce95=_0x11c34e[_0x24e752++],_0xf462ca=_0x11c34e[_0x24e752++];t>=_0x4dce95&&_0x22f0dd<=_0xf462ca&&(_0x599649=!0x0);}}),_0x599649;}function eqSelectionShape(_0x2659f2,_0x15b021){return _0x2659f2['ranges']['length']==_0x15b021['ranges']['length']&&0x0===_0x2659f2['ranges']['filter']((_0x576ece,_0x3f4c8b)=>_0x576ece['empty']!=_0x15b021['ranges'][_0x3f4c8b]['empty'])['length'];}function conc(_0x572c84,_0x4d6393){return _0x572c84['length']?_0x4d6393['length']?_0x572c84['concat'](_0x4d6393):_0x572c84:_0x4d6393;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x42ccff,_0x40292d){if(_0x42ccff['length']){let _0x8e187a=_0x42ccff[_0x42ccff['length']-0x1],_0x29c57e=_0x8e187a['selectionsAfter']['slice'](Math['max'](0x0,_0x8e187a['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x29c57e['length']&&_0x29c57e[_0x29c57e['length']-0x1]['eq'](_0x40292d)?_0x42ccff:(_0x29c57e['push'](_0x40292d),updateBranch(_0x42ccff,_0x42ccff['length']-0x1,0x3b9aca00,_0x8e187a['setSelAfter'](_0x29c57e)));}return[HistEvent['selection']([_0x40292d])];}function popSelection(_0x55c620){let _0xfcc61d=_0x55c620[_0x55c620['length']-0x1],_0x3f5a80=_0x55c620['slice']();return _0x3f5a80[_0x55c620['length']-0x1]=_0xfcc61d['setSelAfter'](_0xfcc61d['selectionsAfter']['slice'](0x0,_0xfcc61d['selectionsAfter']['length']-0x1)),_0x3f5a80;}function addMappingToBranch(_0x297e8c,_0x1ec4e3){if(!_0x297e8c['length'])return _0x297e8c;let _0x41cd7e=_0x297e8c['length'],_0x4444a7=none$2;for(;_0x41cd7e;){let _0x141a7c=mapEvent(_0x297e8c[_0x41cd7e-0x1],_0x1ec4e3,_0x4444a7);if(_0x141a7c['changes']&&!_0x141a7c['changes']['empty']||_0x141a7c['effects']['length']){let _0x3a1d68=_0x297e8c['slice'](0x0,_0x41cd7e);return _0x3a1d68[_0x41cd7e-0x1]=_0x141a7c,_0x3a1d68;}_0x1ec4e3=_0x141a7c['mapped'],_0x41cd7e--,_0x4444a7=_0x141a7c['selectionsAfter'];}return _0x4444a7['length']?[HistEvent['selection'](_0x4444a7)]:none$2;}function mapEvent(_0x114d18,_0x5334f4,_0x430071){let _0x4db6f6=conc(_0x114d18['selectionsAfter']['length']?_0x114d18['selectionsAfter']['map'](_0x2d534b=>_0x2d534b['map'](_0x5334f4)):none$2,_0x430071);if(!_0x114d18['changes'])return HistEvent['selection'](_0x4db6f6);let _0x216c21=_0x114d18['changes']['map'](_0x5334f4),_0x766c36=_0x5334f4['mapDesc'](_0x114d18['changes'],!0x0),_0x5a2441=_0x114d18['mapped']?_0x114d18['mapped']['composeDesc'](_0x766c36):_0x766c36;return new HistEvent(_0x216c21,StateEffect['mapEffects'](_0x114d18['effects'],_0x5334f4),_0x5a2441,_0x114d18['startSelection']['map'](_0x766c36),_0x4db6f6);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x1c80ed,_0x45b317,_0x1ba0a2=0x0,_0xb52b1=void 0x0){this['done']=_0x1c80ed,this['undone']=_0x45b317,this['prevTime']=_0x1ba0a2,this['prevUserEvent']=_0xb52b1;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0x349daf,_0x3fcab9,_0x1aee7f,_0xc02004,_0x4909d8){let _0x21762e=this['done'],_0x564520=_0x21762e[_0x21762e['length']-0x1];return _0x21762e=_0x564520&&_0x564520['changes']&&!_0x564520['changes']['empty']&&_0x349daf['changes']&&(!_0x1aee7f||joinableUserEvent['test'](_0x1aee7f))&&(!_0x564520['selectionsAfter']['length']&&_0x3fcab9-this['prevTime']<_0xc02004['newGroupDelay']&&_0xc02004['joinToEvent'](_0x4909d8,isAdjacent(_0x564520['changes'],_0x349daf['changes']))||'input.type.compose'==_0x1aee7f)?updateBranch(_0x21762e,_0x21762e['length']-0x1,_0xc02004['minDepth'],new HistEvent(_0x349daf['changes']['compose'](_0x564520['changes']),conc(StateEffect['mapEffects'](_0x349daf['effects'],_0x564520['changes']),_0x564520['effects']),_0x564520['mapped'],_0x564520['startSelection'],none$2)):updateBranch(_0x21762e,_0x21762e['length'],_0xc02004['minDepth'],_0x349daf),new HistoryState(_0x21762e,none$2,_0x3fcab9,_0x1aee7f);}['addSelection'](_0xb66d56,_0x21d6e2,_0xdaa34c,_0x1a777b){let _0x5d8ca7=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x5d8ca7['length']>0x0&&_0x21d6e2-this['prevTime']<_0x1a777b&&_0xdaa34c==this['prevUserEvent']&&_0xdaa34c&&/^select($|\.)/['test'](_0xdaa34c)&&eqSelectionShape(_0x5d8ca7[_0x5d8ca7['length']-0x1],_0xb66d56)?this:new HistoryState(addSelection(this['done'],_0xb66d56),this['undone'],_0x21d6e2,_0xdaa34c);}['addMapping'](_0x166e93){return new HistoryState(addMappingToBranch(this['done'],_0x166e93),addMappingToBranch(this['undone'],_0x166e93),this['prevTime'],this['prevUserEvent']);}['pop'](_0x1e3a69,_0x574386,_0x5d39ac){let _0x206f01=0x0==_0x1e3a69?this['done']:this['undone'];if(0x0==_0x206f01['length'])return null;let _0x137c20=_0x206f01[_0x206f01['length']-0x1],_0x4dcb71=_0x137c20['selectionsAfter'][0x0]||_0x574386['selection'];if(_0x5d39ac&&_0x137c20['selectionsAfter']['length'])return _0x574386['update']({'selection':_0x137c20['selectionsAfter'][_0x137c20['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x1e3a69,'rest':popSelection(_0x206f01),'selection':_0x4dcb71}),'userEvent':0x0==_0x1e3a69?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x137c20['changes']){let _0x108774=0x1==_0x206f01['length']?none$2:_0x206f01['slice'](0x0,_0x206f01['length']-0x1);return _0x137c20['mapped']&&(_0x108774=addMappingToBranch(_0x108774,_0x137c20['mapped'])),_0x574386['update']({'changes':_0x137c20['changes'],'selection':_0x137c20['startSelection'],'effects':_0x137c20['effects'],'annotations':fromHistory['of']({'side':_0x1e3a69,'rest':_0x108774,'selection':_0x4dcb71}),'filter':!0x1,'userEvent':0x0==_0x1e3a69?'undo':'redo','scrollIntoView':!0x0});}return null;}}HistoryState['empty']=new HistoryState(none$2,none$2);const historyKeymap=[{'key':'Mod-z','run':undo,'preventDefault':!0x0},{'key':'Mod-y','mac':'Mod-Shift-z','run':redo,'preventDefault':!0x0},{'linux':'Ctrl-Shift-z','run':redo,'preventDefault':!0x0},{'key':'Mod-u','run':undoSelection,'preventDefault':!0x0},{'key':'Alt-u','mac':'Mod-Shift-u','run':redoSelection,'preventDefault':!0x0}];function updateSel(_0x204584,_0x188f5){return EditorSelection['create'](_0x204584['ranges']['map'](_0x188f5),_0x204584['mainIndex']);}function setSel(_0x4d2a92,_0x2e99c8){return _0x4d2a92['update']({'selection':_0x2e99c8,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0xe146bc,dispatch:_0x28e5a4},_0x174035){let _0x1701f5=updateSel(_0xe146bc['selection'],_0x174035);return!_0x1701f5['eq'](_0xe146bc['selection'],!0x0)&&(_0x28e5a4(setSel(_0xe146bc,_0x1701f5)),!0x0);}function rangeEnd(_0x55f2ee,_0x340345){return EditorSelection['cursor'](_0x340345?_0x55f2ee['to']:_0x55f2ee['from']);}function cursorByChar(_0x941a82,_0x584fc4){return moveSel(_0x941a82,_0x5c0c3e=>_0x5c0c3e['empty']?_0x941a82['moveByChar'](_0x5c0c3e,_0x584fc4):rangeEnd(_0x5c0c3e,_0x584fc4));}function ltrAtCursor(_0x319ff0){return _0x319ff0['textDirectionAt'](_0x319ff0['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0x5addd7=>cursorByChar(_0x5addd7,!ltrAtCursor(_0x5addd7)),cursorCharRight=_0x2ef04a=>cursorByChar(_0x2ef04a,ltrAtCursor(_0x2ef04a));function cursorByGroup(_0x1332f0,_0x10cbce){return moveSel(_0x1332f0,_0x20df15=>_0x20df15['empty']?_0x1332f0['moveByGroup'](_0x20df15,_0x10cbce):rangeEnd(_0x20df15,_0x10cbce));}const cursorGroupLeft=_0x1ef31b=>cursorByGroup(_0x1ef31b,!ltrAtCursor(_0x1ef31b)),cursorGroupRight=_0x475526=>cursorByGroup(_0x475526,ltrAtCursor(_0x475526));function interestingNode(_0x1daf88,_0x16ef4c,_0xf99143){if(_0x16ef4c['type']['prop'](_0xf99143))return!0x0;let _0x190388=_0x16ef4c['to']-_0x16ef4c['from'];return _0x190388&&(_0x190388>0x2||/[^\s,.;:]/['test'](_0x1daf88['sliceDoc'](_0x16ef4c['from'],_0x16ef4c['to'])))||_0x16ef4c['firstChild'];}function moveBySyntax(_0x40d57f,_0x4f8955,_0x4d17b2){let _0x518815,_0x145562,_0x3659ec=syntaxTree(_0x40d57f)['resolveInner'](_0x4f8955['head']),_0x4569d9=_0x4d17b2?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0x32b6a7=_0x4f8955['head'];;){let _0x5e525d=_0x4d17b2?_0x3659ec['childAfter'](_0x32b6a7):_0x3659ec['childBefore'](_0x32b6a7);if(!_0x5e525d)break;interestingNode(_0x40d57f,_0x5e525d,_0x4569d9)?_0x3659ec=_0x5e525d:_0x32b6a7=_0x4d17b2?_0x5e525d['to']:_0x5e525d['from'];}return _0x145562=_0x3659ec['type']['prop'](_0x4569d9)&&(_0x518815=_0x4d17b2?matchBrackets(_0x40d57f,_0x3659ec['from'],0x1):matchBrackets(_0x40d57f,_0x3659ec['to'],-0x1))&&_0x518815['matched']?_0x4d17b2?_0x518815['end']['to']:_0x518815['end']['from']:_0x4d17b2?_0x3659ec['to']:_0x3659ec['from'],EditorSelection['cursor'](_0x145562,_0x4d17b2?-0x1:0x1);}const cursorSyntaxLeft=_0x3176d8=>moveSel(_0x3176d8,_0x2dd466=>moveBySyntax(_0x3176d8['state'],_0x2dd466,!ltrAtCursor(_0x3176d8))),cursorSyntaxRight=_0x5569c0=>moveSel(_0x5569c0,_0x1a8895=>moveBySyntax(_0x5569c0['state'],_0x1a8895,ltrAtCursor(_0x5569c0)));function cursorByLine(_0x46c3f4,_0x2777c3){return moveSel(_0x46c3f4,_0x24f5e8=>{if(!_0x24f5e8['empty'])return rangeEnd(_0x24f5e8,_0x2777c3);let _0x4210d6=_0x46c3f4['moveVertically'](_0x24f5e8,_0x2777c3);return _0x4210d6['head']!=_0x24f5e8['head']?_0x4210d6:_0x46c3f4['moveToLineBoundary'](_0x24f5e8,_0x2777c3);});}const cursorLineUp=_0x59df07=>cursorByLine(_0x59df07,!0x1),cursorLineDown=_0x2e0a26=>cursorByLine(_0x2e0a26,!0x0);function pageInfo(_0x34e969){let _0x5de6c8,_0x363230=_0x34e969['scrollDOM']['clientHeight']<_0x34e969['scrollDOM']['scrollHeight']-0x2,_0x2ac4ca=0x0,_0x3abab9=0x0;if(_0x363230){for(let _0x526c1a of _0x34e969['state']['facet'](EditorView['scrollMargins'])){let _0x2a580c=_0x526c1a(_0x34e969);(null==_0x2a580c?void 0x0:_0x2a580c['top'])&&(_0x2ac4ca=Math['max'](null==_0x2a580c?void 0x0:_0x2a580c['top'],_0x2ac4ca)),(null==_0x2a580c?void 0x0:_0x2a580c['bottom'])&&(_0x3abab9=Math['max'](null==_0x2a580c?void 0x0:_0x2a580c['bottom'],_0x3abab9));}_0x5de6c8=_0x34e969['scrollDOM']['clientHeight']-_0x2ac4ca-_0x3abab9;}else _0x5de6c8=(_0x34e969['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0x2ac4ca,'marginBottom':_0x3abab9,'selfScroll':_0x363230,'height':Math['max'](_0x34e969['defaultLineHeight'],_0x5de6c8-0x5)};}function cursorByPage(_0x5347eb,_0x20151b){let _0x379ffb,_0xb338f3=pageInfo(_0x5347eb),{state:_0x1189f0}=_0x5347eb,_0x48c234=updateSel(_0x1189f0['selection'],_0x45da15=>_0x45da15['empty']?_0x5347eb['moveVertically'](_0x45da15,_0x20151b,_0xb338f3['height']):rangeEnd(_0x45da15,_0x20151b));if(_0x48c234['eq'](_0x1189f0['selection']))return!0x1;if(_0xb338f3['selfScroll']){let _0x3eec9f=_0x5347eb['coordsAtPos'](_0x1189f0['selection']['main']['head']),_0x28f312=_0x5347eb['scrollDOM']['getBoundingClientRect'](),_0x39e34d=_0x28f312['top']+_0xb338f3['marginTop'],_0x37dc77=_0x28f312['bottom']-_0xb338f3['marginBottom'];_0x3eec9f&&_0x3eec9f['top']>_0x39e34d&&_0x3eec9f['bottom']<_0x37dc77&&(_0x379ffb=EditorView['scrollIntoView'](_0x48c234['main']['head'],{'y':'start','yMargin':_0x3eec9f['top']-_0x39e34d}));}return _0x5347eb['dispatch'](setSel(_0x1189f0,_0x48c234),{'effects':_0x379ffb}),!0x0;}const cursorPageUp=_0x318ae1=>cursorByPage(_0x318ae1,!0x1),cursorPageDown=_0x65a7f7=>cursorByPage(_0x65a7f7,!0x0);function moveByLineBoundary(_0x2e5d57,_0x11e2f2,_0x39baef){let _0x509b00=_0x2e5d57['lineBlockAt'](_0x11e2f2['head']),_0x3cd0bd=_0x2e5d57['moveToLineBoundary'](_0x11e2f2,_0x39baef);if(_0x3cd0bd['head']==_0x11e2f2['head']&&_0x3cd0bd['head']!=(_0x39baef?_0x509b00['to']:_0x509b00['from'])&&(_0x3cd0bd=_0x2e5d57['moveToLineBoundary'](_0x11e2f2,_0x39baef,!0x1)),!_0x39baef&&_0x3cd0bd['head']==_0x509b00['from']&&_0x509b00['length']){let _0x19da18=/^\s*/['exec'](_0x2e5d57['state']['sliceDoc'](_0x509b00['from'],Math['min'](_0x509b00['from']+0x64,_0x509b00['to'])))[0x0]['length'];_0x19da18&&_0x11e2f2['head']!=_0x509b00['from']+_0x19da18&&(_0x3cd0bd=EditorSelection['cursor'](_0x509b00['from']+_0x19da18));}return _0x3cd0bd;}const cursorLineBoundaryForward=_0x2331b1=>moveSel(_0x2331b1,_0x984fd7=>moveByLineBoundary(_0x2331b1,_0x984fd7,!0x0)),cursorLineBoundaryBackward=_0x562b3c=>moveSel(_0x562b3c,_0x5f2bf5=>moveByLineBoundary(_0x562b3c,_0x5f2bf5,!0x1)),cursorLineBoundaryLeft=_0x155e76=>moveSel(_0x155e76,_0x1b83d8=>moveByLineBoundary(_0x155e76,_0x1b83d8,!ltrAtCursor(_0x155e76))),cursorLineBoundaryRight=_0x80e65e=>moveSel(_0x80e65e,_0x39d002=>moveByLineBoundary(_0x80e65e,_0x39d002,ltrAtCursor(_0x80e65e))),cursorLineStart=_0x424a72=>moveSel(_0x424a72,_0x198d22=>EditorSelection['cursor'](_0x424a72['lineBlockAt'](_0x198d22['head'])['from'],0x1)),cursorLineEnd=_0x5ccb00=>moveSel(_0x5ccb00,_0x1839c5=>EditorSelection['cursor'](_0x5ccb00['lineBlockAt'](_0x1839c5['head'])['to'],-0x1));function toMatchingBracket(_0x3f55b3,_0x8f4119,_0x4fba0e){let _0xa49471=!0x1,_0x121609=updateSel(_0x3f55b3['selection'],_0x23c102=>{let _0x20fc6e=matchBrackets(_0x3f55b3,_0x23c102['head'],-0x1)||matchBrackets(_0x3f55b3,_0x23c102['head'],0x1)||_0x23c102['head']>0x0&&matchBrackets(_0x3f55b3,_0x23c102['head']-0x1,0x1)||_0x23c102['head']<_0x3f55b3['doc']['length']&&matchBrackets(_0x3f55b3,_0x23c102['head']+0x1,-0x1);if(!_0x20fc6e||!_0x20fc6e['end'])return _0x23c102;_0xa49471=!0x0;let _0x329e40=_0x20fc6e['start']['from']==_0x23c102['head']?_0x20fc6e['end']['to']:_0x20fc6e['end']['from'];return EditorSelection['cursor'](_0x329e40);});return!!_0xa49471&&(_0x8f4119(setSel(_0x3f55b3,_0x121609)),!0x0);}const cursorMatchingBracket=({state:_0x37f403,dispatch:_0x553217})=>toMatchingBracket(_0x37f403,_0x553217);function extendSel(_0x3ab638,_0x3c62bd){let _0x53d5f3=updateSel(_0x3ab638['state']['selection'],_0x1847a6=>{let _0xb7e351=_0x3c62bd(_0x1847a6);return EditorSelection['range'](_0x1847a6['anchor'],_0xb7e351['head'],_0xb7e351['goalColumn'],_0xb7e351['bidiLevel']||void 0x0);});return!_0x53d5f3['eq'](_0x3ab638['state']['selection'])&&(_0x3ab638['dispatch'](setSel(_0x3ab638['state'],_0x53d5f3)),!0x0);}function selectByChar(_0x27d2ad,_0x2d2c6c){return extendSel(_0x27d2ad,_0x378201=>_0x27d2ad['moveByChar'](_0x378201,_0x2d2c6c));}const selectCharLeft=_0x1fb0f3=>selectByChar(_0x1fb0f3,!ltrAtCursor(_0x1fb0f3)),selectCharRight=_0x31aa27=>selectByChar(_0x31aa27,ltrAtCursor(_0x31aa27));function selectByGroup(_0xf664df,_0x1420c3){return extendSel(_0xf664df,_0x346f87=>_0xf664df['moveByGroup'](_0x346f87,_0x1420c3));}const selectGroupLeft=_0x5e4cfe=>selectByGroup(_0x5e4cfe,!ltrAtCursor(_0x5e4cfe)),selectGroupRight=_0x3c5561=>selectByGroup(_0x3c5561,ltrAtCursor(_0x3c5561)),selectSyntaxLeft=_0x16f9c8=>extendSel(_0x16f9c8,_0x353b7c=>moveBySyntax(_0x16f9c8['state'],_0x353b7c,!ltrAtCursor(_0x16f9c8))),selectSyntaxRight=_0x453995=>extendSel(_0x453995,_0x411fbf=>moveBySyntax(_0x453995['state'],_0x411fbf,ltrAtCursor(_0x453995)));function selectByLine(_0x2df237,_0x4d7e66){return extendSel(_0x2df237,_0x4dfec9=>_0x2df237['moveVertically'](_0x4dfec9,_0x4d7e66));}const selectLineUp=_0x26ddf6=>selectByLine(_0x26ddf6,!0x1),selectLineDown=_0x14a7c4=>selectByLine(_0x14a7c4,!0x0);function selectByPage(_0x37dee2,_0x2ccc1b){return extendSel(_0x37dee2,_0xd69a86=>_0x37dee2['moveVertically'](_0xd69a86,_0x2ccc1b,pageInfo(_0x37dee2)['height']));}const selectPageUp=_0xbf2943=>selectByPage(_0xbf2943,!0x1),selectPageDown=_0x313d1d=>selectByPage(_0x313d1d,!0x0),selectLineBoundaryForward=_0x2f07a6=>extendSel(_0x2f07a6,_0x43084e=>moveByLineBoundary(_0x2f07a6,_0x43084e,!0x0)),selectLineBoundaryBackward=_0x46d8a2=>extendSel(_0x46d8a2,_0x323de1=>moveByLineBoundary(_0x46d8a2,_0x323de1,!0x1)),selectLineBoundaryLeft=_0x37d4c1=>extendSel(_0x37d4c1,_0x19e720=>moveByLineBoundary(_0x37d4c1,_0x19e720,!ltrAtCursor(_0x37d4c1))),selectLineBoundaryRight=_0x2d3cb2=>extendSel(_0x2d3cb2,_0xce4d5e=>moveByLineBoundary(_0x2d3cb2,_0xce4d5e,ltrAtCursor(_0x2d3cb2))),selectLineStart=_0x50839d=>extendSel(_0x50839d,_0x230aca=>EditorSelection['cursor'](_0x50839d['lineBlockAt'](_0x230aca['head'])['from'])),selectLineEnd=_0xc12a3=>extendSel(_0xc12a3,_0x208e8c=>EditorSelection['cursor'](_0xc12a3['lineBlockAt'](_0x208e8c['head'])['to'])),cursorDocStart=({state:_0x3661d4,dispatch:_0x16b8d7})=>(_0x16b8d7(setSel(_0x3661d4,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0x2c8cc3,dispatch:_0x2490b2})=>(_0x2490b2(setSel(_0x2c8cc3,{'anchor':_0x2c8cc3['doc']['length']})),!0x0),selectDocStart=({state:_0x393d87,dispatch:_0x21db57})=>(_0x21db57(setSel(_0x393d87,{'anchor':_0x393d87['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x43794b,dispatch:_0x48c6a9})=>(_0x48c6a9(setSel(_0x43794b,{'anchor':_0x43794b['selection']['main']['anchor'],'head':_0x43794b['doc']['length']})),!0x0),selectAll=({state:_0x4ec74e,dispatch:_0x1b3296})=>(_0x1b3296(_0x4ec74e['update']({'selection':{'anchor':0x0,'head':_0x4ec74e['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0x384957,dispatch:_0x350e99})=>{let _0x34b36f=selectedLineBlocks(_0x384957)['map'](({from:_0x49d5ba,to:_0x2b7ae0})=>EditorSelection['range'](_0x49d5ba,Math['min'](_0x2b7ae0+0x1,_0x384957['doc']['length'])));return _0x350e99(_0x384957['update']({'selection':EditorSelection['create'](_0x34b36f),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0x177e0d,dispatch:_0x1f4c88})=>{let _0x29ab77=updateSel(_0x177e0d['selection'],_0x4c3f92=>{let _0x3d740f=syntaxTree(_0x177e0d),_0x2a38b8=_0x3d740f['resolveStack'](_0x4c3f92['from'],0x1);if(_0x4c3f92['empty']){let _0x3b4fb1=_0x3d740f['resolveStack'](_0x4c3f92['from'],-0x1);_0x3b4fb1['node']['from']>=_0x2a38b8['node']['from']&&_0x3b4fb1['node']['to']<=_0x2a38b8['node']['to']&&(_0x2a38b8=_0x3b4fb1);}for(let _0x596992=_0x2a38b8;_0x596992;_0x596992=_0x596992['next']){let {node:_0x4c8095}=_0x596992;if((_0x4c8095['from']<_0x4c3f92['from']&&_0x4c8095['to']>=_0x4c3f92['to']||_0x4c8095['to']>_0x4c3f92['to']&&_0x4c8095['from']<=_0x4c3f92['from'])&&_0x596992['next'])return EditorSelection['range'](_0x4c8095['to'],_0x4c8095['from']);}return _0x4c3f92;});return!_0x29ab77['eq'](_0x177e0d['selection'])&&(_0x1f4c88(setSel(_0x177e0d,_0x29ab77)),!0x0);},simplifySelection=({state:_0x1da367,dispatch:_0x3125c9})=>{let _0x4e5c1b=_0x1da367['selection'],_0x185d33=null;return _0x4e5c1b['ranges']['length']>0x1?_0x185d33=EditorSelection['create']([_0x4e5c1b['main']]):_0x4e5c1b['main']['empty']||(_0x185d33=EditorSelection['create']([EditorSelection['cursor'](_0x4e5c1b['main']['head'])])),!!_0x185d33&&(_0x3125c9(setSel(_0x1da367,_0x185d33)),!0x0);};function deleteBy(_0x480b64,_0xe00059){if(_0x480b64['state']['readOnly'])return!0x1;let _0x288e99='delete.selection',{state:_0x2641c4}=_0x480b64,_0x55c9b5=_0x2641c4['changeByRange'](_0x193971=>{let {from:_0x1f0bdb,to:_0x4de881}=_0x193971;if(_0x1f0bdb==_0x4de881){let _0x4b2f54=_0xe00059(_0x193971);_0x4b2f54<_0x1f0bdb?(_0x288e99='delete.backward',_0x4b2f54=skipAtomic(_0x480b64,_0x4b2f54,!0x1)):_0x4b2f54>_0x1f0bdb&&(_0x288e99='delete.forward',_0x4b2f54=skipAtomic(_0x480b64,_0x4b2f54,!0x0)),_0x1f0bdb=Math['min'](_0x1f0bdb,_0x4b2f54),_0x4de881=Math['max'](_0x4de881,_0x4b2f54);}else _0x1f0bdb=skipAtomic(_0x480b64,_0x1f0bdb,!0x1),_0x4de881=skipAtomic(_0x480b64,_0x4de881,!0x0);return _0x1f0bdb==_0x4de881?{'range':_0x193971}:{'changes':{'from':_0x1f0bdb,'to':_0x4de881},'range':EditorSelection['cursor'](_0x1f0bdb,_0x1f0bdb<_0x193971['head']?-0x1:0x1)};});return!_0x55c9b5['changes']['empty']&&(_0x480b64['dispatch'](_0x2641c4['update'](_0x55c9b5,{'scrollIntoView':!0x0,'userEvent':_0x288e99,'effects':'delete.selection'==_0x288e99?EditorView['announce']['of'](_0x2641c4['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x2acacb,_0xfb9f69,_0x3b6621){if(_0x2acacb instanceof EditorView){for(let _0x28f6f5 of _0x2acacb['state']['facet'](EditorView['atomicRanges'])['map'](_0x16354f=>_0x16354f(_0x2acacb)))_0x28f6f5['between'](_0xfb9f69,_0xfb9f69,(_0x4355cb,_0x1eb7c6)=>{_0x4355cb<_0xfb9f69&&_0x1eb7c6>_0xfb9f69&&(_0xfb9f69=_0x3b6621?_0x1eb7c6:_0x4355cb);});}return _0xfb9f69;}const deleteByChar=(_0xebb729,_0x4a5b7a,_0xdde423)=>deleteBy(_0xebb729,_0xe59bfd=>{let _0x3ecbcc,_0x5b08b6,_0x5d5f97=_0xe59bfd['from'],{state:_0x470f8a}=_0xebb729,_0x18b951=_0x470f8a['doc']['lineAt'](_0x5d5f97);if(_0xdde423&&!_0x4a5b7a&&_0x5d5f97>_0x18b951['from']&&_0x5d5f97<_0x18b951['from']+0xc8&&!/[^ \t]/['test'](_0x3ecbcc=_0x18b951['text']['slice'](0x0,_0x5d5f97-_0x18b951['from']))){if('\x09'==_0x3ecbcc[_0x3ecbcc['length']-0x1])return _0x5d5f97-0x1;let _0x27b8f0=countColumn(_0x3ecbcc,_0x470f8a['tabSize'])%getIndentUnit(_0x470f8a)||getIndentUnit(_0x470f8a);for(let _0x2c0cf7=0x0;_0x2c0cf7<_0x27b8f0&&'\x20'==_0x3ecbcc[_0x3ecbcc['length']-0x1-_0x2c0cf7];_0x2c0cf7++)_0x5d5f97--;_0x5b08b6=_0x5d5f97;}else _0x5b08b6=findClusterBreak(_0x18b951['text'],_0x5d5f97-_0x18b951['from'],_0x4a5b7a,_0x4a5b7a)+_0x18b951['from'],_0x5b08b6==_0x5d5f97&&_0x18b951['number']!=(_0x4a5b7a?_0x470f8a['doc']['lines']:0x1)?_0x5b08b6+=_0x4a5b7a?0x1:-0x1:!_0x4a5b7a&&/[\ufe00-\ufe0f]/['test'](_0x18b951['text']['slice'](_0x5b08b6-_0x18b951['from'],_0x5d5f97-_0x18b951['from']))&&(_0x5b08b6=findClusterBreak(_0x18b951['text'],_0x5b08b6-_0x18b951['from'],!0x1,!0x1)+_0x18b951['from']);return _0x5b08b6;}),deleteCharBackward=_0x2f0f91=>deleteByChar(_0x2f0f91,!0x1,!0x0),deleteCharForward=_0x52127f=>deleteByChar(_0x52127f,!0x0,!0x1),deleteByGroup=(_0x34058e,_0x138c2f)=>deleteBy(_0x34058e,_0x524b44=>{let _0x47c0ea=_0x524b44['head'],{state:_0x4d5092}=_0x34058e,_0x179ca6=_0x4d5092['doc']['lineAt'](_0x47c0ea),_0x43cd14=_0x4d5092['charCategorizer'](_0x47c0ea);for(let _0x305e97=null;;){if(_0x47c0ea==(_0x138c2f?_0x179ca6['to']:_0x179ca6['from'])){_0x47c0ea==_0x524b44['head']&&_0x179ca6['number']!=(_0x138c2f?_0x4d5092['doc']['lines']:0x1)&&(_0x47c0ea+=_0x138c2f?0x1:-0x1);break;}let _0x5e0a55=findClusterBreak(_0x179ca6['text'],_0x47c0ea-_0x179ca6['from'],_0x138c2f)+_0x179ca6['from'],_0x41e064=_0x179ca6['text']['slice'](Math['min'](_0x47c0ea,_0x5e0a55)-_0x179ca6['from'],Math['max'](_0x47c0ea,_0x5e0a55)-_0x179ca6['from']),_0x20b67f=_0x43cd14(_0x41e064);if(null!=_0x305e97&&_0x20b67f!=_0x305e97)break;'\x20'==_0x41e064&&_0x47c0ea==_0x524b44['head']||(_0x305e97=_0x20b67f),_0x47c0ea=_0x5e0a55;}return _0x47c0ea;}),deleteGroupBackward=_0x1a7c96=>deleteByGroup(_0x1a7c96,!0x1),deleteGroupForward=_0xdc581=>deleteByGroup(_0xdc581,!0x0),deleteToLineEnd=_0x30dbfb=>deleteBy(_0x30dbfb,_0x5698ce=>{let _0xacb25=_0x30dbfb['lineBlockAt'](_0x5698ce['head'])['to'];return _0x5698ce['head']<_0xacb25?_0xacb25:Math['min'](_0x30dbfb['state']['doc']['length'],_0x5698ce['head']+0x1);}),deleteLineBoundaryBackward=_0x404720=>deleteBy(_0x404720,_0x31aeed=>{let _0x12867a=_0x404720['moveToLineBoundary'](_0x31aeed,!0x1)['head'];return _0x31aeed['head']>_0x12867a?_0x12867a:Math['max'](0x0,_0x31aeed['head']-0x1);}),deleteLineBoundaryForward=_0x1793f3=>deleteBy(_0x1793f3,_0x4840e9=>{let _0x56ef77=_0x1793f3['moveToLineBoundary'](_0x4840e9,!0x0)['head'];return _0x4840e9['head']<_0x56ef77?_0x56ef77:Math['min'](_0x1793f3['state']['doc']['length'],_0x4840e9['head']+0x1);}),splitLine=({state:_0xa1be30,dispatch:_0x407250})=>{if(_0xa1be30['readOnly'])return!0x1;let _0x58f1d4=_0xa1be30['changeByRange'](_0x21f2b1=>({'changes':{'from':_0x21f2b1['from'],'to':_0x21f2b1['to'],'insert':Text$1['of'](['',''])},'range':EditorSelection['cursor'](_0x21f2b1['from'])}));return _0x407250(_0xa1be30['update'](_0x58f1d4,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0x37eb5f,dispatch:_0x170f2e})=>{if(_0x37eb5f['readOnly'])return!0x1;let _0x3fe64a=_0x37eb5f['changeByRange'](_0x241ffc=>{if(!_0x241ffc['empty']||0x0==_0x241ffc['from']||_0x241ffc['from']==_0x37eb5f['doc']['length'])return{'range':_0x241ffc};let _0x2fe8b3=_0x241ffc['from'],_0x4f0500=_0x37eb5f['doc']['lineAt'](_0x2fe8b3),_0x4d784b=_0x2fe8b3==_0x4f0500['from']?_0x2fe8b3-0x1:findClusterBreak(_0x4f0500['text'],_0x2fe8b3-_0x4f0500['from'],!0x1)+_0x4f0500['from'],_0x55a75c=_0x2fe8b3==_0x4f0500['to']?_0x2fe8b3+0x1:findClusterBreak(_0x4f0500['text'],_0x2fe8b3-_0x4f0500['from'],!0x0)+_0x4f0500['from'];return{'changes':{'from':_0x4d784b,'to':_0x55a75c,'insert':_0x37eb5f['doc']['slice'](_0x2fe8b3,_0x55a75c)['append'](_0x37eb5f['doc']['slice'](_0x4d784b,_0x2fe8b3))},'range':EditorSelection['cursor'](_0x55a75c)};});return!_0x3fe64a['changes']['empty']&&(_0x170f2e(_0x37eb5f['update'](_0x3fe64a,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0x391bf7){let _0x46b78d=[],_0x381a64=-0x1;for(let _0x22a152 of _0x391bf7['selection']['ranges']){let _0x484d06=_0x391bf7['doc']['lineAt'](_0x22a152['from']),_0x3e2c8e=_0x391bf7['doc']['lineAt'](_0x22a152['to']);if(_0x22a152['empty']||_0x22a152['to']!=_0x3e2c8e['from']||(_0x3e2c8e=_0x391bf7['doc']['lineAt'](_0x22a152['to']-0x1)),_0x381a64>=_0x484d06['number']){let _0xcd781a=_0x46b78d[_0x46b78d['length']-0x1];_0xcd781a['to']=_0x3e2c8e['to'],_0xcd781a['ranges']['push'](_0x22a152);}else _0x46b78d['push']({'from':_0x484d06['from'],'to':_0x3e2c8e['to'],'ranges':[_0x22a152]});_0x381a64=_0x3e2c8e['number']+0x1;}return _0x46b78d;}function moveLine(_0x30d963,_0x29b499,_0x233933){if(_0x30d963['readOnly'])return!0x1;let _0x5a3010=[],_0x3f04b0=[];for(let _0x32ea10 of selectedLineBlocks(_0x30d963)){if(_0x233933?_0x32ea10['to']==_0x30d963['doc']['length']:0x0==_0x32ea10['from'])continue;let _0x559a46=_0x30d963['doc']['lineAt'](_0x233933?_0x32ea10['to']+0x1:_0x32ea10['from']-0x1),_0x4315f7=_0x559a46['length']+0x1;if(_0x233933){_0x5a3010['push']({'from':_0x32ea10['to'],'to':_0x559a46['to']},{'from':_0x32ea10['from'],'insert':_0x559a46['text']+_0x30d963['lineBreak']});for(let _0x102f4f of _0x32ea10['ranges'])_0x3f04b0['push'](EditorSelection['range'](Math['min'](_0x30d963['doc']['length'],_0x102f4f['anchor']+_0x4315f7),Math['min'](_0x30d963['doc']['length'],_0x102f4f['head']+_0x4315f7)));}else{_0x5a3010['push']({'from':_0x559a46['from'],'to':_0x32ea10['from']},{'from':_0x32ea10['to'],'insert':_0x30d963['lineBreak']+_0x559a46['text']});for(let _0x46adc8 of _0x32ea10['ranges'])_0x3f04b0['push'](EditorSelection['range'](_0x46adc8['anchor']-_0x4315f7,_0x46adc8['head']-_0x4315f7));}}return!!_0x5a3010['length']&&(_0x29b499(_0x30d963['update']({'changes':_0x5a3010,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0x3f04b0,_0x30d963['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0x284923,dispatch:_0x177273})=>moveLine(_0x284923,_0x177273,!0x1),moveLineDown=({state:_0x4b9259,dispatch:_0xcd556f})=>moveLine(_0x4b9259,_0xcd556f,!0x0);function copyLine(_0x1b0917,_0x535dcc,_0x2b2ada){if(_0x1b0917['readOnly'])return!0x1;let _0x3636b6=[];for(let _0x38ba27 of selectedLineBlocks(_0x1b0917))_0x2b2ada?_0x3636b6['push']({'from':_0x38ba27['from'],'insert':_0x1b0917['doc']['slice'](_0x38ba27['from'],_0x38ba27['to'])+_0x1b0917['lineBreak']}):_0x3636b6['push']({'from':_0x38ba27['to'],'insert':_0x1b0917['lineBreak']+_0x1b0917['doc']['slice'](_0x38ba27['from'],_0x38ba27['to'])});return _0x535dcc(_0x1b0917['update']({'changes':_0x3636b6,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0x36dd98,dispatch:_0x169b47})=>copyLine(_0x36dd98,_0x169b47,!0x1),copyLineDown=({state:_0xd83b79,dispatch:_0x3ac5e3})=>copyLine(_0xd83b79,_0x3ac5e3,!0x0),deleteLine=_0x408961=>{if(_0x408961['state']['readOnly'])return!0x1;let {state:_0x246b7d}=_0x408961,_0x5c48de=_0x246b7d['changes'](selectedLineBlocks(_0x246b7d)['map'](({from:_0x5ed9cd,to:_0x53ebf8})=>(_0x5ed9cd>0x0?_0x5ed9cd--:_0x53ebf8<_0x246b7d['doc']['length']&&_0x53ebf8++,{'from':_0x5ed9cd,'to':_0x53ebf8}))),_0x11a014=updateSel(_0x246b7d['selection'],_0x597a9a=>{let _0x324c85;if(_0x408961['lineWrapping']){let _0x56343d=_0x408961['lineBlockAt'](_0x597a9a['head']),_0x2b10e0=_0x408961['coordsAtPos'](_0x597a9a['head'],_0x597a9a['assoc']||0x1);_0x2b10e0&&(_0x324c85=_0x56343d['bottom']+_0x408961['documentTop']-_0x2b10e0['bottom']+_0x408961['defaultLineHeight']/0x2);}return _0x408961['moveVertically'](_0x597a9a,!0x0,_0x324c85);})['map'](_0x5c48de);return _0x408961['dispatch']({'changes':_0x5c48de,'selection':_0x11a014,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0x10d4e3,_0x7eabfa){if(/\(\)|\[\]|\{\}/['test'](_0x10d4e3['sliceDoc'](_0x7eabfa-0x1,_0x7eabfa+0x1)))return{'from':_0x7eabfa,'to':_0x7eabfa};let _0x147de0,_0x48aa11=syntaxTree(_0x10d4e3)['resolveInner'](_0x7eabfa),_0x2c1ea3=_0x48aa11['childBefore'](_0x7eabfa),_0x199d4b=_0x48aa11['childAfter'](_0x7eabfa);return _0x2c1ea3&&_0x199d4b&&_0x2c1ea3['to']<=_0x7eabfa&&_0x199d4b['from']>=_0x7eabfa&&(_0x147de0=_0x2c1ea3['type']['prop'](NodeProp['closedBy']))&&_0x147de0['indexOf'](_0x199d4b['name'])>-0x1&&_0x10d4e3['doc']['lineAt'](_0x2c1ea3['to'])['from']==_0x10d4e3['doc']['lineAt'](_0x199d4b['from'])['from']&&!/\S/['test'](_0x10d4e3['sliceDoc'](_0x2c1ea3['to'],_0x199d4b['from']))?{'from':_0x2c1ea3['to'],'to':_0x199d4b['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0x2e39f7){return({state:_0x105fd8,dispatch:_0x25c65a})=>{if(_0x105fd8['readOnly'])return!0x1;let _0x527a6a=_0x105fd8['changeByRange'](_0x116107=>{let {from:_0x3514c5,to:_0x5cc81f}=_0x116107,_0x20eaf2=_0x105fd8['doc']['lineAt'](_0x3514c5),_0xf67e7a=!_0x2e39f7&&_0x3514c5==_0x5cc81f&&isBetweenBrackets(_0x105fd8,_0x3514c5);_0x2e39f7&&(_0x3514c5=_0x5cc81f=(_0x5cc81f<=_0x20eaf2['to']?_0x20eaf2:_0x105fd8['doc']['lineAt'](_0x5cc81f))['to']);let _0x5b6833=new IndentContext(_0x105fd8,{'simulateBreak':_0x3514c5,'simulateDoubleBreak':!!_0xf67e7a}),_0x46f43c=getIndentation(_0x5b6833,_0x3514c5);for(null==_0x46f43c&&(_0x46f43c=countColumn(/^\s*/['exec'](_0x105fd8['doc']['lineAt'](_0x3514c5)['text'])[0x0],_0x105fd8['tabSize']));_0x5cc81f<_0x20eaf2['to']&&/\s/['test'](_0x20eaf2['text'][_0x5cc81f-_0x20eaf2['from']]);)_0x5cc81f++;_0xf67e7a?{from:_0x3514c5,to:_0x5cc81f}=_0xf67e7a:_0x3514c5>_0x20eaf2['from']&&_0x3514c5<_0x20eaf2['from']+0x64&&!/\S/['test'](_0x20eaf2['text']['slice'](0x0,_0x3514c5))&&(_0x3514c5=_0x20eaf2['from']);let _0x4de8ae=['',indentString(_0x105fd8,_0x46f43c)];return _0xf67e7a&&_0x4de8ae['push'](indentString(_0x105fd8,_0x5b6833['lineIndent'](_0x20eaf2['from'],-0x1))),{'changes':{'from':_0x3514c5,'to':_0x5cc81f,'insert':Text$1['of'](_0x4de8ae)},'range':EditorSelection['cursor'](_0x3514c5+0x1+_0x4de8ae[0x1]['length'])};});return _0x25c65a(_0x105fd8['update'](_0x527a6a,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0x525cba,_0x33587e){let _0x2677f6=-0x1;return _0x525cba['changeByRange'](_0x319b0c=>{let _0x227f8b=[];for(let _0x4b6330=_0x319b0c['from'];_0x4b6330<=_0x319b0c['to'];){let _0x52f1c6=_0x525cba['doc']['lineAt'](_0x4b6330);_0x52f1c6['number']>_0x2677f6&&(_0x319b0c['empty']||_0x319b0c['to']>_0x52f1c6['from'])&&(_0x33587e(_0x52f1c6,_0x227f8b,_0x319b0c),_0x2677f6=_0x52f1c6['number']),_0x4b6330=_0x52f1c6['to']+0x1;}let _0x1a0f98=_0x525cba['changes'](_0x227f8b);return{'changes':_0x227f8b,'range':EditorSelection['range'](_0x1a0f98['mapPos'](_0x319b0c['anchor'],0x1),_0x1a0f98['mapPos'](_0x319b0c['head'],0x1))};});}const indentSelection=({state:_0x9ab26f,dispatch:_0x5f5f2b})=>{if(_0x9ab26f['readOnly'])return!0x1;let _0x210fd9=Object['create'](null),_0x2ae3cc=new IndentContext(_0x9ab26f,{'overrideIndentation':_0x3c563a=>{let _0x5cef55=_0x210fd9[_0x3c563a];return null==_0x5cef55?-0x1:_0x5cef55;}}),_0x1a103d=changeBySelectedLine(_0x9ab26f,(_0x27c5b2,_0x3c4c22,_0x4750bc)=>{let _0x53d826=getIndentation(_0x2ae3cc,_0x27c5b2['from']);if(null==_0x53d826)return;/\S/['test'](_0x27c5b2['text'])||(_0x53d826=0x0);let _0x5855d1=/^\s*/['exec'](_0x27c5b2['text'])[0x0],_0x41bd46=indentString(_0x9ab26f,_0x53d826);(_0x5855d1!=_0x41bd46||_0x4750bc['from']<_0x27c5b2['from']+_0x5855d1['length'])&&(_0x210fd9[_0x27c5b2['from']]=_0x53d826,_0x3c4c22['push']({'from':_0x27c5b2['from'],'to':_0x27c5b2['from']+_0x5855d1['length'],'insert':_0x41bd46}));});return _0x1a103d['changes']['empty']||_0x5f5f2b(_0x9ab26f['update'](_0x1a103d,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x34ff37,dispatch:_0x2e3b38})=>!_0x34ff37['readOnly']&&(_0x2e3b38(_0x34ff37['update'](changeBySelectedLine(_0x34ff37,(_0x4cc657,_0x1475d7)=>{_0x1475d7['push']({'from':_0x4cc657['from'],'insert':_0x34ff37['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x55be84,dispatch:_0x6cc39c})=>!_0x55be84['readOnly']&&(_0x6cc39c(_0x55be84['update'](changeBySelectedLine(_0x55be84,(_0x6dfb14,_0x41d618)=>{let _0x1cfee6=/^\s*/['exec'](_0x6dfb14['text'])[0x0];if(!_0x1cfee6)return;let _0x168da9=countColumn(_0x1cfee6,_0x55be84['tabSize']),_0x29c833=0x0,_0x532158=indentString(_0x55be84,Math['max'](0x0,_0x168da9-getIndentUnit(_0x55be84)));for(;_0x29c833<_0x1cfee6['length']&&_0x29c833<_0x532158['length']&&_0x1cfee6['charCodeAt'](_0x29c833)==_0x532158['charCodeAt'](_0x29c833);)_0x29c833++;_0x41d618['push']({'from':_0x6dfb14['from']+_0x29c833,'to':_0x6dfb14['from']+_0x1cfee6['length'],'insert':_0x532158['slice'](_0x29c833)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0xf1c07f=>(_0xf1c07f['setTabFocusMode'](),!0x0),emacsStyleKeymap=[{'key':'Ctrl-b','run':cursorCharLeft,'shift':selectCharLeft,'preventDefault':!0x0},{'key':'Ctrl-f','run':cursorCharRight,'shift':selectCharRight},{'key':'Ctrl-p','run':cursorLineUp,'shift':selectLineUp},{'key':'Ctrl-n','run':cursorLineDown,'shift':selectLineDown},{'key':'Ctrl-a','run':cursorLineStart,'shift':selectLineStart},{'key':'Ctrl-e','run':cursorLineEnd,'shift':selectLineEnd},{'key':'Ctrl-d','run':deleteCharForward},{'key':'Ctrl-h','run':deleteCharBackward},{'key':'Ctrl-k','run':deleteToLineEnd},{'key':'Ctrl-Alt-h','run':deleteGroupBackward},{'key':'Ctrl-o','run':splitLine},{'key':'Ctrl-t','run':transposeChars},{'key':'Ctrl-v','run':cursorPageDown}],standardKeymap=[{'key':'ArrowLeft','run':cursorCharLeft,'shift':selectCharLeft,'preventDefault':!0x0},{'key':'Mod-ArrowLeft','mac':'Alt-ArrowLeft','run':cursorGroupLeft,'shift':selectGroupLeft,'preventDefault':!0x0},{'mac':'Cmd-ArrowLeft','run':cursorLineBoundaryLeft,'shift':selectLineBoundaryLeft,'preventDefault':!0x0},{'key':'ArrowRight','run':cursorCharRight,'shift':selectCharRight,'preventDefault':!0x0},{'key':'Mod-ArrowRight','mac':'Alt-ArrowRight','run':cursorGroupRight,'shift':selectGroupRight,'preventDefault':!0x0},{'mac':'Cmd-ArrowRight','run':cursorLineBoundaryRight,'shift':selectLineBoundaryRight,'preventDefault':!0x0},{'key':'ArrowUp','run':cursorLineUp,'shift':selectLineUp,'preventDefault':!0x0},{'mac':'Cmd-ArrowUp','run':cursorDocStart,'shift':selectDocStart},{'mac':'Ctrl-ArrowUp','run':cursorPageUp,'shift':selectPageUp},{'key':'ArrowDown','run':cursorLineDown,'shift':selectLineDown,'preventDefault':!0x0},{'mac':'Cmd-ArrowDown','run':cursorDocEnd,'shift':selectDocEnd},{'mac':'Ctrl-ArrowDown','run':cursorPageDown,'shift':selectPageDown},{'key':'PageUp','run':cursorPageUp,'shift':selectPageUp},{'key':'PageDown','run':cursorPageDown,'shift':selectPageDown},{'key':'Home','run':cursorLineBoundaryBackward,'shift':selectLineBoundaryBackward,'preventDefault':!0x0},{'key':'Mod-Home','run':cursorDocStart,'shift':selectDocStart},{'key':'End','run':cursorLineBoundaryForward,'shift':selectLineBoundaryForward,'preventDefault':!0x0},{'key':'Mod-End','run':cursorDocEnd,'shift':selectDocEnd},{'key':'Enter','run':insertNewlineAndIndent,'shift':insertNewlineAndIndent},{'key':'Mod-a','run':selectAll},{'key':'Backspace','run':deleteCharBackward,'shift':deleteCharBackward},{'key':'Delete','run':deleteCharForward},{'key':'Mod-Backspace','mac':'Alt-Backspace','run':deleteGroupBackward},{'key':'Mod-Delete','mac':'Alt-Delete','run':deleteGroupForward},{'mac':'Mod-Backspace','run':deleteLineBoundaryBackward},{'mac':'Mod-Delete','run':deleteLineBoundaryForward}]['concat'](emacsStyleKeymap['map'](_0x32da94=>({'mac':_0x32da94['key'],'run':_0x32da94['run'],'shift':_0x32da94['shift']}))),defaultKeymap=[{'key':'Alt-ArrowLeft','mac':'Ctrl-ArrowLeft','run':cursorSyntaxLeft,'shift':selectSyntaxLeft},{'key':'Alt-ArrowRight','mac':'Ctrl-ArrowRight','run':cursorSyntaxRight,'shift':selectSyntaxRight},{'key':'Alt-ArrowUp','run':moveLineUp},{'key':'Shift-Alt-ArrowUp','run':copyLineUp},{'key':'Alt-ArrowDown','run':moveLineDown},{'key':'Shift-Alt-ArrowDown','run':copyLineDown},{'key':'Escape','run':simplifySelection},{'key':'Mod-Enter','run':insertBlankLine},{'key':'Alt-l','mac':'Ctrl-l','run':selectLine},{'key':'Mod-i','run':selectParentSyntax,'preventDefault':!0x0},{'key':'Mod-[','run':indentLess},{'key':'Mod-]','run':indentMore},{'key':'Mod-Alt-\x5c','run':indentSelection},{'key':'Shift-Mod-k','run':deleteLine},{'key':'Shift-Mod-\x5c','run':cursorMatchingBracket},{'key':'Mod-/','run':toggleComment},{'key':'Alt-A','run':toggleBlockComment},{'key':'Ctrl-m','mac':'Shift-Alt-m','run':toggleTabFocusMode}]['concat'](standardKeymap);class CompletionContext{constructor(_0x5242f1,_0x25c7dd,_0x232a58,_0x74524e){this['state']=_0x5242f1,this['pos']=_0x25c7dd,this['explicit']=_0x232a58,this['view']=_0x74524e,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0x31fa6f){let _0x2ae797=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x2ae797&&_0x31fa6f['indexOf'](_0x2ae797['name'])<0x0;)_0x2ae797=_0x2ae797['parent'];return _0x2ae797?{'from':_0x2ae797['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x2ae797['from'],this['pos']),'type':_0x2ae797['type']}:null;}['matchBefore'](_0x52d346){let _0x583ad2=this['state']['doc']['lineAt'](this['pos']),_0x30583c=Math['max'](_0x583ad2['from'],this['pos']-0xfa),_0x25671b=_0x583ad2['text']['slice'](_0x30583c-_0x583ad2['from'],this['pos']-_0x583ad2['from']),_0x36c3a2=_0x25671b['search'](ensureAnchor(_0x52d346,!0x1));return _0x36c3a2<0x0?null:{'from':_0x30583c+_0x36c3a2,'to':this['pos'],'text':_0x25671b['slice'](_0x36c3a2)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0x45c03f,_0x338f09,_0x5447a1){'abort'==_0x45c03f&&this['abortListeners']&&(this['abortListeners']['push'](_0x338f09),_0x5447a1&&_0x5447a1['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x3964d1){let _0x291967=Object['keys'](_0x3964d1)['join'](''),_0x3cf333=/\w/['test'](_0x291967);return _0x3cf333&&(_0x291967=_0x291967['replace'](/\w/g,'')),'['+(_0x3cf333?'\x5cw':'')+_0x291967['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0x4cbf85){let _0xe4a478=Object['create'](null),_0x4b3859=Object['create'](null);for(let {label:_0x733adc}of _0x4cbf85){_0xe4a478[_0x733adc[0x0]]=!0x0;for(let _0x4d66e9=0x1;_0x4d66e9<_0x733adc['length'];_0x4d66e9++)_0x4b3859[_0x733adc[_0x4d66e9]]=!0x0;}let _0x2d5992=toSet(_0xe4a478)+toSet(_0x4b3859)+'*$';return[new RegExp('^'+_0x2d5992),new RegExp(_0x2d5992)];}function completeFromList(_0x410a3f){let _0x30da0f=_0x410a3f['map'](_0x1f11fb=>'string'==typeof _0x1f11fb?{'label':_0x1f11fb}:_0x1f11fb),[_0xc00f,_0x15b101]=_0x30da0f['every'](_0x2f53db=>/^\w+$/['test'](_0x2f53db['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x30da0f);return _0x252e12=>{let _0x4c149a=_0x252e12['matchBefore'](_0x15b101);return _0x4c149a||_0x252e12['explicit']?{'from':_0x4c149a?_0x4c149a['from']:_0x252e12['pos'],'options':_0x30da0f,'validFor':_0xc00f}:null;};}function ifNotIn(_0x305c99,_0x209935){return _0x4de536=>{for(let _0x516735=syntaxTree(_0x4de536['state'])['resolveInner'](_0x4de536['pos'],-0x1);_0x516735;_0x516735=_0x516735['parent']){if(_0x305c99['indexOf'](_0x516735['name'])>-0x1)return null;if(_0x516735['type']['isTop'])break;}return _0x209935(_0x4de536);};}class Option{constructor(_0xbb6288,_0x2a0701,_0x3e869a,_0x2688a9){this['completion']=_0xbb6288,this['source']=_0x2a0701,this['match']=_0x3e869a,this['score']=_0x2688a9;}}function cur(_0x4e51b6){return _0x4e51b6['selection']['main']['from'];}function ensureAnchor(_0x25807b,_0x4dffc1){var _0x1bcb65;let {source:_0x3c3461}=_0x25807b,_0x4d9861=_0x4dffc1&&'^'!=_0x3c3461[0x0],_0x376a42='$'!=_0x3c3461[_0x3c3461['length']-0x1];return _0x4d9861||_0x376a42?new RegExp((_0x4d9861?'^':'')+'(?:'+_0x3c3461+')'+(_0x376a42?'$':''),null!==(_0x1bcb65=_0x25807b['flags'])&&void 0x0!==_0x1bcb65?_0x1bcb65:_0x25807b['ignoreCase']?'i':''):_0x25807b;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x4201de,_0x3e1bed,_0x218255,_0x2a635c){let {main:_0x461d7b}=_0x4201de['selection'],_0x2681a7=_0x218255-_0x461d7b['from'],_0x5f194b=_0x2a635c-_0x461d7b['from'];return{..._0x4201de['changeByRange'](_0x563682=>{if(_0x563682!=_0x461d7b&&_0x218255!=_0x2a635c&&_0x4201de['sliceDoc'](_0x563682['from']+_0x2681a7,_0x563682['from']+_0x5f194b)!=_0x4201de['sliceDoc'](_0x218255,_0x2a635c))return{'range':_0x563682};let _0x16f27a=_0x4201de['toText'](_0x3e1bed);return{'changes':{'from':_0x563682['from']+_0x2681a7,'to':_0x2a635c==_0x461d7b['from']?_0x563682['to']:_0x563682['from']+_0x5f194b,'insert':_0x16f27a},'range':EditorSelection['cursor'](_0x563682['from']+_0x2681a7+_0x16f27a['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x1b981d){if(!Array['isArray'](_0x1b981d))return _0x1b981d;let _0x29b3af=SourceCache['get'](_0x1b981d);return _0x29b3af||SourceCache['set'](_0x1b981d,_0x29b3af=completeFromList(_0x1b981d)),_0x29b3af;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0xf43b8b){this['pattern']=_0xf43b8b,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0x491eb5=0x0;_0x491eb5<_0xf43b8b['length'];){let _0x17fc4d=codePointAt(_0xf43b8b,_0x491eb5),_0x22e5cc=codePointSize(_0x17fc4d);this['chars']['push'](_0x17fc4d);let _0x5683cf=_0xf43b8b['slice'](_0x491eb5,_0x491eb5+_0x22e5cc),_0x273155=_0x5683cf['toUpperCase']();this['folded']['push'](codePointAt(_0x273155==_0x5683cf?_0x5683cf['toLowerCase']():_0x273155,0x0)),_0x491eb5+=_0x22e5cc;}this['astral']=_0xf43b8b['length']!=this['chars']['length'];}['ret'](_0x27d31c,_0x9ae265){return this['score']=_0x27d31c,this['matched']=_0x9ae265,this;}['match'](_0x1e455e){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x1e455e['length']<this['pattern']['length'])return null;let {chars:_0x1f5527,folded:_0x1b0045,any:_0x4d2a65,precise:_0x34eb23,byWord:_0x4c1409}=this;if(0x1==_0x1f5527['length']){let _0x4cff86=codePointAt(_0x1e455e,0x0),_0x13f003=codePointSize(_0x4cff86),_0x10114e=_0x13f003==_0x1e455e['length']?0x0:-0x64;if(_0x4cff86==_0x1f5527[0x0]);else{if(_0x4cff86!=_0x1b0045[0x0])return null;_0x10114e+=-0xc8;}return this['ret'](_0x10114e,[0x0,_0x13f003]);}let _0x3acd8b=_0x1e455e['indexOf'](this['pattern']);if(0x0==_0x3acd8b)return this['ret'](_0x1e455e['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x5bd2e8=_0x1f5527['length'],_0x4881f9=0x0;if(_0x3acd8b<0x0){for(let _0x154fb1=0x0,_0x529ef2=Math['min'](_0x1e455e['length'],0xc8);_0x154fb1<_0x529ef2&&_0x4881f9<_0x5bd2e8;){let _0x42ed86=codePointAt(_0x1e455e,_0x154fb1);_0x42ed86!=_0x1f5527[_0x4881f9]&&_0x42ed86!=_0x1b0045[_0x4881f9]||(_0x4d2a65[_0x4881f9++]=_0x154fb1),_0x154fb1+=codePointSize(_0x42ed86);}if(_0x4881f9<_0x5bd2e8)return null;}let _0xead0a2=0x0,_0x49e676=0x0,_0x473c49=!0x1,_0x37a363=0x0,_0x56f1dd=-0x1,_0x4faf62=-0x1,_0x310155=/[a-z]/['test'](_0x1e455e),_0x28a06d=!0x0;for(let _0x427ebc=0x0,_0x3d74b7=Math['min'](_0x1e455e['length'],0xc8),_0x397db6=0x0;_0x427ebc<_0x3d74b7&&_0x49e676<_0x5bd2e8;){let _0x492cf7=codePointAt(_0x1e455e,_0x427ebc);_0x3acd8b<0x0&&(_0xead0a2<_0x5bd2e8&&_0x492cf7==_0x1f5527[_0xead0a2]&&(_0x34eb23[_0xead0a2++]=_0x427ebc),_0x37a363<_0x5bd2e8&&(_0x492cf7==_0x1f5527[_0x37a363]||_0x492cf7==_0x1b0045[_0x37a363]?(0x0==_0x37a363&&(_0x56f1dd=_0x427ebc),_0x4faf62=_0x427ebc+0x1,_0x37a363++):_0x37a363=0x0));let _0xa5350e,_0x3b774b=_0x492cf7<0xff?_0x492cf7>=0x30&&_0x492cf7<=0x39||_0x492cf7>=0x61&&_0x492cf7<=0x7a?0x2:_0x492cf7>=0x41&&_0x492cf7<=0x5a?0x1:0x0:(_0xa5350e=fromCodePoint(_0x492cf7))!=_0xa5350e['toLowerCase']()?0x1:_0xa5350e!=_0xa5350e['toUpperCase']()?0x2:0x0;(!_0x427ebc||0x1==_0x3b774b&&_0x310155||0x0==_0x397db6&&0x0!=_0x3b774b)&&(_0x1f5527[_0x49e676]==_0x492cf7||_0x1b0045[_0x49e676]==_0x492cf7&&(_0x473c49=!0x0)?_0x4c1409[_0x49e676++]=_0x427ebc:_0x4c1409['length']&&(_0x28a06d=!0x1)),_0x397db6=_0x3b774b,_0x427ebc+=codePointSize(_0x492cf7);}return _0x49e676==_0x5bd2e8&&0x0==_0x4c1409[0x0]&&_0x28a06d?this['result']((_0x473c49?-0xc8:0x0)-0x64,_0x4c1409,_0x1e455e):_0x37a363==_0x5bd2e8&&0x0==_0x56f1dd?this['ret'](-0xc8-_0x1e455e['length']+(_0x4faf62==_0x1e455e['length']?0x0:-0x64),[0x0,_0x4faf62]):_0x3acd8b>-0x1?this['ret'](-0x2bc-_0x1e455e['length'],[_0x3acd8b,_0x3acd8b+this['pattern']['length']]):_0x37a363==_0x5bd2e8?this['ret'](-0x384-_0x1e455e['length'],[_0x56f1dd,_0x4faf62]):_0x49e676==_0x5bd2e8?this['result']((_0x473c49?-0xc8:0x0)-0x64-0x2bc+(_0x28a06d?0x0:-0x44c),_0x4c1409,_0x1e455e):0x2==_0x1f5527['length']?null:this['result']((_0x4d2a65[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x4d2a65,_0x1e455e);}['result'](_0x2ade51,_0x283b29,_0x276637){let _0x2d9694=[],_0xd66542=0x0;for(let _0x51ff60 of _0x283b29){let _0x13fe43=_0x51ff60+(this['astral']?codePointSize(codePointAt(_0x276637,_0x51ff60)):0x1);_0xd66542&&_0x2d9694[_0xd66542-0x1]==_0x51ff60?_0x2d9694[_0xd66542-0x1]=_0x13fe43:(_0x2d9694[_0xd66542++]=_0x51ff60,_0x2d9694[_0xd66542++]=_0x13fe43);}return this['ret'](_0x2ade51-_0x276637['length'],_0x2d9694);}}class StrictMatcher{constructor(_0x16f022){this['pattern']=_0x16f022,this['matched']=[],this['score']=0x0,this['folded']=_0x16f022['toLowerCase']();}['match'](_0x4caae6){if(_0x4caae6['length']<this['pattern']['length'])return null;let _0x207b52=_0x4caae6['slice'](0x0,this['pattern']['length']),_0x2d08cc=_0x207b52==this['pattern']?0x0:_0x207b52['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x2d08cc?null:(this['matched']=[0x0,_0x207b52['length']],this['score']=_0x2d08cc+(_0x4caae6['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0x1ce60f=>combineConfig(_0x1ce60f,{'activateOnTyping':!0x0,'activateOnCompletion':()=>!0x1,'activateOnTypingDelay':0x64,'selectOnOpen':!0x0,'override':null,'closeOnBlur':!0x0,'maxRenderedOptions':0x64,'defaultKeymap':!0x0,'tooltipClass':()=>'','optionClass':()=>'','aboveCursor':!0x1,'icons':!0x0,'addToOptions':[],'positionInfo':defaultPositionInfo,'filterStrict':!0x1,'compareCompletions':(_0x91f196,_0x294f20)=>_0x91f196['label']['localeCompare'](_0x294f20['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0x27823a,_0x101ea2)=>_0x27823a&&_0x101ea2,'closeOnBlur':(_0x1578cd,_0x3edccc)=>_0x1578cd&&_0x3edccc,'icons':(_0x3d87a8,_0x1c9051)=>_0x3d87a8&&_0x1c9051,'tooltipClass':(_0x574ded,_0x5a0c12)=>_0x5d6861=>joinClass(_0x574ded(_0x5d6861),_0x5a0c12(_0x5d6861)),'optionClass':(_0x5980e2,_0x4322ee)=>_0x49b3bf=>joinClass(_0x5980e2(_0x49b3bf),_0x4322ee(_0x49b3bf)),'addToOptions':(_0x338d6f,_0x5b1048)=>_0x338d6f['concat'](_0x5b1048),'filterStrict':(_0x4e997d,_0x52b13c)=>_0x4e997d||_0x52b13c})});function joinClass(_0x2ea09a,_0x8e2c1d){return _0x2ea09a?_0x8e2c1d?_0x2ea09a+'\x20'+_0x8e2c1d:_0x2ea09a:_0x8e2c1d;}function defaultPositionInfo(_0x3c877d,_0x5cf521,_0x2bbfb6,_0x55f202,_0x10cae7,_0x4732af){let _0x4748d4,_0x45c585,_0x5c8555=_0x3c877d['textDirection']==Direction['RTL'],_0x49acc3=_0x5c8555,_0x22a3c6=!0x1,_0x4365dc='top',_0x50b583=_0x5cf521['left']-_0x10cae7['left'],_0x4d64ad=_0x10cae7['right']-_0x5cf521['right'],_0x31464b=_0x55f202['right']-_0x55f202['left'],_0x2bc451=_0x55f202['bottom']-_0x55f202['top'];if(_0x49acc3&&_0x50b583<Math['min'](_0x31464b,_0x4d64ad)?_0x49acc3=!0x1:!_0x49acc3&&_0x4d64ad<Math['min'](_0x31464b,_0x50b583)&&(_0x49acc3=!0x0),_0x31464b<=(_0x49acc3?_0x50b583:_0x4d64ad))_0x4748d4=Math['max'](_0x10cae7['top'],Math['min'](_0x2bbfb6['top'],_0x10cae7['bottom']-_0x2bc451))-_0x5cf521['top'],_0x45c585=Math['min'](0x190,_0x49acc3?_0x50b583:_0x4d64ad);else{_0x22a3c6=!0x0,_0x45c585=Math['min'](0x190,(_0x5c8555?_0x5cf521['right']:_0x10cae7['right']-_0x5cf521['left'])-0x1e);let _0x3dfea5=_0x10cae7['bottom']-_0x5cf521['bottom'];_0x3dfea5>=_0x2bc451||_0x3dfea5>_0x5cf521['top']?_0x4748d4=_0x2bbfb6['bottom']-_0x5cf521['top']:(_0x4365dc='bottom',_0x4748d4=_0x5cf521['bottom']-_0x2bbfb6['top']);}return{'style':_0x4365dc+':\x20'+_0x4748d4/((_0x5cf521['bottom']-_0x5cf521['top'])/_0x4732af['offsetHeight'])+'px;\x20max-width:\x20'+_0x45c585/((_0x5cf521['right']-_0x5cf521['left'])/_0x4732af['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0x22a3c6?_0x5c8555?'left-narrow':'right-narrow':_0x49acc3?'left':'right')};}function optionContent(_0x2bf780){let _0x552a87=_0x2bf780['addToOptions']['slice']();return _0x2bf780['icons']&&_0x552a87['push']({'render'(_0x444cac){let _0x363253=document['createElement']('div');return _0x363253['classList']['add']('cm-completionIcon'),_0x444cac['type']&&_0x363253['classList']['add'](..._0x444cac['type']['split'](/\s+/g)['map'](_0x227300=>'cm-completionIcon-'+_0x227300)),_0x363253['setAttribute']('aria-hidden','true'),_0x363253;},'position':0x14}),_0x552a87['push']({'render'(_0x38a6bd,_0x8306d5,_0x3f8b22,_0xdd3b34){let _0x216418=document['createElement']('span');_0x216418['className']='cm-completionLabel';let _0x2a18f8=_0x38a6bd['displayLabel']||_0x38a6bd['label'],_0x52b398=0x0;for(let _0xa484d7=0x0;_0xa484d7<_0xdd3b34['length'];){let _0x4132b2=_0xdd3b34[_0xa484d7++],_0x5085cc=_0xdd3b34[_0xa484d7++];_0x4132b2>_0x52b398&&_0x216418['appendChild'](document['createTextNode'](_0x2a18f8['slice'](_0x52b398,_0x4132b2)));let _0x3c7b48=_0x216418['appendChild'](document['createElement']('span'));_0x3c7b48['appendChild'](document['createTextNode'](_0x2a18f8['slice'](_0x4132b2,_0x5085cc))),_0x3c7b48['className']='cm-completionMatchedText',_0x52b398=_0x5085cc;}return _0x52b398<_0x2a18f8['length']&&_0x216418['appendChild'](document['createTextNode'](_0x2a18f8['slice'](_0x52b398))),_0x216418;},'position':0x32},{'render'(_0x2d2f75){if(!_0x2d2f75['detail'])return null;let _0x263647=document['createElement']('span');return _0x263647['className']='cm-completionDetail',_0x263647['textContent']=_0x2d2f75['detail'],_0x263647;},'position':0x50}),_0x552a87['sort']((_0x361d45,_0x1e8773)=>_0x361d45['position']-_0x1e8773['position'])['map'](_0x2bf6dd=>_0x2bf6dd['render']);}function rangeAroundSelected(_0x8f2bcc,_0x514707,_0x57b122){if(_0x8f2bcc<=_0x57b122)return{'from':0x0,'to':_0x8f2bcc};if(_0x514707<0x0&&(_0x514707=0x0),_0x514707<=_0x8f2bcc>>0x1){let _0x5be5b0=Math['floor'](_0x514707/_0x57b122);return{'from':_0x5be5b0*_0x57b122,'to':(_0x5be5b0+0x1)*_0x57b122};}let _0xf3ac90=Math['floor']((_0x8f2bcc-_0x514707)/_0x57b122);return{'from':_0x8f2bcc-(_0xf3ac90+0x1)*_0x57b122,'to':_0x8f2bcc-_0xf3ac90*_0x57b122};}class CompletionTooltip{constructor(_0x213b3f,_0x41aed5,_0x4d0d1c){this['view']=_0x213b3f,this['stateField']=_0x41aed5,this['applyCompletion']=_0x4d0d1c,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x3431b6=>this['placeInfo'](_0x3431b6),'key':this},this['space']=null,this['currentClass']='';let _0x7616df=_0x213b3f['state']['field'](_0x41aed5),{options:_0x28f274,selected:_0x4efab6}=_0x7616df['open'],_0x157c04=_0x213b3f['state']['facet'](completionConfig);this['optionContent']=optionContent(_0x157c04),this['optionClass']=_0x157c04['optionClass'],this['tooltipClass']=_0x157c04['tooltipClass'],this['range']=rangeAroundSelected(_0x28f274['length'],_0x4efab6,_0x157c04['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0x213b3f['state']),this['dom']['addEventListener']('mousedown',_0x300a54=>{let {options:_0x58b623}=_0x213b3f['state']['field'](_0x41aed5)['open'];for(let _0x1ed0f0,_0x5e1441=_0x300a54['target'];_0x5e1441&&_0x5e1441!=this['dom'];_0x5e1441=_0x5e1441['parentNode'])if('LI'==_0x5e1441['nodeName']&&(_0x1ed0f0=/-(\d+)$/['exec'](_0x5e1441['id']))&&+_0x1ed0f0[0x1]<_0x58b623['length'])return this['applyCompletion'](_0x213b3f,_0x58b623[+_0x1ed0f0[0x1]]),void _0x300a54['preventDefault']();}),this['dom']['addEventListener']('focusout',_0x415819=>{let _0xb1f085=_0x213b3f['state']['field'](this['stateField'],!0x1);_0xb1f085&&_0xb1f085['tooltip']&&_0x213b3f['state']['facet'](completionConfig)['closeOnBlur']&&_0x415819['relatedTarget']!=_0x213b3f['contentDOM']&&_0x213b3f['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0x28f274,_0x7616df['id']);}['mount'](){this['updateSel']();}['showOptions'](_0x4e92a9,_0x32c3d9){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0x4e92a9,_0x32c3d9,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0xd69d6){var _0x5d0c6d;let _0x1e309d=_0xd69d6['state']['field'](this['stateField']),_0x29c0c6=_0xd69d6['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0xd69d6['state']),_0x1e309d!=_0x29c0c6){let {options:_0x17140d,selected:_0x52acae,disabled:_0x23f163}=_0x1e309d['open'];_0x29c0c6['open']&&_0x29c0c6['open']['options']==_0x17140d||(this['range']=rangeAroundSelected(_0x17140d['length'],_0x52acae,_0xd69d6['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x17140d,_0x1e309d['id'])),this['updateSel'](),_0x23f163!=(null===(_0x5d0c6d=_0x29c0c6['open'])||void 0x0===_0x5d0c6d?void 0x0:_0x5d0c6d['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0x23f163);}}['updateTooltipClass'](_0x1840e8){let _0x3316fd=this['tooltipClass'](_0x1840e8);if(_0x3316fd!=this['currentClass']){for(let _0x3eca20 of this['currentClass']['split']('\x20'))_0x3eca20&&this['dom']['classList']['remove'](_0x3eca20);for(let _0x3383be of _0x3316fd['split']('\x20'))_0x3383be&&this['dom']['classList']['add'](_0x3383be);this['currentClass']=_0x3316fd;}}['positioned'](_0x43912c){this['space']=_0x43912c,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0x50dc46=this['view']['state']['field'](this['stateField']),_0x683f86=_0x50dc46['open'];(_0x683f86['selected']>-0x1&&_0x683f86['selected']<this['range']['from']||_0x683f86['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x683f86['options']['length'],_0x683f86['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x683f86['options'],_0x50dc46['id']));let _0x199121=this['updateSelectedOption'](_0x683f86['selected']);if(_0x199121){this['destroyInfo']();let {completion:_0x1a5e47}=_0x683f86['options'][_0x683f86['selected']],{info:_0x497a96}=_0x1a5e47;if(!_0x497a96)return;let _0x1a30a1='string'==typeof _0x497a96?document['createTextNode'](_0x497a96):_0x497a96(_0x1a5e47);if(!_0x1a30a1)return;'then'in _0x1a30a1?_0x1a30a1['then'](_0x13ba29=>{_0x13ba29&&this['view']['state']['field'](this['stateField'],!0x1)==_0x50dc46&&this['addInfoPane'](_0x13ba29,_0x1a5e47);})['catch'](_0x3175b0=>logException(this['view']['state'],_0x3175b0,'completion\x20info')):(this['addInfoPane'](_0x1a30a1,_0x1a5e47),_0x199121['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0xed0915,_0x257c42){this['destroyInfo']();let _0xdb977e=this['info']=document['createElement']('div');if(_0xdb977e['className']='cm-tooltip\x20cm-completionInfo',_0xdb977e['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0xed0915['nodeType'])_0xdb977e['appendChild'](_0xed0915),this['infoDestroy']=null;else{let {dom:_0x835c7e,destroy:_0x322119}=_0xed0915;_0xdb977e['appendChild'](_0x835c7e),this['infoDestroy']=_0x322119||null;}this['dom']['appendChild'](_0xdb977e),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x552a38){let _0x5ed115=null;for(let _0x26ca0e=this['list']['firstChild'],_0x29dbfd=this['range']['from'];_0x26ca0e;_0x26ca0e=_0x26ca0e['nextSibling'],_0x29dbfd++)'LI'==_0x26ca0e['nodeName']&&_0x26ca0e['id']?_0x29dbfd==_0x552a38?_0x26ca0e['hasAttribute']('aria-selected')||(_0x26ca0e['setAttribute']('aria-selected','true'),_0x5ed115=_0x26ca0e):_0x26ca0e['hasAttribute']('aria-selected')&&(_0x26ca0e['removeAttribute']('aria-selected'),_0x26ca0e['removeAttribute']('aria-describedby')):_0x29dbfd--;return _0x5ed115&&scrollIntoView(this['list'],_0x5ed115),_0x5ed115;}['measureInfo'](){let _0x13eeb0=this['dom']['querySelector']('[aria-selected]');if(!_0x13eeb0||!this['info'])return null;let _0x21393e=this['dom']['getBoundingClientRect'](),_0x126c65=this['info']['getBoundingClientRect'](),_0x1e8ddf=_0x13eeb0['getBoundingClientRect'](),_0x55d106=this['space'];if(!_0x55d106){let _0x5f117c=this['dom']['ownerDocument']['documentElement'];_0x55d106={'left':0x0,'top':0x0,'right':_0x5f117c['clientWidth'],'bottom':_0x5f117c['clientHeight']};}return _0x1e8ddf['top']>Math['min'](_0x55d106['bottom'],_0x21393e['bottom'])-0xa||_0x1e8ddf['bottom']<Math['max'](_0x55d106['top'],_0x21393e['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0x21393e,_0x1e8ddf,_0x126c65,_0x55d106,this['dom']);}['placeInfo'](_0x4849eb){this['info']&&(_0x4849eb?(_0x4849eb['style']&&(this['info']['style']['cssText']=_0x4849eb['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x4849eb['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x2ccedc,_0x5adc28,_0x2fc9d2){const _0x5da194=document['createElement']('ul');_0x5da194['id']=_0x5adc28,_0x5da194['setAttribute']('role','listbox'),_0x5da194['setAttribute']('aria-expanded','true'),_0x5da194['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x5da194['addEventListener']('mousedown',_0x51df90=>{_0x51df90['target']==_0x5da194&&_0x51df90['preventDefault']();});let _0x5b6674=null;for(let _0x800339=_0x2fc9d2['from'];_0x800339<_0x2fc9d2['to'];_0x800339++){let {completion:_0x5d21cd,match:_0x34d486}=_0x2ccedc[_0x800339],{section:_0x5ea2cf}=_0x5d21cd;if(_0x5ea2cf){let _0x25b749='string'==typeof _0x5ea2cf?_0x5ea2cf:_0x5ea2cf['name'];if(_0x25b749!=_0x5b6674&&(_0x800339>_0x2fc9d2['from']||0x0==_0x2fc9d2['from'])){if(_0x5b6674=_0x25b749,'string'!=typeof _0x5ea2cf&&_0x5ea2cf['header'])_0x5da194['appendChild'](_0x5ea2cf['header'](_0x5ea2cf));else _0x5da194['appendChild'](document['createElement']('completion-section'))['textContent']=_0x25b749;}}const _0x16f11a=_0x5da194['appendChild'](document['createElement']('li'));_0x16f11a['id']=_0x5adc28+'-'+_0x800339,_0x16f11a['setAttribute']('role','option');let _0x129f03=this['optionClass'](_0x5d21cd);_0x129f03&&(_0x16f11a['className']=_0x129f03);for(let _0x1f56d0 of this['optionContent']){let _0x415fb4=_0x1f56d0(_0x5d21cd,this['view']['state'],this['view'],_0x34d486);_0x415fb4&&_0x16f11a['appendChild'](_0x415fb4);}}return _0x2fc9d2['from']&&_0x5da194['classList']['add']('cm-completionListIncompleteTop'),_0x2fc9d2['to']<_0x2ccedc['length']&&_0x5da194['classList']['add']('cm-completionListIncompleteBottom'),_0x5da194;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x59a5ba,_0x4f4a66){return _0x270f3a=>new CompletionTooltip(_0x270f3a,_0x59a5ba,_0x4f4a66);}function scrollIntoView(_0x393848,_0x53f6f2){let _0x9850c0=_0x393848['getBoundingClientRect'](),_0x196eba=_0x53f6f2['getBoundingClientRect'](),_0x48d05e=_0x9850c0['height']/_0x393848['offsetHeight'];_0x196eba['top']<_0x9850c0['top']?_0x393848['scrollTop']-=(_0x9850c0['top']-_0x196eba['top'])/_0x48d05e:_0x196eba['bottom']>_0x9850c0['bottom']&&(_0x393848['scrollTop']+=(_0x196eba['bottom']-_0x9850c0['bottom'])/_0x48d05e);}function score(_0x59fa10){return 0x64*(_0x59fa10['boost']||0x0)+(_0x59fa10['apply']?0xa:0x0)+(_0x59fa10['info']?0x5:0x0)+(_0x59fa10['type']?0x1:0x0);}function sortOptions(_0x4d495b,_0x3cc5c6){let _0x230815=[],_0x131b26=null,_0x226acb=null,_0x27ab99=_0x26d480=>{_0x230815['push'](_0x26d480);let {section:_0x417400}=_0x26d480['completion'];if(_0x417400){_0x131b26||(_0x131b26=[]);let _0x919134='string'==typeof _0x417400?_0x417400:_0x417400['name'];_0x131b26['some'](_0x594031=>_0x594031['name']==_0x919134)||_0x131b26['push']('string'==typeof _0x417400?{'name':_0x919134}:_0x417400);}},_0x44dcc1=_0x3cc5c6['facet'](completionConfig);for(let _0x35757a of _0x4d495b)if(_0x35757a['hasResult']()){let _0x5ea274=_0x35757a['result']['getMatch'];if(!0x1===_0x35757a['result']['filter']){for(let _0x2bf68b of _0x35757a['result']['options'])_0x27ab99(new Option(_0x2bf68b,_0x35757a['source'],_0x5ea274?_0x5ea274(_0x2bf68b):[],0x3b9aca00-_0x230815['length']));}else{let _0x4e0ca0,_0x56ae1c=_0x3cc5c6['sliceDoc'](_0x35757a['from'],_0x35757a['to']),_0x1a2a70=_0x44dcc1['filterStrict']?new StrictMatcher(_0x56ae1c):new FuzzyMatcher(_0x56ae1c);for(let _0x1c49ed of _0x35757a['result']['options'])if(_0x4e0ca0=_0x1a2a70['match'](_0x1c49ed['label'])){let _0x5d871e=_0x1c49ed['displayLabel']?_0x5ea274?_0x5ea274(_0x1c49ed,_0x4e0ca0['matched']):[]:_0x4e0ca0['matched'],_0x441e44=_0x4e0ca0['score']+(_0x1c49ed['boost']||0x0);if(_0x27ab99(new Option(_0x1c49ed,_0x35757a['source'],_0x5d871e,_0x441e44)),'object'==typeof _0x1c49ed['section']&&'dynamic'===_0x1c49ed['section']['rank']){let {name:_0x2808d8}=_0x1c49ed['section'];_0x226acb||(_0x226acb=Object['create'](null)),_0x226acb[_0x2808d8]=Math['max'](_0x441e44,_0x226acb[_0x2808d8]||-0x3b9aca00);}}}}if(_0x131b26){let _0x53f5ee=Object['create'](null),_0x32b8b8=0x0,_0x14e26b=(_0x443aec,_0x2df0fb)=>('dynamic'===_0x443aec['rank']&&'dynamic'===_0x2df0fb['rank']?_0x226acb[_0x2df0fb['name']]-_0x226acb[_0x443aec['name']]:0x0)||('number'==typeof _0x443aec['rank']?_0x443aec['rank']:0x3b9aca00)-('number'==typeof _0x2df0fb['rank']?_0x2df0fb['rank']:0x3b9aca00)||(_0x443aec['name']<_0x2df0fb['name']?-0x1:0x1);for(let _0x303186 of _0x131b26['sort'](_0x14e26b))_0x32b8b8-=0x186a0,_0x53f5ee[_0x303186['name']]=_0x32b8b8;for(let _0xf6feb5 of _0x230815){let {section:_0x8716c2}=_0xf6feb5['completion'];_0x8716c2&&(_0xf6feb5['score']+=_0x53f5ee['string'==typeof _0x8716c2?_0x8716c2:_0x8716c2['name']]);}}let _0x58a0d1=[],_0xb63419=null,_0x57b612=_0x44dcc1['compareCompletions'];for(let _0x4cda14 of _0x230815['sort']((_0x4fa9e7,_0x4d1ffc)=>_0x4d1ffc['score']-_0x4fa9e7['score']||_0x57b612(_0x4fa9e7['completion'],_0x4d1ffc['completion']))){let _0x1400ae=_0x4cda14['completion'];!_0xb63419||_0xb63419['label']!=_0x1400ae['label']||_0xb63419['detail']!=_0x1400ae['detail']||null!=_0xb63419['type']&&null!=_0x1400ae['type']&&_0xb63419['type']!=_0x1400ae['type']||_0xb63419['apply']!=_0x1400ae['apply']||_0xb63419['boost']!=_0x1400ae['boost']?_0x58a0d1['push'](_0x4cda14):score(_0x4cda14['completion'])>score(_0xb63419)&&(_0x58a0d1[_0x58a0d1['length']-0x1]=_0x4cda14),_0xb63419=_0x4cda14['completion'];}return _0x58a0d1;}class CompletionDialog{constructor(_0x34473e,_0x2237b0,_0x1f793b,_0x41977e,_0x40ee5b,_0x56e159){this['options']=_0x34473e,this['attrs']=_0x2237b0,this['tooltip']=_0x1f793b,this['timestamp']=_0x41977e,this['selected']=_0x40ee5b,this['disabled']=_0x56e159;}['setSelected'](_0x31ec65,_0xbbe9ee){return _0x31ec65==this['selected']||_0x31ec65>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0xbbe9ee,_0x31ec65),this['tooltip'],this['timestamp'],_0x31ec65,this['disabled']);}static['build'](_0x271260,_0x40fbc8,_0x5a0d47,_0x13ce13,_0x247fbd,_0x37c914){if(_0x13ce13&&!_0x37c914&&_0x271260['some'](_0x25312c=>_0x25312c['isPending']))return _0x13ce13['setDisabled']();let _0x36011f=sortOptions(_0x271260,_0x40fbc8);if(!_0x36011f['length'])return _0x13ce13&&_0x271260['some'](_0x329b0c=>_0x329b0c['isPending'])?_0x13ce13['setDisabled']():null;let _0x44c8a8=_0x40fbc8['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x13ce13&&_0x13ce13['selected']!=_0x44c8a8&&-0x1!=_0x13ce13['selected']){let _0x32efbe=_0x13ce13['options'][_0x13ce13['selected']]['completion'];for(let _0x5ecf40=0x0;_0x5ecf40<_0x36011f['length'];_0x5ecf40++)if(_0x36011f[_0x5ecf40]['completion']==_0x32efbe){_0x44c8a8=_0x5ecf40;break;}}return new CompletionDialog(_0x36011f,makeAttrs(_0x5a0d47,_0x44c8a8),{'pos':_0x271260['reduce']((_0x785afa,_0x5697cc)=>_0x5697cc['hasResult']()?Math['min'](_0x785afa,_0x5697cc['from']):_0x785afa,0x5f5e100),'create':createTooltip,'above':_0x247fbd['aboveCursor']},_0x13ce13?_0x13ce13['timestamp']:Date['now'](),_0x44c8a8,!0x1);}['map'](_0x567562){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x567562['mapPos'](this['tooltip']['pos'])},this['timestamp'],this['selected'],this['disabled']);}['setDisabled'](){return new CompletionDialog(this['options'],this['attrs'],this['tooltip'],this['timestamp'],this['selected'],!0x0);}}class CompletionState{constructor(_0x3b02ac,_0x4f954b,_0x17298){this['active']=_0x3b02ac,this['id']=_0x4f954b,this['open']=_0x17298;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0xde0d46){let {state:_0x52c8c5}=_0xde0d46,_0x4b0f4b=_0x52c8c5['facet'](completionConfig),_0x2c14a0=(_0x4b0f4b['override']||_0x52c8c5['languageDataAt']('autocomplete',cur(_0x52c8c5))['map'](asSource))['map'](_0x1af9d6=>{let _0x121f6a=this['active']['find'](_0x1d46a5=>_0x1d46a5['source']==_0x1af9d6)||new ActiveSource(_0x1af9d6,this['active']['some'](_0x3e6549=>0x0!=_0x3e6549['state'])?0x1:0x0);return _0x121f6a['update'](_0xde0d46,_0x4b0f4b);});_0x2c14a0['length']==this['active']['length']&&_0x2c14a0['every']((_0x21d065,_0x3da5fc)=>_0x21d065==this['active'][_0x3da5fc])&&(_0x2c14a0=this['active']);let _0x1c135a=this['open'],_0x2cfeba=_0xde0d46['effects']['some'](_0x389803=>_0x389803['is'](setActiveEffect));_0x1c135a&&_0xde0d46['docChanged']&&(_0x1c135a=_0x1c135a['map'](_0xde0d46['changes'])),_0xde0d46['selection']||_0x2c14a0['some'](_0x5d0857=>_0x5d0857['hasResult']()&&_0xde0d46['changes']['touchesRange'](_0x5d0857['from'],_0x5d0857['to']))||!sameResults(_0x2c14a0,this['active'])||_0x2cfeba?_0x1c135a=CompletionDialog['build'](_0x2c14a0,_0x52c8c5,this['id'],_0x1c135a,_0x4b0f4b,_0x2cfeba):_0x1c135a&&_0x1c135a['disabled']&&!_0x2c14a0['some'](_0xd29a87=>_0xd29a87['isPending'])&&(_0x1c135a=null),!_0x1c135a&&_0x2c14a0['every'](_0x2b2733=>!_0x2b2733['isPending'])&&_0x2c14a0['some'](_0x5651e0=>_0x5651e0['hasResult']())&&(_0x2c14a0=_0x2c14a0['map'](_0x3c55ea=>_0x3c55ea['hasResult']()?new ActiveSource(_0x3c55ea['source'],0x0):_0x3c55ea));for(let _0x156d82 of _0xde0d46['effects'])_0x156d82['is'](setSelectedEffect)&&(_0x1c135a=_0x1c135a&&_0x1c135a['setSelected'](_0x156d82['value'],this['id']));return _0x2c14a0==this['active']&&_0x1c135a==this['open']?this:new CompletionState(_0x2c14a0,this['id'],_0x1c135a);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x286e34,_0x50145d){if(_0x286e34==_0x50145d)return!0x0;for(let _0x2af9d7=0x0,_0x3dc6c4=0x0;;){for(;_0x2af9d7<_0x286e34['length']&&!_0x286e34[_0x2af9d7]['hasResult']();)_0x2af9d7++;for(;_0x3dc6c4<_0x50145d['length']&&!_0x50145d[_0x3dc6c4]['hasResult']();)_0x3dc6c4++;let _0x29aec5=_0x2af9d7==_0x286e34['length'],_0x42fbab=_0x3dc6c4==_0x50145d['length'];if(_0x29aec5||_0x42fbab)return _0x29aec5==_0x42fbab;if(_0x286e34[_0x2af9d7++]['result']!=_0x50145d[_0x3dc6c4++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x3344da,_0x264f16){let _0x1a0e14={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x3344da};return _0x264f16>-0x1&&(_0x1a0e14['aria-activedescendant']=_0x3344da+'-'+_0x264f16),_0x1a0e14;}const none$1=[];function getUpdateType(_0x31a38b,_0x5d2d88){if(_0x31a38b['isUserEvent']('input.complete')){let _0x4cdf42=_0x31a38b['annotation'](pickedCompletion);if(_0x4cdf42&&_0x5d2d88['activateOnCompletion'](_0x4cdf42))return 0xc;}let _0x3058de=_0x31a38b['isUserEvent']('input.type');return _0x3058de&&_0x5d2d88['activateOnTyping']?0x5:_0x3058de?0x1:_0x31a38b['isUserEvent']('delete.backward')?0x2:_0x31a38b['selection']?0x8:_0x31a38b['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0x1a3572,_0x2d30e5,_0x1f39a5=!0x1){this['source']=_0x1a3572,this['state']=_0x2d30e5,this['explicit']=_0x1f39a5;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x4a2d88,_0x2a4cef){let _0x19e8ca=getUpdateType(_0x4a2d88,_0x2a4cef),_0x595cea=this;(0x8&_0x19e8ca||0x10&_0x19e8ca&&this['touches'](_0x4a2d88))&&(_0x595cea=new ActiveSource(_0x595cea['source'],0x0)),0x4&_0x19e8ca&&0x0==_0x595cea['state']&&(_0x595cea=new ActiveSource(this['source'],0x1)),_0x595cea=_0x595cea['updateFor'](_0x4a2d88,_0x19e8ca);for(let _0x14ab66 of _0x4a2d88['effects'])if(_0x14ab66['is'](startCompletionEffect))_0x595cea=new ActiveSource(_0x595cea['source'],0x1,_0x14ab66['value']);else{if(_0x14ab66['is'](closeCompletionEffect))_0x595cea=new ActiveSource(_0x595cea['source'],0x0);else{if(_0x14ab66['is'](setActiveEffect)){for(let _0x4a3636 of _0x14ab66['value'])_0x4a3636['source']==_0x595cea['source']&&(_0x595cea=_0x4a3636);}}}return _0x595cea;}['updateFor'](_0x2ee9f0,_0x245649){return this['map'](_0x2ee9f0['changes']);}['map'](_0x31c8fa){return this;}['touches'](_0x6e00a1){return _0x6e00a1['changes']['touchesRange'](cur(_0x6e00a1['state']));}}class ActiveResult extends ActiveSource{constructor(_0x287e31,_0x53e1cd,_0x245f4c,_0x59b209,_0x2f1dd3,_0x120a70){super(_0x287e31,0x3,_0x53e1cd),this['limit']=_0x245f4c,this['result']=_0x59b209,this['from']=_0x2f1dd3,this['to']=_0x120a70;}['hasResult'](){return!0x0;}['updateFor'](_0x41e335,_0x437532){var _0x470be4;if(!(0x3&_0x437532))return this['map'](_0x41e335['changes']);let _0x27ce4d=this['result'];_0x27ce4d['map']&&!_0x41e335['changes']['empty']&&(_0x27ce4d=_0x27ce4d['map'](_0x27ce4d,_0x41e335['changes']));let _0x3e058b=_0x41e335['changes']['mapPos'](this['from']),_0x41be83=_0x41e335['changes']['mapPos'](this['to'],0x1),_0x1af434=cur(_0x41e335['state']);if(_0x1af434>_0x41be83||!_0x27ce4d||0x2&_0x437532&&(cur(_0x41e335['startState'])==this['from']||_0x1af434<this['limit']))return new ActiveSource(this['source'],0x4&_0x437532?0x1:0x0);let _0x3a44eb=_0x41e335['changes']['mapPos'](this['limit']);return checkValid(_0x27ce4d['validFor'],_0x41e335['state'],_0x3e058b,_0x41be83)?new ActiveResult(this['source'],this['explicit'],_0x3a44eb,_0x27ce4d,_0x3e058b,_0x41be83):_0x27ce4d['update']&&(_0x27ce4d=_0x27ce4d['update'](_0x27ce4d,_0x3e058b,_0x41be83,new CompletionContext(_0x41e335['state'],_0x1af434,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x3a44eb,_0x27ce4d,_0x27ce4d['from'],null!==(_0x470be4=_0x27ce4d['to'])&&void 0x0!==_0x470be4?_0x470be4:cur(_0x41e335['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0x42d2a9){if(_0x42d2a9['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0x42d2a9):this['result'])?new ActiveResult(this['source'],this['explicit'],_0x42d2a9['mapPos'](this['limit']),this['result'],_0x42d2a9['mapPos'](this['from']),_0x42d2a9['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x157205){return _0x157205['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0x34a993,_0x4e164c,_0x200f7e,_0x3b7b9d){if(!_0x34a993)return!0x1;let _0x169363=_0x4e164c['sliceDoc'](_0x200f7e,_0x3b7b9d);return'function'==typeof _0x34a993?_0x34a993(_0x169363,_0x200f7e,_0x3b7b9d,_0x4e164c):ensureAnchor(_0x34a993,!0x0)['test'](_0x169363);}const setActiveEffect=StateEffect['define']({'map':(_0x5493c1,_0x530181)=>_0x5493c1['map'](_0x301c50=>_0x301c50['map'](_0x530181))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x410f40,_0x18fa74)=>_0x410f40['update'](_0x18fa74),'provide':_0x2ec113=>[showTooltip['from'](_0x2ec113,_0x147f58=>_0x147f58['tooltip']),EditorView['contentAttributes']['from'](_0x2ec113,_0x1a41fd=>_0x1a41fd['attrs'])]});function applyCompletion(_0x40933d,_0x543f83){const _0x328928=_0x543f83['completion']['apply']||_0x543f83['completion']['label'];let _0x2fc586=_0x40933d['state']['field'](completionState)['active']['find'](_0x3a1188=>_0x3a1188['source']==_0x543f83['source']);return _0x2fc586 instanceof ActiveResult&&('string'==typeof _0x328928?_0x40933d['dispatch']({...insertCompletionText(_0x40933d['state'],_0x328928,_0x2fc586['from'],_0x2fc586['to']),'annotations':pickedCompletion['of'](_0x543f83['completion'])}):_0x328928(_0x40933d,_0x543f83['completion'],_0x2fc586['from'],_0x2fc586['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x435b1e,_0x57e1ef='option'){return _0x283a05=>{let _0x3a22ce=_0x283a05['state']['field'](completionState,!0x1);if(!_0x3a22ce||!_0x3a22ce['open']||_0x3a22ce['open']['disabled']||Date['now']()-_0x3a22ce['open']['timestamp']<_0x283a05['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x18965e,_0x2e5748=0x1;'page'==_0x57e1ef&&(_0x18965e=getTooltip(_0x283a05,_0x3a22ce['open']['tooltip']))&&(_0x2e5748=Math['max'](0x2,Math['floor'](_0x18965e['dom']['offsetHeight']/_0x18965e['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x39ad57}=_0x3a22ce['open']['options'],_0x3621d5=_0x3a22ce['open']['selected']>-0x1?_0x3a22ce['open']['selected']+_0x2e5748*(_0x435b1e?0x1:-0x1):_0x435b1e?0x0:_0x39ad57-0x1;return _0x3621d5<0x0?_0x3621d5='page'==_0x57e1ef?0x0:_0x39ad57-0x1:_0x3621d5>=_0x39ad57&&(_0x3621d5='page'==_0x57e1ef?_0x39ad57-0x1:0x0),_0x283a05['dispatch']({'effects':setSelectedEffect['of'](_0x3621d5)}),!0x0;};}const acceptCompletion=_0x4b2c01=>{let _0x803d97=_0x4b2c01['state']['field'](completionState,!0x1);return!(_0x4b2c01['state']['readOnly']||!_0x803d97||!_0x803d97['open']||_0x803d97['open']['selected']<0x0||_0x803d97['open']['disabled']||Date['now']()-_0x803d97['open']['timestamp']<_0x4b2c01['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0x4b2c01,_0x803d97['open']['options'][_0x803d97['open']['selected']]);},startCompletion=_0x592564=>!!_0x592564['state']['field'](completionState,!0x1)&&(_0x592564['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x3dbd25=>{let _0x292526=_0x3dbd25['state']['field'](completionState,!0x1);return!(!_0x292526||!_0x292526['active']['some'](_0x1d8a8f=>0x0!=_0x1d8a8f['state']))&&(_0x3dbd25['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x3f71d3,_0x4dfce9){this['active']=_0x3f71d3,this['context']=_0x4dfce9,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x4f1eeb){this['view']=_0x4f1eeb,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0x2f2d4a of _0x4f1eeb['state']['field'](completionState)['active'])_0x2f2d4a['isPending']&&this['startQuery'](_0x2f2d4a);}['update'](_0x96c0f5){let _0x220212=_0x96c0f5['state']['field'](completionState),_0x5cbe01=_0x96c0f5['state']['facet'](completionConfig);if(!_0x96c0f5['selectionSet']&&!_0x96c0f5['docChanged']&&_0x96c0f5['startState']['field'](completionState)==_0x220212)return;let _0x4e802d=_0x96c0f5['transactions']['some'](_0x9b229d=>{let _0x11030e=getUpdateType(_0x9b229d,_0x5cbe01);return 0x8&_0x11030e||(_0x9b229d['selection']||_0x9b229d['docChanged'])&&!(0x3&_0x11030e);});for(let _0x2d84a9=0x0;_0x2d84a9<this['running']['length'];_0x2d84a9++){let _0x38f038=this['running'][_0x2d84a9];if(_0x4e802d||_0x38f038['context']['abortOnDocChange']&&_0x96c0f5['docChanged']||_0x38f038['updates']['length']+_0x96c0f5['transactions']['length']>MaxUpdateCount&&Date['now']()-_0x38f038['time']>MinAbortTime){for(let _0x3664b4 of _0x38f038['context']['abortListeners'])try{_0x3664b4();}catch(_0x4365f7){logException(this['view']['state'],_0x4365f7);}_0x38f038['context']['abortListeners']=null,this['running']['splice'](_0x2d84a9--,0x1);}else _0x38f038['updates']['push'](..._0x96c0f5['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x96c0f5['transactions']['some'](_0x315f08=>_0x315f08['effects']['some'](_0x36b8e7=>_0x36b8e7['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0x371db3=this['pendingStart']?0x32:_0x5cbe01['activateOnTypingDelay'];if(this['debounceUpdate']=_0x220212['active']['some'](_0x5acb4e=>_0x5acb4e['isPending']&&!this['running']['some'](_0x2d3f51=>_0x2d3f51['active']['source']==_0x5acb4e['source']))?setTimeout(()=>this['startUpdate'](),_0x371db3):-0x1,0x0!=this['composing']){for(let _0x2ba357 of _0x96c0f5['transactions'])_0x2ba357['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0x2ba357['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0xd038ce}=this['view'],_0x592ae2=_0xd038ce['field'](completionState);for(let _0x397997 of _0x592ae2['active'])_0x397997['isPending']&&!this['running']['some'](_0x496f4d=>_0x496f4d['active']['source']==_0x397997['source'])&&this['startQuery'](_0x397997);this['running']['length']&&_0x592ae2['open']&&_0x592ae2['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0x5b041d){let {state:_0x25efbf}=this['view'],_0x2f65ff=cur(_0x25efbf),_0x130828=new CompletionContext(_0x25efbf,_0x2f65ff,_0x5b041d['explicit'],this['view']),_0x8acccd=new RunningQuery(_0x5b041d,_0x130828);this['running']['push'](_0x8acccd),Promise['resolve'](_0x5b041d['source'](_0x130828))['then'](_0x4b5c1a=>{_0x8acccd['context']['aborted']||(_0x8acccd['done']=_0x4b5c1a||null,this['scheduleAccept']());},_0x39fffc=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x39fffc);});}['scheduleAccept'](){this['running']['every'](_0x2cefd4=>void 0x0!==_0x2cefd4['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0xc0e670;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x48ec40=[],_0x70ace2=this['view']['state']['facet'](completionConfig),_0x3c43f3=this['view']['state']['field'](completionState);for(let _0x1b069c=0x0;_0x1b069c<this['running']['length'];_0x1b069c++){let _0x576f47=this['running'][_0x1b069c];if(void 0x0===_0x576f47['done'])continue;if(this['running']['splice'](_0x1b069c--,0x1),_0x576f47['done']){let _0x5f2721=cur(_0x576f47['updates']['length']?_0x576f47['updates'][0x0]['startState']:this['view']['state']),_0xb54a82=Math['min'](_0x5f2721,_0x576f47['done']['from']+(_0x576f47['active']['explicit']?0x0:0x1)),_0x204308=new ActiveResult(_0x576f47['active']['source'],_0x576f47['active']['explicit'],_0xb54a82,_0x576f47['done'],_0x576f47['done']['from'],null!==(_0xc0e670=_0x576f47['done']['to'])&&void 0x0!==_0xc0e670?_0xc0e670:_0x5f2721);for(let _0x365c53 of _0x576f47['updates'])_0x204308=_0x204308['update'](_0x365c53,_0x70ace2);if(_0x204308['hasResult']()){_0x48ec40['push'](_0x204308);continue;}}let _0x2e7015=_0x3c43f3['active']['find'](_0x50f258=>_0x50f258['source']==_0x576f47['active']['source']);if(_0x2e7015&&_0x2e7015['isPending']){if(null==_0x576f47['done']){let _0xd627c0=new ActiveSource(_0x576f47['active']['source'],0x0);for(let _0xbeb07d of _0x576f47['updates'])_0xd627c0=_0xd627c0['update'](_0xbeb07d,_0x70ace2);_0xd627c0['isPending']||_0x48ec40['push'](_0xd627c0);}else this['startQuery'](_0x2e7015);}}(_0x48ec40['length']||_0x3c43f3['open']&&_0x3c43f3['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x48ec40)});}},{'eventHandlers':{'blur'(_0x2183f2){let _0x3693eb=this['view']['state']['field'](completionState,!0x1);if(_0x3693eb&&_0x3693eb['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0x3dcfa0=_0x3693eb['open']&&getTooltip(this['view'],_0x3693eb['open']['tooltip']);_0x3dcfa0&&_0x3dcfa0['dom']['contains'](_0x2183f2['relatedTarget'])||setTimeout(()=>this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),0xa);}},'compositionstart'(){this['composing']=0x1;},'compositionend'(){0x3==this['composing']&&setTimeout(()=>this['view']['dispatch']({'effects':startCompletionEffect['of'](!0x1)}),0x14),this['composing']=0x0;}}}),windows='object'==typeof navigator&&/Win/['test'](navigator['platform']),commitCharacters=Prec['highest'](EditorView['domEventHandlers']({'keydown'(_0x1d4172,_0x76736f){let _0x2700b5=_0x76736f['state']['field'](completionState,!0x1);if(!_0x2700b5||!_0x2700b5['open']||_0x2700b5['open']['disabled']||_0x2700b5['open']['selected']<0x0||_0x1d4172['key']['length']>0x1||_0x1d4172['ctrlKey']&&(!windows||!_0x1d4172['altKey'])||_0x1d4172['metaKey'])return!0x1;let _0x3cbdf8=_0x2700b5['open']['options'][_0x2700b5['open']['selected']],_0x2059dc=_0x2700b5['active']['find'](_0x43cfce=>_0x43cfce['source']==_0x3cbdf8['source']),_0x125bba=_0x3cbdf8['completion']['commitCharacters']||_0x2059dc['result']['commitCharacters'];return _0x125bba&&_0x125bba['indexOf'](_0x1d4172['key'])>-0x1&&applyCompletion(_0x76736f,_0x3cbdf8),!0x1;}})),baseTheme=EditorView['baseTheme']({'.cm-tooltip.cm-tooltip-autocomplete':{'&\x20>\x20ul':{'fontFamily':'monospace','whiteSpace':'nowrap','overflow':'hidden\x20auto','maxWidth_fallback':'700px','maxWidth':'min(700px,\x2095vw)','minWidth':'250px','maxHeight':'10em','height':'100%','listStyle':'none','margin':0x0,'padding':0x0,'&\x20>\x20li,\x20&\x20>\x20completion-section':{'padding':'1px\x203px','lineHeight':1.2},'&\x20>\x20li':{'overflowX':'hidden','textOverflow':'ellipsis','cursor':'pointer'},'&\x20>\x20completion-section':{'display':'list-item','borderBottom':'1px\x20solid\x20silver','paddingLeft':'0.5em','opacity':0.7}}},'&light\x20.cm-tooltip-autocomplete\x20ul\x20li[aria-selected]':{'background':'#17c','color':'white'},'&light\x20.cm-tooltip-autocomplete-disabled\x20ul\x20li[aria-selected]':{'background':'#777'},'&dark\x20.cm-tooltip-autocomplete\x20ul\x20li[aria-selected]':{'background':'#347','color':'white'},'&dark\x20.cm-tooltip-autocomplete-disabled\x20ul\x20li[aria-selected]':{'background':'#444'},'.cm-completionListIncompleteTop:before,\x20.cm-completionListIncompleteBottom:after':{'content':'\x22···\x22','opacity':0.5,'display':'block','textAlign':'center'},'.cm-tooltip.cm-completionInfo':{'position':'absolute','padding':'3px\x209px','width':'max-content','maxWidth':'400px','boxSizing':'border-box','whiteSpace':'pre-line'},'.cm-completionInfo.cm-completionInfo-left':{'right':'100%'},'.cm-completionInfo.cm-completionInfo-right':{'left':'100%'},'.cm-completionInfo.cm-completionInfo-left-narrow':{'right':'30px'},'.cm-completionInfo.cm-completionInfo-right-narrow':{'left':'30px'},'&light\x20.cm-snippetField':{'backgroundColor':'#00000022'},'&dark\x20.cm-snippetField':{'backgroundColor':'#ffffff22'},'.cm-snippetFieldPosition':{'verticalAlign':'text-top','width':0x0,'height':'1.15em','display':'inline-block','margin':'0\x20-0.7px\x20-.7em','borderLeft':'1.4px\x20dotted\x20#888'},'.cm-completionMatchedText':{'textDecoration':'underline'},'.cm-completionDetail':{'marginLeft':'0.5em','fontStyle':'italic'},'.cm-completionIcon':{'fontSize':'90%','width':'.8em','display':'inline-block','textAlign':'center','paddingRight':'.6em','opacity':'0.6','boxSizing':'content-box'},'.cm-completionIcon-function,\x20.cm-completionIcon-method':{'&:after':{'content':'\x27ƒ\x27'}},'.cm-completionIcon-class':{'&:after':{'content':'\x27○\x27'}},'.cm-completionIcon-interface':{'&:after':{'content':'\x27◌\x27'}},'.cm-completionIcon-variable':{'&:after':{'content':'\x27𝑥\x27'}},'.cm-completionIcon-constant':{'&:after':{'content':'\x27𝐶\x27'}},'.cm-completionIcon-type':{'&:after':{'content':'\x27𝑡\x27'}},'.cm-completionIcon-enum':{'&:after':{'content':'\x27∪\x27'}},'.cm-completionIcon-property':{'&:after':{'content':'\x27□\x27'}},'.cm-completionIcon-keyword':{'&:after':{'content':'\x27🔑︎\x27'}},'.cm-completionIcon-namespace':{'&:after':{'content':'\x27▢\x27'}},'.cm-completionIcon-text':{'&:after':{'content':'\x27abc\x27','fontSize':'50%','verticalAlign':'middle'}}});class FieldPos{constructor(_0x58ab3c,_0x5381ee,_0x549073,_0x7a253d){this['field']=_0x58ab3c,this['line']=_0x5381ee,this['from']=_0x549073,this['to']=_0x7a253d;}}class FieldRange{constructor(_0x26cfa1,_0x255279,_0x3e8256){this['field']=_0x26cfa1,this['from']=_0x255279,this['to']=_0x3e8256;}['map'](_0x57dcfb){let _0x2e8d39=_0x57dcfb['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0x47d3fb=_0x57dcfb['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x2e8d39||null==_0x47d3fb?null:new FieldRange(this['field'],_0x2e8d39,_0x47d3fb);}}class Snippet{constructor(_0x2f4abc,_0x4d119c){this['lines']=_0x2f4abc,this['fieldPositions']=_0x4d119c;}['instantiate'](_0x3294c0,_0x1284a9){let _0x4e64cb=[],_0x547701=[_0x1284a9],_0x24a1f2=_0x3294c0['doc']['lineAt'](_0x1284a9),_0x389710=/^\s*/['exec'](_0x24a1f2['text'])[0x0];for(let _0x997c5b of this['lines']){if(_0x4e64cb['length']){let _0x41d8d=_0x389710,_0x5330a9=/^\t*/['exec'](_0x997c5b)[0x0]['length'];for(let _0x5b67ee=0x0;_0x5b67ee<_0x5330a9;_0x5b67ee++)_0x41d8d+=_0x3294c0['facet'](indentUnit);_0x547701['push'](_0x1284a9+_0x41d8d['length']-_0x5330a9),_0x997c5b=_0x41d8d+_0x997c5b['slice'](_0x5330a9);}_0x4e64cb['push'](_0x997c5b),_0x1284a9+=_0x997c5b['length']+0x1;}let _0x2f129c=this['fieldPositions']['map'](_0x15f4c6=>new FieldRange(_0x15f4c6['field'],_0x547701[_0x15f4c6['line']]+_0x15f4c6['from'],_0x547701[_0x15f4c6['line']]+_0x15f4c6['to']));return{'text':_0x4e64cb,'ranges':_0x2f129c};}static['parse'](_0x150f83){let _0x50d8dc,_0x25e8e7=[],_0x4b31f4=[],_0x2affeb=[];for(let _0x2688ad of _0x150f83['split'](/\r\n?|\n/)){for(;_0x50d8dc=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x2688ad);){let _0xa3ab59=_0x50d8dc[0x1]?+_0x50d8dc[0x1]:null,_0x47b192=_0x50d8dc[0x2]||_0x50d8dc[0x3]||'',_0x47149a=-0x1,_0x42105b=_0x47b192['replace'](/\\[{}]/g,_0x2440ae=>_0x2440ae[0x1]);for(let _0x412832=0x0;_0x412832<_0x25e8e7['length'];_0x412832++)(null!=_0xa3ab59?_0x25e8e7[_0x412832]['seq']==_0xa3ab59:_0x42105b&&_0x25e8e7[_0x412832]['name']==_0x42105b)&&(_0x47149a=_0x412832);if(_0x47149a<0x0){let _0x1a9d63=0x0;for(;_0x1a9d63<_0x25e8e7['length']&&(null==_0xa3ab59||null!=_0x25e8e7[_0x1a9d63]['seq']&&_0x25e8e7[_0x1a9d63]['seq']<_0xa3ab59);)_0x1a9d63++;_0x25e8e7['splice'](_0x1a9d63,0x0,{'seq':_0xa3ab59,'name':_0x42105b}),_0x47149a=_0x1a9d63;for(let _0x126632 of _0x2affeb)_0x126632['field']>=_0x47149a&&_0x126632['field']++;}for(let _0x1dec74 of _0x2affeb)if(_0x1dec74['line']==_0x4b31f4['length']&&_0x1dec74['from']>_0x50d8dc['index']){let _0x3fec43=_0x50d8dc[0x2]?0x3+(_0x50d8dc[0x1]||'')['length']:0x2;_0x1dec74['from']-=_0x3fec43,_0x1dec74['to']-=_0x3fec43;}_0x2affeb['push'](new FieldPos(_0x47149a,_0x4b31f4['length'],_0x50d8dc['index'],_0x50d8dc['index']+_0x42105b['length'])),_0x2688ad=_0x2688ad['slice'](0x0,_0x50d8dc['index'])+_0x47b192+_0x2688ad['slice'](_0x50d8dc['index']+_0x50d8dc[0x0]['length']);}_0x2688ad=_0x2688ad['replace'](/\\([{}])/g,(_0x5b5c7b,_0xf8a379,_0x222ab0)=>{for(let _0x58dfe1 of _0x2affeb)_0x58dfe1['line']==_0x4b31f4['length']&&_0x58dfe1['from']>_0x222ab0&&(_0x58dfe1['from']--,_0x58dfe1['to']--);return _0xf8a379;}),_0x4b31f4['push'](_0x2688ad);}return new Snippet(_0x4b31f4,_0x2affeb);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0x3d55e7=document['createElement']('span');return _0x3d55e7['className']='cm-snippetFieldPosition',_0x3d55e7;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x599afa,_0x52b5fa){this['ranges']=_0x599afa,this['active']=_0x52b5fa,this['deco']=Decoration['set'](_0x599afa['map'](_0x122efe=>(_0x122efe['from']==_0x122efe['to']?fieldMarker:fieldRange)['range'](_0x122efe['from'],_0x122efe['to'])),!0x0);}['map'](_0xfefd53){let _0x321a42=[];for(let _0x169e93 of this['ranges']){let _0x348788=_0x169e93['map'](_0xfefd53);if(!_0x348788)return null;_0x321a42['push'](_0x348788);}return new ActiveSnippet(_0x321a42,this['active']);}['selectionInsideField'](_0x1df99e){return _0x1df99e['ranges']['every'](_0x188376=>this['ranges']['some'](_0x583b84=>_0x583b84['field']==this['active']&&_0x583b84['from']<=_0x188376['from']&&_0x583b84['to']>=_0x188376['to']));}}const setActive=StateEffect['define']({'map':(_0x3300a2,_0x503fc8)=>_0x3300a2&&_0x3300a2['map'](_0x503fc8)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0x83c877,_0x5dc715){for(let _0xfbc60d of _0x5dc715['effects']){if(_0xfbc60d['is'](setActive))return _0xfbc60d['value'];if(_0xfbc60d['is'](moveToField)&&_0x83c877)return new ActiveSnippet(_0x83c877['ranges'],_0xfbc60d['value']);}return _0x83c877&&_0x5dc715['docChanged']&&(_0x83c877=_0x83c877['map'](_0x5dc715['changes'])),_0x83c877&&_0x5dc715['selection']&&!_0x83c877['selectionInsideField'](_0x5dc715['selection'])&&(_0x83c877=null),_0x83c877;},'provide':_0x1e4320=>EditorView['decorations']['from'](_0x1e4320,_0x457096=>_0x457096?_0x457096['deco']:Decoration['none'])});function fieldSelection(_0x733191,_0x2cfdc7){return EditorSelection['create'](_0x733191['filter'](_0x460d8f=>_0x460d8f['field']==_0x2cfdc7)['map'](_0x407a28=>EditorSelection['range'](_0x407a28['from'],_0x407a28['to'])));}function snippet(_0x38588e){let _0x866015=Snippet['parse'](_0x38588e);return(_0x466011,_0x128866,_0x2be053,_0x9a5427)=>{let {text:_0x51c20c,ranges:_0x176fd2}=_0x866015['instantiate'](_0x466011['state'],_0x2be053),{main:_0x1926c0}=_0x466011['state']['selection'],_0x162d8f={'changes':{'from':_0x2be053,'to':_0x9a5427==_0x1926c0['from']?_0x1926c0['to']:_0x9a5427,'insert':Text$1['of'](_0x51c20c)},'scrollIntoView':!0x0,'annotations':_0x128866?[pickedCompletion['of'](_0x128866),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0x176fd2['length']&&(_0x162d8f['selection']=fieldSelection(_0x176fd2,0x0)),_0x176fd2['some'](_0x85fd25=>_0x85fd25['field']>0x0)){let _0xbdf922=new ActiveSnippet(_0x176fd2,0x0),_0x3b53d6=_0x162d8f['effects']=[setActive['of'](_0xbdf922)];void 0x0===_0x466011['state']['field'](snippetState,!0x1)&&_0x3b53d6['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x466011['dispatch'](_0x466011['state']['update'](_0x162d8f));};}function moveField(_0x481e3e){return({state:_0x5cc7a9,dispatch:_0x5322ed})=>{let _0x1c2bf6=_0x5cc7a9['field'](snippetState,!0x1);if(!_0x1c2bf6||_0x481e3e<0x0&&0x0==_0x1c2bf6['active'])return!0x1;let _0x2513b4=_0x1c2bf6['active']+_0x481e3e,_0x29708e=_0x481e3e>0x0&&!_0x1c2bf6['ranges']['some'](_0x485d72=>_0x485d72['field']==_0x2513b4+_0x481e3e);return _0x5322ed(_0x5cc7a9['update']({'selection':fieldSelection(_0x1c2bf6['ranges'],_0x2513b4),'effects':setActive['of'](_0x29708e?null:new ActiveSnippet(_0x1c2bf6['ranges'],_0x2513b4)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x218d08,dispatch:_0x1422a4})=>!!_0x218d08['field'](snippetState,!0x1)&&(_0x1422a4(_0x218d08['update']({'effects':setActive['of'](null)})),!0x0),nextSnippetField=moveField(0x1),prevSnippetField=moveField(-0x1),defaultSnippetKeymap=[{'key':'Tab','run':nextSnippetField,'shift':prevSnippetField},{'key':'Escape','run':clearSnippet}],snippetKeymap=Facet['define']({'combine':_0x52ca9a=>_0x52ca9a['length']?_0x52ca9a[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0x10b16b=>_0x10b16b['facet'](snippetKeymap)));function snippetCompletion(_0x58259a,_0x200f23){return{..._0x200f23,'apply':snippet(_0x58259a)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x2aac16,_0x17c444){let _0x10af34,_0x5a5c45=_0x17c444['state']['field'](snippetState,!0x1);if(!_0x5a5c45||null==(_0x10af34=_0x17c444['posAtCoords']({'x':_0x2aac16['clientX'],'y':_0x2aac16['clientY']})))return!0x1;let _0x250f78=_0x5a5c45['ranges']['find'](_0x4b461b=>_0x4b461b['from']<=_0x10af34&&_0x4b461b['to']>=_0x10af34);return!(!_0x250f78||_0x250f78['field']==_0x5a5c45['active'])&&(_0x17c444['dispatch']({'selection':fieldSelection(_0x5a5c45['ranges'],_0x250f78['field']),'effects':setActive['of'](_0x5a5c45['ranges']['some'](_0x3dac10=>_0x3dac10['field']>_0x250f78['field'])?new ActiveSnippet(_0x5a5c45['ranges'],_0x250f78['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x2dcca9,_0x31305d){let _0x2f1053=_0x31305d['mapPos'](_0x2dcca9,-0x1,MapMode['TrackAfter']);return null==_0x2f1053?void 0x0:_0x2f1053;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x477922,_0x37667b){if(_0x477922=_0x477922['map'](_0x37667b['changes']),_0x37667b['selection']){let _0x22b0ba=_0x37667b['state']['doc']['lineAt'](_0x37667b['selection']['main']['head']);_0x477922=_0x477922['update']({'filter':_0x7ced0b=>_0x7ced0b>=_0x22b0ba['from']&&_0x7ced0b<=_0x22b0ba['to']});}for(let _0x21f474 of _0x37667b['effects'])_0x21f474['is'](closeBracketEffect)&&(_0x477922=_0x477922['update']({'add':[closedBracket['range'](_0x21f474['value'],_0x21f474['value']+0x1)]}));return _0x477922;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x10af8d){for(let _0x8117eb=0x0;_0x8117eb<definedClosing['length'];_0x8117eb+=0x2)if(definedClosing['charCodeAt'](_0x8117eb)==_0x10af8d)return definedClosing['charAt'](_0x8117eb+0x1);return fromCodePoint(_0x10af8d<0x80?_0x10af8d:_0x10af8d+0x1);}function config(_0x32a3d7,_0x22ace6){return _0x32a3d7['languageDataAt']('closeBrackets',_0x22ace6)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x51b4d0,_0x3b0fe5,_0x2f57f0,_0x22505a)=>{if((android$1?_0x51b4d0['composing']:_0x51b4d0['compositionStarted'])||_0x51b4d0['state']['readOnly'])return!0x1;let _0x2a36b6=_0x51b4d0['state']['selection']['main'];if(_0x22505a['length']>0x2||0x2==_0x22505a['length']&&0x1==codePointSize(codePointAt(_0x22505a,0x0))||_0x3b0fe5!=_0x2a36b6['from']||_0x2f57f0!=_0x2a36b6['to'])return!0x1;let _0x29bac8=insertBracket(_0x51b4d0['state'],_0x22505a);return!!_0x29bac8&&(_0x51b4d0['dispatch'](_0x29bac8),!0x0);}),deleteBracketPair=({state:_0x44772c,dispatch:_0x3c22b1})=>{if(_0x44772c['readOnly'])return!0x1;let _0x2759c8=config(_0x44772c,_0x44772c['selection']['main']['head'])['brackets']||defaults['brackets'],_0x42423c=null,_0x1c8de6=_0x44772c['changeByRange'](_0x2ac389=>{if(_0x2ac389['empty']){let _0x4fcda8=prevChar(_0x44772c['doc'],_0x2ac389['head']);for(let _0x231cda of _0x2759c8)if(_0x231cda==_0x4fcda8&&nextChar(_0x44772c['doc'],_0x2ac389['head'])==closing(codePointAt(_0x231cda,0x0)))return{'changes':{'from':_0x2ac389['head']-_0x231cda['length'],'to':_0x2ac389['head']+_0x231cda['length']},'range':EditorSelection['cursor'](_0x2ac389['head']-_0x231cda['length'])};}return{'range':_0x42423c=_0x2ac389};});return _0x42423c||_0x3c22b1(_0x44772c['update'](_0x1c8de6,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x42423c;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x2fe2c0,_0x50808e){let _0xd5a269=config(_0x2fe2c0,_0x2fe2c0['selection']['main']['head']),_0x500b46=_0xd5a269['brackets']||defaults['brackets'];for(let _0x29ed16 of _0x500b46){let _0x3676f1=closing(codePointAt(_0x29ed16,0x0));if(_0x50808e==_0x29ed16)return _0x3676f1==_0x29ed16?handleSame(_0x2fe2c0,_0x29ed16,_0x500b46['indexOf'](_0x29ed16+_0x29ed16+_0x29ed16)>-0x1,_0xd5a269):handleOpen(_0x2fe2c0,_0x29ed16,_0x3676f1,_0xd5a269['before']||defaults['before']);if(_0x50808e==_0x3676f1&&closedBracketAt(_0x2fe2c0,_0x2fe2c0['selection']['main']['from']))return handleClose(_0x2fe2c0,_0x29ed16,_0x3676f1);}return null;}function closedBracketAt(_0xd435b4,_0x58d416){let _0x32aedc=!0x1;return _0xd435b4['field'](bracketState)['between'](0x0,_0xd435b4['doc']['length'],_0x11203a=>{_0x11203a==_0x58d416&&(_0x32aedc=!0x0);}),_0x32aedc;}function nextChar(_0x17c03b,_0x23759b){let _0x1c4185=_0x17c03b['sliceString'](_0x23759b,_0x23759b+0x2);return _0x1c4185['slice'](0x0,codePointSize(codePointAt(_0x1c4185,0x0)));}function prevChar(_0x5b4c3d,_0x434787){let _0x31c715=_0x5b4c3d['sliceString'](_0x434787-0x2,_0x434787);return codePointSize(codePointAt(_0x31c715,0x0))==_0x31c715['length']?_0x31c715:_0x31c715['slice'](0x1);}function handleOpen(_0x1530b7,_0x2e8c28,_0x425552,_0x60540d){let _0x2e62b5=null,_0x4c6b23=_0x1530b7['changeByRange'](_0x588917=>{if(!_0x588917['empty'])return{'changes':[{'insert':_0x2e8c28,'from':_0x588917['from']},{'insert':_0x425552,'from':_0x588917['to']}],'effects':closeBracketEffect['of'](_0x588917['to']+_0x2e8c28['length']),'range':EditorSelection['range'](_0x588917['anchor']+_0x2e8c28['length'],_0x588917['head']+_0x2e8c28['length'])};let _0x5d095d=nextChar(_0x1530b7['doc'],_0x588917['head']);return!_0x5d095d||/\s/['test'](_0x5d095d)||_0x60540d['indexOf'](_0x5d095d)>-0x1?{'changes':{'insert':_0x2e8c28+_0x425552,'from':_0x588917['head']},'effects':closeBracketEffect['of'](_0x588917['head']+_0x2e8c28['length']),'range':EditorSelection['cursor'](_0x588917['head']+_0x2e8c28['length'])}:{'range':_0x2e62b5=_0x588917};});return _0x2e62b5?null:_0x1530b7['update'](_0x4c6b23,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0x2b4a5a,_0x242c02,_0xed5743){let _0x20913a=null,_0xf4fd1a=_0x2b4a5a['changeByRange'](_0x527087=>_0x527087['empty']&&nextChar(_0x2b4a5a['doc'],_0x527087['head'])==_0xed5743?{'changes':{'from':_0x527087['head'],'to':_0x527087['head']+_0xed5743['length'],'insert':_0xed5743},'range':EditorSelection['cursor'](_0x527087['head']+_0xed5743['length'])}:_0x20913a={'range':_0x527087});return _0x20913a?null:_0x2b4a5a['update'](_0xf4fd1a,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x59eaa9,_0x143fae,_0x43b395,_0x2053fa){let _0x542b8f=_0x2053fa['stringPrefixes']||defaults['stringPrefixes'],_0x332d89=null,_0x12c843=_0x59eaa9['changeByRange'](_0x4b6ebc=>{if(!_0x4b6ebc['empty'])return{'changes':[{'insert':_0x143fae,'from':_0x4b6ebc['from']},{'insert':_0x143fae,'from':_0x4b6ebc['to']}],'effects':closeBracketEffect['of'](_0x4b6ebc['to']+_0x143fae['length']),'range':EditorSelection['range'](_0x4b6ebc['anchor']+_0x143fae['length'],_0x4b6ebc['head']+_0x143fae['length'])};let _0x3f8ffb,_0x333b01=_0x4b6ebc['head'],_0x5a9222=nextChar(_0x59eaa9['doc'],_0x333b01);if(_0x5a9222==_0x143fae){if(nodeStart(_0x59eaa9,_0x333b01))return{'changes':{'insert':_0x143fae+_0x143fae,'from':_0x333b01},'effects':closeBracketEffect['of'](_0x333b01+_0x143fae['length']),'range':EditorSelection['cursor'](_0x333b01+_0x143fae['length'])};if(closedBracketAt(_0x59eaa9,_0x333b01)){let _0x41b275=_0x43b395&&_0x59eaa9['sliceDoc'](_0x333b01,_0x333b01+0x3*_0x143fae['length'])==_0x143fae+_0x143fae+_0x143fae?_0x143fae+_0x143fae+_0x143fae:_0x143fae;return{'changes':{'from':_0x333b01,'to':_0x333b01+_0x41b275['length'],'insert':_0x41b275},'range':EditorSelection['cursor'](_0x333b01+_0x41b275['length'])};}}else{if(_0x43b395&&_0x59eaa9['sliceDoc'](_0x333b01-0x2*_0x143fae['length'],_0x333b01)==_0x143fae+_0x143fae&&(_0x3f8ffb=canStartStringAt(_0x59eaa9,_0x333b01-0x2*_0x143fae['length'],_0x542b8f))>-0x1&&nodeStart(_0x59eaa9,_0x3f8ffb))return{'changes':{'insert':_0x143fae+_0x143fae+_0x143fae+_0x143fae,'from':_0x333b01},'effects':closeBracketEffect['of'](_0x333b01+_0x143fae['length']),'range':EditorSelection['cursor'](_0x333b01+_0x143fae['length'])};if(_0x59eaa9['charCategorizer'](_0x333b01)(_0x5a9222)!=CharCategory['Word']&&canStartStringAt(_0x59eaa9,_0x333b01,_0x542b8f)>-0x1&&!probablyInString(_0x59eaa9,_0x333b01,_0x143fae,_0x542b8f))return{'changes':{'insert':_0x143fae+_0x143fae,'from':_0x333b01},'effects':closeBracketEffect['of'](_0x333b01+_0x143fae['length']),'range':EditorSelection['cursor'](_0x333b01+_0x143fae['length'])};}return{'range':_0x332d89=_0x4b6ebc};});return _0x332d89?null:_0x59eaa9['update'](_0x12c843,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x18823d,_0x5014c3){let _0x1a55e9=syntaxTree(_0x18823d)['resolveInner'](_0x5014c3+0x1);return _0x1a55e9['parent']&&_0x1a55e9['from']==_0x5014c3;}function probablyInString(_0x2beb20,_0x3f576e,_0x24601f,_0x5450c5){let _0x2dc197=syntaxTree(_0x2beb20)['resolveInner'](_0x3f576e,-0x1),_0x277df6=_0x5450c5['reduce']((_0xd3487,_0x574d98)=>Math['max'](_0xd3487,_0x574d98['length']),0x0);for(let _0x12bcc2=0x0;_0x12bcc2<0x5;_0x12bcc2++){let _0x37aefd=_0x2beb20['sliceDoc'](_0x2dc197['from'],Math['min'](_0x2dc197['to'],_0x2dc197['from']+_0x24601f['length']+_0x277df6)),_0x2422f1=_0x37aefd['indexOf'](_0x24601f);if(!_0x2422f1||_0x2422f1>-0x1&&_0x5450c5['indexOf'](_0x37aefd['slice'](0x0,_0x2422f1))>-0x1){let _0x2539ff=_0x2dc197['firstChild'];for(;_0x2539ff&&_0x2539ff['from']==_0x2dc197['from']&&_0x2539ff['to']-_0x2539ff['from']>_0x24601f['length']+_0x2422f1;){if(_0x2beb20['sliceDoc'](_0x2539ff['to']-_0x24601f['length'],_0x2539ff['to'])==_0x24601f)return!0x1;_0x2539ff=_0x2539ff['firstChild'];}return!0x0;}let _0xf44329=_0x2dc197['to']==_0x3f576e&&_0x2dc197['parent'];if(!_0xf44329)break;_0x2dc197=_0xf44329;}return!0x1;}function canStartStringAt(_0x4d971f,_0x15591c,_0x3e71d7){let _0x53c16e=_0x4d971f['charCategorizer'](_0x15591c);if(_0x53c16e(_0x4d971f['sliceDoc'](_0x15591c-0x1,_0x15591c))!=CharCategory['Word'])return _0x15591c;for(let _0xee877f of _0x3e71d7){let _0x5bb183=_0x15591c-_0xee877f['length'];if(_0x4d971f['sliceDoc'](_0x5bb183,_0x15591c)==_0xee877f&&_0x53c16e(_0x4d971f['sliceDoc'](_0x5bb183-0x1,_0x5bb183))!=CharCategory['Word'])return _0x5bb183;}return-0x1;}function autocompletion(_0x539c99={}){return[commitCharacters,completionState,completionConfig['of'](_0x539c99),completionPlugin,completionKeymapExt,baseTheme];}const completionKeymap=[{'key':'Ctrl-Space','run':startCompletion},{'mac':'Alt-`','run':startCompletion},{'mac':'Alt-i','run':startCompletion},{'key':'Escape','run':closeCompletion},{'key':'ArrowDown','run':moveCompletionSelection(!0x0)},{'key':'ArrowUp','run':moveCompletionSelection(!0x1)},{'key':'PageDown','run':moveCompletionSelection(!0x0,'page')},{'key':'PageUp','run':moveCompletionSelection(!0x1,'page')},{'key':'Enter','run':acceptCompletion}],completionKeymapExt=Prec['highest'](keymap['computeN']([completionConfig],_0x4917df=>_0x4917df['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x81c60c,_0x5e1210,_0x5e8b6c,_0x3792ee,_0x59e0d0,_0x57e2ea,_0x4beec3,_0x463fd8,_0x56cfaf,_0x229cf3=0x0,_0x571cf2){this['p']=_0x81c60c,this['stack']=_0x5e1210,this['state']=_0x5e8b6c,this['reducePos']=_0x3792ee,this['pos']=_0x59e0d0,this['score']=_0x57e2ea,this['buffer']=_0x4beec3,this['bufferBase']=_0x463fd8,this['curContext']=_0x56cfaf,this['lookAhead']=_0x229cf3,this['parent']=_0x571cf2;}['toString'](){return'['+this['stack']['filter']((_0x358ab0,_0x2e120e)=>_0x2e120e%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x1788ec,_0x1a39e3,_0x23755d=0x0){let _0x30e612=_0x1788ec['parser']['context'];return new Stack(_0x1788ec,[],_0x1a39e3,_0x23755d,_0x23755d,0x0,[],0x0,_0x30e612?new StackContext(_0x30e612,_0x30e612['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x445935,_0x4623f6){this['stack']['push'](this['state'],_0x4623f6,this['bufferBase']+this['buffer']['length']),this['state']=_0x445935;}['reduce'](_0x16c49b){var _0x50c584;let _0x3b7027=_0x16c49b>>0x13,_0x171993=0xffff&_0x16c49b,{parser:_0x30d9ab}=this['p'],_0x292790=this['reducePos']<this['pos']-0x19;_0x292790&&this['setLookAhead'](this['pos']);let _0x1dd4fa=_0x30d9ab['dynamicPrecedence'](_0x171993);if(_0x1dd4fa&&(this['score']+=_0x1dd4fa),0x0==_0x3b7027)return this['pushState'](_0x30d9ab['getGoto'](this['state'],_0x171993,!0x0),this['reducePos']),_0x171993<_0x30d9ab['minRepeatTerm']&&this['storeNode'](_0x171993,this['reducePos'],this['reducePos'],_0x292790?0x8:0x4,!0x0),void this['reduceContext'](_0x171993,this['reducePos']);let _0x3fc23a=this['stack']['length']-0x3*(_0x3b7027-0x1)-(0x40000&_0x16c49b?0x6:0x0),_0x2ad530=_0x3fc23a?this['stack'][_0x3fc23a-0x2]:this['p']['ranges'][0x0]['from'],_0x5cf97a=this['reducePos']-_0x2ad530;_0x5cf97a>=0x7d0&&!(null===(_0x50c584=this['p']['parser']['nodeSet']['types'][_0x171993])||void 0x0===_0x50c584?void 0x0:_0x50c584['isAnonymous'])&&(_0x2ad530==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x5cf97a):this['p']['lastBigReductionSize']<_0x5cf97a&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x2ad530,this['p']['lastBigReductionSize']=_0x5cf97a));let _0x205334=_0x3fc23a?this['stack'][_0x3fc23a-0x1]:0x0,_0x2b3b34=this['bufferBase']+this['buffer']['length']-_0x205334;if(_0x171993<_0x30d9ab['minRepeatTerm']||0x20000&_0x16c49b){let _0x1dd88a=_0x30d9ab['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0x171993,_0x2ad530,_0x1dd88a,_0x2b3b34+0x4,!0x0);}if(0x40000&_0x16c49b)this['state']=this['stack'][_0x3fc23a];else{let _0x55f63d=this['stack'][_0x3fc23a-0x3];this['state']=_0x30d9ab['getGoto'](_0x55f63d,_0x171993,!0x0);}for(;this['stack']['length']>_0x3fc23a;)this['stack']['pop']();this['reduceContext'](_0x171993,_0x2ad530);}['storeNode'](_0x7e2d0c,_0x4a0c4e,_0x13e611,_0x44db76=0x4,_0x42a272=!0x1){if(0x0==_0x7e2d0c&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0x3b7856=this,_0x157190=this['buffer']['length'];if(0x0==_0x157190&&_0x3b7856['parent']&&(_0x157190=_0x3b7856['bufferBase']-_0x3b7856['parent']['bufferBase'],_0x3b7856=_0x3b7856['parent']),_0x157190>0x0&&0x0==_0x3b7856['buffer'][_0x157190-0x4]&&_0x3b7856['buffer'][_0x157190-0x1]>-0x1){if(_0x4a0c4e==_0x13e611)return;if(_0x3b7856['buffer'][_0x157190-0x2]>=_0x4a0c4e)return void(_0x3b7856['buffer'][_0x157190-0x2]=_0x13e611);}}if(_0x42a272&&this['pos']!=_0x13e611){let _0x26df87=this['buffer']['length'];if(_0x26df87>0x0&&(0x0!=this['buffer'][_0x26df87-0x4]||this['buffer'][_0x26df87-0x1]<0x0)){let _0x404060=!0x1;for(let _0x5c37d2=_0x26df87;_0x5c37d2>0x0&&this['buffer'][_0x5c37d2-0x2]>_0x13e611;_0x5c37d2-=0x4)if(this['buffer'][_0x5c37d2-0x1]>=0x0){_0x404060=!0x0;break;}if(_0x404060){for(;_0x26df87>0x0&&this['buffer'][_0x26df87-0x2]>_0x13e611;)this['buffer'][_0x26df87]=this['buffer'][_0x26df87-0x4],this['buffer'][_0x26df87+0x1]=this['buffer'][_0x26df87-0x3],this['buffer'][_0x26df87+0x2]=this['buffer'][_0x26df87-0x2],this['buffer'][_0x26df87+0x3]=this['buffer'][_0x26df87-0x1],_0x26df87-=0x4,_0x44db76>0x4&&(_0x44db76-=0x4);}}this['buffer'][_0x26df87]=_0x7e2d0c,this['buffer'][_0x26df87+0x1]=_0x4a0c4e,this['buffer'][_0x26df87+0x2]=_0x13e611,this['buffer'][_0x26df87+0x3]=_0x44db76;}else this['buffer']['push'](_0x7e2d0c,_0x4a0c4e,_0x13e611,_0x44db76);}['shift'](_0x4c867c,_0x63c9a0,_0x3b6d49,_0x2590fd){if(0x20000&_0x4c867c)this['pushState'](0xffff&_0x4c867c,this['pos']);else{if(0x40000&_0x4c867c)this['pos']=_0x2590fd,this['shiftContext'](_0x63c9a0,_0x3b6d49),_0x63c9a0<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0x63c9a0,_0x3b6d49,_0x2590fd,0x4);else{let _0x52f1d3=_0x4c867c,{parser:_0x190bba}=this['p'];(_0x2590fd>this['pos']||_0x63c9a0<=_0x190bba['maxNode'])&&(this['pos']=_0x2590fd,_0x190bba['stateFlag'](_0x52f1d3,0x1)||(this['reducePos']=_0x2590fd)),this['pushState'](_0x52f1d3,_0x3b6d49),this['shiftContext'](_0x63c9a0,_0x3b6d49),_0x63c9a0<=_0x190bba['maxNode']&&this['buffer']['push'](_0x63c9a0,_0x3b6d49,_0x2590fd,0x4);}}}['apply'](_0x4e4275,_0x500cab,_0x3cc68a,_0x48e533){0x10000&_0x4e4275?this['reduce'](_0x4e4275):this['shift'](_0x4e4275,_0x500cab,_0x3cc68a,_0x48e533);}['useNode'](_0x2bd979,_0x3c193e){let _0x47c0ad=this['p']['reused']['length']-0x1;(_0x47c0ad<0x0||this['p']['reused'][_0x47c0ad]!=_0x2bd979)&&(this['p']['reused']['push'](_0x2bd979),_0x47c0ad++);let _0x1e42d6=this['pos'];this['reducePos']=this['pos']=_0x1e42d6+_0x2bd979['length'],this['pushState'](_0x3c193e,_0x1e42d6),this['buffer']['push'](_0x47c0ad,_0x1e42d6,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x2bd979,this,this['p']['stream']['reset'](this['pos']-_0x2bd979['length'])));}['split'](){let _0x47009e=this,_0x59e92a=_0x47009e['buffer']['length'];for(;_0x59e92a>0x0&&_0x47009e['buffer'][_0x59e92a-0x2]>_0x47009e['reducePos'];)_0x59e92a-=0x4;let _0x1c311e=_0x47009e['buffer']['slice'](_0x59e92a),_0x503ebd=_0x47009e['bufferBase']+_0x59e92a;for(;_0x47009e&&_0x503ebd==_0x47009e['bufferBase'];)_0x47009e=_0x47009e['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x1c311e,_0x503ebd,this['curContext'],this['lookAhead'],_0x47009e);}['recoverByDelete'](_0x135ab9,_0x4e3baa){let _0x7e4465=_0x135ab9<=this['p']['parser']['maxNode'];_0x7e4465&&this['storeNode'](_0x135ab9,this['pos'],_0x4e3baa,0x4),this['storeNode'](0x0,this['pos'],_0x4e3baa,_0x7e4465?0x8:0x4),this['pos']=this['reducePos']=_0x4e3baa,this['score']-=0xbe;}['canShift'](_0x172858){for(let _0x1d6bed=new SimulatedStack(this);;){let _0x1b1ff2=this['p']['parser']['stateSlot'](_0x1d6bed['state'],0x4)||this['p']['parser']['hasAction'](_0x1d6bed['state'],_0x172858);if(0x0==_0x1b1ff2)return!0x1;if(!(0x10000&_0x1b1ff2))return!0x0;_0x1d6bed['reduce'](_0x1b1ff2);}}['recoverByInsert'](_0xaf797a){if(this['stack']['length']>=0x12c)return[];let _0x143389=this['p']['parser']['nextStates'](this['state']);if(_0x143389['length']>0x8||this['stack']['length']>=0x78){let _0x2bebd1=[];for(let _0xa2692e,_0x39a5fc=0x0;_0x39a5fc<_0x143389['length'];_0x39a5fc+=0x2)(_0xa2692e=_0x143389[_0x39a5fc+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0xa2692e,_0xaf797a)&&_0x2bebd1['push'](_0x143389[_0x39a5fc],_0xa2692e);if(this['stack']['length']<0x78)for(let _0x441dc7=0x0;_0x2bebd1['length']<0x8&&_0x441dc7<_0x143389['length'];_0x441dc7+=0x2){let _0x1d0cbf=_0x143389[_0x441dc7+0x1];_0x2bebd1['some']((_0x3e23e1,_0x547815)=>0x1&_0x547815&&_0x3e23e1==_0x1d0cbf)||_0x2bebd1['push'](_0x143389[_0x441dc7],_0x1d0cbf);}_0x143389=_0x2bebd1;}let _0x213d9c=[];for(let _0x230d34=0x0;_0x230d34<_0x143389['length']&&_0x213d9c['length']<0x4;_0x230d34+=0x2){let _0x1f32db=_0x143389[_0x230d34+0x1];if(_0x1f32db==this['state'])continue;let _0x46fc85=this['split']();_0x46fc85['pushState'](_0x1f32db,this['pos']),_0x46fc85['storeNode'](0x0,_0x46fc85['pos'],_0x46fc85['pos'],0x4,!0x0),_0x46fc85['shiftContext'](_0x143389[_0x230d34],this['pos']),_0x46fc85['reducePos']=this['pos'],_0x46fc85['score']-=0xc8,_0x213d9c['push'](_0x46fc85);}return _0x213d9c;}['forceReduce'](){let {parser:_0x5e0588}=this['p'],_0x2f359c=_0x5e0588['stateSlot'](this['state'],0x5);if(!(0x10000&_0x2f359c))return!0x1;if(!_0x5e0588['validAction'](this['state'],_0x2f359c)){let _0x59a651=_0x2f359c>>0x13,_0xa71ae2=0xffff&_0x2f359c,_0x5ddac3=this['stack']['length']-0x3*_0x59a651;if(_0x5ddac3<0x0||_0x5e0588['getGoto'](this['stack'][_0x5ddac3],_0xa71ae2,!0x1)<0x0){let _0x378464=this['findForcedReduction']();if(null==_0x378464)return!0x1;_0x2f359c=_0x378464;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x2f359c),!0x0;}['findForcedReduction'](){let {parser:_0x14b5f0}=this['p'],_0x205276=[],_0x2c5d6c=(_0x298e53,_0x51e348)=>{if(!_0x205276['includes'](_0x298e53))return _0x205276['push'](_0x298e53),_0x14b5f0['allActions'](_0x298e53,_0x5ac51a=>{if(0x60000&_0x5ac51a);else{if(0x10000&_0x5ac51a){let _0x482762=(_0x5ac51a>>0x13)-_0x51e348;if(_0x482762>0x1){let _0x5874ba=0xffff&_0x5ac51a,_0x24561c=this['stack']['length']-0x3*_0x482762;if(_0x24561c>=0x0&&_0x14b5f0['getGoto'](this['stack'][_0x24561c],_0x5874ba,!0x1)>=0x0)return _0x482762<<0x13|0x10000|_0x5874ba;}}else{let _0x30e515=_0x2c5d6c(_0x5ac51a,_0x51e348+0x1);if(null!=_0x30e515)return _0x30e515;}}});};return _0x2c5d6c(this['state'],0x0);}['forceAll'](){for(;!this['p']['parser']['stateFlag'](this['state'],0x2);)if(!this['forceReduce']()){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0);break;}return this;}get['deadEnd'](){if(0x3!=this['stack']['length'])return!0x1;let {parser:_0xd5f768}=this['p'];return 0xffff==_0xd5f768['data'][_0xd5f768['stateSlot'](this['state'],0x1)]&&!_0xd5f768['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x185e5f){if(this['state']!=_0x185e5f['state']||this['stack']['length']!=_0x185e5f['stack']['length'])return!0x1;for(let _0x198cb9=0x0;_0x198cb9<this['stack']['length'];_0x198cb9+=0x3)if(this['stack'][_0x198cb9]!=_0x185e5f['stack'][_0x198cb9])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x2f04ad){return this['p']['parser']['dialect']['flags'][_0x2f04ad];}['shiftContext'](_0x2ea6bc,_0x1dbf11){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0x2ea6bc,this,this['p']['stream']['reset'](_0x1dbf11)));}['reduceContext'](_0x58753e,_0x3482d4){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x58753e,this,this['p']['stream']['reset'](_0x3482d4)));}['emitContext'](){let _0x51af99=this['buffer']['length']-0x1;(_0x51af99<0x0||-0x3!=this['buffer'][_0x51af99])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x3c26fb=this['buffer']['length']-0x1;(_0x3c26fb<0x0||-0x4!=this['buffer'][_0x3c26fb])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x5d052f){if(_0x5d052f!=this['curContext']['context']){let _0x456eeb=new StackContext(this['curContext']['tracker'],_0x5d052f);_0x456eeb['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x456eeb;}}['setLookAhead'](_0x5b4b42){_0x5b4b42>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x5b4b42);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x548977,_0x50e825){this['tracker']=_0x548977,this['context']=_0x50e825,this['hash']=_0x548977['strict']?_0x548977['hash'](_0x50e825):0x0;}}class SimulatedStack{constructor(_0x60bb76){this['start']=_0x60bb76,this['state']=_0x60bb76['state'],this['stack']=_0x60bb76['stack'],this['base']=this['stack']['length'];}['reduce'](_0x5a5fa3){let _0x44a35e=0xffff&_0x5a5fa3,_0x483f56=_0x5a5fa3>>0x13;0x0==_0x483f56?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x483f56-0x1);let _0x436695=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x44a35e,!0x0);this['state']=_0x436695;}}class StackBufferCursor{constructor(_0x58ceec,_0x3510ff,_0x408ea5){this['stack']=_0x58ceec,this['pos']=_0x3510ff,this['index']=_0x408ea5,this['buffer']=_0x58ceec['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0x52caaa,_0x2b94ac=_0x52caaa['bufferBase']+_0x52caaa['buffer']['length']){return new StackBufferCursor(_0x52caaa,_0x2b94ac,_0x2b94ac-_0x52caaa['bufferBase']);}['maybeNext'](){let _0x2f2519=this['stack']['parent'];null!=_0x2f2519&&(this['index']=this['stack']['bufferBase']-_0x2f2519['bufferBase'],this['stack']=_0x2f2519,this['buffer']=_0x2f2519['buffer']);}get['id'](){return this['buffer'][this['index']-0x4];}get['start'](){return this['buffer'][this['index']-0x3];}get['end'](){return this['buffer'][this['index']-0x2];}get['size'](){return this['buffer'][this['index']-0x1];}['next'](){this['index']-=0x4,this['pos']-=0x4,0x0==this['index']&&this['maybeNext']();}['fork'](){return new StackBufferCursor(this['stack'],this['pos'],this['index']);}}function decodeArray(_0x3f614e,_0x3cb6f2=Uint16Array){if('string'!=typeof _0x3f614e)return _0x3f614e;let _0x294140=null;for(let _0x34bd67=0x0,_0x5e9670=0x0;_0x34bd67<_0x3f614e['length'];){let _0x2e045f=0x0;for(;;){let _0x5aba37=_0x3f614e['charCodeAt'](_0x34bd67++),_0x73ae3c=!0x1;if(0x7e==_0x5aba37){_0x2e045f=0xffff;break;}_0x5aba37>=0x5c&&_0x5aba37--,_0x5aba37>=0x22&&_0x5aba37--;let _0x19d8f4=_0x5aba37-0x20;if(_0x19d8f4>=0x2e&&(_0x19d8f4-=0x2e,_0x73ae3c=!0x0),_0x2e045f+=_0x19d8f4,_0x73ae3c)break;_0x2e045f*=0x2e;}_0x294140?_0x294140[_0x5e9670++]=_0x2e045f:_0x294140=new _0x3cb6f2(_0x2e045f);}return _0x294140;}class CachedToken{constructor(){this['start']=-0x1,this['value']=-0x1,this['end']=-0x1,this['extended']=-0x1,this['lookAhead']=0x0,this['mask']=0x0,this['context']=0x0;}}const nullToken=new CachedToken();class InputStream{constructor(_0x512ada,_0x20804b){this['input']=_0x512ada,this['ranges']=_0x20804b,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x20804b[0x0]['from'],this['range']=_0x20804b[0x0],this['end']=_0x20804b[_0x20804b['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x30a849,_0x2a1d66){let _0x437212=this['range'],_0x27d30a=this['rangeIndex'],_0x2808cd=this['pos']+_0x30a849;for(;_0x2808cd<_0x437212['from'];){if(!_0x27d30a)return null;let _0x3bfc20=this['ranges'][--_0x27d30a];_0x2808cd-=_0x437212['from']-_0x3bfc20['to'],_0x437212=_0x3bfc20;}for(;_0x2a1d66<0x0?_0x2808cd>_0x437212['to']:_0x2808cd>=_0x437212['to'];){if(_0x27d30a==this['ranges']['length']-0x1)return null;let _0x2c9d1f=this['ranges'][++_0x27d30a];_0x2808cd+=_0x2c9d1f['from']-_0x437212['to'],_0x437212=_0x2c9d1f;}return _0x2808cd;}['clipPos'](_0x1c4746){if(_0x1c4746>=this['range']['from']&&_0x1c4746<this['range']['to'])return _0x1c4746;for(let _0x2b3466 of this['ranges'])if(_0x2b3466['to']>_0x1c4746)return Math['max'](_0x1c4746,_0x2b3466['from']);return this['end'];}['peek'](_0x32d25a){let _0x3598ea,_0x4a65d0,_0x119d59=this['chunkOff']+_0x32d25a;if(_0x119d59>=0x0&&_0x119d59<this['chunk']['length'])_0x3598ea=this['pos']+_0x32d25a,_0x4a65d0=this['chunk']['charCodeAt'](_0x119d59);else{let _0xf4ab24=this['resolveOffset'](_0x32d25a,0x1);if(null==_0xf4ab24)return-0x1;if(_0x3598ea=_0xf4ab24,_0x3598ea>=this['chunk2Pos']&&_0x3598ea<this['chunk2Pos']+this['chunk2']['length'])_0x4a65d0=this['chunk2']['charCodeAt'](_0x3598ea-this['chunk2Pos']);else{let _0x11f1c9=this['rangeIndex'],_0x1b7eb5=this['range'];for(;_0x1b7eb5['to']<=_0x3598ea;)_0x1b7eb5=this['ranges'][++_0x11f1c9];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x3598ea),_0x3598ea+this['chunk2']['length']>_0x1b7eb5['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x1b7eb5['to']-_0x3598ea)),_0x4a65d0=this['chunk2']['charCodeAt'](0x0);}}return _0x3598ea>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x3598ea+0x1),_0x4a65d0;}['acceptToken'](_0x3ce741,_0x346a77=0x0){let _0x3c550d=_0x346a77?this['resolveOffset'](_0x346a77,-0x1):this['pos'];if(null==_0x3c550d||_0x3c550d<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x3ce741,this['token']['end']=_0x3c550d;}['acceptTokenTo'](_0x3385f8,_0x3e404d){this['token']['value']=_0x3385f8,this['token']['end']=_0x3e404d;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x2ec453,chunkPos:_0x2a46de}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x2ec453,this['chunk2Pos']=_0x2a46de,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x3621be=this['input']['chunk'](this['pos']),_0x170ab9=this['pos']+_0x3621be['length'];this['chunk']=_0x170ab9>this['range']['to']?_0x3621be['slice'](0x0,this['range']['to']-this['pos']):_0x3621be,this['chunkPos']=this['pos'],this['chunkOff']=0x0;}}['readNext'](){return this['chunkOff']>=this['chunk']['length']&&(this['getChunk'](),this['chunkOff']==this['chunk']['length'])?this['next']=-0x1:this['next']=this['chunk']['charCodeAt'](this['chunkOff']);}['advance'](_0x218800=0x1){for(this['chunkOff']+=_0x218800;this['pos']+_0x218800>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x218800-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x218800,this['pos']>=this['token']['lookAhead']&&(this['token']['lookAhead']=this['pos']+0x1),this['readNext']();}['setDone'](){return this['pos']=this['chunkPos']=this['end'],this['range']=this['ranges'][this['rangeIndex']=this['ranges']['length']-0x1],this['chunk']='',this['next']=-0x1;}['reset'](_0x4ec96d,_0x2872ca){if(_0x2872ca?(this['token']=_0x2872ca,_0x2872ca['start']=_0x4ec96d,_0x2872ca['lookAhead']=_0x4ec96d+0x1,_0x2872ca['value']=_0x2872ca['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x4ec96d){if(this['pos']=_0x4ec96d,_0x4ec96d==this['end'])return this['setDone'](),this;for(;_0x4ec96d<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x4ec96d>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x4ec96d>=this['chunkPos']&&_0x4ec96d<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x4ec96d-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x5b6474,_0x48a4ec){if(_0x5b6474>=this['chunkPos']&&_0x48a4ec<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x5b6474-this['chunkPos'],_0x48a4ec-this['chunkPos']);if(_0x5b6474>=this['chunk2Pos']&&_0x48a4ec<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x5b6474-this['chunk2Pos'],_0x48a4ec-this['chunk2Pos']);if(_0x5b6474>=this['range']['from']&&_0x48a4ec<=this['range']['to'])return this['input']['read'](_0x5b6474,_0x48a4ec);let _0x4aff40='';for(let _0x1901a7 of this['ranges']){if(_0x1901a7['from']>=_0x48a4ec)break;_0x1901a7['to']>_0x5b6474&&(_0x4aff40+=this['input']['read'](Math['max'](_0x1901a7['from'],_0x5b6474),Math['min'](_0x1901a7['to'],_0x48a4ec)));}return _0x4aff40;}}class TokenGroup{constructor(_0x203f27,_0x46865f){this['data']=_0x203f27,this['id']=_0x46865f;}['token'](_0x202c5f,_0xeda848){let {parser:_0x171763}=_0xeda848['p'];readToken(this['data'],_0x202c5f,_0xeda848,this['id'],_0x171763['data'],_0x171763['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0xd9cb2e,_0x4767d4,_0x58d480){this['precTable']=_0x4767d4,this['elseToken']=_0x58d480,this['data']='string'==typeof _0xd9cb2e?decodeArray(_0xd9cb2e):_0xd9cb2e;}['token'](_0x24c364,_0x57e76b){let _0x50852a=_0x24c364['pos'],_0x2f8398=0x0;for(;;){let _0x5d48d4=_0x24c364['next']<0x0,_0x137a89=_0x24c364['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x24c364,_0x57e76b,0x0,this['data'],this['precTable']),_0x24c364['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x5d48d4||_0x2f8398++,null==_0x137a89)break;_0x24c364['reset'](_0x137a89,_0x24c364['token']);}_0x2f8398&&(_0x24c364['reset'](_0x50852a,_0x24c364['token']),_0x24c364['acceptToken'](this['elseToken'],_0x2f8398));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x3cfb41,_0x55072b={}){this['token']=_0x3cfb41,this['contextual']=!!_0x55072b['contextual'],this['fallback']=!!_0x55072b['fallback'],this['extend']=!!_0x55072b['extend'];}}function readToken(_0x28461e,_0x7619a8,_0x39b809,_0x5b9791,_0x1b1d33,_0x29547c){let _0x32370d=0x0,_0x52f985=0x1<<_0x5b9791,{dialect:_0x80b9ee}=_0x39b809['p']['parser'];t:for(;0x0!=(_0x52f985&_0x28461e[_0x32370d]);){let _0x45e946=_0x28461e[_0x32370d+0x1];for(let _0x1cb611=_0x32370d+0x3;_0x1cb611<_0x45e946;_0x1cb611+=0x2)if((_0x28461e[_0x1cb611+0x1]&_0x52f985)>0x0){let _0xa34d70=_0x28461e[_0x1cb611];if(_0x80b9ee['allows'](_0xa34d70)&&(-0x1==_0x7619a8['token']['value']||_0x7619a8['token']['value']==_0xa34d70||overrides(_0xa34d70,_0x7619a8['token']['value'],_0x1b1d33,_0x29547c))){_0x7619a8['acceptToken'](_0xa34d70);break;}}let _0x1d4ecd=_0x7619a8['next'],_0x4b140f=0x0,_0x16ba37=_0x28461e[_0x32370d+0x2];if(!(_0x7619a8['next']<0x0&&_0x16ba37>_0x4b140f&&0xffff==_0x28461e[_0x45e946+0x3*_0x16ba37-0x3])){for(;_0x4b140f<_0x16ba37;){let _0x5a937d=_0x4b140f+_0x16ba37>>0x1,_0x4fdc0a=_0x45e946+_0x5a937d+(_0x5a937d<<0x1),_0x49db2a=_0x28461e[_0x4fdc0a],_0x210813=_0x28461e[_0x4fdc0a+0x1]||0x10000;if(_0x1d4ecd<_0x49db2a)_0x16ba37=_0x5a937d;else{if(!(_0x1d4ecd>=_0x210813)){_0x32370d=_0x28461e[_0x4fdc0a+0x2],_0x7619a8['advance']();continue t;}_0x4b140f=_0x5a937d+0x1;}}break;}_0x32370d=_0x28461e[_0x45e946+0x3*_0x16ba37-0x1];}}function findOffset(_0x435b5c,_0x3183f3,_0x4d762d){for(let _0x69aeaf,_0x2caa8b=_0x3183f3;0xffff!=(_0x69aeaf=_0x435b5c[_0x2caa8b]);_0x2caa8b++)if(_0x69aeaf==_0x4d762d)return _0x2caa8b-_0x3183f3;return-0x1;}function overrides(_0x3693d2,_0x1c7696,_0x4bdb92,_0x383282){let _0x17dcbe=findOffset(_0x4bdb92,_0x383282,_0x1c7696);return _0x17dcbe<0x0||findOffset(_0x4bdb92,_0x383282,_0x3693d2)<_0x17dcbe;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0xa0044,_0x46a5ba,_0x100ab7){let _0xd5f9c1=_0xa0044['cursor'](IterMode['IncludeAnonymous']);for(_0xd5f9c1['moveTo'](_0x46a5ba);;)if(!(_0x100ab7<0x0?_0xd5f9c1['childBefore'](_0x46a5ba):_0xd5f9c1['childAfter'](_0x46a5ba)))for(;;){if((_0x100ab7<0x0?_0xd5f9c1['to']<_0x46a5ba:_0xd5f9c1['from']>_0x46a5ba)&&!_0xd5f9c1['type']['isError'])return _0x100ab7<0x0?Math['max'](0x0,Math['min'](_0xd5f9c1['to']-0x1,_0x46a5ba-0x19)):Math['min'](_0xa0044['length'],Math['max'](_0xd5f9c1['from']+0x1,_0x46a5ba+0x19));if(_0x100ab7<0x0?_0xd5f9c1['prevSibling']():_0xd5f9c1['nextSibling']())break;if(!_0xd5f9c1['parent']())return _0x100ab7<0x0?0x0:_0xa0044['length'];}}let FragmentCursor$1=class{constructor(_0x1b96a6,_0x1df8ef){this['fragments']=_0x1b96a6,this['nodeSet']=_0x1df8ef,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0x138d53=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x138d53){for(this['safeFrom']=_0x138d53['openStart']?cutAt(_0x138d53['tree'],_0x138d53['from']+_0x138d53['offset'],0x1)-_0x138d53['offset']:_0x138d53['from'],this['safeTo']=_0x138d53['openEnd']?cutAt(_0x138d53['tree'],_0x138d53['to']+_0x138d53['offset'],-0x1)-_0x138d53['offset']:_0x138d53['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x138d53['tree']),this['start']['push'](-_0x138d53['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0xcbc1d9){if(_0xcbc1d9<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0xcbc1d9;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x35d7f9=this['trees']['length']-0x1;if(_0x35d7f9<0x0)return this['nextFragment'](),null;let _0x152b5e=this['trees'][_0x35d7f9],_0x49fc9f=this['index'][_0x35d7f9];if(_0x49fc9f==_0x152b5e['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x378067=_0x152b5e['children'][_0x49fc9f],_0x590859=this['start'][_0x35d7f9]+_0x152b5e['positions'][_0x49fc9f];if(_0x590859>_0xcbc1d9)return this['nextStart']=_0x590859,null;if(_0x378067 instanceof Tree){if(_0x590859==_0xcbc1d9){if(_0x590859<this['safeFrom'])return null;let _0x17941a=_0x590859+_0x378067['length'];if(_0x17941a<=this['safeTo']){let _0x5ef51b=_0x378067['prop'](NodeProp['lookAhead']);if(!_0x5ef51b||_0x17941a+_0x5ef51b<this['fragment']['to'])return _0x378067;}}this['index'][_0x35d7f9]++,_0x590859+_0x378067['length']>=Math['max'](this['safeFrom'],_0xcbc1d9)&&(this['trees']['push'](_0x378067),this['start']['push'](_0x590859),this['index']['push'](0x0));}else this['index'][_0x35d7f9]++,this['nextStart']=_0x590859+_0x378067['length'];}}};class TokenCache{constructor(_0x361087,_0x1b3052){this['stream']=_0x1b3052,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x361087['tokenizers']['map'](_0x4639d4=>new CachedToken());}['getActions'](_0x2e9487){let _0x501d45=0x0,_0x106f38=null,{parser:_0x25165b}=_0x2e9487['p'],{tokenizers:_0x365b81}=_0x25165b,_0x418377=_0x25165b['stateSlot'](_0x2e9487['state'],0x3),_0x56f8ae=_0x2e9487['curContext']?_0x2e9487['curContext']['hash']:0x0,_0x17e6a9=0x0;for(let _0x1af9c6=0x0;_0x1af9c6<_0x365b81['length'];_0x1af9c6++){if(!(0x1<<_0x1af9c6&_0x418377))continue;let _0x3c00e3=_0x365b81[_0x1af9c6],_0x5a39ab=this['tokens'][_0x1af9c6];if((!_0x106f38||_0x3c00e3['fallback'])&&((_0x3c00e3['contextual']||_0x5a39ab['start']!=_0x2e9487['pos']||_0x5a39ab['mask']!=_0x418377||_0x5a39ab['context']!=_0x56f8ae)&&(this['updateCachedToken'](_0x5a39ab,_0x3c00e3,_0x2e9487),_0x5a39ab['mask']=_0x418377,_0x5a39ab['context']=_0x56f8ae),_0x5a39ab['lookAhead']>_0x5a39ab['end']+0x19&&(_0x17e6a9=Math['max'](_0x5a39ab['lookAhead'],_0x17e6a9)),0x0!=_0x5a39ab['value'])){let _0x125b7b=_0x501d45;if(_0x5a39ab['extended']>-0x1&&(_0x501d45=this['addActions'](_0x2e9487,_0x5a39ab['extended'],_0x5a39ab['end'],_0x501d45)),_0x501d45=this['addActions'](_0x2e9487,_0x5a39ab['value'],_0x5a39ab['end'],_0x501d45),!_0x3c00e3['extend']&&(_0x106f38=_0x5a39ab,_0x501d45>_0x125b7b))break;}}for(;this['actions']['length']>_0x501d45;)this['actions']['pop']();return _0x17e6a9&&_0x2e9487['setLookAhead'](_0x17e6a9),_0x106f38||_0x2e9487['pos']!=this['stream']['end']||(_0x106f38=new CachedToken(),_0x106f38['value']=_0x2e9487['p']['parser']['eofTerm'],_0x106f38['start']=_0x106f38['end']=_0x2e9487['pos'],_0x501d45=this['addActions'](_0x2e9487,_0x106f38['value'],_0x106f38['end'],_0x501d45)),this['mainToken']=_0x106f38,this['actions'];}['getMainToken'](_0x204738){if(this['mainToken'])return this['mainToken'];let _0x18105b=new CachedToken(),{pos:_0xb69d86,p:_0xb17a6}=_0x204738;return _0x18105b['start']=_0xb69d86,_0x18105b['end']=Math['min'](_0xb69d86+0x1,_0xb17a6['stream']['end']),_0x18105b['value']=_0xb69d86==_0xb17a6['stream']['end']?_0xb17a6['parser']['eofTerm']:0x0,_0x18105b;}['updateCachedToken'](_0x18116c,_0x14f068,_0x354a3d){let _0x23d613=this['stream']['clipPos'](_0x354a3d['pos']);if(_0x14f068['token'](this['stream']['reset'](_0x23d613,_0x18116c),_0x354a3d),_0x18116c['value']>-0x1){let {parser:_0x63d65c}=_0x354a3d['p'];for(let _0x44ca3d=0x0;_0x44ca3d<_0x63d65c['specialized']['length'];_0x44ca3d++)if(_0x63d65c['specialized'][_0x44ca3d]==_0x18116c['value']){let _0xbcf383=_0x63d65c['specializers'][_0x44ca3d](this['stream']['read'](_0x18116c['start'],_0x18116c['end']),_0x354a3d);if(_0xbcf383>=0x0&&_0x354a3d['p']['parser']['dialect']['allows'](_0xbcf383>>0x1)){0x1&_0xbcf383?_0x18116c['extended']=_0xbcf383>>0x1:_0x18116c['value']=_0xbcf383>>0x1;break;}}}else _0x18116c['value']=0x0,_0x18116c['end']=this['stream']['clipPos'](_0x23d613+0x1);}['putAction'](_0x50557a,_0x1d8eba,_0x4c0090,_0x2c0318){for(let _0x3c4386=0x0;_0x3c4386<_0x2c0318;_0x3c4386+=0x3)if(this['actions'][_0x3c4386]==_0x50557a)return _0x2c0318;return this['actions'][_0x2c0318++]=_0x50557a,this['actions'][_0x2c0318++]=_0x1d8eba,this['actions'][_0x2c0318++]=_0x4c0090,_0x2c0318;}['addActions'](_0x9985c6,_0x129080,_0x548334,_0x2c4f00){let {state:_0x1f99ad}=_0x9985c6,{parser:_0x1970b3}=_0x9985c6['p'],{data:_0x24a364}=_0x1970b3;for(let _0x83ee30=0x0;_0x83ee30<0x2;_0x83ee30++)for(let _0x1996f1=_0x1970b3['stateSlot'](_0x1f99ad,_0x83ee30?0x2:0x1);;_0x1996f1+=0x3){if(0xffff==_0x24a364[_0x1996f1]){if(0x1!=_0x24a364[_0x1996f1+0x1]){0x0==_0x2c4f00&&0x2==_0x24a364[_0x1996f1+0x1]&&(_0x2c4f00=this['putAction'](pair(_0x24a364,_0x1996f1+0x2),_0x129080,_0x548334,_0x2c4f00));break;}_0x1996f1=pair(_0x24a364,_0x1996f1+0x2);}_0x24a364[_0x1996f1]==_0x129080&&(_0x2c4f00=this['putAction'](pair(_0x24a364,_0x1996f1+0x1),_0x129080,_0x548334,_0x2c4f00));}return _0x2c4f00;}}class Parse{constructor(_0x18485d,_0x5ea163,_0x5988e3,_0x309697){this['parser']=_0x18485d,this['input']=_0x5ea163,this['ranges']=_0x309697,this['recovering']=0x0,this['nextStackID']=0x2654,this['minStackPos']=0x0,this['reused']=[],this['stoppedAt']=null,this['lastBigReductionStart']=-0x1,this['lastBigReductionSize']=0x0,this['bigReductionCount']=0x0,this['stream']=new InputStream(_0x5ea163,_0x309697),this['tokens']=new TokenCache(_0x18485d,this['stream']),this['topTerm']=_0x18485d['top'][0x1];let {from:_0x1eef38}=_0x309697[0x0];this['stacks']=[Stack['start'](this,_0x18485d['top'][0x0],_0x1eef38)],this['fragments']=_0x5988e3['length']&&this['stream']['end']-_0x1eef38>0x4*_0x18485d['bufferLength']?new FragmentCursor$1(_0x5988e3,_0x18485d['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0x1493e2,_0x230a6f,_0x4816a0=this['stacks'],_0x132b10=this['minStackPos'],_0x211d79=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x4816a0['length']){let [_0x1d5de1]=_0x4816a0;for(;_0x1d5de1['forceReduce']()&&_0x1d5de1['stack']['length']&&_0x1d5de1['stack'][_0x1d5de1['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x3486b8=0x0;_0x3486b8<_0x4816a0['length'];_0x3486b8++){let _0x587752=_0x4816a0[_0x3486b8];for(;;){if(this['tokens']['mainToken']=null,_0x587752['pos']>_0x132b10)_0x211d79['push'](_0x587752);else{if(this['advanceStack'](_0x587752,_0x211d79,_0x4816a0))continue;{_0x1493e2||(_0x1493e2=[],_0x230a6f=[]),_0x1493e2['push'](_0x587752);let _0x216108=this['tokens']['getMainToken'](_0x587752);_0x230a6f['push'](_0x216108['value'],_0x216108['end']);}}break;}}if(!_0x211d79['length']){let _0xd67b7c=_0x1493e2&&findFinished(_0x1493e2);if(_0xd67b7c)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0xd67b7c)),this['stackToTree'](_0xd67b7c);if(this['parser']['strict'])throw verbose&&_0x1493e2&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x132b10);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0x1493e2){let _0xc6860b=null!=this['stoppedAt']&&_0x1493e2[0x0]['pos']>this['stoppedAt']?_0x1493e2[0x0]:this['runRecovery'](_0x1493e2,_0x230a6f,_0x211d79);if(_0xc6860b)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0xc6860b)),this['stackToTree'](_0xc6860b['forceAll']());}if(this['recovering']){let _0x492158=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x211d79['length']>_0x492158){for(_0x211d79['sort']((_0x40444d,_0x53ce6c)=>_0x53ce6c['score']-_0x40444d['score']);_0x211d79['length']>_0x492158;)_0x211d79['pop']();}_0x211d79['some'](_0x47f7a0=>_0x47f7a0['reducePos']>_0x132b10)&&this['recovering']--;}else{if(_0x211d79['length']>0x1){t:for(let _0x22c95a=0x0;_0x22c95a<_0x211d79['length']-0x1;_0x22c95a++){let _0x3aa92b=_0x211d79[_0x22c95a];for(let _0x527543=_0x22c95a+0x1;_0x527543<_0x211d79['length'];_0x527543++){let _0x45fe20=_0x211d79[_0x527543];if(_0x3aa92b['sameState'](_0x45fe20)||_0x3aa92b['buffer']['length']>0x1f4&&_0x45fe20['buffer']['length']>0x1f4){if(!((_0x3aa92b['score']-_0x45fe20['score']||_0x3aa92b['buffer']['length']-_0x45fe20['buffer']['length'])>0x0)){_0x211d79['splice'](_0x22c95a--,0x1);continue t;}_0x211d79['splice'](_0x527543--,0x1);}}}_0x211d79['length']>0xc&&_0x211d79['splice'](0xc,_0x211d79['length']-0xc);}}this['minStackPos']=_0x211d79[0x0]['pos'];for(let _0x58d11c=0x1;_0x58d11c<_0x211d79['length'];_0x58d11c++)_0x211d79[_0x58d11c]['pos']<this['minStackPos']&&(this['minStackPos']=_0x211d79[_0x58d11c]['pos']);return null;}['stopAt'](_0x49fbfc){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x49fbfc)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x49fbfc;}['advanceStack'](_0x4a2000,_0x45ee6f,_0xa042d4){let _0x4ea940=_0x4a2000['pos'],{parser:_0x4177ea}=this,_0x273f0f=verbose?this['stackID'](_0x4a2000)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x4ea940>this['stoppedAt'])return _0x4a2000['forceReduce']()?_0x4a2000:null;if(this['fragments']){let _0x326b24=_0x4a2000['curContext']&&_0x4a2000['curContext']['tracker']['strict'],_0x426bc5=_0x326b24?_0x4a2000['curContext']['hash']:0x0;for(let _0x45f6cd=this['fragments']['nodeAt'](_0x4ea940);_0x45f6cd;){let _0x1fd6ac=this['parser']['nodeSet']['types'][_0x45f6cd['type']['id']]==_0x45f6cd['type']?_0x4177ea['getGoto'](_0x4a2000['state'],_0x45f6cd['type']['id']):-0x1;if(_0x1fd6ac>-0x1&&_0x45f6cd['length']&&(!_0x326b24||(_0x45f6cd['prop'](NodeProp['contextHash'])||0x0)==_0x426bc5))return _0x4a2000['useNode'](_0x45f6cd,_0x1fd6ac),verbose&&console['log'](_0x273f0f+this['stackID'](_0x4a2000)+('\x20(via\x20reuse\x20of\x20'+_0x4177ea['getName'](_0x45f6cd['type']['id'])+')')),!0x0;if(!(_0x45f6cd instanceof Tree)||0x0==_0x45f6cd['children']['length']||_0x45f6cd['positions'][0x0]>0x0)break;let _0xa7ce81=_0x45f6cd['children'][0x0];if(!(_0xa7ce81 instanceof Tree&&0x0==_0x45f6cd['positions'][0x0]))break;_0x45f6cd=_0xa7ce81;}}let _0x5b6b50=_0x4177ea['stateSlot'](_0x4a2000['state'],0x4);if(_0x5b6b50>0x0)return _0x4a2000['reduce'](_0x5b6b50),verbose&&console['log'](_0x273f0f+this['stackID'](_0x4a2000)+('\x20(via\x20always-reduce\x20'+_0x4177ea['getName'](0xffff&_0x5b6b50)+')')),!0x0;if(_0x4a2000['stack']['length']>=0x20d0){for(;_0x4a2000['stack']['length']>0x1770&&_0x4a2000['forceReduce'](););}let _0x25635a=this['tokens']['getActions'](_0x4a2000);for(let _0x25e499=0x0;_0x25e499<_0x25635a['length'];){let _0x10abba=_0x25635a[_0x25e499++],_0x43af92=_0x25635a[_0x25e499++],_0x3ab5ed=_0x25635a[_0x25e499++],_0x1840ce=_0x25e499==_0x25635a['length']||!_0xa042d4,_0x30f961=_0x1840ce?_0x4a2000:_0x4a2000['split'](),_0x3d2cbc=this['tokens']['mainToken'];if(_0x30f961['apply'](_0x10abba,_0x43af92,_0x3d2cbc?_0x3d2cbc['start']:_0x30f961['pos'],_0x3ab5ed),verbose&&console['log'](_0x273f0f+this['stackID'](_0x30f961)+('\x20(via\x20'+(0x10000&_0x10abba?'reduce\x20of\x20'+_0x4177ea['getName'](0xffff&_0x10abba):'shift')+'\x20for\x20'+_0x4177ea['getName'](_0x43af92)+'\x20@\x20'+_0x4ea940+(_0x30f961==_0x4a2000?'':',\x20split')+')')),_0x1840ce)return!0x0;_0x30f961['pos']>_0x4ea940?_0x45ee6f['push'](_0x30f961):_0xa042d4['push'](_0x30f961);}return!0x1;}['advanceFully'](_0x5701c0,_0xeb9a00){let _0x4dec95=_0x5701c0['pos'];for(;;){if(!this['advanceStack'](_0x5701c0,null,null))return!0x1;if(_0x5701c0['pos']>_0x4dec95)return pushStackDedup(_0x5701c0,_0xeb9a00),!0x0;}}['runRecovery'](_0x253563,_0x179ae0,_0x3ecd6a){let _0xde075b=null,_0x190412=!0x1;for(let _0x578c0b=0x0;_0x578c0b<_0x253563['length'];_0x578c0b++){let _0x532946=_0x253563[_0x578c0b],_0x7887d8=_0x179ae0[_0x578c0b<<0x1],_0x2476b8=_0x179ae0[0x1+(_0x578c0b<<0x1)],_0xbb38fd=verbose?this['stackID'](_0x532946)+'\x20->\x20':'';if(_0x532946['deadEnd']){if(_0x190412)continue;if(_0x190412=!0x0,_0x532946['restart'](),verbose&&console['log'](_0xbb38fd+this['stackID'](_0x532946)+'\x20(restarted)'),this['advanceFully'](_0x532946,_0x3ecd6a))continue;}let _0x1c7bc9=_0x532946['split'](),_0x3db491=_0xbb38fd;for(let _0x33e791=0x0;_0x33e791<0xa&&_0x1c7bc9['forceReduce']();_0x33e791++){if(verbose&&console['log'](_0x3db491+this['stackID'](_0x1c7bc9)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x1c7bc9,_0x3ecd6a))break;verbose&&(_0x3db491=this['stackID'](_0x1c7bc9)+'\x20->\x20');}for(let _0x353d0c of _0x532946['recoverByInsert'](_0x7887d8))verbose&&console['log'](_0xbb38fd+this['stackID'](_0x353d0c)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x353d0c,_0x3ecd6a);this['stream']['end']>_0x532946['pos']?(_0x2476b8==_0x532946['pos']&&(_0x2476b8++,_0x7887d8=0x0),_0x532946['recoverByDelete'](_0x7887d8,_0x2476b8),verbose&&console['log'](_0xbb38fd+this['stackID'](_0x532946)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x7887d8)+')')),pushStackDedup(_0x532946,_0x3ecd6a)):(!_0xde075b||_0xde075b['score']<_0x532946['score'])&&(_0xde075b=_0x532946);}return _0xde075b;}['stackToTree'](_0x33a4b8){return _0x33a4b8['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x33a4b8),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x33a4b8['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0x57e837){let _0xab5b6f=(stackIDs||(stackIDs=new WeakMap()))['get'](_0x57e837);return _0xab5b6f||stackIDs['set'](_0x57e837,_0xab5b6f=String['fromCodePoint'](this['nextStackID']++)),_0xab5b6f+_0x57e837;}}function pushStackDedup(_0x52d132,_0x38af9c){for(let _0xfae73f=0x0;_0xfae73f<_0x38af9c['length'];_0xfae73f++){let _0xd2bfec=_0x38af9c[_0xfae73f];if(_0xd2bfec['pos']==_0x52d132['pos']&&_0xd2bfec['sameState'](_0x52d132))return void(_0x38af9c[_0xfae73f]['score']<_0x52d132['score']&&(_0x38af9c[_0xfae73f]=_0x52d132));}_0x38af9c['push'](_0x52d132);}class Dialect{constructor(_0x2cdfd8,_0x55998b,_0x31be75){this['source']=_0x2cdfd8,this['flags']=_0x55998b,this['disabled']=_0x31be75;}['allows'](_0x158fa9){return!this['disabled']||0x0==this['disabled'][_0x158fa9];}}const id$1=_0x393f5b=>_0x393f5b;class ContextTracker{constructor(_0x37323f){this['start']=_0x37323f['start'],this['shift']=_0x37323f['shift']||id$1,this['reduce']=_0x37323f['reduce']||id$1,this['reuse']=_0x37323f['reuse']||id$1,this['hash']=_0x37323f['hash']||(()=>0x0),this['strict']=!0x1!==_0x37323f['strict'];}}class LRParser extends Parser{constructor(_0x34236f){if(super(),this['wrappers']=[],0xe!=_0x34236f['version'])throw new RangeError('Parser\x20version\x20('+_0x34236f['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0xe4a332=_0x34236f['nodeNames']['split']('\x20');this['minRepeatTerm']=_0xe4a332['length'];for(let _0x50ad59=0x0;_0x50ad59<_0x34236f['repeatNodeCount'];_0x50ad59++)_0xe4a332['push']('');let _0x5434c1=Object['keys'](_0x34236f['topRules'])['map'](_0x34dd8f=>_0x34236f['topRules'][_0x34dd8f][0x1]),_0x4d352f=[];for(let _0x24a6ef=0x0;_0x24a6ef<_0xe4a332['length'];_0x24a6ef++)_0x4d352f['push']([]);function _0x47ea08(_0x27e8d6,_0xe9fc4d,_0x1d5376){_0x4d352f[_0x27e8d6]['push']([_0xe9fc4d,_0xe9fc4d['deserialize'](String(_0x1d5376))]);}if(_0x34236f['nodeProps'])for(let _0x364be5 of _0x34236f['nodeProps']){let _0x3b45c4=_0x364be5[0x0];'string'==typeof _0x3b45c4&&(_0x3b45c4=NodeProp[_0x3b45c4]);for(let _0x2dc3e9=0x1;_0x2dc3e9<_0x364be5['length'];){let _0x3c9243=_0x364be5[_0x2dc3e9++];if(_0x3c9243>=0x0)_0x47ea08(_0x3c9243,_0x3b45c4,_0x364be5[_0x2dc3e9++]);else{let _0x57f65d=_0x364be5[_0x2dc3e9+-_0x3c9243];for(let _0x13ac18=-_0x3c9243;_0x13ac18>0x0;_0x13ac18--)_0x47ea08(_0x364be5[_0x2dc3e9++],_0x3b45c4,_0x57f65d);_0x2dc3e9++;}}}this['nodeSet']=new NodeSet(_0xe4a332['map']((_0x373895,_0x28a17a)=>NodeType['define']({'name':_0x28a17a>=this['minRepeatTerm']?void 0x0:_0x373895,'id':_0x28a17a,'props':_0x4d352f[_0x28a17a],'top':_0x5434c1['indexOf'](_0x28a17a)>-0x1,'error':0x0==_0x28a17a,'skipped':_0x34236f['skippedNodes']&&_0x34236f['skippedNodes']['indexOf'](_0x28a17a)>-0x1}))),_0x34236f['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x34236f['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0x501a5b=decodeArray(_0x34236f['tokenData']);this['context']=_0x34236f['context'],this['specializerSpecs']=_0x34236f['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0xbe3631=0x0;_0xbe3631<this['specializerSpecs']['length'];_0xbe3631++)this['specialized'][_0xbe3631]=this['specializerSpecs'][_0xbe3631]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x34236f['states'],Uint32Array),this['data']=decodeArray(_0x34236f['stateData']),this['goto']=decodeArray(_0x34236f['goto']),this['maxTerm']=_0x34236f['maxTerm'],this['tokenizers']=_0x34236f['tokenizers']['map'](_0x1a7125=>'number'==typeof _0x1a7125?new TokenGroup(_0x501a5b,_0x1a7125):_0x1a7125),this['topRules']=_0x34236f['topRules'],this['dialects']=_0x34236f['dialects']||{},this['dynamicPrecedences']=_0x34236f['dynamicPrecedences']||null,this['tokenPrecTable']=_0x34236f['tokenPrec'],this['termNames']=_0x34236f['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x6b0cd2,_0x434c01,_0x184b79){let _0x20393b=new Parse(this,_0x6b0cd2,_0x434c01,_0x184b79);for(let _0x3d581e of this['wrappers'])_0x20393b=_0x3d581e(_0x20393b,_0x6b0cd2,_0x434c01,_0x184b79);return _0x20393b;}['getGoto'](_0x596b5d,_0x1ef4dc,_0x1a0131=!0x1){let _0x48b576=this['goto'];if(_0x1ef4dc>=_0x48b576[0x0])return-0x1;for(let _0x563b13=_0x48b576[_0x1ef4dc+0x1];;){let _0x212cb7=_0x48b576[_0x563b13++],_0x22f7a7=0x1&_0x212cb7,_0xe33325=_0x48b576[_0x563b13++];if(_0x22f7a7&&_0x1a0131)return _0xe33325;for(let _0xb83fcb=_0x563b13+(_0x212cb7>>0x1);_0x563b13<_0xb83fcb;_0x563b13++)if(_0x48b576[_0x563b13]==_0x596b5d)return _0xe33325;if(_0x22f7a7)return-0x1;}}['hasAction'](_0x39fe56,_0x370fbb){let _0x28755f=this['data'];for(let _0x5b3e11=0x0;_0x5b3e11<0x2;_0x5b3e11++)for(let _0x3b58d7,_0x49f154=this['stateSlot'](_0x39fe56,_0x5b3e11?0x2:0x1);;_0x49f154+=0x3){if(0xffff==(_0x3b58d7=_0x28755f[_0x49f154])){if(0x1!=_0x28755f[_0x49f154+0x1]){if(0x2==_0x28755f[_0x49f154+0x1])return pair(_0x28755f,_0x49f154+0x2);break;}_0x3b58d7=_0x28755f[_0x49f154=pair(_0x28755f,_0x49f154+0x2)];}if(_0x3b58d7==_0x370fbb||0x0==_0x3b58d7)return pair(_0x28755f,_0x49f154+0x1);}return 0x0;}['stateSlot'](_0x1b1f5a,_0x2ac463){return this['states'][0x6*_0x1b1f5a+_0x2ac463];}['stateFlag'](_0x40e24d,_0x2d9e74){return(this['stateSlot'](_0x40e24d,0x0)&_0x2d9e74)>0x0;}['validAction'](_0x36bca0,_0x1a2c2e){return!!this['allActions'](_0x36bca0,_0x803c06=>_0x803c06==_0x1a2c2e||null);}['allActions'](_0x358f61,_0x4f1a7a){let _0x2fd668=this['stateSlot'](_0x358f61,0x4),_0x7944b0=_0x2fd668?_0x4f1a7a(_0x2fd668):void 0x0;for(let _0x18e0af=this['stateSlot'](_0x358f61,0x1);null==_0x7944b0;_0x18e0af+=0x3){if(0xffff==this['data'][_0x18e0af]){if(0x1!=this['data'][_0x18e0af+0x1])break;_0x18e0af=pair(this['data'],_0x18e0af+0x2);}_0x7944b0=_0x4f1a7a(pair(this['data'],_0x18e0af+0x1));}return _0x7944b0;}['nextStates'](_0x1b5335){let _0x11af34=[];for(let _0x475bbe=this['stateSlot'](_0x1b5335,0x1);;_0x475bbe+=0x3){if(0xffff==this['data'][_0x475bbe]){if(0x1!=this['data'][_0x475bbe+0x1])break;_0x475bbe=pair(this['data'],_0x475bbe+0x2);}if(!(0x1&this['data'][_0x475bbe+0x2])){let _0xb33a53=this['data'][_0x475bbe+0x1];_0x11af34['some']((_0x480510,_0x4d177f)=>0x1&_0x4d177f&&_0x480510==_0xb33a53)||_0x11af34['push'](this['data'][_0x475bbe],_0xb33a53);}}return _0x11af34;}['configure'](_0x30cfe9){let _0x46369a=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x30cfe9['props']&&(_0x46369a['nodeSet']=this['nodeSet']['extend'](..._0x30cfe9['props'])),_0x30cfe9['top']){let _0x30bf36=this['topRules'][_0x30cfe9['top']];if(!_0x30bf36)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x30cfe9['top']);_0x46369a['top']=_0x30bf36;}return _0x30cfe9['tokenizers']&&(_0x46369a['tokenizers']=this['tokenizers']['map'](t=>{let _0x539896=_0x30cfe9['tokenizers']['find'](_0x1a5797=>_0x1a5797['from']==t);return _0x539896?_0x539896['to']:t;})),_0x30cfe9['specializers']&&(_0x46369a['specializers']=this['specializers']['slice'](),_0x46369a['specializerSpecs']=this['specializerSpecs']['map']((_0x603795,_0x64847c)=>{let _0x2ef737=_0x30cfe9['specializers']['find'](_0x45c99c=>_0x45c99c['from']==_0x603795['external']);if(!_0x2ef737)return _0x603795;let _0x55f5e8=Object['assign'](Object['assign']({},_0x603795),{'external':_0x2ef737['to']});return _0x46369a['specializers'][_0x64847c]=getSpecializer(_0x55f5e8),_0x55f5e8;})),_0x30cfe9['contextTracker']&&(_0x46369a['context']=_0x30cfe9['contextTracker']),_0x30cfe9['dialect']&&(_0x46369a['dialect']=this['parseDialect'](_0x30cfe9['dialect'])),null!=_0x30cfe9['strict']&&(_0x46369a['strict']=_0x30cfe9['strict']),_0x30cfe9['wrap']&&(_0x46369a['wrappers']=_0x46369a['wrappers']['concat'](_0x30cfe9['wrap'])),null!=_0x30cfe9['bufferLength']&&(_0x46369a['bufferLength']=_0x30cfe9['bufferLength']),_0x46369a;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x5061bf){return this['termNames']?this['termNames'][_0x5061bf]:String(_0x5061bf<=this['maxNode']&&this['nodeSet']['types'][_0x5061bf]['name']||_0x5061bf);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x33d939){let _0x468dda=this['dynamicPrecedences'];return null==_0x468dda?0x0:_0x468dda[_0x33d939]||0x0;}['parseDialect'](_0xd5cefa){let _0x449b11=Object['keys'](this['dialects']),_0x48ef3c=_0x449b11['map'](()=>!0x1);if(_0xd5cefa)for(let _0x2844a0 of _0xd5cefa['split']('\x20')){let _0x30ecd7=_0x449b11['indexOf'](_0x2844a0);_0x30ecd7>=0x0&&(_0x48ef3c[_0x30ecd7]=!0x0);}let _0x388429=null;for(let _0x1a1f46=0x0;_0x1a1f46<_0x449b11['length'];_0x1a1f46++)if(!_0x48ef3c[_0x1a1f46]){for(let _0x158efb,_0x123706=this['dialects'][_0x449b11[_0x1a1f46]];0xffff!=(_0x158efb=this['data'][_0x123706++]);)(_0x388429||(_0x388429=new Uint8Array(this['maxTerm']+0x1)))[_0x158efb]=0x1;}return new Dialect(_0xd5cefa,_0x48ef3c,_0x388429);}static['deserialize'](_0x1e4685){return new LRParser(_0x1e4685);}}function pair(_0x3bc556,_0xcbba4a){return _0x3bc556[_0xcbba4a]|_0x3bc556[_0xcbba4a+0x1]<<0x10;}function findFinished(_0x46273d){let _0x3a268d=null;for(let _0x289f5d of _0x46273d){let _0x34542b=_0x289f5d['p']['stoppedAt'];(_0x289f5d['pos']==_0x289f5d['p']['stream']['end']||null!=_0x34542b&&_0x289f5d['pos']>_0x34542b)&&_0x289f5d['p']['parser']['stateFlag'](_0x289f5d['state'],0x2)&&(!_0x3a268d||_0x3a268d['score']<_0x289f5d['score'])&&(_0x3a268d=_0x289f5d);}return _0x3a268d;}function getSpecializer(_0x11e415){if(_0x11e415['external']){let _0x24cd3c=_0x11e415['extend']?0x1:0x0;return(_0x4f8f7e,_0x52420a)=>_0x11e415['external'](_0x4f8f7e,_0x52420a)<<0x1|_0x24cd3c;}return _0x11e415['get'];}const scriptText=0x37,StartCloseScriptTag=0x1,styleText=0x38,StartCloseStyleTag=0x2,textareaText=0x39,StartCloseTextareaTag=0x3,EndTag=0x4,SelfClosingEndTag=0x5,StartTag=0x6,StartScriptTag=0x7,StartStyleTag=0x8,StartTextareaTag=0x9,StartSelfClosingTag=0xa,StartCloseTag=0xb,NoMatchStartCloseTag=0xc,MismatchedStartCloseTag=0xd,missingCloseTag=0x3a,IncompleteTag=0xe,IncompleteCloseTag=0xf,commentContent$1=0x3b,Element$2=0x15,TagName=0x17,Attribute=0x18,AttributeName=0x19,AttributeValue=0x1b,UnquotedAttributeValue=0x1c,ScriptText=0x1d,StyleText=0x20,TextareaText=0x23,OpenTag=0x25,CloseTag=0x26,Dialect_noMatch=0x0,Dialect_selfClosing=0x1,selfClosers$1={'area':!0x0,'base':!0x0,'br':!0x0,'col':!0x0,'command':!0x0,'embed':!0x0,'frame':!0x0,'hr':!0x0,'img':!0x0,'input':!0x0,'keygen':!0x0,'link':!0x0,'meta':!0x0,'param':!0x0,'source':!0x0,'track':!0x0,'wbr':!0x0,'menuitem':!0x0},implicitlyClosed={'dd':!0x0,'li':!0x0,'optgroup':!0x0,'option':!0x0,'p':!0x0,'rp':!0x0,'rt':!0x0,'tbody':!0x0,'td':!0x0,'tfoot':!0x0,'th':!0x0,'tr':!0x0},closeOnOpen={'dd':{'dd':!0x0,'dt':!0x0},'dt':{'dd':!0x0,'dt':!0x0},'li':{'li':!0x0},'option':{'option':!0x0,'optgroup':!0x0},'optgroup':{'optgroup':!0x0},'p':{'address':!0x0,'article':!0x0,'aside':!0x0,'blockquote':!0x0,'dir':!0x0,'div':!0x0,'dl':!0x0,'fieldset':!0x0,'footer':!0x0,'form':!0x0,'h1':!0x0,'h2':!0x0,'h3':!0x0,'h4':!0x0,'h5':!0x0,'h6':!0x0,'header':!0x0,'hgroup':!0x0,'hr':!0x0,'menu':!0x0,'nav':!0x0,'ol':!0x0,'p':!0x0,'pre':!0x0,'section':!0x0,'table':!0x0,'ul':!0x0},'rp':{'rp':!0x0,'rt':!0x0},'rt':{'rp':!0x0,'rt':!0x0},'tbody':{'tbody':!0x0,'tfoot':!0x0},'td':{'td':!0x0,'th':!0x0},'tfoot':{'tbody':!0x0},'th':{'td':!0x0,'th':!0x0},'thead':{'tbody':!0x0,'tfoot':!0x0},'tr':{'tr':!0x0}};function nameChar(_0x4282a0){return 0x2d==_0x4282a0||0x2e==_0x4282a0||0x3a==_0x4282a0||_0x4282a0>=0x41&&_0x4282a0<=0x5a||0x5f==_0x4282a0||_0x4282a0>=0x61&&_0x4282a0<=0x7a||_0x4282a0>=0xa1;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x40d119,_0x1d63d8){let _0x8fd713=_0x40d119['pos']+_0x1d63d8;if(cachedPos==_0x8fd713&&cachedInput==_0x40d119)return cachedName;let _0x367595=_0x40d119['peek'](_0x1d63d8),_0x5dcb62='';for(;nameChar(_0x367595);)_0x5dcb62+=String['fromCharCode'](_0x367595),_0x367595=_0x40d119['peek'](++_0x1d63d8);return cachedInput=_0x40d119,cachedPos=_0x8fd713,cachedName=_0x5dcb62?_0x5dcb62['toLowerCase']():_0x367595==question$1||_0x367595==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x53719c,_0x41030d){this['name']=_0x53719c,this['parent']=_0x41030d;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x4363b4,_0x2f63c6,_0x32deca,_0x4e233e)=>startTagTerms['indexOf'](_0x2f63c6)>-0x1?new ElementContext(tagNameAfter(_0x4e233e,0x1)||'',_0x4363b4):_0x4363b4,'reduce':(_0x2f3f51,_0x9b4d1c)=>_0x9b4d1c==Element$2&&_0x2f3f51?_0x2f3f51['parent']:_0x2f3f51,'reuse'(_0xe9ef75,_0x14efe0,_0x13e96e,_0x2f9b14){let _0x1e7c50=_0x14efe0['type']['id'];return _0x1e7c50==StartTag||_0x1e7c50==OpenTag?new ElementContext(tagNameAfter(_0x2f9b14,0x1)||'',_0xe9ef75):_0xe9ef75;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x176b1b,_0x2dda21)=>{if(_0x176b1b['next']!=lessThan)return void(_0x176b1b['next']<0x0&&_0x2dda21['context']&&_0x176b1b['acceptToken'](missingCloseTag));_0x176b1b['advance']();let _0x1365a7=_0x176b1b['next']==slash$1;_0x1365a7&&_0x176b1b['advance']();let _0x31d2b1=tagNameAfter(_0x176b1b,0x0);if(void 0x0===_0x31d2b1)return;if(!_0x31d2b1)return _0x176b1b['acceptToken'](_0x1365a7?IncompleteCloseTag:IncompleteTag);let _0x35b894=_0x2dda21['context']?_0x2dda21['context']['name']:null;if(_0x1365a7){if(_0x31d2b1==_0x35b894)return _0x176b1b['acceptToken'](StartCloseTag);if(_0x35b894&&implicitlyClosed[_0x35b894])return _0x176b1b['acceptToken'](missingCloseTag,-0x2);if(_0x2dda21['dialectEnabled'](Dialect_noMatch))return _0x176b1b['acceptToken'](NoMatchStartCloseTag);for(let _0x589cf2=_0x2dda21['context'];_0x589cf2;_0x589cf2=_0x589cf2['parent'])if(_0x589cf2['name']==_0x31d2b1)return;_0x176b1b['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x31d2b1)return _0x176b1b['acceptToken'](StartScriptTag);if('style'==_0x31d2b1)return _0x176b1b['acceptToken'](StartStyleTag);if('textarea'==_0x31d2b1)return _0x176b1b['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x31d2b1))return _0x176b1b['acceptToken'](StartSelfClosingTag);_0x35b894&&closeOnOpen[_0x35b894]&&closeOnOpen[_0x35b894][_0x31d2b1]?_0x176b1b['acceptToken'](missingCloseTag,-0x1):_0x176b1b['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x37c377=>{for(let _0x1fc01c=0x0,_0x19d98a=0x0;;_0x19d98a++){if(_0x37c377['next']<0x0){_0x19d98a&&_0x37c377['acceptToken'](commentContent$1);break;}if(_0x37c377['next']==dash$1)_0x1fc01c++;else{if(_0x37c377['next']==greaterThan&&_0x1fc01c>=0x2){_0x19d98a>=0x3&&_0x37c377['acceptToken'](commentContent$1,-0x2);break;}_0x1fc01c=0x0;}_0x37c377['advance']();}});function inForeignElement(_0x44eb80){for(;_0x44eb80;_0x44eb80=_0x44eb80['parent'])if('svg'==_0x44eb80['name']||'math'==_0x44eb80['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x89d31,_0x12d9dc)=>{if(_0x89d31['next']==slash$1&&_0x89d31['peek'](0x1)==greaterThan){let _0x621a3d=_0x12d9dc['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0x12d9dc['context']);_0x89d31['acceptToken'](_0x621a3d?SelfClosingEndTag:EndTag,0x2);}else _0x89d31['next']==greaterThan&&_0x89d31['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x49a1ae,_0x44f9d6,_0x1c31a4){let _0x2954c0=0x2+_0x49a1ae['length'];return new ExternalTokenizer(_0x6c9e10=>{for(let _0x56d6b3=0x0,_0x4e2e29=0x0,_0x2d117f=0x0;;_0x2d117f++){if(_0x6c9e10['next']<0x0){_0x2d117f&&_0x6c9e10['acceptToken'](_0x44f9d6);break;}if(0x0==_0x56d6b3&&_0x6c9e10['next']==lessThan||0x1==_0x56d6b3&&_0x6c9e10['next']==slash$1||_0x56d6b3>=0x2&&_0x56d6b3<_0x2954c0&&_0x6c9e10['next']==_0x49a1ae['charCodeAt'](_0x56d6b3-0x2))_0x56d6b3++,_0x4e2e29++;else{if(_0x56d6b3==_0x2954c0&&_0x6c9e10['next']==greaterThan){_0x2d117f>_0x4e2e29?_0x6c9e10['acceptToken'](_0x44f9d6,-_0x4e2e29):_0x6c9e10['acceptToken'](_0x1c31a4,-(_0x4e2e29-0x2));break;}if((0xa==_0x6c9e10['next']||0xd==_0x6c9e10['next'])&&_0x2d117f){_0x6c9e10['acceptToken'](_0x44f9d6,0x1);break;}_0x56d6b3=_0x4e2e29=0x0;}_0x6c9e10['advance']();}});}const scriptTokens=contentTokenizer('script',scriptText,StartCloseScriptTag),styleTokens=contentTokenizer('style',styleText,StartCloseStyleTag),textareaTokens=contentTokenizer('textarea',textareaText,StartCloseTextareaTag),htmlHighlighting=styleTags({'Text\x20RawText\x20IncompleteTag\x20IncompleteCloseTag':tags$1['content'],'StartTag\x20StartCloseTag\x20SelfClosingEndTag\x20EndTag':tags$1['angleBracket'],'TagName':tags$1['tagName'],'MismatchedCloseTag/TagName':[tags$1['tagName'],tags$1['invalid']],'AttributeName':tags$1['attributeName'],'AttributeValue\x20UnquotedAttributeValue':tags$1['attributeValue'],'Is':tags$1['definitionOperator'],'EntityReference\x20CharacterReference':tags$1['character'],'Comment':tags$1['blockComment'],'ProcessingInst':tags$1['processingInstruction'],'DoctypeDecl':tags$1['documentMeta']}),parser$3=LRParser['deserialize']({'version':0xe,'states':',xOVO!rOOO!ZQ#tO\x27#CrO!`Q#tO\x27#C{O!eQ#tO\x27#DOO!jQ#tO\x27#DRO!oQ#tO\x27#DTO!tOaO\x27#CqO#PObO\x27#CqO#[OdO\x27#CqO$kO!rO\x27#CqOOO`\x27#Cq\x27#CqO$rO$fO\x27#DUO$zQ#tO\x27#DWO%PQ#tO\x27#DXOOO`\x27#Dl\x27#DlOOO`\x27#DZ\x27#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa\x27#D_\x27#D_O&_OaO\x27#CyO&jOaO,59]OOOb\x27#D`\x27#D`O&rObO\x27#C|O&}ObO,59]OOOd\x27#Da\x27#DaO\x27VOdO\x27#DPO\x27bOdO,59]OOO`\x27#Db\x27#DbO\x27jO!rO,59]O\x27qQ#tO\x27#DSOOO`,59],59]OOOp\x27#Dc\x27#DcO\x27vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO\x27#CtOOQW\x27#D[\x27#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO\x27#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO\x27#C}OOOd-E7_-E7_O){Q#tO\x27#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O\x27#CwO+SOMhO\x27#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO\x27#D]\x27#D]O+eO7[O,59cOOQW,59c,59cOOOO\x27#D^\x27#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[','stateData':',c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~','goto':'%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp','nodeNames':'⚠\x20StartCloseTag\x20StartCloseTag\x20StartCloseTag\x20EndTag\x20SelfClosingEndTag\x20StartTag\x20StartTag\x20StartTag\x20StartTag\x20StartTag\x20StartCloseTag\x20StartCloseTag\x20StartCloseTag\x20IncompleteTag\x20IncompleteCloseTag\x20Document\x20Text\x20EntityReference\x20CharacterReference\x20InvalidEntity\x20Element\x20OpenTag\x20TagName\x20Attribute\x20AttributeName\x20Is\x20AttributeValue\x20UnquotedAttributeValue\x20ScriptText\x20CloseTag\x20OpenTag\x20StyleText\x20CloseTag\x20OpenTag\x20TextareaText\x20CloseTag\x20OpenTag\x20CloseTag\x20SelfClosingTag\x20Comment\x20ProcessingInst\x20MismatchedCloseTag\x20CloseTag\x20DoctypeDecl','maxTerm':0x44,'context':elementContext,'nodeProps':[['closedBy',-0xa,0x1,0x2,0x3,0x7,0x8,0x9,0xa,0xb,0xc,0xd,'EndTag',0x6,'EndTag\x20SelfClosingEndTag',-0x4,0x16,0x1f,0x22,0x25,'CloseTag'],['openedBy',0x4,'StartTag\x20StartCloseTag',0x5,'StartTag',-0x4,0x1e,0x21,0x24,0x26,'OpenTag'],['group',-0xa,0xe,0xf,0x12,0x13,0x14,0x15,0x28,0x29,0x2a,0x2b,'Entity',0x11,'Entity\x20TextContent',-0x3,0x1d,0x20,0x23,'TextContent\x20Entity'],['isolate',-0xb,0x16,0x1e,0x1f,0x21,0x22,0x24,0x25,0x26,0x27,0x2a,0x2b,'ltr',-0x3,0x1b,0x1c,0x28,'']],'propSources':[htmlHighlighting],'skippedNodes':[0x0],'repeatNodeCount':0x9,'tokenData':'!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;\x27SMz;\x27S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;\x27S$q;\x27S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&Xq\x27UVaP!dpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}P\x27pTaPOv\x27kw!^\x27k!_;\x27S\x27k;\x27S;=`(P<%lO\x27kP(SP;=`<%l\x27kp([S!dpOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t`)jT!b`Or)esv)ew;\x27S)e;\x27S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;\x27S1k;\x27S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx\x27kx!^&}!^!_(V!_;\x27S&};\x27S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;\x27S8t;\x27S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;\x27S5u;\x27S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;\x27S7S;\x27S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;\x27S8t;\x27S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;\x27S;{;\x27S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;\x27SBw;\x27S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;\x27S@O;\x27S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;\x27SAY;\x27S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;\x27S+P;\x27S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;\x27SBw;\x27S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;\x27S/^;\x27S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;\x27SE{;\x27S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;\x27S0m;\x27S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs\x27ksv(tw!^(t!^!_)e!_;\x27S(t;\x27S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;\x27S-_;\x27S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;\x27SMz;\x27S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;\x27S*V;\x27S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!\x27]!g#W*V#W#X!0`#X;\x27S*V;\x27S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;\x27S*V;\x27S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!\x27dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;\x27S*V;\x27S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;\x27S*V;\x27S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;\x27S*V;\x27S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;\x27S*V;\x27S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;\x27S*V;\x27S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;\x27S*V;\x27S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;\x27S!+q;\x27S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;\x27S!,h;\x27S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;\x27S!-S;\x27S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;\x27S!.[;\x27S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;\x27S*V;\x27S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;\x27S*V;\x27S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;\x27S*V;\x27S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;\x27S*V;\x27S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;\x27S*V;\x27S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;\x27S*V;\x27S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;\x27S!4t;\x27S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;\x27S!5k;\x27S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;\x27S!6V;\x27S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;\x27S!6V;\x27S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;\x27S!5k;\x27S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;\x27S(V;\x27S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;\x27S!8];\x27S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;\x27S!8];\x27S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;\x27S)e;\x27S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;\x27S!4t;\x27S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;\x27S*V;\x27S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;\x27S&X;\x27S;=`*y<%lO&X','tokenizers':[scriptTokens,styleTokens,textareaTokens,endTag,tagStart,commentContent,0x0,0x1,0x2,0x3,0x4,0x5],'topRules':{'Document':[0x0,0x10]},'dialects':{'noMatch':0x0,'selfClosing':0x203},'tokenPrec':0x205});function getAttrs(_0x5f077a,_0x1c7f71){let _0x284b2f=Object['create'](null);for(let _0x151cfe of _0x5f077a['getChildren'](Attribute)){let _0x11f9e6=_0x151cfe['getChild'](AttributeName),_0x55c5ab=_0x151cfe['getChild'](AttributeValue)||_0x151cfe['getChild'](UnquotedAttributeValue);_0x11f9e6&&(_0x284b2f[_0x1c7f71['read'](_0x11f9e6['from'],_0x11f9e6['to'])]=_0x55c5ab?_0x55c5ab['type']['id']==AttributeValue?_0x1c7f71['read'](_0x55c5ab['from']+0x1,_0x55c5ab['to']-0x1):_0x1c7f71['read'](_0x55c5ab['from'],_0x55c5ab['to']):'');}return _0x284b2f;}function findTagName(_0x482149,_0x617e61){let _0x531c68=_0x482149['getChild'](TagName);return _0x531c68?_0x617e61['read'](_0x531c68['from'],_0x531c68['to']):'\x20';}function maybeNest(_0x419d50,_0x2fa68a,_0x110eb8){let _0x3bc20d;for(let _0xcdf7c3 of _0x110eb8)if(!_0xcdf7c3['attrs']||_0xcdf7c3['attrs'](_0x3bc20d||(_0x3bc20d=getAttrs(_0x419d50['node']['parent']['firstChild'],_0x2fa68a))))return{'parser':_0xcdf7c3['parser']};return null;}function configureNesting(_0x32a743=[],_0x486f5e=[]){let _0x3d28e8=[],_0x3d3759=[],_0x44bc85=[],_0x1f81b9=[];for(let _0x4c1fb1 of _0x32a743){('script'==_0x4c1fb1['tag']?_0x3d28e8:'style'==_0x4c1fb1['tag']?_0x3d3759:'textarea'==_0x4c1fb1['tag']?_0x44bc85:_0x1f81b9)['push'](_0x4c1fb1);}let _0x40a8ed=_0x486f5e['length']?Object['create'](null):null;for(let _0x5eb285 of _0x486f5e)(_0x40a8ed[_0x5eb285['name']]||(_0x40a8ed[_0x5eb285['name']]=[]))['push'](_0x5eb285);return parseMixed((_0x118dd3,_0x3bfd85)=>{let _0x584851=_0x118dd3['type']['id'];if(_0x584851==ScriptText)return maybeNest(_0x118dd3,_0x3bfd85,_0x3d28e8);if(_0x584851==StyleText)return maybeNest(_0x118dd3,_0x3bfd85,_0x3d3759);if(_0x584851==TextareaText)return maybeNest(_0x118dd3,_0x3bfd85,_0x44bc85);if(_0x584851==Element$2&&_0x1f81b9['length']){let _0xcf056a,_0x278fbe=_0x118dd3['node'],_0x2ac098=_0x278fbe['firstChild'],_0x310336=_0x2ac098&&findTagName(_0x2ac098,_0x3bfd85);if(_0x310336){for(let _0x544b04 of _0x1f81b9)if(_0x544b04['tag']==_0x310336&&(!_0x544b04['attrs']||_0x544b04['attrs'](_0xcf056a||(_0xcf056a=getAttrs(_0x2ac098,_0x3bfd85))))){let _0x154a86=_0x278fbe['lastChild'],_0x219d45=_0x154a86['type']['id']==CloseTag?_0x154a86['from']:_0x278fbe['to'];if(_0x219d45>_0x2ac098['to'])return{'parser':_0x544b04['parser'],'overlay':[{'from':_0x2ac098['to'],'to':_0x219d45}]};}}}if(_0x40a8ed&&_0x584851==Attribute){let _0x2cd986,_0x40735e=_0x118dd3['node'];if(_0x2cd986=_0x40735e['firstChild']){let _0x1ef450=_0x40a8ed[_0x3bfd85['read'](_0x2cd986['from'],_0x2cd986['to'])];if(_0x1ef450)for(let _0x4dc920 of _0x1ef450){if(_0x4dc920['tagName']&&_0x4dc920['tagName']!=findTagName(_0x40735e['parent'],_0x3bfd85))continue;let _0x26edaa=_0x40735e['lastChild'];if(_0x26edaa['type']['id']==AttributeValue){let _0x267b03=_0x26edaa['from']+0x1,_0x1c221e=_0x26edaa['lastChild'],_0x8efcc2=_0x26edaa['to']-(_0x1c221e&&_0x1c221e['isError']?0x0:0x1);if(_0x8efcc2>_0x267b03)return{'parser':_0x4dc920['parser'],'overlay':[{'from':_0x267b03,'to':_0x8efcc2}]};}else{if(_0x26edaa['type']['id']==UnquotedAttributeValue)return{'parser':_0x4dc920['parser'],'overlay':[{'from':_0x26edaa['from'],'to':_0x26edaa['to']}]};}}}}return null;});}const descendantOp=0x7a,Unit=0x1,identifier$2=0x7b,callee=0x7c,VariableName=0x2,queryIdentifier=0x7d,queryVariableName=0x3,QueryCallee=0x4,space$2=[0x9,0xa,0xb,0xc,0xd,0x20,0x85,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000],colon=0x3a,parenL=0x28,underscore=0x5f,bracketL$1=0x5b,dash=0x2d,period=0x2e,hash=0x23,percent=0x25,ampersand=0x26,backslash=0x5c,newline$1=0xa,asterisk=0x2a;function isAlpha(_0x32e8b3){return _0x32e8b3>=0x41&&_0x32e8b3<=0x5a||_0x32e8b3>=0x61&&_0x32e8b3<=0x7a||_0x32e8b3>=0xa1;}function isDigit(_0x42d3bf){return _0x42d3bf>=0x30&&_0x42d3bf<=0x39;}function isHex(_0x15b6bc){return isDigit(_0x15b6bc)||_0x15b6bc>=0x61&&_0x15b6bc<=0x66||_0x15b6bc>=0x41&&_0x15b6bc<=0x46;}const identifierTokens=(_0x1903d2,_0x12f2c6,_0x421a97)=>(_0x255289,_0x16a4e9)=>{for(let _0x1b9132=!0x1,_0xe3210b=0x0,_0x464311=0x0;;_0x464311++){let {next:_0x3fcb65}=_0x255289;if(isAlpha(_0x3fcb65)||_0x3fcb65==dash||_0x3fcb65==underscore||_0x1b9132&&isDigit(_0x3fcb65))!_0x1b9132&&(_0x3fcb65!=dash||_0x464311>0x0)&&(_0x1b9132=!0x0),_0xe3210b===_0x464311&&_0x3fcb65==dash&&_0xe3210b++,_0x255289['advance']();else{if(_0x3fcb65!=backslash||_0x255289['peek'](0x1)==newline$1){_0x1b9132&&_0x255289['acceptToken'](0x2==_0xe3210b&&_0x16a4e9['canShift'](VariableName)?_0x12f2c6:_0x3fcb65==parenL?_0x421a97:_0x1903d2);break;}if(_0x255289['advance'](),isHex(_0x255289['next'])){do{_0x255289['advance']();}while(isHex(_0x255289['next']));0x20==_0x255289['next']&&_0x255289['advance']();}else _0x255289['next']>-0x1&&_0x255289['advance']();_0x1b9132=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0x48f21e=>{if(space$2['includes'](_0x48f21e['peek'](-0x1))){let {next:_0x369567}=_0x48f21e;(isAlpha(_0x369567)||_0x369567==underscore||_0x369567==hash||_0x369567==period||_0x369567==asterisk||_0x369567==bracketL$1||_0x369567==colon&&isAlpha(_0x48f21e['peek'](0x1))||_0x369567==dash||_0x369567==ampersand)&&_0x48f21e['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0xba5457=>{if(!space$2['includes'](_0xba5457['peek'](-0x1))){let {next:_0x52c22b}=_0xba5457;if(_0x52c22b==percent&&(_0xba5457['advance'](),_0xba5457['acceptToken'](Unit)),isAlpha(_0x52c22b)){do{_0xba5457['advance']();}while(isAlpha(_0xba5457['next'])||isDigit(_0xba5457['next']));_0xba5457['acceptToken'](Unit);}}}),cssHighlighting=styleTags({'AtKeyword\x20import\x20charset\x20namespace\x20keyframes\x20media\x20supports':tags$1['definitionKeyword'],'from\x20to\x20selector':tags$1['keyword'],'NamespaceName':tags$1['namespace'],'KeyframeName':tags$1['labelName'],'KeyframeRangeName':tags$1['operatorKeyword'],'TagName':tags$1['tagName'],'ClassName':tags$1['className'],'PseudoClassName':tags$1['constant'](tags$1['className']),'IdName':tags$1['labelName'],'FeatureName\x20PropertyName':tags$1['propertyName'],'AttributeName':tags$1['attributeName'],'NumberLiteral':tags$1['number'],'KeywordQuery':tags$1['keyword'],'UnaryQueryOp':tags$1['operatorKeyword'],'CallTag\x20ValueName':tags$1['atom'],'VariableName':tags$1['variableName'],'Callee':tags$1['operatorKeyword'],'Unit':tags$1['unit'],'UniversalSelector\x20NestingSelector':tags$1['definitionOperator'],'MatchOp\x20CompareOp':tags$1['compareOperator'],'ChildOp\x20SiblingOp,\x20LogicOp':tags$1['logicOperator'],'BinOp':tags$1['arithmeticOperator'],'Important':tags$1['modifier'],'Comment':tags$1['blockComment'],'ColorLiteral':tags$1['color'],'ParenthesizedContent\x20StringLiteral':tags$1['string'],':':tags$1['punctuation'],'PseudoOp\x20#':tags$1['derefOperator'],';\x20,':tags$1['separator'],'(\x20)':tags$1['paren'],'[\x20]':tags$1['squareBracket'],'{\x20}':tags$1['brace']}),spec_callee={'__proto__':null,'lang':0x26,'nth-child':0x26,'nth-last-child':0x26,'nth-of-type':0x26,'nth-last-of-type':0x26,'dir':0x26,'host-context':0x26,'if':0x54,'url':0x7c,'url-prefix':0x7c,'domain':0x7c,'regexp':0x7c},spec_queryIdentifier={'__proto__':null,'or':0x62,'and':0x62,'not':0x6a,'only':0x6a,'layer':0xaa},spec_QueryCallee={'__proto__':null,'selector':0x70,'layer':0xa6},spec_AtKeyword={'__proto__':null,'@import':0xa2,'@media':0xae,'@charset':0xb2,'@namespace':0xb6,'@keyframes':0xbc,'@supports':0xc8,'@scope':0xcc},spec_identifier$1={'__proto__':null,'to':0xcf},parser$2=LRParser['deserialize']({'version':0xe,'states':'EbQYQdOOO#qQdOOP#xO`OOOOQP\x27#Cf\x27#CfOOQP\x27#Ce\x27#CeO#}QdO\x27#ChO$nQaO\x27#CcO$xQdO\x27#CkO%TQdO\x27#DpO%YQdO\x27#DrO%_QdO\x27#DuO%_QdO\x27#DxOOQP\x27#FV\x27#FVO&eQhO\x27#EhOOQS\x27#FU\x27#FUOOQS\x27#Ek\x27#EkQYQdOOO&lQdO\x27#EOO&PQhO\x27#EUO&lQdO\x27#EWO\x27aQdO\x27#EYO\x27lQdO\x27#E]O\x27tQhO\x27#EcO(VQdO\x27#EeO(bQaO\x27#CfO)VQ`O\x27#D{O)[Q`O\x27#F`O)gQdO\x27#F`QOQ`OOP)qO&jO\x27#CaPOOO)C@t)C@tOOQP\x27#Cj\x27#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO\x27#ErO*XQ`O,58}O*aQdO\x27#DzOOQS,58},58}OOQP\x27#Cn\x27#CnOOQO\x27#Dn\x27#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP\x27#Dq\x27#DqOOQP,5:[,5:[OOQO\x27#Ds\x27#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW\x27#DZ\x27#DZO,ZQhO\x27#DdO,xQhO\x27#FaO\x27tQhO\x27#DbO-WQ`O\x27#DhOOQW\x27#F[\x27#F[O-]Q`O,5;SO-eQ`O\x27#DeOOQS-E8i-E8iOOQ[\x27#Cs\x27#CsO-jQdO\x27#CtO.QQdO\x27#CzO.hQdO\x27#C}O/OQ!pO\x27#DPO1RQ!jO,5:jOOQO\x27#DU\x27#DUO*mQ`O\x27#DTO1cQ!nO\x27#FXO3`Q`O\x27#DVO3eQ`O\x27#DkOOQ[\x27#FX\x27#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS\x27#E[\x27#E[O3rQ`O,5:tO3wQdO,5:tOOQO\x27#E_\x27#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO\x27#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO\x27#EtO5TQ`O,5;zO5TQ`O,5;zPOOO\x27#Ej\x27#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO\x27#DoO7oQdO\x27#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO\x27#DZO8UQ!bO,59vO8^QhO,5:OOOQO\x27#F]\x27#F]O8XQ!bO,59zO\x27tQhO,59xO8fQhO\x27#EvO8sQ`O,5;{O9OQhO,59|O9uQhO\x27#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO\x27#FYOOQS\x27#FY\x27#FYOOQS\x27#Em\x27#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO\x27#EQOOQW\x27#EQ\x27#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO\x27tQhO\x27#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO\x27#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO\x27#F_O?ZQ`O,5:ZO?`Q!fO\x27#ElO@^QdO\x27#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO\x27#DZOAtQhO\x27#F^OBPQ`O\x27#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO\x27#DYOBmQ`O,59sO\x27tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO\x27#DPOOQO\x27#Eb\x27#EbOCYQ`O\x27#EaOOQO\x27#Ea\x27#EaOCeQ`O\x27#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO\x27#EsO&lQdO\x27#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO\x27#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO\x27#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO\x27#D]\x27#D]OFiQ!bO7+%QOFqQhO\x27#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO\x27#ES\x27#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO\x27#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO\x27#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O\x27#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+\x27OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a','stateData':'Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P\x27tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P\x27tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok\x27OO~Od\x27PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~','goto':'2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o\x27W%oP\x27t\x27w\x27}\x27}(^\x27}P\x27}P\x27}P\x27}\x27}P(m\x27}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l\x27QQ%u$sQ&d%qQ&l%zR\x27Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x\x27QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P','nodeNames':'⚠\x20Unit\x20VariableName\x20VariableName\x20QueryCallee\x20Comment\x20StyleSheet\x20RuleSet\x20UniversalSelector\x20TagSelector\x20TagName\x20NestingSelector\x20ClassSelector\x20.\x20ClassName\x20PseudoClassSelector\x20:\x20::\x20PseudoClassName\x20PseudoClassName\x20)\x20(\x20ArgList\x20ValueName\x20ParenthesizedValue\x20AtKeyword\x20#\x20;\x20]\x20[\x20BracketedValue\x20}\x20{\x20BracedValue\x20ColorLiteral\x20NumberLiteral\x20StringLiteral\x20BinaryExpression\x20BinOp\x20CallExpression\x20Callee\x20IfExpression\x20if\x20ArgList\x20IfBranch\x20KeywordQuery\x20FeatureQuery\x20FeatureName\x20BinaryQuery\x20LogicOp\x20ComparisonQuery\x20CompareOp\x20UnaryQuery\x20UnaryQueryOp\x20ParenthesizedQuery\x20SelectorQuery\x20selector\x20ParenthesizedSelector\x20CallQuery\x20ArgList\x20,\x20CallLiteral\x20CallTag\x20ParenthesizedContent\x20PseudoClassName\x20ArgList\x20IdSelector\x20IdName\x20AttributeSelector\x20AttributeName\x20MatchOp\x20ChildSelector\x20ChildOp\x20DescendantSelector\x20SiblingSelector\x20SiblingOp\x20Block\x20Declaration\x20PropertyName\x20Important\x20ImportStatement\x20import\x20Layer\x20layer\x20LayerName\x20layer\x20MediaStatement\x20media\x20CharsetStatement\x20charset\x20NamespaceStatement\x20namespace\x20NamespaceName\x20KeyframesStatement\x20keyframes\x20KeyframeName\x20KeyframeList\x20KeyframeSelector\x20KeyframeRangeName\x20SupportsStatement\x20supports\x20ScopeStatement\x20scope\x20to\x20AtRule\x20Styles','maxTerm':0x8f,'nodeProps':[['isolate',-0x2,0x5,0x24,''],['openedBy',0x14,'(',0x1c,'[',0x1f,'{'],['closedBy',0x15,')',0x1d,']',0x20,'}']],'propSources':[cssHighlighting],'skippedNodes':[0x0,0x5,0x6a],'repeatNodeCount':0xf,'tokenData':'JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;\x27S$q;\x27S;=`Iz<%lO$q`$tSOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q`%VS!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^\x27Y^p%Qpq\x27Yqy%Qz#y%Q#y#z\x27Y#z$f%Q$f$g\x27Y$g#BY%Q#BY#BZ\x27Y#BZ$IS%Q$IS$I_\x27Y$I_$I|%Q$I|$JO\x27Y$JO$JT%Q$JT$JU\x27Y$JU$KV%Q$KV$KW\x27Y$KW&FU%Q&FU&FV\x27Y&FV;\x27S%Q;\x27S;=`%c<%lO%Q~\x27ah#s~!a`OX%QX^\x27Y^p%Qpq\x27Yqy%Qz#y%Q#y#z\x27Y#z$f%Q$f$g\x27Y$g#BY%Q#BY#BZ\x27Y#BZ$IS%Q$IS$I_\x27Y$I_$I|%Q$I|$JO\x27Y$JO$JT%Q$JT$JU\x27Y$JU$KV%Q$KV$KW\x27Y$KW&FU%Q&FU&FV\x27Y&FV;\x27S%Q;\x27S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;\x27S%Q;\x27S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;\x27S%Q;\x27S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;\x27S%Q;\x27S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;\x27S%Q;\x27S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;\x27S%Q;\x27S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;\x27S%Q;\x27S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;\x27S%Q;\x27S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;\x27S%Q;\x27S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;\x27S%Q;\x27S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;\x27S-u;\x27S;=`/c<%lO-u~.gOt~~.jRO;\x27S-u;\x27S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;\x27S-u;\x27S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;\x27S%Q;\x27S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;\x27S%Q;\x27S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;\x27S%Q;\x27S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;\x27S%Q;\x27S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;\x27S%Q;\x27S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;\x27S%Q;\x27S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;\x27S%Q;\x27S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;\x27S%Q;\x27S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qb7VSZQOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;\x27S7c;\x27S;=`8z<%lO7c~8RRO;\x27S7c;\x27S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;\x27S7c;\x27S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;\x27S%Q;\x27S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;\x27S%Q;\x27S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%Qj>yS!^YOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;\x27S%Q;\x27S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;\x27S%Q;\x27S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;\x27S%Q;\x27S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];\x27S%Q;\x27S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjCQSkYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;\x27S%Q;\x27S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QlDaS!TW!hSOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;\x27S%Q;\x27S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjHQSmYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QnHcSl^Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjHtSpYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjIVSoYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Q`I}P;=`<%l$q','tokenizers':[descendant,unitToken,identifiers,queryIdentifiers,0x1,0x2,0x3,0x4,new LocalTokenGroup('m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~',0x1c,0x81)],'topRules':{'StyleSheet':[0x0,0x6],'Styles':[0x1,0x69]},'specialized':[{'term':0x7c,'get':_0x26bcd0=>spec_callee[_0x26bcd0]||-0x1},{'term':0x7d,'get':_0x34b335=>spec_queryIdentifier[_0x34b335]||-0x1},{'term':0x4,'get':_0x1f9a36=>spec_QueryCallee[_0x1f9a36]||-0x1},{'term':0x19,'get':_0xa263e3=>spec_AtKeyword[_0xa263e3]||-0x1},{'term':0x7b,'get':_0x5d33ba=>spec_identifier$1[_0x5d33ba]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0xacf7e3}=document['body'],_0x2d7be6=[],_0x30c03b=new Set();for(let _0x3c5489 in _0xacf7e3)'cssText'!=_0x3c5489&&'cssFloat'!=_0x3c5489&&'string'==typeof _0xacf7e3[_0x3c5489]&&(/[A-Z]/['test'](_0x3c5489)&&(_0x3c5489=_0x3c5489['replace'](/[A-Z]/g,_0xb957e8=>'-'+_0xb957e8['toLowerCase']())),_0x30c03b['has'](_0x3c5489)||(_0x2d7be6['push'](_0x3c5489),_0x30c03b['add'](_0x3c5489)));_properties=_0x2d7be6['sort']()['map'](_0x36482f=>({'type':'property','label':_0x36482f,'apply':_0x36482f+':\x20'}));}return _properties||[];}const pseudoClasses=['active','after','any-link','autofill','backdrop','before','checked','cue','default','defined','disabled','empty','enabled','file-selector-button','first','first-child','first-letter','first-line','first-of-type','focus','focus-visible','focus-within','fullscreen','has','host','host-context','hover','in-range','indeterminate','invalid','is','lang','last-child','last-of-type','left','link','marker','modal','not','nth-child','nth-last-child','nth-last-of-type','nth-of-type','only-child','only-of-type','optional','out-of-range','part','placeholder','placeholder-shown','read-only','read-write','required','right','root','scope','selection','slotted','target','target-text','valid','visited','where']['map'](_0x4cf3e0=>({'type':'class','label':_0x4cf3e0})),values=['above','absolute','activeborder','additive','activecaption','after-white-space','ahead','alias','all','all-scroll','alphabetic','alternate','always','antialiased','appworkspace','asterisks','attr','auto','auto-flow','avoid','avoid-column','avoid-page','avoid-region','axis-pan','background','backwards','baseline','below','bidi-override','blink','block','block-axis','bold','bolder','border','border-box','both','bottom','break','break-all','break-word','bullets','button','button-bevel','buttonface','buttonhighlight','buttonshadow','buttontext','calc','capitalize','caps-lock-indicator','caption','captiontext','caret','cell','center','checkbox','circle','cjk-decimal','clear','clip','close-quote','col-resize','collapse','color','color-burn','color-dodge','column','column-reverse','compact','condensed','contain','content','contents','content-box','context-menu','continuous','copy','counter','counters','cover','crop','cross','crosshair','currentcolor','cursive','cyclic','darken','dashed','decimal','decimal-leading-zero','default','default-button','dense','destination-atop','destination-in','destination-out','destination-over','difference','disc','discard','disclosure-closed','disclosure-open','document','dot-dash','dot-dot-dash','dotted','double','down','e-resize','ease','ease-in','ease-in-out','ease-out','element','ellipse','ellipsis','embed','end','ethiopic-abegede-gez','ethiopic-halehame-aa-er','ethiopic-halehame-gez','ew-resize','exclusion','expanded','extends','extra-condensed','extra-expanded','fantasy','fast','fill','fill-box','fixed','flat','flex','flex-end','flex-start','footnotes','forwards','from','geometricPrecision','graytext','grid','groove','hand','hard-light','help','hidden','hide','higher','highlight','highlighttext','horizontal','hsl','hsla','hue','icon','ignore','inactiveborder','inactivecaption','inactivecaptiontext','infinite','infobackground','infotext','inherit','initial','inline','inline-axis','inline-block','inline-flex','inline-grid','inline-table','inset','inside','intrinsic','invert','italic','justify','keep-all','landscape','large','larger','left','level','lighter','lighten','line-through','linear','linear-gradient','lines','list-item','listbox','listitem','local','logical','loud','lower','lower-hexadecimal','lower-latin','lower-norwegian','lowercase','ltr','luminosity','manipulation','match','matrix','matrix3d','medium','menu','menutext','message-box','middle','min-intrinsic','mix','monospace','move','multiple','multiple_mask_images','multiply','n-resize','narrower','ne-resize','nesw-resize','no-close-quote','no-drop','no-open-quote','no-repeat','none','normal','not-allowed','nowrap','ns-resize','numbers','numeric','nw-resize','nwse-resize','oblique','opacity','open-quote','optimizeLegibility','optimizeSpeed','outset','outside','outside-shape','overlay','overline','padding','padding-box','painted','page','paused','perspective','pinch-zoom','plus-darker','plus-lighter','pointer','polygon','portrait','pre','pre-line','pre-wrap','preserve-3d','progress','push-button','radial-gradient','radio','read-only','read-write','read-write-plaintext-only','rectangle','region','relative','repeat','repeating-linear-gradient','repeating-radial-gradient','repeat-x','repeat-y','reset','reverse','rgb','rgba','ridge','right','rotate','rotate3d','rotateX','rotateY','rotateZ','round','row','row-resize','row-reverse','rtl','run-in','running','s-resize','sans-serif','saturation','scale','scale3d','scaleX','scaleY','scaleZ','screen','scroll','scrollbar','scroll-position','se-resize','self-start','self-end','semi-condensed','semi-expanded','separate','serif','show','single','skew','skewX','skewY','skip-white-space','slide','slider-horizontal','slider-vertical','sliderthumb-horizontal','sliderthumb-vertical','slow','small','small-caps','small-caption','smaller','soft-light','solid','source-atop','source-in','source-out','source-over','space','space-around','space-between','space-evenly','spell-out','square','start','static','status-bar','stretch','stroke','stroke-box','sub','subpixel-antialiased','svg_masks','super','sw-resize','symbolic','symbols','system-ui','table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row','table-row-group','text','text-bottom','text-top','textarea','textfield','thick','thin','threeddarkshadow','threedface','threedhighlight','threedlightshadow','threedshadow','to','top','transform','translate','translate3d','translateX','translateY','translateZ','transparent','ultra-condensed','ultra-expanded','underline','unidirectional-pan','unset','up','upper-latin','uppercase','url','var','vertical','vertical-text','view-box','visible','visibleFill','visiblePainted','visibleStroke','visual','w-resize','wait','wave','wider','window','windowframe','windowtext','words','wrap','wrap-reverse','x-large','x-small','xor','xx-large','xx-small']['map'](_0x23ec05=>({'type':'keyword','label':_0x23ec05}))['concat'](['aliceblue','antiquewhite','aqua','aquamarine','azure','beige','bisque','black','blanchedalmond','blue','blueviolet','brown','burlywood','cadetblue','chartreuse','chocolate','coral','cornflowerblue','cornsilk','crimson','cyan','darkblue','darkcyan','darkgoldenrod','darkgray','darkgreen','darkkhaki','darkmagenta','darkolivegreen','darkorange','darkorchid','darkred','darksalmon','darkseagreen','darkslateblue','darkslategray','darkturquoise','darkviolet','deeppink','deepskyblue','dimgray','dodgerblue','firebrick','floralwhite','forestgreen','fuchsia','gainsboro','ghostwhite','gold','goldenrod','gray','grey','green','greenyellow','honeydew','hotpink','indianred','indigo','ivory','khaki','lavender','lavenderblush','lawngreen','lemonchiffon','lightblue','lightcoral','lightcyan','lightgoldenrodyellow','lightgray','lightgreen','lightpink','lightsalmon','lightseagreen','lightskyblue','lightslategray','lightsteelblue','lightyellow','lime','limegreen','linen','magenta','maroon','mediumaquamarine','mediumblue','mediumorchid','mediumpurple','mediumseagreen','mediumslateblue','mediumspringgreen','mediumturquoise','mediumvioletred','midnightblue','mintcream','mistyrose','moccasin','navajowhite','navy','oldlace','olive','olivedrab','orange','orangered','orchid','palegoldenrod','palegreen','paleturquoise','palevioletred','papayawhip','peachpuff','peru','pink','plum','powderblue','purple','rebeccapurple','red','rosybrown','royalblue','saddlebrown','salmon','sandybrown','seagreen','seashell','sienna','silver','skyblue','slateblue','slategray','snow','springgreen','steelblue','tan','teal','thistle','tomato','turquoise','violet','wheat','white','whitesmoke','yellow','yellowgreen']['map'](_0x1df770=>({'type':'constant','label':_0x1df770}))),tags=['a','abbr','address','article','aside','b','bdi','bdo','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','dd','del','details','dfn','dialog','div','dl','dt','em','figcaption','figure','footer','form','header','hgroup','h1','h2','h3','h4','h5','h6','hr','html','i','iframe','img','input','ins','kbd','label','legend','li','main','meter','nav','ol','output','p','pre','ruby','section','select','small','source','span','strong','sub','summary','sup','table','tbody','td','template','textarea','tfoot','th','thead','tr','u','ul']['map'](_0x16cf35=>({'type':'type','label':_0x16cf35})),atRules=['@charset','@color-profile','@container','@counter-style','@font-face','@font-feature-values','@font-palette-values','@import','@keyframes','@layer','@media','@namespace','@page','@position-try','@property','@scope','@starting-style','@supports','@view-transition']['map'](_0x5bf589=>({'type':'keyword','label':_0x5bf589})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x18ee93,_0x3f589f){var _0x442c36;if(('('==_0x18ee93['name']||_0x18ee93['type']['isError'])&&(_0x18ee93=_0x18ee93['parent']||_0x18ee93),'ArgList'!=_0x18ee93['name'])return!0x1;let _0x5791a0=null===(_0x442c36=_0x18ee93['parent'])||void 0x0===_0x442c36?void 0x0:_0x442c36['firstChild'];return'Callee'==(null==_0x5791a0?void 0x0:_0x5791a0['name'])&&'var'==_0x3f589f['sliceString'](_0x5791a0['from'],_0x5791a0['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0x33a2ad){for(let _0x4b0338=_0x33a2ad;;){if(_0x4b0338['type']['isTop'])return _0x4b0338;if(!(_0x4b0338=_0x4b0338['parent']))return _0x33a2ad;}}function variableNames(_0x5eb5dd,_0x4f5896,_0x34fdf1){if(_0x4f5896['to']-_0x4f5896['from']>0x1000){let _0x3eedc0=VariablesByNode['get'](_0x4f5896);if(_0x3eedc0)return _0x3eedc0;let _0xa6f8d8=[],_0x25e993=new Set(),_0x28be30=_0x4f5896['cursor'](IterMode['IncludeAnonymous']);if(_0x28be30['firstChild']())do{for(let _0x5e2a0b of variableNames(_0x5eb5dd,_0x28be30['node'],_0x34fdf1))_0x25e993['has'](_0x5e2a0b['label'])||(_0x25e993['add'](_0x5e2a0b['label']),_0xa6f8d8['push'](_0x5e2a0b));}while(_0x28be30['nextSibling']());return VariablesByNode['set'](_0x4f5896,_0xa6f8d8),_0xa6f8d8;}{let _0x437601=[],_0x12274d=new Set();return _0x4f5896['cursor']()['iterate'](_0x16737e=>{var _0x5c68f0;if(_0x34fdf1(_0x16737e)&&_0x16737e['matchContext'](declSelector)&&':'==(null===(_0x5c68f0=_0x16737e['node']['nextSibling'])||void 0x0===_0x5c68f0?void 0x0:_0x5c68f0['name'])){let _0x22ab85=_0x5eb5dd['sliceString'](_0x16737e['from'],_0x16737e['to']);_0x12274d['has'](_0x22ab85)||(_0x12274d['add'](_0x22ab85),_0x437601['push']({'label':_0x22ab85,'type':'variable'}));}}),_0x437601;}}const defineCSSCompletionSource=_0x3cca5f=>_0x3040a6=>{let {state:_0x39461f,pos:_0x18f414}=_0x3040a6,_0x4c82d7=syntaxTree(_0x39461f)['resolveInner'](_0x18f414,-0x1),_0x599c6d=_0x4c82d7['type']['isError']&&_0x4c82d7['from']==_0x4c82d7['to']-0x1&&'-'==_0x39461f['doc']['sliceString'](_0x4c82d7['from'],_0x4c82d7['to']);if('PropertyName'==_0x4c82d7['name']||(_0x599c6d||'TagName'==_0x4c82d7['name'])&&/^(Block|Styles)$/['test'](_0x4c82d7['resolve'](_0x4c82d7['to'])['name']))return{'from':_0x4c82d7['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x4c82d7['name'])return{'from':_0x4c82d7['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x4c82d7['name'])return{'from':_0x4c82d7['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x3cca5f(_0x4c82d7)||(_0x3040a6['explicit']||_0x599c6d)&&isVarArg(_0x4c82d7,_0x39461f['doc']))return{'from':_0x3cca5f(_0x4c82d7)||_0x599c6d?_0x4c82d7['from']:_0x18f414,'options':variableNames(_0x39461f['doc'],astTop(_0x4c82d7),_0x3cca5f),'validFor':variable};if('TagName'==_0x4c82d7['name']){for(let {parent:_0x22ee8c}=_0x4c82d7;_0x22ee8c;_0x22ee8c=_0x22ee8c['parent'])if('Block'==_0x22ee8c['name'])return{'from':_0x4c82d7['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x4c82d7['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x4c82d7['name'])return{'from':_0x4c82d7['from'],'options':atRules,'validFor':identifier$1};if(!_0x3040a6['explicit'])return null;let _0x1837fc=_0x4c82d7['resolve'](_0x18f414),_0x20201c=_0x1837fc['childBefore'](_0x18f414);return _0x20201c&&':'==_0x20201c['name']&&'PseudoClassSelector'==_0x1837fc['name']?{'from':_0x18f414,'options':pseudoClasses,'validFor':identifier$1}:_0x20201c&&':'==_0x20201c['name']&&'Declaration'==_0x1837fc['name']||'ArgList'==_0x1837fc['name']?{'from':_0x18f414,'options':values,'validFor':identifier$1}:'Block'==_0x1837fc['name']||'Styles'==_0x1837fc['name']?{'from':_0x18f414,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x14bfb0=>'VariableName'==_0x14bfb0['name']),cssLanguage=LRLanguage['define']({'name':'css','parser':parser$2['configure']({'props':[indentNodeProp['add']({'Declaration':continuedIndent()}),foldNodeProp['add']({'Block\x20KeyframeList':foldInside})]}),'languageData':{'commentTokens':{'block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*\}$/,'wordChars':'-'}});function css(){return new LanguageSupport(cssLanguage,cssLanguage['data']['of']({'autocomplete':cssCompletionSource}));}const noSemi=0x13c,noSemiType=0x13d,incdec=0x1,incdecPrefix=0x2,questionDot=0x3,JSXStartTag=0x4,insertSemi=0x13e,spaces=0x140,newline=0x141,LineComment=0x5,BlockComment=0x6,Dialect_jsx=0x0,space$1=[0x9,0xa,0xb,0xc,0xd,0x20,0x85,0xa0,0x1680,0x2000,0x2001,0x2002,0x2003,0x2004,0x2005,0x2006,0x2007,0x2008,0x2009,0x200a,0x2028,0x2029,0x202f,0x205f,0x3000],braceR=0x7d,semicolon=0x3b,slash=0x2f,star=0x2a,plus=0x2b,minus=0x2d,lt=0x3c,comma=0x2c,question=0x3f,dot=0x2e,bracketL=0x5b,trackNewline=new ContextTracker({'start':!0x1,'shift':(_0x5b4581,_0x2f16b6)=>_0x2f16b6==LineComment||_0x2f16b6==BlockComment||_0x2f16b6==spaces?_0x5b4581:_0x2f16b6==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0xb048d3,_0x5c67c8)=>{let {next:_0x1f2c80}=_0xb048d3;(_0x1f2c80==braceR||-0x1==_0x1f2c80||_0x5c67c8['context'])&&_0xb048d3['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x54022f,_0x13e47b)=>{let _0xbff5f5,{next:_0x1f7efa}=_0x54022f;space$1['indexOf'](_0x1f7efa)>-0x1||(_0x1f7efa!=slash||(_0xbff5f5=_0x54022f['peek'](0x1))!=slash&&_0xbff5f5!=star)&&(_0x1f7efa==braceR||_0x1f7efa==semicolon||-0x1==_0x1f7efa||_0x13e47b['context']||_0x54022f['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0x4c586e,_0x142f25)=>{_0x4c586e['next']!=bracketL||_0x142f25['context']||_0x4c586e['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0x2dae7e,_0x2124e1)=>{let {next:_0x5addbd}=_0x2dae7e;if(_0x5addbd==plus||_0x5addbd==minus){if(_0x2dae7e['advance'](),_0x5addbd==_0x2dae7e['next']){_0x2dae7e['advance']();let _0x32981c=!_0x2124e1['context']&&_0x2124e1['canShift'](incdec);_0x2dae7e['acceptToken'](_0x32981c?incdec:incdecPrefix);}}else _0x5addbd==question&&_0x2dae7e['peek'](0x1)==dot&&(_0x2dae7e['advance'](),_0x2dae7e['advance'](),(_0x2dae7e['next']<0x30||_0x2dae7e['next']>0x39)&&_0x2dae7e['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x3914dc,_0x5f16ff){return _0x3914dc>=0x41&&_0x3914dc<=0x5a||_0x3914dc>=0x61&&_0x3914dc<=0x7a||0x5f==_0x3914dc||_0x3914dc>=0xc0||!_0x5f16ff&&_0x3914dc>=0x30&&_0x3914dc<=0x39;}const jsx=new ExternalTokenizer((_0x2e3ced,_0x38ca6e)=>{if(_0x2e3ced['next']!=lt||!_0x38ca6e['dialectEnabled'](Dialect_jsx))return;if(_0x2e3ced['advance'](),_0x2e3ced['next']==slash)return;let _0x27b6be=0x0;for(;space$1['indexOf'](_0x2e3ced['next'])>-0x1;)_0x2e3ced['advance'](),_0x27b6be++;if(identifierChar(_0x2e3ced['next'],!0x0)){for(_0x2e3ced['advance'](),_0x27b6be++;identifierChar(_0x2e3ced['next'],!0x1);)_0x2e3ced['advance'](),_0x27b6be++;for(;space$1['indexOf'](_0x2e3ced['next'])>-0x1;)_0x2e3ced['advance'](),_0x27b6be++;if(_0x2e3ced['next']==comma)return;for(let _0x3cdbf4=0x0;;_0x3cdbf4++){if(0x7==_0x3cdbf4){if(!identifierChar(_0x2e3ced['next'],!0x0))return;break;}if(_0x2e3ced['next']!='extends'['charCodeAt'](_0x3cdbf4))break;_0x2e3ced['advance'](),_0x27b6be++;}}_0x2e3ced['acceptToken'](JSXStartTag,-_0x27b6be);}),jsHighlight=styleTags({'get\x20set\x20async\x20static':tags$1['modifier'],'for\x20while\x20do\x20if\x20else\x20switch\x20try\x20catch\x20finally\x20return\x20throw\x20break\x20continue\x20default\x20case\x20defer':tags$1['controlKeyword'],'in\x20of\x20await\x20yield\x20void\x20typeof\x20delete\x20instanceof\x20as\x20satisfies':tags$1['operatorKeyword'],'let\x20var\x20const\x20using\x20function\x20class\x20extends':tags$1['definitionKeyword'],'import\x20export\x20from':tags$1['moduleKeyword'],'with\x20debugger\x20new':tags$1['keyword'],'TemplateString':tags$1['special'](tags$1['string']),'super':tags$1['atom'],'BooleanLiteral':tags$1['bool'],'this':tags$1['self'],'null':tags$1['null'],'Star':tags$1['modifier'],'VariableName':tags$1['variableName'],'CallExpression/VariableName\x20TaggedTemplateExpression/VariableName':tags$1['function'](tags$1['variableName']),'VariableDefinition':tags$1['definition'](tags$1['variableName']),'Label':tags$1['labelName'],'PropertyName':tags$1['propertyName'],'PrivatePropertyName':tags$1['special'](tags$1['propertyName']),'CallExpression/MemberExpression/PropertyName':tags$1['function'](tags$1['propertyName']),'FunctionDeclaration/VariableDefinition':tags$1['function'](tags$1['definition'](tags$1['variableName'])),'ClassDeclaration/VariableDefinition':tags$1['definition'](tags$1['className']),'NewExpression/VariableName':tags$1['className'],'PropertyDefinition':tags$1['definition'](tags$1['propertyName']),'PrivatePropertyDefinition':tags$1['definition'](tags$1['special'](tags$1['propertyName'])),'UpdateOp':tags$1['updateOperator'],'LineComment\x20Hashbang':tags$1['lineComment'],'BlockComment':tags$1['blockComment'],'Number':tags$1['number'],'String':tags$1['string'],'Escape':tags$1['escape'],'ArithOp':tags$1['arithmeticOperator'],'LogicOp':tags$1['logicOperator'],'BitOp':tags$1['bitwiseOperator'],'CompareOp':tags$1['compareOperator'],'RegExp':tags$1['regexp'],'Equals':tags$1['definitionOperator'],'Arrow':tags$1['function'](tags$1['punctuation']),':\x20Spread':tags$1['punctuation'],'(\x20)':tags$1['paren'],'[\x20]':tags$1['squareBracket'],'{\x20}':tags$1['brace'],'InterpolationStart\x20InterpolationEnd':tags$1['special'](tags$1['brace']),'.':tags$1['derefOperator'],',\x20;':tags$1['separator'],'@':tags$1['meta'],'TypeName':tags$1['typeName'],'TypeDefinition':tags$1['definition'](tags$1['typeName']),'type\x20enum\x20interface\x20implements\x20namespace\x20module\x20declare':tags$1['definitionKeyword'],'abstract\x20global\x20Privacy\x20readonly\x20override':tags$1['modifier'],'is\x20keyof\x20unique\x20infer\x20asserts':tags$1['operatorKeyword'],'JSXAttributeValue':tags$1['attributeValue'],'JSXText':tags$1['content'],'JSXStartTag\x20JSXStartCloseTag\x20JSXSelfCloseEndTag\x20JSXEndTag':tags$1['angleBracket'],'JSXIdentifier\x20JSXNameSpacedName':tags$1['tagName'],'JSXAttribute/JSXIdentifier\x20JSXAttribute/JSXNameSpacedName':tags$1['attributeName'],'JSXBuiltin/JSXIdentifier':tags$1['standard'](tags$1['tagName'])}),spec_identifier={'__proto__':null,'export':0x14,'as':0x19,'from':0x21,'default':0x24,'async':0x29,'function':0x2a,'in':0x34,'out':0x37,'const':0x38,'extends':0x3c,'this':0x40,'true':0x48,'false':0x48,'null':0x54,'void':0x58,'typeof':0x5c,'super':0x6c,'new':0x8e,'delete':0x9a,'yield':0xa3,'await':0xa7,'class':0xac,'public':0xeb,'private':0xeb,'protected':0xeb,'readonly':0xed,'instanceof':0x100,'satisfies':0x103,'import':0x124,'keyof':0x15d,'unique':0x161,'infer':0x167,'asserts':0x18b,'is':0x18d,'abstract':0x1a1,'implements':0x1a3,'type':0x1a5,'let':0x1a8,'var':0x1aa,'using':0x1ad,'interface':0x1b3,'enum':0x1b7,'namespace':0x1bd,'module':0x1bf,'declare':0x1c3,'global':0x1c7,'defer':0x1d7,'for':0x1dc,'of':0x1e5,'while':0x1e8,'with':0x1ec,'do':0x1f0,'if':0x1f4,'else':0x1f6,'switch':0x1fa,'case':0x200,'try':0x206,'catch':0x20a,'finally':0x20e,'return':0x212,'throw':0x216,'break':0x21a,'continue':0x21e,'debugger':0x222},spec_word={'__proto__':null,'async':0x81,'get':0x83,'set':0x85,'declare':0xc3,'public':0xc5,'private':0xc5,'protected':0xc5,'static':0xc7,'abstract':0xc9,'override':0xcb,'readonly':0xd1,'accessor':0xd3,'new':0x191},spec_LessThan={'__proto__':null,'<':0xc1},parser$1=LRParser['deserialize']({'version':0xe,'states':'$F|Q%TQlOOO%[QlOOO\x27_QpOOP(lO`OOO*zQ!0MxO\x27#CiO+RO#tO\x27#CjO+aO&jO\x27#CjO+oO#@ItO\x27#DaO.QQlO\x27#DgO.bQlO\x27#DrO%[QlO\x27#DzO0fQlO\x27#ESOOQ!0Lf\x27#E[\x27#E[O1PQ`O\x27#EXOOQO\x27#Ep\x27#EpOOQO\x27#Il\x27#IlO1XQ`O\x27#GsO1dQ`O\x27#EoO1iQ`O\x27#EoO3hQ!0MxO\x27#JrO6[Q!0MxO\x27#JsO6uQ`O\x27#F]O6zQ,UO\x27#FtOOQ!0Lf\x27#Ff\x27#FfO7VO7dO\x27#FfO9XQMhO\x27#F|O9`Q`O\x27#F{OOQ!0Lf\x27#Js\x27#JsOOQ!0Lb\x27#Jr\x27#JrO9eQ`O\x27#GwOOQ[\x27#K_\x27#K_O9pQ`O\x27#IYO9uQ!0LrO\x27#IZOOQ[\x27#J`\x27#J`OOQ[\x27#I_\x27#I_Q`QlOOQ`QlOOO9}Q!L^O\x27#DvO:UQlO\x27#EOO:]QlO\x27#EQO9kQ`O\x27#GsO:dQMhO\x27#CoO:rQ`O\x27#EnO:}Q`O\x27#EyO;hQMhO\x27#FeO;xQ`O\x27#GsOOQO\x27#K`\x27#K`O;}Q`O\x27#K`O<]Q`O\x27#G{O<]Q`O\x27#G|O<]Q`O\x27#HOO9kQ`O\x27#HRO=SQ`O\x27#HUO>kQ`O\x27#CeO>{Q`O\x27#HcO?TQ`O\x27#HiO?TQ`O\x27#HkO`QlO\x27#HmO?TQ`O\x27#HoO?TQ`O\x27#HrO?YQ`O\x27#HxO?_Q!0LsO\x27#IOO%[QlO\x27#IQO?jQ!0LsO\x27#ISO?uQ!0LsO\x27#IUO9uQ!0LrO\x27#IWO@QQ!0MxO\x27#CiOASQpO\x27#DlQOQ`OOO%[QlO\x27#EQOAjQ`O\x27#ETO:dQMhO\x27#EnOAuQ`O\x27#EnOBQQ!bO\x27#FeOOQ[\x27#Cg\x27#CgOOQ!0Lb\x27#Dq\x27#DqOOQ!0Lb\x27#Jv\x27#JvO%[QlO\x27#JvOOQO\x27#Jy\x27#JyOOQO\x27#Ih\x27#IhOCQQpO\x27#EgOOQ!0Lb\x27#Ef\x27#EfOOQ!0Lb\x27#J}\x27#J}OC|Q!0MSO\x27#EgODWQpO\x27#EWOOQO\x27#Jx\x27#JxODlQpO\x27#JyOEyQpO\x27#EWODWQpO\x27#EgPFWO&2DjO\x27#CbPOOO)CD})CD}OOOO\x27#I`\x27#I`OFcO#tO,59UOOQ!0Lh,59U,59UOOOO\x27#Ia\x27#IaOFqO&jO,59UOGPQ!L^O\x27#DcOOOO\x27#Ic\x27#IcOGWO#@ItO,59{OOQ!0Lf,59{,59{OGfQlO\x27#IdOGyQ`O\x27#JtOIxQ!fO\x27#JtO+}QlO\x27#JtOJPQ`O,5:ROJgQ`O\x27#EpOJtQ`O\x27#KTOKPQ`O\x27#KSOKPQ`O\x27#KSOKXQ`O,5;^OK^Q`O\x27#KROOQ!0Ln,5:^,5:^OKeQlO,5:^OMcQ!0MxO,5:fONSQ`O,5:nONmQ!0LrO\x27#KQONtQ`O\x27#KPO9eQ`O\x27#KPO!\x20YQ`O\x27#KPO!\x20bQ`O,5;]O!\x20gQ`O\x27#KPO!#lQ!fO\x27#JsOOQ!0Lh\x27#Ci\x27#CiO%[QlO\x27#ESO!$[Q!fO,5:sOOQS\x27#Jz\x27#JzOOQO-E<j-E<jO9kQ`O,5=_O!$rQ`O,5=_O!$wQlO,5;ZO!&zQMhO\x27#EkO!(eQ`O,5;ZO!(jQlO\x27#DyO!(tQpO,5;dO!(|QpO,5;dO%[QlO,5;dOOQ[\x27#FT\x27#FTOOQ[\x27#FV\x27#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ[\x27#FZ\x27#FZO!)[QlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO\x27#IpO!+_Q!0LrO,5<iO%[QlO,5;eO!&zQMhO,5;eO!+|QMhO,5;eO!-nQMhO\x27#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-uQ,UO\x27#FjO!.rQ,UO\x27#KXO!.^Q,UO\x27#KXO!.yQ,UO\x27#KXOOQO\x27#KX\x27#KXO!/_Q,UO,5<SOOOW,5<`,5<`O!/pQlO\x27#FvOOOW\x27#Io\x27#IoO7VO7dO,5<QO!/wQ,UO\x27#FxOOQ!0Lf,5<Q,5<QO!0hQ$IUO\x27#CyOOQ!0Lh\x27#C}\x27#C}O!0{O#@ItO\x27#DRO!1iQMjO,5<eO!1pQ`O,5<hO!3YQ(CWO\x27#GXO!3jQ`O\x27#GYO!3oQ`O\x27#GYO!5_Q(CWO\x27#G^O!6dQpO\x27#GbOOQO\x27#Gn\x27#GnO!,TQMhO\x27#GmOOQO\x27#Gp\x27#GpO!,TQMhO\x27#GoO!7VQ$IUO\x27#JlOOQ!0Lh\x27#Jl\x27#JlO!7aQ`O\x27#JkO!7oQ`O\x27#JjO!7wQ`O\x27#CuOOQ!0Lh\x27#C{\x27#C{O!8YQ`O\x27#C}OOQ!0Lh\x27#DV\x27#DVOOQ!0Lh\x27#DX\x27#DXO!8_Q`O,5<eO1SQ`O\x27#DZO!,TQMhO\x27#GPO!,TQMhO\x27#GRO!8gQ`O\x27#GTO!8lQ`O\x27#GUO!3oQ`O\x27#G[O!,TQMhO\x27#GaO<]Q`O\x27#JkO!8qQ`O\x27#EqO!9`Q`O,5<gOOQ!0Lb\x27#Cr\x27#CrO!9hQ`O\x27#ErO!:bQpO\x27#EsOOQ!0Lb\x27#KR\x27#KRO!:iQ!0LrO\x27#KaO9uQ!0LrO,5=cO`QlO,5>tOOQ[\x27#Jh\x27#JhOOQ[,5>u,5>uOOQ[-E<]-E<]O!<hQ!0MxO,5:bO!:]QpO,5:`O!?RQ!0MxO,5:jO%[QlO,5:jO!AiQ!0MxO,5:lOOQO,5@z,5@zO!BYQMhO,5=_O!BhQ!0LrO\x27#JiO9`Q`O\x27#JiO!ByQ!0LrO,59ZO!CUQpO,59ZO!C^QMhO,59ZO:dQMhO,59ZO!CiQ`O,5;ZO!CqQ`O\x27#HbO!DVQ`O\x27#KdO%[QlO,5;}O!:]QpO,5<PO!D_Q`O,5=zO!DdQ`O,5=zO!DiQ`O,5=zO!DwQ`O,5=zO9uQ!0LrO,5=zO<]Q`O,5=jOOQO\x27#Cy\x27#CyO!EOQpO,5=gO!EWQMhO,5=hO!EcQ`O,5=jO!EhQ!bO,5=mO!EpQ`O\x27#K`O?YQ`O\x27#HWO9kQ`O\x27#HYO!EuQ`O\x27#HYO:dQMhO\x27#H[O!EzQ`O\x27#H[OOQ[,5=p,5=pO!FPQ`O\x27#H]O!FbQ`O\x27#CoO!FgQ`O,59PO!FqQ`O,59PO!HvQlO,59POOQ[,59P,59PO!IWQ!0LrO,59PO%[QlO,59PO!KcQlO\x27#HeOOQ[\x27#Hf\x27#HfOOQ[\x27#Hg\x27#HgO`QlO,5=}O!KyQ`O,5=}O`QlO,5>TO`QlO,5>VO!LOQ`O,5>XO`QlO,5>ZO!LTQ`O,5>^O!LYQlO,5>dOOQ[,5>j,5>jO%[QlO,5>jO9uQ!0LrO,5>lOOQ[,5>n,5>nO#!dQ`O,5>nOOQ[,5>p,5>pO#!dQ`O,5>pOOQ[,5>r,5>rO##QQpO\x27#D_O%[QlO\x27#JvO##sQpO\x27#JvO##}QpO\x27#DmO#$`QpO\x27#DmO#&qQlO\x27#DmO#&xQ`O\x27#JuO#\x27QQ`O,5:WO#\x27VQ`O\x27#EtO#\x27eQ`O\x27#KUO#\x27mQ`O,5;_O#\x27rQpO\x27#DmO#(PQpO\x27#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#(WQ`O,5:oO?YQ`O,5;YO!CUQpO,5;YO!C^QMhO,5;YO:dQMhO,5;YO#(`Q`O,5@bO#(eQ07dO,5:sOOQO-E<f-E<fO#)kQ!0MSO,5;RODWQpO,5:rO#)uQpO,5:rODWQpO,5;RO!ByQ!0LrO,5:rOOQ!0Lb\x27#Ej\x27#EjOOQO,5;R,5;RO%[QlO,5;RO#*SQ!0LrO,5;RO#*_Q!0LrO,5;RO!CUQpO,5:rOOQO,5;X,5;XO#*mQ!0LrO,5;RPOOO\x27#I^\x27#I^P#+RO&2DjO,58|POOO,58|,58|OOOO-E<^-E<^OOQ!0Lh1G.p1G.pOOOO-E<_-E<_OOOO,59},59}O#+^Q!bO,59}OOOO-E<a-E<aOOQ!0Lf1G/g1G/gO#+cQ!fO,5?OO+}QlO,5?OOOQO,5?U,5?UO#+mQlO\x27#IdOOQO-E<b-E<bO#+zQ`O,5@`O#,SQ!fO,5@`O#,ZQ`O,5@nOOQ!0Lf1G/m1G/mO%[QlO,5@oO#,cQ`O\x27#IjOOQO-E<h-E<hO#,ZQ`O,5@nOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@lO#,wQ!0LrO,5@lO#-YQ!0LrO,5@lO#-aQ`O,5@kO9eQ`O,5@kO#-iQ`O,5@kO#-wQ`O\x27#ImO#-aQ`O,5@kOOQ!0Lb1G0w1G0wO!(tQpO,5:uO!)PQpO,5:uOOQS,5:w,5:wO#.iQdO,5:wO#.qQMhO1G2yO9kQ`O1G2yOOQ!0Lf1G0u1G0uO#/PQ!0MxO1G0uO#0UQ!0MvO,5;VOOQ!0Lh\x27#GW\x27#GWO#0rQ!0MzO\x27#JlO!$wQlO1G0uO#2}Q!fO\x27#JwO%[QlO\x27#JwO#3XQ`O,5:eOOQ!0Lh\x27#D_\x27#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#3^Q`O1G1OO#5rQ!0MxO1G1PO#5yQ!0MxO1G1PO#8aQ!0MxO1G1PO#8hQ!0MxO1G1PO#;OQ!0MxO1G1PO#=fQ!0MxO1G1PO#=mQ!0MxO1G1PO#=tQ!0MxO1G1PO#@[Q!0MxO1G1PO#@cQ!0MxO1G1PO#BpQ?MtO\x27#CiO#DkQ?MtO1G1`O#DrQ?MtO\x27#JsO#EVQ!0MxO,5?[OOQ!0Lb-E<n-E<nO#GdQ!0MxO1G1PO#HaQ!0MzO1G1POOQ!0Lf1G1P1G1PO#IdQMjO\x27#J|O#InQ`O,5:xO#IsQ!0MxO1G1cO#JgQ,UO,5<WO#JoQ,UO,5<XO#JwQ,UO\x27#FoO#K`Q`O\x27#FnOOQO\x27#KY\x27#KYOOQO\x27#In\x27#InO#KeQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#KvQ?MtO\x27#JrO#LQQ`O,5<bO!)[QlO,5<bOOOW-E<m-E<mOOQ!0Lf1G1l1G1lO#LVQpO\x27#KXOOQ!0Lf,5<d,5<dO#L_QpO,5<dO#LdQMhO\x27#DTOOOO\x27#Ib\x27#IbO#LkO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8lQ`O\x27#IrO#LvQ`O,5<zOOQ!0Lh,5<w,5<wO!,TQMhO\x27#IuO#MdQMjO,5=XO!,TQMhO\x27#IwO#NVQMjO,5=ZO!&zQMhO,5=]OOQO1G2S1G2SO#NaQ!dO\x27#CrO#NtQ(CWO\x27#ErO$\x20|QpO\x27#GbO$!dQ!dO,5<sO$!kQ`O\x27#K[O9eQ`O\x27#K[O$!yQ`O,5<uO$#aQ!dO\x27#C{O!,TQMhO,5<tO$#kQ`O\x27#GZO$$PQ`O,5<tO$$UQ!dO\x27#GWO$$cQ!dO\x27#K]O$$mQ`O\x27#K]O!&zQMhO\x27#K]O$$rQ`O,5<xO$$wQlO\x27#JvO$%RQpO\x27#GcO#$`QpO\x27#GcO$%dQ`O\x27#GgO!3oQ`O\x27#GkO$%iQ!0LrO\x27#ItO$%tQpO,5<|OOQ!0Lp,5<|,5<|O$%{QpO\x27#GcO$&YQpO\x27#GdO$&kQpO\x27#GdO$&pQMjO,5=XO$\x27QQMjO,5=ZOOQ!0Lh,5=^,5=^O!,TQMhO,5@VO!,TQMhO,5@VO$\x27bQ`O\x27#IyO$\x27vQ`O,5@UO$(OQ`O,59aOOQ!0Lh,59i,59iO$(TQ`O,5@VO$)TQ$IYO,59uOOQ!0Lh\x27#Jp\x27#JpO$)vQMjO,5<kO$*iQMjO,5<mO@zQ`O,5<oOOQ!0Lh,5<p,5<pO$*sQ`O,5<vO$*xQMjO,5<{O$+YQ`O\x27#KPO!$wQlO1G2RO$+_Q`O1G2RO9eQ`O\x27#KSO9eQ`O\x27#EtO%[QlO\x27#EtO9eQ`O\x27#I{O$+dQ!0LrO,5@{OOQ[1G2}1G2}OOQ[1G4`1G4`OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$-fQ!0MxO1G0UOOQ[1G2y1G2yO!&zQMhO1G2yO%[QlO1G2yO#.tQ`O1G2yO$/jQMhO\x27#EkOOQ!0Lb,5@T,5@TO$/wQ!0LrO,5@TOOQ[1G.u1G.uO!ByQ!0LrO1G.uO!CUQpO1G.uO!C^QMhO1G.uO$0YQ`O1G0uO$0_Q`O\x27#CiO$0jQ`O\x27#KeO$0rQ`O,5=|O$0wQ`O\x27#KeO$0|Q`O\x27#KeO$1[Q`O\x27#JRO$1jQ`O,5AOO$1rQ!fO1G1iOOQ!0Lf1G1k1G1kO9kQ`O1G3fO@zQ`O1G3fO$1yQ`O1G3fO$2OQ`O1G3fO!DiQ`O1G3fO9uQ!0LrO1G3fOOQ[1G3f1G3fO!EcQ`O1G3UO!&zQMhO1G3RO$2TQ`O1G3ROOQ[1G3S1G3SO!&zQMhO1G3SO$2YQ`O1G3SO$2bQpO\x27#HQOOQ[1G3U1G3UO!6_QpO\x27#I}O!EhQ!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$2jQMhO,5=tO9kQ`O,5=tO$%dQ`O,5=vO9`Q`O,5=vO!CUQpO,5=vO!C^QMhO,5=vO:dQMhO,5=vO$2xQ`O\x27#KcO$3TQ`O,5=wOOQ[1G.k1G.kO$3YQ!0LrO1G.kO@zQ`O1G.kO$3eQ`O1G.kO9uQ!0LrO1G.kO$5mQ!fO,5AQO$5zQ`O,5AQO9eQ`O,5AQO$6VQlO,5>PO$6^Q`O,5>POOQ[1G3i1G3iO`QlO1G3iOOQ[1G3o1G3oOOQ[1G3q1G3qO?TQ`O1G3sO$6cQlO1G3uO$:gQlO\x27#HtOOQ[1G3x1G3xO$:tQ`O\x27#HzO?YQ`O\x27#H|OOQ[1G4O1G4OO$:|QlO1G4OO9uQ!0LrO1G4UOOQ[1G4W1G4WOOQ!0Lb\x27#G_\x27#G_O9uQ!0LrO1G4YO9uQ!0LrO1G4[O$?TQ`O,5@bO!)[QlO,5;`O9eQ`O,5;`O?YQ`O,5:XO!)[QlO,5:XO!CUQpO,5:XO$?YQ?MtO,5:XOOQO,5;`,5;`O$?dQpO\x27#IeO$?zQ`O,5@aOOQ!0Lf1G/r1G/rO$@SQpO\x27#IkO$@^Q`O,5@pOOQ!0Lb1G0y1G0yO#$`QpO,5:XOOQO\x27#Ig\x27#IgO$@fQpO,5:qOOQ!0Ln,5:q,5:qO#(ZQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO?YQ`O1G0tO!CUQpO1G0tO!C^QMhO1G0tOOQ!0Lb1G5|1G5|O!ByQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$@mQ!0LrO1G0mO$@xQ!0LrO1G0mO!CUQpO1G0^ODWQpO1G0^O$AWQ!0LrO1G0mOOQO1G0^1G0^O$AlQ!0MxO1G0mPOOO-E<[-E<[POOO1G.h1G.hOOOO1G/i1G/iO$AvQ!bO,5<iO$BOQ!fO1G4jOOQO1G4p1G4pO%[QlO,5?OO$BYQ`O1G5zO$BbQ`O1G6YO$BjQ!fO1G6ZO9eQ`O,5?UO$BtQ!0MxO1G6WO%[QlO1G6WO$CUQ!0LrO1G6WO$CgQ`O1G6VO$CgQ`O1G6VO9eQ`O1G6VO$CoQ`O,5?XO9eQ`O,5?XOOQO,5?X,5?XO$DTQ`O,5?XO$+YQ`O,5?XOOQO-E<k-E<kOOQS1G0a1G0aOOQS1G0c1G0cO#.lQ`O1G0cOOQ[7+(e7+(eO!&zQMhO7+(eO%[QlO7+(eO$DcQ`O7+(eO$DnQMhO7+(eO$D|Q!0MzO,5=XO$GXQ!0MzO,5=ZO$IdQ!0MzO,5=XO$KuQ!0MzO,5=ZO$NWQ!0MzO,59uO%!]Q!0MzO,5<kO%$hQ!0MzO,5<mO%&sQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%)UQ!0MxO7+&aO%)xQlO\x27#IfO%*VQ`O,5@cO%*_Q!fO,5@cOOQ!0Lf1G0P1G0PO%*iQ`O7+&jOOQ!0Lf7+&j7+&jO%*nQ?MtO,5:fO%[QlO7+&zO%*xQ?MtO,5:bO%+VQ?MtO,5:jO%+aQ?MtO,5:lO%+kQMhO\x27#IiO%+uQ`O,5@hOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%+}Q!jO,5<ZO!)[QlO,5<YOOQO-E<l-E<lOOQ!0Lf7+\x27Y7+\x27YOOOW7+\x27e7+\x27eOOOW1G1|1G1|O%,YQ`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%,_Q!dO,59oOOOO-E<`-E<`OOQ!0Lh1G/X1G/XO%,fQ!0MxO7+\x27kOOQ!0Lh,5?^,5?^O%-YQMhO1G2fP%-aQ`O\x27#IrPOQ!0Lh-E<p-E<pO%-}QMjO,5?aOOQ!0Lh-E<s-E<sO%.pQMjO,5?cOOQ!0Lh-E<u-E<uO%.zQ!dO1G2wO%/RQ!dO\x27#CrO%/iQMhO\x27#KSO$$wQlO\x27#JvOOQ!0Lh1G2_1G2_O%/sQ`O\x27#IqO%0[Q`O,5@vO%0[Q`O,5@vO%0dQ`O,5@vO%0oQ`O,5@vOOQO1G2a1G2aO%0}QMjO1G2`O$+YQ`O\x27#K[O!,TQMhO1G2`O%1_Q(CWO\x27#IsO%1lQ`O,5@wO!&zQMhO,5@wO%1tQ!dO,5@wOOQ!0Lh1G2d1G2dO%4UQ!fO\x27#CiO%4`Q`O,5=POOQ!0Lb,5<},5<}O%4hQpO,5<}OOQ!0Lb,5=O,5=OOCwQ`O,5<}O%4sQpO,5<}OOQ!0Lb,5=R,5=RO$+YQ`O,5=VOOQO,5?`,5?`OOQO-E<r-E<rOOQ!0Lp1G2h1G2hO#$`QpO,5<}O$$wQlO,5=PO%5RQ`O,5=OO%5^QpO,5=OO!,TQMhO\x27#IuO%6WQMjO1G2sO!,TQMhO\x27#IwO%6yQMjO1G2uO%7TQMjO1G5qO%7_QMjO1G5qOOQO,5?e,5?eOOQO-E<w-E<wOOQO1G.{1G.{O!,TQMhO1G5qO!,TQMhO1G5qO!:]QpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%7lQ`O1G2ZO!,TQMhO1G2bO%7qQ!0MxO7+\x27mOOQ!0Lf7+\x27m7+\x27mO!$wQlO7+\x27mO%8eQ`O,5;`OOQ!0Lb,5?g,5?gOOQ!0Lb-E<y-E<yO%8jQ!dO\x27#K^O#(ZQ`O7+(eO4UQ!fO7+(eO$DfQ`O7+(eO%8tQ!0MvO\x27#CiO%9XQ!0MvO,5=SO%9lQ`O,5=SO%9tQ`O,5=SOOQ!0Lb1G5o1G5oOOQ[7+$a7+$aO!ByQ!0LrO7+$aO!CUQpO7+$aO!$wQlO7+&aO%9yQ`O\x27#JQO%:bQ`O,5APOOQO1G3h1G3hO9kQ`O,5APO%:bQ`O,5APO%:jQ`O,5APOOQO,5?m,5?mOOQO-E=P-E=POOQ!0Lf7+\x27T7+\x27TO%:oQ`O7+)QO9uQ!0LrO7+)QO9kQ`O7+)QO@zQ`O7+)QO%:tQ`O7+)QOOQ[7+)Q7+)QOOQ[7+(p7+(pO%:yQ!0MvO7+(mO!&zQMhO7+(mO!E^Q`O7+(nOOQ[7+(n7+(nO!&zQMhO7+(nO%;TQ`O\x27#KbO%;`Q`O,5=lOOQO,5?i,5?iOOQO-E<{-E<{OOQ[7+(s7+(sO%<rQpO\x27#HZOOQ[1G3`1G3`O!&zQMhO1G3`O%[QlO1G3`O%<yQ`O1G3`O%=UQMhO1G3`O9uQ!0LrO1G3bO$%dQ`O1G3bO9`Q`O1G3bO!CUQpO1G3bO!C^QMhO1G3bO%=dQ`O\x27#JPO%=xQ`O,5@}O%>QQpO,5@}OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@zQ`O7+$VO9uQ!0LrO7+$VO%>]Q`O7+$VO%[QlO1G6lO%[QlO1G6mO%>bQ!0LrO1G6lO%>lQlO1G3kO%>sQ`O1G3kO%>xQlO1G3kOOQ[7+)T7+)TO9uQ!0LrO7+)_O`QlO7+)aOOQ[\x27#Kh\x27#KhOOQ[\x27#JS\x27#JSO%?PQlO,5>`OOQ[,5>`,5>`O%[QlO\x27#HuO%?^Q`O\x27#HwOOQ[,5>f,5>fO9eQ`O,5>fOOQ[,5>h,5>hOOQ[7+)j7+)jOOQ[7+)p7+)pOOQ[7+)t7+)tOOQ[7+)v7+)vO%?cQpO1G5|O%?}Q?MtO1G0zO%@XQ`O1G0zOOQO1G/s1G/sO%@dQ?MtO1G/sO?YQ`O1G/sO!)[QlO\x27#DmOOQO,5?P,5?POOQO-E<c-E<cOOQO,5?V,5?VOOQO-E<i-E<iO!CUQpO1G/sOOQO-E<e-E<eOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#(ZQ`O7+%uOOQ!0Lf7+&`7+&`O?YQ`O7+&`O!CUQpO7+&`OOQO7+%x7+%xO$AlQ!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%@nQ!0LrO7+&XO!ByQ!0LrO7+%xO!CUQpO7+%xO%@yQ!0LrO7+&XO%AXQ!0MxO7++rO%[QlO7++rO%AiQ`O7++qO%AiQ`O7++qOOQO1G4s1G4sO9eQ`O1G4sO%AqQ`O1G4sOOQS7+%}7+%}O#(ZQ`O<<LPO4UQ!fO<<LPO%BPQ`O<<LPOOQ[<<LP<<LPO!&zQMhO<<LPO%[QlO<<LPO%BXQ`O<<LPO%BdQ!0MzO,5?aO%DoQ!0MzO,5?cO%FzQ!0MzO1G2`O%I]Q!0MzO1G2sO%KhQ!0MzO1G2uO%MsQ!fO,5?QO%[QlO,5?QOOQO-E<d-E<dO%M}Q`O1G5}OOQ!0Lf<<JU<<JUO%NVQ?MtO1G0uO&!^Q?MtO1G1PO&!eQ?MtO1G1PO&$fQ?MtO1G1PO&$mQ?MtO1G1PO&&nQ?MtO1G1PO&(oQ?MtO1G1PO&(vQ?MtO1G1PO&(}Q?MtO1G1PO&+OQ?MtO1G1PO&+VQ?MtO1G1PO&+^Q!0MxO<<JfO&-UQ?MtO1G1PO&.RQ?MvO1G1PO&/UQ?MvO\x27#JlO&1[Q?MtO1G1cO&1iQ?MtO1G0UO&1sQMjO,5?TOOQO-E<g-E<gO!)[QlO\x27#FqOOQO\x27#KZ\x27#KZOOQO1G1u1G1uO&1}Q`O1G1tO&2SQ?MtO,5?[OOOW7+\x27h7+\x27hOOOO1G/Z1G/ZO&2^Q!dO1G4xOOQ!0Lh7+(Q7+(QP!&zQMhO,5?^O!,TQMhO7+(cO&2eQ`O,5?]O9eQ`O,5?]O$+YQ`O,5?]OOQO-E<o-E<oO&2sQ`O1G6bO&2sQ`O1G6bO&2{Q`O1G6bO&3WQMjO7+\x27zO&3hQ!dO,5?_O&3rQ`O,5?_O!&zQMhO,5?_OOQO-E<q-E<qO&3wQ!dO1G6cO&4RQ`O1G6cO&4ZQ`O1G2kO!&zQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%4hQpO1G2iO!CUQpO1G2iOCwQ`O1G2iOOQ!0Lb1G2q1G2qO&4`QpO1G2iO&4nQ`O1G2kO$+YQ`O1G2jOCwQ`O1G2jO$$wQlO1G2kO&4vQ`O1G2jO&5jQMjO,5?aOOQ!0Lh-E<t-E<tO&6]QMjO,5?cOOQ!0Lh-E<v-E<vO!,TQMhO7++]O&6gQMjO7++]O&6qQMjO7++]OOQ!0Lh1G/c1G/cO&7OQ`O1G/cOOQ!0Lh7+\x27u7+\x27uO&7TQMjO7+\x27|O&7eQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&8XQ`O1G0zO!&zQMhO\x27#IzO&8^Q`O,5@xO&:`Q!fO<<LPO!&zQMhO1G2nO&:gQ!0LrO1G2nOOQ[<<G{<<G{O!ByQ!0LrO<<G{O&:xQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?l,5?lO&;lQ`O,5?lO&;qQ`O,5?lOOQO-E=O-E=OO&<PQ`O1G6kO&<PQ`O1G6kO9kQ`O1G6kO@zQ`O<<LlOOQ[<<Ll<<LlO&<XQ`O<<LlO9uQ!0LrO<<LlO9kQ`O<<LlOOQ[<<LX<<LXO%:yQ!0MvO<<LXOOQ[<<LY<<LYO!E^Q`O<<LYO&<^QpO\x27#I|O&<iQ`O,5@|O!)[QlO,5@|OOQ[1G3W1G3WOOQO\x27#JO\x27#JOO9uQ!0LrO\x27#JOO&<qQpO,5=uOOQ[,5=u,5=uO&<xQpO\x27#EgO&=PQpO\x27#GeO&=UQ`O7+(zO&=ZQ`O7+(zOOQ[7+(z7+(zO!&zQMhO7+(zO%[QlO7+(zO&=cQ`O7+(zOOQ[7+(|7+(|O9uQ!0LrO7+(|O$%dQ`O7+(|O9`Q`O7+(|O!CUQpO7+(|O&=nQ`O,5?kOOQO-E<}-E<}OOQO\x27#H^\x27#H^O&=yQ`O1G6iO9uQ!0LrO<<GqOOQ[<<Gq<<GqO@zQ`O<<GqO&>RQ`O7+,WO&>WQ`O7+,XO%[QlO7+,WO%[QlO7+,XOOQ[7+)V7+)VO&>]Q`O7+)VO&>bQlO7+)VO&>iQ`O7+)VOOQ[<<Ly<<LyOOQ[<<L{<<L{OOQ[-E=Q-E=QOOQ[1G3z1G3zO&>nQ`O,5>aOOQ[,5>c,5>cO&>sQ`O1G4QO9eQ`O7+&fO!)[QlO7+&fOOQO7+%_7+%_O&>xQ?MtO1G6ZO?YQ`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO?YQ`O<<IzOOQO<<Is<<IsO$AlQ!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!ByQ!0LrO<<IdO&?SQ!0LrO<<IsO&?_Q!0MxO<=\x20^O&?oQ`O<=\x20]OOQO7+*_7+*_O9eQ`O7+*_OOQ[ANAkANAkO&?wQ!fOANAkO!&zQMhOANAkO#(ZQ`OANAkO4UQ!fOANAkO&@OQ`OANAkO%[QlOANAkO&@WQ!0MzO7+\x27zO&BiQ!0MzO,5?aO&DtQ!0MzO,5?cO&GPQ!0MzO7+\x27|O&IbQ!fO1G4lO&IlQ?MtO7+&aO&KpQ?MvO,5=XO&MwQ?MvO,5=ZO&NXQ?MvO,5=XO&NiQ?MvO,5=ZO&NyQ?MvO,59uO\x27#PQ?MvO,5<kO\x27%SQ?MvO,5<mO\x27\x27hQ?MvO,5<{O\x27)^Q?MtO7+\x27kO\x27)kQ?MtO7+\x27mO\x27)xQ`O,5<]OOQO7+\x27`7+\x27`OOQ!0Lh7+*d7+*dO\x27)}QMjO<<K}OOQO1G4w1G4wO\x27*UQ`O1G4wO\x27*aQ`O1G4wO\x27*oQ`O7++|O\x27*oQ`O7++|O!&zQMhO1G4yO\x27*wQ!dO1G4yO\x27+RQ`O7++}O\x27+ZQ`O7+(VO\x27+fQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!CUQpO7+(TOCwQ`O7+(TO\x27+pQ`O7+(VO!&zQMhO7+(VO$+YQ`O7+(UO\x27+uQ`O7+(VOCwQ`O7+(UO\x27+}QMjO<<NwO!,TQMhO<<NwOOQ!0Lh7+$}7+$}O\x27,XQ!dO,5?fOOQO-E<x-E<xO\x27,cQ!0MvO7+(YO!&zQMhO7+(YOOQ[AN=gAN=gO9kQ`O1G5WOOQO1G5W1G5WO\x27,sQ`O1G5WO\x27,xQ`O7+,VO\x27,xQ`O7+,VO9uQ!0LrOANBWO@zQ`OANBWOOQ[ANBWANBWO\x27-QQ`OANBWOOQ[ANAsANAsOOQ[ANAtANAtO\x27-VQ`O,5?hOOQO-E<z-E<zO\x27-bQ?MtO1G6hOOQO,5?j,5?jOOQO-E<|-E<|OOQ[1G3a1G3aO\x27-lQ`O,5=POOQ[<<Lf<<LfO!&zQMhO<<LfO&=UQ`O<<LfO\x27-qQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9uQ!0LrO<<LhO$%dQ`O<<LhO9`Q`O<<LhO\x27-yQpO1G5VO\x27.UQ`O7+,TOOQ[AN=]AN=]O9uQ!0LrOAN=]OOQ[<=\x20r<=\x20rOOQ[<=\x20s<=\x20sO\x27.^Q`O<=\x20rO\x27.cQ`O<=\x20sOOQ[<<Lq<<LqO\x27.hQ`O<<LqO\x27.mQlO<<LqOOQ[1G3{1G3{O?YQ`O7+)lO\x27.tQ`O<<JQO\x27/PQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$AlQ!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<My<<MyOOQ[G27VG27VO!&zQMhOG27VO#(ZQ`OG27VO\x27/ZQ!fOG27VO4UQ!fOG27VO\x27/bQ`OG27VO\x27/jQ?MtO<<JfO\x27/wQ?MvO1G2`O\x271mQ?MvO,5?aO\x273pQ?MvO,5?cO\x275sQ?MvO1G2sO\x277vQ?MvO1G2uO\x279yQ?MtO<<KXO\x27:WQ?MtO<<I{OOQO1G1w1G1wO!,TQMhOANAiOOQO7+*c7+*cO\x27:eQ`O7+*cO\x27:pQ`O<=\x20hO\x27:xQ!dO7+*eOOQ!0Lb<<Kq<<KqO$+YQ`O<<KqOCwQ`O<<KqO\x27;SQ`O<<KqO!&zQMhO<<KqOOQ!0Lb<<Ko<<KoO!CUQpO<<KoO\x27;_Q!dO<<KqOOQ!0Lb<<Kp<<KpO\x27;iQ`O<<KqO!&zQMhO<<KqO$+YQ`O<<KpO\x27;nQMjOANDcO\x27;xQ!0MvO<<KtOOQO7+*r7+*rO9kQ`O7+*rO\x27<YQ`O<=\x20qOOQ[G27rG27rO9uQ!0LrOG27rO@zQ`OG27rO!)[QlO1G5SO\x27<bQ`O7+,SO\x27<jQ`O1G2kO&=UQ`OANBQOOQ[ANBQANBQO!&zQMhOANBQO\x27<oQ`OANBQOOQ[ANBSANBSO9uQ!0LrOANBSO$%dQ`OANBSOOQO\x27#H_\x27#H_OOQO7+*q7+*qOOQ[G22wG22wOOQ[ANE^ANE^OOQ[ANE_ANE_OOQ[ANB]ANB]O\x27<wQ`OANB]OOQ[<<MW<<MWO!)[QlOAN?lOOQOG24yG24yO$AlQ!0MxOG24yO#(ZQ`OLD,qOOQ[LD,qLD,qO!&zQMhOLD,qO\x27<|Q!fOLD,qO\x27=TQ?MvO7+\x27zO\x27>yQ?MvO,5?aO\x27@|Q?MvO,5?cO\x27CPQ?MvO7+\x27|O\x27DuQMjOG27TOOQO<<M}<<M}OOQ!0LbANA]ANA]O$+YQ`OANA]OCwQ`OANA]O\x27EVQ!dOANA]OOQ!0LbANAZANAZO\x27E^Q`OANA]O!&zQMhOANA]O\x27EiQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N^<<N^OOQ[LD-^LD-^O9uQ!0LrOLD-^O\x27EsQ?MtO7+*nOOQO\x27#Gf\x27#GfOOQ[G27lG27lO&=UQ`OG27lO!&zQMhOG27lOOQ[G27nG27nO9uQ!0LrOG27nOOQ[G27wG27wO\x27E}Q?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#(ZQ`O!$(!]O!&zQMhO!$(!]O\x27FXQ!0MzOG27TOOQ!0LbG26wG26wO$+YQ`OG26wO\x27HjQ`OG26wOCwQ`OG26wO\x27HuQ!dOG26wO!&zQMhOG26wOOQ[!$(!x!$(!xOOQ[LD-WLD-WO&=UQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#(ZQ`O!)9EwOOQ!0LbLD,cLD,cO$+YQ`OLD,cOCwQ`OLD,cO\x27H|Q`OLD,cO\x27IXQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO\x27I`Q?MvOG27TOOQ!0Lb!$(\x20}!$(\x20}O$+YQ`O!$(\x20}OCwQ`O!$(\x20}O\x27KUQ`O!$(\x20}OOQ!0Lb!)9Ei!)9EiO$+YQ`O!)9EiOCwQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$+YQ`O!.K;TOOQ!0Lb!4/0o!4/0oO!)[QlO\x27#DzO1PQ`O\x27#EXO\x27KaQ!fO\x27#JrO\x27KhQ!L^O\x27#DvO\x27KoQlO\x27#EOO\x27KvQ!fO\x27#CiO\x27N^Q!fO\x27#CiO!)[QlO\x27#EQO\x27NnQlO,5;ZO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO,5;eO!)[QlO\x27#IpO(!qQ`O,5<iO!)[QlO,5;eO(!yQMhO,5;eO($dQMhO,5;eO!)[QlO,5;wO!&zQMhO\x27#GmO(!yQMhO\x27#GmO!&zQMhO\x27#GoO(!yQMhO\x27#GoO1SQ`O\x27#DZO1SQ`O\x27#DZO!&zQMhO\x27#GPO(!yQMhO\x27#GPO!&zQMhO\x27#GRO(!yQMhO\x27#GRO!&zQMhO\x27#GaO(!yQMhO\x27#GaO!)[QlO,5:jO($kQpO\x27#D_O($uQpO\x27#JvO!)[QlO,5@oO\x27NnQlO1G0uO(%PQ?MtO\x27#CiO!)[QlO1G2PO!&zQMhO\x27#IuO(!yQMhO\x27#IuO!&zQMhO\x27#IwO(!yQMhO\x27#IwO(%ZQ!dO\x27#CrO!&zQMhO,5<tO(!yQMhO,5<tO\x27NnQlO1G2RO!)[QlO7+&zO!&zQMhO1G2`O(!yQMhO1G2`O!&zQMhO\x27#IuO(!yQMhO\x27#IuO!&zQMhO\x27#IwO(!yQMhO\x27#IwO!&zQMhO1G2bO(!yQMhO1G2bO\x27NnQlO7+\x27mO\x27NnQlO7+&aO!&zQMhOANAiO(!yQMhOANAiO(%nQ`O\x27#EoO(%sQ`O\x27#EoO(%{Q`O\x27#F]O(&QQ`O\x27#EyO(&VQ`O\x27#KTO(&bQ`O\x27#KRO(&mQ`O,5;ZO(&rQMjO,5<eO(&yQ`O\x27#GYO(\x27OQ`O\x27#GYO(\x27TQ`O,5<eO(\x27]Q`O,5<gO(\x27eQ`O,5;ZO(\x27mQ?MtO1G1`O(\x27tQ`O,5<tO(\x27yQ`O,5<tO((OQ`O,5<vO((TQ`O,5<vO((YQ`O1G2RO((_Q`O1G0uO((dQMjO<<K}O((kQMjO<<K}O((rQMhO\x27#F|O9`Q`O\x27#F{OAuQ`O\x27#EnO!)[QlO,5;tO!3oQ`O\x27#GYO!3oQ`O\x27#GYO!3oQ`O\x27#G[O!3oQ`O\x27#G[O!,TQMhO7+(cO!,TQMhO7+(cO%.zQ!dO1G2wO%.zQ!dO1G2wO!&zQMhO,5=]O!&zQMhO,5=]','stateData':'()x~O\x27|OS\x27}OSTOS(ORQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&W!WO&^!XO&`!YO&b!ZO&d![O&g!]O&m!^O&s!_O&u!`O&w!aO&y!bO&{!cO(TSO(VTO(YUO(aVO(o[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O(O!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X\x27z]X(a]X(r]X(y]X(z]X~O!g%RX~P(qO_!}O(V#PO(W!}O(X#PO~O_#QO(X#PO(Y#PO(Z#QO~Ox#SO!U#TO(b#TO(c#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T<ZO(VTO(YUO(aVO(o[O~O![#ZO!]#WO!Y(hP!Y(vP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(VTO(YUO(aVO(o[O~Op#mO![#iO!|]O#i#lO#j#iO(T<[O!k(sP~P.iO!l#oO(T#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa(fX\x27z(fX\x27w(fX!k(fX!Y(fX!_(fX%i(fX!g(fX~P1qO#S$dO#`$eO$Q$eOP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX!_(gX%i(gX~Oa(gX\x27z(gX\x27w(gX!Y(gX!k(gXv(gX!g(gX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%dOk%dOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T$sO(VTO(YUO(a$uO(y$}O(z%POg(^P~Ol%[O~P7eO!l%eO~O!S%hO!_%iO(T%gO~O!g%mO~Oa%nO\x27z%nO~O!Q%rO~P%[O(U!lO~P%[O%n%vO~P%[Oh%VO!l%eO(T%gO(U!lO~Oe%}O!l%eO(T%gO~Oj$RO~O!_&PO(T%gO(U!lO(VTO(YUO`)WP~O!Q&SO!l&RO%j&VO&T&WO~P;SO!x#sO~O%s&YO!S)SX!_)SX(T)SX~O(T&ZO~Ol!PO!u&`O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&eOe&dO!x&bO%h&cO%{&aO~P<bOd&hOeyOl!PO!_&gO!u&`O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&kO#`&nO%j&iO(U!lO~P=gO!l&oO!u&sO~O!l#oO~O!_XO~Oa%nO\x27x&{O\x27z%nO~Oa%nO\x27x\x27OO\x27z%nO~Oa%nO\x27x\x27QO\x27z%nO~O\x27w]X!Y]Xv]X!k]X&[]X!_]X%i]X!g]X~P(qO!b\x27_O!c\x27WO!d\x27WO(U!lO(VTO(YUO~Os\x27UO!S\x27TO![\x27XO(e\x27SO!^(iP!^(xP~P@nOn\x27bO!_\x27`O(T%gO~Oe\x27gO!l%eO(T%gO~O!Q&SO!l&RO~Os!nO!S!oO!|<VO#T!pO#U!pO#W!pO#X!pO(U!lO(VTO(YUO(e!mO(o!sO~O!b\x27mO!c\x27lO!d\x27lO#V!pO#[\x27nO#]\x27nO~PBYOa%nOh%VO!g#vO!l%eO\x27z%nO(r\x27pO~O!p\x27tO#`\x27rO~PChOs!nO!S!oO(VTO(YUO(e!mO(o!sO~O!_XOs(mX!S(mX!b(mX!c(mX!d(mX!|(mX#T(mX#U(mX#V(mX#W(mX#X(mX#[(mX#](mX(U(mX(V(mX(Y(mX(e(mX(o(mX~O!c\x27lO!d\x27lO(U!lO~PDWO(P\x27xO(Q\x27xO(R\x27zO~O_!}O(V\x27|O(W!}O(X\x27|O~O_#QO(X\x27|O(Y\x27|O(Z#QO~Ov(OO~P%[Ox#SO!U#TO(b#TO(c(RO~O![(TO!Y\x27WX!Y\x27^X!]\x27WX!]\x27^X~P+}O!](VO!Y(hX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](VO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~O!Y(hX~PHRO!Y([O~O!Y(uX!](uX!g(uX!k(uX(r(uX~O#`(uX#k#dX!^(uX~PJUO#`(]O!Y(wX!](wX~O!](^O!Y(vX~O!Y(aO~O#`$eO~PJUO!^(bO~P`OR#zO!Q#yO!S#{O!l#xO(aVOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(r!na(y!na(z!na~Oa!na\x27z!na\x27w!na!Y!na!k!nav!na!_!na%i!na!g!na~PKlO!k(cO~O!g#vO#`(dO(r\x27pO!](tXa(tX\x27z(tX~O!k(tX~PNXO!S%hO!_%iO!|]O#i(iO#j(hO(T%gO~O!](jO!k(sX~O!k(lO~O!S%hO!_%iO#j(hO(T%gO~OP(gXR(gX[(gXj(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~O!g#vO!k(gX~P!\x20uOR(nO!Q(mO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(T!{a~P!#vO!x(rO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~O#k(xO~O![(zO!k(kP~P%[O(e(|O(o[O~O!S)OO!l#xO(e(|O(o[O~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]$_Oa$qa\x27z$qa\x27w$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)dO~P!&zOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%]O!S${O!_$|O!i%bO!l$xO#j%cO$W%`O$t%^O$v%_O$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Og(pP~P!,TO!Q)iO!g)hO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)hO!_({X$Z({X$]({X$_({X$f({X~O!Q)iO~P!.^O!Q)iO!_({X$Z({X$]({X$_({X$f({X~O!_)kO$Z)oO$])jO$_)jO$f)pO~O![)sO~P!)[O$]$hO$_$gO$f)wO~On$zX!Q$zX#S$zX\x27y$zX(y$zX(z$zX~OgmXg$zXnmX!]mX#`mX~P!0SOx)yO(b)zO(c)|O~On*VO!Q*OO\x27y*PO(y$}O(z%PO~Og)}O~P!1WOg*WO~Oh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S*YO!_*ZO!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op*`O![*^O(T*XO!k)OP~P!1uO#k*aO~O!l*bO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(T*dO(VTO(YUO(a$uO(y$}O(z%PO~O![*gO!Y)PP~P!3tOr*sOs!nO!S*iO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO(e!mO~O!^*pO~P!5iO#S$dOn(`X!Q(`X\x27y(`X(y(`X(z(`X!](`X#`(`X~Og(`X$O(`X~P!6kOn*xO#`*wOg(_X!](_X~O!]*yOg(^X~Oj%dOk%dOl%dO(T&ZOg(^P~Os*|O~Og)}O(T&ZO~O!l+SO~O(T(vO~Op+WO!S%hO![#iO!_%iO!|]O#i#lO#j#iO(T%gO!k(sP~O!g#vO#k+XO~O!S%hO![+ZO!](^O!_%iO(T%gO!Y(vP~Os\x27[O!S+]O![+[O(VTO(YUO(e(|O~O!^(xP~P!9|O!]+^Oa)TX\x27z)TX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(aVO(r$YO(y#|O(z#}O~Oa!ja!]!ja\x27z!ja\x27w!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:tOR#zO!Q#yO!S#{O!l#xO(aVOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(r!ra(y!ra(z!ra~Oa!ra\x27z!ra\x27w!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!=[OR#zO!Q#yO!S#{O!l#xO(aVOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(r!ta(y!ta(z!ta~Oa!ta\x27z!ta\x27w!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?rOh%VOn+gO!_\x27`O%i+fO~O!g+iOa(]X!_(]X\x27z(]X!](]X~Oa%nO!_XO\x27z%nO~Oh%VO!l%eO~Oh%VO!l%eO(T%gO~O!g#vO#k(xO~Ob+tO%j+uO(T+qO(VTO(YUO!^)XP~O!]+vO`)WX~O[+zO~O`+{O~O!_&PO(T%gO(U!lO`)WP~O%j,OO~P;SOh%VO#`,SO~Oh%VOn,VO!_$|O~O!_,XO~O!Q,ZO!_XO~O%n%vO~O!x,`O~Oe,eO~Ob,fO(T#nO(VTO(YUO!^)VP~Oe%}O~O%j!QO(T&ZO~P=gO[,kO`,jO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(VTO(YUO(aVO(o[O~O!_!eO!u!gO$W!kO(T!dO~P!FyO`,jOa%nO\x27z%nO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(T!dO(VTO(YUO(aVO(o[O~Oa,pOl!OO!uwO%l!OO%m!OO%n!OO~P!IcO!l&oO~O&^,vO~O!_,xO~O&o,zO&q,{OP&laQ&laS&laY&laa&lad&lae&lal&lap&lar&las&lat&laz&la|&la!O&la!S&la!W&la!X&la!_&la!i&la!l&la!o&la!p&la!q&la!s&la!u&la!x&la!|&la$W&la$n&la%h&la%j&la%l&la%m&la%n&la%q&la%s&la%v&la%w&la%y&la&W&la&^&la&`&la&b&la&d&la&g&la&m&la&s&la&u&la&w&la&y&la&{&la\x27w&la(T&la(V&la(Y&la(a&la(o&la!^&la&e&lab&la&j&la~O(T-QO~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P#!iO!g-VO#`-UOh(jX!]#hX!^#hX!g(jX!l(jX~O!](jX!^(jX~P##[Oh%VO!g-XO!l%eO!]!aX!^!aX~Os!nO!S!oO(VTO(YUO(e!mO~OP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_!eO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(VTO(YUO(aVO(o[O~O(T=QO~P#$qO!]-]O!^(iX~O!^-_O~O!g-VO#`-UO!]#hX!^#hX~O!]-`O!^(xX~O!^-bO~O!c-cO!d-cO(U!lO~P#$`O!^-fO~P\x27_On-iO!_\x27`O~O!Y-nO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(U!{a(V!{a(Y!{a(e!{a(o!{a~P!#vO!p-sO#`-qO~PChO!c-uO!d-uO(U!lO~PDWOa%nO#`-qO\x27z%nO~Oa%nO!g#vO#`-qO\x27z%nO~Oa%nO!g#vO!p-sO#`-qO\x27z%nO(r\x27pO~O(P\x27xO(Q\x27xO(R-zO~Ov-{O~O!Y\x27Wa!]\x27Wa~P!:tO![.PO!Y\x27WX!]\x27WX~P%[O!](VO!Y(ha~O!Y(ha~PHRO!](^O!Y(va~O!S%hO![.TO!_%iO(T%gO!Y\x27^X!]\x27^X~O#`.VO!](ta!k(taa(ta\x27z(ta~O!g#vO~P#,wO!](jO!k(sa~O!S%hO!_%iO#j.ZO(T%gO~Op.`O!S%hO![.]O!_%iO!|]O#i._O#j.]O(T%gO!]\x27aX!k\x27aX~OR.dO!l#xO~Oh%VOn.gO!_\x27`O%i.fO~Oa#ci!]#ci\x27z#ci\x27w#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:tOn>]O!Q*OO\x27y*PO(y$}O(z%PO~O#k#_aa#_a#`#_a\x27z#_a!]#_a!k#_a!_#_a!Y#_a~P#/sO#k(`XP(`XR(`X[(`Xa(`Xj(`Xr(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X\x27z(`X(a(`X(r(`X!k(`X!Y(`X\x27w(`Xv(`X!_(`X%i(`X!g(`X~P!6kO!].tO!k(kX~P!:tO!k.wO~O!Y.yO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#3cO#n$OO~P#3cOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#6QO#r$QO~P#6QOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(aVOa#mi!]#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi(z#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(aVO(z#}Oa#mi!]#mi#z#mi#{#mi\x27z#mi(r#mi(y#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#;VO#x#mi~P#;VO#v$SO~P#8oOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(aVO(y#|O(z#}Oa#mi!]#mi#{#mi\x27z#mi(r#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#={O#z$WO~P#={OP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X!]]X!^]X~O$O]X~P#@jOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO#z<gO#{<hO(aVO(r$YO(y#|O(z#}O~O$O.{O~P#BwO#S$dO#`<nO$Q<nO$O(gX!^(gX~P!\x20uOa\x27da!]\x27da\x27z\x27da\x27w\x27da!k\x27da!Y\x27dav\x27da!_\x27da%i\x27da!g\x27da~P!:tO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi\x27z#mi(r#mi\x27w#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(aVO(y#mi(z#mi~P#EyOn>]O!Q*OO\x27y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P#EyO!]/POg(pX~P!1WOg/RO~Oa$Pi!]$Pi\x27z$Pi\x27w$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:tO$]/SO$_/SO~O$]/TO$_/TO~O!g)hO#`/UO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/VO~O!_)kO$Z/XO$])jO$_)jO$f/YO~O!]<iO!^(fX~P#BwO!^/ZO~O!g)hO$f({X~O$f/]O~Ov/^O~P!&zOx)yO(b)zO(c/aO~O!S/dO~O(y$}On%aa!Q%aa\x27y%aa(z%aa!]%aa#`%aa~Og%aa$O%aa~P#L{O(z%POn%ca!Q%ca\x27y%ca(y%ca!]%ca#`%ca~Og%ca$O%ca~P#MnO!]fX!gfX!kfX!k$zX(rfX~P!0SOp%WO![/mO!](^O(T/lO!Y(vP!Y)PP~P!1uOr*sO!b*qO!c*kO!d*kO!l*bO#[*rO%`*mO(U!lO(VTO(YUO~Os<}O!S/nO![+[O!^*pO(e<|O!^(xP~P$\x20[O!k/oO~P#/sO!]/pO!g#vO(r\x27pO!k)OX~O!k/uO~OnoX!QoX\x27yoX(yoX(zoX~O!g#vO!koX~P$#OOp/wO!S%hO![*^O!_%iO(T%gO!k)OP~O#k/xO~O!Y$zX!]$zX!g%RX~P!0SO!]/yO!Y)PX~P#/sO!g/{O~O!Y/}O~OpkO(T0OO~P.iOh%VOr0TO!g#vO!l%eO(r\x27pO~O!g+iO~Oa%nO!]0XO\x27z%nO~O!^0ZO~P!5iO!c0[O!d0[O(U!lO~P#$`Os!nO!S0]O(VTO(YUO(e!mO~O#[0_O~Og%aa!]%aa#`%aa$O%aa~P!1WOg%ca!]%ca#`%ca$O%ca~P!1WOj%dOk%dOl%dO(T&ZOg\x27mX!]\x27mX~O!]*yOg(^a~Og0hO~On0jO#`0iOg(_a!](_a~OR0kO!Q0kO!S0lO#S$dOn}a\x27y}a(y}a(z}a!]}a#`}a~Og}a$O}a~P$(cO!Q*OO\x27y*POn$sa(y$sa(z$sa!]$sa#`$sa~Og$sa$O$sa~P$)_O!Q*OO\x27y*POn$ua(y$ua(z$ua!]$ua#`$ua~Og$ua$O$ua~P$*QO#k0oO~Og%Ta!]%Ta#`%Ta$O%Ta~P!1WO!g#vO~O#k0rO~O!]+^Oa)Ta\x27z)Ta~OR#zO!Q#yO!S#{O!l#xO(aVOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(r!ri(y!ri(z!ri~Oa!ri\x27z!ri\x27w!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$+oOh%VOr%XOs$tOt$tOz%YO|%ZO!O<sO!S${O!_$|O!i>VO!l$xO#j<yO$W%`O$t<uO$v<wO$y%aO(VTO(YUO(a$uO(y$}O(z%PO~Op0{O%]0|O(T0zO~P$.VO!g+iOa(]a!_(]a\x27z(]a!](]a~O#k1SO~O[]X!]fX!^fX~O!]1TO!^)XX~O!^1VO~O[1WO~Ob1YO(T+qO(VTO(YUO~O!_&PO(T%gO`\x27uX!]\x27uX~O!]+vO`)Wa~O!k1]O~P!:tO[1`O~O`1aO~O#`1fO~On1iO!_$|O~O(e(|O!^)UP~Oh%VOn1rO!_1oO%i1qO~O[1|O!]1zO!^)VX~O!^1}O~O`2POa%nO\x27z%nO~O(T#nO(VTO(YUO~O#S$dO#`$eO$Q$eOP(gXR(gX[(gXr(gX!Q(gX!S(gX!](gX!l(gX!p(gX#R(gX#n(gX#o(gX#p(gX#q(gX#r(gX#s(gX#t(gX#u(gX#v(gX#x(gX#z(gX#{(gX(a(gX(r(gX(y(gX(z(gX~Oj2SO&[2TOa(gX~P$3pOj2SO#`$eO&[2TO~Oa2VO~P%[Oa2XO~O&e2[OP&ciQ&ciS&ciY&cia&cid&cie&cil&cip&cir&cis&cit&ciz&ci|&ci!O&ci!S&ci!W&ci!X&ci!_&ci!i&ci!l&ci!o&ci!p&ci!q&ci!s&ci!u&ci!x&ci!|&ci$W&ci$n&ci%h&ci%j&ci%l&ci%m&ci%n&ci%q&ci%s&ci%v&ci%w&ci%y&ci&W&ci&^&ci&`&ci&b&ci&d&ci&g&ci&m&ci&s&ci&u&ci&w&ci&y&ci&{&ci\x27w&ci(T&ci(V&ci(Y&ci(a&ci(o&ci!^&cib&ci&j&ci~Ob2bO!^2`O&j2aO~P`O!_XO!l2dO~O&q,{OP&liQ&liS&liY&lia&lid&lie&lil&lip&lir&lis&lit&liz&li|&li!O&li!S&li!W&li!X&li!_&li!i&li!l&li!o&li!p&li!q&li!s&li!u&li!x&li!|&li$W&li$n&li%h&li%j&li%l&li%m&li%n&li%q&li%s&li%v&li%w&li%y&li&W&li&^&li&`&li&b&li&d&li&g&li&m&li&s&li&u&li&w&li&y&li&{&li\x27w&li(T&li(V&li(Y&li(a&li(o&li!^&li&e&lib&li&j&li~O!Y2jO~O!]!aa!^!aa~P#BwOs!nO!S!oO![2pO(e!mO!]\x27XX!^\x27XX~P@nO!]-]O!^(ia~O!]\x27_X!^\x27_X~P!9|O!]-`O!^(xa~O!^2wO~P\x27_Oa%nO#`3QO\x27z%nO~Oa%nO!g#vO#`3QO\x27z%nO~Oa%nO!g#vO!p3UO#`3QO\x27z%nO(r\x27pO~Oa%nO\x27z%nO~P!:tO!]$_Ov$qa~O!Y\x27Wi!]\x27Wi~P!:tO!](VO!Y(hi~O!](^O!Y(vi~O!Y(wi!](wi~P!:tO!](ti!k(tia(ti\x27z(ti~P!:tO#`3WO!](ti!k(tia(ti\x27z(ti~O!](jO!k(si~O!S%hO!_%iO!|]O#i3]O#j3[O(T%gO~O!S%hO!_%iO#j3[O(T%gO~On3dO!_\x27`O%i3cO~Oh%VOn3dO!_\x27`O%i3cO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa\x27z%aa(a%aa(r%aa!k%aa!Y%aa\x27w%aav%aa!_%aa%i%aa!g%aa~P#L{O#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca\x27z%ca(a%ca(r%ca!k%ca!Y%ca\x27w%cav%ca!_%ca%i%ca!g%ca~P#MnO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa\x27z%aa(a%aa(r%aa!k%aa!Y%aa\x27w%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/sO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca\x27z%ca(a%ca(r%ca!k%ca!Y%ca\x27w%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/sO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a\x27z}a(a}a(r}a!k}a!Y}a\x27w}av}a!_}a%i}a!g}a~P$(cO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa\x27z$sa(a$sa(r$sa!k$sa!Y$sa\x27w$sav$sa!_$sa%i$sa!g$sa~P$)_O#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua\x27z$ua(a$ua(r$ua!k$ua!Y$ua\x27w$uav$ua!_$ua%i$ua!g$ua~P$*QO#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta\x27z%Ta(a%Ta(r%Ta!k%Ta!Y%Ta\x27w%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/sOa#cq!]#cq\x27z#cq\x27w#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:tO![3lO!]\x27YX!k\x27YX~P%[O!].tO!k(ka~O!].tO!k(ka~P!:tO!Y3oO~O$O!na!^!na~PKlO$O!ja!]!ja!^!ja~P#BwO$O!ra!^!ra~P!=[O$O!ta!^!ta~P!?rOg\x27]X!]\x27]X~P!,TO!]/POg(pa~OSfO!_4TO$d4UO~O!^4YO~Ov4ZO~P#/sOa$mq!]$mq\x27z$mq\x27w$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:tO!Y4]O~P!&zO!S4^O~O!Q*OO\x27y*PO(z%POn\x27ia(y\x27ia!]\x27ia#`\x27ia~Og\x27ia$O\x27ia~P%-fO!Q*OO\x27y*POn\x27ka(y\x27ka(z\x27ka!]\x27ka#`\x27ka~Og\x27ka$O\x27ka~P%.XO(r$YO~P#/sO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!0SOp%WO(T=WO~P!1uOp4bO!S%hO![4aO!_%iO(T%gO!]\x27eX!k\x27eX~O!]/pO!k)Oa~O!]/pO!g#vO!k)Oa~O!]/pO!g#vO(r\x27pO!k)Oa~Og$|i!]$|i#`$|i$O$|i~P!1WO![4jO!Y\x27gX!]\x27gX~P!3tO!]/yO!Y)Pa~O!]/yO!Y)Pa~P#/sOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~Oj%YX!g%YX~P%2OOj4oO!g#vO~Oh%VO!g#vO!l%eO~Oh%VOr4tO!l%eO(r\x27pO~Or4yO!g#vO(r\x27pO~Os!nO!S4zO(VTO(YUO(e!mO~O(y$}On%ai!Q%ai\x27y%ai(z%ai!]%ai#`%ai~Og%ai$O%ai~P%5oO(z%POn%ci!Q%ci\x27y%ci(y%ci!]%ci#`%ci~Og%ci$O%ci~P%6bOg(_i!](_i~P!1WO#`5QOg(_i!](_i~P!1WO!k5VO~Oa$oq!]$oq\x27z$oq\x27w$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:tO!Y5ZO~O!]5[O!_)QX~P#/sOa$zX!_$zX%^]X\x27z$zX!]$zX~P!0SO%^5_OaoX!_oX\x27zoX!]oX~P$#OOp5`O(T#nO~O%^5_O~Ob5fO%j5gO(T+qO(VTO(YUO!]\x27tX!^\x27tX~O!]1TO!^)Xa~O[5kO~O`5lO~O[5pO~Oa%nO\x27z%nO~P#/sO!]5uO#`5wO!^)UX~O!^5xO~Or6OOs!nO!S*iO!b!yO!c!vO!d!vO!|<VO#T!pO#U!pO#V!pO#W!pO#X!pO#[5}O#]!zO(U!lO(VTO(YUO(e!mO(o!sO~O!^5|O~P%;eOn6TO!_1oO%i6SO~Oh%VOn6TO!_1oO%i6SO~Ob6[O(T#nO(VTO(YUO!]\x27sX!^\x27sX~O!]1zO!^)Va~O(VTO(YUO(e6^O~O`6bO~Oj6eO&[6fO~PNXO!k6gO~P%[Oa6iO~Oa6iO~P%[Ob2bO!^6nO&j2aO~P`O!g6pO~O!g6rOh(ji!](ji!^(ji!g(ji!l(jir(ji(r(ji~O!]#hi!^#hi~P#BwO#`6sO!]#hi!^#hi~O!]!ai!^!ai~P#BwOa%nO#`6|O\x27z%nO~Oa%nO!g#vO#`6|O\x27z%nO~O!](tq!k(tqa(tq\x27z(tq~P!:tO!](jO!k(sq~O!S%hO!_%iO#j7TO(T%gO~O!_\x27`O%i7WO~On7[O!_\x27`O%i7WO~O#k\x27iaP\x27iaR\x27ia[\x27iaa\x27iaj\x27iar\x27ia!S\x27ia!l\x27ia!p\x27ia#R\x27ia#n\x27ia#o\x27ia#p\x27ia#q\x27ia#r\x27ia#s\x27ia#t\x27ia#u\x27ia#v\x27ia#x\x27ia#z\x27ia#{\x27ia\x27z\x27ia(a\x27ia(r\x27ia!k\x27ia!Y\x27ia\x27w\x27iav\x27ia!_\x27ia%i\x27ia!g\x27ia~P%-fO#k\x27kaP\x27kaR\x27ka[\x27kaa\x27kaj\x27kar\x27ka!S\x27ka!l\x27ka!p\x27ka#R\x27ka#n\x27ka#o\x27ka#p\x27ka#q\x27ka#r\x27ka#s\x27ka#t\x27ka#u\x27ka#v\x27ka#x\x27ka#z\x27ka#{\x27ka\x27z\x27ka(a\x27ka(r\x27ka!k\x27ka!Y\x27ka\x27w\x27kav\x27ka!_\x27ka%i\x27ka!g\x27ka~P%.XO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i\x27z$|i(a$|i(r$|i!k$|i!Y$|i\x27w$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/sO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai\x27z%ai(a%ai(r%ai!k%ai!Y%ai\x27w%aiv%ai!_%ai%i%ai!g%ai~P%5oO#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci\x27z%ci(a%ci(r%ci!k%ci!Y%ci\x27w%civ%ci!_%ci%i%ci!g%ci~P%6bO!]\x27Ya!k\x27Ya~P!:tO!].tO!k(ki~O$O#ci!]#ci!^#ci~P#BwOP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(aVO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#n#mi~P%NdO#n<_O~P%NdOP$[OR#zOr<kO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#r#mi~P&!lO#r<aO~P&!lOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO(aVO#x#mi#z#mi#{#mi$O#mi(r#mi(y#mi(z#mi!]#mi!^#mi~O#v#mi~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO(aVO(z#}O#z#mi#{#mi$O#mi(r#mi(y#mi!]#mi!^#mi~O#x<eO~P&&uO#x#mi~P&&uO#v<cO~P&$tOP$[OR#zO[<mOj<bOr<kO!Q#yO!S#{O!l#xO!p$[O#R<bO#n<_O#o<`O#p<`O#q<`O#r<aO#s<bO#t<bO#u<lO#v<cO#x<eO(aVO(y#|O(z#}O#{#mi$O#mi(r#mi!]#mi!^#mi~O#z#mi~P&)UO#z<gO~P&)UOa#|y!]#|y\x27z#|y\x27w#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:tO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(r#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<_O#o<`O#p<`O#q<`O(aVO(y#mi(z#mi~P&,QOn>^O!Q*OO\x27y*PO(y$}O(z%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(a#mi~P&,QO#S$dOP(`XR(`X[(`Xj(`Xn(`Xr(`X!Q(`X!S(`X!l(`X!p(`X#R(`X#n(`X#o(`X#p(`X#q(`X#r(`X#s(`X#t(`X#u(`X#v(`X#x(`X#z(`X#{(`X$O(`X\x27y(`X(a(`X(r(`X(y(`X(z(`X!](`X!^(`X~O$O$Pi!]$Pi!^$Pi~P#BwO$O!ri!^!ri~P$+oOg\x27]a!]\x27]a~P!1WO!^7nO~O!]\x27da!^\x27da~P#BwO!Y7oO~P#/sO!g#vO(r\x27pO!]\x27ea!k\x27ea~O!]/pO!k)Oi~O!]/pO!g#vO!k)Oi~Og$|q!]$|q#`$|q$O$|q~P!1WO!Y\x27ga!]\x27ga~P#/sO!g7vO~O!]/yO!Y)Pi~P#/sO!]/yO!Y)Pi~O!Y7yO~Oh%VOr8OO!l%eO(r\x27pO~Oj8QO!g#vO~Or8TO!g#vO(r\x27pO~O!Q*OO\x27y*PO(z%POn\x27ja(y\x27ja!]\x27ja#`\x27ja~Og\x27ja$O\x27ja~P&5RO!Q*OO\x27y*POn\x27la(y\x27la(z\x27la!]\x27la#`\x27la~Og\x27la$O\x27la~P&5tOg(_q!](_q~P!1WO#`8VOg(_q!](_q~P!1WO!Y8WO~Og%Oq!]%Oq#`%Oq$O%Oq~P!1WOa$oy!]$oy\x27z$oy\x27w$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:tO!g6rO~O!]5[O!_)Qa~O!_\x27`OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(a$Ta(r$Ta(y$Ta(z$Ta~O%i7WO~P&8fO%^8[Oa%[i!_%[i\x27z%[i!]%[i~Oa#cy!]#cy\x27z#cy\x27w#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:tO[8^O~Ob8`O(T+qO(VTO(YUO~O!]1TO!^)Xi~O`8dO~O(e(|O!]\x27pX!^\x27pX~O!]5uO!^)Ua~O!^8nO~P%;eO(o!sO~P$&YO#[8oO~O!_1oO~O!_1oO%i8qO~On8tO!_1oO%i8qO~O[8yO!]\x27sa!^\x27sa~O!]1zO!^)Vi~O!k8}O~O!k9OO~O!k9RO~O!k9RO~P%[Oa9TO~O!g9UO~O!k9VO~O!](wi!^(wi~P#BwOa%nO#`9_O\x27z%nO~O!](ty!k(tya(ty\x27z(ty~P!:tO!](jO!k(sy~O%i9bO~P&8fO!_\x27`O%i9bO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q\x27z$|q(a$|q(r$|q!k$|q!Y$|q\x27w$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/sO#k\x27jaP\x27jaR\x27ja[\x27jaa\x27jaj\x27jar\x27ja!S\x27ja!l\x27ja!p\x27ja#R\x27ja#n\x27ja#o\x27ja#p\x27ja#q\x27ja#r\x27ja#s\x27ja#t\x27ja#u\x27ja#v\x27ja#x\x27ja#z\x27ja#{\x27ja\x27z\x27ja(a\x27ja(r\x27ja!k\x27ja!Y\x27ja\x27w\x27jav\x27ja!_\x27ja%i\x27ja!g\x27ja~P&5RO#k\x27laP\x27laR\x27la[\x27laa\x27laj\x27lar\x27la!S\x27la!l\x27la!p\x27la#R\x27la#n\x27la#o\x27la#p\x27la#q\x27la#r\x27la#s\x27la#t\x27la#u\x27la#v\x27la#x\x27la#z\x27la#{\x27la\x27z\x27la(a\x27la(r\x27la!k\x27la!Y\x27la\x27w\x27lav\x27la!_\x27la%i\x27la!g\x27la~P&5tO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq\x27z%Oq(a%Oq(r%Oq!k%Oq!Y%Oq\x27w%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/sO!]\x27Yi!k\x27Yi~P!:tO$O#cq!]#cq!^#cq~P#BwO(y$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(a%aa(r%aa!]%aa!^%aa~On%aa!Q%aa\x27y%aa(z%aa~P&IyO(z%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(a%ca(r%ca!]%ca!^%ca~On%ca!Q%ca\x27y%ca(y%ca~P&LQOn>^O!Q*OO\x27y*PO(z%PO~P&IyOn>^O!Q*OO\x27y*PO(y$}O~P&LQOR0kO!Q0kO!S0lO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a\x27y}a(a}a(r}a(y}a(z}a!]}a!^}a~O!Q*OO\x27y*POP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(a$sa(r$sa(y$sa(z$sa!]$sa!^$sa~O!Q*OO\x27y*POP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(a$ua(r$ua(y$ua(z$ua!]$ua!^$ua~On>^O!Q*OO\x27y*PO(y$}O(z%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(a%Ta(r%Ta!]%Ta!^%Ta~P\x27\x27VO$O$mq!]$mq!^$mq~P#BwO$O$oq!]$oq!^$oq~P#BwO!^9oO~O$O9pO~P!1WO!g#vO!]\x27ei!k\x27ei~O!g#vO(r\x27pO!]\x27ei!k\x27ei~O!]/pO!k)Oq~O!Y\x27gi!]\x27gi~P#/sO!]/yO!Y)Pq~Or9wO!g#vO(r\x27pO~O[9yO!Y9xO~P#/sO!Y9xO~Oj:PO!g#vO~Og(_y!](_y~P!1WO!]\x27na!_\x27na~P#/sOa%[q!_%[q\x27z%[q!]%[q~P#/sO[:UO~O!]1TO!^)Xq~O`:YO~O#`:ZO!]\x27pa!^\x27pa~O!]5uO!^)Ui~P#BwO!S:]O~O!_1oO%i:`O~O(VTO(YUO(e:eO~O!]1zO!^)Vq~O!k:hO~O!k:iO~O!k:jO~O!k:jO~P%[O#`:mO!]#hy!^#hy~O!]#hy!^#hy~P#BwO%i:rO~P&8fO!_\x27`O%i:rO~O$O#|y!]#|y!^#|y~P#BwOP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(a$|i(r$|i!]$|i!^$|i~P\x27\x27VO!Q*OO\x27y*PO(z%POP\x27iaR\x27ia[\x27iaj\x27ian\x27iar\x27ia!S\x27ia!l\x27ia!p\x27ia#R\x27ia#n\x27ia#o\x27ia#p\x27ia#q\x27ia#r\x27ia#s\x27ia#t\x27ia#u\x27ia#v\x27ia#x\x27ia#z\x27ia#{\x27ia$O\x27ia(a\x27ia(r\x27ia(y\x27ia!]\x27ia!^\x27ia~O!Q*OO\x27y*POP\x27kaR\x27ka[\x27kaj\x27kan\x27kar\x27ka!S\x27ka!l\x27ka!p\x27ka#R\x27ka#n\x27ka#o\x27ka#p\x27ka#q\x27ka#r\x27ka#s\x27ka#t\x27ka#u\x27ka#v\x27ka#x\x27ka#z\x27ka#{\x27ka$O\x27ka(a\x27ka(r\x27ka(y\x27ka(z\x27ka!]\x27ka!^\x27ka~O(y$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai\x27y%ai(a%ai(r%ai(z%ai!]%ai!^%ai~O(z%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci\x27y%ci(a%ci(r%ci(y%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#BwO$O#cy!]#cy!^#cy~P#BwO!g#vO!]\x27eq!k\x27eq~O!]/pO!k)Oy~O!Y\x27gq!]\x27gq~P#/sOr:|O!g#vO(r\x27pO~O[;QO!Y;PO~P#/sO!Y;PO~Og(_!R!](_!R~P!1WOa%[y!_%[y\x27z%[y!]%[y~P#/sO!]1TO!^)Xy~O!]5uO!^)Uq~O(T;XO~O!_1oO%i;[O~O!k;_O~O%i;dO~P&8fOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(a$|q(r$|q!]$|q!^$|q~P\x27\x27VO!Q*OO\x27y*PO(z%POP\x27jaR\x27ja[\x27jaj\x27jan\x27jar\x27ja!S\x27ja!l\x27ja!p\x27ja#R\x27ja#n\x27ja#o\x27ja#p\x27ja#q\x27ja#r\x27ja#s\x27ja#t\x27ja#u\x27ja#v\x27ja#x\x27ja#z\x27ja#{\x27ja$O\x27ja(a\x27ja(r\x27ja(y\x27ja!]\x27ja!^\x27ja~O!Q*OO\x27y*POP\x27laR\x27la[\x27laj\x27lan\x27lar\x27la!S\x27la!l\x27la!p\x27la#R\x27la#n\x27la#o\x27la#p\x27la#q\x27la#r\x27la#s\x27la#t\x27la#u\x27la#v\x27la#x\x27la#z\x27la#{\x27la$O\x27la(a\x27la(r\x27la(y\x27la(z\x27la!]\x27la!^\x27la~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(a%Oq(r%Oq!]%Oq!^%Oq~P\x27\x27VOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!1WO!Y;hO~P#/sOr;iO!g#vO(r\x27pO~O[;kO!Y;hO~P#/sO!]\x27pq!^\x27pq~P#BwO!]#h!Z!^#h!Z~P#BwO#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z\x27z%e!Z(a%e!Z(r%e!Z!k%e!Z!Y%e!Z\x27w%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/sOr;tO!g#vO(r\x27pO~O!Y;uO~P#/sOr;|O!g#vO(r\x27pO~O!Y;}O~P#/sOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(a%e!Z(r%e!Z!]%e!Z!^%e!Z~P\x27\x27VOr<QO!g#vO(r\x27pO~Ov(fX~P1qO!Q%rO~P!)[O(U!lO~P!)[O!YfX!]fX#`fX~P%2OOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(a]X(r]X(y]X(z]X~O!gfX!k]X!kfX(rfX~P\x27LTOP<UOQ<UOSfOd>ROe!iOpkOr<UOskOtkOzkO|<UO!O<UO!SWO!WkO!XkO!_XO!i<XO!lZO!o<UO!p<UO!q<UO!s<YO!u<]O!x!hO$W!kO$n>PO(T)]O(VTO(YUO(aVO(o[O~O!]<iO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<tO!S${O!_$|O!i>WO!l$xO#j<zO$W%`O$t<vO$v<xO$y%aO(T(vO(VTO(YUO(a$uO(y$}O(z%PO~Ol)dO~P(!yOr!eX(r!eX~P#!iOr(jX(r(jX~P##[O!^]X!^fX~P\x27LTO!YfX!Y$zX!]fX!]$zX#`fX~P!0SO#k<^O~O!g#vO#k<^O~O#`<nO~Oj<bO~O#`=OO!](wX!^(wX~O#`<nO!](uX!^(uX~O#k=PO~Og=RO~P!1WO#k=XO~O#k=YO~Og=RO(T&ZO~O!g#vO#k=ZO~O!g#vO#k=PO~O$O=[O~P#BwO#k=]O~O#k=^O~O#k=cO~O#k=dO~O#k=eO~O#k=fO~O$O=gO~P!1WO$O=hO~P!1WOl=sO~P7eOk#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~(OT#o!X\x27|(U#ps#n#qr!Q\x27}$]\x27}(T$_(e~','goto':'$9Y)]PPPPPP)^PP)aP)rP+W/]PPPP6mPP7TPP=QPPP@tPA^PA^PPPA^PCfPA^PA^PA^PCjPCoPD^PIWPPPI[PPPPI[L_PPPLeMVPI[PI[PP!\x20eI[PPPI[PI[P!#lI[P!\x27S!(X!(bP!)U!)Y!)U!,gPPPPPPP!-W!(XPP!-h!/YP!2iI[I[!2n!5z!:h!:h!>gPPP!>oI[PPPPPPPPP!BOP!C]PPI[!DnPI[PI[I[I[I[I[PI[!FQP!I[P!LbP!Lf!Lp!Lt!LtP!IXP!Lx!LxP#!OP#!SI[PI[#!Y#%_CjA^PA^PA^A^P#&lA^A^#)OA^#+vA^#.SA^A^#.r#1W#1W#1]#1f#1W#1qPP#1WPA^#2ZA^#6YA^A^6mPPP#:_PPP#:x#:xP#:xP#;`#:xPP#;fP#;]P#;]#;y#;]#<e#<k#<n)aP#<q)aP#<z#<z#<zP)aP)aP)aP)aPP)aP#=Q#=TP#=T)aP#=XP#=[P)aP)aP)aP)aP)aP)a)aPP#=b#=h#=s#=y#>P#>V#>]#>k#>q#>{#?R#?]#?c#?s#?y#@k#@}#AT#AZ#Ai#BO#Cs#DR#DY#Et#FS#Gt#HS#HY#H`#Hf#Hp#Hv#H|#IW#Ij#IpPPPPPPPPPPP#IvPPPPPPP#Jk#Mx$\x20b$\x20i$\x20qPPP$\x27]P$\x27f$*_$0x$0{$1O$1}$2Q$2X$2aP$2g$2jP$3W$3[$4S$5b$5g$5}PP$6S$6Y$6^$6a$6e$6i$7e$7|$8e$8i$8l$8o$8y$8|$9Q$9UR!|RoqOXst!Z#d%m&r&t&u&w,s,x2[2_Y!vQ\x27`-e1o5{Q%tvQ%|yQ&T|Q&j!VS\x27W!e-]Q\x27f!iS\x27l!r!yU*k$|*Z*oQ+o%}S+|&V&WQ,d&dQ-c\x27_Q-m\x27gQ-u\x27mQ0[*qQ1b,OQ1y,eR<{<Y%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_S#q]<V!r)_$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU+P%]<s<tQ+t&PQ,f&gQ,m&oQ0x+gQ0}+iQ1Y+uQ2R,kQ3`.gQ5`0|Q5f1TQ6[1zQ7Y3dQ8`5gR9e7[\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S!S!nQ!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*k*o*q*r-]-c-e-u0[0_1o5{5}%[$ti#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q&X|Q\x27U!eS\x27[%i-`Q+t&PQ,P&WQ,f&gQ0n+SQ1Y+uQ1_+{Q2Q,jQ2R,kQ5f1TQ5o1aQ6[1zQ6_1|Q6`2PQ8`5gQ8c5lQ8|6bQ:X8dQ:f8yQ;V:YR<}*ZrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R,h&k&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>R>S[#]WZ#W#Z\x27X(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ%wxQ%{yW&Q|&V&W,OQ&_!TQ\x27c!hQ\x27e!iQ(q#sS+n%|%}Q+r&PQ,_&bQ,c&dS-l\x27f\x27gQ.i(rQ1R+oQ1X+uQ1Z+vQ1^+zQ1t,`S1x,d,eQ2|-mQ5e1TQ5i1WQ5n1`Q6Z1yQ8_5gQ8b5kQ8f5pQ:T8^R;T:U!U$zi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y!^%yy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{Q+h%wQ,T&[Q,W&]Q,b&dQ.h(qQ1s,_U1w,c,d,eQ3e.iQ6U1tS6Y1x1yQ8x6Z#f>T#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o>U<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hW%Ti%V*y>PS&[!Q&iQ&]!RQ&^!SU*}%[%d=sR,R&Y%]%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^T)z$u){V+P%]<s<tW\x27[!e%i*Z-`S(}#y#zQ+c%rQ+y&SS.b(m(nQ1j,XQ5T0kR8i5u\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S$i$^c#Y#e%q%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.|.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vT#TV#U\x27RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ\x27Y!eR2q-]!W!nQ!e!r!v!y!z$|\x27W\x27_\x27`\x27l\x27m\x27n*Z*k*o*q*r-]-c-e-u0[0_1o5{5}R1l,ZnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&y!^Q\x27v!xS(s#u<^Q+l%zQ,]&_Q,^&aQ-j\x27dQ-w\x27oS.r(x=PS0q+X=ZQ1P+mQ1n,[Q2c,zQ2e,{Q2m-WQ2z-kQ2}-oS5Y0r=eQ5a1QS5d1S=fQ6t2oQ6x2{Q6}3SQ8]5bQ9Y6vQ9Z6yQ9^7OR:l9V$d$]c#Y#e%s%u(S(Y(t(y)R)S)T)U)V)W)X)Y)Z)[)^)`)b)g)q+d+x-Z-x-}.S.U.s.v.z.}/O/b0p2k2n3O3V3k3p3q3r3s3t3u3v3w3x3y3z3{3|4P4Q4X5X5c6u6{7Q7a7b7k7l8k9X9]9g9m9n:o;W;`<W=vS(o#p\x27iQ)P#zS+b%q.|S.c(n(pR3^.d\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS#q]<VQ&t!XQ&u!YQ&w![Q&x!]R2Z,vQ\x27a!hQ+e%wQ-h\x27cS.e(q+hQ2x-gW3b.h.i0w0yQ6w2yW7U3_3a3e5^U9a7V7X7ZU:q9c9d9fS;b:p:sQ;p;cR;x;qU!wQ\x27`-eT5y1o5{!Q_OXZ`st!V!Z#d#h%e%m&i&k&r&t&u&w(j,s,x.[2[2_]!pQ!r\x27`-e1o5{T#q]<V%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S(}#y#zS.b(m(n!s=l$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SU$fd)_,mS(p#p\x27iU*v%R(w4OU0m+O.n7gQ5^0xQ7V3`Q9d7YR:s9em!tQ!r!v!y!z\x27`\x27l\x27m\x27n-e-u1o5{5}Q\x27t!uS(f#g2US-s\x27k\x27wQ/s*]Q0R*jQ3U-vQ4f/tQ4r0TQ4s0UQ4x0^Q7r4`S7}4t4vS8R4y4{Q9r7sQ9v7yQ9{8OQ:Q8TS:{9w9xS;g:|;PS;s;h;iS;{;t;uS<P;|;}R<S<QQ#wbQ\x27s!uS(e#g2US(g#m+WQ+Y%fQ+j%xQ+p&OU-r\x27k\x27t\x27wQ.W(fU/r*]*`/wQ0S*jQ0V*lQ1O+kQ1u,aS3R-s-vQ3Z.`S4e/s/tQ4n0PS4q0R0^Q4u0WQ6W1vQ7P3US7q4`4bQ7u4fU7|4r4x4{Q8P4wQ8v6XS9q7r7sQ9u7yQ9}8RQ:O8SQ:c8wQ:y9rS:z9v9xQ;S:QQ;^:dS;f:{;PS;r;g;hS;z;s;uS<O;{;}Q<R<PQ<T<SQ=o=jQ={=tR=|=uV!wQ\x27`-e%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_S#wz!j!r=i$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=o>R%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Q%fj!^%xy!i!u%{%|%}\x27V\x27e\x27f\x27g\x27k\x27u*j+n+o-Y-l-m-t0R0U1R2u2|3T4r4s4v7}9{S&Oz!jQ+k%yQ,a&dW1v,b,c,d,eU6X1w1x1yS8w6Y6ZQ:d8x!r=j$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ=t>QR=u>R%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_Y#bWZ#W#Z(T!b%jm#h#i#l$x%e%h(^(h(i(j*Y*^*b+Z+[+^,o-V.T.Z.[.]._/m/p2d3[3]4a6r7TQ,n&o!p=k$Z$n)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SR=n\x27XU\x27]!e%i*ZR2s-`%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+],p,s,x-i-q.P.V.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3l4z6T6e6f6i6|8t9T9_!r)_$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SQ,m&oQ0x+gQ3`.gQ7Y3dR9e7[!b$Tc#Y%q(S(Y(t(y)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!P<d)^)q-Z.|2k2n3p3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!f$Vc#Y%q(S(Y(t(y)W)X)Z)[)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<W!T<f)^)q-Z.|2k2n3p3v3w3y3z4P4X6u7b7k7l8k9X9g9m9n;W;`=v!^$Zc#Y%q(S(Y(t(y)`)g+x-x-}.S.U.s.v/b0p3O3V3k3{5X5c6{7Q7a9]:o<WQ4_/kz>S)^)q-Z.|2k2n3p4P4X6u7b7k7l8k9X9g9m9n;W;`=vQ>X>ZR>Y>[\x27QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>SS$oh$pR4U/U\x27XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$kf$qQ$ifS)j$l)nR)v$qT$jf$qT)l$l)n\x27XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%m%t&R&k&n&o&r&t&u&w&{\x27T\x27X\x27b\x27r(T(V(](d(x(z)O)s)}*i+X+]+g,p,s,x-U-X-i-q.P.V.g.t.{/U/V/n0]0l0r1S1r2S2T2V2X2[2_2a2p3Q3W3d3l4T4z5w6T6e6f6i6s6|7[8t9T9_:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>ST$oh$pQ$rhR)u$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%m%t&R&k&n&o&r&t&u&w&{\x27T\x27b\x27r(T(V(](d(x(z)O)}*i+X+]+g,p,s,x-i-q.P.V.g.t.{/n0]0l0r1S1r2S2T2V2X2[2_2a3Q3W3d3l4z6T6e6f6i6|7[8t9T9_!s>Q$Z$n\x27X)s-U-X/V2p4T5w6s:Z:m<U<X<Y<]<^<_<`<a<b<c<d<e<f<g<h<i<k<n<{=O=P=R=Z=[=e=f>S#glOPXZst!Z!`!o#S#d#o#{$n%m&k&n&o&r&t&u&w&{\x27T\x27b)O)s*i+]+g,p,s,x-i.g/V/n0]0l1r2S2T2V2X2[2_2a3d4T4z6T6e6f6i7[8t9T!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^Q+T%aQ/c*Oo4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!U$yi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>YQ*c$zU*l$|*Z*oQ+U%bQ0W*m#f=q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n=r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hQ=w>TQ=x>UQ=y>VR=z>W!U%Ri$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y#f(w#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^o4O<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=hnoOXst!Z#d%m&r&t&u&w,s,x2[2_S*f${*YQ-R\x27OQ-S\x27QR4i/y%[%Si#v$b$c$d$x${%O%Q%^%_%c)y*R*T*V*Y*a*g*w*x+f+i,S,V.f/P/d/m/x/y/{0`0b0i0j0o1f1i1q3c4^4_4j4o5Q5[5_6S7W7v8Q8V8[8q9b9p9y:P:`:r;Q;[;d;k<l<m<o<p<q<r<u<v<w<x<y<z=S=T=U=V=X=Y=]=^=_=`=a=b=c=d=g=h>P>X>Y>]>^Q,U&]Q1h,WQ5s1gR8h5tV*n$|*Z*oU*n$|*Z*oT5z1o5{S0P*i/nQ4w0]T8S4z:]Q+j%xQ0V*lQ1O+kQ1u,aQ6W1vQ8v6XQ:c8wR;^:d!U%Oi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Yx*R$v)e*S*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>OS0`*t0a#f<o#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<p<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!d=S(u)c*[*e.j.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[`=T3}7c7f7j9h:t:w;yS=_.l3iT=`7e9k!U%Qi$d%O%Q%^%_%c*R*T*a*w*x/P/x0`0b0i0j0o4_5Q8V9p>P>X>Y|*T$v)e*U*t+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>OS0b*u0c#f<q#v$b$c$x${)y*V*Y*g+f+i,S,V.f/d/m/y/{1f1i1q3c4^4j4o5[5_6S7W7v8Q8[8q9b9y:P:`:r;Q;[;d;k<o<q<u<w<y=S=U=X=]=_=a=c=g>]>^n<r<l<m<p<r<v<x<z=T=V=Y=^=`=b=d=h!h=U(u)c*[*e.k.l.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[d=V3}7d7e7j9h9i:t:u:w;yS=a.m3jT=b7f9lrnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q&f!UR,p&ornOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_R&f!UQ,Y&^R1d,RsnOXst!V!Z#d%m&i&r&t&u&w,s,x2[2_Q1p,_S6R1s1tU8p6P6Q6US:_8r8sS;Y:^:aQ;m;ZR;w;nQ&m!VR,i&iR6_1|R:f8yW&Q|&V&W,OR1Z+vQ&r!WR,s&sR,y&xT2],x2_R,}&yQ,|&yR2f,}Q\x27y!{R-y\x27ySsOtQ#dXT%ps#dQ#OTR\x27{#OQ#RUR\x27}#RQ){$uR/`){Q#UVR(Q#UQ#XWU(W#X(X.QQ(X#YR.Q(YQ-^\x27YR2r-^Q.u(yS3m.u3nR3n.vQ-e\x27`R2v-eY!rQ\x27`-e1o5{R\x27j!rQ/Q)eR4S/QU#_W%h*YU(_#_(`.RQ(`#`R.R(ZQ-a\x27]R2t-at`OXst!V!Z#d%m&i&k&r&t&u&w,s,x2[2_S#hZ%eU#r`#h.[R.[(jQ(k#jQ.X(gW.a(k.X3X7RQ3X.YR7R3YQ)n$lR/W)nQ$phR)t$pQ$`cU)a$`-|<jQ-|<WR<j)qQ/q*]W4c/q4d7t9sU4d/r/s/tS7t4e4fR9s7u$e*Q$v(u)c)e*[*e*t*u+Q+R+V.l.m.o.p.q/_/g/i/k/v/|0d0e0v1e3f3g3h3}4R4[4g4h4l4|5O5R5S5W5r7]7^7_7`7e7f7h7i7j7p7w7z8U8X8Z9h9i9j9t9|:R:S:t:u:v:w:x:};R;e;j;v;y=p=}>O>Z>[Q/z*eU4k/z4m7xQ4m/|R7x4lS*o$|*ZR0Y*ox*S$v)e*t*u+V/v0d0e4R4g5R5S5W7p8U:R:x=p=}>O!d.j(u)c*[*e.l.m.q/_/k/|0v1e3h4[4h4l5r7]7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/h*S.j7ca7c3}7e7f7j9h:t:w;yQ0a*tQ3i.lU4}0a3i9kR9k7e|*U$v)e*t*u+V/g/v0d0e4R4g4|5R5S5W7p8U:R:x=p=}>O!h.k(u)c*[*e.l.m.q/_/k/|0v1e3f3h4[4h4l5r7]7^7`7w7z8X8Z9t9|:S:};R;e;j;v>Z>[U/j*U.k7de7d3}7e7f7j9h9i:t:u:w;yQ0c*uQ3j.mU5P0c3j9lR9l7fQ*z%UR0g*zQ5]0vR8Y5]Q+_%kR0u+_Q5v1jS8j5v:[R:[8kQ,[&_R1m,[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ\x27P!bQ\x27R!cQ\x27q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p\x27k\x27s\x27t\x27wQ-w\x27oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ\x27d!iQ\x27o!uU+m%{%|%}Q-W\x27VU-k\x27e\x27f\x27gS-o\x27k\x27uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.l<oQ.m<qQ.o<uQ.p<wQ.q<yQ/_)yQ/g*RQ/i*TQ/k*VQ/v*aS/|*g/mQ0d*wQ0e*xl0v+f,V.f1i1q3c6S7W8q9b:`:r;[;dQ1e,SQ3f=SQ3g=UQ3h=XS3}<l<mQ4R/PS4[/d4^Q4g/xQ4h/yQ4l/{Q4|0`Q5O0bQ5R0iQ5S0jQ5W0oQ5r1fQ7]=]Q7^=_Q7_=aQ7`=cQ7e<pQ7f<rQ7h<vQ7i<xQ7j<zQ7p4_Q7w4jQ7z4oQ8U5QQ8X5[Q8Z5_Q9h=YQ9i=TQ9j=VQ9t7vQ9|8QQ:R8VQ:S8[Q:t=^Q:u=`Q:v=bQ:w=dQ:x9pQ:}9yQ;R:PQ;e=gQ;j;QQ;v;kQ;y=hQ=p>PQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.n<sR7g<tnpOXst!Z#d%m&r&t&u&w,s,x2[2_Q!fPS#fZ#oQ&|!`W\x27h!o*i0]4zQ(P#SQ)Q#{Q)r$nS,l&k&nQ,q&oQ-O&{S-T\x27T/nQ-g\x27bQ.x)OQ/[)sQ0s+]Q0y+gQ2W,pQ2y-iQ3a.gQ4W/VQ5U0lQ6Q1rQ6c2SQ6d2TQ6h2VQ6j2XQ6o2aQ7Z3dQ7m4TQ8s6TQ9P6eQ9Q6fQ9S6iQ9f7[Q:a8tR:k9T#[cOPXZst!Z!`!o#d#o#{%m&k&n&o&r&t&u&w&{\x27T\x27b)O*i+]+g,p,s,x-i.g/n0]0l1r2S2T2V2X2[2_2a3d4z6T6e6f6i7[8t9TQ#YWQ#eYQ%quQ%svS%uw!gS(S#W(VQ(Y#ZQ(t#uQ(y#xQ)R$OQ)S$PQ)T$QQ)U$RQ)V$SQ)W$TQ)X$UQ)Y$VQ)Z$WQ)[$XQ)^$ZQ)`$_Q)b$aQ)g$eW)q$n)s/V4TQ+d%tQ+x&RS-Z\x27X2pQ-x\x27rS-}(T.PQ.S(]Q.U(dQ.s(xQ.v(zQ.z<UQ.|<XQ.}<YQ/O<]Q/b)}Q0p+XQ2k-UQ2n-XQ3O-qQ3V.VQ3k.tQ3p<^Q3q<_Q3r<`Q3s<aQ3t<bQ3u<cQ3v<dQ3w<eQ3x<fQ3y<gQ3z<hQ3{.{Q3|<kQ4P<nQ4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR\x27Z!el!tQ!r!v!y!z\x27`\x27l\x27m\x27n-e-u1o5{5}S\x27V!e-]U*j$|*Z*oS-Y\x27W\x27_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d\x27`-e]!qQ!r\x27`-e1o5{Q#p]R\x27i<VR)f$dY!uQ\x27`-e1o5{Q\x27k!rS\x27u!v!yS\x27w!z5}S-t\x27l\x27mQ-v\x27nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m\x27X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-[\x27X+[T.O(T.TV\x27^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_','nodeNames':'⚠\x20ArithOp\x20ArithOp\x20?.\x20JSXStartTag\x20LineComment\x20BlockComment\x20Script\x20Hashbang\x20ExportDeclaration\x20export\x20Star\x20as\x20VariableName\x20String\x20Escape\x20from\x20;\x20default\x20FunctionDeclaration\x20async\x20function\x20VariableDefinition\x20>\x20<\x20TypeParamList\x20in\x20out\x20const\x20TypeDefinition\x20extends\x20ThisType\x20this\x20LiteralType\x20ArithOp\x20Number\x20BooleanLiteral\x20TemplateType\x20InterpolationEnd\x20Interpolation\x20InterpolationStart\x20NullType\x20null\x20VoidType\x20void\x20TypeofType\x20typeof\x20MemberExpression\x20.\x20PropertyName\x20[\x20TemplateString\x20Escape\x20Interpolation\x20super\x20RegExp\x20]\x20ArrayExpression\x20Spread\x20,\x20}\x20{\x20ObjectExpression\x20Property\x20async\x20get\x20set\x20PropertyDefinition\x20Block\x20:\x20NewTarget\x20new\x20NewExpression\x20)\x20(\x20ArgList\x20UnaryExpression\x20delete\x20LogicOp\x20BitOp\x20YieldExpression\x20yield\x20AwaitExpression\x20await\x20ParenthesizedExpression\x20ClassExpression\x20class\x20ClassBody\x20MethodDeclaration\x20Decorator\x20@\x20MemberExpression\x20PrivatePropertyName\x20CallExpression\x20TypeArgList\x20CompareOp\x20<\x20declare\x20Privacy\x20static\x20abstract\x20override\x20PrivatePropertyDefinition\x20PropertyDeclaration\x20readonly\x20accessor\x20Optional\x20TypeAnnotation\x20Equals\x20StaticBlock\x20FunctionExpression\x20ArrowFunction\x20ParamList\x20ParamList\x20ArrayPattern\x20ObjectPattern\x20PatternProperty\x20Privacy\x20readonly\x20Arrow\x20MemberExpression\x20BinaryExpression\x20ArithOp\x20ArithOp\x20ArithOp\x20ArithOp\x20BitOp\x20CompareOp\x20instanceof\x20satisfies\x20CompareOp\x20BitOp\x20BitOp\x20BitOp\x20LogicOp\x20LogicOp\x20ConditionalExpression\x20LogicOp\x20LogicOp\x20AssignmentExpression\x20UpdateOp\x20PostfixExpression\x20CallExpression\x20InstantiationExpression\x20TaggedTemplateExpression\x20DynamicImport\x20import\x20ImportMeta\x20JSXElement\x20JSXSelfCloseEndTag\x20JSXSelfClosingTag\x20JSXIdentifier\x20JSXBuiltin\x20JSXIdentifier\x20JSXNamespacedName\x20JSXMemberExpression\x20JSXSpreadAttribute\x20JSXAttribute\x20JSXAttributeValue\x20JSXEscape\x20JSXEndTag\x20JSXOpenTag\x20JSXFragmentTag\x20JSXText\x20JSXEscape\x20JSXStartCloseTag\x20JSXCloseTag\x20PrefixCast\x20<\x20ArrowFunction\x20TypeParamList\x20SequenceExpression\x20InstantiationExpression\x20KeyofType\x20keyof\x20UniqueType\x20unique\x20ImportType\x20InferredType\x20infer\x20TypeName\x20ParenthesizedType\x20FunctionSignature\x20ParamList\x20NewSignature\x20IndexedType\x20TupleType\x20Label\x20ArrayType\x20ReadonlyType\x20ObjectType\x20MethodType\x20PropertyType\x20IndexSignature\x20PropertyDefinition\x20CallSignature\x20TypePredicate\x20asserts\x20is\x20NewSignature\x20new\x20UnionType\x20LogicOp\x20IntersectionType\x20LogicOp\x20ConditionalType\x20ParameterizedType\x20ClassDeclaration\x20abstract\x20implements\x20type\x20VariableDeclaration\x20let\x20var\x20using\x20TypeAliasDeclaration\x20InterfaceDeclaration\x20interface\x20EnumDeclaration\x20enum\x20EnumBody\x20NamespaceDeclaration\x20namespace\x20module\x20AmbientDeclaration\x20declare\x20GlobalDeclaration\x20global\x20ClassDeclaration\x20ClassBody\x20AmbientFunctionDeclaration\x20ExportGroup\x20VariableName\x20VariableName\x20ImportDeclaration\x20defer\x20ImportGroup\x20ForStatement\x20for\x20ForSpec\x20ForInSpec\x20ForOfSpec\x20of\x20WhileStatement\x20while\x20WithStatement\x20with\x20DoStatement\x20do\x20IfStatement\x20if\x20else\x20SwitchStatement\x20switch\x20SwitchBody\x20CaseLabel\x20case\x20DefaultLabel\x20TryStatement\x20try\x20CatchClause\x20catch\x20FinallyClause\x20finally\x20ReturnStatement\x20return\x20ThrowStatement\x20throw\x20BreakStatement\x20break\x20ContinueStatement\x20continue\x20DebuggerStatement\x20debugger\x20LabeledStatement\x20ExpressionStatement\x20SingleExpression\x20SingleClassItem','maxTerm':0x17c,'context':trackNewline,'nodeProps':[['isolate',-0x8,0x5,0x6,0xe,0x25,0x27,0x33,0x35,0x37,''],['group',-0x1a,0x9,0x11,0x13,0x44,0xcf,0xd3,0xd7,0xd8,0xda,0xdd,0xe0,0xea,0xed,0xf3,0xf5,0xf7,0xf9,0xfc,0x102,0x108,0x10a,0x10c,0x10e,0x110,0x112,0x113,'Statement',-0x22,0xd,0xe,0x20,0x23,0x24,0x2a,0x33,0x36,0x37,0x39,0x3e,0x46,0x48,0x4c,0x50,0x52,0x54,0x55,0x6e,0x6f,0x78,0x79,0x88,0x8b,0x8d,0x8e,0x8f,0x90,0x91,0x93,0x94,0xa7,0xa9,0xab,'Expression',-0x17,0x1f,0x21,0x25,0x29,0x2b,0x2d,0xad,0xaf,0xb1,0xb2,0xb4,0xb5,0xb6,0xb8,0xb9,0xba,0xbc,0xbd,0xbe,0xc9,0xcb,0xcd,0xce,'Type',-0x3,0x58,0x67,0x6d,'ClassItem'],['openedBy',0x17,'<',0x26,'InterpolationStart',0x38,'[',0x3c,'{',0x49,'(',0xa0,'JSXStartCloseTag'],['closedBy',-0x2,0x18,0xa8,'>',0x28,'InterpolationEnd',0x32,']',0x3d,'}',0x4a,')',0xa5,'JSXEndTag']],'propSources':[jsHighlight],'skippedNodes':[0x0,0x5,0x6,0x116],'repeatNodeCount':0x25,'tokenData':'$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx!\x20Yxy!\x27iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;\x27SEr;\x27S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c&j&zP;=`<%l&c\x27|\x27U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}!b(SU(Z!bOY\x27}Zw\x27}x#O\x27}#P;\x27S\x27};\x27S;=`(f<%lO\x27}!b(iP;=`<%l\x27}\x27|(oP;=`<%l&}\x27[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(rp)wU(WpOY)rZr)rs#O)r#P;\x27S)r;\x27S;=`*Z<%lO)rp*^P;=`<%l)r\x27[*dP;=`<%l(r#S*nX(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Wp(Z!b\x27|0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;\x27S%Z;\x27S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(X#S$i&j\x27}0/lO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c07[.n_$i&j(Wp(Z!b\x27}0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27At3l_(V\x27:f$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;\x27S4k;\x27S;=`:X<%lO4k(^4r_$i&j(Z!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;\x27S4k;\x27S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;\x27S5q;\x27S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c`6|TOr6yrs7]s;\x27S6y;\x27S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}!r8uZ(Z!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;\x27S8p;\x27S;=`:R<%lO8p!r9oU$d`(Z!bOY\x27}Zw\x27}x#O\x27}#P;\x27S\x27};\x27S;=`(f<%lO\x27}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Wp(Z!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;\x27SCr;\x27S;=`El<%lOCr(r<__WS$i&j(Wp(Z!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;\x27S<S;\x27S;=`Cl<%lO<S(Q=g]WS$i&j(Z!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;\x27S=^;\x27S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;\x27S>`;\x27S;=`?k<%lO>`S?XSWSOY?SZ;\x27S?S;\x27S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Z!bOY?qZw?qwx?Sx#O?q#O#P?S#P;\x27S?q;\x27S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^\x27`@w]WS$i&j(WpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;\x27S@n;\x27S;=`Bg<%lO@ntAwWWS(WpOYApZrAprs?Ss#OAp#O#P?S#P;\x27SAp;\x27S;=`Ba<%lOAptBdP;=`<%lAp\x27`BjP;=`<%l@n#WBvYWS(Wp(Z!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;\x27SBm;\x27S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(o%1l(Wp(Z!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;\x27SCr;\x27S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Wp(Z!b$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;\x27SEr;\x27S;=`I|<%lOEr+dHRk$i&j(Wp(Z!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;\x27SGv;\x27S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Wp(Z!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z,#xLva(z+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27At!\x20c_(Y\x27;W$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;\x27S!!b;\x27S;=`!\x27c<%lO!!b\x27l!!i_$i&j(WpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;\x27S!!b;\x27S;=`!\x27c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;\x27S!#h;\x27S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;\x27S!$Y;\x27S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h\x27l!%R]$d`$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(r!Q!&PZ(WpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;\x27S!%z;\x27S;=`!\x27]<%lO!%z!Q!&yU$d`(WpOY)rZr)rs#O)r#P;\x27S)r;\x27S;=`*Z<%lO)r!Q!\x27`P;=`<%l!%z\x27l!\x27fP;=`<%l!!b/5|!\x27t_!l/.^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z-!n!*[b$i&j(Wp(Z!b(U%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW!+o`$i&j(Wp(Z!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z+;x!,|`$i&j(Wp(Z!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[!/ec$i&j(Wp(Z!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#%|!0ya$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!3eg$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!5Vg$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!6wc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad!8_c$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[!9uf$i&j(Wp(Z!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z?O!;fb$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z>^!<w`$i&j(Z!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;\x27S!<n;\x27S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;\x27S!=y;\x27S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;\x27S&c;\x27S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;\x27S!@c;\x27S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;\x27S!Ar;\x27S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;\x27S!Ar;\x27S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;\x27S!@c;\x27S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;\x27S!CW;\x27S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;\x27S!CW;\x27S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;\x27S!=y;\x27S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Z!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_\x27}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p\x27}#p;\x27S&};\x27S;=`(l<%lO&}8r!GyZ(Z!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;\x27S!Gr;\x27S;=`!J|<%lO!Gr8r!Hse(Z!b!X7`OY\x27}Zw\x27}x#O\x27}#P#W\x27}#W#X!Hl#X#Z\x27}#Z#[!Hl#[#]\x27}#]#^!Hl#^#a\x27}#a#b!Hl#b#g\x27}#g#h!Hl#h#i\x27}#i#j!Hl#j#k!Hl#k#m\x27}#m#n!Hl#n;\x27S\x27};\x27S;=`(f<%lO\x27}8r!JZX(Z!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;\x27S!JU;\x27S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Z!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;\x27S!KS;\x27S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Wp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_#\x20o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p#\x20o#p;\x27S!Lc;\x27S;=`#&Y<%lO!Lc=l!Mwl$i&j(Wp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;\x27S(r;\x27S;=`*a<%lO(r8Q#\x20vZ(Wp!X7`OY#\x20oZr#\x20ors!@cs!P#\x20o!P!Q#!i!Q!}#\x20o!}#O#$R#O#P!Bq#P;\x27S#\x20o;\x27S;=`#$y<%lO#\x20o8Q#!pe(Wp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;\x27S)r;\x27S;=`*Z<%lO)r8Q#$WX(WpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q#\x20o#Q;\x27S#$R;\x27S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l#\x20o=l#%W^$i&j(WpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;\x27S#%P;\x27S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Wp(Z!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z9d#(r](Wp(Z!b!X7`OY#(iZr#(irs!Grsw#(iwx#\x20ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;\x27S#(i;\x27S;=`#,`<%lO#(i9d#)th(Wp(Z!b!X7`OY*gZr*grs\x27}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;\x27S*g;\x27S;=`+Z<%lO*g9d#+gZ(Wp(Z!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;\x27S#+`;\x27S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Wp(Z!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;\x27S#,f;\x27S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Wp(Z!b(O0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z07[#/o_$i&j(Wp(Z!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;\x27S#/d;\x27S;=`#6|<%lO#/d06j#0w]$i&j(Z!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;\x27S#0n;\x27S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;\x27S#1p;\x27S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;\x27S#2d;\x27S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Z!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;\x27S#3R;\x27S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(WpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;\x27S#4O;\x27S;=`#5w<%lO#4O00^#5XW(WpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;\x27S#5Q;\x27S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Wp(Z!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;\x27S#5};\x27S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Wp(Z!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;\x27S!;Z;\x27S;=`#-w<%lO!;Z\x27Ad#:Zp$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#<jk$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#>j_$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#?rd$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#A]f$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Bzc$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Dbe$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#E|g$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z\x27Ad#Gpi$i&j(Wp(Z!bs\x279tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z)[#Jv_al$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Wp(Z!b$n7`OY*gZr*grs\x27}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$\x20f!`#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(n#MXX$k&j(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El#M}Z#r(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El#NyX$Q(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g(El$\x20oX#s(Ch(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$\x27f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$\x27qa#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(Kd$*`a(r(Ct$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;\x27S$0O;\x27S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;\x27S&c;\x27S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;\x27S&c;\x27S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;\x27S&c;\x27S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z+;p$7c_$i&j(Wp(Z!b(a+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[$8qk$i&j(Wp(Z!b(T,2j$_#t(e$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;\x27S$8b;\x27S;=`$<l<%lO$8b+d$:qk$i&j(Wp(Z!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;\x27S$:f;\x27S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Wp(Z!bOY*gZr*grs\x27}sw*gwx)rx#O*g#P;\x27S*g;\x27S;=`+Z<%lO*g,#x$=sa(y+JY$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;\x27S%Z;\x27S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z?O$@a_!q7`$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;\x27S%Z;\x27S;=`+a<%lO%Z07[$Aq|$i&j(Wp(Z!b\x27|0/l$]#t(T,2j(e$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;\x27SEr;\x27S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b\x27}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;\x27SEr;\x27S;=`I|<%lOEr','tokenizers':[noSemicolon,noSemicolonType,operatorToken,jsx,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,insertSemicolon,new LocalTokenGroup('$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;\x27S!P;\x27S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~',0x8d,0x154),new LocalTokenGroup('j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~',0x19,0x143)],'topRules':{'Script':[0x0,0x7],'SingleExpression':[0x1,0x114],'SingleClassItem':[0x2,0x115]},'dialects':{'jsx':0x0,'ts':0x3b47},'dynamicPrecedences':{0x50:0x1,0x52:0x1,0x5e:0x1,0xa9:0x1,0xc7:0x1},'specialized':[{'term':0x147,'get':_0x1091ee=>spec_identifier[_0x1091ee]||-0x1},{'term':0x157,'get':_0x5af114=>spec_word[_0x5af114]||-0x1},{'term':0x5f,'get':_0x1ae5ea=>spec_LessThan[_0x1ae5ea]||-0x1}],'tokenPrec':0x3b61}),snippets=[snippetCompletion('function\x20${name}(${params})\x20{\x0a\x09${}\x0a}',{'label':'function','detail':'definition','type':'keyword'}),snippetCompletion('for\x20(let\x20${index}\x20=\x200;\x20${index}\x20<\x20${bound};\x20${index}++)\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'loop','type':'keyword'}),snippetCompletion('for\x20(let\x20${name}\x20of\x20${collection})\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'of\x20loop','type':'keyword'}),snippetCompletion('do\x20{\x0a\x09${}\x0a}\x20while\x20(${})',{'label':'do','detail':'loop','type':'keyword'}),snippetCompletion('while\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'while','detail':'loop','type':'keyword'}),snippetCompletion('try\x20{\x0a\x09${}\x0a}\x20catch\x20(${error})\x20{\x0a\x09${}\x0a}',{'label':'try','detail':'/\x20catch\x20block','type':'keyword'}),snippetCompletion('if\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'block','type':'keyword'}),snippetCompletion('if\x20(${})\x20{\x0a\x09${}\x0a}\x20else\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'/\x20else\x20block','type':'keyword'}),snippetCompletion('class\x20${name}\x20{\x0a\x09constructor(${params})\x20{\x0a\x09\x09${}\x0a\x09}\x0a}',{'label':'class','detail':'definition','type':'keyword'}),snippetCompletion('import\x20{${names}}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'named','type':'keyword'}),snippetCompletion('import\x20${name}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'default','type':'keyword'})],typescriptSnippets=snippets['concat']([snippetCompletion('interface\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'interface','detail':'definition','type':'keyword'}),snippetCompletion('type\x20${name}\x20=\x20${type}',{'label':'type','detail':'definition','type':'keyword'}),snippetCompletion('enum\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'enum','detail':'definition','type':'keyword'})]),cache=new NodeWeakMap(),ScopeNodes=new Set(['Script','Block','FunctionExpression','FunctionDeclaration','ArrowFunction','MethodDeclaration','ForStatement']);function defID(_0x5c2248){return(_0x131077,_0x2bbe93)=>{let _0x2e64d0=_0x131077['node']['getChild']('VariableDefinition');return _0x2e64d0&&_0x2bbe93(_0x2e64d0,_0x5c2248),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0x411ace,_0x58e545){_0x411ace['matchContext'](functionContext)||_0x58e545(_0x411ace,'variable');},'TypeDefinition'(_0x3fcf63,_0x3c014e){_0x3c014e(_0x3fcf63,'type');},'__proto__':null};function getScope(_0xc529fc,_0x2e2742){let _0x3a12e5=cache['get'](_0x2e2742);if(_0x3a12e5)return _0x3a12e5;let _0x161cb4=[],_0x5a7d99=!0x0;function _0x62030a(_0x43e803,_0x507f40){let _0x126edf=_0xc529fc['sliceString'](_0x43e803['from'],_0x43e803['to']);_0x161cb4['push']({'label':_0x126edf,'type':_0x507f40});}return _0x2e2742['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x363d51=>{if(_0x5a7d99)_0x5a7d99=!0x1;else{if(_0x363d51['name']){let _0x10c5fe=gatherCompletions[_0x363d51['name']];if(_0x10c5fe&&_0x10c5fe(_0x363d51,_0x62030a)||ScopeNodes['has'](_0x363d51['name']))return!0x1;}else{if(_0x363d51['to']-_0x363d51['from']>0x2000){for(let _0x5c51 of getScope(_0xc529fc,_0x363d51['node']))_0x161cb4['push'](_0x5c51);return!0x1;}}}}),cache['set'](_0x2e2742,_0x161cb4),_0x161cb4;}const Identifier=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,dontComplete=['TemplateString','String','RegExp','LineComment','BlockComment','VariableDefinition','TypeDefinition','Label','PropertyDefinition','PropertyName','PrivatePropertyDefinition','PrivatePropertyName','JSXText','JSXAttributeValue','JSXOpenTag','JSXCloseTag','JSXSelfClosingTag','.','?.'];function localCompletionSource(_0x40bd99){let _0x407fae=syntaxTree(_0x40bd99['state'])['resolveInner'](_0x40bd99['pos'],-0x1);if(dontComplete['indexOf'](_0x407fae['name'])>-0x1)return null;let _0x84037d='VariableName'==_0x407fae['name']||_0x407fae['to']-_0x407fae['from']<0x14&&Identifier['test'](_0x40bd99['state']['sliceDoc'](_0x407fae['from'],_0x407fae['to']));if(!_0x84037d&&!_0x40bd99['explicit'])return null;let _0xdc993b=[];for(let _0x589189=_0x407fae;_0x589189;_0x589189=_0x589189['parent'])ScopeNodes['has'](_0x589189['name'])&&(_0xdc993b=_0xdc993b['concat'](getScope(_0x40bd99['state']['doc'],_0x589189)));return{'options':_0xdc993b,'from':_0x84037d?_0x407fae['from']:_0x40bd99['pos'],'validFor':Identifier};}const javascriptLanguage=LRLanguage['define']({'name':'javascript','parser':parser$1['configure']({'props':[indentNodeProp['add']({'IfStatement':continuedIndent({'except':/^\s*({|else\b)/}),'TryStatement':continuedIndent({'except':/^\s*({|catch\b|finally\b)/}),'LabeledStatement':flatIndent,'SwitchBody':_0x206cc7=>{let _0x2c18e4=_0x206cc7['textAfter'],_0x399844=/^\s*\}/['test'](_0x2c18e4),_0x1f96fe=/^\s*(case|default)\b/['test'](_0x2c18e4);return _0x206cc7['baseIndent']+(_0x399844?0x0:_0x1f96fe?0x1:0x2)*_0x206cc7['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0x46906c=>_0x46906c['baseIndent']+_0x46906c['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x3f1b3a){let _0x57d538=/^\s*<\//['test'](_0x3f1b3a['textAfter']);return _0x3f1b3a['lineIndent'](_0x3f1b3a['node']['from'])+(_0x57d538?0x0:_0x3f1b3a['unit']);},'JSXEscape'(_0x422349){let _0x11c7d2=/\s*\}/['test'](_0x422349['textAfter']);return _0x422349['lineIndent'](_0x422349['node']['from'])+(_0x11c7d2?0x0:_0x422349['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x2535ff=>_0x2535ff['column'](_0x2535ff['node']['from'])+_0x2535ff['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x8dadee=>({'from':_0x8dadee['from']+0x2,'to':_0x8dadee['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x5f5858=>/^JSX/['test'](_0x5f5858['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x2e84e4=>_0x2e84e4['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x177385=>_0x177385['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x108d7f=>({'label':_0x108d7f,'type':'keyword'});const keywords='break\x20case\x20const\x20continue\x20default\x20delete\x20export\x20extends\x20false\x20finally\x20in\x20instanceof\x20let\x20new\x20return\x20static\x20super\x20switch\x20this\x20throw\x20true\x20typeof\x20var\x20yield'['split']('\x20')['map'](kwCompletion),typescriptKeywords=keywords['concat'](['declare','implements','private','protected','public']['map'](kwCompletion));function javascript(_0x1310d4={}){let _0x3266f6=_0x1310d4['jsx']?_0x1310d4['typescript']?tsxLanguage:jsxLanguage:_0x1310d4['typescript']?typescriptLanguage:javascriptLanguage,_0x5b90d3=_0x1310d4['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0x3266f6,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x5b90d3))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x1310d4['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x4a7535){for(;;){if('JSXOpenTag'==_0x4a7535['name']||'JSXSelfClosingTag'==_0x4a7535['name']||'JSXFragmentTag'==_0x4a7535['name'])return _0x4a7535;if('JSXEscape'==_0x4a7535['name']||!_0x4a7535['parent'])return null;_0x4a7535=_0x4a7535['parent'];}}function elementName$1(_0x512983,_0x2aa30b,_0x3d2ad7=_0x512983['length']){for(let _0x3ba615=null==_0x2aa30b?void 0x0:_0x2aa30b['firstChild'];_0x3ba615;_0x3ba615=_0x3ba615['nextSibling'])if('JSXIdentifier'==_0x3ba615['name']||'JSXBuiltin'==_0x3ba615['name']||'JSXNamespacedName'==_0x3ba615['name']||'JSXMemberExpression'==_0x3ba615['name'])return _0x512983['sliceString'](_0x3ba615['from'],Math['min'](_0x3ba615['to'],_0x3d2ad7));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x493334,_0x5ba43d,_0x5a2404,_0x50580e,_0xd88c6b)=>{if((android?_0x493334['composing']:_0x493334['compositionStarted'])||_0x493334['state']['readOnly']||_0x5ba43d!=_0x5a2404||'>'!=_0x50580e&&'/'!=_0x50580e||!javascriptLanguage['isActiveAt'](_0x493334['state'],_0x5ba43d,-0x1))return!0x1;let _0x139ec5=_0xd88c6b(),{state:_0x52ef3c}=_0x139ec5,_0x12cb61=_0x52ef3c['changeByRange'](_0x3f4c44=>{var _0x42c347;let _0x330195,{head:_0x316d6b}=_0x3f4c44,_0x39c815=syntaxTree(_0x52ef3c)['resolveInner'](_0x316d6b-0x1,-0x1);if('JSXStartTag'==_0x39c815['name']&&(_0x39c815=_0x39c815['parent']),_0x52ef3c['doc']['sliceString'](_0x316d6b-0x1,_0x316d6b)!=_0x50580e||'JSXAttributeValue'==_0x39c815['name']&&_0x39c815['to']>_0x316d6b);else{if('>'==_0x50580e&&'JSXFragmentTag'==_0x39c815['name'])return{'range':_0x3f4c44,'changes':{'from':_0x316d6b,'insert':'</>'}};if('/'==_0x50580e&&'JSXStartCloseTag'==_0x39c815['name']){let _0x11fd59=_0x39c815['parent'],_0x296a8a=_0x11fd59['parent'];if(_0x296a8a&&_0x11fd59['from']==_0x316d6b-0x2&&((_0x330195=elementName$1(_0x52ef3c['doc'],_0x296a8a['firstChild'],_0x316d6b))||'JSXFragmentTag'==(null===(_0x42c347=_0x296a8a['firstChild'])||void 0x0===_0x42c347?void 0x0:_0x42c347['name']))){let _0x39b285=_0x330195+'>';return{'range':EditorSelection['cursor'](_0x316d6b+_0x39b285['length'],-0x1),'changes':{'from':_0x316d6b,'insert':_0x39b285}};}}else{if('>'==_0x50580e){let _0x3d9c7c=findOpenTag(_0x39c815);if(_0x3d9c7c&&'JSXOpenTag'==_0x3d9c7c['name']&&!/^\/?>|^<\//['test'](_0x52ef3c['doc']['sliceString'](_0x316d6b,_0x316d6b+0x2))&&(_0x330195=elementName$1(_0x52ef3c['doc'],_0x3d9c7c,_0x316d6b)))return{'range':_0x3f4c44,'changes':{'from':_0x316d6b,'insert':'</'+_0x330195+'>'}};}}}return{'range':_0x3f4c44};});return!_0x12cb61['changes']['empty']&&(_0x493334['dispatch']([_0x139ec5,_0x52ef3c['update'](_0x12cb61,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);}),Targets=['_blank','_self','_top','_parent'],Charsets=['ascii','utf-8','utf-16','latin1','latin1'],Methods=['get','post','put','delete'],Encs=['application/x-www-form-urlencoded','multipart/form-data','text/plain'],Bool=['true','false'],S={},Tags={'a':{'attrs':{'href':null,'ping':null,'type':null,'media':null,'target':Targets,'hreflang':null}},'abbr':S,'address':S,'area':{'attrs':{'alt':null,'coords':null,'href':null,'target':null,'ping':null,'media':null,'hreflang':null,'type':null,'shape':['default','rect','circle','poly']}},'article':S,'aside':S,'audio':{'attrs':{'src':null,'mediagroup':null,'crossorigin':['anonymous','use-credentials'],'preload':['none','metadata','auto'],'autoplay':['autoplay'],'loop':['loop'],'controls':['controls']}},'b':S,'base':{'attrs':{'href':null,'target':Targets}},'bdi':S,'bdo':S,'blockquote':{'attrs':{'cite':null}},'body':S,'br':S,'button':{'attrs':{'form':null,'formaction':null,'name':null,'value':null,'autofocus':['autofocus'],'disabled':['autofocus'],'formenctype':Encs,'formmethod':Methods,'formnovalidate':['novalidate'],'formtarget':Targets,'type':['submit','reset','button']}},'canvas':{'attrs':{'width':null,'height':null}},'caption':S,'center':S,'cite':S,'code':S,'col':{'attrs':{'span':null}},'colgroup':{'attrs':{'span':null}},'command':{'attrs':{'type':['command','checkbox','radio'],'label':null,'icon':null,'radiogroup':null,'command':null,'title':null,'disabled':['disabled'],'checked':['checked']}},'data':{'attrs':{'value':null}},'datagrid':{'attrs':{'disabled':['disabled'],'multiple':['multiple']}},'datalist':{'attrs':{'data':null}},'dd':S,'del':{'attrs':{'cite':null,'datetime':null}},'details':{'attrs':{'open':['open']}},'dfn':S,'div':S,'dl':S,'dt':S,'em':S,'embed':{'attrs':{'src':null,'type':null,'width':null,'height':null}},'eventsource':{'attrs':{'src':null}},'fieldset':{'attrs':{'disabled':['disabled'],'form':null,'name':null}},'figcaption':S,'figure':S,'footer':S,'form':{'attrs':{'action':null,'name':null,'accept-charset':Charsets,'autocomplete':['on','off'],'enctype':Encs,'method':Methods,'novalidate':['novalidate'],'target':Targets}},'h1':S,'h2':S,'h3':S,'h4':S,'h5':S,'h6':S,'head':{'children':['title','base','link','style','meta','script','noscript','command']},'header':S,'hgroup':S,'hr':S,'html':{'attrs':{'manifest':null}},'i':S,'iframe':{'attrs':{'src':null,'srcdoc':null,'name':null,'width':null,'height':null,'sandbox':['allow-top-navigation','allow-same-origin','allow-forms','allow-scripts'],'seamless':['seamless']}},'img':{'attrs':{'alt':null,'src':null,'ismap':null,'usemap':null,'width':null,'height':null,'crossorigin':['anonymous','use-credentials']}},'input':{'attrs':{'alt':null,'dirname':null,'form':null,'formaction':null,'height':null,'list':null,'max':null,'maxlength':null,'min':null,'name':null,'pattern':null,'placeholder':null,'size':null,'src':null,'step':null,'value':null,'width':null,'accept':['audio/*','video/*','image/*'],'autocomplete':['on','off'],'autofocus':['autofocus'],'checked':['checked'],'disabled':['disabled'],'formenctype':Encs,'formmethod':Methods,'formnovalidate':['novalidate'],'formtarget':Targets,'multiple':['multiple'],'readonly':['readonly'],'required':['required'],'type':['hidden','text','search','tel','url','email','password','datetime','date','month','week','time','datetime-local','number','range','color','checkbox','radio','file','submit','image','reset','button']}},'ins':{'attrs':{'cite':null,'datetime':null}},'kbd':S,'keygen':{'attrs':{'challenge':null,'form':null,'name':null,'autofocus':['autofocus'],'disabled':['disabled'],'keytype':['RSA']}},'label':{'attrs':{'for':null,'form':null}},'legend':S,'li':{'attrs':{'value':null}},'link':{'attrs':{'href':null,'type':null,'hreflang':null,'media':null,'sizes':['all','16x16','16x16\x2032x32','16x16\x2032x32\x2064x64']}},'map':{'attrs':{'name':null}},'mark':S,'menu':{'attrs':{'label':null,'type':['list','context','toolbar']}},'meta':{'attrs':{'content':null,'charset':Charsets,'name':['viewport','application-name','author','description','generator','keywords'],'http-equiv':['content-language','content-type','default-style','refresh']}},'meter':{'attrs':{'value':null,'min':null,'low':null,'high':null,'max':null,'optimum':null}},'nav':S,'noscript':S,'object':{'attrs':{'data':null,'type':null,'name':null,'usemap':null,'form':null,'width':null,'height':null,'typemustmatch':['typemustmatch']}},'ol':{'attrs':{'reversed':['reversed'],'start':null,'type':['1','a','A','i','I']},'children':['li','script','template','ul','ol']},'optgroup':{'attrs':{'disabled':['disabled'],'label':null}},'option':{'attrs':{'disabled':['disabled'],'label':null,'selected':['selected'],'value':null}},'output':{'attrs':{'for':null,'form':null,'name':null}},'p':S,'param':{'attrs':{'name':null,'value':null}},'pre':S,'progress':{'attrs':{'value':null,'max':null}},'q':{'attrs':{'cite':null}},'rp':S,'rt':S,'ruby':S,'samp':S,'script':{'attrs':{'type':['text/javascript'],'src':null,'async':['async'],'defer':['defer'],'charset':Charsets}},'section':S,'select':{'attrs':{'form':null,'name':null,'size':null,'autofocus':['autofocus'],'disabled':['disabled'],'multiple':['multiple']}},'slot':{'attrs':{'name':null}},'small':S,'source':{'attrs':{'src':null,'type':null,'media':null}},'span':S,'strong':S,'style':{'attrs':{'type':['text/css'],'media':null,'scoped':null}},'sub':S,'summary':S,'sup':S,'table':S,'tbody':S,'td':{'attrs':{'colspan':null,'rowspan':null,'headers':null}},'template':S,'textarea':{'attrs':{'dirname':null,'form':null,'maxlength':null,'name':null,'placeholder':null,'rows':null,'cols':null,'autofocus':['autofocus'],'disabled':['disabled'],'readonly':['readonly'],'required':['required'],'wrap':['soft','hard']}},'tfoot':S,'th':{'attrs':{'colspan':null,'rowspan':null,'headers':null,'scope':['row','col','rowgroup','colgroup']}},'thead':S,'time':{'attrs':{'datetime':null}},'title':S,'tr':S,'track':{'attrs':{'src':null,'label':null,'default':null,'kind':['subtitles','captions','descriptions','chapters','metadata'],'srclang':null}},'ul':{'children':['li','script','template','ul','ol']},'var':S,'video':{'attrs':{'src':null,'poster':null,'width':null,'height':null,'crossorigin':['anonymous','use-credentials'],'preload':['auto','metadata','none'],'autoplay':['autoplay'],'mediagroup':['movie'],'muted':['muted'],'controls':['controls']}},'wbr':S},GlobalAttrs={'accesskey':null,'class':null,'contenteditable':Bool,'contextmenu':null,'dir':['ltr','rtl','auto'],'draggable':['true','false','auto'],'dropzone':['copy','move','link','string:','file:'],'hidden':['hidden'],'id':null,'inert':['inert'],'itemid':null,'itemprop':null,'itemref':null,'itemscope':['itemscope'],'itemtype':null,'lang':['ar','bn','de','en-GB','en-US','es','fr','hi','id','ja','pa','pt','ru','tr','zh'],'spellcheck':Bool,'autocorrect':Bool,'autocapitalize':Bool,'style':null,'tabindex':null,'title':null,'translate':['yes','no'],'rel':['stylesheet','alternate','author','bookmark','help','license','next','nofollow','noreferrer','prefetch','prev','search','tag'],'role':'alert\x20application\x20article\x20banner\x20button\x20cell\x20checkbox\x20complementary\x20contentinfo\x20dialog\x20document\x20feed\x20figure\x20form\x20grid\x20gridcell\x20heading\x20img\x20list\x20listbox\x20listitem\x20main\x20navigation\x20region\x20row\x20rowgroup\x20search\x20switch\x20tab\x20table\x20tabpanel\x20textbox\x20timer'['split']('\x20'),'aria-activedescendant':null,'aria-atomic':Bool,'aria-autocomplete':['inline','list','both','none'],'aria-busy':Bool,'aria-checked':['true','false','mixed','undefined'],'aria-controls':null,'aria-describedby':null,'aria-disabled':Bool,'aria-dropeffect':null,'aria-expanded':['true','false','undefined'],'aria-flowto':null,'aria-grabbed':['true','false','undefined'],'aria-haspopup':Bool,'aria-hidden':Bool,'aria-invalid':['true','false','grammar','spelling'],'aria-label':null,'aria-labelledby':null,'aria-level':null,'aria-live':['off','polite','assertive'],'aria-multiline':Bool,'aria-multiselectable':Bool,'aria-owns':null,'aria-posinset':null,'aria-pressed':['true','false','mixed','undefined'],'aria-readonly':Bool,'aria-relevant':null,'aria-required':Bool,'aria-selected':['true','false','undefined'],'aria-setsize':null,'aria-sort':['ascending','descending','none','other'],'aria-valuemax':null,'aria-valuemin':null,'aria-valuenow':null,'aria-valuetext':null},eventAttributes='beforeunload\x20copy\x20cut\x20dragstart\x20dragover\x20dragleave\x20dragenter\x20dragend\x20drag\x20paste\x20focus\x20blur\x20change\x20click\x20load\x20mousedown\x20mouseenter\x20mouseleave\x20mouseup\x20keydown\x20keyup\x20resize\x20scroll\x20unload'['split']('\x20')['map'](_0x93ceb7=>'on'+_0x93ceb7);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x15a1c6,_0x390965){this['tags']={...Tags,..._0x15a1c6},this['globalAttrs']={...GlobalAttrs,..._0x390965},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x1a5715,_0x592baf,_0x4927a1=_0x1a5715['length']){if(!_0x592baf)return'';let _0x504fc9=_0x592baf['firstChild'],_0x58e30e=_0x504fc9&&_0x504fc9['getChild']('TagName');return _0x58e30e?_0x1a5715['sliceString'](_0x58e30e['from'],Math['min'](_0x58e30e['to'],_0x4927a1)):'';}function findParentElement(_0xbf9ffc,_0x14c0f8=!0x1){for(;_0xbf9ffc;_0xbf9ffc=_0xbf9ffc['parent'])if('Element'==_0xbf9ffc['name']){if(!_0x14c0f8)return _0xbf9ffc;_0x14c0f8=!0x1;}return null;}function allowedChildren(_0x10717b,_0xfe0e58,_0x44b0ce){let _0x31328b=_0x44b0ce['tags'][elementName(_0x10717b,findParentElement(_0xfe0e58))];return(null==_0x31328b?void 0x0:_0x31328b['children'])||_0x44b0ce['allTags'];}function openTags(_0x104407,_0x2584e7){let _0xb5262b=[];for(let _0x21917e=findParentElement(_0x2584e7);_0x21917e&&!_0x21917e['type']['isTop'];_0x21917e=findParentElement(_0x21917e['parent'])){let _0x37b7a2=elementName(_0x104407,_0x21917e);if(_0x37b7a2&&'CloseTag'==_0x21917e['lastChild']['name'])break;_0x37b7a2&&_0xb5262b['indexOf'](_0x37b7a2)<0x0&&('EndTag'==_0x2584e7['name']||_0x2584e7['from']>=_0x21917e['firstChild']['to'])&&_0xb5262b['push'](_0x37b7a2);}return _0xb5262b;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x5ea441,_0xa2e50c,_0xfe4e32,_0x836971,_0x502907){let _0x18af3b=/\s*>/['test'](_0x5ea441['sliceDoc'](_0x502907,_0x502907+0x5))?'':'>',_0x264f1e=findParentElement(_0xfe4e32,'StartTag'==_0xfe4e32['name']||'TagName'==_0xfe4e32['name']);return{'from':_0x836971,'to':_0x502907,'options':allowedChildren(_0x5ea441['doc'],_0x264f1e,_0xa2e50c)['map'](_0x1f56ae=>({'label':_0x1f56ae,'type':'type'}))['concat'](openTags(_0x5ea441['doc'],_0xfe4e32)['map']((_0x59e22d,_0x81b34e)=>({'label':'/'+_0x59e22d,'apply':'/'+_0x59e22d+_0x18af3b,'type':'type','boost':0x63-_0x81b34e}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x2c788a,_0x32ed50,_0x1d2312,_0x517b07){let _0x5ba90c=/\s*>/['test'](_0x2c788a['sliceDoc'](_0x517b07,_0x517b07+0x5))?'':'>';return{'from':_0x1d2312,'to':_0x517b07,'options':openTags(_0x2c788a['doc'],_0x32ed50)['map']((_0x2b774a,_0x355f1d)=>({'label':_0x2b774a,'apply':_0x2b774a+_0x5ba90c,'type':'type','boost':0x63-_0x355f1d})),'validFor':identifier};}function completeStartTag(_0x357987,_0x4870f9,_0x485b6a,_0x3aa0e2){let _0x1c5566=[],_0x5eb9ff=0x0;for(let _0x469740 of allowedChildren(_0x357987['doc'],_0x485b6a,_0x4870f9))_0x1c5566['push']({'label':'<'+_0x469740,'type':'type'});for(let _0x49556f of openTags(_0x357987['doc'],_0x485b6a))_0x1c5566['push']({'label':'</'+_0x49556f+'>','type':'type','boost':0x63-_0x5eb9ff++});return{'from':_0x3aa0e2,'to':_0x3aa0e2,'options':_0x1c5566,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x273c2d,_0x1db716,_0x284606,_0x4f46d9,_0x458809){let _0x299af6=findParentElement(_0x284606),_0xa993af=_0x299af6?_0x1db716['tags'][elementName(_0x273c2d['doc'],_0x299af6)]:null,_0x3d545a=_0xa993af&&_0xa993af['attrs']?Object['keys'](_0xa993af['attrs']):[];return{'from':_0x4f46d9,'to':_0x458809,'options':(_0xa993af&&!0x1===_0xa993af['globalAttrs']?_0x3d545a:_0x3d545a['length']?_0x3d545a['concat'](_0x1db716['globalAttrNames']):_0x1db716['globalAttrNames'])['map'](_0x43f9ce=>({'label':_0x43f9ce,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x35d383,_0x332c75,_0x2abd06,_0x3271ce,_0x56571f){var _0x503bb4;let _0x337e8f,_0x42fb0f=null===(_0x503bb4=_0x2abd06['parent'])||void 0x0===_0x503bb4?void 0x0:_0x503bb4['getChild']('AttributeName'),_0x37d2dc=[];if(_0x42fb0f){let _0x281099=_0x35d383['sliceDoc'](_0x42fb0f['from'],_0x42fb0f['to']),_0x11d653=_0x332c75['globalAttrs'][_0x281099];if(!_0x11d653){let _0x3aaf88=findParentElement(_0x2abd06),_0x8f5030=_0x3aaf88?_0x332c75['tags'][elementName(_0x35d383['doc'],_0x3aaf88)]:null;_0x11d653=(null==_0x8f5030?void 0x0:_0x8f5030['attrs'])&&_0x8f5030['attrs'][_0x281099];}if(_0x11d653){let _0x5a6c0e=_0x35d383['sliceDoc'](_0x3271ce,_0x56571f)['toLowerCase'](),_0x260b01='\x22',_0x201688='\x22';/^['"]/['test'](_0x5a6c0e)?(_0x337e8f='\x22'==_0x5a6c0e[0x0]?/^[^"]*$/:/^[^']*$/,_0x260b01='',_0x201688=_0x35d383['sliceDoc'](_0x56571f,_0x56571f+0x1)==_0x5a6c0e[0x0]?'':_0x5a6c0e[0x0],_0x5a6c0e=_0x5a6c0e['slice'](0x1),_0x3271ce++):_0x337e8f=/^[^\s<>='"]*$/;for(let _0x4aaf47 of _0x11d653)_0x37d2dc['push']({'label':_0x4aaf47,'apply':_0x260b01+_0x4aaf47+_0x201688,'type':'constant'});}}return{'from':_0x3271ce,'to':_0x56571f,'options':_0x37d2dc,'validFor':_0x337e8f};}function htmlCompletionFor(_0x2a8d11,_0x80c41a){let {state:_0x47d5b6,pos:_0x480abc}=_0x80c41a,_0x43090c=syntaxTree(_0x47d5b6)['resolveInner'](_0x480abc,-0x1),_0x1a04e9=_0x43090c['resolve'](_0x480abc);for(let _0x42f7db,_0x10c0ae=_0x480abc;_0x1a04e9==_0x43090c&&(_0x42f7db=_0x43090c['childBefore'](_0x10c0ae));){let _0x161adf=_0x42f7db['lastChild'];if(!_0x161adf||!_0x161adf['type']['isError']||_0x161adf['from']<_0x161adf['to'])break;_0x1a04e9=_0x43090c=_0x42f7db,_0x10c0ae=_0x161adf['from'];}return'TagName'==_0x43090c['name']?_0x43090c['parent']&&/CloseTag$/['test'](_0x43090c['parent']['name'])?completeCloseTag(_0x47d5b6,_0x43090c,_0x43090c['from'],_0x480abc):completeTag(_0x47d5b6,_0x2a8d11,_0x43090c,_0x43090c['from'],_0x480abc):'StartTag'==_0x43090c['name']||'IncompleteTag'==_0x43090c['name']?completeTag(_0x47d5b6,_0x2a8d11,_0x43090c,_0x480abc,_0x480abc):'StartCloseTag'==_0x43090c['name']||'IncompleteCloseTag'==_0x43090c['name']?completeCloseTag(_0x47d5b6,_0x43090c,_0x480abc,_0x480abc):'OpenTag'==_0x43090c['name']||'SelfClosingTag'==_0x43090c['name']||'AttributeName'==_0x43090c['name']?completeAttrName(_0x47d5b6,_0x2a8d11,_0x43090c,'AttributeName'==_0x43090c['name']?_0x43090c['from']:_0x480abc,_0x480abc):'Is'==_0x43090c['name']||'AttributeValue'==_0x43090c['name']||'UnquotedAttributeValue'==_0x43090c['name']?completeAttrValue(_0x47d5b6,_0x2a8d11,_0x43090c,'Is'==_0x43090c['name']?_0x480abc:_0x43090c['from'],_0x480abc):!_0x80c41a['explicit']||'Element'!=_0x1a04e9['name']&&'Text'!=_0x1a04e9['name']&&'Document'!=_0x1a04e9['name']?null:completeStartTag(_0x47d5b6,_0x2a8d11,_0x43090c,_0x480abc);}function htmlCompletionSource(_0x3170ec){return htmlCompletionFor(Schema['default'],_0x3170ec);}function htmlCompletionSourceWith(_0x186f0b){let {extraTags:_0x56eb80,extraGlobalAttributes:_0x2db77a}=_0x186f0b,_0x2d3893=_0x2db77a||_0x56eb80?new Schema(_0x56eb80,_0x2db77a):Schema['default'];return _0x3e1d3a=>htmlCompletionFor(_0x2d3893,_0x3e1d3a);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0x4dc8b9=>'text/typescript'==_0x4dc8b9['type']||'ts'==_0x4dc8b9['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x28718c=>'text/babel'==_0x28718c['type']||'text/jsx'==_0x28718c['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x4504b5=>'text/typescript-jsx'==_0x4504b5['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x5e5d83=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x5e5d83['type']),'parser':jsonParser},{'tag':'script','attrs':_0x5bdecf=>!_0x5bdecf['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x5bdecf['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x41d822=>(!_0x41d822['lang']||'css'==_0x41d822['lang'])&&(!_0x41d822['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x41d822['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0x59d5af=>({'name':_0x59d5af,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0x49162e){let _0x3de887=/^(\s*)(<\/)?/['exec'](_0x49162e['textAfter']);return _0x49162e['node']['to']<=_0x49162e['pos']+_0x3de887[0x0]['length']?_0x49162e['continue']():_0x49162e['lineIndent'](_0x49162e['node']['from'])+(_0x3de887[0x2]?0x0:_0x49162e['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x81fba1=>_0x81fba1['column'](_0x81fba1['node']['from'])+_0x81fba1['unit'],'Document'(_0x3f9758){if(_0x3f9758['pos']+/\s*/['exec'](_0x3f9758['textAfter'])[0x0]['length']<_0x3f9758['node']['to'])return _0x3f9758['continue']();let _0x44ca86,_0x512b4b=null;for(let _0x3aca4f=_0x3f9758['node'];;){let _0x2850ae=_0x3aca4f['lastChild'];if(!_0x2850ae||'Element'!=_0x2850ae['name']||_0x2850ae['to']!=_0x3aca4f['to'])break;_0x512b4b=_0x3aca4f=_0x2850ae;}return _0x512b4b&&(!(_0x44ca86=_0x512b4b['lastChild'])||'CloseTag'!=_0x44ca86['name']&&'SelfClosingTag'!=_0x44ca86['name'])?_0x3f9758['lineIndent'](_0x512b4b['from'])+_0x3f9758['unit']:null;}}),foldNodeProp['add']({'Element'(_0x35b245){let _0x472ae1=_0x35b245['firstChild'],_0x5159fb=_0x35b245['lastChild'];return _0x472ae1&&'OpenTag'==_0x472ae1['name']?{'from':_0x472ae1['to'],'to':'CloseTag'==_0x5159fb['name']?_0x5159fb['from']:_0x35b245['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x1c0635=>_0x1c0635['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x2afc92={}){let _0x313ec5,_0x322dea='';!0x1===_0x2afc92['matchClosingTags']&&(_0x322dea='noMatch'),!0x0===_0x2afc92['selfClosingTags']&&(_0x322dea=(_0x322dea?_0x322dea+'\x20':'')+'selfClosing'),(_0x2afc92['nestedLanguages']&&_0x2afc92['nestedLanguages']['length']||_0x2afc92['nestedAttributes']&&_0x2afc92['nestedAttributes']['length'])&&(_0x313ec5=configureNesting((_0x2afc92['nestedLanguages']||[])['concat'](defaultNesting),(_0x2afc92['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x3760a3=_0x313ec5?htmlPlain['configure']({'wrap':_0x313ec5,'dialect':_0x322dea}):_0x322dea?htmlLanguage['configure']({'dialect':_0x322dea}):htmlLanguage;return new LanguageSupport(_0x3760a3,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x2afc92)}),!0x1!==_0x2afc92['autoCloseTags']?autoCloseTags:[],javascript()['support'],css()['support']]);}const selfClosers=new Set('area\x20base\x20br\x20col\x20command\x20embed\x20frame\x20hr\x20img\x20input\x20keygen\x20link\x20meta\x20param\x20source\x20track\x20wbr\x20menuitem'['split']('\x20')),autoCloseTags=EditorView['inputHandler']['of']((_0x2a423a,_0x3aeee0,_0x239803,_0x48a97f,_0xffb2ad)=>{if(_0x2a423a['composing']||_0x2a423a['state']['readOnly']||_0x3aeee0!=_0x239803||'>'!=_0x48a97f&&'/'!=_0x48a97f||!htmlLanguage['isActiveAt'](_0x2a423a['state'],_0x3aeee0,-0x1))return!0x1;let _0x24f923=_0xffb2ad(),{state:_0x1ffcaf}=_0x24f923,_0x299530=_0x1ffcaf['changeByRange'](_0xf0f568=>{var _0x25b6c0,_0x131804,_0x2e354b;let _0x29f156,_0x35fac4=_0x1ffcaf['doc']['sliceString'](_0xf0f568['from']-0x1,_0xf0f568['to'])==_0x48a97f,{head:_0x23a26d}=_0xf0f568,_0x4411d2=syntaxTree(_0x1ffcaf)['resolveInner'](_0x23a26d,-0x1);if(_0x35fac4&&'>'==_0x48a97f&&'EndTag'==_0x4411d2['name']){let _0x5b065c=_0x4411d2['parent'];if('CloseTag'!=(null===(_0x131804=null===(_0x25b6c0=_0x5b065c['parent'])||void 0x0===_0x25b6c0?void 0x0:_0x25b6c0['lastChild'])||void 0x0===_0x131804?void 0x0:_0x131804['name'])&&(_0x29f156=elementName(_0x1ffcaf['doc'],_0x5b065c['parent'],_0x23a26d))&&!selfClosers['has'](_0x29f156))return{'range':_0xf0f568,'changes':{'from':_0x23a26d,'to':_0x23a26d+('>'===_0x1ffcaf['doc']['sliceString'](_0x23a26d,_0x23a26d+0x1)?0x1:0x0),'insert':'</'+_0x29f156+'>'}};}else{if(_0x35fac4&&'/'==_0x48a97f&&'IncompleteCloseTag'==_0x4411d2['name']){let _0x249fb6=_0x4411d2['parent'];if(_0x4411d2['from']==_0x23a26d-0x2&&'CloseTag'!=(null===(_0x2e354b=_0x249fb6['lastChild'])||void 0x0===_0x2e354b?void 0x0:_0x2e354b['name'])&&(_0x29f156=elementName(_0x1ffcaf['doc'],_0x249fb6,_0x23a26d))&&!selfClosers['has'](_0x29f156)){let _0x387ef2=_0x23a26d+('>'===_0x1ffcaf['doc']['sliceString'](_0x23a26d,_0x23a26d+0x1)?0x1:0x0),_0xe056a1=_0x29f156+'>';return{'range':EditorSelection['cursor'](_0x23a26d+_0xe056a1['length'],-0x1),'changes':{'from':_0x23a26d,'to':_0x387ef2,'insert':_0xe056a1}};}}}return{'range':_0xf0f568};});return!_0x299530['changes']['empty']&&(_0x2a423a['dispatch']([_0x24f923,_0x1ffcaf['update'](_0x299530,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0x1d5b5a,_0x504e2c,_0x35221c,_0x48f45b,_0x1c4570){return new CompositeBlock(_0x1d5b5a,_0x504e2c,_0x35221c,_0x48f45b+(_0x48f45b<<0x8)+_0x1d5b5a+(_0x504e2c<<0x4)|0x0,_0x1c4570,[],[]);}constructor(_0x4539b4,_0x51d03b,_0x367422,_0x36b1c6,_0x2f1557,_0x48a8d4,_0x4af1b3){this['type']=_0x4539b4,this['value']=_0x51d03b,this['from']=_0x367422,this['hash']=_0x36b1c6,this['end']=_0x2f1557,this['children']=_0x48a8d4,this['positions']=_0x4af1b3,this['hashProp']=[[NodeProp['contextHash'],_0x36b1c6]];}['addChild'](_0x3097fa,_0x4072ac){_0x3097fa['prop'](NodeProp['contextHash'])!=this['hash']&&(_0x3097fa=new Tree(_0x3097fa['type'],_0x3097fa['children'],_0x3097fa['positions'],_0x3097fa['length'],this['hashProp'])),this['children']['push'](_0x3097fa),this['positions']['push'](_0x4072ac);}['toTree'](_0x4f90f4,_0x51afc4=this['end']){let _0x49ab50=this['children']['length']-0x1;return _0x49ab50>=0x0&&(_0x51afc4=Math['max'](_0x51afc4,this['positions'][_0x49ab50]+this['children'][_0x49ab50]['length']+this['from'])),new Tree(_0x4f90f4['types'][this['type']],this['children'],this['positions'],_0x51afc4-this['from'])['balance']({'makeTree':(_0x40596a,_0x35c463,_0x43b30e)=>new Tree(NodeType['none'],_0x40596a,_0x35c463,_0x43b30e,this['hashProp'])});}}var Type;!function(_0x193bb1){_0x193bb1[_0x193bb1['Document']=0x1]='Document',_0x193bb1[_0x193bb1['CodeBlock']=0x2]='CodeBlock',_0x193bb1[_0x193bb1['FencedCode']=0x3]='FencedCode',_0x193bb1[_0x193bb1['Blockquote']=0x4]='Blockquote',_0x193bb1[_0x193bb1['HorizontalRule']=0x5]='HorizontalRule',_0x193bb1[_0x193bb1['BulletList']=0x6]='BulletList',_0x193bb1[_0x193bb1['OrderedList']=0x7]='OrderedList',_0x193bb1[_0x193bb1['ListItem']=0x8]='ListItem',_0x193bb1[_0x193bb1['ATXHeading1']=0x9]='ATXHeading1',_0x193bb1[_0x193bb1['ATXHeading2']=0xa]='ATXHeading2',_0x193bb1[_0x193bb1['ATXHeading3']=0xb]='ATXHeading3',_0x193bb1[_0x193bb1['ATXHeading4']=0xc]='ATXHeading4',_0x193bb1[_0x193bb1['ATXHeading5']=0xd]='ATXHeading5',_0x193bb1[_0x193bb1['ATXHeading6']=0xe]='ATXHeading6',_0x193bb1[_0x193bb1['SetextHeading1']=0xf]='SetextHeading1',_0x193bb1[_0x193bb1['SetextHeading2']=0x10]='SetextHeading2',_0x193bb1[_0x193bb1['HTMLBlock']=0x11]='HTMLBlock',_0x193bb1[_0x193bb1['LinkReference']=0x12]='LinkReference',_0x193bb1[_0x193bb1['Paragraph']=0x13]='Paragraph',_0x193bb1[_0x193bb1['CommentBlock']=0x14]='CommentBlock',_0x193bb1[_0x193bb1['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x193bb1[_0x193bb1['Escape']=0x16]='Escape',_0x193bb1[_0x193bb1['Entity']=0x17]='Entity',_0x193bb1[_0x193bb1['HardBreak']=0x18]='HardBreak',_0x193bb1[_0x193bb1['Emphasis']=0x19]='Emphasis',_0x193bb1[_0x193bb1['StrongEmphasis']=0x1a]='StrongEmphasis',_0x193bb1[_0x193bb1['Link']=0x1b]='Link',_0x193bb1[_0x193bb1['Image']=0x1c]='Image',_0x193bb1[_0x193bb1['InlineCode']=0x1d]='InlineCode',_0x193bb1[_0x193bb1['HTMLTag']=0x1e]='HTMLTag',_0x193bb1[_0x193bb1['Comment']=0x1f]='Comment',_0x193bb1[_0x193bb1['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x193bb1[_0x193bb1['Autolink']=0x21]='Autolink',_0x193bb1[_0x193bb1['HeaderMark']=0x22]='HeaderMark',_0x193bb1[_0x193bb1['QuoteMark']=0x23]='QuoteMark',_0x193bb1[_0x193bb1['ListMark']=0x24]='ListMark',_0x193bb1[_0x193bb1['LinkMark']=0x25]='LinkMark',_0x193bb1[_0x193bb1['EmphasisMark']=0x26]='EmphasisMark',_0x193bb1[_0x193bb1['CodeMark']=0x27]='CodeMark',_0x193bb1[_0x193bb1['CodeText']=0x28]='CodeText',_0x193bb1[_0x193bb1['CodeInfo']=0x29]='CodeInfo',_0x193bb1[_0x193bb1['LinkTitle']=0x2a]='LinkTitle',_0x193bb1[_0x193bb1['LinkLabel']=0x2b]='LinkLabel',_0x193bb1[_0x193bb1['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0x205777,_0x5535f4){this['start']=_0x205777,this['content']=_0x5535f4,this['marks']=[],this['parsers']=[];}}class Line{constructor(){this['text']='',this['baseIndent']=0x0,this['basePos']=0x0,this['depth']=0x0,this['markers']=[],this['pos']=0x0,this['indent']=0x0,this['next']=-0x1;}['forward'](){this['basePos']>this['pos']&&this['forwardInner']();}['forwardInner'](){let _0x5412b4=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x5412b4,this['pos'],this['indent']),this['pos']=_0x5412b4,this['next']=_0x5412b4==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x5412b4);}['skipSpace'](_0x89ea60){return skipSpace(this['text'],_0x89ea60);}['reset'](_0x138947){for(this['text']=_0x138947,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x28993f){this['basePos']=_0x28993f,this['baseIndent']=this['countIndent'](_0x28993f,this['pos'],this['indent']);}['moveBaseColumn'](_0x1e904f){this['baseIndent']=_0x1e904f,this['basePos']=this['findColumn'](_0x1e904f);}['addMarker'](_0x5b0e9b){this['markers']['push'](_0x5b0e9b);}['countIndent'](_0x248e1c,_0x10b6dc=0x0,_0x2adcb2=0x0){for(let _0x3ab41e=_0x10b6dc;_0x3ab41e<_0x248e1c;_0x3ab41e++)_0x2adcb2+=0x9==this['text']['charCodeAt'](_0x3ab41e)?0x4-_0x2adcb2%0x4:0x1;return _0x2adcb2;}['findColumn'](_0x3f7315){let _0x5b1ed2=0x0;for(let _0x2edb80=0x0;_0x5b1ed2<this['text']['length']&&_0x2edb80<_0x3f7315;_0x5b1ed2++)_0x2edb80+=0x9==this['text']['charCodeAt'](_0x5b1ed2)?0x4-_0x2edb80%0x4:0x1;return _0x5b1ed2;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0x277b8='';for(let _0x15a4b7=0x0;_0x15a4b7<this['basePos'];_0x15a4b7++)_0x277b8+='\x20';return _0x277b8+this['text']['slice'](this['basePos']);}}function skipForList(_0x10ac37,_0x1b1b3b,_0x4e05f8){if(_0x4e05f8['pos']==_0x4e05f8['text']['length']||_0x10ac37!=_0x1b1b3b['block']&&_0x4e05f8['indent']>=_0x1b1b3b['stack'][_0x4e05f8['depth']+0x1]['value']+_0x4e05f8['baseIndent'])return!0x0;if(_0x4e05f8['indent']>=_0x4e05f8['baseIndent']+0x4)return!0x1;let _0x102ba5=(_0x10ac37['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0x4e05f8,_0x1b1b3b,!0x1);return _0x102ba5>0x0&&(_0x10ac37['type']!=Type['BulletList']||isHorizontalRule(_0x4e05f8,_0x1b1b3b,!0x1)<0x0)&&_0x4e05f8['text']['charCodeAt'](_0x4e05f8['pos']+_0x102ba5-0x1)==_0x10ac37['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x560bd5,_0xd6b8d5,_0x104f51)=>0x3e==_0x104f51['next']&&(_0x104f51['markers']['push'](elt(Type['QuoteMark'],_0xd6b8d5['lineStart']+_0x104f51['pos'],_0xd6b8d5['lineStart']+_0x104f51['pos']+0x1)),_0x104f51['moveBase'](_0x104f51['pos']+(space(_0x104f51['text']['charCodeAt'](_0x104f51['pos']+0x1))?0x2:0x1)),_0x560bd5['end']=_0xd6b8d5['lineStart']+_0x104f51['text']['length'],!0x0),[Type['ListItem']]:(_0x5f2e93,_0x436b82,_0x59b40f)=>!(_0x59b40f['indent']<_0x59b40f['baseIndent']+_0x5f2e93['value']&&_0x59b40f['next']>-0x1)&&(_0x59b40f['moveBaseColumn'](_0x59b40f['baseIndent']+_0x5f2e93['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0x592a46){return 0x20==_0x592a46||0x9==_0x592a46||0xa==_0x592a46||0xd==_0x592a46;}function skipSpace(_0x5163c0,_0x31f7a7=0x0){for(;_0x31f7a7<_0x5163c0['length']&&space(_0x5163c0['charCodeAt'](_0x31f7a7));)_0x31f7a7++;return _0x31f7a7;}function skipSpaceBack(_0x34fd9f,_0x5ea53b,_0x493140){for(;_0x5ea53b>_0x493140&&space(_0x34fd9f['charCodeAt'](_0x5ea53b-0x1));)_0x5ea53b--;return _0x5ea53b;}function isFencedCode(_0x362324){if(0x60!=_0x362324['next']&&0x7e!=_0x362324['next'])return-0x1;let _0x5c034a=_0x362324['pos']+0x1;for(;_0x5c034a<_0x362324['text']['length']&&_0x362324['text']['charCodeAt'](_0x5c034a)==_0x362324['next'];)_0x5c034a++;if(_0x5c034a<_0x362324['pos']+0x3)return-0x1;if(0x60==_0x362324['next']){for(let _0x244e96=_0x5c034a;_0x244e96<_0x362324['text']['length'];_0x244e96++)if(0x60==_0x362324['text']['charCodeAt'](_0x244e96))return-0x1;}return _0x5c034a;}function isBlockquote(_0x2e34b9){return 0x3e!=_0x2e34b9['next']?-0x1:0x20==_0x2e34b9['text']['charCodeAt'](_0x2e34b9['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x1007d7,_0x3efcf2,_0x2d27a9){if(0x2a!=_0x1007d7['next']&&0x2d!=_0x1007d7['next']&&0x5f!=_0x1007d7['next'])return-0x1;let _0x13dbcf=0x1;for(let _0x3b3af4=_0x1007d7['pos']+0x1;_0x3b3af4<_0x1007d7['text']['length'];_0x3b3af4++){let _0x23aed5=_0x1007d7['text']['charCodeAt'](_0x3b3af4);if(_0x23aed5==_0x1007d7['next'])_0x13dbcf++;else{if(!space(_0x23aed5))return-0x1;}}return _0x2d27a9&&0x2d==_0x1007d7['next']&&isSetextUnderline(_0x1007d7)>-0x1&&_0x1007d7['depth']==_0x3efcf2['stack']['length']&&_0x3efcf2['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0x13dbcf<0x3?-0x1:0x1;}function inList(_0x40afe6,_0x2e4142){for(let _0x1dffc6=_0x40afe6['stack']['length']-0x1;_0x1dffc6>=0x0;_0x1dffc6--)if(_0x40afe6['stack'][_0x1dffc6]['type']==_0x2e4142)return!0x0;return!0x1;}function isBulletList(_0x2cdb75,_0xef1ca0,_0x4932af){return 0x2d!=_0x2cdb75['next']&&0x2b!=_0x2cdb75['next']&&0x2a!=_0x2cdb75['next']||_0x2cdb75['pos']!=_0x2cdb75['text']['length']-0x1&&!space(_0x2cdb75['text']['charCodeAt'](_0x2cdb75['pos']+0x1))||!(!_0x4932af||inList(_0xef1ca0,Type['BulletList'])||_0x2cdb75['skipSpace'](_0x2cdb75['pos']+0x2)<_0x2cdb75['text']['length'])?-0x1:0x1;}function isOrderedList(_0x4540bc,_0xb8b11f,_0x26ff6b){let _0x3aacd1=_0x4540bc['pos'],_0x24ea05=_0x4540bc['next'];for(;_0x24ea05>=0x30&&_0x24ea05<=0x39;){if(_0x3aacd1++,_0x3aacd1==_0x4540bc['text']['length'])return-0x1;_0x24ea05=_0x4540bc['text']['charCodeAt'](_0x3aacd1);}return _0x3aacd1==_0x4540bc['pos']||_0x3aacd1>_0x4540bc['pos']+0x9||0x2e!=_0x24ea05&&0x29!=_0x24ea05||_0x3aacd1<_0x4540bc['text']['length']-0x1&&!space(_0x4540bc['text']['charCodeAt'](_0x3aacd1+0x1))||_0x26ff6b&&!inList(_0xb8b11f,Type['OrderedList'])&&(_0x4540bc['skipSpace'](_0x3aacd1+0x1)==_0x4540bc['text']['length']||_0x3aacd1>_0x4540bc['pos']+0x1||0x31!=_0x4540bc['next'])?-0x1:_0x3aacd1+0x1-_0x4540bc['pos'];}function isAtxHeading(_0x432ea4){if(0x23!=_0x432ea4['next'])return-0x1;let _0x354e4b=_0x432ea4['pos']+0x1;for(;_0x354e4b<_0x432ea4['text']['length']&&0x23==_0x432ea4['text']['charCodeAt'](_0x354e4b);)_0x354e4b++;if(_0x354e4b<_0x432ea4['text']['length']&&0x20!=_0x432ea4['text']['charCodeAt'](_0x354e4b))return-0x1;let _0x35474d=_0x354e4b-_0x432ea4['pos'];return _0x35474d>0x6?-0x1:_0x35474d;}function isSetextUnderline(_0x513348){if(0x2d!=_0x513348['next']&&0x3d!=_0x513348['next']||_0x513348['indent']>=_0x513348['baseIndent']+0x4)return-0x1;let _0x347784=_0x513348['pos']+0x1;for(;_0x347784<_0x513348['text']['length']&&_0x513348['text']['charCodeAt'](_0x347784)==_0x513348['next'];)_0x347784++;let _0x45087d=_0x347784;for(;_0x347784<_0x513348['text']['length']&&space(_0x513348['text']['charCodeAt'](_0x347784));)_0x347784++;return _0x347784==_0x513348['text']['length']?_0x45087d:-0x1;}const EmptyLine=/^[ \t]*$/,CommentEnd=/-->/,ProcessingEnd=/\?>/,HTMLBlockStyle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,CommentEnd],[/^\s*<\?/,ProcessingEnd],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,EmptyLine],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,EmptyLine]];function isHTMLBlock(_0x289aac,_0x18642c,_0xbe8cb1){if(0x3c!=_0x289aac['next'])return-0x1;let _0x35c6d5=_0x289aac['text']['slice'](_0x289aac['pos']);for(let _0x38b35a=0x0,_0x13a83e=HTMLBlockStyle['length']-(_0xbe8cb1?0x1:0x0);_0x38b35a<_0x13a83e;_0x38b35a++)if(HTMLBlockStyle[_0x38b35a][0x0]['test'](_0x35c6d5))return _0x38b35a;return-0x1;}function getListIndent(_0x4907e5,_0x529aff){let _0x57540b=_0x4907e5['countIndent'](_0x529aff,_0x4907e5['pos'],_0x4907e5['indent']),_0x5aa941=_0x4907e5['countIndent'](_0x4907e5['skipSpace'](_0x529aff),_0x529aff,_0x57540b);return _0x5aa941>=_0x57540b+0x5?_0x57540b+0x1:_0x5aa941;}function addCodeText(_0x3123e2,_0x4e9574,_0x1d0f61){let _0xa8a994=_0x3123e2['length']-0x1;_0xa8a994>=0x0&&_0x3123e2[_0xa8a994]['to']==_0x4e9574&&_0x3123e2[_0xa8a994]['type']==Type['CodeText']?_0x3123e2[_0xa8a994]['to']=_0x1d0f61:_0x3123e2['push'](elt(Type['CodeText'],_0x4e9574,_0x1d0f61));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0x303bde,_0x5b8278){let _0x472c56=_0x5b8278['baseIndent']+0x4;if(_0x5b8278['indent']<_0x472c56)return!0x1;let _0x73ec7e=_0x5b8278['findColumn'](_0x472c56),_0x1b8a4b=_0x303bde['lineStart']+_0x73ec7e,_0x4c4821=_0x303bde['lineStart']+_0x5b8278['text']['length'],_0x11fdf1=[],_0x5820a0=[];for(addCodeText(_0x11fdf1,_0x1b8a4b,_0x4c4821);_0x303bde['nextLine']()&&_0x5b8278['depth']>=_0x303bde['stack']['length'];)if(_0x5b8278['pos']==_0x5b8278['text']['length']){addCodeText(_0x5820a0,_0x303bde['lineStart']-0x1,_0x303bde['lineStart']);for(let _0x360990 of _0x5b8278['markers'])_0x5820a0['push'](_0x360990);}else{if(_0x5b8278['indent']<_0x472c56)break;{if(_0x5820a0['length']){for(let _0x460f3d of _0x5820a0)_0x460f3d['type']==Type['CodeText']?addCodeText(_0x11fdf1,_0x460f3d['from'],_0x460f3d['to']):_0x11fdf1['push'](_0x460f3d);_0x5820a0=[];}addCodeText(_0x11fdf1,_0x303bde['lineStart']-0x1,_0x303bde['lineStart']);for(let _0x41ee4e of _0x5b8278['markers'])_0x11fdf1['push'](_0x41ee4e);_0x4c4821=_0x303bde['lineStart']+_0x5b8278['text']['length'];let _0x369805=_0x303bde['lineStart']+_0x5b8278['findColumn'](_0x5b8278['baseIndent']+0x4);_0x369805<_0x4c4821&&addCodeText(_0x11fdf1,_0x369805,_0x4c4821);}}return _0x5820a0['length']&&(_0x5820a0=_0x5820a0['filter'](_0x3d0c6a=>_0x3d0c6a['type']!=Type['CodeText']),_0x5820a0['length']&&(_0x5b8278['markers']=_0x5820a0['concat'](_0x5b8278['markers']))),_0x303bde['addNode'](_0x303bde['buffer']['writeElements'](_0x11fdf1,-_0x1b8a4b)['finish'](Type['CodeBlock'],_0x4c4821-_0x1b8a4b),_0x1b8a4b),!0x0;},'FencedCode'(_0x59f3c5,_0x3b7941){let _0x3fb106=isFencedCode(_0x3b7941);if(_0x3fb106<0x0)return!0x1;let _0x19ceb6=_0x59f3c5['lineStart']+_0x3b7941['pos'],_0x59e947=_0x3b7941['next'],_0x4b0e80=_0x3fb106-_0x3b7941['pos'],_0x25c4c9=_0x3b7941['skipSpace'](_0x3fb106),_0x104d60=skipSpaceBack(_0x3b7941['text'],_0x3b7941['text']['length'],_0x25c4c9),_0x400e0d=[elt(Type['CodeMark'],_0x19ceb6,_0x19ceb6+_0x4b0e80)];_0x25c4c9<_0x104d60&&_0x400e0d['push'](elt(Type['CodeInfo'],_0x59f3c5['lineStart']+_0x25c4c9,_0x59f3c5['lineStart']+_0x104d60));for(let _0x2b36f4=!0x0;_0x59f3c5['nextLine']()&&_0x3b7941['depth']>=_0x59f3c5['stack']['length'];_0x2b36f4=!0x1){let _0x427266=_0x3b7941['pos'];if(_0x3b7941['indent']-_0x3b7941['baseIndent']<0x4){for(;_0x427266<_0x3b7941['text']['length']&&_0x3b7941['text']['charCodeAt'](_0x427266)==_0x59e947;)_0x427266++;}if(_0x427266-_0x3b7941['pos']>=_0x4b0e80&&_0x3b7941['skipSpace'](_0x427266)==_0x3b7941['text']['length']){for(let _0x471a3e of _0x3b7941['markers'])_0x400e0d['push'](_0x471a3e);_0x400e0d['push'](elt(Type['CodeMark'],_0x59f3c5['lineStart']+_0x3b7941['pos'],_0x59f3c5['lineStart']+_0x427266)),_0x59f3c5['nextLine']();break;}{_0x2b36f4||addCodeText(_0x400e0d,_0x59f3c5['lineStart']-0x1,_0x59f3c5['lineStart']);for(let _0x1cee2d of _0x3b7941['markers'])_0x400e0d['push'](_0x1cee2d);let _0x3c7fcf=_0x59f3c5['lineStart']+_0x3b7941['basePos'],_0xc8edd8=_0x59f3c5['lineStart']+_0x3b7941['text']['length'];_0x3c7fcf<_0xc8edd8&&addCodeText(_0x400e0d,_0x3c7fcf,_0xc8edd8);}}return _0x59f3c5['addNode'](_0x59f3c5['buffer']['writeElements'](_0x400e0d,-_0x19ceb6)['finish'](Type['FencedCode'],_0x59f3c5['prevLineEnd']()-_0x19ceb6),_0x19ceb6),!0x0;},'Blockquote'(_0x1db43f,_0x2f4ccd){let _0x5ccf50=isBlockquote(_0x2f4ccd);return!(_0x5ccf50<0x0)&&(_0x1db43f['startContext'](Type['Blockquote'],_0x2f4ccd['pos']),_0x1db43f['addNode'](Type['QuoteMark'],_0x1db43f['lineStart']+_0x2f4ccd['pos'],_0x1db43f['lineStart']+_0x2f4ccd['pos']+0x1),_0x2f4ccd['moveBase'](_0x2f4ccd['pos']+_0x5ccf50),null);},'HorizontalRule'(_0x5775ea,_0x51717a){if(isHorizontalRule(_0x51717a,_0x5775ea,!0x1)<0x0)return!0x1;let _0x4605e6=_0x5775ea['lineStart']+_0x51717a['pos'];return _0x5775ea['nextLine'](),_0x5775ea['addNode'](Type['HorizontalRule'],_0x4605e6),!0x0;},'BulletList'(_0x137db0,_0xb2ed62){let _0x6d2d61=isBulletList(_0xb2ed62,_0x137db0,!0x1);if(_0x6d2d61<0x0)return!0x1;_0x137db0['block']['type']!=Type['BulletList']&&_0x137db0['startContext'](Type['BulletList'],_0xb2ed62['basePos'],_0xb2ed62['next']);let _0x4be673=getListIndent(_0xb2ed62,_0xb2ed62['pos']+0x1);return _0x137db0['startContext'](Type['ListItem'],_0xb2ed62['basePos'],_0x4be673-_0xb2ed62['baseIndent']),_0x137db0['addNode'](Type['ListMark'],_0x137db0['lineStart']+_0xb2ed62['pos'],_0x137db0['lineStart']+_0xb2ed62['pos']+_0x6d2d61),_0xb2ed62['moveBaseColumn'](_0x4be673),null;},'OrderedList'(_0x37c4ad,_0x258616){let _0x4ac864=isOrderedList(_0x258616,_0x37c4ad,!0x1);if(_0x4ac864<0x0)return!0x1;_0x37c4ad['block']['type']!=Type['OrderedList']&&_0x37c4ad['startContext'](Type['OrderedList'],_0x258616['basePos'],_0x258616['text']['charCodeAt'](_0x258616['pos']+_0x4ac864-0x1));let _0x55dc94=getListIndent(_0x258616,_0x258616['pos']+_0x4ac864);return _0x37c4ad['startContext'](Type['ListItem'],_0x258616['basePos'],_0x55dc94-_0x258616['baseIndent']),_0x37c4ad['addNode'](Type['ListMark'],_0x37c4ad['lineStart']+_0x258616['pos'],_0x37c4ad['lineStart']+_0x258616['pos']+_0x4ac864),_0x258616['moveBaseColumn'](_0x55dc94),null;},'ATXHeading'(_0x1f4162,_0xb0e7e9){let _0x1488c7=isAtxHeading(_0xb0e7e9);if(_0x1488c7<0x0)return!0x1;let _0x3606be=_0xb0e7e9['pos'],_0x2b2927=_0x1f4162['lineStart']+_0x3606be,_0x1bfcee=skipSpaceBack(_0xb0e7e9['text'],_0xb0e7e9['text']['length'],_0x3606be),_0x28eaa8=_0x1bfcee;for(;_0x28eaa8>_0x3606be&&_0xb0e7e9['text']['charCodeAt'](_0x28eaa8-0x1)==_0xb0e7e9['next'];)_0x28eaa8--;_0x28eaa8!=_0x1bfcee&&_0x28eaa8!=_0x3606be&&space(_0xb0e7e9['text']['charCodeAt'](_0x28eaa8-0x1))||(_0x28eaa8=_0xb0e7e9['text']['length']);let _0x3276cd=_0x1f4162['buffer']['write'](Type['HeaderMark'],0x0,_0x1488c7)['writeElements'](_0x1f4162['parser']['parseInline'](_0xb0e7e9['text']['slice'](_0x3606be+_0x1488c7+0x1,_0x28eaa8),_0x2b2927+_0x1488c7+0x1),-_0x2b2927);_0x28eaa8<_0xb0e7e9['text']['length']&&_0x3276cd['write'](Type['HeaderMark'],_0x28eaa8-_0x3606be,_0x1bfcee-_0x3606be);let _0xf270cc=_0x3276cd['finish'](Type['ATXHeading1']-0x1+_0x1488c7,_0xb0e7e9['text']['length']-_0x3606be);return _0x1f4162['nextLine'](),_0x1f4162['addNode'](_0xf270cc,_0x2b2927),!0x0;},'HTMLBlock'(_0xbb1f60,_0x593bc7){let _0x17102d=isHTMLBlock(_0x593bc7,_0xbb1f60,!0x1);if(_0x17102d<0x0)return!0x1;let _0x417d63=_0xbb1f60['lineStart']+_0x593bc7['pos'],_0x4b5a15=HTMLBlockStyle[_0x17102d][0x1],_0x5b9bd2=[],_0x358da=_0x4b5a15!=EmptyLine;for(;!_0x4b5a15['test'](_0x593bc7['text'])&&_0xbb1f60['nextLine']();){if(_0x593bc7['depth']<_0xbb1f60['stack']['length']){_0x358da=!0x1;break;}for(let _0x86f27 of _0x593bc7['markers'])_0x5b9bd2['push'](_0x86f27);}_0x358da&&_0xbb1f60['nextLine']();let _0x36248e=_0x4b5a15==CommentEnd?Type['CommentBlock']:_0x4b5a15==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0x283d93=_0xbb1f60['prevLineEnd']();return _0xbb1f60['addNode'](_0xbb1f60['buffer']['writeElements'](_0x5b9bd2,-_0x417d63)['finish'](_0x36248e,_0x283d93-_0x417d63),_0x417d63),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x143e00){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x143e00['start'],this['advance'](_0x143e00['content']);}['nextLine'](_0x514278,_0x5a5d35,_0x4a846e){if(-0x1==this['stage'])return!0x1;let _0x252e2b=_0x4a846e['content']+'\x0a'+_0x5a5d35['scrub'](),_0x3845ec=this['advance'](_0x252e2b);return _0x3845ec>-0x1&&_0x3845ec<_0x252e2b['length']&&this['complete'](_0x514278,_0x4a846e,_0x3845ec);}['finish'](_0x3532ea,_0x2b16bd){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x2b16bd['content'],this['pos'])==_0x2b16bd['content']['length']&&this['complete'](_0x3532ea,_0x2b16bd,_0x2b16bd['content']['length']);}['complete'](_0x751347,_0x480ad8,_0x459fb0){return _0x751347['addLeafElement'](_0x480ad8,elt(Type['LinkReference'],this['start'],this['start']+_0x459fb0,this['elts'])),!0x0;}['nextStage'](_0x5d1861){return _0x5d1861?(this['pos']=_0x5d1861['to']-this['start'],this['elts']['push'](_0x5d1861),this['stage']++,!0x0):(!0x1===_0x5d1861&&(this['stage']=-0x1),!0x1);}['advance'](_0x3c64fc){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0x3c64fc,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x3c64fc['charCodeAt'](this['pos']))return this['stage']=-0x1;this['elts']['push'](elt(Type['LinkMark'],this['pos']+this['start'],this['pos']+this['start']+0x1)),this['pos']++;}else{if(0x1!=this['stage']){if(0x2==this['stage']){let _0x2f37b9=skipSpace(_0x3c64fc,this['pos']),_0x15ce31=0x0;if(_0x2f37b9>this['pos']){let _0x5bbc4f=parseLinkTitle(_0x3c64fc,_0x2f37b9,this['start']);if(_0x5bbc4f){let _0x435bc9=lineEnd(_0x3c64fc,_0x5bbc4f['to']-this['start']);_0x435bc9>0x0&&(this['nextStage'](_0x5bbc4f),_0x15ce31=_0x435bc9);}}return _0x15ce31||(_0x15ce31=lineEnd(_0x3c64fc,this['pos'])),_0x15ce31>0x0&&_0x15ce31<_0x3c64fc['length']?_0x15ce31:-0x1;}return lineEnd(_0x3c64fc,this['pos']);}if(!this['nextStage'](parseURL(_0x3c64fc,skipSpace(_0x3c64fc,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x5f0ced,_0x8e18c3){for(;_0x8e18c3<_0x5f0ced['length'];_0x8e18c3++){let _0x3bf738=_0x5f0ced['charCodeAt'](_0x8e18c3);if(0xa==_0x3bf738)break;if(!space(_0x3bf738))return-0x1;}return _0x8e18c3;}class SetextHeadingParser{['nextLine'](_0x11c443,_0x3d6262,_0x53721f){let _0x2978c4=_0x3d6262['depth']<_0x11c443['stack']['length']?-0x1:isSetextUnderline(_0x3d6262),_0x272c08=_0x3d6262['next'];if(_0x2978c4<0x0)return!0x1;let _0x5cb5e0=elt(Type['HeaderMark'],_0x11c443['lineStart']+_0x3d6262['pos'],_0x11c443['lineStart']+_0x2978c4);return _0x11c443['nextLine'](),_0x11c443['addLeafElement'](_0x53721f,elt(0x3d==_0x272c08?Type['SetextHeading1']:Type['SetextHeading2'],_0x53721f['start'],_0x11c443['prevLineEnd'](),[..._0x11c443['parser']['parseInline'](_0x53721f['content'],_0x53721f['start']),_0x5cb5e0])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0x2c7b22,_0x2fedba)=>0x5b==_0x2fedba['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0x2fedba):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x2a0bc5,_0x4346c7)=>isAtxHeading(_0x4346c7)>=0x0,(_0x159290,_0x18b399)=>isFencedCode(_0x18b399)>=0x0,(_0x5ad1ac,_0x5ce3a9)=>isBlockquote(_0x5ce3a9)>=0x0,(_0x4e79f6,_0x204ba3)=>isBulletList(_0x204ba3,_0x4e79f6,!0x0)>=0x0,(_0x1be08c,_0xd433ac)=>isOrderedList(_0xd433ac,_0x1be08c,!0x0)>=0x0,(_0x4da3d7,_0x2c1107)=>isHorizontalRule(_0x2c1107,_0x4da3d7,!0x0)>=0x0,(_0x6feae,_0x376c7a)=>isHTMLBlock(_0x376c7a,_0x6feae,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x4c1c08,_0x3bed8a,_0x4a24dc,_0x33f8ed){this['parser']=_0x4c1c08,this['input']=_0x3bed8a,this['ranges']=_0x33f8ed,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x33f8ed[_0x33f8ed['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x33f8ed[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x4a24dc['length']?new FragmentCursor(_0x4a24dc,_0x3bed8a):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x43b2ca}=this;for(;;){for(let _0x432e11=0x0;;){let _0x345937=_0x43b2ca['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x432e11<_0x43b2ca['markers']['length']&&(!_0x345937||_0x43b2ca['markers'][_0x432e11]['from']<_0x345937['end']);){let _0x51c0fd=_0x43b2ca['markers'][_0x432e11++];this['addNode'](_0x51c0fd['type'],_0x51c0fd['from'],_0x51c0fd['to']);}if(!_0x345937)break;this['finishContext']();}if(_0x43b2ca['pos']<_0x43b2ca['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x43b2ca['basePos']))return null;t:for(;;){for(let _0xcb5fdd of this['parser']['blockParsers'])if(_0xcb5fdd){let _0xa68477=_0xcb5fdd(this,_0x43b2ca);if(0x0!=_0xa68477){if(0x1==_0xa68477)return null;_0x43b2ca['forward']();continue t;}}break;}let _0x52230e=new LeafBlock(this['lineStart']+_0x43b2ca['pos'],_0x43b2ca['text']['slice'](_0x43b2ca['pos']));for(let _0xd8cb0d of this['parser']['leafBlockParsers'])if(_0xd8cb0d){let _0x31fc42=_0xd8cb0d(this,_0x52230e);_0x31fc42&&_0x52230e['parsers']['push'](_0x31fc42);}t:for(;this['nextLine']()&&_0x43b2ca['pos']!=_0x43b2ca['text']['length'];){if(_0x43b2ca['indent']<_0x43b2ca['baseIndent']+0x4){for(let _0x594434 of this['parser']['endLeafBlock'])if(_0x594434(this,_0x43b2ca,_0x52230e))break t;}for(let _0x3dc43d of _0x52230e['parsers'])if(_0x3dc43d['nextLine'](this,_0x43b2ca,_0x52230e))return null;_0x52230e['content']+='\x0a'+_0x43b2ca['scrub']();for(let _0xb5541e of _0x43b2ca['markers'])_0x52230e['marks']['push'](_0xb5541e);}return this['finishLeaf'](_0x52230e),null;}['stopAt'](_0x40ce4b){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x40ce4b)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x40ce4b;}['reuseFragment'](_0x492951){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x492951,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x28eec8=this['fragments']['takeNodes'](this);return!!_0x28eec8&&(this['absoluteLineStart']+=_0x28eec8,this['lineStart']=toRelative(this['absoluteLineStart'],this['ranges']),this['moveRangeI'](),this['absoluteLineStart']<this['to']?(this['lineStart']++,this['absoluteLineStart']++,this['readLine']()):(this['atEnd']=!0x0,this['readLine']()),!0x0);}get['depth'](){return this['stack']['length'];}['parentType'](_0x33e7a3=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x33e7a3]['type']];}['nextLine'](){return this['lineStart']+=this['line']['text']['length'],this['absoluteLineEnd']>=this['to']?(this['absoluteLineStart']=this['absoluteLineEnd'],this['atEnd']=!0x0,this['readLine'](),!0x1):(this['lineStart']++,this['absoluteLineStart']=this['absoluteLineEnd']+0x1,this['moveRangeI'](),this['readLine'](),!0x0);}['peekLine'](){return this['scanLine'](this['absoluteLineEnd']+0x1)['text'];}['moveRangeI'](){for(;this['rangeI']<this['ranges']['length']-0x1&&this['absoluteLineStart']>=this['ranges'][this['rangeI']]['to'];)this['rangeI']++,this['absoluteLineStart']=Math['max'](this['absoluteLineStart'],this['ranges'][this['rangeI']]['from']);}['scanLine'](_0x5cf7f1){let _0x567c91=scanLineResult;if(_0x567c91['end']=_0x5cf7f1,_0x5cf7f1>=this['to'])_0x567c91['text']='';else{if(_0x567c91['text']=this['lineChunkAt'](_0x5cf7f1),_0x567c91['end']+=_0x567c91['text']['length'],this['ranges']['length']>0x1){let _0x4ad3ac=this['absoluteLineStart'],_0x218c1e=this['rangeI'];for(;this['ranges'][_0x218c1e]['to']<_0x567c91['end'];){_0x218c1e++;let _0x5723f6=this['ranges'][_0x218c1e]['from'],_0x2a1c56=this['lineChunkAt'](_0x5723f6);_0x567c91['end']=_0x5723f6+_0x2a1c56['length'],_0x567c91['text']=_0x567c91['text']['slice'](0x0,this['ranges'][_0x218c1e-0x1]['to']-_0x4ad3ac)+_0x2a1c56,_0x4ad3ac=_0x567c91['end']-_0x567c91['text']['length'];}}}return _0x567c91;}['readLine'](){let {line:_0x12c98f}=this,{text:_0x4b18e4,end:_0x325878}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x325878,_0x12c98f['reset'](_0x4b18e4);_0x12c98f['depth']<this['stack']['length'];_0x12c98f['depth']++){let _0xcc569d=this['stack'][_0x12c98f['depth']],_0x20494c=this['parser']['skipContextMarkup'][_0xcc569d['type']];if(!_0x20494c)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0xcc569d['type']]);let _0x49b98e=this['line']['markers']['length'];if(!_0x20494c(_0xcc569d,this,_0x12c98f)){this['line']['markers']['length']>_0x49b98e&&(_0xcc569d['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']);break;}_0x12c98f['forward']();}}['lineChunkAt'](_0x37a833){let _0x10969d,_0x4aef67=this['input']['chunk'](_0x37a833);if(this['input']['lineChunks'])_0x10969d='\x0a'==_0x4aef67?'':_0x4aef67;else{let _0x3734d4=_0x4aef67['indexOf']('\x0a');_0x10969d=_0x3734d4<0x0?_0x4aef67:_0x4aef67['slice'](0x0,_0x3734d4);}return _0x37a833+_0x10969d['length']>this['to']?_0x10969d['slice'](0x0,this['to']-_0x37a833):_0x10969d;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x2c004b,_0x8f75a0,_0x10398a=0x0){this['block']=CompositeBlock['create'](_0x2c004b,_0x10398a,this['lineStart']+_0x8f75a0,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0x31073a,_0x31c942,_0x2d08fa=0x0){this['startContext'](this['parser']['getNodeType'](_0x31073a),_0x31c942,_0x2d08fa);}['addNode'](_0x438e8b,_0x272420,_0x704fba){'number'==typeof _0x438e8b&&(_0x438e8b=new Tree(this['parser']['nodeSet']['types'][_0x438e8b],none,none,(null!=_0x704fba?_0x704fba:this['prevLineEnd']())-_0x272420)),this['block']['addChild'](_0x438e8b,_0x272420-this['block']['from']);}['addElement'](_0x8bc6cf){this['block']['addChild'](_0x8bc6cf['toTree'](this['parser']['nodeSet']),_0x8bc6cf['from']-this['block']['from']);}['addLeafElement'](_0x33dbf0,_0x480c29){this['addNode'](this['buffer']['writeElements'](injectMarks(_0x480c29['children'],_0x33dbf0['marks']),-_0x480c29['from'])['finish'](_0x480c29['type'],_0x480c29['to']-_0x480c29['from']),_0x480c29['from']);}['finishContext'](){let _0x740a5d=this['stack']['pop'](),_0xf229b=this['stack'][this['stack']['length']-0x1];_0xf229b['addChild'](_0x740a5d['toTree'](this['parser']['nodeSet']),_0x740a5d['from']-_0xf229b['from']),this['block']=_0xf229b;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x1f166e){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x1f166e['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x1f166e;}['finishLeaf'](_0x37f40a){for(let _0x2389ef of _0x37f40a['parsers'])if(_0x2389ef['finish'](this,_0x37f40a))return;let _0x1d392b=injectMarks(this['parser']['parseInline'](_0x37f40a['content'],_0x37f40a['start']),_0x37f40a['marks']);this['addNode'](this['buffer']['writeElements'](_0x1d392b,-_0x37f40a['start'])['finish'](Type['Paragraph'],_0x37f40a['content']['length']),_0x37f40a['start']);}['elt'](_0x25e134,_0x291a65,_0x588a60,_0xe2b8ee){return'string'==typeof _0x25e134?elt(this['parser']['getNodeType'](_0x25e134),_0x291a65,_0x588a60,_0xe2b8ee):new TreeElement(_0x25e134,_0x291a65);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0xf835f4,_0x3062ab,_0x5db153,_0x243ae0,_0x29f207){let _0x5b708e=_0xf835f4[_0x3062ab]['to'],_0x1c1514=[],_0xf34f55=[],_0x178e37=_0x5db153['from']+_0x243ae0;function _0x29a7d6(_0x5f3719,_0x5eebde){for(;_0x5eebde?_0x5f3719>=_0x5b708e:_0x5f3719>_0x5b708e;){let _0x354be7=_0xf835f4[_0x3062ab+0x1]['from']-_0x5b708e;_0x243ae0+=_0x354be7,_0x5f3719+=_0x354be7,_0x3062ab++,_0x5b708e=_0xf835f4[_0x3062ab]['to'];}}for(let _0xa0e1d1=_0x5db153['firstChild'];_0xa0e1d1;_0xa0e1d1=_0xa0e1d1['nextSibling']){_0x29a7d6(_0xa0e1d1['from']+_0x243ae0,!0x0);let _0x5b9b44,_0x1f9081=_0xa0e1d1['from']+_0x243ae0,_0x279277=_0x29f207['get'](_0xa0e1d1['tree']);_0x279277?_0x5b9b44=_0x279277:_0xa0e1d1['to']+_0x243ae0>_0x5b708e?(_0x5b9b44=injectGaps(_0xf835f4,_0x3062ab,_0xa0e1d1,_0x243ae0,_0x29f207),_0x29a7d6(_0xa0e1d1['to']+_0x243ae0,!0x1)):_0x5b9b44=_0xa0e1d1['toTree'](),_0x1c1514['push'](_0x5b9b44),_0xf34f55['push'](_0x1f9081-_0x178e37);}return _0x29a7d6(_0x5db153['to']+_0x243ae0,!0x1),new Tree(_0x5db153['type'],_0x1c1514,_0xf34f55,_0x5db153['to']+_0x243ae0-_0x178e37,_0x5db153['tree']?_0x5db153['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x4f2cdf,_0x2aa5fc,_0x9faad9,_0x24ca51,_0x2c7f91,_0x2175e5,_0x4135cc,_0x5b25ba,_0x547520){super(),this['nodeSet']=_0x4f2cdf,this['blockParsers']=_0x2aa5fc,this['leafBlockParsers']=_0x9faad9,this['blockNames']=_0x24ca51,this['endLeafBlock']=_0x2c7f91,this['skipContextMarkup']=_0x2175e5,this['inlineParsers']=_0x4135cc,this['inlineNames']=_0x5b25ba,this['wrappers']=_0x547520,this['nodeTypes']=Object['create'](null);for(let t of _0x4f2cdf['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0x50c4ff,_0x2fd365,_0x1da261){let _0x2a1afb=new BlockContext(this,_0x50c4ff,_0x2fd365,_0x1da261);for(let _0x455f46 of this['wrappers'])_0x2a1afb=_0x455f46(_0x2a1afb,_0x50c4ff,_0x2fd365,_0x1da261);return _0x2a1afb;}['configure'](_0x2ae9a5){let _0x4954d5=resolveConfig(_0x2ae9a5);if(!_0x4954d5)return this;let {nodeSet:_0x294e8c,skipContextMarkup:_0x4c9e3f}=this,_0x781a44=this['blockParsers']['slice'](),_0x5ddbe0=this['leafBlockParsers']['slice'](),_0x239f64=this['blockNames']['slice'](),_0x159c4b=this['inlineParsers']['slice'](),_0x1622f2=this['inlineNames']['slice'](),_0x2e3815=this['endLeafBlock']['slice'](),_0xb7b6e2=this['wrappers'];if(nonEmpty(_0x4954d5['defineNodes'])){_0x4c9e3f=Object['assign']({},_0x4c9e3f);let _0x5cdbdc,_0x43537b=_0x294e8c['types']['slice']();for(let _0xa36225 of _0x4954d5['defineNodes']){let {name:_0x3cb4d1,block:_0x663fdf,composite:_0x2f30e1,style:_0x59c2be}='string'==typeof _0xa36225?{'name':_0xa36225}:_0xa36225;if(_0x43537b['some'](t=>t['name']==_0x3cb4d1))continue;_0x2f30e1&&(_0x4c9e3f[_0x43537b['length']]=(_0x2f493,_0x3084c2,_0x5b5d87)=>_0x2f30e1(_0x3084c2,_0x5b5d87,_0x2f493['value']));let _0x1183b6=_0x43537b['length'],_0x775a71=_0x2f30e1?['Block','BlockContext']:_0x663fdf?_0x1183b6>=Type['ATXHeading1']&&_0x1183b6<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x43537b['push'](NodeType['define']({'id':_0x1183b6,'name':_0x3cb4d1,'props':_0x775a71&&[[NodeProp['group'],_0x775a71]]})),_0x59c2be&&(_0x5cdbdc||(_0x5cdbdc={}),Array['isArray'](_0x59c2be)||_0x59c2be instanceof Tag?_0x5cdbdc[_0x3cb4d1]=_0x59c2be:Object['assign'](_0x5cdbdc,_0x59c2be));}_0x294e8c=new NodeSet(_0x43537b),_0x5cdbdc&&(_0x294e8c=_0x294e8c['extend'](styleTags(_0x5cdbdc)));}if(nonEmpty(_0x4954d5['props'])&&(_0x294e8c=_0x294e8c['extend'](..._0x4954d5['props'])),nonEmpty(_0x4954d5['remove']))for(let _0x38a92f of _0x4954d5['remove']){let _0x23d6c5=this['blockNames']['indexOf'](_0x38a92f),_0x4256a0=this['inlineNames']['indexOf'](_0x38a92f);_0x23d6c5>-0x1&&(_0x781a44[_0x23d6c5]=_0x5ddbe0[_0x23d6c5]=void 0x0),_0x4256a0>-0x1&&(_0x159c4b[_0x4256a0]=void 0x0);}if(nonEmpty(_0x4954d5['parseBlock']))for(let _0x3b3368 of _0x4954d5['parseBlock']){let _0xeaaf39=_0x239f64['indexOf'](_0x3b3368['name']);if(_0xeaaf39>-0x1)_0x781a44[_0xeaaf39]=_0x3b3368['parse'],_0x5ddbe0[_0xeaaf39]=_0x3b3368['leaf'];else{let _0x102248=_0x3b3368['before']?findName(_0x239f64,_0x3b3368['before']):_0x3b3368['after']?findName(_0x239f64,_0x3b3368['after'])+0x1:_0x239f64['length']-0x1;_0x781a44['splice'](_0x102248,0x0,_0x3b3368['parse']),_0x5ddbe0['splice'](_0x102248,0x0,_0x3b3368['leaf']),_0x239f64['splice'](_0x102248,0x0,_0x3b3368['name']);}_0x3b3368['endLeaf']&&_0x2e3815['push'](_0x3b3368['endLeaf']);}if(nonEmpty(_0x4954d5['parseInline']))for(let _0x224948 of _0x4954d5['parseInline']){let _0x3c8055=_0x1622f2['indexOf'](_0x224948['name']);if(_0x3c8055>-0x1)_0x159c4b[_0x3c8055]=_0x224948['parse'];else{let _0x2ee400=_0x224948['before']?findName(_0x1622f2,_0x224948['before']):_0x224948['after']?findName(_0x1622f2,_0x224948['after'])+0x1:_0x1622f2['length']-0x1;_0x159c4b['splice'](_0x2ee400,0x0,_0x224948['parse']),_0x1622f2['splice'](_0x2ee400,0x0,_0x224948['name']);}}return _0x4954d5['wrap']&&(_0xb7b6e2=_0xb7b6e2['concat'](_0x4954d5['wrap'])),new MarkdownParser(_0x294e8c,_0x781a44,_0x5ddbe0,_0x239f64,_0x2e3815,_0x4c9e3f,_0x159c4b,_0x1622f2,_0xb7b6e2);}['getNodeType'](_0x9dce1){let _0x229ae7=this['nodeTypes'][_0x9dce1];if(null==_0x229ae7)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x9dce1+'\x27');return _0x229ae7;}['parseInline'](_0x3037b8,_0x2dc26b){let _0x49f4f4=new InlineContext(this,_0x3037b8,_0x2dc26b);t:for(let _0x4390ea=_0x2dc26b;_0x4390ea<_0x49f4f4['end'];){let _0x285756=_0x49f4f4['char'](_0x4390ea);for(let _0x516e17 of this['inlineParsers'])if(_0x516e17){let _0x453070=_0x516e17(_0x49f4f4,_0x285756,_0x4390ea);if(_0x453070>=0x0){_0x4390ea=_0x453070;continue t;}}_0x4390ea++;}return _0x49f4f4['resolveMarkers'](0x0);}}function nonEmpty(_0x5a92f3){return null!=_0x5a92f3&&_0x5a92f3['length']>0x0;}function resolveConfig(_0x27ff34){if(!Array['isArray'](_0x27ff34))return _0x27ff34;if(0x0==_0x27ff34['length'])return null;let _0x3d10db=resolveConfig(_0x27ff34[0x0]);if(0x1==_0x27ff34['length'])return _0x3d10db;let _0x5b5415=resolveConfig(_0x27ff34['slice'](0x1));if(!_0x5b5415||!_0x3d10db)return _0x3d10db||_0x5b5415;let _0xaebc=(_0x132f83,_0x2833b5)=>(_0x132f83||none)['concat'](_0x2833b5||none),_0x5bdeec=_0x3d10db['wrap'],_0x41bad3=_0x5b5415['wrap'];return{'props':_0xaebc(_0x3d10db['props'],_0x5b5415['props']),'defineNodes':_0xaebc(_0x3d10db['defineNodes'],_0x5b5415['defineNodes']),'parseBlock':_0xaebc(_0x3d10db['parseBlock'],_0x5b5415['parseBlock']),'parseInline':_0xaebc(_0x3d10db['parseInline'],_0x5b5415['parseInline']),'remove':_0xaebc(_0x3d10db['remove'],_0x5b5415['remove']),'wrap':_0x5bdeec?_0x41bad3?(_0x4ec5a5,_0x52096b,_0xdb72fb,_0x4e0106)=>_0x5bdeec(_0x41bad3(_0x4ec5a5,_0x52096b,_0xdb72fb,_0x4e0106),_0x52096b,_0xdb72fb,_0x4e0106):_0x5bdeec:_0x41bad3};}function findName(_0x1a8d55,_0x20fa37){let _0x4b3169=_0x1a8d55['indexOf'](_0x20fa37);if(_0x4b3169<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0x20fa37);return _0x4b3169;}let nodeTypes=[NodeType['none']];for(let e=0x1,i;i=Type[e];e++)nodeTypes[e]=NodeType['define']({'id':e,'name':i,'props':e>=Type['Escape']?[]:[[NodeProp['group'],e in DefaultSkipMarkup?['Block','BlockContext']:['Block','LeafBlock']]],'top':'Document'==i});const none=[];let Buffer$1=class{constructor(_0xb7c588){this['nodeSet']=_0xb7c588,this['content']=[],this['nodes']=[];}['write'](_0x57d6ae,_0x2ba7c3,_0x2110cb,_0x1362bf=0x0){return this['content']['push'](_0x57d6ae,_0x2ba7c3,_0x2110cb,0x4+0x4*_0x1362bf),this;}['writeElements'](_0xe51668,_0xa9213c=0x0){for(let _0x4e0ab2 of _0xe51668)_0x4e0ab2['writeTo'](this,_0xa9213c);return this;}['finish'](_0xd7357c,_0x16eb23){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0xd7357c,'length':_0x16eb23});}},Element$1=class{constructor(_0x31868c,_0x44649b,_0x426142,_0x475bcf=none){this['type']=_0x31868c,this['from']=_0x44649b,this['to']=_0x426142,this['children']=_0x475bcf;}['writeTo'](_0x2580ce,_0x44f2ad){let _0x10b6c3=_0x2580ce['content']['length'];_0x2580ce['writeElements'](this['children'],_0x44f2ad),_0x2580ce['content']['push'](this['type'],this['from']+_0x44f2ad,this['to']+_0x44f2ad,_0x2580ce['content']['length']+0x4-_0x10b6c3);}['toTree'](_0x189603){return new Buffer$1(_0x189603)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0x553ba4,_0x184157){this['tree']=_0x553ba4,this['from']=_0x184157;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x66439a,_0x344d60){_0x66439a['nodes']['push'](this['tree']),_0x66439a['content']['push'](_0x66439a['nodes']['length']-0x1,this['from']+_0x344d60,this['to']+_0x344d60,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x330612,_0x31d95c,_0x5676ed,_0x187de8){return new Element$1(_0x330612,_0x31d95c,_0x5676ed,_0x187de8);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0x6807ce,_0x5bc58c,_0x157501,_0x1a7e43){this['type']=_0x6807ce,this['from']=_0x5bc58c,this['to']=_0x157501,this['side']=_0x1a7e43;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x186066){}const DefaultInline={'Escape'(_0x113cc1,_0xc52054,_0x26bbe3){if(0x5c!=_0xc52054||_0x26bbe3==_0x113cc1['end']-0x1)return-0x1;let _0x11b9ed=_0x113cc1['char'](_0x26bbe3+0x1);for(let _0x476def=0x0;_0x476def<Escapable['length'];_0x476def++)if(Escapable['charCodeAt'](_0x476def)==_0x11b9ed)return _0x113cc1['append'](elt(Type['Escape'],_0x26bbe3,_0x26bbe3+0x2));return-0x1;},'Entity'(_0x246172,_0x1ccf3f,_0x205b27){if(0x26!=_0x1ccf3f)return-0x1;let _0x548bf2=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x246172['slice'](_0x205b27+0x1,_0x205b27+0x1f));return _0x548bf2?_0x246172['append'](elt(Type['Entity'],_0x205b27,_0x205b27+0x1+_0x548bf2[0x0]['length'])):-0x1;},'InlineCode'(_0xb8683c,_0x2292fa,_0x5a7f5a){if(0x60!=_0x2292fa||_0x5a7f5a&&0x60==_0xb8683c['char'](_0x5a7f5a-0x1))return-0x1;let _0x5c3111=_0x5a7f5a+0x1;for(;_0x5c3111<_0xb8683c['end']&&0x60==_0xb8683c['char'](_0x5c3111);)_0x5c3111++;let _0x85cc90=_0x5c3111-_0x5a7f5a,_0x343c44=0x0;for(;_0x5c3111<_0xb8683c['end'];_0x5c3111++)if(0x60==_0xb8683c['char'](_0x5c3111)){if(_0x343c44++,_0x343c44==_0x85cc90&&0x60!=_0xb8683c['char'](_0x5c3111+0x1))return _0xb8683c['append'](elt(Type['InlineCode'],_0x5a7f5a,_0x5c3111+0x1,[elt(Type['CodeMark'],_0x5a7f5a,_0x5a7f5a+_0x85cc90),elt(Type['CodeMark'],_0x5c3111+0x1-_0x85cc90,_0x5c3111+0x1)]));}else _0x343c44=0x0;return-0x1;},'HTMLTag'(_0x478aee,_0x17e923,_0x521fc8){if(0x3c!=_0x17e923||_0x521fc8==_0x478aee['end']-0x1)return-0x1;let _0x112c04=_0x478aee['slice'](_0x521fc8+0x1,_0x478aee['end']),_0x438642=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i['exec'](_0x112c04);if(_0x438642)return _0x478aee['append'](elt(Type['Autolink'],_0x521fc8,_0x521fc8+0x1+_0x438642[0x0]['length'],[elt(Type['LinkMark'],_0x521fc8,_0x521fc8+0x1),elt(Type['URL'],_0x521fc8+0x1,_0x521fc8+_0x438642[0x0]['length']),elt(Type['LinkMark'],_0x521fc8+_0x438642[0x0]['length'],_0x521fc8+0x1+_0x438642[0x0]['length'])]));let _0xb7d856=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x112c04);if(_0xb7d856)return _0x478aee['append'](elt(Type['Comment'],_0x521fc8,_0x521fc8+0x1+_0xb7d856[0x0]['length']));let _0x41c86b=/^\?[^]*?\?>/['exec'](_0x112c04);if(_0x41c86b)return _0x478aee['append'](elt(Type['ProcessingInstruction'],_0x521fc8,_0x521fc8+0x1+_0x41c86b[0x0]['length']));let _0x2f1386=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/['exec'](_0x112c04);return _0x2f1386?_0x478aee['append'](elt(Type['HTMLTag'],_0x521fc8,_0x521fc8+0x1+_0x2f1386[0x0]['length'])):-0x1;},'Emphasis'(_0x516adf,_0x57fcc7,_0x161170){if(0x5f!=_0x57fcc7&&0x2a!=_0x57fcc7)return-0x1;let _0x34f649=_0x161170+0x1;for(;_0x516adf['char'](_0x34f649)==_0x57fcc7;)_0x34f649++;let _0x46a891=_0x516adf['slice'](_0x161170-0x1,_0x161170),_0x4817c9=_0x516adf['slice'](_0x34f649,_0x34f649+0x1),_0x18fa87=Punctuation['test'](_0x46a891),_0x3d5fac=Punctuation['test'](_0x4817c9),_0x17d165=/\s|^$/['test'](_0x46a891),_0x1e9a1f=/\s|^$/['test'](_0x4817c9),_0x1d0ce5=!_0x1e9a1f&&(!_0x3d5fac||_0x17d165||_0x18fa87),_0x2f4757=!_0x17d165&&(!_0x18fa87||_0x1e9a1f||_0x3d5fac),_0x449f40=_0x1d0ce5&&(0x2a==_0x57fcc7||!_0x2f4757||_0x18fa87),_0x30a51c=_0x2f4757&&(0x2a==_0x57fcc7||!_0x1d0ce5||_0x3d5fac);return _0x516adf['append'](new InlineDelimiter(0x5f==_0x57fcc7?EmphasisUnderscore:EmphasisAsterisk,_0x161170,_0x34f649,(_0x449f40?0x1:0x0)|(_0x30a51c?0x2:0x0)));},'HardBreak'(_0x32303f,_0x270bcf,_0x21e80f){if(0x5c==_0x270bcf&&0xa==_0x32303f['char'](_0x21e80f+0x1))return _0x32303f['append'](elt(Type['HardBreak'],_0x21e80f,_0x21e80f+0x2));if(0x20==_0x270bcf){let _0x280034=_0x21e80f+0x1;for(;0x20==_0x32303f['char'](_0x280034);)_0x280034++;if(0xa==_0x32303f['char'](_0x280034)&&_0x280034>=_0x21e80f+0x2)return _0x32303f['append'](elt(Type['HardBreak'],_0x21e80f,_0x280034+0x1));}return-0x1;},'Link':(_0x44bdd1,_0xbc09c1,_0x3fe3d9)=>0x5b==_0xbc09c1?_0x44bdd1['append'](new InlineDelimiter(LinkStart,_0x3fe3d9,_0x3fe3d9+0x1,0x1)):-0x1,'Image':(_0x409767,_0x15343c,_0x1cc846)=>0x21==_0x15343c&&0x5b==_0x409767['char'](_0x1cc846+0x1)?_0x409767['append'](new InlineDelimiter(ImageStart,_0x1cc846,_0x1cc846+0x2,0x1)):-0x1,'LinkEnd'(_0x56374b,_0x377212,_0x2401f1){if(0x5d!=_0x377212)return-0x1;for(let _0x2dc448=_0x56374b['parts']['length']-0x1;_0x2dc448>=0x0;_0x2dc448--){let _0x1b6c64=_0x56374b['parts'][_0x2dc448];if(_0x1b6c64 instanceof InlineDelimiter&&(_0x1b6c64['type']==LinkStart||_0x1b6c64['type']==ImageStart)){if(!_0x1b6c64['side']||_0x56374b['skipSpace'](_0x1b6c64['to'])==_0x2401f1&&!/[(\[]/['test'](_0x56374b['slice'](_0x2401f1+0x1,_0x2401f1+0x2)))return _0x56374b['parts'][_0x2dc448]=null,-0x1;let _0x2813a4=_0x56374b['takeContent'](_0x2dc448),_0x51ec39=_0x56374b['parts'][_0x2dc448]=finishLink(_0x56374b,_0x2813a4,_0x1b6c64['type']==LinkStart?Type['Link']:Type['Image'],_0x1b6c64['from'],_0x2401f1+0x1);if(_0x1b6c64['type']==LinkStart)for(let _0x54e0c5=0x0;_0x54e0c5<_0x2dc448;_0x54e0c5++){let _0x206a60=_0x56374b['parts'][_0x54e0c5];_0x206a60 instanceof InlineDelimiter&&_0x206a60['type']==LinkStart&&(_0x206a60['side']=0x0);}return _0x51ec39['to'];}}return-0x1;}};function finishLink(_0xab26ed,_0x43843d,_0xb76cb0,_0x6d280c,_0x4a6bd3){let {text:_0x19e93d}=_0xab26ed,_0x1610b9=_0xab26ed['char'](_0x4a6bd3),_0x590128=_0x4a6bd3;if(_0x43843d['unshift'](elt(Type['LinkMark'],_0x6d280c,_0x6d280c+(_0xb76cb0==Type['Image']?0x2:0x1))),_0x43843d['push'](elt(Type['LinkMark'],_0x4a6bd3-0x1,_0x4a6bd3)),0x28==_0x1610b9){let _0x471d92,_0x17ed53=_0xab26ed['skipSpace'](_0x4a6bd3+0x1),_0x244112=parseURL(_0x19e93d,_0x17ed53-_0xab26ed['offset'],_0xab26ed['offset']);_0x244112&&(_0x17ed53=_0xab26ed['skipSpace'](_0x244112['to']),_0x17ed53!=_0x244112['to']&&(_0x471d92=parseLinkTitle(_0x19e93d,_0x17ed53-_0xab26ed['offset'],_0xab26ed['offset']),_0x471d92&&(_0x17ed53=_0xab26ed['skipSpace'](_0x471d92['to'])))),0x29==_0xab26ed['char'](_0x17ed53)&&(_0x43843d['push'](elt(Type['LinkMark'],_0x4a6bd3,_0x4a6bd3+0x1)),_0x590128=_0x17ed53+0x1,_0x244112&&_0x43843d['push'](_0x244112),_0x471d92&&_0x43843d['push'](_0x471d92),_0x43843d['push'](elt(Type['LinkMark'],_0x17ed53,_0x590128)));}else{if(0x5b==_0x1610b9){let _0x17d332=parseLinkLabel(_0x19e93d,_0x4a6bd3-_0xab26ed['offset'],_0xab26ed['offset'],!0x1);_0x17d332&&(_0x43843d['push'](_0x17d332),_0x590128=_0x17d332['to']);}}return elt(_0xb76cb0,_0x6d280c,_0x590128,_0x43843d);}function parseURL(_0x525451,_0x46053a,_0x23ec6f){if(0x3c==_0x525451['charCodeAt'](_0x46053a)){for(let _0x448e3e=_0x46053a+0x1;_0x448e3e<_0x525451['length'];_0x448e3e++){let _0x16b762=_0x525451['charCodeAt'](_0x448e3e);if(0x3e==_0x16b762)return elt(Type['URL'],_0x46053a+_0x23ec6f,_0x448e3e+0x1+_0x23ec6f);if(0x3c==_0x16b762||0xa==_0x16b762)return!0x1;}return null;}{let _0x3d3c35=0x0,_0x3d62a2=_0x46053a;for(let _0x3db908=!0x1;_0x3d62a2<_0x525451['length'];_0x3d62a2++){let _0x3d4bc5=_0x525451['charCodeAt'](_0x3d62a2);if(space(_0x3d4bc5))break;if(_0x3db908)_0x3db908=!0x1;else{if(0x28==_0x3d4bc5)_0x3d3c35++;else{if(0x29==_0x3d4bc5){if(!_0x3d3c35)break;_0x3d3c35--;}else 0x5c==_0x3d4bc5&&(_0x3db908=!0x0);}}}return _0x3d62a2>_0x46053a?elt(Type['URL'],_0x46053a+_0x23ec6f,_0x3d62a2+_0x23ec6f):_0x3d62a2==_0x525451['length']&&null;}}function parseLinkTitle(_0x211a22,_0x24a28e,_0x1f460a){let _0x4f286b=_0x211a22['charCodeAt'](_0x24a28e);if(0x27!=_0x4f286b&&0x22!=_0x4f286b&&0x28!=_0x4f286b)return!0x1;let _0x2e8774=0x28==_0x4f286b?0x29:_0x4f286b;for(let _0x46e93b=_0x24a28e+0x1,_0x19703c=!0x1;_0x46e93b<_0x211a22['length'];_0x46e93b++){let _0x17f693=_0x211a22['charCodeAt'](_0x46e93b);if(_0x19703c)_0x19703c=!0x1;else{if(_0x17f693==_0x2e8774)return elt(Type['LinkTitle'],_0x24a28e+_0x1f460a,_0x46e93b+0x1+_0x1f460a);0x5c==_0x17f693&&(_0x19703c=!0x0);}}return null;}function parseLinkLabel(_0x294c43,_0x141134,_0x4a475e,_0xf63a65){for(let _0x521be4=!0x1,_0xc07fde=_0x141134+0x1,_0x2c8bd9=Math['min'](_0x294c43['length'],_0xc07fde+0x3e7);_0xc07fde<_0x2c8bd9;_0xc07fde++){let _0x4bb267=_0x294c43['charCodeAt'](_0xc07fde);if(_0x521be4)_0x521be4=!0x1;else{if(0x5d==_0x4bb267)return!_0xf63a65&&elt(Type['LinkLabel'],_0x141134+_0x4a475e,_0xc07fde+0x1+_0x4a475e);if(_0xf63a65&&!space(_0x4bb267)&&(_0xf63a65=!0x1),0x5b==_0x4bb267)return!0x1;0x5c==_0x4bb267&&(_0x521be4=!0x0);}}return null;}class InlineContext{constructor(_0x312d8f,_0x3e0248,_0x2c8c61){this['parser']=_0x312d8f,this['text']=_0x3e0248,this['offset']=_0x2c8c61,this['parts']=[];}['char'](_0x9f9f46){return _0x9f9f46>=this['end']?-0x1:this['text']['charCodeAt'](_0x9f9f46-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x16a510,_0x4c70a6){return this['text']['slice'](_0x16a510-this['offset'],_0x4c70a6-this['offset']);}['append'](_0x3e1bf5){return this['parts']['push'](_0x3e1bf5),_0x3e1bf5['to'];}['addDelimiter'](_0x333c18,_0x2a2144,_0x5b3045,_0x4d892b,_0x13f36a){return this['append'](new InlineDelimiter(_0x333c18,_0x2a2144,_0x5b3045,(_0x4d892b?0x1:0x0)|(_0x13f36a?0x2:0x0)));}get['hasOpenLink'](){for(let _0x457939=this['parts']['length']-0x1;_0x457939>=0x0;_0x457939--){let _0x4cba2c=this['parts'][_0x457939];if(_0x4cba2c instanceof InlineDelimiter&&(_0x4cba2c['type']==LinkStart||_0x4cba2c['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x45a655){return this['append'](_0x45a655);}['resolveMarkers'](_0x3021a9){for(let _0x270882=_0x3021a9;_0x270882<this['parts']['length'];_0x270882++){let _0x131aa0=this['parts'][_0x270882];if(!(_0x131aa0 instanceof InlineDelimiter&&_0x131aa0['type']['resolve']&&0x2&_0x131aa0['side']))continue;let _0x45c58b,_0x3795aa=_0x131aa0['type']==EmphasisUnderscore||_0x131aa0['type']==EmphasisAsterisk,_0x58f01f=_0x131aa0['to']-_0x131aa0['from'],_0x8defc4=_0x270882-0x1;for(;_0x8defc4>=_0x3021a9;_0x8defc4--){let _0x1e3fdf=this['parts'][_0x8defc4];if(_0x1e3fdf instanceof InlineDelimiter&&0x1&_0x1e3fdf['side']&&_0x1e3fdf['type']==_0x131aa0['type']&&!(_0x3795aa&&(0x1&_0x131aa0['side']||0x2&_0x1e3fdf['side'])&&(_0x1e3fdf['to']-_0x1e3fdf['from']+_0x58f01f)%0x3==0x0&&((_0x1e3fdf['to']-_0x1e3fdf['from'])%0x3||_0x58f01f%0x3))){_0x45c58b=_0x1e3fdf;break;}}if(!_0x45c58b)continue;let _0x5a302b=_0x131aa0['type']['resolve'],_0x2ee04b=[],_0x496004=_0x45c58b['from'],_0x570efd=_0x131aa0['to'];if(_0x3795aa){let _0x47d409=Math['min'](0x2,_0x45c58b['to']-_0x45c58b['from'],_0x58f01f);_0x496004=_0x45c58b['to']-_0x47d409,_0x570efd=_0x131aa0['from']+_0x47d409,_0x5a302b=0x1==_0x47d409?'Emphasis':'StrongEmphasis';}_0x45c58b['type']['mark']&&_0x2ee04b['push'](this['elt'](_0x45c58b['type']['mark'],_0x496004,_0x45c58b['to']));for(let _0x357571=_0x8defc4+0x1;_0x357571<_0x270882;_0x357571++)this['parts'][_0x357571]instanceof Element$1&&_0x2ee04b['push'](this['parts'][_0x357571]),this['parts'][_0x357571]=null;_0x131aa0['type']['mark']&&_0x2ee04b['push'](this['elt'](_0x131aa0['type']['mark'],_0x131aa0['from'],_0x570efd));let _0x113eec=this['elt'](_0x5a302b,_0x496004,_0x570efd,_0x2ee04b);this['parts'][_0x8defc4]=_0x3795aa&&_0x45c58b['from']!=_0x496004?new InlineDelimiter(_0x45c58b['type'],_0x45c58b['from'],_0x496004,_0x45c58b['side']):null,(this['parts'][_0x270882]=_0x3795aa&&_0x131aa0['to']!=_0x570efd?new InlineDelimiter(_0x131aa0['type'],_0x570efd,_0x131aa0['to'],_0x131aa0['side']):null)?this['parts']['splice'](_0x270882,0x0,_0x113eec):this['parts'][_0x270882]=_0x113eec;}let _0x5a06ac=[];for(let _0x92182a=_0x3021a9;_0x92182a<this['parts']['length'];_0x92182a++){let _0x1f7fa4=this['parts'][_0x92182a];_0x1f7fa4 instanceof Element$1&&_0x5a06ac['push'](_0x1f7fa4);}return _0x5a06ac;}['findOpeningDelimiter'](_0x598d77){for(let _0x1df5d8=this['parts']['length']-0x1;_0x1df5d8>=0x0;_0x1df5d8--){let _0x4fe86e=this['parts'][_0x1df5d8];if(_0x4fe86e instanceof InlineDelimiter&&_0x4fe86e['type']==_0x598d77&&0x1&_0x4fe86e['side'])return _0x1df5d8;}return null;}['takeContent'](_0x592fac){let _0x3df215=this['resolveMarkers'](_0x592fac);return this['parts']['length']=_0x592fac,_0x3df215;}['getDelimiterAt'](_0x1ba9e8){let _0x5eae1d=this['parts'][_0x1ba9e8];return _0x5eae1d instanceof InlineDelimiter?_0x5eae1d:null;}['skipSpace'](_0x266ec1){return skipSpace(this['text'],_0x266ec1-this['offset'])+this['offset'];}['elt'](_0xd5d469,_0x3b5411,_0x53ca2d,_0x1983c9){return'string'==typeof _0xd5d469?elt(this['parser']['getNodeType'](_0xd5d469),_0x3b5411,_0x53ca2d,_0x1983c9):new TreeElement(_0xd5d469,_0x3b5411);}}function injectMarks(_0x4c1b6f,_0xbb24f0){if(!_0xbb24f0['length'])return _0x4c1b6f;if(!_0x4c1b6f['length'])return _0xbb24f0;let _0x38ce06=_0x4c1b6f['slice'](),_0x42a476=0x0;for(let _0x271099 of _0xbb24f0){for(;_0x42a476<_0x38ce06['length']&&_0x38ce06[_0x42a476]['to']<_0x271099['to'];)_0x42a476++;if(_0x42a476<_0x38ce06['length']&&_0x38ce06[_0x42a476]['from']<_0x271099['from']){let _0x3c1f58=_0x38ce06[_0x42a476];_0x3c1f58 instanceof Element$1&&(_0x38ce06[_0x42a476]=new Element$1(_0x3c1f58['type'],_0x3c1f58['from'],_0x3c1f58['to'],injectMarks(_0x3c1f58['children'],[_0x271099])));}else _0x38ce06['splice'](_0x42a476++,0x0,_0x271099);}return _0x38ce06;}InlineContext['linkStart']=LinkStart,InlineContext['imageStart']=ImageStart;const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x35ec65,_0x420293){this['fragments']=_0x35ec65,this['input']=_0x420293,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x35ec65['length']&&(this['fragment']=_0x35ec65[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x487892,_0x3a6070){for(;this['fragment']&&this['fragment']['to']<=_0x487892;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x487892?_0x487892-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x588e8d=this['fragment']['to'];for(;_0x588e8d>0x0&&'\x0a'!=this['input']['read'](_0x588e8d-0x1,_0x588e8d);)_0x588e8d--;this['fragmentEnd']=_0x588e8d?_0x588e8d-0x1:0x0;}let _0x19972c=this['cursor'];_0x19972c||(_0x19972c=this['cursor']=this['fragment']['tree']['cursor'](),_0x19972c['firstChild']());let _0x65b62c=_0x487892+this['fragment']['offset'];for(;_0x19972c['to']<=_0x65b62c;)if(!_0x19972c['parent']())return!0x1;for(;;){if(_0x19972c['from']>=_0x65b62c)return this['fragment']['from']<=_0x3a6070;if(!_0x19972c['childAfter'](_0x65b62c))return!0x1;}}['matches'](_0x12a774){let _0xcf3338=this['cursor']['tree'];return _0xcf3338&&_0xcf3338['prop'](NodeProp['contextHash'])==_0x12a774;}['takeNodes'](_0x273776){let _0x13d359=this['cursor'],_0x4e69af=this['fragment']['offset'],_0x483a0f=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0xbd01fa=_0x273776['absoluteLineStart'],_0x255217=_0xbd01fa,_0xbc9b5f=_0x273776['block']['children']['length'],_0x23c132=_0x255217,_0x3d20ec=_0xbc9b5f;for(;;){if(_0x13d359['to']-_0x4e69af>_0x483a0f){if(_0x13d359['type']['isAnonymous']&&_0x13d359['firstChild']())continue;break;}let _0x2692f0=toRelative(_0x13d359['from']-_0x4e69af,_0x273776['ranges']);if(_0x13d359['to']-_0x4e69af<=_0x273776['ranges'][_0x273776['rangeI']]['to'])_0x273776['addNode'](_0x13d359['tree'],_0x2692f0);else{let _0x1299d2=new Tree(_0x273776['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x273776['block']['hashProp']);_0x273776['reusePlaceholders']['set'](_0x1299d2,_0x13d359['tree']),_0x273776['addNode'](_0x1299d2,_0x2692f0);}if(_0x13d359['type']['is']('Block')&&(NotLast['indexOf'](_0x13d359['type']['id'])<0x0?(_0x255217=_0x13d359['to']-_0x4e69af,_0xbc9b5f=_0x273776['block']['children']['length']):(_0x255217=_0x23c132,_0xbc9b5f=_0x3d20ec,_0x23c132=_0x13d359['to']-_0x4e69af,_0x3d20ec=_0x273776['block']['children']['length'])),!_0x13d359['nextSibling']())break;}for(;_0x273776['block']['children']['length']>_0xbc9b5f;)_0x273776['block']['children']['pop'](),_0x273776['block']['positions']['pop']();return _0x255217-_0xbd01fa;}}function toRelative(_0x440799,_0x30adf4){let _0x180cf2=_0x440799;for(let _0x34a5f4=0x1;_0x34a5f4<_0x30adf4['length'];_0x34a5f4++){let _0x419543=_0x30adf4[_0x34a5f4-0x1]['to'],_0x444eac=_0x30adf4[_0x34a5f4]['from'];_0x419543<_0x440799&&(_0x180cf2-=_0x444eac-_0x419543);}return _0x180cf2;}const markdownHighlighting=styleTags({'Blockquote/...':tags$1['quote'],'HorizontalRule':tags$1['contentSeparator'],'ATXHeading1/...\x20SetextHeading1/...':tags$1['heading1'],'ATXHeading2/...\x20SetextHeading2/...':tags$1['heading2'],'ATXHeading3/...':tags$1['heading3'],'ATXHeading4/...':tags$1['heading4'],'ATXHeading5/...':tags$1['heading5'],'ATXHeading6/...':tags$1['heading6'],'Comment\x20CommentBlock':tags$1['comment'],'Escape':tags$1['escape'],'Entity':tags$1['character'],'Emphasis/...':tags$1['emphasis'],'StrongEmphasis/...':tags$1['strong'],'Link/...\x20Image/...':tags$1['link'],'OrderedList/...\x20BulletList/...':tags$1['list'],'BlockQuote/...':tags$1['quote'],'InlineCode\x20CodeText':tags$1['monospace'],'URL\x20Autolink':tags$1['url'],'HeaderMark\x20HardBreak\x20QuoteMark\x20ListMark\x20LinkMark\x20EmphasisMark\x20CodeMark':tags$1['processingInstruction'],'CodeInfo\x20LinkLabel':tags$1['labelName'],'LinkTitle':tags$1['string'],'Paragraph':tags$1['content']}),parser=new MarkdownParser(new NodeSet(nodeTypes)['extend'](markdownHighlighting),Object['keys'](DefaultBlockParsers)['map'](_0x34aac1=>DefaultBlockParsers[_0x34aac1]),Object['keys'](DefaultBlockParsers)['map'](_0x4854d8=>DefaultLeafBlocks[_0x4854d8]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0xae95a3=>DefaultInline[_0xae95a3]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0x465561,_0x1d16ed,_0x5ba5cc){let _0x501bff=[];for(let _0x3663f1=_0x465561['firstChild'],_0x4da711=_0x1d16ed;;_0x3663f1=_0x3663f1['nextSibling']){let _0x51fbfe=_0x3663f1?_0x3663f1['from']:_0x5ba5cc;if(_0x51fbfe>_0x4da711&&_0x501bff['push']({'from':_0x4da711,'to':_0x51fbfe}),!_0x3663f1)break;_0x4da711=_0x3663f1['to'];}return _0x501bff;}function parseCode(_0x73cdf6){let {codeParser:_0x112f01,htmlParser:_0x1ca815}=_0x73cdf6,_0x3848f3=parseMixed((_0x3fe6a0,_0x36d767)=>{let _0x3db1ed=_0x3fe6a0['type']['id'];if(!_0x112f01||_0x3db1ed!=Type['CodeBlock']&&_0x3db1ed!=Type['FencedCode']){if(_0x1ca815&&(_0x3db1ed==Type['HTMLBlock']||_0x3db1ed==Type['HTMLTag']||_0x3db1ed==Type['CommentBlock']))return{'parser':_0x1ca815,'overlay':leftOverSpace(_0x3fe6a0['node'],_0x3fe6a0['from'],_0x3fe6a0['to'])};}else{let _0x10a1ac='';if(_0x3db1ed==Type['FencedCode']){let _0x2b8fa6=_0x3fe6a0['node']['getChild'](Type['CodeInfo']);_0x2b8fa6&&(_0x10a1ac=_0x36d767['read'](_0x2b8fa6['from'],_0x2b8fa6['to']));}let _0x408aec=_0x112f01(_0x10a1ac);if(_0x408aec)return{'parser':_0x408aec,'overlay':_0x12cda1=>_0x12cda1['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x3848f3};}const StrikethroughDelim={'resolve':'Strikethrough','mark':'StrikethroughMark'},Strikethrough={'defineNodes':[{'name':'Strikethrough','style':{'Strikethrough/...':tags$1['strikethrough']}},{'name':'StrikethroughMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Strikethrough','parse'(_0xaa515c,_0x14fcff,_0x48730c){if(0x7e!=_0x14fcff||0x7e!=_0xaa515c['char'](_0x48730c+0x1)||0x7e==_0xaa515c['char'](_0x48730c+0x2))return-0x1;let _0x1beb8f=_0xaa515c['slice'](_0x48730c-0x1,_0x48730c),_0x415131=_0xaa515c['slice'](_0x48730c+0x2,_0x48730c+0x3),_0x106cfa=/\s|^$/['test'](_0x1beb8f),_0x4aff6a=/\s|^$/['test'](_0x415131),_0x2d0922=Punctuation['test'](_0x1beb8f),_0x1fc765=Punctuation['test'](_0x415131);return _0xaa515c['addDelimiter'](StrikethroughDelim,_0x48730c,_0x48730c+0x2,!_0x4aff6a&&(!_0x1fc765||_0x106cfa||_0x2d0922),!_0x106cfa&&(!_0x2d0922||_0x4aff6a||_0x1fc765));},'after':'Emphasis'}]};function parseRow(_0x176a9a,_0x5984fe,_0x2a3db3=0x0,_0x3d58e7,_0x2d13be=0x0){let _0x3f22c0=0x0,_0x429761=!0x0,_0x41239d=-0x1,_0x1332a4=-0x1,_0x2581ad=!0x1,_0x28ef45=()=>{_0x3d58e7['push'](_0x176a9a['elt']('TableCell',_0x2d13be+_0x41239d,_0x2d13be+_0x1332a4,_0x176a9a['parser']['parseInline'](_0x5984fe['slice'](_0x41239d,_0x1332a4),_0x2d13be+_0x41239d)));};for(let _0x1dee49=_0x2a3db3;_0x1dee49<_0x5984fe['length'];_0x1dee49++){let _0x3f1dc1=_0x5984fe['charCodeAt'](_0x1dee49);0x7c!=_0x3f1dc1||_0x2581ad?(_0x2581ad||0x20!=_0x3f1dc1&&0x9!=_0x3f1dc1)&&(_0x41239d<0x0&&(_0x41239d=_0x1dee49),_0x1332a4=_0x1dee49+0x1):((!_0x429761||_0x41239d>-0x1)&&_0x3f22c0++,_0x429761=!0x1,_0x3d58e7&&(_0x41239d>-0x1&&_0x28ef45(),_0x3d58e7['push'](_0x176a9a['elt']('TableDelimiter',_0x1dee49+_0x2d13be,_0x1dee49+_0x2d13be+0x1))),_0x41239d=_0x1332a4=-0x1),_0x2581ad=!_0x2581ad&&0x5c==_0x3f1dc1;}return _0x41239d>-0x1&&(_0x3f22c0++,_0x3d58e7&&_0x28ef45()),_0x3f22c0;}function hasPipe(_0x53ef4f,_0x2959bf){for(let _0x4aee3e=_0x2959bf;_0x4aee3e<_0x53ef4f['length'];_0x4aee3e++){let _0x10fde6=_0x53ef4f['charCodeAt'](_0x4aee3e);if(0x7c==_0x10fde6)return!0x0;0x5c==_0x10fde6&&_0x4aee3e++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x4c9fba,_0x2ab24c,_0x5f1e5e){if(null==this['rows']){let _0x27aa83;if(this['rows']=!0x1,(0x2d==_0x2ab24c['next']||0x3a==_0x2ab24c['next']||0x7c==_0x2ab24c['next'])&&delimiterLine['test'](_0x27aa83=_0x2ab24c['text']['slice'](_0x2ab24c['pos']))){let _0x5ee1b3=[];parseRow(_0x4c9fba,_0x5f1e5e['content'],0x0,_0x5ee1b3,_0x5f1e5e['start'])==parseRow(_0x4c9fba,_0x27aa83,_0x2ab24c['pos'])&&(this['rows']=[_0x4c9fba['elt']('TableHeader',_0x5f1e5e['start'],_0x5f1e5e['start']+_0x5f1e5e['content']['length'],_0x5ee1b3),_0x4c9fba['elt']('TableDelimiter',_0x4c9fba['lineStart']+_0x2ab24c['pos'],_0x4c9fba['lineStart']+_0x2ab24c['text']['length'])]);}}else{if(this['rows']){let _0x20a203=[];parseRow(_0x4c9fba,_0x2ab24c['text'],_0x2ab24c['pos'],_0x20a203,_0x4c9fba['lineStart']),this['rows']['push'](_0x4c9fba['elt']('TableRow',_0x4c9fba['lineStart']+_0x2ab24c['pos'],_0x4c9fba['lineStart']+_0x2ab24c['text']['length'],_0x20a203));}}return!0x1;}['finish'](_0x3cbdb7,_0x2c002c){return!!this['rows']&&(_0x3cbdb7['addLeafElement'](_0x2c002c,_0x3cbdb7['elt']('Table',_0x2c002c['start'],_0x2c002c['start']+_0x2c002c['content']['length'],this['rows'])),!0x0);}}const Table={'defineNodes':[{'name':'Table','block':!0x0},{'name':'TableHeader','style':{'TableHeader/...':tags$1['heading']}},'TableRow',{'name':'TableCell','style':tags$1['content']},{'name':'TableDelimiter','style':tags$1['processingInstruction']}],'parseBlock':[{'name':'Table','leaf':(_0x320e08,_0x14ad13)=>hasPipe(_0x14ad13['content'],0x0)?new TableParser():null,'endLeaf'(_0x23291c,_0x4ca6c8,_0x1fd5c3){if(_0x1fd5c3['parsers']['some'](_0x957339=>_0x957339 instanceof TableParser)||!hasPipe(_0x4ca6c8['text'],_0x4ca6c8['basePos']))return!0x1;let _0xf26f6c=_0x23291c['peekLine']();return delimiterLine['test'](_0xf26f6c)&&parseRow(_0x23291c,_0x4ca6c8['text'],_0x4ca6c8['basePos'])==parseRow(_0x23291c,_0xf26f6c,_0x4ca6c8['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x578933,_0x95fba){return _0x578933['addLeafElement'](_0x95fba,_0x578933['elt']('Task',_0x95fba['start'],_0x95fba['start']+_0x95fba['content']['length'],[_0x578933['elt']('TaskMarker',_0x95fba['start'],_0x95fba['start']+0x3),..._0x578933['parser']['parseInline'](_0x95fba['content']['slice'](0x3),_0x95fba['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x47dd52,_0x453448)=>/^\[[ xX]\][ \t]/['test'](_0x453448['content'])&&'ListItem'==_0x47dd52['parentType']()['name']?new TaskParser():null,'after':'SetextHeading'}]},autolinkRE=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,urlRE=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,lastTwoDomainWords=/[\w-]+\.[\w-]+($|\/)/,emailRE=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,xmppResourceRE=/\/[a-zA-Z\d@.]+/gy;function count(_0x290d32,_0x1fc5de,_0x468a45,_0x1fa59e){let _0xeddfc7=0x0;for(let _0x1cb11b=_0x1fc5de;_0x1cb11b<_0x468a45;_0x1cb11b++)_0x290d32[_0x1cb11b]==_0x1fa59e&&_0xeddfc7++;return _0xeddfc7;}function autolinkURLEnd(_0x182ccd,_0x225859){urlRE['lastIndex']=_0x225859;let _0x410dd3=urlRE['exec'](_0x182ccd);if(!_0x410dd3||lastTwoDomainWords['exec'](_0x410dd3[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x3adb44=_0x225859+_0x410dd3[0x0]['length'];for(;;){let _0x5c55c8,_0x955091=_0x182ccd[_0x3adb44-0x1];if(/[?!.,:*_~]/['test'](_0x955091)||')'==_0x955091&&count(_0x182ccd,_0x225859,_0x3adb44,')')>count(_0x182ccd,_0x225859,_0x3adb44,'('))_0x3adb44--;else{if(';'!=_0x955091||!(_0x5c55c8=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x182ccd['slice'](_0x225859,_0x3adb44))))break;_0x3adb44=_0x225859+_0x5c55c8['index'];}}return _0x3adb44;}function autolinkEmailEnd(_0x422085,_0x2b98c1){emailRE['lastIndex']=_0x2b98c1;let _0x21401c=emailRE['exec'](_0x422085);if(!_0x21401c)return-0x1;let _0x1df1cc=_0x21401c[0x0][_0x21401c[0x0]['length']-0x1];return'_'==_0x1df1cc||'-'==_0x1df1cc?-0x1:_0x2b98c1+_0x21401c[0x0]['length']-('.'==_0x1df1cc?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x1b606d,_0x370399,_0x537bed){let _0x1e79d9=_0x537bed-_0x1b606d['offset'];if(_0x1e79d9&&/\w/['test'](_0x1b606d['text'][_0x1e79d9-0x1]))return-0x1;autolinkRE['lastIndex']=_0x1e79d9;let _0x35dfab=autolinkRE['exec'](_0x1b606d['text']),_0x4f7b5a=-0x1;if(!_0x35dfab)return-0x1;if(_0x35dfab[0x1]||_0x35dfab[0x2])(_0x4f7b5a=autolinkURLEnd(_0x1b606d['text'],_0x1e79d9+_0x35dfab[0x0]['length']),_0x4f7b5a>-0x1&&_0x1b606d['hasOpenLink'])&&(_0x4f7b5a=_0x1e79d9+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x1b606d['text']['slice'](_0x1e79d9,_0x4f7b5a))[0x0]['length']);else _0x35dfab[0x3]?_0x4f7b5a=autolinkEmailEnd(_0x1b606d['text'],_0x1e79d9):(_0x4f7b5a=autolinkEmailEnd(_0x1b606d['text'],_0x1e79d9+_0x35dfab[0x0]['length']),_0x4f7b5a>-0x1&&'xmpp:'==_0x35dfab[0x0]&&(xmppResourceRE['lastIndex']=_0x4f7b5a,_0x35dfab=xmppResourceRE['exec'](_0x1b606d['text']),_0x35dfab&&(_0x4f7b5a=_0x35dfab['index']+_0x35dfab[0x0]['length'])));return _0x4f7b5a<0x0?-0x1:(_0x1b606d['addElement'](_0x1b606d['elt']('URL',_0x537bed,_0x4f7b5a+_0x1b606d['offset'])),_0x4f7b5a+_0x1b606d['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0x28a34f,_0x818189,_0x1dfa69){return(_0x4514c5,_0x5bbd68,_0x17decb)=>{if(_0x5bbd68!=_0x28a34f||_0x4514c5['char'](_0x17decb+0x1)==_0x28a34f)return-0x1;let _0x4bc6d5=[_0x4514c5['elt'](_0x1dfa69,_0x17decb,_0x17decb+0x1)];for(let _0x4cdc68=_0x17decb+0x1;_0x4cdc68<_0x4514c5['end'];_0x4cdc68++){let _0x2be625=_0x4514c5['char'](_0x4cdc68);if(_0x2be625==_0x28a34f)return _0x4514c5['addElement'](_0x4514c5['elt'](_0x818189,_0x17decb,_0x4cdc68+0x1,_0x4bc6d5['concat'](_0x4514c5['elt'](_0x1dfa69,_0x4cdc68,_0x4cdc68+0x1))));if(0x5c==_0x2be625&&_0x4bc6d5['push'](_0x4514c5['elt']('Escape',_0x4cdc68,0x2+_0x4cdc68++)),space(_0x2be625))break;}return-0x1;};}const Superscript={'defineNodes':[{'name':'Superscript','style':tags$1['special'](tags$1['content'])},{'name':'SuperscriptMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Superscript','parse':parseSubSuper(0x5e,'Superscript','SuperscriptMark')}]},Subscript={'defineNodes':[{'name':'Subscript','style':tags$1['special'](tags$1['content'])},{'name':'SubscriptMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Subscript','parse':parseSubSuper(0x7e,'Subscript','SubscriptMark')}]},Emoji={'defineNodes':[{'name':'Emoji','style':tags$1['character']}],'parseInline':[{'name':'Emoji','parse'(_0x4764ff,_0xd4acea,_0x573e8b){let _0xda0bb8;return 0x3a==_0xd4acea&&(_0xda0bb8=/^[a-zA-Z_0-9]+:/['exec'](_0x4764ff['slice'](_0x573e8b+0x1,_0x4764ff['end'])))?_0x4764ff['addElement'](_0x4764ff['elt']('Emoji',_0x573e8b,_0x573e8b+0x1+_0xda0bb8[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x4ee029=>!_0x4ee029['is']('Block')||_0x4ee029['is']('Document')||null!=isHeading(_0x4ee029)||isList(_0x4ee029)?void 0x0:(_0x2a0df1,_0x3a2978)=>({'from':_0x3a2978['doc']['lineAt'](_0x2a0df1['from'])['to'],'to':_0x2a0df1['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0x316136){let _0x23246e=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x316136['name']);return _0x23246e?+_0x23246e[0x1]:void 0x0;}function isList(_0xcdc3bd){return'OrderedList'==_0xcdc3bd['name']||'BulletList'==_0xcdc3bd['name'];}function findSectionEnd(_0x2294cb,_0x275e2c){let _0x2184bf=_0x2294cb;for(;;){let _0x2d204d,_0x379643=_0x2184bf['nextSibling'];if(!_0x379643||null!=(_0x2d204d=isHeading(_0x379643['type']))&&_0x2d204d<=_0x275e2c)break;_0x2184bf=_0x379643;}return _0x2184bf['to'];}const headerIndent=foldService['of']((_0x234a24,_0x40668f,_0x27ca93)=>{for(let _0x32c6d5=syntaxTree(_0x234a24)['resolveInner'](_0x27ca93,-0x1);_0x32c6d5&&!(_0x32c6d5['from']<_0x40668f);_0x32c6d5=_0x32c6d5['parent']){let _0x1b2fbb=_0x32c6d5['type']['prop'](headingProp);if(null==_0x1b2fbb)continue;let _0x22d192=findSectionEnd(_0x32c6d5,_0x1b2fbb);if(_0x22d192>_0x27ca93)return{'from':_0x27ca93,'to':_0x22d192};}return null;});function mkLang(_0xfccaf7){return new Language(data,_0xfccaf7,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0xa4a55c,_0x43821e)=>({'from':_0x43821e['doc']['lineAt'](_0xa4a55c['from'])['to'],'to':_0xa4a55c['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x5641b8,_0x4d4e60){return _0x7170f=>{if(_0x7170f&&_0x5641b8){let _0x1d6b74=null;if(_0x7170f=/\S*/['exec'](_0x7170f)[0x0],_0x1d6b74='function'==typeof _0x5641b8?_0x5641b8(_0x7170f):LanguageDescription['matchLanguageName'](_0x5641b8,_0x7170f,!0x0),_0x1d6b74 instanceof LanguageDescription)return _0x1d6b74['support']?_0x1d6b74['support']['language']['parser']:ParseContext['getSkippingParser'](_0x1d6b74['load']());if(_0x1d6b74)return _0x1d6b74['parser'];}return _0x4d4e60?_0x4d4e60['parser']:null;};}class Context{constructor(_0x500930,_0x5bdd27,_0x57547d,_0x12ad75,_0x41fbcb,_0x6f7df9,_0x50ff66){this['node']=_0x500930,this['from']=_0x5bdd27,this['to']=_0x57547d,this['spaceBefore']=_0x12ad75,this['spaceAfter']=_0x41fbcb,this['type']=_0x6f7df9,this['item']=_0x50ff66;}['blank'](_0x23bac7,_0x7b4107=!0x0){let _0x4abfd0=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x23bac7){for(;_0x4abfd0['length']<_0x23bac7;)_0x4abfd0+='\x20';return _0x4abfd0;}for(let _0x3aebb7=this['to']-this['from']-_0x4abfd0['length']-this['spaceAfter']['length'];_0x3aebb7>0x0;_0x3aebb7--)_0x4abfd0+='\x20';return _0x4abfd0+(_0x7b4107?this['spaceAfter']:'');}['marker'](_0x2c9ac8,_0x5e0a2a){let _0x559475='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x2c9ac8)[0x2]+_0x5e0a2a):'';return this['spaceBefore']+_0x559475+this['type']+this['spaceAfter'];}}function getContext(_0x5b60bc,_0x8ba20e){let _0x476544=[],_0x530aa3=[];for(let _0x88257e=_0x5b60bc;_0x88257e;_0x88257e=_0x88257e['parent']){if('FencedCode'==_0x88257e['name'])return _0x530aa3;'ListItem'!=_0x88257e['name']&&'Blockquote'!=_0x88257e['name']||_0x476544['push'](_0x88257e);}for(let _0x5763cf=_0x476544['length']-0x1;_0x5763cf>=0x0;_0x5763cf--){let _0x41d85e,_0x36893d=_0x476544[_0x5763cf],_0x2e3898=_0x8ba20e['lineAt'](_0x36893d['from']),_0x180100=_0x36893d['from']-_0x2e3898['from'];if('Blockquote'==_0x36893d['name']&&(_0x41d85e=/^ *>( ?)/['exec'](_0x2e3898['text']['slice'](_0x180100))))_0x530aa3['push'](new Context(_0x36893d,_0x180100,_0x180100+_0x41d85e[0x0]['length'],'',_0x41d85e[0x1],'>',null));else{if('ListItem'==_0x36893d['name']&&'OrderedList'==_0x36893d['parent']['name']&&(_0x41d85e=/^( *)\d+([.)])( *)/['exec'](_0x2e3898['text']['slice'](_0x180100)))){let _0x3bb3ba=_0x41d85e[0x3],_0x3b35c7=_0x41d85e[0x0]['length'];_0x3bb3ba['length']>=0x4&&(_0x3bb3ba=_0x3bb3ba['slice'](0x0,_0x3bb3ba['length']-0x4),_0x3b35c7-=0x4),_0x530aa3['push'](new Context(_0x36893d['parent'],_0x180100,_0x180100+_0x3b35c7,_0x41d85e[0x1],_0x3bb3ba,_0x41d85e[0x2],_0x36893d));}else{if('ListItem'==_0x36893d['name']&&'BulletList'==_0x36893d['parent']['name']&&(_0x41d85e=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x2e3898['text']['slice'](_0x180100)))){let _0x1cd243=_0x41d85e[0x4],_0x5e7eb9=_0x41d85e[0x0]['length'];_0x1cd243['length']>0x4&&(_0x1cd243=_0x1cd243['slice'](0x0,_0x1cd243['length']-0x4),_0x5e7eb9-=0x4);let _0x55d7b8=_0x41d85e[0x2];_0x41d85e[0x3]&&(_0x55d7b8+=_0x41d85e[0x3]['replace'](/[xX]/,'\x20')),_0x530aa3['push'](new Context(_0x36893d['parent'],_0x180100,_0x180100+_0x5e7eb9,_0x41d85e[0x1],_0x1cd243,_0x55d7b8,_0x36893d));}}}}return _0x530aa3;}function itemNumber(_0x1c4dff,_0x435a3b){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x435a3b['sliceString'](_0x1c4dff['from'],_0x1c4dff['from']+0xa));}function renumberList(_0x4e3fe4,_0x2a20b4,_0x4bbc66,_0x6ce0b6=0x0){for(let _0x2809df=-0x1,_0x4eda0c=_0x4e3fe4;;){if('ListItem'==_0x4eda0c['name']){let _0x404f82=itemNumber(_0x4eda0c,_0x2a20b4),_0x3e6e47=+_0x404f82[0x2];if(_0x2809df>=0x0){if(_0x3e6e47!=_0x2809df+0x1)return;_0x4bbc66['push']({'from':_0x4eda0c['from']+_0x404f82[0x1]['length'],'to':_0x4eda0c['from']+_0x404f82[0x0]['length'],'insert':String(_0x2809df+0x2+_0x6ce0b6)});}_0x2809df=_0x3e6e47;}let _0x2604ee=_0x4eda0c['nextSibling'];if(!_0x2604ee)break;_0x4eda0c=_0x2604ee;}}function normalizeIndent(_0x501360,_0x6e96af){let _0x103e6c=/^[ \t]*/['exec'](_0x501360)[0x0]['length'];if(!_0x103e6c||'\x09'!=_0x6e96af['facet'](indentUnit))return _0x501360;let _0x1cd8e9='';for(let _0x350283=countColumn(_0x501360,0x4,_0x103e6c);_0x350283>0x0;)_0x350283>=0x4?(_0x1cd8e9+='\x09',_0x350283-=0x4):(_0x1cd8e9+='\x20',_0x350283--);return _0x1cd8e9+_0x501360['slice'](_0x103e6c);}const insertNewlineContinueMarkup=({state:_0x593734,dispatch:_0x2eca04})=>{let _0x179d29=syntaxTree(_0x593734),{doc:_0x333edc}=_0x593734,_0x4ee362=null,_0x5c4017=_0x593734['changeByRange'](_0x1e41b0=>{if(!_0x1e41b0['empty']||!markdownLanguage['isActiveAt'](_0x593734,_0x1e41b0['from'],0x0))return _0x4ee362={'range':_0x1e41b0};let _0x384a71=_0x1e41b0['from'],_0x384ba=_0x333edc['lineAt'](_0x384a71),_0x2de78e=getContext(_0x179d29['resolveInner'](_0x384a71,-0x1),_0x333edc);for(;_0x2de78e['length']&&_0x2de78e[_0x2de78e['length']-0x1]['from']>_0x384a71-_0x384ba['from'];)_0x2de78e['pop']();if(!_0x2de78e['length'])return _0x4ee362={'range':_0x1e41b0};let _0x119ea5=_0x2de78e[_0x2de78e['length']-0x1];if(_0x119ea5['to']-_0x119ea5['spaceAfter']['length']>_0x384a71-_0x384ba['from'])return _0x4ee362={'range':_0x1e41b0};let _0x46c44a=_0x384a71>=_0x119ea5['to']-_0x119ea5['spaceAfter']['length']&&!/\S/['test'](_0x384ba['text']['slice'](_0x119ea5['to']));if(_0x119ea5['item']&&_0x46c44a){let _0x4c2d95=_0x119ea5['node']['firstChild'],_0x1f6f21=_0x119ea5['node']['getChild']('ListItem','ListItem');if(_0x4c2d95['to']>=_0x384a71||_0x1f6f21&&_0x1f6f21['to']<_0x384a71||_0x384ba['from']>0x0&&!/[^\s>]/['test'](_0x333edc['lineAt'](_0x384ba['from']-0x1)['text'])){let _0x94c4dd,_0x1f5a92=_0x2de78e['length']>0x1?_0x2de78e[_0x2de78e['length']-0x2]:null,_0xc088a5='';_0x1f5a92&&_0x1f5a92['item']?(_0x94c4dd=_0x384ba['from']+_0x1f5a92['from'],_0xc088a5=_0x1f5a92['marker'](_0x333edc,0x1)):_0x94c4dd=_0x384ba['from']+(_0x1f5a92?_0x1f5a92['to']:0x0);let _0x1d6145=[{'from':_0x94c4dd,'to':_0x384a71,'insert':_0xc088a5}];return'OrderedList'==_0x119ea5['node']['name']&&renumberList(_0x119ea5['item'],_0x333edc,_0x1d6145,-0x2),_0x1f5a92&&'OrderedList'==_0x1f5a92['node']['name']&&renumberList(_0x1f5a92['item'],_0x333edc,_0x1d6145),{'range':EditorSelection['cursor'](_0x94c4dd+_0xc088a5['length']),'changes':_0x1d6145};}{let _0x467bbc=blankLine(_0x2de78e,_0x593734,_0x384ba);return{'range':EditorSelection['cursor'](_0x384a71+_0x467bbc['length']+0x1),'changes':{'from':_0x384ba['from'],'insert':_0x467bbc+_0x593734['lineBreak']}};}}if('Blockquote'==_0x119ea5['node']['name']&&_0x46c44a&&_0x384ba['from']){let _0x3eea24=_0x333edc['lineAt'](_0x384ba['from']-0x1),_0x2defa1=/>\s*$/['exec'](_0x3eea24['text']);if(_0x2defa1&&_0x2defa1['index']==_0x119ea5['from']){let _0x38768d=_0x593734['changes']([{'from':_0x3eea24['from']+_0x2defa1['index'],'to':_0x3eea24['to']},{'from':_0x384ba['from']+_0x119ea5['from'],'to':_0x384ba['to']}]);return{'range':_0x1e41b0['map'](_0x38768d),'changes':_0x38768d};}}let _0x8d6773=[];'OrderedList'==_0x119ea5['node']['name']&&renumberList(_0x119ea5['item'],_0x333edc,_0x8d6773);let _0x4d4406=_0x119ea5['item']&&_0x119ea5['item']['from']<_0x384ba['from'],_0x1bb231='';if(!_0x4d4406||/^[\s\d.)\-+*>]*/['exec'](_0x384ba['text'])[0x0]['length']>=_0x119ea5['to']){for(let _0x193eec=0x0,_0x4d52f5=_0x2de78e['length']-0x1;_0x193eec<=_0x4d52f5;_0x193eec++)_0x1bb231+=_0x193eec!=_0x4d52f5||_0x4d4406?_0x2de78e[_0x193eec]['blank'](_0x193eec<_0x4d52f5?countColumn(_0x384ba['text'],0x4,_0x2de78e[_0x193eec+0x1]['from'])-_0x1bb231['length']:null):_0x2de78e[_0x193eec]['marker'](_0x333edc,0x1);}let _0x151b79=_0x384a71;for(;_0x151b79>_0x384ba['from']&&/\s/['test'](_0x384ba['text']['charAt'](_0x151b79-_0x384ba['from']-0x1));)_0x151b79--;return _0x1bb231=normalizeIndent(_0x1bb231,_0x593734),nonTightList(_0x119ea5['node'],_0x593734['doc'])&&(_0x1bb231=blankLine(_0x2de78e,_0x593734,_0x384ba)+_0x593734['lineBreak']+_0x1bb231),_0x8d6773['push']({'from':_0x151b79,'to':_0x384a71,'insert':_0x593734['lineBreak']+_0x1bb231}),{'range':EditorSelection['cursor'](_0x151b79+_0x1bb231['length']+0x1),'changes':_0x8d6773};});return!_0x4ee362&&(_0x2eca04(_0x593734['update'](_0x5c4017,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x584348){return'QuoteMark'==_0x584348['name']||'ListMark'==_0x584348['name'];}function nonTightList(_0x4b14b9,_0x1ba502){if('OrderedList'!=_0x4b14b9['name']&&'BulletList'!=_0x4b14b9['name'])return!0x1;let _0x51e6d0=_0x4b14b9['firstChild'],_0x33541f=_0x4b14b9['getChild']('ListItem','ListItem');if(!_0x33541f)return!0x1;let _0x58f637=_0x1ba502['lineAt'](_0x51e6d0['to']),_0x4bbd83=_0x1ba502['lineAt'](_0x33541f['from']),_0x28157b=/^[\s>]*$/['test'](_0x58f637['text']);return _0x58f637['number']+(_0x28157b?0x0:0x1)<_0x4bbd83['number'];}function blankLine(_0x4e60a1,_0x1904ae,_0x40f3ca){let _0x8c1d45='';for(let _0x2046b2=0x0,_0x309c72=_0x4e60a1['length']-0x2;_0x2046b2<=_0x309c72;_0x2046b2++)_0x8c1d45+=_0x4e60a1[_0x2046b2]['blank'](_0x2046b2<_0x309c72?countColumn(_0x40f3ca['text'],0x4,Math['min'](_0x40f3ca['text']['length'],_0x4e60a1[_0x2046b2+0x1]['from']))-_0x8c1d45['length']:null,_0x2046b2<_0x309c72);return normalizeIndent(_0x8c1d45,_0x1904ae);}function contextNodeForDelete(_0x4cb393,_0xd27a00){let _0x1dbbff=_0x4cb393['resolveInner'](_0xd27a00,-0x1),_0x3be0e9=_0xd27a00;isMark(_0x1dbbff)&&(_0x3be0e9=_0x1dbbff['from'],_0x1dbbff=_0x1dbbff['parent']);for(let _0x4354be;_0x4354be=_0x1dbbff['childBefore'](_0x3be0e9);)if(isMark(_0x4354be))_0x3be0e9=_0x4354be['from'];else{if('OrderedList'!=_0x4354be['name']&&'BulletList'!=_0x4354be['name'])break;_0x1dbbff=_0x4354be['lastChild'],_0x3be0e9=_0x1dbbff['to'];}return _0x1dbbff;}const deleteMarkupBackward=({state:_0x1c92d8,dispatch:_0x311697})=>{let _0x1c53f1=syntaxTree(_0x1c92d8),_0x16055d=null,_0x224975=_0x1c92d8['changeByRange'](_0x38f55d=>{let _0x11a52a=_0x38f55d['from'],{doc:_0x65b7d4}=_0x1c92d8;if(_0x38f55d['empty']&&markdownLanguage['isActiveAt'](_0x1c92d8,_0x38f55d['from'])){let _0x14184b=_0x65b7d4['lineAt'](_0x11a52a),_0x4cbeb5=getContext(contextNodeForDelete(_0x1c53f1,_0x11a52a),_0x65b7d4);if(_0x4cbeb5['length']){let _0x3d17a6=_0x4cbeb5[_0x4cbeb5['length']-0x1],_0x3f38f3=_0x3d17a6['to']-_0x3d17a6['spaceAfter']['length']+(_0x3d17a6['spaceAfter']?0x1:0x0);if(_0x11a52a-_0x14184b['from']>_0x3f38f3&&!/\S/['test'](_0x14184b['text']['slice'](_0x3f38f3,_0x11a52a-_0x14184b['from'])))return{'range':EditorSelection['cursor'](_0x14184b['from']+_0x3f38f3),'changes':{'from':_0x14184b['from']+_0x3f38f3,'to':_0x11a52a}};if(_0x11a52a-_0x14184b['from']==_0x3f38f3&&(!_0x3d17a6['item']||_0x14184b['from']<=_0x3d17a6['item']['from']||!/\S/['test'](_0x14184b['text']['slice'](0x0,_0x3d17a6['to'])))){let _0x1c05b6=_0x14184b['from']+_0x3d17a6['from'];if(_0x3d17a6['item']&&_0x3d17a6['node']['from']<_0x3d17a6['item']['from']&&/\S/['test'](_0x14184b['text']['slice'](_0x3d17a6['from'],_0x3d17a6['to']))){let _0x5c3b34=_0x3d17a6['blank'](countColumn(_0x14184b['text'],0x4,_0x3d17a6['to'])-countColumn(_0x14184b['text'],0x4,_0x3d17a6['from']));return _0x1c05b6==_0x14184b['from']&&(_0x5c3b34=normalizeIndent(_0x5c3b34,_0x1c92d8)),{'range':EditorSelection['cursor'](_0x1c05b6+_0x5c3b34['length']),'changes':{'from':_0x1c05b6,'to':_0x14184b['from']+_0x3d17a6['to'],'insert':_0x5c3b34}};}if(_0x1c05b6<_0x11a52a)return{'range':EditorSelection['cursor'](_0x1c05b6),'changes':{'from':_0x1c05b6,'to':_0x11a52a}};}}}return _0x16055d={'range':_0x38f55d};});return!_0x16055d&&(_0x311697(_0x1c92d8['update'](_0x224975,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0x3f29fc={}){let {codeLanguages:_0x509ff6,defaultCodeLanguage:_0x4181f4,addKeymap:_0x485c41=!0x0,base:{parser:_0x21397e}=commonmarkLanguage,completeHTMLTags:_0x2e93a2=!0x0,htmlTagLanguage:_0x166a86=htmlNoMatch}=_0x3f29fc;if(!(_0x21397e instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x319e64,_0x23d304=_0x3f29fc['extensions']?[_0x3f29fc['extensions']]:[],_0x245d38=[_0x166a86['support']];_0x4181f4 instanceof LanguageSupport?(_0x245d38['push'](_0x4181f4['support']),_0x319e64=_0x4181f4['language']):_0x4181f4&&(_0x319e64=_0x4181f4);let _0x39ebd7=_0x509ff6||_0x319e64?getCodeParser(_0x509ff6,_0x319e64):void 0x0;_0x23d304['push'](parseCode({'codeParser':_0x39ebd7,'htmlParser':_0x166a86['language']['parser']})),_0x485c41&&_0x245d38['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x58a1f9=mkLang(_0x21397e['configure'](_0x23d304));return _0x2e93a2&&_0x245d38['push'](_0x58a1f9['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x58a1f9,_0x245d38);}function htmlTagCompletion(_0x474723){let {state:_0x277c90,pos:_0xf53858}=_0x474723,_0xc71ceb=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x277c90['sliceDoc'](_0xf53858-0x19,_0xf53858));if(!_0xc71ceb)return null;let _0x4a2611=syntaxTree(_0x277c90)['resolveInner'](_0xf53858,-0x1);for(;_0x4a2611&&!_0x4a2611['type']['isTop'];){if('CodeBlock'==_0x4a2611['name']||'FencedCode'==_0x4a2611['name']||'ProcessingInstructionBlock'==_0x4a2611['name']||'CommentBlock'==_0x4a2611['name']||'Link'==_0x4a2611['name']||'Image'==_0x4a2611['name'])return null;_0x4a2611=_0x4a2611['parent'];}return{'from':_0xf53858-_0xc71ceb[0x0]['length'],'to':_0xf53858,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x3d7030=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x3d7030?_0x3d7030['options']:[];}const chalky='#e5c07b',coral='#e06c75',cyan='#56b6c2',invalid='#ffffff',ivory='#abb2bf',stone='#7d8799',malibu='#61afef',sage='#98c379',whiskey='#d19a66',violet='#c678dd',darkBackground='#21252b',highlightBackground='#2c313a',background='#282c34',tooltipBackground='#353a42',selection='#3E4451',cursor='#528bff',oneDarkTheme=EditorView['theme']({'&':{'color':ivory,'backgroundColor':background},'.cm-content':{'caretColor':cursor},'.cm-cursor,\x20.cm-dropCursor':{'borderLeftColor':cursor},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground,\x20.cm-selectionBackground,\x20.cm-content\x20::selection':{'backgroundColor':selection},'.cm-panels':{'backgroundColor':darkBackground,'color':ivory},'.cm-panels.cm-panels-top':{'borderBottom':'2px\x20solid\x20black'},'.cm-panels.cm-panels-bottom':{'borderTop':'2px\x20solid\x20black'},'.cm-searchMatch':{'backgroundColor':'#72a1ff59','outline':'1px\x20solid\x20#457dff'},'.cm-searchMatch.cm-searchMatch-selected':{'backgroundColor':'#6199ff2f'},'.cm-activeLine':{'backgroundColor':'#6699ff0b'},'.cm-selectionMatch':{'backgroundColor':'#aafe661a'},'&.cm-focused\x20.cm-matchingBracket,\x20&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bad0f847'},'.cm-gutters':{'backgroundColor':background,'color':stone,'border':'none'},'.cm-activeLineGutter':{'backgroundColor':highlightBackground},'.cm-foldPlaceholder':{'backgroundColor':'transparent','border':'none','color':'#ddd'},'.cm-tooltip':{'border':'none','backgroundColor':tooltipBackground},'.cm-tooltip\x20.cm-tooltip-arrow:before':{'borderTopColor':'transparent','borderBottomColor':'transparent'},'.cm-tooltip\x20.cm-tooltip-arrow:after':{'borderTopColor':tooltipBackground,'borderBottomColor':tooltipBackground},'.cm-tooltip-autocomplete':{'&\x20>\x20ul\x20>\x20li[aria-selected]':{'backgroundColor':highlightBackground,'color':ivory}}},{'dark':!0x0}),oneDarkHighlightStyle=HighlightStyle['define']([{'tag':tags$1['keyword'],'color':violet},{'tag':[tags$1['name'],tags$1['deleted'],tags$1['character'],tags$1['propertyName'],tags$1['macroName']],'color':coral},{'tag':[tags$1['function'](tags$1['variableName']),tags$1['labelName']],'color':malibu},{'tag':[tags$1['color'],tags$1['constant'](tags$1['name']),tags$1['standard'](tags$1['name'])],'color':whiskey},{'tag':[tags$1['definition'](tags$1['name']),tags$1['separator']],'color':ivory},{'tag':[tags$1['typeName'],tags$1['className'],tags$1['number'],tags$1['changed'],tags$1['annotation'],tags$1['modifier'],tags$1['self'],tags$1['namespace']],'color':chalky},{'tag':[tags$1['operator'],tags$1['operatorKeyword'],tags$1['url'],tags$1['escape'],tags$1['regexp'],tags$1['link'],tags$1['special'](tags$1['string'])],'color':cyan},{'tag':[tags$1['meta'],tags$1['comment']],'color':stone},{'tag':tags$1['strong'],'fontWeight':'bold'},{'tag':tags$1['emphasis'],'fontStyle':'italic'},{'tag':tags$1['strikethrough'],'textDecoration':'line-through'},{'tag':tags$1['link'],'color':stone,'textDecoration':'underline'},{'tag':tags$1['heading'],'fontWeight':'bold','color':coral},{'tag':[tags$1['atom'],tags$1['bool'],tags$1['special'](tags$1['variableName'])],'color':whiskey},{'tag':[tags$1['processingInstruction'],tags$1['string'],tags$1['inserted']],'color':sage},{'tag':tags$1['invalid'],'color':invalid}]),oneDark=[oneDarkTheme,syntaxHighlighting(oneDarkHighlightStyle)];function createCodeMirrorEditor(_0xdf96ca){const _0x5f01b4=getDefaultExtensions(),_0x196f5e=new Compartment();_0x5f01b4['push'](_0x196f5e['of'](EditorView['editable']['of'](!0x0))),'html'===_0xdf96ca['syntaxLanguage']?_0x5f01b4['push'](html()):_0x5f01b4['push'](markdown());const _0x51404f=normalizeTheme(_0xdf96ca['theme']);_0x51404f&&_0x5f01b4['push'](_0x51404f),_0x5f01b4['push'](...getKeybindings());const _0x5631f7=new EditorView({'extensions':_0x5f01b4,'parent':_0xdf96ca['parent']});return toggleTabFocusMode(_0x5631f7),{'focus':()=>{_0x5631f7['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x5631f7['focus']();},'getData':()=>_0x5631f7['state']['doc']['toString'](),'setData':_0x1400a0=>{_0x5631f7['dispatch']({'changes':{'from':0x0,'to':_0x5631f7['state']['doc']['length'],'insert':_0x1400a0},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x3fc83f=>{_0x5631f7['dispatch']({'effects':[_0x196f5e['reconfigure'](EditorView['editable']['of'](!_0x3fc83f))]});},'destroy':()=>{_0x5631f7['destroy']();},'instance':_0x5631f7};}function normalizeTheme(_0x4f88a1){return _0x4f88a1&&'default'!==_0x4f88a1?'dark'===_0x4f88a1?oneDark:_0x4f88a1:null;}function getKeybindings(){return[keymap['of']([...closeBracketsKeymap,...defaultKeymap,...historyKeymap,...foldKeymap,...completionKeymap,{'key':'Tab','run':indentMore,'shift':indentLess,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':redo,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':redo,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':undo,'preventDefault':!0x0,'stopPropagation':!0x0}])];}function getDefaultExtensions(){return[EditorView['lineWrapping'],autocompletion(),bracketMatching(),closeBrackets(),crosshairCursor(),drawSelection(),dropCursor(),lineNumbers(),foldGutter(),highlightActiveLine(),highlightActiveLineGutter(),highlightSpecialChars(),history(),indentOnInput(),rectangularSelection(),syntaxHighlighting(defaultHighlightStyle,{'fallback':!0x0})];}class CodeEditorView extends View{['_codeEditorApi']=null;['_options'];constructor(_0x44de01,_0x50010e){super(_0x44de01),this['_options']=_0x50010e,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=createCodeMirrorEditor({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x22d152,_0x527b1a,_0x14d914)=>{this['setReadOnly'](_0x14d914);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x4c4758){this['_codeEditorApi']['setData'](_0x4c4758);}['setReadOnly'](_0x7554c8){this['_codeEditorApi']['setReadOnly'](_0x7554c8);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends Command{constructor(_0x1b1e79){super(_0x1b1e79),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x35c840,_0x52ef20,_0x6b0e60)=>{_0x6b0e60?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x55a4b3=this['editor'];for(const _0x6a3852 of _0x55a4b3['commands']['names']())['replaceSource','editSource']['includes'](_0x6a3852)||_0x55a4b3['commands']['get'](_0x6a3852)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0x2ed54d=this['editor'];for(const _0x6630e of _0x2ed54d['commands']['commands']())_0x6630e['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x14ad29=this['editor'],_0x55e52b=_0x14ad29['locale'],_0x3d2640=_0x14ad29['plugins']['get']('Dialog'),_0x28ef2c=getActiveRootName(_0x14ad29),_0x24c2be=formatSource(_0x14ad29['data']['get']({'rootName':_0x28ef2c})),_0x3280bc=new CodeEditorView(_0x55e52b,{'syntaxLanguage':_0x14ad29['plugins']['has']('Markdown')?'markdown':'html','theme':_0x14ad29['config']['get']('sourceEditingEnhanced.theme')});let _0x42881d=!0x0;const _0x55e2f4=_0x4716db=>{if(!_0x42881d)return;return unformatSource(_0x3280bc['getData']())!==unformatSource(_0x24c2be)?window['confirm'](getTranslation$2(_0x55e52b,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x4716db['stop']():void 0x0;};_0x3d2640['show']({'id':'sourceEditingEnhanced','title':getTranslation$2(_0x55e52b,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x3280bc,'actionButtons':[{'label':getTranslation$2(_0x55e52b,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x3d2640['hide']();}},{'label':getTranslation$2(_0x55e52b,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x5f30e4=unformatSource(_0x3280bc['getData']())!==unformatSource(_0x24c2be);(_0x5f30e4&&_0x14ad29['execute']('replaceSource',_0x3280bc['getData']()),_0x42881d=!0x1,_0x3d2640['hide'](),_0x5f30e4&&'editables'in _0x14ad29['ui']['view'])&&_0x14ad29['ui']['view']['editables'][_0x28ef2c]['element']['focus']();},'onCreate':_0x1a1566=>{_0x1a1566['set']('isEnabled',!_0x14ad29['isReadOnly']),_0x1a1566['bind']('isEnabled')['to'](_0x14ad29,'isReadOnly',this,'isEnabled',(_0x85e3e,_0x3cfe87)=>!_0x85e3e&&_0x3cfe87);}}],'onHide':()=>{this['_enableCommands'](),_0x3d2640['off']('hide',_0x55e2f4),_0x3280bc['destroy']();},'onShow':()=>{_0x3280bc['bind']('isReadOnly')['to'](_0x14ad29,'isReadOnly',this,'isEnabled',(_0x29ccac,_0x3277de)=>_0x29ccac||!_0x3277de),_0x3280bc['setData'](_0x24c2be),_0x3280bc['focus'](),_0x3d2640['on']('hide',_0x55e2f4,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends Plugin{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[PendingActions];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x26b103=this['editor'],_0x2db35f=_0x26b103['locale'],_0x1a2ceb=new EditSourceCommand(_0x26b103);_0x26b103['commands']['add']('editSource',_0x1a2ceb),_0x26b103['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x4b71e1=this['_createButton'](ButtonView,_0x1a2ceb);return _0x4b71e1['set']({'label':getTranslation$2(_0x2db35f,'Source'),'icon':IconSource,'tooltip':getTranslation$2(_0x2db35f,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x4b71e1;}),_0x26b103['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x419a60=this['_createButton'](MenuBarMenuListItemButtonView,_0x1a2ceb,!0x0);return _0x419a60['set']({'label':getTranslation$2(_0x2db35f,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x419a60;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$2(this);}['_createButton'](_0x11b99f,_0x588124,_0x535b06=!0x1){const _0x550c0a=new _0x11b99f(this['editor']['locale']);return _0x550c0a['set']({'withText':_0x535b06,'isToggleable':!0x1}),_0x550c0a['bind']('isEnabled')['to'](_0x588124,'isEnabled'),this['listenTo'](_0x550c0a,'execute',()=>_0x588124['execute']()),_0x550c0a;}['_registerKeybindings'](){const _0x401288=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$2(_0x401288,'Source\x20Editing\x20Enhanced')});const _0xd23719=_0x547887['isMac']||_0x547887['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$2(_0x401288,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$2(_0x401288,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$2(_0x401288,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$2(_0x401288,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$2(_0x401288,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$2(_0x401288,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$2(_0x401288,'Fold\x20code\x20(current\x20level)'),'keystroke':_0xd23719?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$2(_0x401288,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$2(_0x401288,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$2(_0x401288,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$2(_0x401288,'Select\x20line'),'keystroke':_0xd23719?'Ctrl!+L':'Alt+L'},{'label':getTranslation$2(_0x401288,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0xd23719?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$2(_0x401288,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$2(_0x401288,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$2(_0x401288,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$2(_0x401288,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$2(_0x401288,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0xd23719?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$2(_0x48897e){const _0x110018=_0x38f935([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x39569c=window[_0x38f935([0x44,0x61,0x74,0x65])][_0x38f935([0x6e,0x6f,0x77])](),_0x4cdd0f=_0x48897e[_0x38f935([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16a982=new window[(_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54e2ee=>{_0x4cdd0f[_0x38f935([0x6f,0x6e,0x63,0x65])](_0x38f935([0x72,0x65,0x61,0x64,0x79]),_0x54e2ee);}),_0xba13cc={[_0x38f935([0x6b,0x74,0x79])]:_0x38f935([0x45,0x43]),[_0x38f935([0x75,0x73,0x65])]:_0x38f935([0x73,0x69,0x67]),[_0x38f935([0x63,0x72,0x76])]:_0x38f935([0x50,0x2d,0x32,0x35,0x36]),[_0x38f935([0x78])]:_0x38f935([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x38f935([0x79])]:_0x38f935([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x38f935([0x61,0x6c,0x67])]:_0x38f935([0x45,0x53,0x32,0x35,0x36])},_0x550ae0=_0x4cdd0f[_0x38f935([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38f935([0x67,0x65,0x74])](_0x38f935([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5e3a50=await(async function(){let _0x5298dd,_0x160c7a=null,_0x14d628=null;try{if(_0x550ae0==_0x38f935([0x47,0x50,0x4c]))return _0x38f935([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5298dd=(function(){const _0x303185=_0x550ae0[_0x38f935([0x73,0x70,0x6c,0x69,0x74])](_0x38f935([0x2e]));if(0x3!=_0x303185[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5bd74c=_0x303185[0x1];return _0x50d88e(_0x5bd74c);function _0x50d88e(_0x26c19c){const _0x521df3=_0x4a445c(_0x26c19c);return _0x521df3&&_0x3d6d22()?_0x521df3:null;function _0x3d6d22(){const _0x287277=_0x521df3[_0x38f935([0x6a,0x74,0x69])],_0x38a29d=window[_0x38f935([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287277[_0x38f935([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287277[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4151d5={..._0x521df3,[_0x38f935([0x6a,0x74,0x69])]:_0x287277[_0x38f935([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x287277[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4151d5[_0x38f935([0x76,0x63])],_0xcb3f37(_0x4151d5)==_0x38a29d;}}}()),!_0x5298dd)return _0x38f935([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5298dd[_0x38f935([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14d628=function(_0x47fe93,_0x4a6fc8){return new window[(_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30ef9c=>{if(_0x40caf9())return _0x30ef9c(_0x38f935([0x56,0x61,0x6c,0x69,0x64]));_0x56e76b(),_0x4cdd0f[_0x38f935([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38f935([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bd593=!0x1;const _0x4de052=uid();function _0xe8a2a(_0xf08ee5){return!!_0xf08ee5&&(typeof _0xf08ee5===_0x38f935([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf08ee5===_0x38f935([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf08ee5[_0x38f935([0x74,0x68,0x65,0x6e])]===_0x38f935([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf08ee5[_0x38f935([0x63,0x61,0x74,0x63,0x68])]===_0x38f935([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f2af7(_0x2ed1d7){_0x48cb6c(_0x2ed1d7)[_0x38f935([0x74,0x68,0x65,0x6e])](_0x3c31a6=>{if(!_0x3c31a6||_0x3c31a6[_0x38f935([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38f935([0x6f,0x6b]))return _0x38f935([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x579f5a(_0xcb3f37(_0x4de052+_0x4a6fc8))!=_0x3c31a6[_0x38f935([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38f935([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38f935([0x56,0x61,0x6c,0x69,0x64]);})[_0x38f935([0x74,0x68,0x65,0x6e])](_0x3ff092=>(_0x437506(),_0x3ff092),()=>{const _0x3d8d71=_0x12448d();return null==_0x3d8d71?(_0x437506(),_0x38f935([0x56,0x61,0x6c,0x69,0x64])):_0x38f935(_0x39569c-_0x3d8d71>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38f935([0x74,0x68,0x65,0x6e])](_0x30ef9c)[_0x38f935([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30ef9c(_0x38f935([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x508e20=0x36ee80;function _0x437506(){const _0x43b31c=_0x38f935([0x6c,0x6c,0x63,0x74,0x2d])+_0x579f5a(_0xcb3f37(_0x47fe93)),_0xe3fd4=_0x8c6177(_0x579f5a(window[_0x38f935([0x4d,0x61,0x74,0x68])][_0x38f935([0x63,0x65,0x69,0x6c])](_0x39569c/_0x508e20)));window[_0x38f935([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f935([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43b31c,_0xe3fd4);}function _0x12448d(){const _0x58e2c4=_0x38f935([0x6c,0x6c,0x63,0x74,0x2d])+_0x579f5a(_0xcb3f37(_0x47fe93)),_0x1c8c17=window[_0x38f935([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38f935([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e2c4);return _0x1c8c17?window[_0x38f935([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c6177(_0x1c8c17),0x10)*_0x508e20:null;}function _0x48cb6c(_0x167d04){return new window[(_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x492713,_0x20bbe2)=>{_0x167d04[_0x38f935([0x74,0x68,0x65,0x6e])](_0x492713,_0x20bbe2),window[_0x38f935([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20bbe2,0x1d4c0);});}}_0x4cdd0f[_0x38f935([0x6f,0x6e])](_0x38f935([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x916dac,_0x38d22f)=>{if(_0x38d22f[0x0]!=_0x47fe93)return _0x30ef9c(_0x38f935([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38d22f[0x1]={..._0x38d22f[0x1],[_0x38f935([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4de052};},{[_0x38f935([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f935([0x68,0x69,0x67,0x68])}),_0x4cdd0f[_0x38f935([0x6f,0x6e])](_0x38f935([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6da4c9=>{_0xe8a2a(_0x6da4c9[_0x38f935([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bd593=!0x0,_0x2f2af7(_0x6da4c9[_0x38f935([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38f935([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38f935([0x6c,0x6f,0x77])}),_0x16a982[_0x38f935([0x74,0x68,0x65,0x6e])](()=>{_0x4bd593||_0x30ef9c(_0x38f935([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40caf9(){return _0x4cdd0f[_0x38f935([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f935([0x76,0x69,0x65,0x77])][_0x38f935([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38f935([0x61,0x75,0x74,0x6f]);}function _0x56e76b(){_0x4cdd0f[_0x38f935([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38f935([0x76,0x69,0x65,0x77])][_0x38f935([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38f935([0x61,0x75,0x74,0x6f]);}}(_0x5298dd[_0x38f935([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5298dd[_0x38f935([0x6a,0x74,0x69])]));const _0x404e34=await(async function(){let _0x16f52d=!0x0;try{const _0x157583=_0x550ae0[_0x38f935([0x73,0x70,0x6c,0x69,0x74])](_0x38f935([0x2e])),[_0x3db511,_0x3f352f,_0xfaea3f]=_0x157583;return _0x420fcf(_0x3db511),await _0x3dc267(_0x3db511,_0x3f352f,_0xfaea3f),_0x16f52d;}catch{return!0x1;}function _0x420fcf(_0x2fca04){const _0x2456c4=_0x4a445c(_0x2fca04);_0x2456c4&&_0x2456c4[_0x38f935([0x61,0x6c,0x67])]==_0x38f935([0x45,0x53,0x32,0x35,0x36])||(_0x16f52d=!0x1);}async function _0x3dc267(_0xfae5ca,_0x4a14f3,_0x5c4e8c){const _0x36c520=window[_0x38f935([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38f935([0x66,0x72,0x6f,0x6d])](_0x510e09(_0x5c4e8c),_0x58f50e=>_0x58f50e[_0x38f935([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2edbca=new window[(_0x38f935([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38f935([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xfae5ca+_0x38f935([0x2e])+_0x4a14f3),_0x3b2d48=window[_0x38f935([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38f935([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b2d48)return;const _0x4f1312=await _0x3b2d48[_0x38f935([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38f935([0x6a,0x77,0x6b]),_0xba13cc,{[_0x38f935([0x6e,0x61,0x6d,0x65])]:_0x38f935([0x45,0x43,0x44,0x53,0x41]),[_0x38f935([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38f935([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38f935([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b2d48[_0x38f935([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38f935([0x6e,0x61,0x6d,0x65])]:_0x38f935([0x45,0x43,0x44,0x53,0x41]),[_0x38f935([0x68,0x61,0x73,0x68])]:{[_0x38f935([0x6e,0x61,0x6d,0x65])]:_0x38f935([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f1312,_0x36c520,_0x2edbca)||(_0x16f52d=!0x1);}}());return _0x404e34?(function(){const _0x498192=_0x5298dd[_0x38f935([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x498192)return!0x1;if(_0x498192[_0x38f935([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f935([0x2a])))return!0x0;if(_0x498192[_0x38f935([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f935([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x171233=[_0x38f935([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38f935([0x74,0x72,0x69,0x61,0x6c])][_0x38f935([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5298dd[_0x38f935([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39569c/0x3e8:0x6a03bf00;return _0x5298dd[_0x38f935([0x65,0x78,0x70])]<_0x171233;}())?_0x38f935([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x58e907=_0x5298dd[_0x38f935([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58e907||0x0==_0x58e907[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x494462}=new URL(window[_0x38f935([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58e907[_0x38f935([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x494462))return!0x0;const _0x4bd45d=_0x494462[_0x38f935([0x73,0x70,0x6c,0x69,0x74])](_0x38f935([0x2e]));return _0x58e907[_0x38f935([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41f1ca=>_0x41f1ca[_0x38f935([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f935([0x2a])))[_0x38f935([0x6d,0x61,0x70])](_0x1e532c=>_0x1e532c[_0x38f935([0x73,0x70,0x6c,0x69,0x74])](_0x38f935([0x2e])))[_0x38f935([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c777a=>_0x5c777a[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4bd45d[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38f935([0x6d,0x61,0x70])](_0x15c93a=>Array(_0x4bd45d[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15c93a[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38f935([0x66,0x69,0x6c,0x6c])](_0x15c93a[0x0]===_0x38f935([0x2a])?_0x38f935([0x2a]):'')[_0x38f935([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15c93a))[_0x38f935([0x73,0x6f,0x6d,0x65])](_0x2a599f=>_0x4bd45d[_0x38f935([0x65,0x76,0x65,0x72,0x79])]((_0x76e34,_0x141e2a)=>_0x2a599f[_0x141e2a]===_0x76e34||_0x2a599f[_0x141e2a]===_0x38f935([0x2a])));}())?(_0x5298dd[_0x38f935([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38f935([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x160c7a=function(_0x2457da){const _0x17337e=new window[(_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x224154=>setTimeout(_0x224154,0x93ecc)),_0x39e6f6=_0x16a982[_0x38f935([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x146a59=>{let _0x326d5b=0x0;_0x4cdd0f[_0x38f935([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f935([0x6f,0x6e])](_0x38f935([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb66391,_0x4a7044)=>{_0x4a7044[0x0][_0x38f935([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x326d5b++,0x5e8==_0x326d5b&&(_0x146a59(),_0xb66391[_0x38f935([0x6f,0x66,0x66])]());});})),_0xbc1ddc=[_0x17337e,_0x39e6f6];return window[_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38f935([0x72,0x61,0x63,0x65])](_0xbc1ddc)[_0x38f935([0x74,0x68,0x65,0x6e])](()=>_0x2457da);}(_0x38f935([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x160c7a&&_0x14d628)return new window[(_0x38f935([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fed9b,_0x290d04)=>{_0x160c7a[_0x38f935([0x74,0x68,0x65,0x6e])](_0x1fed9b,_0x290d04),_0x14d628[_0x38f935([0x74,0x68,0x65,0x6e])](_0x4640cc=>{_0x4640cc!=_0x38f935([0x56,0x61,0x6c,0x69,0x64])&&_0x1fed9b(_0x4640cc);},_0x290d04);});return _0x160c7a||_0x14d628||_0x38f935([0x56,0x61,0x6c,0x69,0x64]);}())):_0x38f935([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38f935([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38f935([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38f935([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4a445c(_0x4b55bd){return _0x4b55bd[_0x38f935([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38f935([0x65,0x79]))?JSON[_0x38f935([0x70,0x61,0x72,0x73,0x65])](_0x510e09(_0x4b55bd)):null;}function _0x510e09(_0x27e056){return window[_0x38f935([0x61,0x74,0x6f,0x62])](_0x27e056[_0x38f935([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38f935([0x2b]))[_0x38f935([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38f935([0x2f])));}function _0xcb3f37(_0x3ca379){let _0x4e745d=0x1505;function _0x1223a7(_0x3ae9a0){for(let _0x293aaa=0x0;_0x293aaa<_0x3ae9a0[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x293aaa++){const _0x23ef86=_0x3ae9a0[_0x38f935([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x293aaa);_0x4e745d=(_0x4e745d<<0x5)+_0x4e745d+_0x23ef86,_0x4e745d&=_0x4e745d;}}return function _0x2b81aa(_0x54df32){Array[_0x38f935([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54df32)?_0x54df32[_0x38f935([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b81aa):_0x54df32&&typeof _0x54df32==_0x38f935([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38f935([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54df32)[_0x38f935([0x73,0x6f,0x72,0x74])]()[_0x38f935([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe11dfe,_0x3b748e])=>{_0x1223a7(_0xe11dfe),_0x2b81aa(_0x3b748e);}):_0x1223a7(window[_0x38f935([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54df32));}(_0x3ca379),_0x4e745d>>>0x0;}function _0x579f5a(_0x3a8aab){return _0x3a8aab[_0x38f935([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38f935([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38f935([0x30]));}function _0x8c6177(_0x500ac8){return _0x500ac8[_0x38f935([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38f935([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38f935([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c76a4(){}function _0x38f935(_0x1ff35e){return _0x1ff35e['map'](_0x3c9fce=>String['fromCharCode'](_0x3c9fce))['join']('');}!function(_0x4a09a4){const _0x44d7fb=(function(){const _0x26391d=window[_0x38f935([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38f935([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38f935([0x6e,0x6f,0x77])]())[_0x38f935([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38f935([0x2e]),'');let _0x44a374=_0x38f935([0x4e]);for(let _0x523180=0x0;_0x523180<_0x26391d[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x523180+=0x2){let _0x40cbb8=window[_0x38f935([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26391d[_0x38f935([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x523180,_0x523180+0x2));_0x40cbb8>=_0x110018[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40cbb8-=_0x110018[_0x38f935([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44a374+=_0x110018[_0x40cbb8];}return _0x44a374;}());_0x4cdd0f[_0x44d7fb]=_0x38f935([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a09a4,_0x4a09a4!=_0x38f935([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x16a982,_0x4cdd0f[_0x38f935([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f935([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c76a4,_0x4cdd0f[_0x38f935([0x6d,0x6f,0x64,0x65,0x6c])][_0x38f935([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c76a4,_0x4cdd0f[_0x38f935([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38f935([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5e3a50);}class ReplaceSourceCommand extends Command{constructor(_0x2e7d3c){super(_0x2e7d3c),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x488642,_0x325ae0){const _0x3f710c=this['editor'],_0xaa3b77=_0x325ae0?.['rootName']??getActiveRootName(_0x3f710c);_0x3f710c['data']['set']({[_0xaa3b77]:_0x488642},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x4de38f){super(_0x4de38f),_0x4de38f['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7b5ad0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x102159;for(const _0x1875e9 in _0x7b5ad0){const _0x4a5e15=_0x1875e9,_0x7498c9=_0x7b5ad0[_0x4a5e15];if('sourceEditingEnhancedLicenseKeyValid'==_0x7498c9||'sourceEditingEnhancedLicenseKeyInvalid'==_0x7498c9||'sourceEditingEnhancedLicenseKeyExpired'==_0x7498c9||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x7498c9||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x7498c9||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x7498c9||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x7498c9){delete _0x7b5ad0[_0x4a5e15],_0x102159=_0x7498c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x102159&&_0x7b5ad0['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x102159&&_0x7b5ad0['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x102159&&_0x7b5ad0['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x102159&&_0x7b5ad0['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x102159&&_0x7b5ad0['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x102159&&_0x7b5ad0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x3d0fad=this['editor'],_0x130740=_0x3d0fad['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x130740&&_0x3d0fad['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x130740&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3d6350=>_0x3d0fad['plugins']['has'](_0x3d6350))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x3d0fad['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}class TemplateCommand extends Command{['execute'](_0x463980){const {model:_0x30179e}=this['editor'];let _0x11b59a;switch(typeof _0x463980){case'string':_0x11b59a=_0x463980;break;case'function':_0x11b59a=_0x463980();}'string'==typeof _0x11b59a&&_0x30179e['change'](()=>{const _0xf35938=this['editor']['data']['htmlProcessor']['toView'](_0x11b59a),_0x37556c=this['editor']['data']['toModel'](_0xf35938);_0x30179e['insertContent'](_0x37556c);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x713926}=this;_0x713926['commands']['add']('insertTemplate',new TemplateCommand(_0x713926)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6c19e8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18b1d6;for(const _0x3e913c in _0x6c19e8){const _0x4f2204=_0x3e913c,_0x1dddba=_0x6c19e8[_0x4f2204];if('templateLicenseKeyValid'==_0x1dddba||'templateLicenseKeyInvalid'==_0x1dddba||'templateLicenseKeyExpired'==_0x1dddba||'templateLicenseKeyDomainLimit'==_0x1dddba||'templateLicenseKeyNotAllowed'==_0x1dddba||'templateLicenseKeyEvaluationLimit'==_0x1dddba||'templateLicenseKeyUsageLimit'==_0x1dddba){delete _0x6c19e8[_0x4f2204],_0x18b1d6=_0x1dddba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x18b1d6&&_0x6c19e8['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x18b1d6&&_0x6c19e8['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x18b1d6&&_0x6c19e8['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x18b1d6&&_0x6c19e8['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x18b1d6&&_0x6c19e8['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x18b1d6&&_0x6c19e8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x1b75ea){if(!_0x1b75ea)return this['_resetFiltering']();const _0x1dff70=new Map(),_0x473b7a=this['items']['map'](_0x1aa268=>{const _0x368c25=_0x1aa268['buttonView']['isMatching'](_0x1b75ea);return _0x1aa268['isVisible']=!!_0x368c25,_0x1aa268['buttonView']['highlightText'](_0x368c25?_0x1b75ea:null),_0x368c25&&_0x1dff70['set'](_0x1aa268,_0x368c25),_0x1aa268;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x1dff70));return this['items']['clear'](),this['items']['addMany'](_0x473b7a),{'resultsCount':_0x1dff70['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x561f01=this['items']['map'](_0x397adb=>_0x397adb)['sort'](unsortListItemsCallback);return _0x561f01['forEach'](_0x329f0f=>{_0x329f0f['isVisible']=!0x0,_0x329f0f['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x561f01),{'resultsCount':_0x561f01['length'],'totalItemsCount':_0x561f01['length']};}}function getSortListItemsCallback(_0x1d30f8){return function(_0x7de2d6,_0x3f3d4f){const _0x463325=_0x1d30f8['get'](_0x7de2d6),_0x6f9391=_0x1d30f8['get'](_0x3f3d4f);return _0x463325&&!_0x6f9391?-0x1:_0x6f9391&&!_0x463325?0x1:_0x463325||_0x6f9391?_0x463325['title']&&!_0x6f9391['title']?-0x1:!_0x463325['title']&&_0x6f9391['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x54010c,_0x21e879){return _0x54010c['originalIndex']-_0x21e879['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0x5da3e2,_0x87b7ca){super(_0x5da3e2),this['originalIndex']=_0x87b7ca,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0x1940ab,_0x127800){super(_0x1940ab),this['templateDefinition']=_0x127800,this['textPartView']=null;const {icon:_0xa11510=IconTemplateGeneric}=_0x127800;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0xa11510}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new TextPartView(this['locale'],this['templateDefinition'],this['labelView']['element']['id']),this['children']['remove'](this['labelView']),this['children']['add'](this['textPartView']);}['destroy'](){super['destroy'](),this['labelView']['destroy']();}['isMatching'](_0x248a0b){const {title:_0x27475e,description:_0x5e610d}=this['templateDefinition'],_0xfc411f=!!_0x27475e['match'](_0x248a0b),_0x2b1e3f=!(!_0x5e610d||!_0x5e610d['match'](_0x248a0b));return _0xfc411f||_0x2b1e3f?{'title':_0xfc411f,'description':_0x2b1e3f}:null;}['highlightText'](_0x9fb19c){this['textPartView']['highlightText'](_0x9fb19c);}}class TextPartView extends View{constructor(_0x229e9c,_0x1ac9dc,_0x11227f){super(_0x229e9c),this['title']=_0x1ac9dc['title'],this['description']=_0x1ac9dc['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x11227f}});const _0x3e1044=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x3e1044['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x3e1044});}['highlightText'](_0x678c0b){this['titleView']['highlightText'](_0x678c0b),this['description']&&this['descriptionView']['highlightText'](_0x678c0b);}}function getTranslation$1(_0x16767e,_0x3813a5,..._0x5055e3){const t=_0x16767e['t'];switch(_0x3813a5){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x5055e3);case'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.':return t('Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.');case'No\x20templates\x20available.':return t('No\x20templates\x20available.');case'%0\x20templates\x20found':return t('%0\x20templates\x20found',..._0x5055e3);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x3813a5;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5470dd}=this,_0x209223=_0x5470dd['config']['get']('template.definitions')||[];_0x5470dd['ui']['componentFactory']['add']('insertTemplate',_0x5574a4=>{const _0x5e40a3=createDropdown(_0x5574a4),_0x93173b=this['_createTemplateListView'](_0x5574a4,_0x209223),_0x4cee3b=new SearchTextView(_0x5574a4,{'filteredView':_0x93173b,'queryView':{'label':getTranslation$1(_0x5574a4,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0xfa0637=>getTranslation$1(_0x5574a4,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0xfa0637),'secondary':getTranslation$1(_0x5574a4,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$1(_0x5574a4,'No\x20templates\x20available.')}}}}),_0xf42fb7=_0x5470dd['commands']['get']('insertTemplate');return _0x4cee3b['on']('search',(_0x1b6c68,_0x6dd809)=>{_0x6dd809['query']&&_0x6dd809['query']['length']&&_0x5470dd['ui']['ariaLiveAnnouncer']['announce'](getTranslation$1(_0x5574a4,'%0\x20templates\x20found',_0x6dd809['resultsCount']));}),_0x5e40a3['bind']('isEnabled')['to'](_0xf42fb7),_0x5e40a3['panelView']['children']['add'](_0x4cee3b),_0x5e40a3['buttonView']['set']({'label':getTranslation$1(_0x5574a4,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x5e40a3['on']('change:isOpen',(_0x40a5a0,_0x3b8596,_0xb4ab05)=>{_0xb4ab05||_0x4cee3b['reset']();}),_0x5e40a3;}),_0x5470dd['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x3f556d=>{const _0x2cfc41=_0x5470dd['commands']['get']('insertTemplate'),_0x21dbab=new MenuBarMenuView(_0x3f556d);_0x21dbab['buttonView']['set']({'label':getTranslation$1(_0x3f556d,'Template'),'icon':IconTemplate});const _0x13ca09=new MenuBarMenuListView(_0x3f556d);if(!_0x209223||!_0x209223['length']){const _0x1822f4=new MenuBarMenuListItemView(_0x3f556d,_0x21dbab),_0x4c9d9d=new MenuBarMenuListItemButtonView(_0x3f556d);_0x4c9d9d['set']({'label':getTranslation$1(_0x3f556d,'No\x20templates\x20available.')}),_0x4c9d9d['delegate']('execute')['to'](_0x21dbab),_0x4c9d9d['on']('execute',()=>{_0x5470dd['editing']['view']['focus']();}),_0x1822f4['children']['add'](_0x4c9d9d),_0x13ca09['items']['add'](_0x1822f4);}for(const _0x14107c of _0x209223){const _0x578d08=new MenuBarMenuListItemView(_0x3f556d,_0x21dbab),_0x24fe54=new MenuBarMenuListItemButtonView(_0x3f556d);_0x24fe54['set']({'class':'ck-template-button','label':_0x14107c['title'],'icon':_0x14107c['icon']||IconTemplateGeneric}),_0x24fe54['delegate']('execute')['to'](_0x21dbab),_0x24fe54['on']('execute',()=>{_0x5470dd['execute']('insertTemplate',_0x14107c['data']),_0x5470dd['editing']['view']['focus']();}),_0x578d08['children']['add'](_0x24fe54),_0x13ca09['items']['add'](_0x578d08);}return _0x21dbab['panelView']['children']['add'](_0x13ca09),_0x21dbab['bind']('isEnabled')['to'](_0x2cfc41,'isEnabled'),_0x21dbab;});}['afterInit'](){checkLicense$1(this);}['_createTemplateListView'](_0xf8b666,_0x7c6cd8){const {editor:_0x5d38c7}=this,_0x28cd79=new TemplateListView(_0xf8b666);return _0x28cd79['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x28cd79['items']['addMany'](_0x7c6cd8['map']((_0x554086,_0xf6fe1)=>{const _0x5f5ae7=new TemplateListItemView(_0xf8b666,_0xf6fe1),_0x4a58b6=new TemplateListButtonView(_0xf8b666,_0x554086);return _0x5f5ae7['buttonView']=_0x4a58b6,_0x5f5ae7['children']['add'](_0x4a58b6),_0x5f5ae7['buttonView']['on']('execute',_0x4aa437=>{_0x5d38c7['execute']('insertTemplate',_0x4aa437['source']['templateDefinition']['data']),_0x5d38c7['editing']['view']['focus']();}),_0x5f5ae7;})),_0x28cd79;}}async function checkLicense$1(_0x5ac8cd){const _0x5d42f1=_0x21c526([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x2fbb8f=window[_0x21c526([0x44,0x61,0x74,0x65])][_0x21c526([0x6e,0x6f,0x77])](),_0x5f2333=_0x5ac8cd[_0x21c526([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40ac78=new window[(_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568e59=>{_0x5f2333[_0x21c526([0x6f,0x6e,0x63,0x65])](_0x21c526([0x72,0x65,0x61,0x64,0x79]),_0x568e59);}),_0x239e5e={[_0x21c526([0x6b,0x74,0x79])]:_0x21c526([0x45,0x43]),[_0x21c526([0x75,0x73,0x65])]:_0x21c526([0x73,0x69,0x67]),[_0x21c526([0x63,0x72,0x76])]:_0x21c526([0x50,0x2d,0x32,0x35,0x36]),[_0x21c526([0x78])]:_0x21c526([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x21c526([0x79])]:_0x21c526([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x21c526([0x61,0x6c,0x67])]:_0x21c526([0x45,0x53,0x32,0x35,0x36])},_0x56f2f2=_0x5f2333[_0x21c526([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21c526([0x67,0x65,0x74])](_0x21c526([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0xfbfab7=await(async function(){let _0x51525d,_0x439cc4=null,_0x187ab4=null;try{if(_0x56f2f2==_0x21c526([0x47,0x50,0x4c]))return _0x21c526([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51525d=(function(){const _0xad2661=_0x56f2f2[_0x21c526([0x73,0x70,0x6c,0x69,0x74])](_0x21c526([0x2e]));if(0x3!=_0xad2661[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x51dcd2=_0xad2661[0x1];return _0x29c323(_0x51dcd2);function _0x29c323(_0x1d8165){const _0x257a57=_0x4ecf13(_0x1d8165);return _0x257a57&&_0x61757d()?_0x257a57:null;function _0x61757d(){const _0x5ce96d=_0x257a57[_0x21c526([0x6a,0x74,0x69])],_0x52d3ab=window[_0x21c526([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce96d[_0x21c526([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ce96d[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34fe23={..._0x257a57,[_0x21c526([0x6a,0x74,0x69])]:_0x5ce96d[_0x21c526([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ce96d[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34fe23[_0x21c526([0x76,0x63])],_0x2bedc1(_0x34fe23)==_0x52d3ab;}}}()),!_0x51525d)return _0x21c526([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x51525d[_0x21c526([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x187ab4=function(_0x31493e,_0x323820){return new window[(_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41afbd=>{if(_0xf451fb())return _0x41afbd(_0x21c526([0x56,0x61,0x6c,0x69,0x64]));_0x3d5259(),_0x5f2333[_0x21c526([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21c526([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1049d0=!0x1;const _0x489cf7=uid();function _0x472a41(_0x1a8b40){return!!_0x1a8b40&&(typeof _0x1a8b40===_0x21c526([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a8b40===_0x21c526([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a8b40[_0x21c526([0x74,0x68,0x65,0x6e])]===_0x21c526([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a8b40[_0x21c526([0x63,0x61,0x74,0x63,0x68])]===_0x21c526([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x434861(_0x2de854){_0x2ac571(_0x2de854)[_0x21c526([0x74,0x68,0x65,0x6e])](_0x198349=>{if(!_0x198349||_0x198349[_0x21c526([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21c526([0x6f,0x6b]))return _0x21c526([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12225f(_0x2bedc1(_0x489cf7+_0x323820))!=_0x198349[_0x21c526([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21c526([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21c526([0x56,0x61,0x6c,0x69,0x64]);})[_0x21c526([0x74,0x68,0x65,0x6e])](_0x3dba98=>(_0x3fbb48(),_0x3dba98),()=>{const _0x3e6eea=_0x2f27a8();return null==_0x3e6eea?(_0x3fbb48(),_0x21c526([0x56,0x61,0x6c,0x69,0x64])):_0x21c526(_0x2fbb8f-_0x3e6eea>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21c526([0x74,0x68,0x65,0x6e])](_0x41afbd)[_0x21c526([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41afbd(_0x21c526([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2be3ae=0x36ee80;function _0x3fbb48(){const _0x5ce272=_0x21c526([0x6c,0x6c,0x63,0x74,0x2d])+_0x12225f(_0x2bedc1(_0x31493e)),_0x2de00c=_0x263f69(_0x12225f(window[_0x21c526([0x4d,0x61,0x74,0x68])][_0x21c526([0x63,0x65,0x69,0x6c])](_0x2fbb8f/_0x2be3ae)));window[_0x21c526([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21c526([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ce272,_0x2de00c);}function _0x2f27a8(){const _0x2ad792=_0x21c526([0x6c,0x6c,0x63,0x74,0x2d])+_0x12225f(_0x2bedc1(_0x31493e)),_0x35f971=window[_0x21c526([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21c526([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ad792);return _0x35f971?window[_0x21c526([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x263f69(_0x35f971),0x10)*_0x2be3ae:null;}function _0x2ac571(_0x27a7ac){return new window[(_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423c12,_0x43c6ae)=>{_0x27a7ac[_0x21c526([0x74,0x68,0x65,0x6e])](_0x423c12,_0x43c6ae),window[_0x21c526([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43c6ae,0x1d4c0);});}}_0x5f2333[_0x21c526([0x6f,0x6e])](_0x21c526([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x87ddf3,_0x38661c)=>{if(_0x38661c[0x0]!=_0x31493e)return _0x41afbd(_0x21c526([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38661c[0x1]={..._0x38661c[0x1],[_0x21c526([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x489cf7};},{[_0x21c526([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21c526([0x68,0x69,0x67,0x68])}),_0x5f2333[_0x21c526([0x6f,0x6e])](_0x21c526([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55eb28=>{_0x472a41(_0x55eb28[_0x21c526([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1049d0=!0x0,_0x434861(_0x55eb28[_0x21c526([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21c526([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21c526([0x6c,0x6f,0x77])}),_0x40ac78[_0x21c526([0x74,0x68,0x65,0x6e])](()=>{_0x1049d0||_0x41afbd(_0x21c526([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf451fb(){return _0x5f2333[_0x21c526([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21c526([0x76,0x69,0x65,0x77])][_0x21c526([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21c526([0x61,0x75,0x74,0x6f]);}function _0x3d5259(){_0x5f2333[_0x21c526([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21c526([0x76,0x69,0x65,0x77])][_0x21c526([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21c526([0x61,0x75,0x74,0x6f]);}}(_0x51525d[_0x21c526([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51525d[_0x21c526([0x6a,0x74,0x69])]));const _0x3cbd1b=await(async function(){let _0x57a266=!0x0;try{const _0x1a9100=_0x56f2f2[_0x21c526([0x73,0x70,0x6c,0x69,0x74])](_0x21c526([0x2e])),[_0x565e7e,_0x16e604,_0x249586]=_0x1a9100;return _0x2a8250(_0x565e7e),await _0x5e11e5(_0x565e7e,_0x16e604,_0x249586),_0x57a266;}catch{return!0x1;}function _0x2a8250(_0x3c0286){const _0x28d395=_0x4ecf13(_0x3c0286);_0x28d395&&_0x28d395[_0x21c526([0x61,0x6c,0x67])]==_0x21c526([0x45,0x53,0x32,0x35,0x36])||(_0x57a266=!0x1);}async function _0x5e11e5(_0x32b775,_0x590fc3,_0x3d308d){const _0x3cdc21=window[_0x21c526([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21c526([0x66,0x72,0x6f,0x6d])](_0x4c6c17(_0x3d308d),_0x2e0f68=>_0x2e0f68[_0x21c526([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b5ff=new window[(_0x21c526([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21c526([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32b775+_0x21c526([0x2e])+_0x590fc3),_0x5afecc=window[_0x21c526([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21c526([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5afecc)return;const _0x166edf=await _0x5afecc[_0x21c526([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21c526([0x6a,0x77,0x6b]),_0x239e5e,{[_0x21c526([0x6e,0x61,0x6d,0x65])]:_0x21c526([0x45,0x43,0x44,0x53,0x41]),[_0x21c526([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21c526([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21c526([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5afecc[_0x21c526([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21c526([0x6e,0x61,0x6d,0x65])]:_0x21c526([0x45,0x43,0x44,0x53,0x41]),[_0x21c526([0x68,0x61,0x73,0x68])]:{[_0x21c526([0x6e,0x61,0x6d,0x65])]:_0x21c526([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x166edf,_0x3cdc21,_0x18b5ff)||(_0x57a266=!0x1);}}());return _0x3cbd1b?(function(){const _0x14d102=_0x51525d[_0x21c526([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14d102)return!0x1;if(_0x14d102[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c526([0x2a])))return!0x0;if(_0x14d102[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c526([0x54,0x50,0x4c])))return!0x0;if(_0x14d102[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c526([0x50,0x50])))return!0x0;if(_0x14d102[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c526([0x44,0x52,0x55,0x50]))&&window[_0x21c526([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x14d102[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c526([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x21c526([0x67,0x6c,0x6f,0x62])]&&window[_0x21c526([0x67,0x6c,0x6f,0x62])][_0x21c526([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x26055a=[_0x21c526([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21c526([0x74,0x72,0x69,0x61,0x6c])][_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51525d[_0x21c526([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fbb8f/0x3e8:0x6a03bf00;return _0x51525d[_0x21c526([0x65,0x78,0x70])]<_0x26055a;}())?_0x21c526([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x31f0a0=_0x51525d[_0x21c526([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31f0a0||0x0==_0x31f0a0[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbe73ba}=new URL(window[_0x21c526([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31f0a0[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbe73ba))return!0x0;const _0x1f9aab=_0xbe73ba[_0x21c526([0x73,0x70,0x6c,0x69,0x74])](_0x21c526([0x2e]));return _0x31f0a0[_0x21c526([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30ce1c=>_0x30ce1c[_0x21c526([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c526([0x2a])))[_0x21c526([0x6d,0x61,0x70])](_0x444a86=>_0x444a86[_0x21c526([0x73,0x70,0x6c,0x69,0x74])](_0x21c526([0x2e])))[_0x21c526([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd2eed1=>_0xd2eed1[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f9aab[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21c526([0x6d,0x61,0x70])](_0x26d654=>Array(_0x1f9aab[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x26d654[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21c526([0x66,0x69,0x6c,0x6c])](_0x26d654[0x0]===_0x21c526([0x2a])?_0x21c526([0x2a]):'')[_0x21c526([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x26d654))[_0x21c526([0x73,0x6f,0x6d,0x65])](_0x1e060c=>_0x1f9aab[_0x21c526([0x65,0x76,0x65,0x72,0x79])]((_0x41859f,_0x22dd96)=>_0x1e060c[_0x22dd96]===_0x41859f||_0x1e060c[_0x22dd96]===_0x21c526([0x2a])));}())?(_0x51525d[_0x21c526([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c526([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x439cc4=function(_0x7bebc7){const _0x5e37cb=new window[(_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b16a6=>setTimeout(_0x5b16a6,0x93ecc)),_0x596e6e=_0x40ac78[_0x21c526([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1577=>{let _0x2c08b2=0x0;_0x5f2333[_0x21c526([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c526([0x6f,0x6e])](_0x21c526([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c0ecb,_0x4ddedd)=>{_0x4ddedd[0x0][_0x21c526([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c08b2++,0x5e8==_0x2c08b2&&(_0x1d1577(),_0x2c0ecb[_0x21c526([0x6f,0x66,0x66])]());});})),_0x1caeda=[_0x5e37cb,_0x596e6e];return window[_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21c526([0x72,0x61,0x63,0x65])](_0x1caeda)[_0x21c526([0x74,0x68,0x65,0x6e])](()=>_0x7bebc7);}(_0x21c526([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x439cc4&&_0x187ab4)return new window[(_0x21c526([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1419b8,_0x2458c5)=>{_0x439cc4[_0x21c526([0x74,0x68,0x65,0x6e])](_0x1419b8,_0x2458c5),_0x187ab4[_0x21c526([0x74,0x68,0x65,0x6e])](_0x57e0d2=>{_0x57e0d2!=_0x21c526([0x56,0x61,0x6c,0x69,0x64])&&_0x1419b8(_0x57e0d2);},_0x2458c5);});return _0x439cc4||_0x187ab4||_0x21c526([0x56,0x61,0x6c,0x69,0x64]);}())):_0x21c526([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21c526([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21c526([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21c526([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4ecf13(_0x30cb7a){return _0x30cb7a[_0x21c526([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21c526([0x65,0x79]))?JSON[_0x21c526([0x70,0x61,0x72,0x73,0x65])](_0x4c6c17(_0x30cb7a)):null;}function _0x4c6c17(_0x1a7f69){return window[_0x21c526([0x61,0x74,0x6f,0x62])](_0x1a7f69[_0x21c526([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21c526([0x2b]))[_0x21c526([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21c526([0x2f])));}function _0x2bedc1(_0x2c1b58){let _0x5ad624=0x1505;function _0x26e854(_0xae1f06){for(let _0x1ae616=0x0;_0x1ae616<_0xae1f06[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ae616++){const _0x2fc579=_0xae1f06[_0x21c526([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ae616);_0x5ad624=(_0x5ad624<<0x5)+_0x5ad624+_0x2fc579,_0x5ad624&=_0x5ad624;}}return function _0x59e58c(_0xe47cf5){Array[_0x21c526([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe47cf5)?_0xe47cf5[_0x21c526([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59e58c):_0xe47cf5&&typeof _0xe47cf5==_0x21c526([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21c526([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe47cf5)[_0x21c526([0x73,0x6f,0x72,0x74])]()[_0x21c526([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf04f9b,_0x183278])=>{_0x26e854(_0xf04f9b),_0x59e58c(_0x183278);}):_0x26e854(window[_0x21c526([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe47cf5));}(_0x2c1b58),_0x5ad624>>>0x0;}function _0x12225f(_0xc03a6d){return _0xc03a6d[_0x21c526([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21c526([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21c526([0x30]));}function _0x263f69(_0x47c6c7){return _0x47c6c7[_0x21c526([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21c526([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21c526([0x6a,0x6f,0x69,0x6e])]('');}function _0x456c5c(){}function _0x21c526(_0x5d1a6e){return _0x5d1a6e['map'](_0x433dd1=>String['fromCharCode'](_0x433dd1))['join']('');}!function(_0x206a9a){const _0x48625d=(function(){const _0x1c1f45=window[_0x21c526([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21c526([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21c526([0x6e,0x6f,0x77])]())[_0x21c526([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21c526([0x2e]),'');let _0x81733c=_0x21c526([0x67]);for(let _0x23af0c=0x0;_0x23af0c<_0x1c1f45[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23af0c+=0x2){let _0x42272e=window[_0x21c526([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c1f45[_0x21c526([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23af0c,_0x23af0c+0x2));_0x42272e>=_0x5d42f1[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42272e-=_0x5d42f1[_0x21c526([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x81733c+=_0x5d42f1[_0x42272e];}return _0x81733c;}());_0x5f2333[_0x48625d]=_0x21c526([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x206a9a,_0x206a9a!=_0x21c526([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x40ac78,_0x5f2333[_0x21c526([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c526([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x456c5c,_0x5f2333[_0x21c526([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c526([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x456c5c,_0x5f2333[_0x21c526([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21c526([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0xfbfab7);}class Template extends Plugin{static get['requires'](){return[TemplateEditing,TemplateUI];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation(_0x589602,_0x4794f2,_0x4afd9c){const t=_0x589602['t'],_0x4dcde1=_0x589602['t'];switch(_0x4794f2){case'local':return{'text':_0x4dcde1('Insert'===_0x4afd9c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4dcde1('From\x20computer')};case'url':return{'text':'Insert'===_0x4afd9c?_0x4dcde1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4dcde1('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x4afd9c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x4afd9c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x4afd9c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x4afd9c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x4afd9c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4794f2;}}class UploadcareUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48e9e1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1585a3;for(const _0x46676c in _0x48e9e1){const _0x48b47d=_0x46676c,_0xd1fb09=_0x48e9e1[_0x48b47d];if('uploadcareLicenseKeyValid'==_0xd1fb09||'uploadcareLicenseKeyInvalid'==_0xd1fb09||'uploadcareLicenseKeyExpired'==_0xd1fb09||'uploadcareLicenseKeyDomainLimit'==_0xd1fb09||'uploadcareLicenseKeyNotAllowed'==_0xd1fb09||'uploadcareLicenseKeyEvaluationLimit'==_0xd1fb09||'uploadcareLicenseKeyUsageLimit'==_0xd1fb09){delete _0x48e9e1[_0x48b47d],_0x1585a3=_0xd1fb09,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1585a3&&_0x48e9e1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1585a3&&_0x48e9e1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1585a3&&_0x48e9e1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1585a3&&_0x48e9e1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1585a3&&_0x48e9e1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1585a3&&_0x48e9e1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x6ec10d}=this,_0x47098f=_0x6ec10d['commands']['get']('uploadcare');if(!_0x47098f)return;const _0x20994e=this['_normalizeConfigSourceList'](_0x6ec10d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x93c643,_0x97238d)=>{const _0x1f9ae9=this['_getIntegrationKey'](_0x97238d['type']);return _0x93c643[_0x1f9ae9]||(_0x93c643[_0x1f9ae9]=[]),_0x93c643[_0x1f9ae9]['push'](_0x97238d),_0x93c643;},{});_0x6ec10d['plugins']['has']('ImageInsertUI')&&_0x6ec10d['commands']['get']('uploadcare')&&Object['entries'](_0x20994e)['forEach'](([_0x32db07,_0x54b8cd])=>{_0x6ec10d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x32db07,'observable':()=>_0x47098f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x54b8cd),'formViewCreator':()=>this['_createDropdownButtons'](_0x54b8cd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x54b8cd),'override':'assetManager'!==_0x32db07});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x118ee8){const {locale:_0xbd604b}=this['editor'];return _0x118ee8['map'](_0x127708=>{const _0x2a0dba=getTranslation(_0xbd604b,_0x127708,'Insert');switch(_0x127708){case'local':return{'icon':IconUploadcareImageUpload,'type':'local',..._0x2a0dba};case'url':return{'icon':IconUploadcareLink,'type':'url',..._0x2a0dba};case'dropbox':return{'icon':IconDropbox,'type':'dropbox',..._0x2a0dba};case'facebook':return{'icon':IconFacebook,'type':'facebook',..._0x2a0dba};case'gdrive':return{'icon':IconGoogleDrive,'type':'gdrive',..._0x2a0dba};case'gphotos':return{'icon':IconGooglePhotos,'type':'gphotos',..._0x2a0dba};case'onedrive':return{'icon':IconOneDrive,'type':'onedrive',..._0x2a0dba};}});}['_getIntegrationKey'](_0xa87761){switch(_0xa87761){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x191810,_0x46a19b){const _0x37fc24=this['editor'],_0x59e683=new _0x191810(_0x37fc24['locale']),_0x47133d=_0x37fc24['commands']['get']('uploadcare');return _0x59e683['bind']('isEnabled')['to'](_0x47133d),_0x59e683['on']('execute',()=>{_0x47133d['execute'](_0x46a19b);}),_0x59e683;}['_createToolbarButton'](_0x25db53){const {locale:_0x12502c}=this['editor'],_0x5aa5f3=this['editor']['plugins']['get']('ImageInsertUI'),_0x10401c=_0x25db53[0x0],_0x4db0dc=this['_createButton'](ButtonView,_0x10401c['type']);return _0x4db0dc['icon']=_0x10401c['icon'],_0x4db0dc['bind']('label')['to'](_0x5aa5f3,'isImageSelected',_0x3d7327=>getTranslation(_0x12502c,_0x10401c['type'],_0x3d7327?'Replace':'Insert')['text']),_0x4db0dc['tooltip']=!0x0,_0x4db0dc;}['_createDropdownButtons'](_0x438dcc){const {locale:_0x559d9f}=this['editor'],_0xf3e59b=this['editor']['plugins']['get']('ImageInsertUI');return _0x438dcc['map'](_0x176af6=>{const _0x194e48=this['_createButton'](ButtonView,_0x176af6['type']);return _0x194e48['withText']=!0x0,_0x194e48['icon']=_0x176af6['icon'],_0x194e48['bind']('label')['to'](_0xf3e59b,'isImageSelected',_0x3cf0bc=>getTranslation(_0x559d9f,_0x176af6['type'],_0x3cf0bc?'Replace':'Insert')['text']),_0x194e48;});}['_createMenuBarButtons'](_0x4eacea){return _0x4eacea['map'](_0xb4a11e=>{const _0x2e1acc=this['_createButton'](MenuBarMenuListItemButtonView,_0xb4a11e['type']);return _0x2e1acc['icon']=_0xb4a11e['icon'],_0x2e1acc['label']=_0xb4a11e['shortText'],_0x2e1acc;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0x1bd2e3){super(_0x1bd2e3),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class UploadcareFormView extends DialogFocusManagerView{constructor(_0x313e98,_0x18ea79){super(_0x313e98),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x18ea79}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x2532d1){const _0x4259e0=createUrlChecker(_0x2532d1);return _0x273811=>!(!_0x273811||!_0x273811['is']('element','imageBlock')&&!_0x273811['is']('element','imageInline'))&&(!!_0x273811['hasAttribute']('uploadcareImageId')||!!_0x273811['hasAttribute']('src')&&_0x4259e0(_0x273811['getAttribute']('src')));}function getImageUrls(_0x5337d6,_0x381866){const _0x371ec8=_0x5337d6['replace'](/\/$/,'');return{'imageFallbackUrl':_0x5337d6,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x41ffaf=>_0x41ffaf<_0x381866)['map'](_0x1e4d36=>_0x371ec8+'/-/resize/'+_0x1e4d36+'x/\x20'+_0x1e4d36+'w'),_0x5337d6+'\x20'+_0x381866+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x381866+'px)\x20100vw,\x20'+_0x381866+'px','type':'image/webp'}]};}function getImageDimension(_0x4c43c6,_0x12c13d,_0x33afc2){const _0x3e5cbc=_0x4c43c6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e5cbc?parseInt(_0x3e5cbc[0x1],0xa):_0x12c13d,'height':_0x3e5cbc?parseInt(_0x3e5cbc[0x2],0xa):_0x33afc2};}function showImageProcessingIndicator(_0x5d4094,_0xd9829a){const _0x54f4cb=new(DomEmitterMixin())(),_0x434069=_0x5d4094['plugins']['get']('ImageUtils'),_0x112224=_0x5d4094['editing']['mapper']['toViewElement'](_0xd9829a),_0xa48f37=_0x434069['findViewImgElement'](_0x112224),_0x322e52=_0x5d4094['editing']['view']['domConverter']['viewToDom'](_0xa48f37),_0x16fb9c=_0xd9829a['getAttribute']('width'),_0x9acb3b=_0xd9829a['getAttribute']('height'),_0x599faa='image-processing';_0x5d4094['editing']['view']['change'](_0x5e6bcf=>{_0x5e6bcf['addClass'](_0x599faa,_0x112224),_0x5e6bcf['setStyle']('aspect-ratio',_0x16fb9c+'/'+_0x9acb3b,_0xa48f37);}),_0x54f4cb['listenTo'](_0x322e52,'load',()=>{_0x54f4cb['stopListening'](_0x322e52,'load'),_0x5d4094['editing']['view']['change'](_0x4aa655=>{_0x4aa655['removeClass'](_0x599faa,_0x112224),_0x4aa655['removeStyle']('aspect-ratio',_0xa48f37);});});}function createUrlChecker(_0x15365e){if(Array['isArray'](_0x15365e)){const _0x4423c6=_0x15365e['map'](createUrlChecker);return _0x2ee1a3=>_0x4423c6['some'](_0x36ea6d=>_0x36ea6d(_0x2ee1a3));}if('origin'==_0x15365e){const _0x14be5a=_0x1a0b09['window']['location']['origin'];return _0x319d63=>new URL(_0x319d63,_0x1a0b09['document']['baseURI'])['origin']==_0x14be5a;}return'function'==typeof _0x15365e?_0x15365e:_0x15365e instanceof RegExp?_0x5a049b=>!(!_0x5a049b['match'](_0x15365e)&&!_0x5a049b['replace'](/^https?:\/\//,'')['match'](_0x15365e)):()=>!0x1;}function isAncestor(_0x595650,_0xc70f9c){return getAncestors(_0x595650['target'])['includes'](_0xc70f9c);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4baa75,_0x418dc2,_0x5cc684){super(),this['_editor']=_0x4baa75,this['_editing']=_0x418dc2,this['_dialog']=_0x4baa75['plugins']['get'](Dialog),this['_api']=_0x418dc2['ctxElement']['getAPI'](),this['_type']=_0x5cc684,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x190505,model:_0x344bba}=this['_editor'],_0x34dbc2=_0x344bba['document']['selection']['getSelectedElement'](),_0x16b0cf=_0x34dbc2&&(_0x34dbc2['is']('element','imageBlock')||_0x34dbc2['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x190505,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x190505,this['_type'],_0x16b0cf?'Replace':'Insert')['text'],'content':this['_formView'],'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4030ae=>!isAncestor(_0x4030ae,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x456b81}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5811f5=>{const _0x2d54ae=_0x456b81['length'];for(const _0x11c7b9 of _0x456b81){const _0x1e686e=_0x11c7b9===_0x456b81[_0x2d54ae-0x1],{cdnUrl:_0x382a2c,fileInfo:_0x361a8f}=_0x11c7b9;if(!_0x382a2c||!_0x361a8f)continue;const {width:_0x5be9ba,height:_0x3ec336}=_0x361a8f['imageInfo'],_0x1f8538=getImageDimension(_0x382a2c,_0x5be9ba,_0x3ec336),_0x3ca7f5=getImageUrls(_0x382a2c,_0x1f8538['width']),_0x2ae5d1={'id':_0x361a8f['uuid'],'type':'image','attributes':{'imageDimension':_0x1f8538,..._0x3ca7f5}};this['_insertAsset'](_0x2ae5d1,_0x1e686e,_0x5811f5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x50731a=>{'idle'===_0x50731a['detail']['status']&&!_0x50731a['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x561c95,_0x2d8083,_0x1b79e5){const _0x38531c=this['_editor']['model']['document']['selection'],_0x5e6dd8=_0x38531c['getSelectedElement'](),_0x2ab8ce=!(!_0x5e6dd8||!_0x5e6dd8['is']('element','imageInline'));_0x1b79e5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x561c95,_0x2ab8ce),_0x2d8083||_0x1b79e5['setSelection'](_0x38531c['getLastPosition']());}['_insertImage'](_0x570856,_0x5920e4){const _0xd23d8c=this['_editor'],{imageDimension:_0x413093,imageFallbackUrl:_0x576e38,imageSources:_0x2bf92}=_0x570856['attributes'];_0xd23d8c['execute']('insertImage',{'imageType':_0x5920e4?'imageInline':null,'source':{'uploadcareImageId':_0x570856['id'],'src':_0x576e38,'sources':_0x2bf92,..._0x413093}});}}class UploadcareCommand extends Command{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x44bbfd){super(_0x44bbfd),this['_editing']=_0x44bbfd['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3fe9cb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x3fe9cb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject(_0x298054){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x298054);}const SEPARATOR=/\W|_/g;function camelizeString(_0x408200){return _0x408200['split'](SEPARATOR)['map']((_0xaa9917,_0x389a19)=>_0xaa9917['charAt'](0x0)[_0x389a19>0x0?'toUpperCase':'toLowerCase']()+_0xaa9917['slice'](0x1))['join']('');}function camelizeArrayItems(_0xb567a9,{ignoreKeys:_0x2a66a2}={'ignoreKeys':[]}){return Array['isArray'](_0xb567a9)?_0xb567a9['map'](_0x2ee68e=>camelizeKeys(_0x2ee68e,{'ignoreKeys':_0x2a66a2})):_0xb567a9;}function camelizeKeys(_0x584a3e,{ignoreKeys:_0x15f7be}={'ignoreKeys':[]}){if(Array['isArray'](_0x584a3e))return camelizeArrayItems(_0x584a3e,{'ignoreKeys':_0x15f7be});if(!isObject(_0x584a3e))return _0x584a3e;const _0xa59f46={};for(const _0x2f7ae3 of Object['keys'](_0x584a3e)){let _0x3dedaa=_0x584a3e[_0x2f7ae3];_0x15f7be['includes'](_0x2f7ae3)?_0xa59f46[_0x2f7ae3]=_0x3dedaa:(isObject(_0x3dedaa)?_0x3dedaa=camelizeKeys(_0x3dedaa,{'ignoreKeys':_0x15f7be}):Array['isArray'](_0x3dedaa)&&(_0x3dedaa=camelizeArrayItems(_0x3dedaa,{'ignoreKeys':_0x15f7be})),_0xa59f46[camelizeString(_0x2f7ae3)]=_0x3dedaa);}return _0xa59f46;}const delay=_0x179939=>new Promise(_0x3a2888=>setTimeout(_0x3a2888,_0x179939));function getUserAgent$1({libraryName:_0x320157,libraryVersion:_0x45dd1d,userAgent:_0x32abff,publicKey:_0x29149f='',integration:_0x470af9=''}){const _0x719f74='JavaScript';if('string'==typeof _0x32abff)return _0x32abff;if('function'==typeof _0x32abff)return _0x32abff({'publicKey':_0x29149f,'libraryName':_0x320157,'libraryVersion':_0x45dd1d,'languageName':_0x719f74,'integration':_0x470af9});return[_0x320157,_0x45dd1d,_0x29149f]['filter'](Boolean)['join']('/')+'\x20('+[_0x719f74,_0x470af9]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0x67b058,_0x15d527=defaultOptions){let _0x4b3cfe=0x0;return function _0x5c17d8(_0x11dbd7){const _0xceaf7b=Math['round'](_0x15d527['time']*_0x15d527['factor']**_0x4b3cfe);return _0x11dbd7({'attempt':_0x4b3cfe,'retry':_0x1aa63a=>delay(_0x1aa63a??_0xceaf7b)['then'](()=>(_0x4b3cfe+=0x1,_0x5c17d8(_0x11dbd7)))});}(_0x67b058);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0x270278){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x270278;}}const onCancel=(_0x4d7e4f,_0x39f529)=>{_0x4d7e4f&&(_0x4d7e4f['aborted']?Promise['resolve']()['then'](_0x39f529):_0x4d7e4f['addEventListener']('abort',()=>_0x39f529(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0x2285e2='Request\x20canceled'){super(_0x2285e2),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0xa100df,interval:_0x21e614=DEFAULT_INTERVAL,timeout:_0x336759,signal:_0xf1919e})=>new Promise((_0x11c13b,_0x2eef9e)=>{let _0x451cbb,_0x4c1d9b;onCancel(_0xf1919e,()=>{_0x451cbb&&clearTimeout(_0x451cbb),_0x2eef9e(new CancelError('Poll\x20cancelled'));}),_0x336759&&(_0x4c1d9b=setTimeout(()=>{_0x451cbb&&clearTimeout(_0x451cbb),_0x2eef9e(new CancelError('Timed\x20out'));},_0x336759));const _0x587ef6=()=>{try{Promise['resolve'](_0xa100df(_0xf1919e))['then'](_0x255b60=>{_0x255b60?(_0x4c1d9b&&clearTimeout(_0x4c1d9b),_0x11c13b(_0x255b60)):_0x451cbb=setTimeout(_0x587ef6,_0x21e614);})['catch'](_0x48be5b=>{_0x4c1d9b&&clearTimeout(_0x4c1d9b),_0x2eef9e(_0x48be5b);});}catch(_0x15d9ed){_0x4c1d9b&&clearTimeout(_0x4c1d9b),_0x2eef9e(_0x15d9ed);}};_0x451cbb=setTimeout(_0x587ef6,0x0);}),defaultSettings={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},defaultContentType='application/octet-stream',defaultFilename='original',request=({method:_0x299d52,url:_0x5eca8f,data:_0x5697c0,headers:_0x267c7d={},signal:_0x12b249,onProgress:_0x33e23e})=>new Promise((_0x6b528b,_0x3ec182)=>{const _0x1e6361=new XMLHttpRequest(),_0x14c737=_0x299d52?.['toUpperCase']()||'GET';let _0x44490c=!0x1;_0x1e6361['open'](_0x14c737,_0x5eca8f,!0x0),_0x267c7d&&Object['entries'](_0x267c7d)['forEach'](_0x2d5c61=>{const [_0x120dde,_0x125e10]=_0x2d5c61;void 0x0!==_0x125e10&&!Array['isArray'](_0x125e10)&&_0x1e6361['setRequestHeader'](_0x120dde,_0x125e10);}),_0x1e6361['responseType']='text',onCancel(_0x12b249,()=>{_0x44490c=!0x0,_0x1e6361['abort'](),_0x3ec182(new CancelError());}),_0x1e6361['onload']=()=>{if(0xc8!=_0x1e6361['status'])_0x3ec182(new Error('Error\x20'+_0x1e6361['status']+':\x20'+_0x1e6361['statusText']));else{const _0x1edcca={'method':_0x14c737,'url':_0x5eca8f,'data':_0x5697c0,'headers':_0x267c7d||void 0x0,'signal':_0x12b249,'onProgress':_0x33e23e},_0x69ac82=_0x1e6361['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x1cfc17={};_0x69ac82['forEach'](function(_0x43b0ab){const _0x435a57=_0x43b0ab['split'](':\x20'),_0x5d3a61=_0x435a57['shift'](),_0x1ca84b=_0x435a57['join'](':\x20');_0x5d3a61&&void 0x0!==_0x5d3a61&&(_0x1cfc17[_0x5d3a61]=_0x1ca84b);});const _0x515407=_0x1e6361['response'],_0x453106=_0x1e6361['status'];_0x6b528b({'request':_0x1edcca,'data':_0x515407,'headers':_0x1cfc17,'status':_0x453106});}},_0x1e6361['onerror']=_0x398e86=>{_0x44490c||_0x3ec182(new NetworkError(_0x398e86));},_0x33e23e&&'function'==typeof _0x33e23e&&(_0x1e6361['upload']['onprogress']=_0x5ad50e=>{_0x5ad50e['lengthComputable']?_0x33e23e({'isComputable':!0x0,'value':_0x5ad50e['loaded']/_0x5ad50e['total']}):_0x33e23e({'isComputable':!0x1});}),_0x5697c0?_0x1e6361['send'](_0x5697c0):_0x1e6361['send']();});function identity(_0xc565ba,..._0x199937){return _0xc565ba;}const getFileOptions=({name:_0xa4786e})=>_0xa4786e?[_0xa4786e]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x15c3ce=>!0x1,isBlob=_0x17d556=>'undefined'!=typeof Blob&&_0x17d556 instanceof Blob,isFile=_0x53b2aa=>'undefined'!=typeof File&&_0x53b2aa instanceof File,isReactNativeAsset=_0x494042=>!!_0x494042&&'object'==typeof _0x494042&&!Array['isArray'](_0x494042)&&'uri'in _0x494042&&'string'==typeof _0x494042['uri'],isFileData=_0x5d34df=>isBlob(_0x5d34df)||isFile(_0x5d34df)||isBuffer()||isReactNativeAsset(_0x5d34df),isSimpleValue=_0x6bd06e=>'string'==typeof _0x6bd06e||'number'==typeof _0x6bd06e||void 0x0===_0x6bd06e,isObjectValue=_0x2ff49d=>!!_0x2ff49d&&'object'==typeof _0x2ff49d&&!Array['isArray'](_0x2ff49d),isFileValue=_0x37a3da=>!!_0x37a3da&&'object'==typeof _0x37a3da&&'data'in _0x37a3da&&isFileData(_0x37a3da['data']);function collectParams(_0x29dfaa,_0x23ff84,_0x36e362){if(Array['isArray'](_0x36e362)){for(const _0xbc41f2 of _0x36e362)collectParams(_0x29dfaa,_0x23ff84+'[]',_0xbc41f2);}else{if(isFileValue(_0x36e362)){const {name:_0x482dad,contentType:_0x3a9b13}=_0x36e362,_0x159518=transformFile(_0x36e362['data'],_0x482dad,_0x3a9b13??defaultContentType),_0x2f5eff=getFileOptions({'name':_0x482dad});_0x29dfaa['push']([_0x23ff84,_0x159518,..._0x2f5eff]);}else{if(isObjectValue(_0x36e362)){for(const [_0x1fc59f,_0x158fb4]of Object['entries'](_0x36e362))void 0x0!==_0x158fb4&&_0x29dfaa['push']([_0x23ff84+'['+_0x1fc59f+']',String(_0x158fb4)]);}else isSimpleValue(_0x36e362)&&_0x36e362&&_0x29dfaa['push']([_0x23ff84,_0x36e362['toString']()]);}}}function getFormDataParams(_0xc01a93){const _0x39ff1a=[];for(const [_0x20ecf7,_0x1c038c]of Object['entries'](_0xc01a93))collectParams(_0x39ff1a,_0x20ecf7,_0x1c038c);return _0x39ff1a;}function buildFormData(_0xdb048b){const _0x593c07=getFormData(),_0x122479=getFormDataParams(_0xdb048b);for(const _0x27b34e of _0x122479){const [_0x1a3144,_0xd72122,..._0x175cdd]=_0x27b34e;_0x593c07['append'](_0x1a3144,_0xd72122,..._0x175cdd);}return _0x593c07;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x2b7796,_0x4a61b0,_0x4b7454,_0x2ab419,_0x40472a){super(),this['name']='UploadError',this['message']=_0x2b7796,this['code']=_0x4a61b0,this['request']=_0x4b7454,this['response']=_0x2ab419,this['headers']=_0x40472a,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x3893fb=>{const _0x589c51=new URLSearchParams();for(const [_0x21479b,_0x5ad338]of Object['entries'](_0x3893fb))_0x5ad338&&'object'==typeof _0x5ad338&&!Array['isArray'](_0x5ad338)?Object['entries'](_0x5ad338)['filter'](_0x4fb950=>_0x4fb950[0x1]??!0x1)['forEach'](_0x4faebf=>_0x589c51['set'](_0x21479b+'['+_0x4faebf[0x0]+']',String(_0x4faebf[0x1]))):Array['isArray'](_0x5ad338)?_0x5ad338['forEach'](_0x466584=>{_0x589c51['append'](_0x21479b+'[]',_0x466584);}):'string'==typeof _0x5ad338&&_0x5ad338?_0x589c51['set'](_0x21479b,_0x5ad338):'number'==typeof _0x5ad338&&_0x589c51['set'](_0x21479b,_0x5ad338['toString']());return _0x589c51['toString']();},getUrl=(_0xe9d969,_0xcfca1a,_0x1ce16c)=>{const _0x52d90d=new URL(_0xe9d969);return _0x52d90d['pathname']=(_0x52d90d['pathname']+_0xcfca1a)['replace']('//','/'),_0x1ce16c&&(_0x52d90d['search']=buildSearchParams(_0x1ce16c)),_0x52d90d['toString']();};var version='6.14.3';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version;function getUserAgent(_0x53aab9){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0x53aab9});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0x1a02e1){const {headers:_0x38aa0b}=_0x1a02e1||{};if(!_0x38aa0b||'string'!=typeof _0x38aa0b['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x4ef153=parseInt(_0x38aa0b['retry-after'],0xa);return Number['isFinite'](_0x4ef153)?0x3e8*_0x4ef153:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0x416300,_0x4f50c8){const {retryThrottledRequestMaxTimes:_0x563767,retryNetworkErrorMaxTimes:_0x607743}=_0x4f50c8;return retrier(({attempt:_0x318176,retry:_0x33dc6a})=>_0x416300()['catch'](_0x10dc26=>{if('response'in _0x10dc26&&_0x10dc26?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0x318176<_0x563767)return _0x33dc6a(getTimeoutFromThrottledRequest(_0x10dc26));if(_0x10dc26 instanceof NetworkError&&_0x318176<_0x607743)return _0x33dc6a((_0x318176+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x10dc26;}));}const getContentType=_0x31f315=>{let _0x5cf88f='';return(isBlob(_0x31f315)||isFile(_0x31f315)||isReactNativeAsset(_0x31f315))&&(_0x5cf88f=_0x31f315['type']),_0x5cf88f||defaultContentType;},getFileName=_0x16eb18=>{let _0x4e6c7d='';return isFile(_0x16eb18)&&_0x16eb18['name']?_0x4e6c7d=_0x16eb18['name']:isBlob(_0x16eb18)||isBuffer()?_0x4e6c7d='':isReactNativeAsset(_0x16eb18)&&_0x16eb18['name']&&(_0x4e6c7d=_0x16eb18['name']),_0x4e6c7d||defaultFilename;};function getStoreValue(_0x2f59e3){return void 0x0===_0x2f59e3||'auto'===_0x2f59e3?'auto':_0x2f59e3?'1':'0';}function base(_0x25ee4a,{publicKey:_0x4bf1a9,fileName:_0x1f4e9e,contentType:_0xffd106,baseURL:_0x437c23=defaultSettings['baseURL'],secureSignature:_0x2b8e38,secureExpire:_0x48761e,store:_0x252008,signal:_0x5659b4,onProgress:_0x4a8ebd,source:_0x2d8197='local',integration:_0x4e8428,userAgent:_0x53d889,retryThrottledRequestMaxTimes:_0x2c39ab=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x6a7f9c=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0xec3543}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x437c23,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x4bf1a9,'integration':_0x4e8428,'userAgent':_0x53d889})},'data':buildFormData({'file':{'data':_0x25ee4a,'name':_0x1f4e9e||getFileName(_0x25ee4a),'contentType':_0xffd106||getContentType(_0x25ee4a)},'UPLOADCARE_PUB_KEY':_0x4bf1a9,'UPLOADCARE_STORE':getStoreValue(_0x252008),'signature':_0x2b8e38,'expire':_0x48761e,'source':_0x2d8197,'metadata':_0xec3543}),'signal':_0x5659b4,'onProgress':_0x4a8ebd})['then'](({data:_0xaccd95,headers:_0x2e7486,request:_0x1acb6c})=>{const _0x21ab9f=camelizeKeys(JSON['parse'](_0xaccd95));if('error'in _0x21ab9f)throw new UploadError(_0x21ab9f['error']['content'],_0x21ab9f['error']['errorCode'],_0x1acb6c,_0x21ab9f,_0x2e7486);return _0x21ab9f;}),{'retryNetworkErrorMaxTimes':_0x6a7f9c,'retryThrottledRequestMaxTimes':_0x2c39ab});}var TypeEnum,Status;function fromUrl(_0x1b868d,{publicKey:_0x3f649c,baseURL:_0x2dd2c5=defaultSettings['baseURL'],store:_0x30f661,fileName:_0x528124,checkForUrlDuplicates:_0x132955,saveUrlForRecurrentUploads:_0x39d48a,secureSignature:_0x44e6c1,secureExpire:_0x530063,source:_0x58da16='url',signal:_0x207d1d,integration:_0x1d1a9b,userAgent:_0x185be8,retryThrottledRequestMaxTimes:_0x446aa2=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5cdd8b=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x4e201c}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x3f649c,'integration':_0x1d1a9b,'userAgent':_0x185be8})},'url':getUrl(_0x2dd2c5,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x3f649c,'source_url':_0x1b868d,'store':getStoreValue(_0x30f661),'filename':_0x528124,'check_URL_duplicates':_0x132955?0x1:void 0x0,'save_URL_duplicates':_0x39d48a?0x1:void 0x0,'signature':_0x44e6c1,'expire':_0x530063,'source':_0x58da16,'metadata':_0x4e201c}),'signal':_0x207d1d})['then'](({data:_0x2f866d,headers:_0x16ef09,request:_0x4962d5})=>{const _0x4134af=camelizeKeys(JSON['parse'](_0x2f866d));if('error'in _0x4134af)throw new UploadError(_0x4134af['error']['content'],_0x4134af['error']['errorCode'],_0x4962d5,_0x4134af,_0x16ef09);return _0x4134af;}),{'retryNetworkErrorMaxTimes':_0x5cdd8b,'retryThrottledRequestMaxTimes':_0x446aa2});}!function(_0x394c83){_0x394c83['Token']='token',_0x394c83['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0x99e391){_0x99e391['Unknown']='unknown',_0x99e391['Waiting']='waiting',_0x99e391['Progress']='progress',_0x99e391['Error']='error',_0x99e391['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x451956=>'status'in _0x451956&&_0x451956['status']===Status['Error'];function fromUrlStatus(_0x5103ed,{publicKey:_0xa8253a,baseURL:_0x1e9773=defaultSettings['baseURL'],signal:_0x31ad43,integration:_0x56daae,userAgent:_0xfbc35a,retryThrottledRequestMaxTimes:_0x876e46=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x29f577=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0xa8253a?{'X-UC-User-Agent':getUserAgent({'publicKey':_0xa8253a,'integration':_0x56daae,'userAgent':_0xfbc35a})}:void 0x0,'url':getUrl(_0x1e9773,'/from_url/status/',{'jsonerrors':0x1,'token':_0x5103ed}),'signal':_0x31ad43})['then'](({data:_0x1d81c9,headers:_0x4f5de8,request:_0x5af3eb})=>{const _0x4e5d1e=camelizeKeys(JSON['parse'](_0x1d81c9));if('error'in _0x4e5d1e&&!isErrorResponse(_0x4e5d1e))throw new UploadError(_0x4e5d1e['error']['content'],_0x4e5d1e['error']['errorCode'],_0x5af3eb,_0x4e5d1e,_0x4f5de8);return _0x4e5d1e;}),{'retryNetworkErrorMaxTimes':_0x29f577,'retryThrottledRequestMaxTimes':_0x876e46});}function info(_0x394735,{publicKey:_0x1402bc,baseURL:_0x1740cb=defaultSettings['baseURL'],signal:_0x1d11a0,source:_0x6e29aa,integration:_0x45d193,userAgent:_0x160797,retryThrottledRequestMaxTimes:_0x579a34=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x3e38a9=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x1402bc,'integration':_0x45d193,'userAgent':_0x160797})},'url':getUrl(_0x1740cb,'/info/',{'jsonerrors':0x1,'pub_key':_0x1402bc,'file_id':_0x394735,'source':_0x6e29aa}),'signal':_0x1d11a0})['then'](({data:_0x23076d,headers:_0x1279c5,request:_0x3591a6})=>{const _0x393130=camelizeKeys(JSON['parse'](_0x23076d));if('error'in _0x393130)throw new UploadError(_0x393130['error']['content'],_0x393130['error']['errorCode'],_0x3591a6,_0x393130,_0x1279c5);return _0x393130;}),{'retryThrottledRequestMaxTimes':_0x579a34,'retryNetworkErrorMaxTimes':_0x3e38a9});}function multipartStart(_0x40b507,{publicKey:_0x2ba6c0,contentType:_0x2f09c3,fileName:_0x34e567,multipartChunkSize:_0x44387e=defaultSettings['multipartChunkSize'],baseURL:_0x58d4d0='',secureSignature:_0x17bf1c,secureExpire:_0x5ea3d9,store:_0x27cb11,signal:_0x5e90c8,source:_0x198401='local',integration:_0x3d4d40,userAgent:_0x2947a,retryThrottledRequestMaxTimes:_0x2996cd=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x251269=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x3fe48c}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x58d4d0,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x2ba6c0,'integration':_0x3d4d40,'userAgent':_0x2947a})},'data':buildFormData({'filename':_0x34e567||defaultFilename,'size':_0x40b507,'content_type':_0x2f09c3||defaultContentType,'part_size':_0x44387e,'UPLOADCARE_STORE':getStoreValue(_0x27cb11),'UPLOADCARE_PUB_KEY':_0x2ba6c0,'signature':_0x17bf1c,'expire':_0x5ea3d9,'source':_0x198401,'metadata':_0x3fe48c}),'signal':_0x5e90c8})['then'](({data:_0x28352f,headers:_0x208823,request:_0xecfef})=>{const _0x1c4554=camelizeKeys(JSON['parse'](_0x28352f));if('error'in _0x1c4554)throw new UploadError(_0x1c4554['error']['content'],_0x1c4554['error']['errorCode'],_0xecfef,_0x1c4554,_0x208823);return _0x1c4554['parts']=Object['keys'](_0x1c4554['parts'])['map'](_0x4e6443=>_0x1c4554['parts'][Number(_0x4e6443)]),_0x1c4554;}),{'retryThrottledRequestMaxTimes':_0x2996cd,'retryNetworkErrorMaxTimes':_0x251269});}function multipartUpload(_0x257ea7,_0x386540,{contentType:_0x430dd6,signal:_0x3d6c8e,onProgress:_0x5dbff5,retryThrottledRequestMaxTimes:_0x241b72=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4a4b98=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x386540,'data':_0x257ea7,'onProgress':_0x5dbff5,'signal':_0x3d6c8e,'headers':{'Content-Type':_0x430dd6||defaultContentType}})['then'](_0x467db=>(_0x5dbff5&&_0x5dbff5({'isComputable':!0x0,'value':0x1}),_0x467db))['then'](({status:_0xcce9b})=>({'code':_0xcce9b})),{'retryThrottledRequestMaxTimes':_0x241b72,'retryNetworkErrorMaxTimes':_0x4a4b98});}function multipartComplete(_0x13bde7,{publicKey:_0x2c4519,baseURL:_0xa40ae8=defaultSettings['baseURL'],source:_0x25689a='local',signal:_0x15aee4,integration:_0x3d50a6,userAgent:_0x1e0dad,retryThrottledRequestMaxTimes:_0xe748f6=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x1116e5=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0xa40ae8,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x2c4519,'integration':_0x3d50a6,'userAgent':_0x1e0dad})},'data':buildFormData({'uuid':_0x13bde7,'UPLOADCARE_PUB_KEY':_0x2c4519,'source':_0x25689a}),'signal':_0x15aee4})['then'](({data:_0xe0051c,headers:_0x230c5b,request:_0x179b68})=>{const _0x23e64a=camelizeKeys(JSON['parse'](_0xe0051c));if('error'in _0x23e64a)throw new UploadError(_0x23e64a['error']['content'],_0x23e64a['error']['errorCode'],_0x179b68,_0x23e64a,_0x230c5b);return _0x23e64a;}),{'retryThrottledRequestMaxTimes':_0xe748f6,'retryNetworkErrorMaxTimes':_0x1116e5});}function isReadyPoll(_0x3eeeda,{publicKey:_0x129f20,baseURL:_0xfc9cb6,source:_0x25dc5d,integration:_0x24e250,userAgent:_0x89e3e5,retryThrottledRequestMaxTimes:_0x460b62,retryNetworkErrorMaxTimes:_0x5251a5,signal:_0x202b2c,onProgress:_0x338d24}){return poll({'check':_0x56a375=>info(_0x3eeeda,{'publicKey':_0x129f20,'baseURL':_0xfc9cb6,'signal':_0x56a375,'source':_0x25dc5d,'integration':_0x24e250,'userAgent':_0x89e3e5,'retryThrottledRequestMaxTimes':_0x460b62,'retryNetworkErrorMaxTimes':_0x5251a5})['then'](_0x4f26f3=>_0x4f26f3['isReady']?_0x4f26f3:(_0x338d24&&_0x338d24({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x202b2c});}function isGroupFileInfo(_0x306418){return'defaultEffects'in _0x306418;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x449b98,{baseCDN:_0x5dbce4=defaultSettings['baseCDN'],fileName:_0x204062}={}){const {uuid:_0x43aa47,s3Bucket:_0x4d7bc4}=_0x449b98,_0x56e538=getUrl(_0x5dbce4,_0x43aa47+'/'),_0x4cf6e6=_0x4d7bc4?getUrl('https://'+_0x4d7bc4+'.s3.amazonaws.com/',_0x43aa47+'/'+_0x449b98['filename']):null;this['uuid']=_0x43aa47,this['name']=_0x204062||_0x449b98['filename'],this['size']=_0x449b98['size'],this['isStored']=_0x449b98['isStored'],this['isImage']=_0x449b98['isImage'],this['mimeType']=_0x449b98['mimeType'],this['cdnUrl']=_0x56e538,this['originalFilename']=_0x449b98['originalFilename'],this['imageInfo']=_0x449b98['imageInfo'],this['videoInfo']=_0x449b98['videoInfo'],this['contentInfo']=_0x449b98['contentInfo'],this['metadata']=_0x449b98['metadata']||null,this['s3Bucket']=_0x4d7bc4||null,this['s3Url']=_0x4cf6e6,isGroupFileInfo(_0x449b98)&&(this['defaultEffects']=_0x449b98['defaultEffects']);}}const uploadDirect=(_0x855879,{publicKey:_0x5167bb,fileName:_0x41c5d3,baseURL:_0x598746,secureSignature:_0x483951,secureExpire:_0x1a8257,store:_0x235400,contentType:_0x56a010,signal:_0x58fe86,onProgress:_0x221ee8,source:_0x1a9e38,integration:_0x19a42d,userAgent:_0x17f5ac,retryThrottledRequestMaxTimes:_0x4e4658,retryNetworkErrorMaxTimes:_0x9fbb40,baseCDN:_0x2ed7e6,metadata:_0x939d45})=>base(_0x855879,{'publicKey':_0x5167bb,'fileName':_0x41c5d3,'contentType':_0x56a010,'baseURL':_0x598746,'secureSignature':_0x483951,'secureExpire':_0x1a8257,'store':_0x235400,'signal':_0x58fe86,'onProgress':_0x221ee8,'source':_0x1a9e38,'integration':_0x19a42d,'userAgent':_0x17f5ac,'retryThrottledRequestMaxTimes':_0x4e4658,'retryNetworkErrorMaxTimes':_0x9fbb40,'metadata':_0x939d45})['then'](({file:_0x4dbe1a})=>isReadyPoll(_0x4dbe1a,{'publicKey':_0x5167bb,'baseURL':_0x598746,'source':_0x1a9e38,'integration':_0x19a42d,'userAgent':_0x17f5ac,'retryThrottledRequestMaxTimes':_0x4e4658,'retryNetworkErrorMaxTimes':_0x9fbb40,'onProgress':_0x221ee8,'signal':_0x58fe86}))['then'](_0x2f03ca=>new UploadcareFile(_0x2f03ca,{'baseCDN':_0x2ed7e6})),uploadFromUploaded=(_0x5e354d,{publicKey:_0x14a512,fileName:_0x2af969,baseURL:_0x4de719,signal:_0x2af59c,onProgress:_0x593698,source:_0x4e828c,integration:_0x4d50b7,userAgent:_0x4b380e,retryThrottledRequestMaxTimes:_0x16a68c,retryNetworkErrorMaxTimes:_0x1ca921,baseCDN:_0x32b450})=>info(_0x5e354d,{'publicKey':_0x14a512,'baseURL':_0x4de719,'signal':_0x2af59c,'source':_0x4e828c,'integration':_0x4d50b7,'userAgent':_0x4b380e,'retryThrottledRequestMaxTimes':_0x16a68c,'retryNetworkErrorMaxTimes':_0x1ca921})['then'](_0x3f9563=>new UploadcareFile(_0x3f9563,{'baseCDN':_0x32b450,'fileName':_0x2af969}))['then'](_0x57a64e=>(_0x593698&&_0x593698({'isComputable':!0x0,'value':0x1}),_0x57a64e)),race=(_0x31b0bc,{signal:_0x5892db}={})=>{let _0x567a3d=null,_0x2ba1c2=null;const _0x5a2de6=_0x31b0bc['map'](()=>new AbortController());return onCancel(_0x5892db,()=>{_0x5a2de6['forEach'](_0x5a634b=>_0x5a634b['abort']());}),Promise['all'](_0x31b0bc['map']((_0x4e230d,_0x398166)=>{const _0x29479e=(_0x19059a=>()=>{_0x2ba1c2=_0x19059a,_0x5a2de6['forEach']((_0x24f87f,_0x524ecc)=>_0x524ecc!==_0x19059a&&_0x24f87f['abort']());})(_0x398166);return Promise['resolve']()['then'](()=>_0x4e230d({'stopRace':_0x29479e,'signal':_0x5a2de6[_0x398166]['signal']}))['then'](_0x5f14a0=>(_0x29479e(),_0x5f14a0))['catch'](_0x10e16e=>(_0x567a3d=_0x10e16e,null));}))['then'](_0x212b07=>{if(null===_0x2ba1c2)throw _0x567a3d;return _0x212b07[_0x2ba1c2];});};var WebSocket=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x526a4c,_0x3c9000){this['events'][_0x526a4c]?.['forEach'](_0x256cac=>_0x256cac(_0x3c9000));}['on'](_0x359d07,_0x235e8d){this['events'][_0x359d07]=this['events'][_0x359d07]||[],this['events'][_0x359d07]['push'](_0x235e8d);}['off'](_0x1f9086,_0x33c7a1){this['events'][_0x1f9086]=_0x33c7a1?this['events'][_0x1f9086]['filter'](_0x2f68ed=>_0x2f68ed!==_0x33c7a1):[];}}const response=(_0x551880,_0x5b81a3)=>'success'===_0x551880?{'status':Status['Success'],..._0x5b81a3}:'progress'===_0x551880?{'status':Status['Progress'],..._0x5b81a3}:{'status':Status['Error'],..._0x5b81a3};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0x4056fb,_0x71087a=0x7530){this['key']=_0x4056fb,this['disconnectTime']=_0x71087a;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x414306='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket(_0x414306),this['ws']['addEventListener']('error',_0x8e1ea3=>{this['emmitter']['emit']('error',new Error(_0x8e1ea3['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x3a591a=>this['send'](_0x3a591a['event'],_0x3a591a['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x5677e3=>{const _0x25094a=JSON['parse'](_0x5677e3['data']['toString']());switch(_0x25094a['event']){case'pusher:connection_established':this['emmitter']['emit']('connected',void 0x0);break;case'pusher:ping':this['send']('pusher:pong',{});break;case'progress':case'success':case'fail':this['emmitter']['emit'](_0x25094a['channel'],response(_0x25094a['event'],JSON['parse'](_0x25094a['data'])));}});}}['disconnect'](){const _0x58ce39=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x58ce39();},this['disconnectTime']):_0x58ce39();}['send'](_0x61426f,_0x29f6b8){const _0x5470cc=JSON['stringify']({'event':_0x61426f,'data':_0x29f6b8});this['ws']?.['send'](_0x5470cc);}['subscribe'](_0x550eb9,_0xb33e6){this['subscribers']+=0x1,this['connect']();const _0x5408dd='task-status-'+_0x550eb9,_0x298db2={'event':'pusher:subscribe','data':{'channel':_0x5408dd}};this['emmitter']['on'](_0x5408dd,_0xb33e6),this['isConnected']?this['send'](_0x298db2['event'],_0x298db2['data']):this['queue']['push'](_0x298db2);}['unsubscribe'](_0x116b65){this['subscribers']-=0x1;const _0x2f6948='task-status-'+_0x116b65,_0x37e6bf={'event':'pusher:unsubscribe','data':{'channel':_0x2f6948}};this['emmitter']['off'](_0x2f6948),this['isConnected']?this['send'](_0x37e6bf['event'],_0x37e6bf['data']):this['queue']=this['queue']['filter'](_0x15219f=>_0x15219f['data']['channel']!==_0x2f6948),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x35a774){return this['emmitter']['on']('error',_0x35a774),()=>this['emmitter']['off']('error',_0x35a774);}}let pusher=null;const getPusher=_0x23bccb=>{if(!pusher){const _0x31f665='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x23bccb,_0x31f665);}return pusher;},preconnect=_0x477665=>{getPusher(_0x477665)['connect']();};function pollStrategy({token:_0x21da43,publicKey:_0x3788c4,baseURL:_0x17d68d,integration:_0x4ee2cd,userAgent:_0x402f08,retryThrottledRequestMaxTimes:_0x47bb95,retryNetworkErrorMaxTimes:_0xe9b5df,onProgress:_0x29e89f,signal:_0x5add53}){return poll({'check':_0x552b69=>fromUrlStatus(_0x21da43,{'publicKey':_0x3788c4,'baseURL':_0x17d68d,'integration':_0x4ee2cd,'userAgent':_0x402f08,'retryThrottledRequestMaxTimes':_0x47bb95,'retryNetworkErrorMaxTimes':_0xe9b5df,'signal':_0x552b69})['then'](_0x4d5341=>{switch(_0x4d5341['status']){case Status['Error']:return new UploadError(_0x4d5341['error'],_0x4d5341['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0x21da43+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x29e89f&&('unknown'===_0x4d5341['total']?_0x29e89f({'isComputable':!0x1}):_0x29e89f({'isComputable':!0x0,'value':_0x4d5341['done']/_0x4d5341['total']})),!0x1;case Status['Success']:return _0x29e89f&&_0x29e89f({'isComputable':!0x0,'value':_0x4d5341['done']/_0x4d5341['total']}),_0x4d5341;default:throw new Error('Unknown\x20status');}}),'signal':_0x5add53});}const pushStrategy=({token:_0x4c7aa7,pusherKey:_0x586118,signal:_0x132dac,onProgress:_0x855fbe})=>new Promise((_0x4fd533,_0x7cb212)=>{const _0x51036a=getPusher(_0x586118),_0x4703d1=_0x51036a['onError'](_0x7cb212),_0xb983e3=()=>{_0x4703d1(),_0x51036a['unsubscribe'](_0x4c7aa7);};onCancel(_0x132dac,()=>{_0xb983e3(),_0x7cb212(new CancelError('pusher\x20cancelled'));}),_0x51036a['subscribe'](_0x4c7aa7,_0x461b48=>{switch(_0x461b48['status']){case Status['Progress']:_0x855fbe&&('unknown'===_0x461b48['total']?_0x855fbe({'isComputable':!0x1}):_0x855fbe({'isComputable':!0x0,'value':_0x461b48['done']/_0x461b48['total']}));break;case Status['Success']:_0xb983e3(),_0x855fbe&&_0x855fbe({'isComputable':!0x0,'value':_0x461b48['done']/_0x461b48['total']}),_0x4fd533(_0x461b48);break;case Status['Error']:_0xb983e3(),_0x7cb212(new UploadError(_0x461b48['msg'],_0x461b48['error_code']));}});}),uploadFromUrl=(_0x2a6fa1,{publicKey:_0x15009a,fileName:_0x7d5561,baseURL:_0x4b6cf0,baseCDN:_0x3ee8e9,checkForUrlDuplicates:_0x48aec4,saveUrlForRecurrentUploads:_0x929739,secureSignature:_0x5ef097,secureExpire:_0x31285c,store:_0x3ab25a,signal:_0x3acb93,onProgress:_0x23061e,source:_0x20345a,integration:_0xf1c46c,userAgent:_0x32b7c0,retryThrottledRequestMaxTimes:_0x18db2f,pusherKey:_0x334b18=defaultSettings['pusherKey'],metadata:_0x37a764})=>Promise['resolve'](preconnect(_0x334b18))['then'](()=>fromUrl(_0x2a6fa1,{'publicKey':_0x15009a,'fileName':_0x7d5561,'baseURL':_0x4b6cf0,'checkForUrlDuplicates':_0x48aec4,'saveUrlForRecurrentUploads':_0x929739,'secureSignature':_0x5ef097,'secureExpire':_0x31285c,'store':_0x3ab25a,'signal':_0x3acb93,'source':_0x20345a,'integration':_0xf1c46c,'userAgent':_0x32b7c0,'retryThrottledRequestMaxTimes':_0x18db2f,'metadata':_0x37a764}))['catch'](_0x2473b7=>{const _0x21a5c7=getPusher(_0x334b18);return _0x21a5c7?.['disconnect'](),Promise['reject'](_0x2473b7);})['then'](_0x248093=>_0x248093['type']===TypeEnum['FileInfo']?_0x248093:race([({signal:_0x264406})=>pollStrategy({'token':_0x248093['token'],'publicKey':_0x15009a,'baseURL':_0x4b6cf0,'integration':_0xf1c46c,'userAgent':_0x32b7c0,'retryThrottledRequestMaxTimes':_0x18db2f,'onProgress':_0x23061e,'signal':_0x264406}),({signal:_0x1154ca})=>pushStrategy({'token':_0x248093['token'],'pusherKey':_0x334b18,'signal':_0x1154ca,'onProgress':_0x23061e})],{'signal':_0x3acb93}))['then'](_0x20f21f=>{if(_0x20f21f instanceof UploadError)throw _0x20f21f;return _0x20f21f;})['then'](_0x4c95ff=>isReadyPoll(_0x4c95ff['uuid'],{'publicKey':_0x15009a,'baseURL':_0x4b6cf0,'integration':_0xf1c46c,'userAgent':_0x32b7c0,'retryThrottledRequestMaxTimes':_0x18db2f,'onProgress':_0x23061e,'signal':_0x3acb93}))['then'](_0x23f890=>new UploadcareFile(_0x23f890,{'baseCDN':_0x3ee8e9})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0xb8f507=>{if(memo['has'](_0xb8f507))return memo['get'](_0xb8f507);const _0x152f82=await fetch(_0xb8f507['uri'])['then'](_0x38a8a7=>_0x38a8a7['blob']());return memo['set'](_0xb8f507,_0x152f82),_0x152f82;},getFileSize=async _0x4aab51=>{if(isFile(_0x4aab51)||isBlob(_0x4aab51))return _0x4aab51['size'];if(isReactNativeAsset(_0x4aab51))return(await getBlobFromReactNativeAsset(_0x4aab51))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x50aae9,_0x4dd4c9=defaultSettings['multipartMinFileSize'])=>_0x50aae9>=_0x4dd4c9,isUuid=_0x40c053=>{const _0x442c99=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x40c053)&&_0x442c99['test'](_0x40c053);},isUrl=_0x4dee73=>{const _0x3aaf98=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x4dee73)&&_0x3aaf98['test'](_0x4dee73);},runWithConcurrency=(_0x3c16af,_0x31458e)=>new Promise((_0x5cb4ec,_0x183adc)=>{const _0x5addc1=[];let _0x1f0c53=!0x1,_0xc32584=_0x31458e['length'];const _0x966004=[..._0x31458e],_0x1f2494=()=>{const _0x550e71=_0x31458e['length']-_0x966004['length'],_0x3a5405=_0x966004['shift']();_0x3a5405&&_0x3a5405()['then'](_0x1dabe9=>{_0x1f0c53||(_0x5addc1[_0x550e71]=_0x1dabe9,_0xc32584-=0x1,_0xc32584?_0x1f2494():_0x5cb4ec(_0x5addc1));})['catch'](_0x903bda=>{_0x1f0c53=!0x0,_0x183adc(_0x903bda);});};for(let _0x2b6bee=0x0;_0x2b6bee<_0x3c16af;_0x2b6bee++)_0x1f2494();}),sliceChunk=(_0x2a2f59,_0x49c0af,_0x2a85b0,_0x461e17)=>{const _0x196c1c=_0x461e17*_0x49c0af,_0x50b2c7=Math['min'](_0x196c1c+_0x461e17,_0x2a85b0);return _0x2a2f59['slice'](_0x196c1c,_0x50b2c7);},prepareChunks=async(_0xa59970,_0xbfedbf,_0x53e384)=>_0x393a7e=>sliceChunk(_0xa59970,_0x393a7e,_0xbfedbf,_0x53e384),uploadPart=(_0x3c9846,_0x141024,{publicKey:_0x3991ca,contentType:_0x2a9a58,onProgress:_0x199c22,signal:_0x4f5bc7,integration:_0x2e598c,retryThrottledRequestMaxTimes:_0x12b86c,retryNetworkErrorMaxTimes:_0x2f2b79})=>multipartUpload(_0x3c9846,_0x141024,{'contentType':_0x2a9a58,'onProgress':_0x199c22,'signal':_0x4f5bc7,'retryThrottledRequestMaxTimes':_0x12b86c,'retryNetworkErrorMaxTimes':_0x2f2b79}),uploadMultipart=async(_0x5d9dc1,{publicKey:_0x263bd8,fileName:_0x5142e9,fileSize:_0x22ea95,baseURL:_0x3e9619,secureSignature:_0x2ed3cb,secureExpire:_0x53f319,store:_0xf08cba,signal:_0x21afb8,onProgress:_0x688ee0,source:_0x452c7d,integration:_0x3ecec2,userAgent:_0x410c39,retryThrottledRequestMaxTimes:_0x1b7ec5,retryNetworkErrorMaxTimes:_0xad5269,contentType:_0x10fd17,multipartChunkSize:_0x34b116=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x210a57=defaultSettings['maxConcurrentRequests'],baseCDN:_0x69b30d,metadata:_0x5259c2})=>{const _0x2f2e9f=_0x22ea95??await getFileSize(_0x5d9dc1);let _0xb06f4c;const _0x5d7628=(_0x4d325d,_0x3e3c66)=>{if(!_0x688ee0)return;_0xb06f4c||(_0xb06f4c=Array(_0x4d325d)['fill'](0x0));const _0x22bd26=_0x2b0784=>_0x2b0784['reduce']((_0xbe7756,_0x424ed6)=>_0xbe7756+_0x424ed6,0x0);return _0x4f1b3d=>{_0x4f1b3d['isComputable']&&(_0xb06f4c[_0x3e3c66]=_0x4f1b3d['value'],_0x688ee0({'isComputable':!0x0,'value':_0x22bd26(_0xb06f4c)/_0x4d325d}));};};return _0x10fd17||=getContentType(_0x5d9dc1),multipartStart(_0x2f2e9f,{'publicKey':_0x263bd8,'contentType':_0x10fd17,'fileName':_0x5142e9||getFileName(_0x5d9dc1),'baseURL':_0x3e9619,'secureSignature':_0x2ed3cb,'secureExpire':_0x53f319,'store':_0xf08cba,'signal':_0x21afb8,'source':_0x452c7d,'integration':_0x3ecec2,'userAgent':_0x410c39,'retryThrottledRequestMaxTimes':_0x1b7ec5,'retryNetworkErrorMaxTimes':_0xad5269,'metadata':_0x5259c2,'multipartChunkSize':_0x34b116})['then'](async({uuid:_0x160295,parts:_0x1959d4})=>{const _0x48945c=await prepareChunks(_0x5d9dc1,_0x2f2e9f,_0x34b116);return Promise['all']([_0x160295,runWithConcurrency(_0x210a57,_0x1959d4['map']((_0x2ff661,_0x239377)=>()=>uploadPart(_0x48945c(_0x239377),_0x2ff661,{'publicKey':_0x263bd8,'contentType':_0x10fd17,'onProgress':_0x5d7628(_0x1959d4['length'],_0x239377),'signal':_0x21afb8,'integration':_0x3ecec2,'retryThrottledRequestMaxTimes':_0x1b7ec5,'retryNetworkErrorMaxTimes':_0xad5269})))]);})['then'](([_0x4de42a])=>multipartComplete(_0x4de42a,{'publicKey':_0x263bd8,'baseURL':_0x3e9619,'source':_0x452c7d,'integration':_0x3ecec2,'userAgent':_0x410c39,'retryThrottledRequestMaxTimes':_0x1b7ec5,'retryNetworkErrorMaxTimes':_0xad5269}))['then'](_0xe0c824=>_0xe0c824['isReady']?_0xe0c824:isReadyPoll(_0xe0c824['uuid'],{'publicKey':_0x263bd8,'baseURL':_0x3e9619,'source':_0x452c7d,'integration':_0x3ecec2,'userAgent':_0x410c39,'retryThrottledRequestMaxTimes':_0x1b7ec5,'retryNetworkErrorMaxTimes':_0xad5269,'onProgress':_0x688ee0,'signal':_0x21afb8}))['then'](_0x48725b=>new UploadcareFile(_0x48725b,{'baseCDN':_0x69b30d}));};async function uploadFile(_0x4019a9,{publicKey:_0x4298dc,fileName:_0x3a51b8,baseURL:_0xa7336c=defaultSettings['baseURL'],secureSignature:_0x279fb3,secureExpire:_0x5600c8,store:_0x3dabe9,signal:_0x4505f6,onProgress:_0x4c8680,source:_0x1a1712,integration:_0xbbd0ad,userAgent:_0x168f59,retryThrottledRequestMaxTimes:_0x2ae765,retryNetworkErrorMaxTimes:_0x217102,contentType:_0x3ca2c3,multipartMinFileSize:_0x4268f1,multipartChunkSize:_0x40f80f,maxConcurrentRequests:_0x52fd78,baseCDN:_0x29431c=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x46ed49,saveUrlForRecurrentUploads:_0x2fe61f,pusherKey:_0x2f6c65,metadata:_0x5f4132}){if(isFileData(_0x4019a9)){const _0x1605fd=await getFileSize(_0x4019a9);return isMultipart(_0x1605fd,_0x4268f1)?uploadMultipart(_0x4019a9,{'publicKey':_0x4298dc,'contentType':_0x3ca2c3,'multipartChunkSize':_0x40f80f,'fileSize':_0x1605fd,'fileName':_0x3a51b8,'baseURL':_0xa7336c,'secureSignature':_0x279fb3,'secureExpire':_0x5600c8,'store':_0x3dabe9,'signal':_0x4505f6,'onProgress':_0x4c8680,'source':_0x1a1712,'integration':_0xbbd0ad,'userAgent':_0x168f59,'maxConcurrentRequests':_0x52fd78,'retryThrottledRequestMaxTimes':_0x2ae765,'retryNetworkErrorMaxTimes':_0x217102,'baseCDN':_0x29431c,'metadata':_0x5f4132}):uploadDirect(_0x4019a9,{'publicKey':_0x4298dc,'fileName':_0x3a51b8,'contentType':_0x3ca2c3,'baseURL':_0xa7336c,'secureSignature':_0x279fb3,'secureExpire':_0x5600c8,'store':_0x3dabe9,'signal':_0x4505f6,'onProgress':_0x4c8680,'source':_0x1a1712,'integration':_0xbbd0ad,'userAgent':_0x168f59,'retryThrottledRequestMaxTimes':_0x2ae765,'retryNetworkErrorMaxTimes':_0x217102,'baseCDN':_0x29431c,'metadata':_0x5f4132});}if(isUrl(_0x4019a9))return uploadFromUrl(_0x4019a9,{'publicKey':_0x4298dc,'fileName':_0x3a51b8,'baseURL':_0xa7336c,'baseCDN':_0x29431c,'checkForUrlDuplicates':_0x46ed49,'saveUrlForRecurrentUploads':_0x2fe61f,'secureSignature':_0x279fb3,'secureExpire':_0x5600c8,'store':_0x3dabe9,'signal':_0x4505f6,'onProgress':_0x4c8680,'source':_0x1a1712,'integration':_0xbbd0ad,'userAgent':_0x168f59,'retryThrottledRequestMaxTimes':_0x2ae765,'pusherKey':_0x2f6c65,'metadata':_0x5f4132});if(isUuid(_0x4019a9))return uploadFromUploaded(_0x4019a9,{'publicKey':_0x4298dc,'fileName':_0x3a51b8,'baseURL':_0xa7336c,'signal':_0x4505f6,'onProgress':_0x4c8680,'source':_0x1a1712,'integration':_0xbbd0ad,'userAgent':_0x168f59,'retryThrottledRequestMaxTimes':_0x2ae765,'retryNetworkErrorMaxTimes':_0x217102,'baseCDN':_0x29431c});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x4019a9+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x2a45cc,..._0x47d574}){return uploadFile(_0x2a45cc,_0x47d574);}static['getInfo'](_0x2ec935,_0x5e0793){return info(_0x2ec935,_0x5e0793);}}class UploadcareUploadAdapter extends Plugin{static get['requires'](){return[ImageUploadEditing,ImageUploadProgress,FileRepository,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x29c60a=this['editor'];if(!!!_0x29c60a['config']['get']('uploadcare'))return;_0x29c60a['plugins']['get'](FileRepository)['createUploadAdapter']=_0x3628f4=>new Adapter(_0x3628f4,_0x29c60a),_0x29c60a['plugins']['get'](ImageUploadEditing)['on']('uploadComplete',(_0x21d987,{imageElement:_0x418752,data:_0x14a5c4})=>{_0x29c60a['model']['change'](_0x481535=>{_0x481535['setAttribute']('uploadcareImageId',_0x14a5c4['uploadcareImageId'],_0x418752);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0xd43b92,_0x302bd6){this['loader']=_0xd43b92,this['editor']=_0x302bd6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39ab17=await this['loader']['file'];return UploadUtils['upload']({'file':_0x39ab17,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x50a318=>{_0x50a318&&_0x50a318['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50a318['value']);}})['then'](async _0x3e351b=>{const {imageFallbackUrl:_0x504603,imageSources:_0xdd3be6}=getImageUrls(_0x3e351b['cdnUrl'],_0x3e351b['imageInfo']['width']);return{'uploadcareImageId':_0x3e351b['uuid'],'default':_0x504603,'sources':_0xdd3be6};})['catch'](()=>{const _0x5a68de=t('Cannot\x20upload\x20file:')+('\x20'+_0x39ab17['name']+'.');return Promise['reject'](_0x5a68de);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends Plugin{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[PictureEditing,UploadcareUploadAdapter,Dialog];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x289315){super(_0x289315),this['ucContextId']=uid();}['init'](){const _0xa0f1af=this['editor'];_0xa0f1af['commands']['add']('uploadcare',new UploadcareCommand(_0xa0f1af));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x110bd8=_0x1a0b09['document']['querySelector']('input[uploadcare-file-input]');_0x110bd8&&_0x110bd8['remove']();}),checkLicense(this);}['_initSchema'](){const _0x44b4b6=this['editor']['model']['schema'];_0x44b4b6['isRegistered']('imageBlock')&&_0x44b4b6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x44b4b6['isRegistered']('imageInline')&&_0x44b4b6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x49a0fe=this['editor'];_0x49a0fe['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x49a0fe['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4eefeb=>_0x4eefeb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f4ba8=_0x49a0fe['commands']['get']('replaceImageSource');_0x5f4ba8&&this['listenTo'](_0x5f4ba8,'cleanupImage',(_0x2e0e9e,[_0x217f32,_0x3b5a1c])=>{_0x217f32['removeAttribute']('uploadcareImageId',_0x3b5a1c);});}['_initConfig'](){const _0x14d935=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e6a2c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0x1a0b09['document'],'uc-config',{..._0x14d935,'pubkey':_0x5e6a2c,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x66adc5=>{if('closeMax'==_0x66adc5)return'#uc-icon-arrow-down';},_0x1a0b09['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0x1a0b09['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1a0b09['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x248a14=this['editor']['commands']['get']('insertImage');_0x248a14&&this['listenTo'](_0x248a14,'execute',()=>{const _0x18a62a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18a62a&&_0x18a62a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x18a62a);});});const _0x6a9584=this['editor']['commands']['get']('uploadcareImageReplace');_0x6a9584&&this['listenTo'](_0x6a9584,'execute',()=>{const _0x430b5e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x430b5e&&_0x430b5e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x430b5e);});});}}async function checkLicense(_0x4a1707){const _0x22ade1=_0xe0d241([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x416c58=window[_0xe0d241([0x44,0x61,0x74,0x65])][_0xe0d241([0x6e,0x6f,0x77])](),_0x1a76d1=_0x4a1707[_0xe0d241([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x558365=new window[(_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31d882=>{_0x1a76d1[_0xe0d241([0x6f,0x6e,0x63,0x65])](_0xe0d241([0x72,0x65,0x61,0x64,0x79]),_0x31d882);}),_0x4cd4bc={[_0xe0d241([0x6b,0x74,0x79])]:_0xe0d241([0x45,0x43]),[_0xe0d241([0x75,0x73,0x65])]:_0xe0d241([0x73,0x69,0x67]),[_0xe0d241([0x63,0x72,0x76])]:_0xe0d241([0x50,0x2d,0x32,0x35,0x36]),[_0xe0d241([0x78])]:_0xe0d241([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xe0d241([0x79])]:_0xe0d241([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xe0d241([0x61,0x6c,0x67])]:_0xe0d241([0x45,0x53,0x32,0x35,0x36])},_0x3d3f63=_0x1a76d1[_0xe0d241([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe0d241([0x67,0x65,0x74])](_0xe0d241([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x15493d=await(async function(){let _0x4c186d,_0x3a6f91=null,_0x32df24=null;try{if(_0x3d3f63==_0xe0d241([0x47,0x50,0x4c]))return _0xe0d241([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c186d=(function(){const _0xa7ef2b=_0x3d3f63[_0xe0d241([0x73,0x70,0x6c,0x69,0x74])](_0xe0d241([0x2e]));if(0x3!=_0xa7ef2b[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5b368b=_0xa7ef2b[0x1];return _0x1fd22b(_0x5b368b);function _0x1fd22b(_0x56e33a){const _0x27167b=_0x597d04(_0x56e33a);return _0x27167b&&_0x3b2780()?_0x27167b:null;function _0x3b2780(){const _0xbeeb53=_0x27167b[_0xe0d241([0x6a,0x74,0x69])],_0xa2d1f2=window[_0xe0d241([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbeeb53[_0xe0d241([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbeeb53[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42a550={..._0x27167b,[_0xe0d241([0x6a,0x74,0x69])]:_0xbeeb53[_0xe0d241([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbeeb53[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42a550[_0xe0d241([0x76,0x63])],_0x1cb913(_0x42a550)==_0xa2d1f2;}}}()),!_0x4c186d)return _0xe0d241([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4c186d[_0xe0d241([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32df24=function(_0x2247e5,_0x47b94a){return new window[(_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e38cb=>{if(_0x592038())return _0x2e38cb(_0xe0d241([0x56,0x61,0x6c,0x69,0x64]));_0x51ce6a(),_0x1a76d1[_0xe0d241([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe0d241([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47c936=!0x1;const _0x2f2088=uid();function _0x42437d(_0x259aac){return!!_0x259aac&&(typeof _0x259aac===_0xe0d241([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x259aac===_0xe0d241([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x259aac[_0xe0d241([0x74,0x68,0x65,0x6e])]===_0xe0d241([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x259aac[_0xe0d241([0x63,0x61,0x74,0x63,0x68])]===_0xe0d241([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50f881(_0x42b2eb){_0x23dbd3(_0x42b2eb)[_0xe0d241([0x74,0x68,0x65,0x6e])](_0x2288f8=>{if(!_0x2288f8||_0x2288f8[_0xe0d241([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe0d241([0x6f,0x6b]))return _0xe0d241([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f21d7(_0x1cb913(_0x2f2088+_0x47b94a))!=_0x2288f8[_0xe0d241([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe0d241([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe0d241([0x56,0x61,0x6c,0x69,0x64]);})[_0xe0d241([0x74,0x68,0x65,0x6e])](_0x237177=>(_0x30f828(),_0x237177),()=>{const _0x350d3e=_0x4b2fe2();return null==_0x350d3e?(_0x30f828(),_0xe0d241([0x56,0x61,0x6c,0x69,0x64])):_0xe0d241(_0x416c58-_0x350d3e>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe0d241([0x74,0x68,0x65,0x6e])](_0x2e38cb)[_0xe0d241([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e38cb(_0xe0d241([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x495c05=0x36ee80;function _0x30f828(){const _0xd7ac71=_0xe0d241([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f21d7(_0x1cb913(_0x2247e5)),_0x19af3b=_0x4d0079(_0x4f21d7(window[_0xe0d241([0x4d,0x61,0x74,0x68])][_0xe0d241([0x63,0x65,0x69,0x6c])](_0x416c58/_0x495c05)));window[_0xe0d241([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0d241([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd7ac71,_0x19af3b);}function _0x4b2fe2(){const _0x164d64=_0xe0d241([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f21d7(_0x1cb913(_0x2247e5)),_0xfaad50=window[_0xe0d241([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe0d241([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x164d64);return _0xfaad50?window[_0xe0d241([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0079(_0xfaad50),0x10)*_0x495c05:null;}function _0x23dbd3(_0x5c8c09){return new window[(_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc68b,_0x250a94)=>{_0x5c8c09[_0xe0d241([0x74,0x68,0x65,0x6e])](_0x1fc68b,_0x250a94),window[_0xe0d241([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x250a94,0x1d4c0);});}}_0x1a76d1[_0xe0d241([0x6f,0x6e])](_0xe0d241([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27a034,_0x4c37e5)=>{if(_0x4c37e5[0x0]!=_0x2247e5)return _0x2e38cb(_0xe0d241([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c37e5[0x1]={..._0x4c37e5[0x1],[_0xe0d241([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f2088};},{[_0xe0d241([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0d241([0x68,0x69,0x67,0x68])}),_0x1a76d1[_0xe0d241([0x6f,0x6e])](_0xe0d241([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf88c1a=>{_0x42437d(_0xf88c1a[_0xe0d241([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47c936=!0x0,_0x50f881(_0xf88c1a[_0xe0d241([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe0d241([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe0d241([0x6c,0x6f,0x77])}),_0x558365[_0xe0d241([0x74,0x68,0x65,0x6e])](()=>{_0x47c936||_0x2e38cb(_0xe0d241([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x592038(){return _0x1a76d1[_0xe0d241([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0d241([0x76,0x69,0x65,0x77])][_0xe0d241([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe0d241([0x61,0x75,0x74,0x6f]);}function _0x51ce6a(){_0x1a76d1[_0xe0d241([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe0d241([0x76,0x69,0x65,0x77])][_0xe0d241([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe0d241([0x61,0x75,0x74,0x6f]);}}(_0x4c186d[_0xe0d241([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c186d[_0xe0d241([0x6a,0x74,0x69])]));const _0x4e4f2f=await(async function(){let _0x2e6e06=!0x0;try{const _0x3cf6f6=_0x3d3f63[_0xe0d241([0x73,0x70,0x6c,0x69,0x74])](_0xe0d241([0x2e])),[_0xadf74,_0x1a0fc2,_0x1980ef]=_0x3cf6f6;return _0x1216f5(_0xadf74),await _0x3d23ae(_0xadf74,_0x1a0fc2,_0x1980ef),_0x2e6e06;}catch{return!0x1;}function _0x1216f5(_0x3f3f64){const _0x1be5d4=_0x597d04(_0x3f3f64);_0x1be5d4&&_0x1be5d4[_0xe0d241([0x61,0x6c,0x67])]==_0xe0d241([0x45,0x53,0x32,0x35,0x36])||(_0x2e6e06=!0x1);}async function _0x3d23ae(_0x24d038,_0x8ad100,_0x2873f2){const _0x4b4c68=window[_0xe0d241([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe0d241([0x66,0x72,0x6f,0x6d])](_0x18666c(_0x2873f2),_0x14e969=>_0x14e969[_0xe0d241([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c1bef=new window[(_0xe0d241([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe0d241([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24d038+_0xe0d241([0x2e])+_0x8ad100),_0x52e0a1=window[_0xe0d241([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe0d241([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x52e0a1)return;const _0x4e6ccf=await _0x52e0a1[_0xe0d241([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe0d241([0x6a,0x77,0x6b]),_0x4cd4bc,{[_0xe0d241([0x6e,0x61,0x6d,0x65])]:_0xe0d241([0x45,0x43,0x44,0x53,0x41]),[_0xe0d241([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe0d241([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe0d241([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x52e0a1[_0xe0d241([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe0d241([0x6e,0x61,0x6d,0x65])]:_0xe0d241([0x45,0x43,0x44,0x53,0x41]),[_0xe0d241([0x68,0x61,0x73,0x68])]:{[_0xe0d241([0x6e,0x61,0x6d,0x65])]:_0xe0d241([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6ccf,_0x4b4c68,_0x1c1bef)||(_0x2e6e06=!0x1);}}());return _0x4e4f2f?(function(){const _0x461c45=_0x4c186d[_0xe0d241([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x461c45)return!0x1;if(_0x461c45[_0xe0d241([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0d241([0x2a])))return!0x0;if(_0x461c45[_0xe0d241([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0d241([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0x351db8=[_0xe0d241([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe0d241([0x74,0x72,0x69,0x61,0x6c])][_0xe0d241([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c186d[_0xe0d241([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x416c58/0x3e8:0x6a03bf00;return _0x4c186d[_0xe0d241([0x65,0x78,0x70])]<_0x351db8;}())?_0xe0d241([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x16855b=_0x4c186d[_0xe0d241([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16855b||0x0==_0x16855b[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46b3c0}=new URL(window[_0xe0d241([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16855b[_0xe0d241([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46b3c0))return!0x0;const _0x252717=_0x46b3c0[_0xe0d241([0x73,0x70,0x6c,0x69,0x74])](_0xe0d241([0x2e]));return _0x16855b[_0xe0d241([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f44f1=>_0x4f44f1[_0xe0d241([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0d241([0x2a])))[_0xe0d241([0x6d,0x61,0x70])](_0x4fc2d4=>_0x4fc2d4[_0xe0d241([0x73,0x70,0x6c,0x69,0x74])](_0xe0d241([0x2e])))[_0xe0d241([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bd670=>_0x4bd670[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x252717[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe0d241([0x6d,0x61,0x70])](_0x55c09c=>Array(_0x252717[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55c09c[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe0d241([0x66,0x69,0x6c,0x6c])](_0x55c09c[0x0]===_0xe0d241([0x2a])?_0xe0d241([0x2a]):'')[_0xe0d241([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55c09c))[_0xe0d241([0x73,0x6f,0x6d,0x65])](_0x8612a5=>_0x252717[_0xe0d241([0x65,0x76,0x65,0x72,0x79])]((_0x59a810,_0x24afb2)=>_0x8612a5[_0x24afb2]===_0x59a810||_0x8612a5[_0x24afb2]===_0xe0d241([0x2a])));}())?(_0x4c186d[_0xe0d241([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe0d241([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a6f91=function(_0x17d35d){const _0x77e4fb=new window[(_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0da3=>setTimeout(_0x5f0da3,0x93ecc)),_0x184874=_0x558365[_0xe0d241([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fde26=>{let _0x5a3af6=0x0;_0x1a76d1[_0xe0d241([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0d241([0x6f,0x6e])](_0xe0d241([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xee84fc,_0x53be5e)=>{_0x53be5e[0x0][_0xe0d241([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a3af6++,0x5e8==_0x5a3af6&&(_0x3fde26(),_0xee84fc[_0xe0d241([0x6f,0x66,0x66])]());});})),_0x1e5428=[_0x77e4fb,_0x184874];return window[_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe0d241([0x72,0x61,0x63,0x65])](_0x1e5428)[_0xe0d241([0x74,0x68,0x65,0x6e])](()=>_0x17d35d);}(_0xe0d241([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x3a6f91&&_0x32df24)return new window[(_0xe0d241([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35f67c,_0x1b4e7e)=>{_0x3a6f91[_0xe0d241([0x74,0x68,0x65,0x6e])](_0x35f67c,_0x1b4e7e),_0x32df24[_0xe0d241([0x74,0x68,0x65,0x6e])](_0xfad8ca=>{_0xfad8ca!=_0xe0d241([0x56,0x61,0x6c,0x69,0x64])&&_0x35f67c(_0xfad8ca);},_0x1b4e7e);});return _0x3a6f91||_0x32df24||_0xe0d241([0x56,0x61,0x6c,0x69,0x64]);}())):_0xe0d241([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe0d241([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe0d241([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe0d241([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x597d04(_0x51d2d9){return _0x51d2d9[_0xe0d241([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe0d241([0x65,0x79]))?JSON[_0xe0d241([0x70,0x61,0x72,0x73,0x65])](_0x18666c(_0x51d2d9)):null;}function _0x18666c(_0x4b2b09){return window[_0xe0d241([0x61,0x74,0x6f,0x62])](_0x4b2b09[_0xe0d241([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe0d241([0x2b]))[_0xe0d241([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe0d241([0x2f])));}function _0x1cb913(_0x49e503){let _0x211818=0x1505;function _0x535c3e(_0x55d21c){for(let _0x1f8366=0x0;_0x1f8366<_0x55d21c[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f8366++){const _0x2c0a73=_0x55d21c[_0xe0d241([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f8366);_0x211818=(_0x211818<<0x5)+_0x211818+_0x2c0a73,_0x211818&=_0x211818;}}return function _0x34f652(_0x40e6b7){Array[_0xe0d241([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40e6b7)?_0x40e6b7[_0xe0d241([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34f652):_0x40e6b7&&typeof _0x40e6b7==_0xe0d241([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe0d241([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40e6b7)[_0xe0d241([0x73,0x6f,0x72,0x74])]()[_0xe0d241([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd57b5a,_0x26ee09])=>{_0x535c3e(_0xd57b5a),_0x34f652(_0x26ee09);}):_0x535c3e(window[_0xe0d241([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40e6b7));}(_0x49e503),_0x211818>>>0x0;}function _0x4f21d7(_0x43a4e1){return _0x43a4e1[_0xe0d241([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe0d241([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe0d241([0x30]));}function _0x4d0079(_0x1d435c){return _0x1d435c[_0xe0d241([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe0d241([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe0d241([0x6a,0x6f,0x69,0x6e])]('');}function _0x407233(){}function _0xe0d241(_0x20ec01){return _0x20ec01['map'](_0x3ea16b=>String['fromCharCode'](_0x3ea16b))['join']('');}!function(_0x376b4b){const _0xafdee2=(function(){const _0x3a9a5c=window[_0xe0d241([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe0d241([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe0d241([0x6e,0x6f,0x77])]())[_0xe0d241([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe0d241([0x2e]),'');let _0x1fcc4e=_0xe0d241([0x68]);for(let _0x3edc6c=0x0;_0x3edc6c<_0x3a9a5c[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3edc6c+=0x2){let _0x456703=window[_0xe0d241([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a9a5c[_0xe0d241([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3edc6c,_0x3edc6c+0x2));_0x456703>=_0x22ade1[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x456703-=_0x22ade1[_0xe0d241([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fcc4e+=_0x22ade1[_0x456703];}return _0x1fcc4e;}());_0x1a76d1[_0xafdee2]=_0xe0d241([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x376b4b,_0x376b4b!=_0xe0d241([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x558365,_0x1a76d1[_0xe0d241([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0d241([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x407233,_0x1a76d1[_0xe0d241([0x6d,0x6f,0x64,0x65,0x6c])][_0xe0d241([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x407233,_0x1a76d1[_0xe0d241([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe0d241([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x15493d);}var $s=Object['defineProperty'],Ol=Object['getOwnPropertyDescriptor'],Ds=(_0x4b0068,_0x6df3c7)=>{for(var t in _0x6df3c7)$s(_0x4b0068,t,{'get':_0x6df3c7[t],'enumerable':!0x0});},p=(_0x5c1038,_0x5ecae5,t,_0x561ee6)=>{for(var _0x1ccfec,_0x4869aa=_0x561ee6>0x1?void 0x0:_0x561ee6?Ol(_0x5ecae5,t):_0x5ecae5,_0x22b613=_0x5c1038['length']-0x1;_0x22b613>=0x0;_0x22b613--)(_0x1ccfec=_0x5c1038[_0x22b613])&&(_0x4869aa=(_0x561ee6?_0x1ccfec(_0x5ecae5,t,_0x4869aa):_0x1ccfec(_0x4869aa))||_0x4869aa);return _0x561ee6&&_0x4869aa&&$s(_0x5ecae5,t,_0x4869aa),_0x4869aa;},At=[],Xt=0x0,_i=0x4,Fs=_0x7c5944=>{let _0x181b2f=[],t={'get':()=>(t['lc']||t['listen'](()=>{})(),t['value']),'lc':0x0,'listen':_0x1ad70c=>(t['lc']=_0x181b2f['push'](_0x1ad70c),()=>{for(let _0x44cabb=Xt+_i;_0x44cabb<At['length'];)At[_0x44cabb]===_0x1ad70c?At['splice'](_0x44cabb,_i):_0x44cabb+=_i;let _0x55d71a=_0x181b2f['indexOf'](_0x1ad70c);~_0x55d71a&&(_0x181b2f['splice'](_0x55d71a,0x1),--t['lc']||t['off']());}),'notify'(_0x58b3ef,_0x4692bd){let _0x2f906b=!At['length'];for(let _0x56cdc3 of _0x181b2f)At['push'](_0x56cdc3,t['value'],_0x58b3ef,_0x4692bd);if(_0x2f906b){for(Xt=0x0;Xt<At['length'];Xt+=_i)At[Xt](At[Xt+0x1],At[Xt+0x2],At[Xt+0x3]);At['length']=0x0;}},'off'(){},'set'(_0x51e4ed){let _0x447031=t['value'];_0x447031!==_0x51e4ed&&(t['value']=_0x51e4ed,t['notify'](_0x447031));},'subscribe'(_0x3852ea){let _0x2b904c=t['listen'](_0x3852ea);return _0x3852ea(t['value']),_0x2b904c;},'value':_0x7c5944};return t;};function zi(_0x5d52db,_0x468685,t){let _0x4075ac=new Set(_0x468685)['add'](void 0x0);return _0x5d52db['listen']((_0x3c685,_0x337d8b,_0x73716f)=>{_0x4075ac['has'](_0x73716f)&&t(_0x3c685,_0x337d8b,_0x73716f);});}function po(_0x4b6793,_0x27a4b4,t){let _0x14dbe8=zi(_0x4b6793,_0x27a4b4,t);return t(_0x4b6793['value']),_0x14dbe8;}var ho=(_0x1ea0db={})=>{let _0x106fa7=Fs(_0x1ea0db);return _0x106fa7['setKey']=function(t,_0xaf21c3){let _0x2b1960=_0x106fa7['value'];typeof _0xaf21c3>'u'&&t in _0x106fa7['value']?(_0x106fa7['value']={..._0x106fa7['value']},delete _0x106fa7['value'][t],_0x106fa7['notify'](_0x2b1960,t)):_0x106fa7['value'][t]!==_0xaf21c3&&(_0x106fa7['value']={..._0x106fa7['value'],[t]:_0xaf21c3},_0x106fa7['notify'](_0x2b1960,t));},_0x106fa7;},H=class e{static{this['qt']=new Map();}constructor(_0x1017c9,t){this['J']=_0x1017c9,this['ae']=t;}get['id'](){return this['J'];}['pub'](_0xf89109,t){_0xf89109 in this['ae']['get']()||console['warn']('PubSub#pub:\x20Key\x20\x22'+String(_0xf89109)+'\x22\x20not\x20found'),this['ae']['setKey'](_0xf89109,t);}['sub'](_0x41654a,t,_0x44096a=!0x0){return(_0x44096a?po:zi)(this['ae'],[_0x41654a],_0x1c2e7e=>{t(_0x1c2e7e[_0x41654a]);});}['read'](_0xe18c9d){return _0xe18c9d in this['ae']['get']()||console['warn']('PubSub#read:\x20Key\x20\x22'+String(_0xe18c9d)+'\x22\x20not\x20found'),this['ae']['get']()[_0xe18c9d];}['add'](_0x1da5ea,t,_0x35d729=!0x1){(!(_0x1da5ea in this['ae']['get']())||_0x35d729)&&this['ae']['setKey'](_0x1da5ea,t);}['has'](_0x3ac85c){return _0x3ac85c in this['ae']['get']();}get['store'](){return this['ae']['get']();}static['registerCtx'](_0x4fcbc8,t){if(e['qt']['has'](t))throw new Error('PubSub:\x20Context\x20with\x20id\x20\x22'+t+'\x22\x20already\x20exists');let _0x3a6e8c=ho(_0x4fcbc8);return e['qt']['set'](t,_0x3a6e8c),new e(t,_0x3a6e8c);}static['deleteCtx'](_0x3d59c0){e['qt']['delete'](_0x3d59c0);}static['getCtx'](_0x1229db){let t=e['qt']['get'](_0x1229db);return t?new e(_0x1229db,t):null;}static['hasCtx'](_0x5a7757){return e['qt']['has'](_0x5a7757);}},Bi=globalThis,Ki=Bi['ShadowRoot']&&(void 0x0===Bi['ShadyCSS']||Bi['ShadyCSS']['nativeShadow'])&&'adoptedStyleSheets'in Document['prototype']&&'replace'in CSSStyleSheet['prototype'],Ns=Symbol(),Vs=new WeakMap(),Hi=class{constructor(_0x337b59,t,_0x1e314f){if(this['Cc']=!0x0,_0x1e314f!==Ns)throw Error('CSSResult\x20is\x20not\x20constructable.\x20Use\x20`unsafeCSS`\x20or\x20`css`\x20instead.');this['cssText']=_0x337b59,this['t']=t;}get['styleSheet'](){let _0x5f39f9=this['o'],t=this['t'];if(Ki&&void 0x0===_0x5f39f9){let _0x3c4640=void 0x0!==t&&0x1===t['length'];_0x3c4640&&(_0x5f39f9=Vs['get'](t)),void 0x0===_0x5f39f9&&((this['o']=_0x5f39f9=new CSSStyleSheet())['replaceSync'](this['cssText']),_0x3c4640&&Vs['set'](t,_0x5f39f9));}return _0x5f39f9;}['toString'](){return this['cssText'];}},_s=_0x544c57=>new Hi('string'==typeof _0x544c57?_0x544c57:_0x544c57+'',void 0x0,Ns),zs=(_0x3838a5,_0x32712b)=>{if(Ki)_0x3838a5['adoptedStyleSheets']=_0x32712b['map'](t=>t instanceof CSSStyleSheet?t:t['styleSheet']);else for(let t of _0x32712b){let _0x19c7c0=document['createElement']('style'),_0x417bca=Bi['litNonce'];void 0x0!==_0x417bca&&_0x19c7c0['setAttribute']('nonce',_0x417bca),_0x19c7c0['textContent']=t['cssText'],_0x3838a5['appendChild'](_0x19c7c0);}},fo=Ki?_0x4b2a50=>_0x4b2a50:_0x188e4c=>_0x188e4c instanceof CSSStyleSheet?(_0xa2e164=>{let t='';for(let _0x22e01d of _0xa2e164['cssRules'])t+=_0x22e01d['cssText'];return _s(t);})(_0x188e4c):_0x188e4c,{is:Ll,defineProperty:Ul,getOwnPropertyDescriptor:Rl,getOwnPropertyNames:$l,getOwnPropertySymbols:Dl,getPrototypeOf:Fl}=Object,ji=globalThis,Bs=ji['trustedTypes'],Vl=Bs?Bs['emptyScript']:'',Nl=ji['reactiveElementPolyfillSupport'],oi=(_0x232a56,_0x562e5c)=>_0x232a56,si={'toAttribute'(_0xcf078d,_0x2edd4b){switch(_0x2edd4b){case Boolean:_0xcf078d=_0xcf078d?Vl:null;break;case Object:case Array:_0xcf078d=null==_0xcf078d?_0xcf078d:JSON['stringify'](_0xcf078d);}return _0xcf078d;},'fromAttribute'(_0x4ecc5e,_0x165a26){let t=_0x4ecc5e;switch(_0x165a26){case Boolean:t=null!==_0x4ecc5e;break;case Number:t=null===_0x4ecc5e?null:Number(_0x4ecc5e);break;case Object:case Array:try{t=JSON['parse'](_0x4ecc5e);}catch{t=null;}}return t;}},Gi=(_0x2622e3,_0x12f80a)=>!Ll(_0x2622e3,_0x12f80a),Hs={'attribute':!0x0,'type':String,'converter':si,'reflect':!0x1,'useDefault':!0x1,'hasChanged':Gi};Symbol['metadata']??=Symbol('metadata'),ji['litPropertyMetadata']??=new WeakMap();var zt=class extends HTMLElement{static['addInitializer'](_0x168379){this['Br'](),(this['l']??=[])['push'](_0x168379);}static get['observedAttributes'](){return this['finalize'](),this['Li']&&[...this['Li']['keys']()];}static['createProperty'](_0xea9914,t=Hs){if(t['state']&&(t['attribute']=!0x1),this['Br'](),this['prototype']['hasOwnProperty'](_0xea9914)&&((t=Object['create'](t))['wrapped']=!0x0),this['elementProperties']['set'](_0xea9914,t),!t['noAccessor']){let _0x3274da=Symbol(),_0x3c137d=this['getPropertyDescriptor'](_0xea9914,_0x3274da,t);void 0x0!==_0x3c137d&&Ul(this['prototype'],_0xea9914,_0x3c137d);}}static['getPropertyDescriptor'](_0x45c61a,t,_0x181cbb){let {get:_0x5deb4d,set:_0xab5209}=Rl(this['prototype'],_0x45c61a)??{'get'(){return this[t];},'set'(_0x32cca8){this[t]=_0x32cca8;}};return{'get':_0x5deb4d,'set'(_0x413d69){let _0x1067e0=_0x5deb4d?.['call'](this);_0xab5209?.['call'](this,_0x413d69),this['requestUpdate'](_0x45c61a,_0x1067e0,_0x181cbb);},'configurable':!0x0,'enumerable':!0x0};}static['getPropertyOptions'](_0x215565){return this['elementProperties']['get'](_0x215565)??Hs;}static['Br'](){if(this['hasOwnProperty'](oi('elementProperties')))return;let _0x169771=Fl(this);_0x169771['finalize'](),void 0x0!==_0x169771['l']&&(this['l']=[..._0x169771['l']]),this['elementProperties']=new Map(_0x169771['elementProperties']);}static['finalize'](){if(this['hasOwnProperty'](oi('finalized')))return;if(this['finalized']=!0x0,this['Br'](),this['hasOwnProperty'](oi('properties'))){let t=this['properties'],_0x51f907=[...$l(t),...Dl(t)];for(let _0x62e135 of _0x51f907)this['createProperty'](_0x62e135,t[_0x62e135]);}let _0x4f99b6=this[Symbol['metadata']];if(null!==_0x4f99b6){let t=litPropertyMetadata['get'](_0x4f99b6);if(void 0x0!==t){for(let [_0x574ae3,_0x35e8f3]of t)this['elementProperties']['set'](_0x574ae3,_0x35e8f3);}}this['Li']=new Map();for(let [t,_0x24d0e4]of this['elementProperties']){let _0x482e19=this['zr'](t,_0x24d0e4);void 0x0!==_0x482e19&&this['Li']['set'](_0x482e19,t);}this['elementStyles']=this['finalizeStyles'](this['styles']);}static['finalizeStyles'](_0x3adb1d){let t=[];if(Array['isArray'](_0x3adb1d)){let _0x47af92=new Set(_0x3adb1d['flat'](0x1/0x0)['reverse']());for(let _0x5b3257 of _0x47af92)t['unshift'](fo(_0x5b3257));}else void 0x0!==_0x3adb1d&&t['push'](fo(_0x3adb1d));return t;}static['zr'](_0x312555,t){let _0x315eef=t['attribute'];return!0x1===_0x315eef?void 0x0:'string'==typeof _0x315eef?_0x315eef:'string'==typeof _0x312555?_0x312555['toLowerCase']():void 0x0;}constructor(){super(),this['Ri']=void 0x0,this['isUpdatePending']=!0x1,this['hasUpdated']=!0x1,this['vt']=null,this['Sc']();}['Sc'](){this['Hr']=new Promise(_0x528ae5=>this['enableUpdating']=_0x528ae5),this['Fe']=new Map(),this['Ac'](),this['requestUpdate'](),this['constructor']['l']?.['forEach'](_0x1498b6=>_0x1498b6(this));}['addController'](_0x4b5390){(this['Wt']??=new Set())['add'](_0x4b5390),void 0x0!==this['renderRoot']&&this['isConnected']&&_0x4b5390['hostConnected']?.();}['removeController'](_0x51c5d5){this['Wt']?.['delete'](_0x51c5d5);}['Ac'](){let _0x4215ad=new Map(),t=this['constructor']['elementProperties'];for(let _0xd4bb25 of t['keys']())this['hasOwnProperty'](_0xd4bb25)&&(_0x4215ad['set'](_0xd4bb25,this[_0xd4bb25]),delete this[_0xd4bb25]);_0x4215ad['size']>0x0&&(this['Ri']=_0x4215ad);}['createRenderRoot'](){let _0x344a6c=this['shadowRoot']??this['attachShadow'](this['constructor']['shadowRootOptions']);return zs(_0x344a6c,this['constructor']['elementStyles']),_0x344a6c;}['connectedCallback'](){this['renderRoot']??=this['createRenderRoot'](),this['enableUpdating'](!0x0),this['Wt']?.['forEach'](_0x526654=>_0x526654['hostConnected']?.());}['enableUpdating'](_0xa88eb5){}['disconnectedCallback'](){this['Wt']?.['forEach'](_0x421627=>_0x421627['hostDisconnected']?.());}['attributeChangedCallback'](_0x5a3904,t,_0x3581d3){this['Kr'](_0x5a3904,_0x3581d3);}['kc'](_0x380e4a,t){let _0x24d187=this['constructor']['elementProperties']['get'](_0x380e4a),_0x24e54a=this['constructor']['zr'](_0x380e4a,_0x24d187);if(void 0x0!==_0x24e54a&&!0x0===_0x24d187['reflect']){let _0x342724=(void 0x0!==_0x24d187['converter']?.['toAttribute']?_0x24d187['converter']:si)['toAttribute'](t,_0x24d187['type']);this['vt']=_0x380e4a,null==_0x342724?this['removeAttribute'](_0x24e54a):this['setAttribute'](_0x24e54a,_0x342724),this['vt']=null;}}['Kr'](_0x146f8c,t){let _0x2c0cae=this['constructor'],_0x54e784=_0x2c0cae['Li']['get'](_0x146f8c);if(void 0x0!==_0x54e784&&this['vt']!==_0x54e784){let _0x18946e=_0x2c0cae['getPropertyOptions'](_0x54e784),_0x491463='function'==typeof _0x18946e['converter']?{'fromAttribute':_0x18946e['converter']}:void 0x0!==_0x18946e['converter']?.['fromAttribute']?_0x18946e['converter']:si;this['vt']=_0x54e784;let _0x2cc26e=_0x491463['fromAttribute'](t,_0x18946e['type']);this[_0x54e784]=_0x2cc26e??this['jr']?.['get'](_0x54e784)??_0x2cc26e,this['vt']=null;}}['requestUpdate'](_0x2090f3,t,_0xde6da4,_0x2d2c1c=!0x1,_0x5d5cb7){if(void 0x0!==_0x2090f3){let _0x2a16d3=this['constructor'];if(!0x1===_0x2d2c1c&&(_0x5d5cb7=this[_0x2090f3]),_0xde6da4??=_0x2a16d3['getPropertyOptions'](_0x2090f3),!((_0xde6da4['hasChanged']??Gi)(_0x5d5cb7,t)||_0xde6da4['useDefault']&&_0xde6da4['reflect']&&_0x5d5cb7===this['jr']?.['get'](_0x2090f3)&&!this['hasAttribute'](_0x2a16d3['zr'](_0x2090f3,_0xde6da4))))return;this['C'](_0x2090f3,t,_0xde6da4);}!0x1===this['isUpdatePending']&&(this['Hr']=this['Mc']());}['C'](_0x411e78,t,{useDefault:_0x130fdf,reflect:_0x4864b4,wrapped:_0x363a1f},_0x1ec687){_0x130fdf&&!(this['jr']??=new Map())['has'](_0x411e78)&&(this['jr']['set'](_0x411e78,_0x1ec687??t??this[_0x411e78]),!0x0!==_0x363a1f||void 0x0!==_0x1ec687)||(this['Fe']['has'](_0x411e78)||(this['hasUpdated']||_0x130fdf||(t=void 0x0),this['Fe']['set'](_0x411e78,t)),!0x0===_0x4864b4&&this['vt']!==_0x411e78&&(this['Gs']??=new Set())['add'](_0x411e78));}async['Mc'](){this['isUpdatePending']=!0x0;try{await this['Hr'];}catch(_0xb72c83){Promise['reject'](_0xb72c83);}let _0x325695=this['scheduleUpdate']();return null!=_0x325695&&await _0x325695,!this['isUpdatePending'];}['scheduleUpdate'](){return this['performUpdate']();}['performUpdate'](){if(!this['isUpdatePending'])return;if(!this['hasUpdated']){if(this['renderRoot']??=this['createRenderRoot'](),this['Ri']){for(let [_0x1cf9b4,_0x3db860]of this['Ri'])this[_0x1cf9b4]=_0x3db860;this['Ri']=void 0x0;}let _0x2c1f63=this['constructor']['elementProperties'];if(_0x2c1f63['size']>0x0)for(let [_0x1a2054,_0x3e78c3]of _0x2c1f63){let {wrapped:_0x5ca0d}=_0x3e78c3,_0x256cb2=this[_0x1a2054];!0x0!==_0x5ca0d||this['Fe']['has'](_0x1a2054)||void 0x0===_0x256cb2||this['C'](_0x1a2054,void 0x0,_0x3e78c3,_0x256cb2);}}let _0x4073b8=!0x1,t=this['Fe'];try{_0x4073b8=this['shouldUpdate'](t),_0x4073b8?(this['willUpdate'](t),this['Wt']?.['forEach'](_0x420d0c=>_0x420d0c['hostUpdate']?.()),this['update'](t)):this['Gr']();}catch(_0x5538ca){throw _0x4073b8=!0x1,this['Gr'](),_0x5538ca;}_0x4073b8&&this['Oc'](t);}['willUpdate'](_0x1f309a){}['Oc'](_0x236acf){this['Wt']?.['forEach'](t=>t['hostUpdated']?.()),this['hasUpdated']||(this['hasUpdated']=!0x0,this['firstUpdated'](_0x236acf)),this['updated'](_0x236acf);}['Gr'](){this['Fe']=new Map(),this['isUpdatePending']=!0x1;}get['updateComplete'](){return this['getUpdateComplete']();}['getUpdateComplete'](){return this['Hr'];}['shouldUpdate'](_0x5f41e3){return!0x0;}['update'](_0x3daac4){this['Gs']&&=this['Gs']['forEach'](t=>this['kc'](t,this[t])),this['Gr']();}['updated'](_0x3e0c67){}['firstUpdated'](_0x3cb7a9){}};zt['elementStyles']=[],zt['shadowRootOptions']={'mode':'open'},zt[oi('elementProperties')]=new Map(),zt[oi('finalized')]=new Map(),Nl?.({'ReactiveElement':zt}),(ji['reactiveElementVersions']??=[])['push']('2.1.2');var go=globalThis,Ks=_0x139352=>_0x139352,qi=go['trustedTypes'],js=qi?qi['createPolicy']('lit-html',{'createHTML':_0x5dbac4=>_0x5dbac4}):void 0x0,vo='$lit$',Bt='lit$'+Math['random']()['toFixed'](0x9)['slice'](0x2)+'$',yo='?'+Bt,_l='<'+yo+'>',fe=document,ai=()=>fe['createComment'](''),li=_0x3636b2=>null===_0x3636b2||'object'!=typeof _0x3636b2&&'function'!=typeof _0x3636b2,bo=Array['isArray'],Xs=_0x47afcd=>bo(_0x47afcd)||'function'==typeof _0x47afcd?.[Symbol['iterator']],mo='[\x20\x0c\x0d]',ni=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gs=/-->/g,qs=/>/g,pe=RegExp('>|'+mo+'(?:([^\x5cs\x22\x27>=/]+)('+mo+'*='+mo+'*(?:[^\x20\x0c\x0d\x22\x27`<>=]|(\x22|\x27)|))|$)','g'),Ws=/'/g,Zs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,wo=_0x25bb2d=>(_0x422e69,...t)=>({'Ne':_0x25bb2d,'strings':_0x422e69,'values':t}),v=wo(0x1),it=Symbol['for']('lit-noChange'),U=Symbol['for']('lit-nothing'),Ys=new WeakMap(),he=fe['createTreeWalker'](fe,0x81);function Js(_0x190f82,_0x8f9eae){if(!bo(_0x190f82)||!_0x190f82['hasOwnProperty']('raw'))throw Error('invalid\x20template\x20strings\x20array');return void 0x0!==js?js['createHTML'](_0x8f9eae):_0x8f9eae;}var tn=(_0x248663,_0x4780b2)=>{let _0x2895fb,t=_0x248663['length']-0x1,_0x472581=[],_0x4eb3d3=0x2===_0x4780b2?'<svg>':0x3===_0x4780b2?'<math>':'',_0x46916f=ni;for(let _0x305e35=0x0;_0x305e35<t;_0x305e35++){let _0x912b0,_0x4b041a,_0x2887eb=_0x248663[_0x305e35],_0x4fcbf4=-0x1,_0x298bfe=0x0;for(;_0x298bfe<_0x2887eb['length']&&(_0x46916f['lastIndex']=_0x298bfe,_0x4b041a=_0x46916f['exec'](_0x2887eb),null!==_0x4b041a);)_0x298bfe=_0x46916f['lastIndex'],_0x46916f===ni?'!--'===_0x4b041a[0x1]?_0x46916f=Gs:void 0x0!==_0x4b041a[0x1]?_0x46916f=qs:void 0x0!==_0x4b041a[0x2]?(Qs['test'](_0x4b041a[0x2])&&(_0x2895fb=RegExp('</'+_0x4b041a[0x2],'g')),_0x46916f=pe):void 0x0!==_0x4b041a[0x3]&&(_0x46916f=pe):_0x46916f===pe?'>'===_0x4b041a[0x0]?(_0x46916f=_0x2895fb??ni,_0x4fcbf4=-0x1):void 0x0===_0x4b041a[0x1]?_0x4fcbf4=-0x2:(_0x4fcbf4=_0x46916f['lastIndex']-_0x4b041a[0x2]['length'],_0x912b0=_0x4b041a[0x1],_0x46916f=void 0x0===_0x4b041a[0x3]?pe:'\x22'===_0x4b041a[0x3]?Zs:Ws):_0x46916f===Zs||_0x46916f===Ws?_0x46916f=pe:_0x46916f===Gs||_0x46916f===qs?_0x46916f=ni:(_0x46916f=pe,_0x2895fb=void 0x0);let _0xf9e719=_0x46916f===pe&&_0x248663[_0x305e35+0x1]['startsWith']('/>')?'\x20':'';_0x4eb3d3+=_0x46916f===ni?_0x2887eb+_l:_0x4fcbf4>=0x0?(_0x472581['push'](_0x912b0),_0x2887eb['slice'](0x0,_0x4fcbf4)+vo+_0x2887eb['slice'](_0x4fcbf4)+Bt+_0xf9e719):_0x2887eb+Bt+(-0x2===_0x4fcbf4?_0x305e35:_0xf9e719);}return[Js(_0x248663,_0x4eb3d3+(_0x248663[t]||'<?>')+(0x2===_0x4780b2?'</svg>':0x3===_0x4780b2?'</math>':'')),_0x472581];},ci=class e{constructor({strings:_0x5ca3f6,Ne:t},_0xb11888){let _0x483781;this['parts']=[];let _0x4c0c71=0x0,_0x24a2b8=0x0,_0x5ab8ba=_0x5ca3f6['length']-0x1,_0x4efcbf=this['parts'],[_0x22ff26,_0x21ed19]=tn(_0x5ca3f6,t);if(this['el']=e['createElement'](_0x22ff26,_0xb11888),he['currentNode']=this['el']['content'],0x2===t||0x3===t){let _0x49f2a8=this['el']['content']['firstChild'];_0x49f2a8['replaceWith'](..._0x49f2a8['childNodes']);}for(;null!==(_0x483781=he['nextNode']())&&_0x4efcbf['length']<_0x5ab8ba;){if(0x1===_0x483781['nodeType']){if(_0x483781['hasAttributes']()){for(let _0x24c536 of _0x483781['getAttributeNames']())if(_0x24c536['endsWith'](vo)){let _0x1e331b=_0x21ed19[_0x24a2b8++],_0x158f03=_0x483781['getAttribute'](_0x24c536)['split'](Bt),_0x35e0d7=/([.?@])?(.*)/['exec'](_0x1e331b);_0x4efcbf['push']({'type':0x1,'index':_0x4c0c71,'name':_0x35e0d7[0x2],'strings':_0x158f03,'ctor':'.'===_0x35e0d7[0x1]?Zi:'?'===_0x35e0d7[0x1]?Yi:'@'===_0x35e0d7[0x1]?Xi:ge}),_0x483781['removeAttribute'](_0x24c536);}else _0x24c536['startsWith'](Bt)&&(_0x4efcbf['push']({'type':0x6,'index':_0x4c0c71}),_0x483781['removeAttribute'](_0x24c536));}if(Qs['test'](_0x483781['tagName'])){let _0x1b8afc=_0x483781['textContent']['split'](Bt),_0x1d5130=_0x1b8afc['length']-0x1;if(_0x1d5130>0x0){_0x483781['textContent']=qi?qi['emptyScript']:'';for(let _0x2a436f=0x0;_0x2a436f<_0x1d5130;_0x2a436f++)_0x483781['append'](_0x1b8afc[_0x2a436f],ai()),he['nextNode'](),_0x4efcbf['push']({'type':0x2,'index':++_0x4c0c71});_0x483781['append'](_0x1b8afc[_0x1d5130],ai());}}}else{if(0x8===_0x483781['nodeType']){if(_0x483781['data']===yo)_0x4efcbf['push']({'type':0x2,'index':_0x4c0c71});else{let _0x42b81c=-0x1;for(;-0x1!==(_0x42b81c=_0x483781['data']['indexOf'](Bt,_0x42b81c+0x1));)_0x4efcbf['push']({'type':0x7,'index':_0x4c0c71}),_0x42b81c+=Bt['length']-0x1;}}}_0x4c0c71++;}}static['createElement'](_0x3f8450,t){let _0x591875=fe['createElement']('template');return _0x591875['innerHTML']=_0x3f8450,_0x591875;}};function me(_0x1a8da6,_0x580d83,t=_0x1a8da6,_0x589603){if(_0x580d83===it)return _0x580d83;let _0x194b9f=void 0x0!==_0x589603?t['Ic']?.[_0x589603]:t['Pc'],_0x4768ef=li(_0x580d83)?void 0x0:_0x580d83['qr'];return _0x194b9f?.['constructor']!==_0x4768ef&&(_0x194b9f?.['qs']?.(!0x1),void 0x0===_0x4768ef?_0x194b9f=void 0x0:(_0x194b9f=new _0x4768ef(_0x1a8da6),_0x194b9f['Wr'](_0x1a8da6,t,_0x589603)),void 0x0!==_0x589603?(t['Ic']??=[])[_0x589603]=_0x194b9f:t['Pc']=_0x194b9f),void 0x0!==_0x194b9f&&(_0x580d83=me(_0x1a8da6,_0x194b9f['Lc'](_0x1a8da6,_0x580d83['values']),_0x194b9f,_0x589603)),_0x580d83;}var Wi=class{constructor(_0x3be2b4,t){this['Ws']=[],this['le']=void 0x0,this['Zs']=_0x3be2b4,this['f']=t;}get['parentNode'](){return this['f']['parentNode'];}get['W'](){return this['f']['W'];}['u'](_0x506314){let {el:{content:t},parts:_0x544058}=this['Zs'],_0x246a0e=(_0x506314?.['creationScope']??fe)['importNode'](t,!0x0);he['currentNode']=_0x246a0e;let _0x4b5220=he['nextNode'](),_0xea2c45=0x0,_0x60b3f7=0x0,_0x17c3c4=_0x544058[0x0];for(;void 0x0!==_0x17c3c4;){if(_0xea2c45===_0x17c3c4['index']){let _0x3aa2a1;0x2===_0x17c3c4['type']?_0x3aa2a1=new ke(_0x4b5220,_0x4b5220['nextSibling'],this,_0x506314):0x1===_0x17c3c4['type']?_0x3aa2a1=new _0x17c3c4['ctor'](_0x4b5220,_0x17c3c4['name'],_0x17c3c4['strings'],this,_0x506314):0x6===_0x17c3c4['type']&&(_0x3aa2a1=new Qi(_0x4b5220,this,_0x506314)),this['Ws']['push'](_0x3aa2a1),_0x17c3c4=_0x544058[++_0x60b3f7];}_0xea2c45!==_0x17c3c4?.['index']&&(_0x4b5220=he['nextNode'](),_0xea2c45++);}return he['currentNode']=fe,_0x246a0e;}['p'](_0x55dfe3){let t=0x0;for(let _0x44cbf1 of this['Ws'])void 0x0!==_0x44cbf1&&(void 0x0!==_0x44cbf1['strings']?(_0x44cbf1['ce'](_0x55dfe3,_0x44cbf1,t),t+=_0x44cbf1['strings']['length']-0x2):_0x44cbf1['ce'](_0x55dfe3[t])),t++;}},ke=class e{get['W'](){return this['f']?.['W']??this['Ys'];}constructor(_0x30e0d5,t,_0x5d914d,_0x106816){this['type']=0x2,this['r']=U,this['le']=void 0x0,this['ve']=_0x30e0d5,this['yt']=t,this['f']=_0x5d914d,this['options']=_0x106816,this['Ys']=_0x106816?.['isConnected']??!0x0;}get['parentNode'](){let _0x336f06=this['ve']['parentNode'],t=this['f'];return void 0x0!==t&&0xb===_0x336f06?.['nodeType']&&(_0x336f06=t['parentNode']),_0x336f06;}get['startNode'](){return this['ve'];}get['endNode'](){return this['yt'];}['ce'](_0x33923c,t=this){_0x33923c=me(this,_0x33923c,t),li(_0x33923c)?_0x33923c===U||null==_0x33923c||''===_0x33923c?(this['r']!==U&&this['bt'](),this['r']=U):_0x33923c!==this['r']&&_0x33923c!==it&&this['Xs'](_0x33923c):void 0x0!==_0x33923c['Ne']?this['$'](_0x33923c):void 0x0!==_0x33923c['nodeType']?this['T'](_0x33923c):Xs(_0x33923c)?this['k'](_0x33923c):this['Xs'](_0x33923c);}['O'](_0x4d959e){return this['ve']['parentNode']['insertBefore'](_0x4d959e,this['yt']);}['T'](_0x227252){this['r']!==_0x227252&&(this['bt'](),this['r']=this['O'](_0x227252));}['Xs'](_0x49d2ac){this['r']!==U&&li(this['r'])?this['ve']['nextSibling']['data']=_0x49d2ac:this['T'](fe['createTextNode'](_0x49d2ac)),this['r']=_0x49d2ac;}['$'](_0x326789){let {values:t,Ne:_0x20476d}=_0x326789,_0x73c2b9='number'==typeof _0x20476d?this['Rc'](_0x326789):(void 0x0===_0x20476d['el']&&(_0x20476d['el']=ci['createElement'](Js(_0x20476d['h'],_0x20476d['h'][0x0]),this['options'])),_0x20476d);if(this['r']?.['Zs']===_0x73c2b9)this['r']['p'](t);else{let _0xdaae44=new Wi(_0x73c2b9,this),_0x1b7c11=_0xdaae44['u'](this['options']);_0xdaae44['p'](t),this['T'](_0x1b7c11),this['r']=_0xdaae44;}}['Rc'](_0x2b10ef){let t=Ys['get'](_0x2b10ef['strings']);return void 0x0===t&&Ys['set'](_0x2b10ef['strings'],t=new ci(_0x2b10ef)),t;}['k'](_0x5862f7){bo(this['r'])||(this['r']=[],this['bt']());let _0xc3406f,t=this['r'],_0x323cef=0x0;for(let _0x3fe27f of _0x5862f7)_0x323cef===t['length']?t['push'](_0xc3406f=new e(this['O'](ai()),this['O'](ai()),this,this['options'])):_0xc3406f=t[_0x323cef],_0xc3406f['ce'](_0x3fe27f),_0x323cef++;_0x323cef<t['length']&&(this['bt'](_0xc3406f&&_0xc3406f['yt']['nextSibling'],_0x323cef),t['length']=_0x323cef);}['bt'](_0x5550af=this['ve']['nextSibling'],t){for(this['Ui']?.(!0x1,!0x0,t);_0x5550af!==this['yt'];){let _0x44d979=Ks(_0x5550af)['nextSibling'];Ks(_0x5550af)['remove'](),_0x5550af=_0x44d979;}}['setConnected'](_0x4ff3f7){void 0x0===this['f']&&(this['Ys']=_0x4ff3f7,this['Ui']?.(_0x4ff3f7));}},ge=class{get['tagName'](){return this['element']['tagName'];}get['W'](){return this['f']['W'];}constructor(_0x1aa91b,t,_0x19e457,_0x21ce3a,_0x53e82b){this['type']=0x1,this['r']=U,this['le']=void 0x0,this['element']=_0x1aa91b,this['name']=t,this['f']=_0x21ce3a,this['options']=_0x53e82b,_0x19e457['length']>0x2||''!==_0x19e457[0x0]||''!==_0x19e457[0x1]?(this['r']=Array(_0x19e457['length']-0x1)['fill'](new String()),this['strings']=_0x19e457):this['r']=U;}['ce'](_0x171a62,t=this,_0x3a5231,_0x13fab9){let _0x42ca77=this['strings'],_0x1e953c=!0x1;if(void 0x0===_0x42ca77)_0x171a62=me(this,_0x171a62,t,0x0),_0x1e953c=!li(_0x171a62)||_0x171a62!==this['r']&&_0x171a62!==it,_0x1e953c&&(this['r']=_0x171a62);else{let _0x43a197,_0x2b13f8,_0x4d0365=_0x171a62;for(_0x171a62=_0x42ca77[0x0],_0x43a197=0x0;_0x43a197<_0x42ca77['length']-0x1;_0x43a197++)_0x2b13f8=me(this,_0x4d0365[_0x3a5231+_0x43a197],t,_0x43a197),_0x2b13f8===it&&(_0x2b13f8=this['r'][_0x43a197]),_0x1e953c||=!li(_0x2b13f8)||_0x2b13f8!==this['r'][_0x43a197],_0x2b13f8===U?_0x171a62=U:_0x171a62!==U&&(_0x171a62+=(_0x2b13f8??'')+_0x42ca77[_0x43a197+0x1]),this['r'][_0x43a197]=_0x2b13f8;}_0x1e953c&&!_0x13fab9&&this['j'](_0x171a62);}['j'](_0x47512f){_0x47512f===U?this['element']['removeAttribute'](this['name']):this['element']['setAttribute'](this['name'],_0x47512f??'');}},Zi=class extends ge{constructor(){super(...arguments),this['type']=0x3;}['j'](_0x5b178a){this['element'][this['name']]=_0x5b178a===U?void 0x0:_0x5b178a;}},Yi=class extends ge{constructor(){super(...arguments),this['type']=0x4;}['j'](_0x531415){this['element']['toggleAttribute'](this['name'],!!_0x531415&&_0x531415!==U);}},Xi=class extends ge{constructor(_0x5f1d4d,t,_0x571945,_0x1a9c7f,_0xf2c3df){super(_0x5f1d4d,t,_0x571945,_0x1a9c7f,_0xf2c3df),this['type']=0x5;}['ce'](_0x4e1e74,t=this){if((_0x4e1e74=me(this,_0x4e1e74,t,0x0)??U)===it)return;let _0x5a4709=this['r'],_0x2313fb=_0x4e1e74===U&&_0x5a4709!==U||_0x4e1e74['capture']!==_0x5a4709['capture']||_0x4e1e74['once']!==_0x5a4709['once']||_0x4e1e74['passive']!==_0x5a4709['passive'],_0x38cbe6=_0x4e1e74!==U&&(_0x5a4709===U||_0x2313fb);_0x2313fb&&this['element']['removeEventListener'](this['name'],this,_0x5a4709),_0x38cbe6&&this['element']['addEventListener'](this['name'],this,_0x4e1e74),this['r']=_0x4e1e74;}['handleEvent'](_0x11bc07){'function'==typeof this['r']?this['r']['call'](this['options']?.['host']??this['element'],_0x11bc07):this['r']['handleEvent'](_0x11bc07);}},Qi=class{constructor(_0x3fae39,t,_0x4f2956){this['element']=_0x3fae39,this['type']=0x6,this['le']=void 0x0,this['f']=t,this['options']=_0x4f2956;}get['W'](){return this['f']['W'];}['ce'](_0x4f62ab){me(this,_0x4f62ab);}},en={'I':ke},zl=go['litHtmlPolyfillSupport'];zl?.(ci,ke),(go['litHtmlVersions']??=[])['push']('3.3.2');var rn=(_0xfac7ce,_0x198c0c,t)=>{let _0xe8d815=t?.['renderBefore']??_0x198c0c,_0x57c444=_0xe8d815['Uc'];if(void 0x0===_0x57c444){let _0x3f8564=t?.['renderBefore']??null;_0xe8d815['Uc']=_0x57c444=new ke(_0x198c0c['insertBefore'](ai(),_0x3f8564),_0x3f8564,void 0x0,t??{});}return _0x57c444['ce'](_0xfac7ce),_0x57c444;},To=globalThis,Tt=class extends zt{constructor(){super(...arguments),this['renderOptions']={'host':this},this['Zr']=void 0x0;}['createRenderRoot'](){let _0x2df7bb=super['createRenderRoot']();return this['renderOptions']['renderBefore']??=_0x2df7bb['firstChild'],_0x2df7bb;}['update'](_0xacc195){let t=this['render']();this['hasUpdated']||(this['renderOptions']['isConnected']=this['isConnected']),super['update'](_0xacc195),this['Zr']=rn(t,this['renderRoot'],this['renderOptions']);}['connectedCallback'](){super['connectedCallback'](),this['Zr']?.['setConnected'](!0x0);}['disconnectedCallback'](){super['disconnectedCallback'](),this['Zr']?.['setConnected'](!0x1);}['render'](){return it;}};Tt['jp']=!0x0,Tt['finalized']=!0x0,To['litElementHydrateSupport']?.({'LitElement':Tt});var Bl=To['litElementPolyfillSupport'];Bl?.({'LitElement':Tt}),(To['litElementVersions']??=[])['push']('4.2.2');var Hl=/\\([0-9a-fA-F]{1,6} ?)/g;function Kl(_0x1814a1){return!(_0x1814a1['length']<0x2)&&!('\x22'!==_0x1814a1[0x0]&&'\x27'!==_0x1814a1[0x0]||'\x22'!==_0x1814a1[_0x1814a1['length']-0x1]&&'\x27'!==_0x1814a1[_0x1814a1['length']-0x1]);}function jl(_0x431b0b){let _0x3f39ed=_0x431b0b;return('\x22'===_0x3f39ed[0x0]||'\x27'===_0x3f39ed[0x0])&&(_0x3f39ed=_0x3f39ed['slice'](0x1)),('\x22'===_0x3f39ed[_0x3f39ed['length']-0x1]||'\x27'===_0x3f39ed[_0x3f39ed['length']-0x1])&&(_0x3f39ed=_0x3f39ed['slice'](0x0,-0x1)),_0x3f39ed;}function Gl(_0x875f68){let _0x1f0626='',t='';for(let _0x17e091=0x0;_0x17e091<_0x875f68['length'];_0x17e091++){let _0xa0a893=_0x875f68[_0x17e091+0x1];'\x5c'===_0x875f68[_0x17e091]&&'\x22'===_0xa0a893?(_0x1f0626+='\x5c\x22',_0x17e091++):'\x22'===_0x875f68[_0x17e091]&&'\x5c'!==t?_0x1f0626+='\x5c\x22':_0x1f0626+=_0x875f68[_0x17e091],t=_0x875f68[_0x17e091]??'';}return _0x1f0626;}function on(_0x3c276a){let _0x929371=_0x3c276a;Kl(_0x3c276a)&&(_0x929371=jl(_0x929371),_0x929371=_0x929371['replace'](Hl,(t,_0x29cb80)=>String['fromCodePoint'](parseInt(_0x29cb80['trim'](),0x10))),_0x929371=_0x929371['replaceAll']('\x5c\x20','\x5cn'),_0x929371=Gl(_0x929371),_0x929371='\x22'+_0x929371+'\x22');try{return JSON['parse'](_0x929371);}catch{return;}}function Me(_0xb9c7ec){return class extends _0xb9c7ec{constructor(){super(...arguments),this['Qs']=null,this['Yr']=null;}['getCssData'](_0x5340ce,_0x510a80=!0x1){let _0x5ac209=this['Qs']??Object['create'](null);if(!Object['keys'](_0x5ac209)['includes'](_0x5340ce)||!_0x5ac209[_0x5340ce]){this['Yr']||(this['Yr']=window['getComputedStyle'](this));let _0x34a3c3=this['Yr']['getPropertyValue'](_0x5340ce)['trim']();try{_0x5ac209[_0x5340ce]=on(_0x34a3c3);}catch(_0x413b0d){_0x510a80||console['warn']('CSS\x20Data\x20error:\x20'+_0x5340ce,_0x413b0d),_0x5ac209[_0x5340ce]=null;}}return this['Qs']=_0x5ac209,_0x5ac209[_0x5340ce];}};}function Ji(_0x1363de){return class extends _0x1363de{constructor(){super(...arguments),this['willYield']=!0x0,this['Ve']={},this['_e']=null,this['$i']=!0x1;}['createRenderRoot'](){return this;}['connectedCallback'](){this['_e']||(this['_e']=Array['from'](this['childNodes'])),super['connectedCallback']();}['$c'](){if(this['$i'])return;this['$i']=!0x0,this['Ve']={};let _0x19b37f=Array['from'](this['childNodes']),_0x2f67e1=_0x19b37f['length']?_0x19b37f:this['_e']??[];for(let _0x23b33b of _0x2f67e1){let _0x15d52c=this['Js'](_0x23b33b),_0x3c7157=this['Ve'][_0x15d52c]??[];_0x23b33b instanceof Element&&(_0x23b33b['removeAttribute']('slot'),_0x23b33b['removeAttribute']('content-for')),_0x3c7157['push'](_0x23b33b),this['Ve'][_0x15d52c]=_0x3c7157;}this['_e']=null;}['Js'](_0x19e889){return _0x19e889 instanceof Comment&&_0x19e889['nextSibling']instanceof Element?this['Js'](_0x19e889['nextSibling']):'contentFor'in _0x19e889?_0x19e889['contentFor']||'':_0x19e889 instanceof Element&&_0x19e889['hasAttribute']('content-for')&&_0x19e889['getAttribute']('content-for')||'';}['Dc'](_0x44dbe5){return!_0x44dbe5['textContent']||!_0x44dbe5['textContent']['trim']();}['Fc'](_0xb37f61){let _0x12a745=this['Ve'][_0xb37f61];return!_0x12a745||_0x12a745['every'](_0x32e3=>_0x32e3 instanceof Comment||_0x32e3 instanceof Text&&this['Dc'](_0x32e3));}['update'](_0x4305f2){!this['hasUpdated']&&this['willYield']&&this['$c'](),super['update'](_0x4305f2);}['yield'](_0x5264dd,_0x42c075){if(''===_0x5264dd&&!this['Ve'][_0x5264dd]&&!this['$i']&&this['_e']?.['length']){let _0x4cb036=[];for(let _0x3f6743 of this['_e'])_0x3f6743 instanceof Element&&(_0x3f6743['removeAttribute']('slot'),_0x3f6743['removeAttribute']('content-for')),_0x4cb036['push'](_0x3f6743);this['Ve'][_0x5264dd]=_0x4cb036,this['$i']=!0x0,this['_e']=null;}let _0x1cd2cb=this['Ve'][_0x5264dd];return v` ${_0x1cd2cb} ${this['Fc'](_0x5264dd)?_0x42c075:void 0x0} `;}};}function Ie(_0x5c0368){return class extends _0x5c0368{static['reg'](_0x39f14a){let _0x6d98d0=this,_0x5f5387=window['customElements']['get'](_0x39f14a);_0x5f5387?_0x5f5387!==_0x6d98d0&&console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x39f14a+'\x22\x20already\x20registered.','You\x27re\x20trying\x20to\x20override\x20it\x20with\x20another\x20class\x20\x22'+this['name']+'\x22.','This\x20is\x20most\x20likely\x20a\x20mistake.','New\x20element\x20will\x20not\x20be\x20registered.']['join']('\x20')):window['customElements']['define'](_0x39f14a,_0x6d98d0);}};}var Qt=class extends Event{constructor(_0x193011,t,_0x181a2d,_0x53bddc){super('context-request',{'bubbles':!0x0,'composed':!0x0}),this['context']=_0x193011,this['contextTarget']=t,this['callback']=_0x181a2d,this['subscribe']=_0x53bddc??!0x1;}},Oe=class{constructor(_0x5d891d,t,_0x79770f,_0x59f1d3){if(this['subscribe']=!0x1,this['provided']=!0x1,this['value']=void 0x0,this['t']=(_0x1f9fe2,_0x522c3c)=>{this['unsubscribe']&&(this['unsubscribe']!==_0x522c3c&&(this['provided']=!0x1,this['unsubscribe']()),this['subscribe']||this['unsubscribe']()),this['value']=_0x1f9fe2,this['host']['requestUpdate'](),this['provided']&&!this['subscribe']||(this['provided']=!0x0,this['callback']&&this['callback'](_0x1f9fe2,_0x522c3c)),this['unsubscribe']=_0x522c3c;},this['host']=_0x5d891d,void 0x0!==t['context']){let _0x5e8090=t;this['context']=_0x5e8090['context'],this['callback']=_0x5e8090['callback'],this['subscribe']=_0x5e8090['subscribe']??!0x1;}else this['context']=t,this['callback']=_0x79770f,this['subscribe']=_0x59f1d3??!0x1;this['host']['addController'](this);}['hostConnected'](){this['dispatchRequest']();}['hostDisconnected'](){this['unsubscribe']&&(this['unsubscribe'](),this['unsubscribe']=void 0x0);}['dispatchRequest'](){this['host']['dispatchEvent'](new Qt(this['context'],this['host'],this['t'],this['subscribe']));}},tr=class{get['value'](){return this['o'];}set['value'](_0x3747bc){this['setValue'](_0x3747bc);}['setValue'](_0x589aad,t=!0x1){let _0x2a4209=t||!Object['is'](_0x589aad,this['o']);this['o']=_0x589aad,_0x2a4209&&this['updateObservers']();}constructor(_0x481b73){this['subscriptions']=new Map(),this['updateObservers']=()=>{for(let [t,{disposer:_0x176fb2}]of this['subscriptions'])t(this['o'],_0x176fb2);},void 0x0!==_0x481b73&&(this['value']=_0x481b73);}['addCallback'](_0x5c8227,t,_0xebcbc8){if(!_0xebcbc8)return void _0x5c8227(this['value']);this['subscriptions']['has'](_0x5c8227)||this['subscriptions']['set'](_0x5c8227,{'disposer':()=>{this['subscriptions']['delete'](_0x5c8227);},'consumerHost':t});let {disposer:_0x3086dd}=this['subscriptions']['get'](_0x5c8227);_0x5c8227(this['value'],_0x3086dd);}['clearCallbacks'](){this['subscriptions']['clear']();}},Eo=class extends Event{constructor(_0x3f1014,t){super('context-provider',{'bubbles':!0x0,'composed':!0x0}),this['context']=_0x3f1014,this['contextTarget']=t;}},Pe=class extends tr{constructor(_0x3a8150,t,_0x357d06){super(void 0x0!==t['context']?t['initialValue']:_0x357d06),this['onContextRequest']=_0x32b178=>{if(_0x32b178['context']!==this['context'])return;let _0x1a36ec=_0x32b178['contextTarget']??_0x32b178['composedPath']()[0x0];_0x1a36ec!==this['host']&&(_0x32b178['stopPropagation'](),this['addCallback'](_0x32b178['callback'],_0x1a36ec,_0x32b178['subscribe']));},this['onProviderRequest']=_0x256131=>{if(_0x256131['context']!==this['context']||(_0x256131['contextTarget']??_0x256131['composedPath']()[0x0])===this['host'])return;let _0x34cc89=new Set();for(let [_0x562d6f,{consumerHost:_0x54ca0c}]of this['subscriptions'])_0x34cc89['has'](_0x562d6f)||(_0x34cc89['add'](_0x562d6f),_0x54ca0c['dispatchEvent'](new Qt(this['context'],_0x54ca0c,_0x562d6f,!0x0)));_0x256131['stopPropagation']();},this['host']=_0x3a8150,void 0x0!==t['context']?this['context']=t['context']:this['context']=t,this['attachListeners'](),this['host']['addController']?.(this);}['attachListeners'](){this['host']['addEventListener']('context-request',this['onContextRequest']),this['host']['addEventListener']('context-provider',this['onProviderRequest']);}['hostConnected'](){this['host']['dispatchEvent'](new Eo(this['context'],this['host']));}},Wl={'attribute':!0x0,'type':String,'converter':si,'reflect':!0x1,'hasChanged':Gi},Zl=(_0x33072e=Wl,_0x29d7f1,t)=>{let {kind:_0x57c603,metadata:_0xc514be}=t,_0xdebdd=globalThis['litPropertyMetadata']['get'](_0xc514be);if(void 0x0===_0xdebdd&&globalThis['litPropertyMetadata']['set'](_0xc514be,_0xdebdd=new Map()),'setter'===_0x57c603&&((_0x33072e=Object['create'](_0x33072e))['wrapped']=!0x0),_0xdebdd['set'](t['name'],_0x33072e),'accessor'===_0x57c603){let {name:_0x221cd1}=t;return{'set'(_0x378501){let _0x388865=_0x29d7f1['get']['call'](this);_0x29d7f1['set']['call'](this,_0x378501),this['requestUpdate'](_0x221cd1,_0x388865,_0x33072e,!0x0,_0x378501);},'init'(_0x1f9b65){return void 0x0!==_0x1f9b65&&this['C'](_0x221cd1,void 0x0,_0x33072e,_0x1f9b65),_0x1f9b65;}};}if('setter'===_0x57c603){let {name:_0xe24dd1}=t;return function(_0x3b692e){let _0x3799e5=this[_0xe24dd1];_0x29d7f1['call'](this,_0x3b692e),this['requestUpdate'](_0xe24dd1,_0x3799e5,_0x33072e,!0x0,_0x3b692e);};}throw Error('Unsupported\x20decorator\x20location:\x20'+_0x57c603);};function y(_0x36a879){return(_0xe9a901,t)=>'object'==typeof t?Zl(_0x36a879,_0xe9a901,t):((_0x20ba54,_0x2b8106,_0x1bce74)=>{let _0x194615=_0x2b8106['hasOwnProperty'](_0x1bce74);return _0x2b8106['constructor']['createProperty'](_0x1bce74,_0x20ba54),_0x194615?Object['getOwnPropertyDescriptor'](_0x2b8106,_0x1bce74):void 0x0;})(_0x36a879,_0xe9a901,t);}function m(_0x40759f){return y({..._0x40759f,'state':!0x0,'attribute':!0x1});}function $(_0x346149,_0x43bbb3){let t,_0x54fd7f=(..._0x59885b)=>{t&&clearTimeout(t),t=setTimeout(()=>_0x346149(..._0x59885b),_0x43bbb3);};return _0x54fd7f['cancel']=()=>{t&&clearTimeout(t);},_0x54fd7f;}var sn='ctx-name-context';function ir(){return function(_0x4c1bd1){class _0x4e097e extends _0x4c1bd1{constructor(..._0x587b7f){super(..._0x587b7f),this['ee']=null,this['Zt']=!0x1,this['Xr']=!0x1,this['Qr']=void 0x0,this['wt']=new Map(),this['Yt']=new Set(),this['init$']={},this['ctxOwner']=!0x1,this['Di']=void 0x0,this['Fi']=!0x1,this['ctxName']=this['Ae'],this['ke']=!0x1,this['Di']=this['getAttribute']('ctx-name')||void 0x0,this['ctxName']=this['Ae'],this['Nc']=new Oe(this,{'context':sn,'callback':_0x9e6b8a=>{_0x9e6b8a?(this['rn']=_0x9e6b8a,this['tn']()):console['error']('SymbioteMixin:\x20Received\x20invalid\x20ctx-name\x20from\x20context');},'subscribe':!0x0});}static set['template'](_0x37d119){console['error']('Caution:\x20static\x20\x27template\x27\x20property\x20is\x20deprecated\x20and\x20has\x20no\x20effect.\x20See\x20https://github.com/uploadcare/file-uploader/releases/tag/v1.25.0\x20for\x20details.');}get['en'](){return this['Di'];}set['en'](_0x22ce7b){let _0x2f5976=_0x22ce7b??void 0x0;this['Di']!==_0x2f5976&&(this['Di']=_0x2f5976,this['tn']());}['shouldUpdate'](_0x369178){return!!this['ke']&&super['shouldUpdate'](_0x369178);}get['Ae'](){return this['en']||this['rn']||void 0x0;}['tn'](){if(this['ctxName']=this['Ae'],this['ctxName']&&!this['Zt']){if(this['isConnected'])return void this['Jr']();this['Fi']=!0x0;}}['willUpdate'](_0x1cf1fa){super['willUpdate'](_0x1cf1fa),this['ctxName']=this['Ae'],this['ctxName']&&(this['Qr']?this['Qr']['setValue'](this['ctxName']):this['Qr']=new Pe(this,{'context':sn,'initialValue':this['ctxName']}));}['sn'](){if(this['ee']&&0x0!==this['wt']['size']){for(let [_0x32e283,{value:_0x24bbd6,rewrite:_0x35348a}]of this['wt'])this['ee']['add'](_0x32e283,_0x24bbd6,_0x35348a);this['wt']['clear']();}}['nn'](){return!this['ee']&&this['Ae']&&this['eo'](),this['ee']&&this['sn'](),this['ee'];}['Ni'](){let _0x2088c8=this['nn']();if(!_0x2088c8)throw new Error('SymbioteMixin:\x20Shared\x20context\x20is\x20not\x20initialized.');return _0x2088c8;}['eo'](){let _0x2dcb47=this['init$'],_0x5f2702=this['Ae'];if(_0x5f2702){if(!this['ee']){this['ee']=H['getCtx'](_0x5f2702)??H['registerCtx'](_0x2dcb47,_0x5f2702);for(let [_0x5e7aa5,_0x269918]of Object['entries'](this['init$']))this['ee']['add'](_0x5e7aa5,_0x269918,this['ctxOwner']);this['sn']();}}else console['error']('SymbioteMixin:\x20ctx-name\x20is\x20required\x20for\x20components\x20with\x20shared\x20properties\x20(*)');}get['$'](){return this['Ae']&&this['eo'](),new Proxy({},{'get':(_0x5c74ad,_0x34221c)=>{if('string'==typeof _0x34221c)return this['ee']?.['read'](_0x34221c);},'set':(_0x2f43ad,_0x3de8e0,_0xe2f11d)=>('string'!=typeof _0x3de8e0||this['ee']?.['pub'](_0x3de8e0,_0xe2f11d),!0x0)});}['sub'](_0x1bf49d,_0x50cb85,_0x246d7a=!0x0){let _0x131e56=this['Ni']()['sub'](_0x1bf49d,_0x50cb85,_0x246d7a);if(!_0x131e56||'function'!=typeof _0x131e56)return()=>{};let _0x4ba2e4=_0x131e56['bind'](_0x131e56),_0x52712f=!0x1,_0x127fd3=()=>{_0x52712f||(_0x52712f=!0x0,_0x4ba2e4(),this['Yt']['delete'](_0x127fd3));};return this['Yt']['add'](_0x127fd3),_0x127fd3;}['pub'](_0xc910e,_0x3de701){this['Ni']()['pub'](_0xc910e,_0x3de701);}['set$'](_0x5d1a0e){for(let [_0x31215f,_0x4898d8]of Object['entries'](_0x5d1a0e))this['pub'](_0x31215f,_0x4898d8);}get['sharedCtx'](){return this['Ni']();}['has'](_0x5e9efc){return this['ee']?.['has'](_0x5e9efc)??!0x1;}['add'](_0x56d4b4,_0x1dae6a,_0x5616c5=!0x1){let _0x54ce67=this['nn']();if(_0x54ce67)this['wt']['delete'](_0x56d4b4),_0x54ce67['add'](_0x56d4b4,_0x1dae6a,_0x5616c5);else{if(!_0x5616c5&&this['wt']['has'](_0x56d4b4))return;this['wt']['set'](_0x56d4b4,{'value':_0x1dae6a,'rewrite':_0x5616c5});}}['add$'](_0x14ebed,_0xa14f1a=!0x1){for(let [_0xfaaaa6,_0x343b37]of Object['entries'](_0x14ebed))this['add'](_0xfaaaa6,_0x343b37,_0xa14f1a);}['connectedCallback'](){super['connectedCallback'](),this['Zt']?this['ke']&&this['Xr']&&(this['Xr']=!0x1,this['initCallback']()):(this['ctxName']||this['Fi']&&this['Ae'])&&(this['Fi']=!0x1,this['Jr']());}['Jr'](){if(this['Zt'])return;this['Zt']=!0x0,this['eo']();let _0x1877e2=this['init$'];if(Object['keys'](_0x1877e2)['length']>0x0){let _0x424bb4=this['Ni']();for(let [_0x1dbb0f,_0x2582b2]of Object['entries'](_0x1877e2))void 0x0===_0x424bb4['read'](_0x1dbb0f)&&_0x424bb4['pub'](_0x1dbb0f,_0x2582b2),this['sub'](_0x1dbb0f,$(async()=>{this['isConnected']&&(await this['updateComplete'],this['requestUpdate']());},0x0),!0x1);}this['initCallback'](),this['ke']=!0x0,this['requestUpdate']();}['firstUpdated'](_0x432146){super['firstUpdated'](_0x432146);}['disconnectedCallback'](){this['Vc'](),super['disconnectedCallback'](),this['Zt']&&(this['Xr']=!0x0);}['Vc'](){if(0x0!==this['Yt']['size']){for(let _0x4a3e75 of[...this['Yt']])_0x4a3e75();this['Yt']['clear']();}}['initCallback'](){}}return p([y({'type':String,'attribute':'ctx-name','noAccessor':!0x0})],_0x4e097e['prototype'],'en',0x1),p([m()],_0x4e097e['prototype'],'rn',0x2),p([m()],_0x4e097e['prototype'],'ctxName',0x2),p([m()],_0x4e097e['prototype'],'ke',0x2),_0x4e097e;};}var Co=class extends Ie(ir()(Me(Ji(Tt)))){},ft=class e{static['generateFastUid'](){return'uid-'+Date['now']()['toString'](0x24)+'-'+Math['random']()['toString'](0x24)['slice'](0x2,0xb);}static['generateRandomUUID'](){let _0x1becd4=globalThis['crypto'];return _0x1becd4&&'function'==typeof _0x1becd4['randomUUID']?_0x1becd4['randomUUID']():e['generateFastUid']();}},Yl=['UploaderBlock','ActivityBlock','Block','SolutionBlock'];function mt(_0x434547){for(let _0x328397 in _0x434547){if(Yl['includes'](_0x328397))continue;let t=[..._0x328397]['reduce']((_0x498a75,_0xdffbb4)=>(_0xdffbb4['toUpperCase']()===_0xdffbb4&&(_0xdffbb4='-'+_0xdffbb4['toLowerCase']()),_0x498a75+=_0xdffbb4),'');t['startsWith']('-')&&(t=t['replace']('-','')),t['startsWith']('uc-')||(t='uc-'+t),_0x434547[_0x328397]['reg']&&_0x434547[_0x328397]['reg'](t);}}var xo='UC';function Xl(_0x5ec022,_0x38868f=!0x1){return new Promise((t,_0xe943ef)=>{if('object'!=typeof document)return void t(null);if('object'==typeof window&&window[xo])return void t(window[xo]);let _0x5c1f99=document['createElement']('script');_0x5c1f99['async']=!0x0,_0x5c1f99['src']=_0x5ec022,_0x5c1f99['onerror']=()=>{_0xe943ef();},_0x5c1f99['onload']=()=>{let _0x37ea35=window[xo];_0x38868f&&mt(_0x37ea35),t(_0x37ea35);},document['head']['appendChild'](_0x5c1f99);});}var ui={'locale-id':'en','social-source-lang':'en','upload-file':'Upload\x20file','upload-files':'Upload\x20files','choose-file':'Choose\x20file','choose-files':'Choose\x20files','drop-files-here':'Drop\x20files\x20here','drop-file-here':'Drop\x20file\x20here','select-file-source':'Select\x20file\x20source','selected':'Selected','upload':'Upload','add-more':'Add\x20more','cancel':'Cancel','start-from-cancel':'Cancel','clear':'Clear','camera-shot':'Shot','upload-url':'Import','upload-url-placeholder':'Paste\x20link\x20here','edit-image':'Edit\x20image','edit-detail':'Details','back':'Back','done':'Done','ok':'Ok','remove-from-list':'Remove','no':'No','yes':'Yes','confirm-your-action':'Confirm\x20your\x20action','are-you-sure':'Are\x20you\x20sure?','selected-count':'{{count}}\x20of\x20{{total}}\x20selected','select-all':'Select\x20all','deselect-all':'Deselect\x20all','upload-error':'Upload\x20error','validation-error':'Validation\x20error','no-files':'No\x20files\x20selected','browse':'Browse','not-uploaded-yet':'Not\x20uploaded\x20yet...','file__one':'file','file__other':'files','error__one':'error','error__other':'errors','header-uploading':'Uploading\x20{{count}}\x20{{plural:file(count)}}','header-failed':'{{count}}\x20{{plural:error(count)}}','header-succeed':'{{count}}\x20{{plural:file(count)}}\x20uploaded','header-total':'{{count}}\x20{{plural:file(count)}}\x20selected','src-type-local':'From\x20device','src-type-from-url':'From\x20link','src-type-camera':'Camera','src-type-mobile-video-camera':'Video','src-type-mobile-photo-camera':'Photo','src-type-facebook':'Facebook','src-type-dropbox':'Dropbox','src-type-gdrive':'Google\x20Drive','src-type-ngdrive':'Google\x20Drive','src-type-gphotos':'Google\x20Photos','src-type-flickr':'Flickr','src-type-vk':'VK','src-type-evernote':'Evernote','src-type-box':'Box','src-type-onedrive':'OneDrive','src-type-huddle':'Huddle','src-type-other':'Other','caption-from-url':'Import\x20from\x20link','caption-camera':'Camera','caption-edit-file':'Edit\x20file','file-no-name':'No\x20name...','toggle-fullscreen':'Toggle\x20fullscreen','toggle-guides':'Toggle\x20guides','rotate':'Rotate','flip-vertical':'Flip\x20vertical','flip-horizontal':'Flip\x20horizontal','apply':'Apply','brightness':'Brightness','contrast':'Contrast','saturation':'Saturation','exposure':'Exposure','gamma':'Gamma','vibrance':'Vibrance','warmth':'Warmth','enhance':'Enhance','original':'Original','resize':'Resize\x20image','crop':'Crop','select-color':'Select\x20color','text':'Text','draw':'Draw','cancel-edit':'Cancel\x20edit','tab-view':'Preview','tab-details':'Details','file-name':'Name','file-size':'Size','cdn-url':'CDN\x20URL','file-size-unknown':'Unknown','camera-permissions-denied':'Camera\x20access\x20denied','camera-permissions-prompt':'Please\x20allow\x20access\x20to\x20the\x20camera','camera-permissions-request':'Request\x20access','files-count-limit-error-title':'Files\x20count\x20limit\x20overflow','files-count-limit-error-too-few':'You’ve\x20chosen\x20{{total}}\x20{{plural:file(total)}}.\x20At\x20least\x20{{min}}\x20{{plural:file(min)}}\x20required.','files-count-limit-error-too-many':'You’ve\x20chosen\x20too\x20many\x20files.\x20{{max}}\x20{{plural:file(max)}}\x20is\x20maximum.','files-max-size-limit-error':'File\x20is\x20too\x20big.\x20Max\x20file\x20size\x20is\x20{{maxFileSize}}.','has-validation-errors':'File\x20validation\x20error\x20occurred.\x20Please,\x20check\x20your\x20files\x20before\x20upload.','images-only-accepted':'Only\x20image\x20files\x20are\x20accepted.','file-type-not-allowed':'Uploading\x20of\x20these\x20file\x20types\x20is\x20not\x20allowed.','some-files-were-not-uploaded':'Some\x20files\x20were\x20not\x20uploaded.','file-item-edit-button':'Edit','file-item-remove-button':'Remove','a11y-editor-tab-filters':'Filters','a11y-editor-tab-tuning':'Tuning','a11y-editor-tab-crop':'Crop','a11y-activity-header-button-close':'Close','flip':'Flip','mirror':'Mirror','a11y-cloud-editor-apply-filter':'Apply\x20{{name}}\x20filter','a11y-cloud-editor-apply-crop':'Apply\x20{{name}}\x20operation','a11y-cloud-editor-apply-tuning':'Apply\x20{{name}}\x20tuning','a11y-cloud-editor-apply-aspect-ratio':'Apply\x20operation\x20{{name}}\x20{{value}}','finished':'Finished','failed':'Failed','uploading':'Uploading','idle':'Idle','a11y-file-item-status':'File\x20{{fileName}}\x20in\x20status\x20{{status}}','waiting-for':'Waiting\x20for\x20{{source}}','queued-uploading':'Queued\x20for\x20upload','queued-validation':'Queued\x20for\x20validation','validation':'Validating','crop-to-shape':'Crop\x20to\x20{{value}}','custom':'Freeform','freeform-crop':'Freeform\x20crop'},So=new Map(),nn=new Map(),an=(_0x2ca607,_0x39bd12)=>{So['has'](_0x2ca607)&&console['log']('Locale\x20'+_0x2ca607+'\x20is\x20already\x20defined.\x20Overwriting...');let t={...ui,..._0x39bd12};return So['set'](_0x2ca607,t),t;},Ql=(_0x203630,_0x1b1530)=>{nn['set'](_0x203630,_0x1b1530);},ln=(_0x3baa52,_0x11d8a3)=>{'function'==typeof _0x11d8a3?Ql(_0x3baa52,_0x11d8a3):an(_0x3baa52,_0x11d8a3);},cn=async _0x403036=>{let _0x5af597=So['get'](_0x403036);if(!_0x5af597){let t=nn['get'](_0x403036);if(!t)throw new Error('Locale\x20'+_0x403036+'\x20is\x20not\x20defined');let _0x950dee=await t();_0x5af597=an(_0x403036,_0x950dee);}return _0x5af597;};ln('en',ui);var A=_0x5ae51e=>'*cfg/'+_0x5ae51e,K=_0x563cdf=>_0x563cdf?_0x563cdf['split'](',')['map'](_0x496648=>_0x496648['trim']())['filter'](Boolean):[],Ht=_0x1ce238=>_0x1ce238['join'](','),un=_0x5c0a39=>{if('string'!=typeof _0x5c0a39||!_0x5c0a39)return'';let _0x45087f=_0x5c0a39['trim']();return _0x45087f['startsWith']('-/')?_0x45087f=_0x45087f['slice'](0x2):_0x45087f['startsWith']('/')&&(_0x45087f=_0x45087f['slice'](0x1)),_0x45087f['endsWith']('/')&&(_0x45087f=_0x45087f['slice'](0x0,_0x45087f['length']-0x1)),_0x45087f;},rr=(..._0x57c95a)=>_0x57c95a['filter'](_0x5ee652=>'string'==typeof _0x5ee652&&!!_0x5ee652)['map'](_0x48be34=>un(_0x48be34))['join']('/-/'),rt=(..._0x461c02)=>{let _0xc3480c=rr(..._0x461c02);return _0xc3480c?'-/'+_0xc3480c+'/':'';};function or(_0x44cf67){let _0xb9f2f=new URL(_0x44cf67),t=_0xb9f2f['pathname']+_0xb9f2f['search']+_0xb9f2f['hash'],_0x1af68a=t['lastIndexOf']('http'),_0x185c8f=t['lastIndexOf']('/'),_0xf26b1e='';return _0x1af68a>=0x0?_0xf26b1e=t['slice'](_0x1af68a):_0x185c8f>=0x0&&(_0xf26b1e=t['slice'](_0x185c8f+0x1)),_0xf26b1e;}function sr(_0x38f51c){let _0x46ce69=new URL(_0x38f51c),{pathname:t}=_0x46ce69,_0x25bb5d=t['indexOf']('/'),_0x568852=t['indexOf']('/',_0x25bb5d+0x1);return t['substring'](_0x25bb5d+0x1,_0x568852);}function Ao(_0x5d5a81){let _0x1a2910=dn(_0x5d5a81),t=new URL(_0x1a2910),_0x2195a8=t['pathname']['indexOf']('/-/');return-0x1===_0x2195a8?'':t['pathname']['substring'](_0x2195a8)['slice'](0x1);}function ko(_0x5c4bab){return Ao(_0x5c4bab)['split']('/-/')['filter'](Boolean)['map'](t=>un(t));}function dn(_0x120f12){let _0x2a198f=new URL(_0x120f12),t=or(_0x120f12),_0x1d0eb9=pn(t)?hn(t)['pathname']:t;return _0x2a198f['pathname']=_0x2a198f['pathname']['replace'](_0x1d0eb9,''),_0x2a198f['search']='',_0x2a198f['hash']='',_0x2a198f['toString']();}function pn(_0x1384fb){return _0x1384fb['startsWith']('http');}function hn(_0x429248){let _0x73ffce=new URL(_0x429248);return{'pathname':''+_0x73ffce['origin']+(_0x73ffce['pathname']??''),'search':_0x73ffce['search']??'','hash':_0x73ffce['hash']??''};}var W=(_0x209381,_0x2dbb71,t)=>{let _0x116c59=new URL(dn(_0x209381)),_0x4b3ace=t??or(_0x209381),_0x5b8ffd=_0x2dbb71??'';if(_0x116c59['pathname']['startsWith']('//')&&(_0x116c59['pathname']=_0x116c59['pathname']['replace']('//','/')),_0x4b3ace&&pn(_0x4b3ace)){let _0x2dd7a2=hn(_0x4b3ace);_0x116c59['pathname']=''+_0x116c59['pathname']+_0x5b8ffd+(_0x2dd7a2['pathname']||''),_0x116c59['search']=_0x2dd7a2['search'],_0x116c59['hash']=_0x2dd7a2['hash'];}else _0x116c59['pathname']=''+_0x116c59['pathname']+_0x5b8ffd+(_0x4b3ace||'');return _0x116c59['toString']();},Jt=(_0x398b75,_0x4ec60e)=>{let t=new URL(_0x398b75);return t['pathname']=_0x4ec60e+'/',t['toString']();},Z=(_0x1e9463,_0x440acf=',')=>_0x1e9463['trim']()['split'](_0x440acf)['map'](t=>t['trim']())['filter'](t=>t['length']>0x0),di=Object['freeze']({'brightness':0x0,'exposure':0x0,'gamma':0x64,'contrast':0x0,'saturation':0x0,'vibrance':0x0,'warmth':0x0,'enhance':0x0,'filter':0x0,'rotate':0x0,'mirror':!0x1,'flip':!0x1,'crop':void 0x0}),mn=['enhance','brightness','exposure','gamma','contrast','saturation','vibrance','warmth','filter','mirror','flip','rotate','crop'];function Jl(_0x15e6ea,_0x1efa1a){if('number'==typeof _0x1efa1a){let t=_0x1efa1a;return di[_0x15e6ea]!==t?_0x15e6ea+'/'+t:'';}if('boolean'==typeof _0x1efa1a){let t=_0x1efa1a;return di[_0x15e6ea]!==t?''+_0x15e6ea:'';}if('filter'===_0x15e6ea&&_0x1efa1a){let {name:t,amount:_0x37b9cc}=_0x1efa1a;return di['filter']===_0x37b9cc?'':_0x15e6ea+'/'+t+'/'+_0x37b9cc;}if('crop'===_0x15e6ea&&_0x1efa1a){let {dimensions:t,coords:_0x3b93c3}=_0x1efa1a;return _0x15e6ea+'/'+t['join']('x')+'/'+_0x3b93c3['join'](',');}return'';}function te(_0x1cd12f){return rr(...mn['filter'](_0x4eadea=>typeof _0x1cd12f[_0x4eadea]<'u'&&null!==_0x1cd12f[_0x4eadea])['map'](_0x351abf=>Jl(_0x351abf,_0x1cd12f[_0x351abf]))['filter'](_0x66f09a=>!!_0x66f09a));}var nr=rr('format/auto','progressive/yes'),Kt=([_0x267964])=>typeof _0x267964<'u'?Number(_0x267964):void 0x0,fn=()=>!0x0,tc=([_0x5aa276,_0x237108])=>({'name':_0x5aa276,'amount':typeof _0x237108<'u'?Number(_0x237108):0x64}),ec=([_0x518810,_0x410af2])=>{if(!/\d+x\d+/['test'](_0x518810)||!/\d+,\d+/['test'](_0x410af2))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':Z(_0x518810,'x')['map'](Number),'coords':Z(_0x410af2)['map'](Number)};},ic=Object['freeze']({'enhance':Kt,'brightness':Kt,'exposure':Kt,'gamma':Kt,'contrast':Kt,'saturation':Kt,'vibrance':Kt,'warmth':Kt,'filter':tc,'mirror':fn,'flip':fn,'rotate':Kt,'crop':_0x5250a0=>{let [_0x37eb31,t]=_0x5250a0,{dimensions:_0x5d0a77,coords:_0xb0f706}=ec([_0x37eb31,t]);return{'dimensions':_0x5d0a77,'coords':_0xb0f706};}});function Mo(_0x298d6e){let _0x4b2f57={};for(let t of _0x298d6e){let [_0xc5f704,..._0xdd0d98]=t['split']('/');if(!_0xc5f704||!mn['includes'](_0xc5f704))continue;let _0x286c1b=_0xc5f704,_0x48b93a=ic[_0x286c1b];try{let _0x496c0c=_0x48b93a(_0xdd0d98);_0x4b2f57[_0x286c1b]=_0x496c0c;}catch(_0x34fd04){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+t+'\x22.\x20It\x20will\x20be\x20ignored.',_0x34fd04 instanceof Error?'Error\x20message:\x20\x22'+_0x34fd04['message']+'\x22':_0x34fd04,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x20'));}}return _0x4b2f57;}var B=Object['freeze']({'CROP':'crop','TUNING':'tuning','FILTERS':'filters'}),ot=Object['freeze']([B['CROP'],B['TUNING'],B['FILTERS']]),gn=Object['freeze'](['brightness','exposure','gamma','contrast','saturation','vibrance','warmth','enhance']),vn=Object['freeze'](['adaris','briaril','calarel','carris','cynarel','cyren','elmet','elonni','enzana','erydark','fenralan','ferand','galen','gavin','gethriel','iorill','iothari','iselva','jadis','lavra','misiara','namala','nerion','nethari','pamaya','sarnar','sedis','sewen','sorahel','sorlen','tarian','thellassan','varriel','varven','vevera','virkas','yedis','yllara','zatvel','zevcen']),yn=Object['freeze'](['rotate','mirror','flip']),jt=di,kt=Object['freeze']({'brightness':{'zero':jt['brightness'],'range':[-0x64,0x64],'keypointsNumber':0x2},'exposure':{'zero':jt['exposure'],'range':[-0x1f4,0x1f4],'keypointsNumber':0x2},'gamma':{'zero':jt['gamma'],'range':[0x0,0x3e8],'keypointsNumber':0x2},'contrast':{'zero':jt['contrast'],'range':[-0x64,0x1f4],'keypointsNumber':0x2},'saturation':{'zero':jt['saturation'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'vibrance':{'zero':jt['vibrance'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'warmth':{'zero':jt['warmth'],'range':[-0x64,0x64],'keypointsNumber':0x1},'enhance':{'zero':jt['enhance'],'range':[0x0,0x64],'keypointsNumber':0x1},'filter':{'zero':jt['filter'],'range':[0x0,0x64],'keypointsNumber':0x1}}),pi='https://ucarecdn.com',rc='https://upload.uploadcare.com',oc='https://social.uploadcare.com',sc='https://ucarecd.net',nc={'pubkey':'','multiple':!0x0,'multipleMin':0x0,'multipleMax':Number['MAX_SAFE_INTEGER'],'confirmUpload':!0x1,'imgOnly':!0x1,'accept':'','externalSourcesPreferredTypes':'','externalSourcesEmbedCss':'','store':'auto','cameraMirror':!0x1,'cameraCapture':'','sourceList':'local,\x20url,\x20camera,\x20dropbox,\x20gdrive','topLevelOrigin':'','maxLocalFileSizeBytes':0x0,'thumbSize':0x4c,'showEmptyList':!0x1,'useLocalImageEditor':!0x1,'removeCopyright':!0x1,'cropPreset':'','imageShrink':'','modalScrollLock':!0x0,'modalBackdropStrokes':!0x1,'sourceListWrap':!0x0,'remoteTabSessionKey':'','cdnCname':pi,'cdnCnamePrefixed':sc,'baseUrl':rc,'socialBaseUrl':oc,'secureSignature':'','secureExpire':'','secureDeliveryProxy':'','retryThrottledRequestMaxTimes':0x3,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0xa,'multipartMaxConcurrentRequests':0x4,'multipartMaxAttempts':0x3,'checkForUrlDuplicates':!0x1,'saveUrlForRecurrentUploads':!0x1,'groupOutput':!0x1,'userAgentIntegration':'','debug':!0x1,'metadata':null,'localeName':'en','localeDefinitionOverride':null,'secureUploadsExpireThreshold':0x927c0,'secureUploadsSignatureResolver':null,'secureDeliveryProxyUrlResolver':null,'iconHrefResolver':null,'fileValidators':[],'collectionValidators':[],'validationTimeout':0x3a98,'validationConcurrency':0x64,'cameraModes':'photo,\x20video','defaultCameraMode':null,'enableAudioRecording':!0x0,'enableVideoRecording':null,'maxVideoRecordingDuration':null,'mediaRecorderOptions':null,'filesViewMode':'list','gridShowFileNames':!0x1,'useCloudImageEditor':!0x0,'cloudImageEditorAutoOpen':!0x1,'cloudImageEditorTabs':Ht(ot),'cloudImageEditorMaskHref':null,'testMode':!0x1,'qualityInsights':!0x0,'pasteScope':'local','plugins':[]},J=Object['freeze'](nc),ar=(_0x1655d7,_0x338e0f)=>(...t)=>{let _0x3628a1=_0x1655d7();if(!_0x3628a1['read'](A('debug')))return;let _0xd0f2a9=t;'function'==typeof t?.[0x0]&&(_0xd0f2a9=(0x0,t[0x0])());let _0x1a8f4e=[_0x3628a1['id'],_0x338e0f]['filter'](Boolean);console['log']('['+_0x1a8f4e['join']('][')+']',..._0xd0f2a9);},j=class{constructor(_0x50592f){this['to']=new Set(),this['Be']=null,this['w']=ar(()=>this['i']['ctx'],this['constructor']['name']),this['i']=_0x50592f,this['e']=_0x50592f['ctx'];}['addSub'](_0x262059){this['to']['add'](_0x262059);}get['ze'](){if(!this['Be']){let _0x399938={};this['Be']=new Proxy(_0x399938,{'set':()=>{throw new Error('SharedInstance\x20cfg\x20proxy\x20is\x20read-only');},'get':(t,_0x559668)=>{if('string'!=typeof _0x559668)return;let _0x369260=A(_0x559668);return this['i']['ctx']['has'](_0x369260)?this['i']['ctx']['read'](_0x369260):J[_0x559668];}});}return this['Be'];}['destroy'](){for(let _0x316d00 of this['to'])try{_0x316d00();}catch{}this['to']['clear']();}},ac={'modalManager':'*modalManager','pluginManager':'*pluginManager','telemetryManager':'*telemetryManager','localeManager':'*localeManager','a11y':'*a11y','clipboard':'*clipboard','blocksRegistry':'*blocksRegistry','eventEmitter':'*eventEmitter','uploadCollection':'*uploadCollection','secureUploadsManager':'*secureUploadsManager','api':'*publicApi','validationManager':'*validationManager'},Mt=(_0x5d2912,_0x47ed90,t=!0x0)=>{let _0x1da0a5=_0x5d2912['has'](_0x47ed90),_0x13cb21=_0x1da0a5?_0x5d2912['read'](_0x47ed90):null;if(_0x1da0a5&&_0x13cb21||!t)return _0x13cb21;throw new Error('Unexpected\x20error:\x20shared\x20instance\x20for\x20key\x20\x22'+String(_0x47ed90)+'\x22\x20is\x20not\x20available');},bn=_0x5c49e2=>({get 'ctx'(){return _0x5c49e2();},get 'modalManager'(){return Mt(_0x5c49e2(),'*modalManager',!0x1);},get 'pluginManager'(){return Mt(_0x5c49e2(),'*pluginManager');},get 'telemetryManager'(){return Mt(_0x5c49e2(),'*telemetryManager');},get 'localeManager'(){return Mt(_0x5c49e2(),'*localeManager');},get 'a11y'(){return Mt(_0x5c49e2(),'*a11y');},get 'blocksRegistry'(){return Mt(_0x5c49e2(),'*blocksRegistry');},get 'eventEmitter'(){return Mt(_0x5c49e2(),'*eventEmitter');},get 'uploadCollection'(){return Mt(_0x5c49e2(),'*uploadCollection');},get 'secureUploadsManager'(){return Mt(_0x5c49e2(),'*secureUploadsManager',!0x1);},get 'api'(){return Mt(_0x5c49e2(),'*publicApi');},get 'validationManager'(){return Mt(_0x5c49e2(),'*validationManager');},'when'(_0x3722e0,t){let _0x4c5651,_0x2b670d=ac[_0x3722e0],_0x4c26f0=_0x5c49e2(),_0x269a00=_0x4c26f0['has'](_0x2b670d)?_0x4c26f0['read'](_0x2b670d):void 0x0;return _0x269a00?(t(_0x269a00),()=>{}):(_0x4c5651=_0x4c26f0['sub'](_0x2b670d,_0x1178ea=>{_0x1178ea&&(t(_0x1178ea),_0x4c5651?.());}),_0x4c5651);},'wait'(_0x3c47ec){return new Promise(t=>{let _0x2138dd;_0x2138dd=this['when'](_0x3c47ec,_0x4234a4=>{t(_0x4234a4),_0x2138dd?.();});});}}),Y=Object['freeze']({'ADD':'modal:add','DELETE':'modal:delete','OPEN':'modal:open','CLOSE':'modal:close','CLOSE_ALL':'modal:closeAll','DESTROY':'modal:destroy'}),lr=class extends j{constructor(){super(...arguments),this['He']=new Map(),this['ue']=new Set(),this['c']=new Map();}['registerModal'](t,_0x3b673c){this['He']['set'](t,_0x3b673c),this['q'](Y['ADD'],{'id':t,'modal':_0x3b673c});}['deleteModal'](t){let _0x195256=this['He']['get'](t);return!!_0x195256&&(this['He']['delete'](t),this['ue']['delete'](t),this['q'](Y['DELETE'],{'id':t,'modal':_0x195256}),!0x0);}['open'](t){let _0x317b60=this['He']['get'](t);return _0x317b60?(this['ue']['add'](t),this['q'](Y['OPEN'],{'modal':_0x317b60,'id':t}),!0x0):(this['w']('Modal\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found'),!0x1);}['close'](t){let _0x4afdd9=this['He']['get'](t);return _0x4afdd9&&this['ue']['has'](t)?(this['ue']['delete'](t),this['q'](Y['CLOSE'],{'id':t,'modal':_0x4afdd9}),!0x0):(this['w']('Modal\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1);}['toggle'](t){return this['He']['has'](t)?this['ue']['has'](t)?this['close'](t):this['open'](t):(this['w']('Modal\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found'),!0x1);}get['hasActiveModals'](){return this['ue']['size']>0x0;}['back'](){if(0x0===this['ue']['size'])return this['w']('No\x20active\x20modals\x20to\x20go\x20back\x20from'),!0x1;let t=Array['from'](this['ue'])['pop']();return!!t&&this['close'](t);}['closeAll'](){let t=this['ue']['size'];return this['ue']['clear'](),this['q'](Y['CLOSE_ALL'],{}),t;}['subscribe'](t,_0xdf52c4){return this['c']['has'](t)||this['c']['set'](t,new Set()),this['c']['get'](t)?.['add'](_0xdf52c4),()=>this['unsubscribe'](t,_0xdf52c4);}['unsubscribe'](t,_0x14d4fe){this['c']['has'](t)&&this['c']['get'](t)?.['delete'](_0x14d4fe);}['q'](t,_0x451f51){if(this['c']['has'](t)){for(let _0x3b936a of this['c']['get'](t)??new Set())try{_0x3b936a(_0x451f51);}catch(_0x3dcb13){this['i']['telemetryManager']['sendEventError'](_0x3dcb13,'modal\x20subscriber'),this['w']('Error\x20in\x20modal\x20subscriber:',_0x3dcb13);}}}['destroy'](){super['destroy'](),this['closeAll'](),this['He']['clear'](),this['c']['clear'](),this['q'](Y['DESTROY'],{});}},cr=_0x9298e0=>_0x9298e0['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0x3d802b=>_0x3d802b['toLowerCase']())['join']('-');function wn(_0x4c2b1f){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x4c2b1f);}var lc=/\W|_/g;function cc(_0x26aaae){return _0x26aaae['split'](lc)['map']((_0x406ec9,t)=>_0x406ec9['charAt'](0x0)[t>0x0?'toUpperCase':'toLowerCase']()+_0x406ec9['slice'](0x1))['join']('');}function Tn(_0x5b0537,{ignoreKeys:_0xf8d4ce}={'ignoreKeys':[]}){return Array['isArray'](_0x5b0537)?_0x5b0537['map'](t=>qt(t,{'ignoreKeys':_0xf8d4ce})):_0x5b0537;}function qt(_0x4baf55,{ignoreKeys:_0x1ce975}={'ignoreKeys':[]}){if(Array['isArray'](_0x4baf55))return Tn(_0x4baf55,{'ignoreKeys':_0x1ce975});if(!wn(_0x4baf55))return _0x4baf55;let t={};for(let _0xb3d34d of Object['keys'](_0x4baf55)){let _0x558197=_0x4baf55[_0xb3d34d];_0x1ce975['includes'](_0xb3d34d)?t[_0xb3d34d]=_0x558197:(wn(_0x558197)?_0x558197=qt(_0x558197,{'ignoreKeys':_0x1ce975}):Array['isArray'](_0x558197)&&(_0x558197=Tn(_0x558197,{'ignoreKeys':_0x1ce975})),t[cc(_0xb3d34d)]=_0x558197);}return t;}var uc=_0x1aef4f=>new Promise(_0x3a9b29=>setTimeout(_0x3a9b29,_0x1aef4f));function $o({libraryName:_0xa4d459,libraryVersion:_0x2ffc4e,userAgent:t,publicKey:_0x1b8da6='',integration:_0x26c6f9=''}){let _0x4f3da0='JavaScript';return'string'==typeof t?t:'function'==typeof t?t({'publicKey':_0x1b8da6,'libraryName':_0xa4d459,'libraryVersion':_0x2ffc4e,'languageName':_0x4f3da0,'integration':_0x26c6f9}):[_0xa4d459,_0x2ffc4e,_0x1b8da6]['filter'](Boolean)['join']('/')+'\x20('+[_0x4f3da0,_0x26c6f9]['filter'](Boolean)['join'](';\x20')+')';}var dc={'factor':0x2,'time':0x64};function pc(_0x3997f3,_0x18750c=dc){let t=0x0;return function _0x540e48(_0x1990b1){let _0x4640d7=Math['round'](_0x18750c['time']*_0x18750c['factor']**t);return _0x1990b1({'attempt':t,'retry':_0x48676e=>uc(_0x48676e??_0x4640d7)['then'](()=>(t+=0x1,_0x540e48(_0x1990b1)))});}(_0x3997f3);}var ve=class extends Error{},Le=class e extends ve{['originalProgressEvent'];constructor(_0x5d0d79){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x5d0d79;}},ur=(_0x4bbcc3,_0x1fc4ed)=>{_0x4bbcc3&&(_0x4bbcc3['aborted']?Promise['resolve']()['then'](_0x1fc4ed):_0x4bbcc3['addEventListener']('abort',()=>_0x1fc4ed(),{'once':!0x0}));},ee=class e extends ve{['isCancel']=!0x0;constructor(_0x404958='Request\x20canceled'){super(_0x404958),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}},hc=0x1f4,Cn=({check:_0x5a7b11,interval:_0x2e623c=hc,timeout:t,signal:_0x431ad2})=>new Promise((_0x2fad97,_0x30b3a3)=>{let _0x3b767e,_0x2edd84;ur(_0x431ad2,()=>{_0x3b767e&&clearTimeout(_0x3b767e),_0x30b3a3(new ee('Poll\x20cancelled'));}),t&&(_0x2edd84=setTimeout(()=>{_0x3b767e&&clearTimeout(_0x3b767e),_0x30b3a3(new ee('Timed\x20out'));},t));let _0x5183dc=()=>{try{Promise['resolve'](_0x5a7b11(_0x431ad2))['then'](_0x112a7b=>{_0x112a7b?(_0x2edd84&&clearTimeout(_0x2edd84),_0x2fad97(_0x112a7b)):_0x3b767e=setTimeout(_0x5183dc,_0x2e623c);})['catch'](_0x3336ad=>{_0x2edd84&&clearTimeout(_0x2edd84),_0x30b3a3(_0x3336ad);});}catch(_0x1f19e0){_0x2edd84&&clearTimeout(_0x2edd84),_0x30b3a3(_0x1f19e0);}};_0x3b767e=setTimeout(_0x5183dc,0x0);}),L={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},dr='application/octet-stream',xn='original',re=({method:_0x556b03,url:_0x4554ca,data:t,headers:_0xf394fd={},signal:_0x3ed43c,onProgress:_0xf8da1d})=>new Promise((_0x372f74,_0xd499eb)=>{let _0x327368=new XMLHttpRequest(),_0xed07a=_0x556b03?.['toUpperCase']()||'GET',_0x4e4c43=!0x1;_0x327368['open'](_0xed07a,_0x4554ca,!0x0),_0xf394fd&&Object['entries'](_0xf394fd)['forEach'](_0x42c0fb=>{let [_0x577da5,_0x3af759]=_0x42c0fb;typeof _0x3af759<'u'&&!Array['isArray'](_0x3af759)&&_0x327368['setRequestHeader'](_0x577da5,_0x3af759);}),_0x327368['responseType']='text',ur(_0x3ed43c,()=>{_0x4e4c43=!0x0,_0x327368['abort'](),_0xd499eb(new ee());}),_0x327368['onload']=()=>{if(0xc8!=_0x327368['status'])_0xd499eb(new Error('Error\x20'+_0x327368['status']+':\x20'+_0x327368['statusText']));else{let _0x2575eb={'method':_0xed07a,'url':_0x4554ca,'data':t,'headers':_0xf394fd||void 0x0,'signal':_0x3ed43c,'onProgress':_0xf8da1d},_0x5905c4=_0x327368['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0xc72540={};_0x5905c4['forEach'](function(_0x4b6130){let _0x2bfa31=_0x4b6130['split'](':\x20'),_0x46b503=_0x2bfa31['shift'](),_0xffa60a=_0x2bfa31['join'](':\x20');_0x46b503&&typeof _0x46b503<'u'&&(_0xc72540[_0x46b503]=_0xffa60a);});let _0x139318=_0x327368['response'],_0x475a8b=_0x327368['status'];_0x372f74({'request':_0x2575eb,'data':_0x139318,'headers':_0xc72540,'status':_0x475a8b});}},_0x327368['onerror']=_0x2a5114=>{_0x4e4c43||_0xd499eb(new Le(_0x2a5114));},_0xf8da1d&&'function'==typeof _0xf8da1d&&(_0x327368['upload']['onprogress']=_0x5744b7=>{_0x5744b7['lengthComputable']?_0xf8da1d({'isComputable':!0x0,'value':_0x5744b7['loaded']/_0x5744b7['total']}):_0xf8da1d({'isComputable':!0x1});}),t?_0x327368['send'](t):_0x327368['send']();});function fc(_0x43b7f2,..._0x5b1217){return _0x43b7f2;}var mc=({name:_0x37a187})=>_0x37a187?[_0x37a187]:[],gc=fc,vc=()=>new FormData(),Sn=_0x42a691=>!0x1,pr=_0x102947=>typeof Blob<'u'&&_0x102947 instanceof Blob,hr=_0xdc5c11=>typeof File<'u'&&_0xdc5c11 instanceof File,fr=_0x471608=>!!_0x471608&&'object'==typeof _0x471608&&!Array['isArray'](_0x471608)&&'uri'in _0x471608&&'string'==typeof _0x471608['uri'],Ue=_0x48dda0=>pr(_0x48dda0)||hr(_0x48dda0)||Sn()||fr(_0x48dda0),yc=_0x118cb7=>'string'==typeof _0x118cb7||'number'==typeof _0x118cb7||typeof _0x118cb7>'u',bc=_0x279b1a=>!!_0x279b1a&&'object'==typeof _0x279b1a&&!Array['isArray'](_0x279b1a),wc=_0x1c420d=>!!_0x1c420d&&'object'==typeof _0x1c420d&&'data'in _0x1c420d&&Ue(_0x1c420d['data']);function An(_0x4fdcc0,_0x325d54,t){if(Array['isArray'](t)){for(let _0x53fa6e of t)An(_0x4fdcc0,_0x325d54+'[]',_0x53fa6e);}else{if(wc(t)){let {name:_0x49b936,contentType:_0x170be1}=t,_0x18b7da=gc(t['data'],_0x49b936,_0x170be1??dr),_0x52a08f=mc({'name':_0x49b936});_0x4fdcc0['push']([_0x325d54,_0x18b7da,..._0x52a08f]);}else{if(bc(t)){for(let [_0x318088,_0x499b99]of Object['entries'](t))typeof _0x499b99<'u'&&_0x4fdcc0['push']([_0x325d54+'['+_0x318088+']',String(_0x499b99)]);}else yc(t)&&t&&_0x4fdcc0['push']([_0x325d54,t['toString']()]);}}}function Tc(_0x5365b7){let _0x107a90=[];for(let [t,_0x19a994]of Object['entries'](_0x5365b7))An(_0x107a90,t,_0x19a994);return _0x107a90;}function mr(_0x5e3b0b){let _0x3677b9=vc(),t=Tc(_0x5e3b0b);for(let _0x5c58a5 of t){let [_0x52dc2f,_0x17ebe8,..._0x9f8d99]=_0x5c58a5;_0x3677b9['append'](_0x52dc2f,_0x17ebe8,..._0x9f8d99);}return _0x3677b9;}var st=class e extends ve{['code'];['request'];['response'];['headers'];constructor(_0x469303,t,_0x201f39,_0x56437b,_0xb4ea30){super(),this['name']='UploadError',this['message']=_0x469303,this['code']=t,this['request']=_0x201f39,this['response']=_0x56437b,this['headers']=_0xb4ea30,Object['setPrototypeOf'](this,e['prototype']);}},Ec=_0x11734d=>{let _0x5efe6a=new URLSearchParams();for(let [t,_0x40cf65]of Object['entries'](_0x11734d))_0x40cf65&&'object'==typeof _0x40cf65&&!Array['isArray'](_0x40cf65)?Object['entries'](_0x40cf65)['filter'](_0xf7fe46=>_0xf7fe46[0x1]??!0x1)['forEach'](_0x4d5d19=>_0x5efe6a['set'](t+'['+_0x4d5d19[0x0]+']',String(_0x4d5d19[0x1]))):Array['isArray'](_0x40cf65)?_0x40cf65['forEach'](_0x27e772=>{_0x5efe6a['append'](t+'[]',_0x27e772);}):'string'==typeof _0x40cf65&&_0x40cf65?_0x5efe6a['set'](t,_0x40cf65):'number'==typeof _0x40cf65&&_0x5efe6a['set'](t,_0x40cf65['toString']());return _0x5efe6a['toString']();},Gt=(_0xfcdc1a,_0x5d1da4,t)=>{let _0x33c095=new URL(_0xfcdc1a);return _0x33c095['pathname']=(_0x33c095['pathname']+_0x5d1da4)['replace']('//','/'),t&&(_0x33c095['search']=Ec(t)),_0x33c095['toString']();},Cc='6.18.4',xc='UploadcareUploadClient',Sc=Cc;function be(_0xd48ca8){return $o({'libraryName':xc,'libraryVersion':Sc,..._0xd48ca8});}var Ac='RequestThrottledError',En=0x3a98,kc=0x3e8;function Mc(_0x4f4c1f){let {headers:_0x38bae8}=_0x4f4c1f||{};if(!_0x38bae8||'string'!=typeof _0x38bae8['retry-after'])return En;let t=parseInt(_0x38bae8['retry-after'],0xa);return Number['isFinite'](t)?0x3e8*t:En;}function oe(_0x56bce3,_0x127b2b){let {retryThrottledRequestMaxTimes:t,retryNetworkErrorMaxTimes:_0xb8a7fa}=_0x127b2b;return pc(({attempt:_0x4a9e32,retry:_0x26fc61})=>_0x56bce3()['catch'](_0x28dcd1=>{if('response'in _0x28dcd1&&_0x28dcd1?.['code']===Ac&&_0x4a9e32<t)return _0x26fc61(Mc(_0x28dcd1));if(_0x28dcd1 instanceof Le&&_0x4a9e32<_0xb8a7fa)return _0x26fc61((_0x4a9e32+0x1)*kc);throw _0x28dcd1;}));}var kn=_0xa62cdd=>{let _0x5ce5d7='';return(pr(_0xa62cdd)||hr(_0xa62cdd)||fr(_0xa62cdd))&&(_0x5ce5d7=_0xa62cdd['type']),_0x5ce5d7||dr;},Mn=_0x97b49a=>{let _0x2fbd46='';return hr(_0x97b49a)&&_0x97b49a['name']?_0x2fbd46=_0x97b49a['name']:pr(_0x97b49a)||Sn()?_0x2fbd46='':fr(_0x97b49a)&&_0x97b49a['name']&&(_0x2fbd46=_0x97b49a['name']),_0x2fbd46||xn;},Po,o,ct;function Do(_0xf70dfb){return typeof _0xf70dfb>'u'||'auto'===_0xf70dfb?'auto':_0xf70dfb?'1':'0';}function Ic(_0x28df1a,{publicKey:_0x61267d,fileName:t,contentType:_0x1be7a,baseURL:_0x2c87b3=L['baseURL'],secureSignature:_0x479e5d,secureExpire:_0x85836b,store:_0x26a4b3,signal:_0x10e995,onProgress:_0x37837d,source:_0x143d95='local',integration:_0x62ddef,userAgent:_0x9a622,retryThrottledRequestMaxTimes:_0x2b910c=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x296627=L['retryNetworkErrorMaxTimes'],metadata:_0x371e32}){return oe(()=>re({'method':'POST','url':Gt(_0x2c87b3,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':be({'publicKey':_0x61267d,'integration':_0x62ddef,'userAgent':_0x9a622})},'data':mr({'file':{'data':_0x28df1a,'name':t||Mn(_0x28df1a),'contentType':_0x1be7a||kn(_0x28df1a)},'UPLOADCARE_PUB_KEY':_0x61267d,'UPLOADCARE_STORE':Do(_0x26a4b3),'signature':_0x479e5d,'expire':_0x85836b,'source':_0x143d95,'metadata':_0x371e32}),'signal':_0x10e995,'onProgress':_0x37837d})['then'](({data:_0xba6e0f,headers:_0x21aeb5,request:_0x5d2476})=>{let _0x543fc5=qt(JSON['parse'](_0xba6e0f));if('error'in _0x543fc5)throw new st(_0x543fc5['error']['content'],_0x543fc5['error']['errorCode'],_0x5d2476,_0x543fc5,_0x21aeb5);return _0x543fc5;}),{'retryNetworkErrorMaxTimes':_0x296627,'retryThrottledRequestMaxTimes':_0x2b910c});}function Oc(_0x527152,{publicKey:_0x4efebd,baseURL:t=L['baseURL'],store:_0x211a12,fileName:_0x3a0c7f,checkForUrlDuplicates:_0x13fd32,saveUrlForRecurrentUploads:_0x51d606,secureSignature:_0x316fea,secureExpire:_0x1d0043,source:_0xbe8500='url',signal:_0x5c87e4,integration:_0x2c2aa7,userAgent:_0x40517d,retryThrottledRequestMaxTimes:_0x2d4498=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x201ddc=L['retryNetworkErrorMaxTimes'],metadata:_0x45e516}){return oe(()=>re({'method':'POST','headers':{'X-UC-User-Agent':be({'publicKey':_0x4efebd,'integration':_0x2c2aa7,'userAgent':_0x40517d})},'url':Gt(t,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x4efebd,'source_url':_0x527152,'store':Do(_0x211a12),'filename':_0x3a0c7f,'check_URL_duplicates':_0x13fd32?0x1:void 0x0,'save_URL_duplicates':_0x51d606?0x1:void 0x0,'signature':_0x316fea,'expire':_0x1d0043,'source':_0xbe8500,'metadata':_0x45e516}),'signal':_0x5c87e4})['then'](({data:_0x593e01,headers:_0x5966dc,request:_0x597de8})=>{let _0x545f08=qt(JSON['parse'](_0x593e01));if('error'in _0x545f08)throw new st(_0x545f08['error']['content'],_0x545f08['error']['errorCode'],_0x597de8,_0x545f08,_0x5966dc);return _0x545f08;}),{'retryNetworkErrorMaxTimes':_0x201ddc,'retryThrottledRequestMaxTimes':_0x2d4498});}o=Po||(Po={}),o['Token']='token',o['FileInfo']='file_info',function(_0x4bab0b){_0x4bab0b['Unknown']='unknown',_0x4bab0b['Waiting']='waiting',_0x4bab0b['Progress']='progress',_0x4bab0b['Error']='error',_0x4bab0b['Success']='success';}(ct||(ct={}));var Pc=_0x3e0c1b=>'status'in _0x3e0c1b&&_0x3e0c1b['status']===ct['Error'];function Lc(_0x4cac29,{publicKey:_0x21ff62,baseURL:t=L['baseURL'],signal:_0x46c747,integration:_0x5050d1,userAgent:_0x4549b3,retryThrottledRequestMaxTimes:_0x5ab482=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x543529=L['retryNetworkErrorMaxTimes']}={}){return oe(()=>re({'method':'GET','headers':_0x21ff62?{'X-UC-User-Agent':be({'publicKey':_0x21ff62,'integration':_0x5050d1,'userAgent':_0x4549b3})}:void 0x0,'url':Gt(t,'/from_url/status/',{'jsonerrors':0x1,'token':_0x4cac29}),'signal':_0x46c747})['then'](({data:_0x39144d,headers:_0x38128b,request:_0xd2360b})=>{let _0x4836f8=qt(JSON['parse'](_0x39144d));if('error'in _0x4836f8&&!Pc(_0x4836f8))throw new st(_0x4836f8['error']['content'],_0x4836f8['error']['errorCode'],_0xd2360b,_0x4836f8,_0x38128b);return _0x4836f8;}),{'retryNetworkErrorMaxTimes':_0x543529,'retryThrottledRequestMaxTimes':_0x5ab482});}function Uc(_0x41598b,{publicKey:_0x33004,baseURL:t=L['baseURL'],jsonpCallback:_0x7ce06f,secureSignature:_0x37bb9f,secureExpire:_0x54a40a,signal:_0xf25764,source:_0x3d751b,integration:_0x8ef053,userAgent:_0x47b9c2,retryThrottledRequestMaxTimes:_0x1bdd92=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x25ffaa=L['retryNetworkErrorMaxTimes']}){return oe(()=>re({'method':'POST','headers':{'X-UC-User-Agent':be({'publicKey':_0x33004,'integration':_0x8ef053,'userAgent':_0x47b9c2})},'url':Gt(t,'/group/',{'jsonerrors':0x1}),'data':mr({'files':_0x41598b,'callback':_0x7ce06f,'pub_key':_0x33004,'signature':_0x37bb9f,'expire':_0x54a40a,'source':_0x3d751b}),'signal':_0xf25764})['then'](({data:_0x2b73c2,headers:_0x3d5dfe,request:_0x532611})=>{let _0x22835b=qt(JSON['parse'](_0x2b73c2));if('error'in _0x22835b)throw new st(_0x22835b['error']['content'],_0x22835b['error']['errorCode'],_0x532611,_0x22835b,_0x3d5dfe);return _0x22835b;}),{'retryNetworkErrorMaxTimes':_0x25ffaa,'retryThrottledRequestMaxTimes':_0x1bdd92});}function In(_0x199808,{publicKey:_0x2866f4,baseURL:t=L['baseURL'],signal:_0x537db7,source:_0x551e48,integration:_0x312d1a,userAgent:_0x15bfef,retryThrottledRequestMaxTimes:_0xf8d5a7=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x587a3b=L['retryNetworkErrorMaxTimes']}){return oe(()=>re({'method':'GET','headers':{'X-UC-User-Agent':be({'publicKey':_0x2866f4,'integration':_0x312d1a,'userAgent':_0x15bfef})},'url':Gt(t,'/info/',{'jsonerrors':0x1,'pub_key':_0x2866f4,'file_id':_0x199808,'source':_0x551e48}),'signal':_0x537db7})['then'](({data:_0x29fa93,headers:_0x10cf59,request:_0x21a995})=>{let _0x10c63b=qt(JSON['parse'](_0x29fa93));if('error'in _0x10c63b)throw new st(_0x10c63b['error']['content'],_0x10c63b['error']['errorCode'],_0x21a995,_0x10c63b,_0x10cf59);return _0x10c63b;}),{'retryThrottledRequestMaxTimes':_0xf8d5a7,'retryNetworkErrorMaxTimes':_0x587a3b});}function Rc(_0x894337,{publicKey:_0x39648c,contentType:t,fileName:_0x56df72,multipartChunkSize:_0x3e7457=L['multipartChunkSize'],baseURL:_0xea8b5='',secureSignature:_0x4b53b0,secureExpire:_0x5a98a2,store:_0x567c39,signal:_0x266b12,source:_0x476303='local',integration:_0x4fb893,userAgent:_0x39c665,retryThrottledRequestMaxTimes:_0x1c44aa=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4e033e=L['retryNetworkErrorMaxTimes'],metadata:_0x59fdc3}){return oe(()=>re({'method':'POST','url':Gt(_0xea8b5,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':be({'publicKey':_0x39648c,'integration':_0x4fb893,'userAgent':_0x39c665})},'data':mr({'filename':_0x56df72,'size':_0x894337,'content_type':t||dr,'part_size':_0x3e7457,'UPLOADCARE_STORE':Do(_0x567c39),'UPLOADCARE_PUB_KEY':_0x39648c,'signature':_0x4b53b0,'expire':_0x5a98a2,'source':_0x476303,'metadata':_0x59fdc3}),'signal':_0x266b12})['then'](({data:_0x5cd034,headers:_0xe2f472,request:_0x57ad74})=>{let _0x3664d1=qt(JSON['parse'](_0x5cd034));if('error'in _0x3664d1)throw new st(_0x3664d1['error']['content'],_0x3664d1['error']['errorCode'],_0x57ad74,_0x3664d1,_0xe2f472);return _0x3664d1['parts']=Object['keys'](_0x3664d1['parts'])['map'](_0xa5a084=>_0x3664d1['parts'][Number(_0xa5a084)]),_0x3664d1;}),{'retryThrottledRequestMaxTimes':_0x1c44aa,'retryNetworkErrorMaxTimes':_0x4e033e});}function $c(_0x231d5a,_0x323831,{contentType:t,signal:_0x164db2,onProgress:_0x2a07a5,retryThrottledRequestMaxTimes:_0x300025=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x34b90e=L['retryNetworkErrorMaxTimes']}){return oe(()=>re({'method':'PUT','url':_0x323831,'data':_0x231d5a,'onProgress':_0x2a07a5,'signal':_0x164db2,'headers':{'Content-Type':t||dr}})['then'](_0x33623f=>(_0x2a07a5&&_0x2a07a5({'isComputable':!0x0,'value':0x1}),_0x33623f))['then'](({status:_0x15d13f})=>({'code':_0x15d13f})),{'retryThrottledRequestMaxTimes':_0x300025,'retryNetworkErrorMaxTimes':_0x34b90e});}function Dc(_0x38f39b,{publicKey:_0x912512,baseURL:t=L['baseURL'],source:_0x4859d1='local',signal:_0x24e885,integration:_0x3d6e98,userAgent:_0x21163f,retryThrottledRequestMaxTimes:_0x62cca8=L['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x3ec399=L['retryNetworkErrorMaxTimes']}){return oe(()=>re({'method':'POST','url':Gt(t,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':be({'publicKey':_0x912512,'integration':_0x3d6e98,'userAgent':_0x21163f})},'data':mr({'uuid':_0x38f39b,'UPLOADCARE_PUB_KEY':_0x912512,'source':_0x4859d1}),'signal':_0x24e885})['then'](({data:_0x707c9b,headers:_0x1513d6,request:_0x375031})=>{let _0x197e42=qt(JSON['parse'](_0x707c9b));if('error'in _0x197e42)throw new st(_0x197e42['error']['content'],_0x197e42['error']['errorCode'],_0x375031,_0x197e42,_0x1513d6);return _0x197e42;}),{'retryThrottledRequestMaxTimes':_0x62cca8,'retryNetworkErrorMaxTimes':_0x3ec399});}function Fo(_0x1c5c07,{publicKey:_0x4e3982,baseURL:t,source:_0x1d9b1a,integration:_0x498252,userAgent:_0x26e267,retryThrottledRequestMaxTimes:_0x4507dc,retryNetworkErrorMaxTimes:_0x53ff8d,signal:_0x58d30a,onProgress:_0x290437}){return Cn({'check':_0x35b96c=>In(_0x1c5c07,{'publicKey':_0x4e3982,'baseURL':t,'signal':_0x35b96c,'source':_0x1d9b1a,'integration':_0x498252,'userAgent':_0x26e267,'retryThrottledRequestMaxTimes':_0x4507dc,'retryNetworkErrorMaxTimes':_0x53ff8d})['then'](_0x5d63aa=>_0x5d63aa['isReady']?_0x5d63aa:(_0x290437&&_0x290437({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x58d30a});}function Fc(_0x5ccd06){return'defaultEffects'in _0x5ccd06;}var ye=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x579a68,{baseCDN:t=L['baseCDN'],fileName:_0x8d33c7}={}){let {uuid:_0x5c9393,s3Bucket:_0x33654e}=_0x579a68,_0x4e0f03=Gt(t,_0x5c9393+'/'),_0x1b8e35=_0x33654e?Gt('https://'+_0x33654e+'.s3.amazonaws.com/',_0x5c9393+'/'+_0x579a68['filename']):null;this['uuid']=_0x5c9393,this['name']=_0x8d33c7||_0x579a68['filename'],this['size']=_0x579a68['size'],this['isStored']=_0x579a68['isStored'],this['isImage']=_0x579a68['isImage'],this['mimeType']=_0x579a68['mimeType'],this['cdnUrl']=_0x4e0f03,this['originalFilename']=_0x579a68['originalFilename'],this['imageInfo']=_0x579a68['imageInfo'],this['videoInfo']=_0x579a68['videoInfo'],this['contentInfo']=_0x579a68['contentInfo'],this['metadata']=_0x579a68['metadata']||null,this['s3Bucket']=_0x33654e||null,this['s3Url']=_0x1b8e35,Fc(_0x579a68)&&(this['defaultEffects']=_0x579a68['defaultEffects']);}},Vc=(_0x1a1565,{publicKey:_0x484e13,fileName:t,baseURL:_0x3f9606,secureSignature:_0x1663e8,secureExpire:_0x20c045,store:_0x5961ad,contentType:_0x33973f,signal:_0x3205fe,onProgress:_0x1981b0,source:_0x3f8eb1,integration:_0x41bc62,userAgent:_0x3848c1,retryThrottledRequestMaxTimes:_0x2b5006,retryNetworkErrorMaxTimes:_0x299a87,baseCDN:_0x27af85,metadata:_0x2164d6})=>Ic(_0x1a1565,{'publicKey':_0x484e13,'fileName':t,'contentType':_0x33973f,'baseURL':_0x3f9606,'secureSignature':_0x1663e8,'secureExpire':_0x20c045,'store':_0x5961ad,'signal':_0x3205fe,'onProgress':_0x1981b0,'source':_0x3f8eb1,'integration':_0x41bc62,'userAgent':_0x3848c1,'retryThrottledRequestMaxTimes':_0x2b5006,'retryNetworkErrorMaxTimes':_0x299a87,'metadata':_0x2164d6})['then'](({file:_0x5a1095})=>Fo(_0x5a1095,{'publicKey':_0x484e13,'baseURL':_0x3f9606,'source':_0x3f8eb1,'integration':_0x41bc62,'userAgent':_0x3848c1,'retryThrottledRequestMaxTimes':_0x2b5006,'retryNetworkErrorMaxTimes':_0x299a87,'onProgress':_0x1981b0,'signal':_0x3205fe}))['then'](_0x2a97dc=>new ye(_0x2a97dc,{'baseCDN':_0x27af85})),Nc=(_0x2ef2b6,{publicKey:_0x4f496b,fileName:t,baseURL:_0xbb1aee,signal:_0x25f4db,onProgress:_0x417958,source:_0x22eb9d,integration:_0x4b5513,userAgent:_0x1216eb,retryThrottledRequestMaxTimes:_0x3f4997,retryNetworkErrorMaxTimes:_0x38c25e,baseCDN:_0x4c71e7})=>In(_0x2ef2b6,{'publicKey':_0x4f496b,'baseURL':_0xbb1aee,'signal':_0x25f4db,'source':_0x22eb9d,'integration':_0x4b5513,'userAgent':_0x1216eb,'retryThrottledRequestMaxTimes':_0x3f4997,'retryNetworkErrorMaxTimes':_0x38c25e})['then'](_0x167e52=>new ye(_0x167e52,{'baseCDN':_0x4c71e7,'fileName':t}))['then'](_0x29c679=>(_0x417958&&_0x417958({'isComputable':!0x0,'value':0x1}),_0x29c679)),_c=(_0x4da33b,{signal:_0x5e1cba}={})=>{let t=null,_0xfdb0f2=null,_0x61bcc=_0x4da33b['map'](()=>new AbortController());return ur(_0x5e1cba,()=>{_0x61bcc['forEach'](_0x262520=>_0x262520['abort']());}),Promise['all'](_0x4da33b['map']((_0x47f9b5,_0x3b219a)=>{let _0x498965=(_0x4ae634=>()=>{_0xfdb0f2=_0x4ae634,_0x61bcc['forEach']((_0x319f92,_0x41705f)=>_0x41705f!==_0x4ae634&&_0x319f92['abort']());})(_0x3b219a);return Promise['resolve']()['then'](()=>_0x47f9b5({'stopRace':_0x498965,'signal':_0x61bcc[_0x3b219a]['signal']}))['then'](_0x4e4010=>(_0x498965(),_0x4e4010))['catch'](_0x592b89=>(t=_0x592b89,null));}))['then'](_0x19556b=>{if(null===_0xfdb0f2)throw t;return _0x19556b[_0xfdb0f2];});},zc=window['WebSocket'],Lo=class{['events']=Object['create']({});['emit'](_0x2147f3,t){this['events'][_0x2147f3]?.['forEach'](_0x59da0d=>_0x59da0d(t));}['on'](_0x5184f3,t){this['events'][_0x5184f3]=this['events'][_0x5184f3]||[],this['events'][_0x5184f3]['push'](t);}['off'](_0x74de22,t){this['events'][_0x74de22]=t?this['events'][_0x74de22]['filter'](_0x510d54=>_0x510d54!==t):[];}},Bc=(_0x53dcf6,_0x16cfa8)=>'success'===_0x53dcf6?{'status':ct['Success'],..._0x16cfa8}:'progress'===_0x53dcf6?{'status':ct['Progress'],..._0x16cfa8}:{'status':ct['Error'],..._0x16cfa8},Uo=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Lo();['disconnectTimeoutId']=null;constructor(_0xebdc41,t=0x7530){this['key']=_0xebdc41,this['disconnectTime']=t;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){let _0x253b69='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new zc(_0x253b69),this['ws']['addEventListener']('error',t=>{this['emmitter']['emit']('error',new Error(t['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](t=>this['send'](t['event'],t['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',t=>{let _0x3837fd=JSON['parse'](t['data']['toString']());switch(_0x3837fd['event']){case'pusher:connection_established':this['emmitter']['emit']('connected',void 0x0);break;case'pusher:ping':this['send']('pusher:pong',{});break;case'progress':case'success':case'fail':this['emmitter']['emit'](_0x3837fd['channel'],Bc(_0x3837fd['event'],JSON['parse'](_0x3837fd['data'])));}});}}['disconnect'](){let _0x1b150b=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x1b150b();},this['disconnectTime']):_0x1b150b();}['send'](_0x4eb732,t){let _0x35265f=JSON['stringify']({'event':_0x4eb732,'data':t});this['ws']?.['send'](_0x35265f);}['subscribe'](_0x33080c,t){this['subscribers']+=0x1,this['connect']();let _0x3774ca='task-status-'+_0x33080c,_0x41cff1={'event':'pusher:subscribe','data':{'channel':_0x3774ca}};this['emmitter']['on'](_0x3774ca,t),this['isConnected']?this['send'](_0x41cff1['event'],_0x41cff1['data']):this['queue']['push'](_0x41cff1);}['unsubscribe'](_0x16be0e){this['subscribers']-=0x1;let t='task-status-'+_0x16be0e,_0x4dc2c2={'event':'pusher:unsubscribe','data':{'channel':t}};this['emmitter']['off'](t),this['isConnected']?this['send'](_0x4dc2c2['event'],_0x4dc2c2['data']):this['queue']=this['queue']['filter'](_0x1da3a4=>_0x1da3a4['data']['channel']!==t),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x5e33fa){return this['emmitter']['on']('error',_0x5e33fa),()=>this['emmitter']['off']('error',_0x5e33fa);}},Io=null,Vo=_0x57e1e9=>{if(!Io){let _0x5010eb=typeof window>'u'?0x0:0x7530;Io=new Uo(_0x57e1e9,_0x5010eb);}return Io;},Hc=_0x13cf8a=>{Vo(_0x13cf8a)['connect']();};function Kc({token:_0x238762,publicKey:_0x2c598c,baseURL:t,integration:_0x5c3af2,userAgent:_0x509fbc,retryThrottledRequestMaxTimes:_0x18ebb2,retryNetworkErrorMaxTimes:_0x41462b,onProgress:_0x5d6a61,signal:_0x379fa1}){return Cn({'check':_0x502fca=>Lc(_0x238762,{'publicKey':_0x2c598c,'baseURL':t,'integration':_0x5c3af2,'userAgent':_0x509fbc,'retryThrottledRequestMaxTimes':_0x18ebb2,'retryNetworkErrorMaxTimes':_0x41462b,'signal':_0x502fca})['then'](_0x2bae98=>{switch(_0x2bae98['status']){case ct['Error']:return new st(_0x2bae98['error'],_0x2bae98['errorCode']);case ct['Waiting']:return!0x1;case ct['Unknown']:return new st('Token\x20\x22'+_0x238762+'\x22\x20was\x20not\x20found.');case ct['Progress']:return _0x5d6a61&&('unknown'===_0x2bae98['total']?_0x5d6a61({'isComputable':!0x1}):_0x5d6a61({'isComputable':!0x0,'value':_0x2bae98['done']/_0x2bae98['total']})),!0x1;case ct['Success']:return _0x5d6a61&&_0x5d6a61({'isComputable':!0x0,'value':_0x2bae98['done']/_0x2bae98['total']}),_0x2bae98;default:throw new Error('Unknown\x20status');}}),'signal':_0x379fa1});}var jc=({token:_0x1a8d93,pusherKey:_0x39a83d,signal:t,onProgress:_0x406169})=>new Promise((_0xf0bb30,_0x367e1a)=>{let _0x140396=Vo(_0x39a83d),_0x59c45c=_0x140396['onError'](_0x367e1a),_0x5f03e5=()=>{_0x59c45c(),_0x140396['unsubscribe'](_0x1a8d93);};ur(t,()=>{_0x5f03e5(),_0x367e1a(new ee('pusher\x20cancelled'));}),_0x140396['subscribe'](_0x1a8d93,_0x58c4f5=>{switch(_0x58c4f5['status']){case ct['Progress']:_0x406169&&('unknown'===_0x58c4f5['total']?_0x406169({'isComputable':!0x1}):_0x406169({'isComputable':!0x0,'value':_0x58c4f5['done']/_0x58c4f5['total']}));break;case ct['Success']:_0x5f03e5(),_0x406169&&_0x406169({'isComputable':!0x0,'value':_0x58c4f5['done']/_0x58c4f5['total']}),_0xf0bb30(_0x58c4f5);break;case ct['Error']:_0x5f03e5(),_0x367e1a(new st(_0x58c4f5['msg'],_0x58c4f5['error_code']));}});}),Gc=(_0x464c97,{publicKey:_0x3e2ebe,fileName:t,baseURL:_0x2e84f3,baseCDN:_0x1c20d9,checkForUrlDuplicates:_0x41589b,saveUrlForRecurrentUploads:_0x531fdf,secureSignature:_0x976f4f,secureExpire:_0x12c119,store:_0x18add2,signal:_0x515f90,onProgress:_0x1e7aa3,source:_0x3c6d9a,integration:_0x472182,userAgent:_0x2f0519,retryThrottledRequestMaxTimes:_0x1cf61b,pusherKey:_0x23c256=L['pusherKey'],metadata:_0x3a7b9e})=>Promise['resolve'](Hc(_0x23c256))['then'](()=>Oc(_0x464c97,{'publicKey':_0x3e2ebe,'fileName':t,'baseURL':_0x2e84f3,'checkForUrlDuplicates':_0x41589b,'saveUrlForRecurrentUploads':_0x531fdf,'secureSignature':_0x976f4f,'secureExpire':_0x12c119,'store':_0x18add2,'signal':_0x515f90,'source':_0x3c6d9a,'integration':_0x472182,'userAgent':_0x2f0519,'retryThrottledRequestMaxTimes':_0x1cf61b,'metadata':_0x3a7b9e}))['catch'](_0x1c0a8a=>(Vo(_0x23c256)?.['disconnect'](),Promise['reject'](_0x1c0a8a)))['then'](_0x1d84c5=>_0x1d84c5['type']===Po['FileInfo']?_0x1d84c5:_c([({signal:_0x295459})=>Kc({'token':_0x1d84c5['token'],'publicKey':_0x3e2ebe,'baseURL':_0x2e84f3,'integration':_0x472182,'userAgent':_0x2f0519,'retryThrottledRequestMaxTimes':_0x1cf61b,'onProgress':_0x1e7aa3,'signal':_0x295459}),({signal:_0x61aed})=>jc({'token':_0x1d84c5['token'],'pusherKey':_0x23c256,'signal':_0x61aed,'onProgress':_0x1e7aa3})],{'signal':_0x515f90}))['then'](_0x35a4ae=>{if(_0x35a4ae instanceof st)throw _0x35a4ae;return _0x35a4ae;})['then'](_0x5d5641=>Fo(_0x5d5641['uuid'],{'publicKey':_0x3e2ebe,'baseURL':_0x2e84f3,'integration':_0x472182,'userAgent':_0x2f0519,'retryThrottledRequestMaxTimes':_0x1cf61b,'onProgress':_0x1e7aa3,'signal':_0x515f90}))['then'](_0x159afd=>new ye(_0x159afd,{'baseCDN':_0x1c20d9})),Oo=new WeakMap(),qc=async _0x363f1f=>{if(Oo['has'](_0x363f1f))return Oo['get'](_0x363f1f);let _0x5f453a=await fetch(_0x363f1f['uri'])['then'](t=>t['blob']());return Oo['set'](_0x363f1f,_0x5f453a),_0x5f453a;},On=async _0x1aa863=>{if(hr(_0x1aa863)||pr(_0x1aa863))return _0x1aa863['size'];if(fr(_0x1aa863))return(await qc(_0x1aa863))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},Wc=(_0x23b718,_0x561ba8=L['multipartMinFileSize'])=>_0x23b718>=_0x561ba8,Pn=_0x2ba06d=>{let t=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!Ue(_0x2ba06d)&&t['test'](_0x2ba06d);},No=_0x493561=>{let t=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!Ue(_0x493561)&&t['test'](_0x493561);},Zc=(_0x30fb5c,_0x416de9)=>new Promise((t,_0xb6715f)=>{let _0x525f11=[],_0x438e04=!0x1,_0x59a9bb=_0x416de9['length'],_0xde4ba8=[..._0x416de9],_0x5dd098=()=>{let _0x3e9d80=_0x416de9['length']-_0xde4ba8['length'],_0x14934a=_0xde4ba8['shift']();_0x14934a&&_0x14934a()['then'](_0x43ab53=>{_0x438e04||(_0x525f11[_0x3e9d80]=_0x43ab53,_0x59a9bb-=0x1,_0x59a9bb?_0x5dd098():t(_0x525f11));})['catch'](_0x50fbe0=>{_0x438e04=!0x0,_0xb6715f(_0x50fbe0);});};for(let _0x206902=0x0;_0x206902<_0x30fb5c;_0x206902++)_0x5dd098();}),Yc=(_0x5bab6d,_0x540048,t,_0x75c986)=>{let _0x45ef96=_0x75c986*_0x540048,_0x5be2da=Math['min'](_0x45ef96+_0x75c986,t);return _0x5bab6d['slice'](_0x45ef96,_0x5be2da);},Xc=async(_0xa813d,_0x20a35f,t)=>_0x503756=>Yc(_0xa813d,_0x503756,_0x20a35f,t),Qc=(_0x4add8f,_0x5f0cb3,{publicKey:t,contentType:_0x36eaba,onProgress:_0x19a709,signal:_0x554dae,integration:_0x2db35d,retryThrottledRequestMaxTimes:_0x58b3fd,retryNetworkErrorMaxTimes:_0x24459c})=>$c(_0x4add8f,_0x5f0cb3,{'contentType':_0x36eaba,'onProgress':_0x19a709,'signal':_0x554dae,'retryThrottledRequestMaxTimes':_0x58b3fd,'retryNetworkErrorMaxTimes':_0x24459c}),Jc=async(_0x2e0e88,{publicKey:_0x2661bb,fileName:t,fileSize:_0x3d4926,baseURL:_0x2c8c69,secureSignature:_0x588bf8,secureExpire:_0x43c11a,store:_0x4fd94e,signal:_0xb789d3,onProgress:_0x1f67e5,source:_0x3befb0,integration:_0xbf9e90,userAgent:_0x1dc769,retryThrottledRequestMaxTimes:_0xeca644,retryNetworkErrorMaxTimes:_0x4b064d,contentType:_0x151227,multipartChunkSize:_0x733738=L['multipartChunkSize'],maxConcurrentRequests:_0x25b6fd=L['maxConcurrentRequests'],baseCDN:_0x545712,metadata:_0x1a7727})=>{let _0x64a7f0,_0x186673=_0x3d4926??await On(_0x2e0e88),_0x2c4e46=(_0x422c6b,_0x35285e)=>{if(!_0x1f67e5)return;_0x64a7f0||(_0x64a7f0=Array(_0x422c6b)['fill'](0x0));let _0x85ff91=_0x313b02=>_0x313b02['reduce']((_0x559711,_0x4e7901)=>_0x559711+_0x4e7901,0x0);return _0x28a347=>{_0x28a347['isComputable']&&(_0x64a7f0[_0x35285e]=_0x28a347['value'],_0x1f67e5({'isComputable':!0x0,'value':_0x85ff91(_0x64a7f0)/_0x422c6b}));};};return _0x151227||=kn(_0x2e0e88),Rc(_0x186673,{'publicKey':_0x2661bb,'contentType':_0x151227,'fileName':t||Mn(_0x2e0e88),'baseURL':_0x2c8c69,'secureSignature':_0x588bf8,'secureExpire':_0x43c11a,'store':_0x4fd94e,'signal':_0xb789d3,'source':_0x3befb0,'integration':_0xbf9e90,'userAgent':_0x1dc769,'retryThrottledRequestMaxTimes':_0xeca644,'retryNetworkErrorMaxTimes':_0x4b064d,'metadata':_0x1a7727,'multipartChunkSize':_0x733738})['then'](async({uuid:_0x49f58a,parts:_0x1ede57})=>{let _0x3760ea=await Xc(_0x2e0e88,_0x186673,_0x733738);return Promise['all']([_0x49f58a,Zc(_0x25b6fd,_0x1ede57['map']((_0x1dbf80,_0x2c724f)=>()=>Qc(_0x3760ea(_0x2c724f),_0x1dbf80,{'publicKey':_0x2661bb,'contentType':_0x151227,'onProgress':_0x2c4e46(_0x1ede57['length'],_0x2c724f),'signal':_0xb789d3,'integration':_0xbf9e90,'retryThrottledRequestMaxTimes':_0xeca644,'retryNetworkErrorMaxTimes':_0x4b064d})))]);})['then'](([_0x51b32a])=>Dc(_0x51b32a,{'publicKey':_0x2661bb,'baseURL':_0x2c8c69,'source':_0x3befb0,'integration':_0xbf9e90,'userAgent':_0x1dc769,'retryThrottledRequestMaxTimes':_0xeca644,'retryNetworkErrorMaxTimes':_0x4b064d}))['then'](_0x16bd69=>_0x16bd69['isReady']?_0x16bd69:Fo(_0x16bd69['uuid'],{'publicKey':_0x2661bb,'baseURL':_0x2c8c69,'source':_0x3befb0,'integration':_0xbf9e90,'userAgent':_0x1dc769,'retryThrottledRequestMaxTimes':_0xeca644,'retryNetworkErrorMaxTimes':_0x4b064d,'onProgress':_0x1f67e5,'signal':_0xb789d3}))['then'](_0x1959ac=>new ye(_0x1959ac,{'baseCDN':_0x545712}));};async function _o(_0x5062d9,{publicKey:_0x38f4b2,fileName:t,baseURL:_0x42b172=L['baseURL'],secureSignature:_0x2fa02a,secureExpire:_0x30eb35,store:_0x1e9199,signal:_0x2d5e72,onProgress:_0x43b6e2,source:_0x4c2c9c,integration:_0x16b087,userAgent:_0x559d1e,retryThrottledRequestMaxTimes:_0x389c02,retryNetworkErrorMaxTimes:_0x52040d,contentType:_0x58608c,multipartMinFileSize:_0x335bf7,multipartChunkSize:_0xd30a96,maxConcurrentRequests:_0x1e34f3,baseCDN:_0x3e60f3=L['baseCDN'],checkForUrlDuplicates:_0x47bcfc,saveUrlForRecurrentUploads:_0x3801fd,pusherKey:_0x3ae555,metadata:_0x78c3b}){if(Ue(_0x5062d9)){let _0x5c9318=await On(_0x5062d9);return Wc(_0x5c9318,_0x335bf7)?Jc(_0x5062d9,{'publicKey':_0x38f4b2,'contentType':_0x58608c,'multipartChunkSize':_0xd30a96,'fileSize':_0x5c9318,'fileName':t,'baseURL':_0x42b172,'secureSignature':_0x2fa02a,'secureExpire':_0x30eb35,'store':_0x1e9199,'signal':_0x2d5e72,'onProgress':_0x43b6e2,'source':_0x4c2c9c,'integration':_0x16b087,'userAgent':_0x559d1e,'maxConcurrentRequests':_0x1e34f3,'retryThrottledRequestMaxTimes':_0x389c02,'retryNetworkErrorMaxTimes':_0x52040d,'baseCDN':_0x3e60f3,'metadata':_0x78c3b}):Vc(_0x5062d9,{'publicKey':_0x38f4b2,'fileName':t,'contentType':_0x58608c,'baseURL':_0x42b172,'secureSignature':_0x2fa02a,'secureExpire':_0x30eb35,'store':_0x1e9199,'signal':_0x2d5e72,'onProgress':_0x43b6e2,'source':_0x4c2c9c,'integration':_0x16b087,'userAgent':_0x559d1e,'retryThrottledRequestMaxTimes':_0x389c02,'retryNetworkErrorMaxTimes':_0x52040d,'baseCDN':_0x3e60f3,'metadata':_0x78c3b});}if(No(_0x5062d9))return Gc(_0x5062d9,{'publicKey':_0x38f4b2,'fileName':t,'baseURL':_0x42b172,'baseCDN':_0x3e60f3,'checkForUrlDuplicates':_0x47bcfc,'saveUrlForRecurrentUploads':_0x3801fd,'secureSignature':_0x2fa02a,'secureExpire':_0x30eb35,'store':_0x1e9199,'signal':_0x2d5e72,'onProgress':_0x43b6e2,'source':_0x4c2c9c,'integration':_0x16b087,'userAgent':_0x559d1e,'retryThrottledRequestMaxTimes':_0x389c02,'pusherKey':_0x3ae555,'metadata':_0x78c3b});if(Pn(_0x5062d9))return Nc(_0x5062d9,{'publicKey':_0x38f4b2,'fileName':t,'baseURL':_0x42b172,'signal':_0x2d5e72,'onProgress':_0x43b6e2,'source':_0x4c2c9c,'integration':_0x16b087,'userAgent':_0x559d1e,'retryThrottledRequestMaxTimes':_0x389c02,'retryNetworkErrorMaxTimes':_0x52040d,'baseCDN':_0x3e60f3});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x5062d9+'\x22\x20is\x20not\x20supported');}var tu=(_0x356abe,_0x59c9d9)=>{try{let t=new URL(_0x356abe),_0x38e724=new URL(_0x59c9d9);return t['protocol']=_0x38e724['protocol'],t['hostname']=_0x38e724['hostname'],t['port']=_0x38e724['port'],t['toString']();}catch{return _0x356abe;}},Ro=class{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0x2d525a,{baseCDN:t=L['baseCDN']}={}){this['uuid']=_0x2d525a['id'],this['filesCount']=_0x2d525a['filesCount'];let _0x5aa2f2=_0x2d525a['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x5aa2f2)['reduce']((_0x160625,_0x3d05ff)=>_0x160625+_0x3d05ff['size'],0x0),this['isStored']=!!_0x2d525a['datetimeStored'],this['isImage']=!!Object['values'](_0x5aa2f2)['filter'](_0x5c13ec=>_0x5c13ec['isImage'])['length'],this['cdnUrl']=tu(_0x2d525a['cdnUrl'],t),this['files']=_0x5aa2f2['map'](_0x55bb7f=>new ye(_0x55bb7f,{'baseCDN':t})),this['createdAt']=_0x2d525a['datetimeCreated'],this['storedAt']=_0x2d525a['datetimeStored'];}},eu=_0x2e0c63=>{for(let _0x27ba77 of _0x2e0c63)if(!Ue(_0x27ba77))return!0x1;return!0x0;},iu=_0x1f9976=>{for(let _0x5892c3 of _0x1f9976)if(!Pn(_0x5892c3))return!0x1;return!0x0;},ru=_0x472f6c=>{for(let _0x16dd5d of _0x472f6c)if(!No(_0x16dd5d))return!0x1;return!0x0;};function Ln(_0x1a02f0,{publicKey:_0x21ede7,fileName:t,baseURL:_0x2f7871=L['baseURL'],secureSignature:_0x4a27a7,secureExpire:_0x45de00,store:_0x37ec9a,signal:_0xd4d6c5,onProgress:_0xbb87b7,source:_0x5b8fda,integration:_0x26be4b,userAgent:_0x53a888,retryThrottledRequestMaxTimes:_0x176eb1,retryNetworkErrorMaxTimes:_0x4f492b,contentType:_0x606a9a,multipartChunkSize:_0x56b73e=L['multipartChunkSize'],baseCDN:_0x518624=L['baseCDN'],checkForUrlDuplicates:_0x30686e,saveUrlForRecurrentUploads:_0x38e8aa,jsonpCallback:_0x58a021}){if(!eu(_0x1a02f0)&&!ru(_0x1a02f0)&&!iu(_0x1a02f0))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x1a02f0+'\x22\x20is\x20not\x20supported');let _0x57fea4,_0x330cb1=!0x0,_0x2cc8d1=_0x1a02f0['length'],_0x39c110=(_0x34fffd,_0xf9bc5a)=>{if(!_0xbb87b7)return;_0x57fea4||(_0x57fea4=Array(_0x34fffd)['fill'](0x0));let _0x3583c4=_0x1b6f2d=>_0x1b6f2d['reduce']((_0x5db828,_0x36e509)=>_0x5db828+_0x36e509)/_0x34fffd;return _0x572208=>{if(!_0x572208['isComputable']||!_0x330cb1)return _0x330cb1=!0x1,void _0xbb87b7({'isComputable':!0x1});_0x57fea4[_0xf9bc5a]=_0x572208['value'],_0xbb87b7({'isComputable':!0x0,'value':_0x3583c4(_0x57fea4)});};};return Promise['all'](_0x1a02f0['map']((_0x1387d1,_0x1fe2c0)=>Ue(_0x1387d1)||No(_0x1387d1)?_o(_0x1387d1,{'publicKey':_0x21ede7,'fileName':t,'baseURL':_0x2f7871,'secureSignature':_0x4a27a7,'secureExpire':_0x45de00,'store':_0x37ec9a,'signal':_0xd4d6c5,'onProgress':_0x39c110(_0x2cc8d1,_0x1fe2c0),'source':_0x5b8fda,'integration':_0x26be4b,'userAgent':_0x53a888,'retryThrottledRequestMaxTimes':_0x176eb1,'retryNetworkErrorMaxTimes':_0x4f492b,'contentType':_0x606a9a,'multipartChunkSize':_0x56b73e,'baseCDN':_0x518624,'checkForUrlDuplicates':_0x30686e,'saveUrlForRecurrentUploads':_0x38e8aa})['then'](_0x599b2f=>_0x599b2f['uuid']):_0x1387d1))['then'](_0x4cc12e=>Uc(_0x4cc12e,{'publicKey':_0x21ede7,'baseURL':_0x2f7871,'jsonpCallback':_0x58a021,'secureSignature':_0x4a27a7,'secureExpire':_0x45de00,'signal':_0xd4d6c5,'source':_0x5b8fda,'integration':_0x26be4b,'userAgent':_0x53a888,'retryThrottledRequestMaxTimes':_0x176eb1,'retryNetworkErrorMaxTimes':_0x4f492b})['then'](_0x48e520=>new Ro(_0x48e520,{'baseCDN':_0x518624}))['then'](_0xec8b08=>(_0xbb87b7&&_0xbb87b7({'isComputable':!0x0,'value':0x1}),_0xec8b08)));}var ie=class{['Vi']=0x1;['io']=[];['_i']=0x0;['ro']=new Map();['oo']=new Map();constructor(_0x17bd81){this['Vi']=_0x17bd81;}['run'](){let _0x360ddf=this['Vi']-this['_i'];for(let t=0x0;t<_0x360ddf;t++){let _0x3be86b=this['io']['shift']();if(!_0x3be86b)return;let _0x3b0630=this['ro']['get'](_0x3be86b),_0x40f1d9=this['oo']['get'](_0x3be86b);if(!_0x3b0630||!_0x40f1d9)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_i']+=0x1,_0x3be86b()['finally'](()=>{this['ro']['delete'](_0x3be86b),this['oo']['delete'](_0x3be86b),this['_i']-=0x1,this['run']();})['then'](_0x109138=>_0x3b0630(_0x109138))['catch'](_0x5d5134=>_0x40f1d9(_0x5d5134));}}['add'](_0x3d4449,{autoRun:t}={'autoRun':!0x0}){return new Promise((_0x1e7d64,_0x33c47a)=>{this['ro']['set'](_0x3d4449,_0x1e7d64),this['oo']['set'](_0x3d4449,_0x33c47a),this['io']['push'](_0x3d4449),t&&this['run']();});}get['pending'](){return this['io']['length'];}get['running'](){return this['_i'];}set['concurrency'](_0x336cb9){this['Vi']=_0x336cb9,this['run']();}get['concurrency'](){return this['Vi'];}},zo=()=>({}),Bo=_0x2097ea=>({...zo(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x2097ea['modalManager']?.['close'](_0x2097ea['$']['*currentActivity']),_0x2097ea['pub']('*currentActivity',null);}}),Ho=_0x19dc9d=>({...Bo(_0x19dc9d),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new ie(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set()}),Un=_0x262fcf=>({...Ho(_0x262fcf),'*solution':null,'*lazyPlugins':null}),F=Object['freeze']({'START_FROM':'start-from','CAMERA':'camera','UPLOAD_LIST':'upload-list','URL':'url','CLOUD_IMG_EDIT':'cloud-image-edit','EXTERNAL':'external'}),gr=class extends j{constructor(t){super(t),this['scopes']=new Set(),this['listener']=this['_c']['bind'](this),window['addEventListener']('paste',this['listener']);}['openUploadList'](){this['i']['api']['setCurrentActivity'](F['UPLOAD_LIST']),this['i']['api']['setModalState'](!0x0);}async['_c'](t){if(t['clipboardData']){for(let _0x16591e of this['scopes'])if(_0x16591e['isConnected'])switch(this['ze']['pasteScope']){case'global':await this['handlePaste'](t);break;case'local':if(!_0x16591e['contains'](t['target']))continue;await this['handlePaste'](t);break;default:continue;}}}async['handlePaste'](t){if(!t['clipboardData'])return;let _0x388989=Array['from'](t['clipboardData']['items']),_0x50b90f=_0x388989['map'](_0x15b264=>_0x15b264['getAsFile']())['filter'](_0x34a32d=>null!==_0x34a32d),_0x2c9093=_0x388989['filter'](_0x60c38a=>'string'===_0x60c38a['kind']&&'text/plain'===_0x60c38a['type'])['map'](_0x2244e2=>new Promise(_0x449f64=>{_0x2244e2['getAsString'](_0x4f9b30=>{_0x449f64(_0x4f9b30);});}));_0x50b90f['length']>0x0&&(_0x50b90f['forEach'](_0x19342b=>{this['i']['api']['addFileFromObject'](_0x19342b,{'source':'clipboard'});}),this['openUploadList']()),_0x2c9093['length']>0x0&&((await Promise['all'](_0x2c9093))['forEach'](_0x178d3d=>{this['i']['api']['addFileFromUrl'](_0x178d3d,{'source':'clipboard'});}),this['openUploadList']());}['registerBlock'](t){return this['scopes']['add'](t),()=>{this['scopes']['delete'](t);};}['destroy'](){super['destroy'](),window['removeEventListener']('paste',this['listener']),this['scopes']['clear']();}},ou={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function hi(_0x548056,_0x440c6a){_0x440c6a['tabIndex']=0x0,_0x440c6a['focus'](),_0x548056['tabIndex']=-0x1;}function Ko(_0xd814c){let _0x4433ae=_0xd814c['role']||_0xd814c['type']||_0xd814c['tagName'];if(!_0x4433ae)return null;let t=ou[_0x4433ae['toLowerCase']()];if(!t)return null;for(let _0x79038b of t){let _0x138b88=_0xd814c['closest']('[role='+_0x79038b+']');if(_0x138b88)return _0x138b88;}}function jo(_0x58ca25,_0x3913f0){return'toolbar'===_0x3913f0['role']?nu(_0x3913f0):_0x3913f0['querySelectorAll']('[role='+_0x58ca25['role']+']');}function su(_0x2b6a9f,_0x4d0749){return Array['from'](_0x2b6a9f)['filter'](t=>{let _0x5cb68c=t['parentElement'];for(;_0x5cb68c&&_0x5cb68c!==_0x4d0749;){if('true'===_0x5cb68c['getAttribute']('aria-hidden'))return!0x1;_0x5cb68c=_0x5cb68c['parentElement'];}return!0x0;});}function nu(_0x4b6497){return[..._0x4b6497['querySelectorAll']('*')]['filter'](t=>'button'===t['role']||'button'===t['type']||'checkbox'===t['role']||'checkbox'===t['type']);}function au(_0x346156){let _0x24e375=_0x346156['getAttribute']('aria-orientation');if('vertical'===_0x24e375)return!0x1;if('horizontal'===_0x24e375)return!0x0;let t=_0x346156['role'];return'menubar'===t||'tablist'===t||'toolbar'===t;}function Rn(_0x5b6689){return _0x208bdf=>{let t=!0x1,_0x322e26=0x0,_0x4cbffc='';function _0x2400c6(_0x131ea6){let _0x45c5ad=Ko(_0x131ea6['target']);if(!_0x45c5ad)return void _0x29483f();let _0x558e51=jo(_0x131ea6['target'],_0x45c5ad),_0x6d7cee=su(_0x558e51,_0x45c5ad),_0x2e4f86=Array['from'](_0x6d7cee)['indexOf'](_0x131ea6['target']),_0x4a41e0='ArrowDown',_0x5c9a69='ArrowUp';if(au(_0x45c5ad)&&('rtl'===_0x208bdf['document']['dir']?(_0x4a41e0='ArrowLeft',_0x5c9a69='ArrowRight'):(_0x4a41e0='ArrowRight',_0x5c9a69='ArrowLeft')),_0x131ea6['key']===_0x4a41e0)_0x131ea6['preventDefault'](),hi(_0x131ea6['target'],_0x6d7cee[_0x2e4f86+0x1]||_0x6d7cee[0x0]);else{if(_0x131ea6['key']===_0x5c9a69)_0x131ea6['preventDefault'](),hi(_0x131ea6['target'],_0x6d7cee[_0x2e4f86-0x1]||_0x6d7cee[_0x6d7cee['length']-0x1]);else{if('Home'===_0x131ea6['key'])_0x131ea6['preventDefault'](),hi(_0x131ea6['target'],_0x6d7cee[0x0]);else{if('End'===_0x131ea6['key'])_0x131ea6['preventDefault'](),hi(_0x131ea6['target'],_0x6d7cee[_0x6d7cee['length']-0x1]);else{if(0x1===_0x131ea6['key']['length']&&'tablist'!==_0x45c5ad['role']){_0x131ea6['timeStamp']-_0x322e26<=0x12c?_0x4cbffc+=_0x131ea6['key']['toLowerCase']():_0x4cbffc=_0x131ea6['key']['toLowerCase'](),_0x322e26=_0x131ea6['timeStamp'];let _0x214767=Array['from'](_0x558e51)['find'](_0x5e9054=>_0x5e9054['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x4cbffc));_0x214767&&(_0x131ea6['preventDefault'](),hi(_0x131ea6['target'],_0x214767));}}}}}}function _0x29483f(){t=!0x1,_0x208bdf['removeEventListener']('keydown',_0x2400c6);}function _0x38fd67(_0x3654c1){let _0x361af9=Ko(_0x3654c1['target']);if(_0x361af9){t||(t=!0x0,_0x208bdf['addEventListener']('keydown',_0x2400c6));let _0x13ecaf=jo(_0x3654c1['target'],_0x361af9);for(let _0x1b31fe of _0x13ecaf)_0x1b31fe!==_0x3654c1['target']&&_0x1b31fe['setAttribute']('tabindex',-0x1);}else t&&_0x29483f();}function _0x4e3653(_0x5df505){(!_0x5df505['relatedTarget']||_0x5df505['relatedTarget']===_0x208bdf['document'])&&_0x29483f();}function _0x541537(_0x4f1763){let _0x32b68b=Ko(_0x4f1763['target']);if(_0x32b68b){let _0x29a55b=jo(_0x4f1763['target'],_0x32b68b);for(let _0x44a8cc of _0x29a55b)_0x44a8cc!==_0x4f1763['target']&&_0x44a8cc['setAttribute']('tabindex',-0x1);_0x4f1763['target']['setAttribute']('tabindex',0x0);}}return _0x208bdf['addEventListener']('click',_0x541537),_0x208bdf['addEventListener']('focusin',_0x38fd67),_0x208bdf['addEventListener']('focusout',_0x4e3653),()=>{_0x29483f(),_0x208bdf['removeEventListener']('click',_0x541537),_0x208bdf['removeEventListener']('focusin',_0x38fd67),_0x208bdf['removeEventListener']('focusout',_0x4e3653);};};}function $n(){return _0x10f54f=>{let _0x24cd1c,t;function _0x276a2e(_0x2af069){if('true'===_0x2af069['target']['getAttribute']('aria-hidden')){_0x24cd1c=_0x2af069['target'],_0x24cd1c['setAttribute']('aria-hidden','false'),t=_0x24cd1c['hidden'],t&&(_0x24cd1c['hidden']=!0x1);let _0x49766c=_0x2af069['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x49766c&&(_0x49766c['tabIndex']=0x0);}}function _0x598154(_0x2b4e7f){_0x24cd1c&&_0x24cd1c['contains'](_0x2b4e7f['target'])&&(!_0x2b4e7f['relatedTarget']||!_0x24cd1c['contains'](_0x2b4e7f['relatedTarget']))&&(_0x2b4e7f['target']['tabIndex']=-0x1,_0x24cd1c['setAttribute']('aria-hidden','true'),t&&(_0x24cd1c['hidden']=!0x0),_0x24cd1c=null);}return _0x10f54f['addEventListener']('keyuxJump',_0x276a2e),_0x10f54f['addEventListener']('focusout',_0x598154),()=>{_0x10f54f['removeEventListener']('keyuxJump',_0x276a2e),_0x10f54f['removeEventListener']('focusout',_0x598154);};};}function Dn(){return _0x4f3d5f=>{let _0x48831a=[];function _0x47c179(){let _0x5d08b2=_0x48831a['pop']();if(!_0x5d08b2)return void _0x4f3d5f['document']['activeElement']['blur']();let _0x18f7bb=_0x5d08b2['deref']();_0x18f7bb&&_0x18f7bb['isConnected']?_0x18f7bb['focus']():_0x47c179();}let _0x5e048b,_0x568fea=0x0;function _0xd2a111(_0x3d4295){clearInterval(_0x5e048b);let _0x5b124f=_0x3d4295['getAttribute']('aria-controls');_0x5e048b=setInterval(()=>{if(_0x568fea++>0x32)return void clearInterval(_0x5e048b);let _0xf949f3=_0x4f3d5f['document']['getElementById'](_0x5b124f);if(_0xf949f3){let _0x2909c6=_0xf949f3['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x2909c6&&(clearInterval(_0x5e048b),_0xf949f3['dispatchEvent'](new _0x4f3d5f['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x4cac31){let _0x2c20cf=_0x4f3d5f['document']['activeElement'];_0x2c20cf&&_0x2c20cf!==_0x4f3d5f['document']['body']&&_0x48831a['push'](new WeakRef(_0x2c20cf)),_0x4cac31['focus']({'focusVisible':!0x0});}(_0x2909c6));}},0x32);}function _0x408a2b(_0x7be50a){_0x7be50a['target']['getAttribute']('aria-controls')&&'Enter'===_0x7be50a['key']&&_0xd2a111(_0x7be50a['target']),'Escape'===_0x7be50a['key']&&_0x47c179();}return _0x4f3d5f['addEventListener']('keydown',_0x408a2b),()=>{_0x4f3d5f['removeEventListener']('keydown',_0x408a2b);};};}function Fn(_0x597d02){let _0x22cb57,_0x1bf55f,t=_0x597d02['split']('\x20');function _0x1dfab5(_0x3bcf02){('Enter'===_0x3bcf02['key']||'\x20'===_0x3bcf02['key'])&&('BUTTON'===_0x3bcf02['target']['tagName']||'A'===_0x3bcf02['target']['tagName'])&&(_0x51008b(),_0x3bcf02['target']['classList']['add'](...t),_0x22cb57=_0x3bcf02['target'],_0x1bf55f=_0x3bcf02['target']);}function _0x51008b(){_0x22cb57&&(_0x22cb57['classList']['remove'](...t),_0x22cb57=0x0,setTimeout(()=>{_0x1bf55f=0x0;},0x0));}function _0x3f6498(_0x5eff89){0x0===_0x5eff89['clientX']&&0x0===_0x5eff89['clientY']&&_0x22cb57!==_0x5eff89['target']&&(_0x51008b(),_0x1bf55f!==_0x5eff89['target']&&(_0x5eff89['target']['classList']['add'](...t),_0x22cb57=_0x5eff89['target']));}return _0x3a4572=>(_0x3a4572['addEventListener']('click',_0x3f6498),_0x3a4572['addEventListener']('keydown',_0x1dfab5),_0x3a4572['addEventListener']('keyup',_0x51008b),()=>{_0x3a4572['removeEventListener']('click',_0x3f6498),_0x3a4572['removeEventListener']('keydown',_0x1dfab5),_0x3a4572['removeEventListener']('keyup',_0x51008b);});}function Vn(_0x13c500,_0xbf2245){let t=_0xbf2245['map'](_0x2c5a4d=>_0x2c5a4d(_0x13c500));return()=>{t['forEach'](_0x36f60f=>_0x36f60f());};}var Go=class{constructor(){this['te']=new Map(),this['so']=[];}['addEventListener'](_0xc1cac3,t){let _0x1c89cc=_0x5b8d97=>{let _0x5c3e5b=_0x5b8d97['target'];_0x5c3e5b instanceof Node&&this['so']['some'](_0x5dca5c=>_0x5dca5c===_0x5c3e5b||_0x5dca5c['contains'](_0x5c3e5b))&&t(_0x5b8d97);};this['te']['set'](t,_0x1c89cc),window['addEventListener'](_0xc1cac3,_0x1c89cc);}['removeEventListener'](_0x5a01c9,t){let _0x5c7eb2=this['te']['get'](t);_0x5c7eb2&&window['removeEventListener'](_0x5a01c9,_0x5c7eb2),this['te']['delete'](t);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0xf7410){this['so']['push'](_0xf7410);}['destroy'](){this['so']=[];for(let _0x210911 of this['te']['values']())window['removeEventListener']('keydown',_0x210911),window['removeEventListener']('keyup',_0x210911);this['te']['clear']();}},vr=class{constructor(){this['Bi']=new Go(),this['an']=Vn(this['Bi'],[Rn(),Fn('is-pressed'),Dn(),$n()]);}['registerBlock'](_0x1f194a){this['Bi']['registerScope'](_0x1f194a);}['destroy'](){this['an']?.(),this['Bi']['destroy']();}},Wt=_0x1bd072=>'*l10n/'+_0x1bd072,lu='en',yr=class extends j{constructor(t){super(t),this['Tt']='';for(let [_0x5ffd15,_0x443b0c]of Object['entries'](ui)){let _0x4e8f4d=!this['e']['has'](Wt(_0x5ffd15))||!this['e']['read'](Wt(_0x5ffd15));this['e']['add'](Wt(_0x5ffd15),_0x443b0c,_0x4e8f4d);}let _0x24d62a=t['pluginManager'];_0x24d62a?.['onPluginsChange']&&this['addSub'](_0x24d62a['onPluginsChange'](()=>{this['Tt']&&this['ln'](this['Tt']);})),this['addSub'](this['e']['sub'](A('localeName'),async _0x2ac08c=>{if(!_0x2ac08c)return;this['Tt']=_0x2ac08c;let _0x295fda=await cn(_0x2ac08c);_0x2ac08c!==lu&&this['Tt']!==_0x2ac08c||(this['ln'](_0x2ac08c),this['cn'](_0x2ac08c,_0x295fda));})),this['addSub'](this['e']['sub'](A('localeDefinitionOverride'),_0x3ef2cb=>{if(!_0x3ef2cb)return;let _0xbf2b6f=_0x3ef2cb[this['Tt']];_0xbf2b6f&&this['cn'](this['Tt'],_0xbf2b6f);}));}['cn'](t,_0x46d0f9){let _0xf675ab=this['ze']['localeDefinitionOverride']?.[t];for(let [_0x1a146b,_0x2cc2da]of Object['entries'](_0x46d0f9)){let _0x40677b=_0xf675ab?.[_0x1a146b];this['e']['add'](Wt(_0x1a146b),_0x40677b??_0x2cc2da,!0x0);}}['ln'](t){let _0x435914=this['i']['pluginManager'];if(!_0x435914)return;let _0x488f98=_0x435914['snapshot']();for(let _0x5b42a3 of _0x488f98['l10n']){let {pluginId:_0x3d8dda,..._0x8cbfb9}=_0x5b42a3,_0x30d6df=_0x8cbfb9[t];if(_0x30d6df){for(let [_0x32f224,_0x1b5523]of Object['entries'](_0x30d6df))void 0x0!==_0x1b5523&&this['e']['add'](Wt(_0x32f224),_0x1b5523,!0x0);}}}},cu=()=>{let _0x4c7918=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x4c7918)&&/Version\/[\d.]+.*Safari/['test'](_0x4c7918)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x4c7918);},uu=()=>'capture'in document['createElement']('input'),du=()=>({'safariDesktop':cu()}),pu=()=>({'htmlMediaCapture':uu()}),Nn=du(),_n=pu(),fi='image/*',qo='video/*',hu=['image/heif','image/heif-sequence','image/heic','image/heic-sequence','image/avif','image/avif-sequence','.heif','.heifs','.heic','.heics','.avif','.avifs'],fu=()=>Nn['safariDesktop']?[fi]:[fi,...hu],mi=fu(),br=_0x183883=>_0x183883?_0x183883['filter'](_0x36dd60=>'string'==typeof _0x36dd60)['flatMap'](_0x33f5aa=>Z(_0x33f5aa)):[],Wo=(_0x272de2,_0x23ab2b)=>_0x23ab2b['some'](t=>{if(t['endsWith']('*')){let _0x709f7c=t['replace']('*','');return _0x272de2['startsWith'](_0x709f7c);}return _0x272de2===t;}),zn=(_0x37f6dc,_0x3e6bf1)=>_0x3e6bf1['some'](t=>!!t['startsWith']('.')&&_0x37f6dc['toLowerCase']()['endsWith'](t['toLowerCase']())),Re=_0x4b3349=>{let _0x5c4f62=_0x4b3349?.['type'];return!!_0x5c4f62&&Wo(_0x5c4f62,mi);};function Bn(_0x101850,_0x52a86a,t,_0x52137b,_0x55e249){return{'registry':{'registerSource':_0x27b7da=>_0x101850['addSource'](_0x52137b,_0x27b7da),'registerActivity':_0x3d64e1=>_0x101850['addActivity'](_0x52137b,_0x3d64e1),'registerFileAction':_0xec1dda=>_0x101850['addFileAction'](_0x52137b,_0xec1dda),'registerFileHook':_0x330a96=>_0x101850['addFileHook'](_0x52137b,_0x330a96),'registerIcon':_0x29debb=>_0x101850['addIcon'](_0x52137b,_0x29debb),'registerL10n':_0x3e116c=>_0x101850['addL10n'](_0x52137b,_0x3e116c),'registerConfig':_0x1d807d=>{_0x101850['addConfig'](_0x52137b,_0x1d807d);let _0x5b0c04=A(_0x1d807d['name']);_0x52a86a['has'](_0x5b0c04)||_0x52a86a['add'](_0x5b0c04,_0x1d807d['defaultValue']);}},'config':{'get':_0x55a46c=>{let _0x39bfe8=A(_0x55a46c);return _0x52a86a['read'](_0x39bfe8);},'subscribe':(_0xdf62a7,_0x5768f1)=>{let _0x2830de=A(_0xdf62a7),_0x44deb5=_0x52a86a['sub'](_0x2830de,_0x4e4973=>{_0x5768f1(_0x4e4973);});return _0x55e249['push'](_0x44deb5),_0x44deb5;}},'activity':{'getParams':()=>_0x52a86a['read']('*currentActivityParams'),'subscribeToParams':_0x189037=>{let _0x2fa5df=_0x52a86a['sub']('*currentActivityParams',_0x5a87a1=>{_0x189037(_0x5a87a1);});return _0x55e249['push'](_0x2fa5df),_0x2fa5df;}},'files':{'update':(_0x3371b3,_0x20d04b)=>{let _0x3c0c7e=t['uploadCollection']?.['read'](_0x3371b3);_0x3c0c7e&&(void 0x0!==_0x20d04b['file']&&(_0x3c0c7e['setValue']('file',_0x20d04b['file']),_0x3c0c7e['setValue']('fileSize',_0x20d04b['file']['size'])),void 0x0!==_0x20d04b['cdnUrl']&&_0x3c0c7e['setValue']('cdnUrl',_0x20d04b['cdnUrl']),void 0x0!==_0x20d04b['cdnUrlModifiers']&&_0x3c0c7e['setValue']('cdnUrlModifiers',_0x20d04b['cdnUrlModifiers']),void 0x0!==_0x20d04b['mimeType']&&_0x3c0c7e['setValue']('mimeType',_0x20d04b['mimeType']));}}};}var mu=async({entries:_0x5567dc,signal:_0x32679d})=>(await Promise['all'](_0x5567dc['map'](async _0x441c78=>{if(_0x441c78['isEnabled']())try{let _0x326970=await _0x441c78['load']();return _0x32679d['aborted']||!_0x441c78['isEnabled']()?void 0x0:_0x326970??void 0x0;}catch(_0x3dadcd){return void(_0x32679d['aborted']||console['warn']('Failed\x20to\x20load\x20lazy\x20plugin',_0x3dadcd));}})))['filter'](_0x1db61c=>void 0x0!==_0x1db61c),wr=class{constructor(_0x4105f8,t){this['e']=_0x4105f8,this['zc']=t,this['Xt']=new Set(),this['un']=this['e']['sub']('*lazyPlugins',_0x2e5611=>{this['Bc'](_0x2e5611??[]);});}['Bc'](_0x5ac998){for(let _0x7d6714 of this['Xt'])_0x7d6714();if(this['Xt']['clear'](),0x0===_0x5ac998['length'])return;let t=new Set([A('plugins')]);for(let _0x5ccc16 of _0x5ac998)for(let _0x5338d7 of _0x5ccc16['configDeps'])t['add'](A(_0x5338d7));let _0x8b61=()=>this['dn'](_0x5ac998);for(let _0x2ab4f8 of t)this['Xt']['add'](this['e']['sub'](_0x2ab4f8,_0x8b61,!0x1));this['dn'](_0x5ac998);}['dn'](_0x411b37){this['ao']?.['abort']();let t=new AbortController();this['ao']=t;let _0x432ec1=_0x37105c=>this['e']['read'](A(_0x37105c)),_0x31b7c9=_0x432ec1('plugins'),_0x1c4368=mu({'entries':_0x411b37['map'](_0x1be4c2=>({'isEnabled':()=>_0x1be4c2['isEnabled'](_0x432ec1),'load':_0x1be4c2['load']})),'signal':t['signal']})['then'](_0x55bc5f=>{if(!t['signal']['aborted'])return[..._0x31b7c9,..._0x55bc5f];});this['zc'](_0x1c4368);}['destroy'](){this['un']();for(let _0x1eec55 of this['Xt'])_0x1eec55();this['Xt']['clear'](),this['ao']?.['abort']();}},Tr=class{constructor(){this['Ke']=new Map();}['register'](_0x47701e,t){if(this['Ke']['has'](t['name']))return void console['warn']('[CustomConfig]\x20Config\x20option\x20\x22'+t['name']+'\x22\x20is\x20already\x20registered');let _0x15590a={'attribute':!0x0,...t,'pluginId':_0x47701e};this['Ke']['set'](t['name'],_0x15590a);}['unregister'](_0x2f08a6){this['Ke']['delete'](_0x2f08a6);}['unregisterByPlugin'](_0x40d0d8){for(let [t,_0x70dc2c]of this['Ke'])_0x70dc2c['pluginId']===_0x40d0d8&&this['Ke']['delete'](t);}['get'](_0x3160a7){return this['Ke']['get'](_0x3160a7);}['getAll'](){return new Map(this['Ke']);}},Er=class{constructor(){this['Me']=[],this['de']=[],this['zi']=[],this['Hi']=[],this['Ki']=[],this['Et']=[],this['config']=new Tr();}['xt'](_0x2485b2,t){return{...t,'pluginId':_0x2485b2};}['addSource'](_0x391d7f,t){let _0x77cc35=this['Me']['find'](_0x474514=>_0x474514['id']===t['id']);_0x77cc35?console['warn']('[Plugin\x20\x22'+_0x391d7f+'\x22]\x20Source\x20with\x20id\x20\x22'+t['id']+'\x22\x20is\x20already\x20registered\x20by\x20plugin\x20\x22'+_0x77cc35['pluginId']+'\x22.\x20Skipping.'):this['Me']['push'](this['xt'](_0x391d7f,t));}['addActivity'](_0x21ab75,t){let _0x39e92f=this['de']['find'](_0x5384d=>_0x5384d['id']===t['id']);_0x39e92f?console['warn']('[Plugin\x20\x22'+_0x21ab75+'\x22]\x20Activity\x20with\x20id\x20\x22'+t['id']+'\x22\x20is\x20already\x20registered\x20by\x20plugin\x20\x22'+_0x39e92f['pluginId']+'\x22.\x20Skipping.'):this['de']['push'](this['xt'](_0x21ab75,t));}['addFileAction'](_0x45fdd0,t){this['zi']['push'](this['xt'](_0x45fdd0,t));}['addFileHook'](_0x7df73d,t){this['Hi']['push'](this['xt'](_0x7df73d,{'timeout':0x7530,...t}));}['addIcon'](_0x1b14b6,t){this['Ki']['push'](this['xt'](_0x1b14b6,t));}['addL10n'](_0x1d68d6,t){this['Et']['push'](this['xt'](_0x1d68d6,t));}['addConfig'](_0x169276,t){this['config']['register'](_0x169276,t);}['purge'](_0x502d9b){this['Me']=this['Me']['filter'](t=>t['pluginId']!==_0x502d9b),this['de']=this['de']['filter'](t=>t['pluginId']!==_0x502d9b),this['zi']=this['zi']['filter'](t=>t['pluginId']!==_0x502d9b),this['Hi']=this['Hi']['filter'](t=>t['pluginId']!==_0x502d9b),this['Ki']=this['Ki']['filter'](t=>t['pluginId']!==_0x502d9b),this['Et']=this['Et']['filter'](t=>t['pluginId']!==_0x502d9b),this['config']['unregisterByPlugin'](_0x502d9b);}['snapshot'](){return{'sources':[...this['Me']],'activities':[...this['de']],'fileActions':[...this['zi']],'fileHooks':[...this['Hi']],'icons':[...this['Ki']],'l10n':[...this['Et']]};}},Cr=class extends j{constructor(t){super(t),this['je']=new Map(),this['c']=new Set(),this['lo']=Promise['resolve'](),this['registry']=new Er(),this['pn']=new wr(this['e'],_0x4128e7=>{this['lo']=this['lo']['then'](()=>_0x4128e7)['then'](_0x30ee8f=>{if(_0x30ee8f)return this['Hc'](_0x30ee8f);});});}get['configRegistry'](){return this['registry']['config'];}['pluginsReady'](){return this['lo'];}['onPluginsChange'](t){return this['c']['add'](t),()=>{this['c']['delete'](t);};}async['Hc'](t){let _0x423162=new Set(this['je']['keys']()),_0x5e27c7=new Set();for(let _0x43fb83 of t)if(_0x43fb83['id']){if(_0x5e27c7['has'](_0x43fb83['id']))console['warn']('[PluginManager]\x20Plugin\x20\x22'+_0x43fb83['id']+'\x22\x20is\x20already\x20in\x20the\x20list,\x20skipping\x20duplicate');else{if(_0x5e27c7['add'](_0x43fb83['id']),!this['je']['has'](_0x43fb83['id']))try{await this['Kc'](_0x43fb83);}catch(_0x4bf689){this['registry']['purge'](_0x43fb83['id']),this['co'](),console['error']('[PluginManager]\x20Plugin\x20\x22'+_0x43fb83['id']+'\x22\x20setup()\x20threw\x20an\x20error',_0x4bf689);}_0x423162['delete'](_0x43fb83['id']);}}else console['warn']('[PluginManager]\x20A\x20plugin\x20is\x20missing\x20the\x20required\x20\x22id\x22\x20field,\x20skipping');for(let _0x5f07d5 of _0x423162)this['uo'](_0x5f07d5);}async['Kc'](t){this['je']['has'](t['id'])&&this['uo'](t['id']);let _0x33cc14,_0xd2386=[],_0x47bacb=Bn(this['registry'],this['e'],this['i'],t['id'],_0xd2386),_0x5a6610=this['i']['api'];try{_0x33cc14=await t['setup']({'pluginApi':_0x47bacb,'uploaderApi':_0x5a6610})??void 0x0;}catch(_0x276f69){for(let _0x539a99 of _0xd2386)try{_0x539a99();}catch(_0x137fb2){this['w']('Failed\x20to\x20unsubscribe\x20config\x20listener',_0x137fb2);}throw _0x276f69;}this['je']['set'](t['id'],{'plugin':t,'dispose':_0x33cc14,'configSubscriptions':_0xd2386}),this['co']();}['uo'](t){let _0x40b3de=this['je']['get'](t);if(_0x40b3de){this['registry']['purge'](t);for(let _0x190fc0 of _0x40b3de['configSubscriptions'])try{_0x190fc0();}catch(_0x7fb5b){this['w']('Failed\x20to\x20unsubscribe\x20config\x20listener',_0x7fb5b);}_0x40b3de['dispose']?.(),this['je']['delete'](t),this['co']();}}['snapshot'](){return this['registry']['snapshot']();}async['runOnAddHooks'](t){let _0x10341a=t['getValue']('file');if(!_0x10341a)return;let _0x581d08=this['registry']['snapshot']()['fileHooks']['filter'](_0xa2defb=>'onAdd'===_0xa2defb['type']);if(0x0===_0x581d08['length'])return;let _0x3c8791=_0x10341a,_0x3fae03=new AbortController();for(let _0x10157a of _0x581d08){if(_0x3fae03['signal']['aborted'])break;try{let _0x79baf3=_0x10157a['handler']({'file':_0x3c8791,'signal':_0x3fae03['signal']}),_0x133088=new Promise((_0x27e966,_0x5b9f69)=>setTimeout(()=>_0x5b9f69(new Error('onAdd\x20hook\x20timed\x20out')),_0x10157a['timeout']));({file:_0x3c8791}=await Promise['race']([_0x79baf3,_0x133088]));}catch(_0x28aa69){console['warn']('File\x20hook\x20\x22onAdd\x22\x20from\x20plugin\x20\x22'+_0x10157a['pluginId']+'\x22\x20failed',_0x28aa69);}}_0x3c8791!==_0x10341a&&(t['setValue']('file',_0x3c8791),t['setValue']('fileSize',_0x3c8791['size']),t['setValue']('mimeType',_0x3c8791['type']||null),t['setValue']('isImage',Re(_0x3c8791)),_0x3c8791 instanceof File&&t['setValue']('fileName',_0x3c8791['name']));}['destroy'](){for(let t of Array['from'](this['je']['keys']()))this['uo'](t);this['pn']['destroy'](),super['destroy']();}['co'](){for(let t of this['c'])try{t();}catch{}}};function gu(_0x53561f){return _0x53561f['replace'](/[A-Z]/g,_0x587ea5=>'_'+_0x587ea5['toLowerCase']())['replace'](/__/g,'_');}function Yo(_0x599092){return Array['isArray'](_0x599092)?_0x599092['map'](_0x509e05=>'object'==typeof _0x509e05&&null!==_0x509e05?Yo(_0x509e05):_0x509e05):'object'!=typeof _0x599092||null===_0x599092?_0x599092:Object['fromEntries'](Object['entries'](_0x599092)['map'](([_0x1f108a,t])=>{let _0x4baf9b=gu(_0x1f108a);return'object'==typeof t&&null!==t?[_0x4baf9b,Yo(t)]:[_0x4baf9b,t];}));}function vu(_0xb2d4f9){return{'ok':!0x0,'value':_0xb2d4f9};}function Zo(_0x322741){return{'ok':!0x1,'error':_0x322741};}var yu='https://tlm.uploadcare.com/api/',Xo=class{constructor(_0x464e63=yu){this['baseUrl']=_0x464e63;}async['base'](_0x4f4a04,t={}){let _0x12cf39=''+this['baseUrl']+_0x4f4a04;try{let _0x320de6=await fetch(_0x12cf39,t);if(!_0x320de6['ok'])return Zo(new Error('Got\x20non-200\x20response\x20from\x20\x22'+_0x12cf39+'\x22.\x20Status:\x20'+_0x320de6['status']['toString']()));try{return vu(await _0x320de6['json']());}catch(_0x1db2e9){return Zo(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+_0x12cf39+'\x22.\x20Error:\x20'+_0x1db2e9));}}catch(_0x2be9bb){return Zo(new Error('Error\x20fetching\x20data\x20from\x20\x22'+_0x12cf39+'\x22.\x20Error:\x20'+_0x2be9bb));}}async['post'](_0x5a9c41,t,_0x597858={}){return await this['base'](_0x5a9c41,{..._0x597858,'method':'POST','body':JSON['stringify'](Yo(t)),'headers':{'Content-Type':'application/json',..._0x597858['headers']||{}}});}async['get'](_0x5444a9,t={}){return await this['base'](_0x5444a9,{'method':'GET',...t});}},bu=async(_0x1e935a,_0x50c2af)=>({'success':!0x0,'data':_0x50c2af}),wu=async _0x3bf3f9=>bu(void 0x0,_0x3bf3f9),xr=class extends Xo{constructor(){super();}async['sendEvent'](_0x48a96e,t){let _0x546b0f=await wu(_0x48a96e);if(!_0x546b0f['success'])throw console['error']('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid',_0x546b0f['error']),new Error('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid');return this['post']('v1/events',_0x48a96e,t);}},Tu=0x14,D=Object['freeze']({'INIT_SOLUTION':'init-solution','CHANGE_CONFIG':'change-config','ACTION_EVENT':'action-event','ERROR_EVENT':'error-event'}),k=Object['freeze']({'FILE_ADDED':'file-added','FILE_REMOVED':'file-removed','FILE_UPLOAD_START':'file-upload-start','FILE_UPLOAD_PROGRESS':'file-upload-progress','FILE_UPLOAD_SUCCESS':'file-upload-success','FILE_UPLOAD_FAILED':'file-upload-failed','FILE_URL_CHANGED':'file-url-changed','MODAL_OPEN':'modal-open','MODAL_CLOSE':'modal-close','DONE_CLICK':'done-click','UPLOAD_CLICK':'upload-click','ACTIVITY_CHANGE':'activity-change','COMMON_UPLOAD_START':'common-upload-start','COMMON_UPLOAD_PROGRESS':'common-upload-progress','COMMON_UPLOAD_SUCCESS':'common-upload-success','COMMON_UPLOAD_FAILED':'common-upload-failed','CHANGE':'change','GROUP_CREATED':'group-created'}),Sr=class extends j{constructor(){super(...arguments),this['Qt']=new Map(),this['ji']=new Set(),this['te']=new Map();}['bindTarget'](t){return this['ji']['add'](t),()=>{this['ji']['delete'](t);};}['on'](t,_0x55e40e){let _0x2db586=this['te']['get'](t);return _0x2db586||(_0x2db586=new Set(),this['te']['set'](t,_0x2db586)),_0x2db586['add'](_0x55e40e),()=>this['te']['get'](t)?.['delete'](_0x55e40e);}['hn'](t,_0x392264){for(let _0x369859 of this['ji'])_0x369859['dispatchEvent'](new CustomEvent(t,{'detail':_0x392264}));let _0x2c97b4=this['te']['get'](t);if(_0x2c97b4){for(let _0x384aef of _0x2c97b4)_0x384aef(_0x392264);}this['w']?.(()=>{let _0x347595=_0x392264&&'object'==typeof _0x392264?{..._0x392264}:_0x392264;return['event\x20\x22'+t+'\x22',_0x347595];});}['emit'](t,_0x19b5ff,_0x24fc7c={}){let {debounce:_0x3931d9}=_0x24fc7c;if('number'!=typeof _0x3931d9&&!_0x3931d9)return void this['hn'](t,'function'==typeof _0x19b5ff?_0x19b5ff():_0x19b5ff);this['Qt']['has'](t)&&window['clearTimeout'](this['Qt']['get'](t));let _0x269877='number'==typeof _0x3931d9?_0x3931d9:Tu,_0x2dd2fc=window['setTimeout'](()=>{try{let _0x4cac94='function'==typeof _0x19b5ff?_0x19b5ff():_0x19b5ff;this['hn'](t,_0x4cac94),this['Qt']['delete'](t);}catch(_0x39e880){this['w']?.(()=>'Error\x20while\x20getting\x20payload\x20for\x20event\x20\x22'+t+'\x22',_0x39e880);}},_0x269877);this['Qt']['set'](t,_0x2dd2fc);}['destroy'](){for(let t of this['Qt']['values']())window['clearTimeout'](t);this['ji']['clear'](),this['te']['clear']();}},Hn='1.29.0',Ut='blocks',Rt=Hn,Ar=class extends j{constructor(t){super(t),this['jc']=ft['generateRandomUUID'](),this['Ct']=structuredClone(J),this['po']=!0x1,this['ho']=null,this['Oe']=!0x1,this['mn']=new xr(),this['St']=new ie(0xa),this['addSub'](this['e']['sub'](A('qualityInsights'),_0x3929d6=>{this['Oe']=!!_0x3929d6;}));for(let _0x2769a6 of Object['keys'](this['Ct']))this['addSub'](this['e']['sub'](A(_0x2769a6),_0x888d24=>{this['Oe']&&(this['po']&&this['Ct'][_0x2769a6]!==_0x888d24&&this['sendEvent']({'eventType':D['CHANGE_CONFIG']}),this['Gc'](_0x2769a6,_0x888d24));}));}['qc'](t){t===D['INIT_SOLUTION']&&!this['po']&&(this['po']=!0x0);}['Gc'](t,_0x2ed154){this['Ct'][t]!==_0x2ed154&&(this['Ct'][t]=_0x2ed154);}['Wc'](t){let _0x48f114=t['payload']?{...t['payload']}:{};_0x48f114['activity']&&(_0x48f114['activity']=void 0x0);let _0x22fef8={...t};return(t['eventType']===D['INIT_SOLUTION']||t['eventType']===D['CHANGE_CONFIG'])&&(_0x22fef8['config']=this['Ct']),{..._0x22fef8,'appVersion':Rt,'appName':Ut,'sessionId':this['jc'],'component':this['Zc'],'activity':this['Yc'],'projectPubkey':this['Ct']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x22fef8['eventType']??'','eventTimestamp':this['Xc'],'payload':{'location':this['Qc'],..._0x48f114}};}['Jc'](t){return!(!t||![k['CHANGE'],k['COMMON_UPLOAD_PROGRESS'],k['FILE_ADDED'],k['FILE_REMOVED'],k['FILE_UPLOAD_START'],k['FILE_UPLOAD_PROGRESS'],k['FILE_UPLOAD_SUCCESS'],k['FILE_UPLOAD_FAILED']]['includes'](t));}['sendEvent'](t){if(!this['Oe'])return;let _0xeb7e6c=this['Wc']({'eventType':t['eventType'],'payload':t['payload'],'config':t['config']});this['qc'](t['eventType']),!(this['Jc'](t['eventType'])||this['ho']&&this['gn'](this['ho'],_0xeb7e6c))&&this['St']['add'](async()=>{this['ho']=_0xeb7e6c,await this['mn']['sendEvent'](_0xeb7e6c);});}['sendEventError'](t,_0xf97a55='unknown'){this['sendEvent']({'eventType':D['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0xf97a55,'error':t['message']}}});}['sendEventCloudImageEditor'](t,_0x404198,_0x1a1a1d={}){this['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x404198,'node':t['currentTarget']?.['tagName'],'event':t['type'],..._0x1a1a1d}}});}['gn'](t,_0x245d41){if(JSON['stringify'](t)===JSON['stringify'](_0x245d41))return!0x0;if('object'!=typeof t||'object'!=typeof _0x245d41||null==t||null==_0x245d41)return!0x1;let _0x175391=Object['keys'](t),_0x4bc278=Object['keys'](_0x245d41);if(_0x175391['length']!==_0x4bc278['length'])return!0x1;for(let _0x33989f of _0x175391)if(!Object['hasOwn'](_0x245d41,_0x33989f)||!this['gn'](t[_0x33989f],_0x245d41[_0x33989f]))return!0x1;return!0x0;}get['Xc'](){return Date['now']();}get['Zc'](){if(!this['e']['has']('*solution'))return null;let t=this['e']['read']('*solution');return t?t['toLowerCase']():null;}get['Yc'](){return this['e']['has']('*currentActivity')?this['e']['read']('*currentActivity'):null;}get['Qc'](){return location['origin'];}},Kn=_0x53de8b=>{let _0x330236=new Intl['Locale'](_0x53de8b),t='ltr',_0x369288=_0x330236['getTextInfo']?.()['direction'];return _0x369288?t=_0x369288:_0x330236['textInfo']?.['direction']&&(t=_0x330236['textInfo']['direction']),t;},Cu=_0x193e6c=>_0x193e6c,jn='plural:';function $e(_0x4de3a6,_0x3a8547={},t={}){let {openToken:_0x8d0f41='{{',closeToken:_0x1f5927='}}',transform:_0x264fb1=Cu}=t;for(let _0x1e367a in _0x3a8547){let _0xb88906=_0x3a8547[_0x1e367a],_0x1dc5fd=_0xb88906?.['toString'](),_0x44ee93='string'==typeof _0x1dc5fd?_0x264fb1(_0x1dc5fd):String(_0x1dc5fd);_0x4de3a6=_0x4de3a6['replaceAll'](_0x8d0f41+_0x1e367a+_0x1f5927,_0x44ee93);}return _0x4de3a6;}function Gn(_0x537e85){let _0x4e91cf=[],t=_0x537e85['indexOf']('{{');for(;-0x1!==t;){let _0x42beef=_0x537e85['indexOf']('}}',t);if(-0x1===_0x42beef)break;let _0x4669e6=_0x537e85['substring'](t+0x2,_0x42beef);if(_0x4669e6['startsWith'](jn)){let _0x4892a8=_0x537e85['substring'](t+0x2,_0x42beef)['replace'](jn,''),_0x38c83e=_0x4892a8['substring'](0x0,_0x4892a8['indexOf']('(')),_0x48cbf8=_0x4892a8['substring'](_0x4892a8['indexOf']('(')+0x1,_0x4892a8['indexOf'](')'));_0x4e91cf['push']({'variable':_0x4669e6,'pluralKey':_0x38c83e,'countVariable':_0x48cbf8});}t=_0x537e85['indexOf']('{{',_0x42beef);}return _0x4e91cf;}var qn='--uploadcare-blocks-window-height',gi=class e{static{this['clientsRegistry']=new Set();}static{this['flush']=$(()=>{document['documentElement']['style']['setProperty'](qn,window['innerHeight']+'px');},0x64);}static['registerClient'](_0x419f39){0x0===e['clientsRegistry']['size']&&e['attachTracker'](),e['clientsRegistry']['add'](_0x419f39);}static['unregisterClient'](_0x4acbf7){e['clientsRegistry']['delete'](_0x4acbf7),0x0===e['clientsRegistry']['size']&&e['detachTracker']();}static['attachTracker'](){window['addEventListener']('resize',e['flush'],{'passive':!0x0,'capture':!0x0}),e['flush']();}static['detachTracker'](){window['removeEventListener']('resize',e['flush'],{'capture':!0x0}),document['documentElement']['style']['removeProperty'](qn);}},kr=(_0x2d1c76,_0xad0e61)=>new Intl['PluralRules'](_0x2d1c76)['select'](_0xad0e61),xu=_0x5673d3=>(_0x150d87,t)=>{let _0x1f6560=_0x5673d3(),_0x27dc0a=_0x1f6560('locale-id')||'en';return _0x1f6560(_0x150d87+'__'+kr(_0x27dc0a,t));},Mr=_0x37c457=>{let _0x5cb49d=xu(()=>t),t=(_0x51b43e,_0x3e035b={})=>{if(!_0x51b43e)return'';let _0x3e9fab=_0x37c457()['read'](Wt(_0x51b43e))||_0x51b43e,_0x39c50e=Gn(_0x3e9fab);for(let _0x30f1d8 of _0x39c50e)_0x3e035b[_0x30f1d8['variable']]=_0x5cb49d(_0x30f1d8['pluralKey'],Number(_0x3e035b[_0x30f1d8['countVariable']]));return $e(_0x3e9fab,_0x3e035b);};return t;},Su=_0x52f93c=>_0x52f93c['tagName']?.['includes']('-')??!0x1,Ir=class{constructor(_0x35c401){this['Ge']=new Set(),this['Gi']=new Map(),this['vn']=!0x1,this['qe']=_0x35c401,this['qe']['addController'](this);}['hostDisconnected'](){this['qi']?.(),this['qi']=void 0x0,this['Ge']['clear'](),this['Gi']['clear']();}['hostUpdated'](){if(!this['qi']&&this['qe']['has'](A('testMode'))){let _0x52589a=this['qe']['subConfigValue']('testMode',t=>{this['vn']=!!t,this['yn']();});this['qi']=_0x52589a;}this['eu'](),this['yn']();}['eu'](){let _0x649cf4=this['qe'],t=_0x649cf4['renderRoot']??_0x649cf4;if(!t)return;let _0x128604=this['qe'],_0x2b2e27=_0x128604['tagName']?.['toLowerCase'](),_0x15e3b7=Array['from'](t['querySelectorAll']('[data-testid]'))['filter'](_0x27348a=>!Su(_0x27348a));for(let _0x2f812d of _0x15e3b7)if(!(_0x2b2e27&&_0x2f812d['closest'](_0x2b2e27)!==_0x128604||this['Ge']['has'](_0x2f812d))){let _0x2acdf4=_0x2f812d['getAttribute']('data-testid');if(!_0x2acdf4)continue;this['Ge']['add'](_0x2f812d),this['Gi']['set'](_0x2f812d,_0x2acdf4);}for(let _0x297164 of Array['from'](this['Ge']))(!_0x297164['isConnected']||_0x2b2e27&&_0x297164['closest'](_0x2b2e27)!==_0x128604)&&(this['Ge']['delete'](_0x297164),this['Gi']['delete'](_0x297164));}['yn'](){if(!this['Ge']['size'])return;let _0x14d519=this['qe']['testId']||'';for(let t of this['Ge']){let _0x2e926a=this['Gi']['get'](t);_0x2e926a&&(this['vn']?t['setAttribute']('data-testid',_0x14d519+'--'+_0x2e926a):t['removeAttribute']('data-testid'));}}},Au=Ie(ir()(Me(Ji(Tt)))),C=class extends Au{constructor(){super(),this['init$']=zo(),this['l10n']=Mr(()=>this['sharedCtx']),this['debugPrint']=ar(()=>this['sharedCtx'],this['constructor']['name']),this['i']=bn(()=>this['sharedCtx']),new Ir(this);}static{this['styleAttrs']=[];}['emit'](t,_0x4ce5d7,_0x3e5feb){let _0x5cd58b=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;if(!_0x5cd58b)return;_0x5cd58b['emit'](t,_0x4ce5d7,_0x3e5feb);let _0x479832='function'==typeof _0x4ce5d7?_0x4ce5d7():_0x4ce5d7;this['telemetryManager']['sendEvent']({'eventType':t,'payload':_0x479832??void 0x0});}['hasBlockInCtx'](t){for(let _0x528441 of this['blocksRegistry'])if(t(_0x528441))return!0x0;return!0x1;}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x29fe7e=>{this['setAttribute'](_0x29fe7e,'');}),super['connectedCallback'](),gi['registerClient'](this);}['initCallback'](){this['Z']('*blocksRegistry',()=>new Set()),this['Z']('*pluginManager',t=>new Cr(t)),this['Z']('*eventEmitter',t=>new Sr(t)),this['Z']('*localeManager',t=>new yr(t)),this['Z']('*modalManager',t=>new lr(t)),this['Z']('*a11y',()=>new vr()),this['Z']('*clipboard',t=>new gr(t)),this['Z']('*telemetryManager',t=>new Ar(t)),this['sub'](Wt('locale-id'),t=>{let _0x45faf5=Kn(t);this['style']['direction']='ltr'===_0x45faf5?'':_0x45faf5,this['requestUpdate']();}),this['subConfigValue']('testMode',t=>{t&&this['testId']?this['setAttribute']('data-testid',this['testId']):this['removeAttribute']('data-testid');}),this['blocksRegistry']['add'](this);}get['testId'](){return window['customElements']['getName'](this['constructor']);}get['modalManager'](){return this['ie']('*modalManager',!0x1);}get['telemetryManager'](){return this['ie']('*telemetryManager');}get['localeManager'](){return this['ie']('*localeManager');}get['a11y'](){return this['ie']('*a11y');}get['clipboardLayer'](){return this['ie']('*clipboard');}get['blocksRegistry'](){return this['ie']('*blocksRegistry');}get['eventEmitter'](){return this['ie']('*eventEmitter');}['disconnectedCallback'](){super['disconnectedCallback'](),gi['unregisterClient'](this);let t=this['blocksRegistry'];t?.['delete'](this),0x0===t?.['size']&&setTimeout(()=>{this['isConnected']||t?.['size']>0x0||this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){this['tu'](),H['deleteCtx'](this['ctxName']);}['bn'](){let t='*sharedContextInstances';if(!this['has'](t)||!this['$'][t]){let _0x467a2f=new Map();this['add'](t,_0x467a2f,!0x0);}return this['$'][t];}['Z'](t,_0x9349d){let _0x54112a=this['bn']();if(!(_0x54112a['has'](t)||this['has'](t)&&this['$'][t])){let _0x1f3bec=_0x9349d(this['i']);return this['add'](t,_0x1f3bec,!0x0),void _0x54112a['set'](t,_0x1f3bec);}}['tu'](){let t=this['bn']();for(let [_0x237870,_0x1b6d46]of t['entries']())_0x1b6d46?.['destroy']?.(),this['pub'](_0x237870,null);t['clear']();}['ie'](t,_0x127d1b=!0x0){if(this['has'](t)&&this['$'][t])return this['$'][t];if(!_0x127d1b)return this['$'][t];throw new Error('Unexpected\x20error:\x20context\x20manager\x20for\x20key\x20\x22'+String(t)+'\x22\x20is\x20not\x20available');}async['proxyUrl'](t){if(this['cfg']['secureDeliveryProxy']&&this['cfg']['secureDeliveryProxyUrlResolver']&&console['warn']('Both\x20secureDeliveryProxy\x20and\x20secureDeliveryProxyUrlResolver\x20are\x20set.\x20The\x20secureDeliveryProxyUrlResolver\x20will\x20be\x20used.'),this['cfg']['secureDeliveryProxyUrlResolver'])try{return await this['cfg']['secureDeliveryProxyUrlResolver'](t,{'uuid':sr(t),'cdnUrlModifiers':Ao(t),'fileName':or(t)});}catch(_0x837c52){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0x837c52),this['telemetryManager']['sendEventError'](_0x837c52,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),t;}return this['cfg']['secureDeliveryProxy']?$e(this['cfg']['secureDeliveryProxy'],{'previewUrl':t},{'transform':_0x37a5e6=>window['encodeURIComponent'](_0x37a5e6)}):t;}get['cfg'](){if(!this['Be']){let t={};this['Be']=new Proxy(t,{'set':(_0x425e3b,_0x129a3a,_0x46a4f4)=>{if('string'!=typeof _0x129a3a||!(_0x129a3a in J))return!0x1;let _0x3e1dea=_0x129a3a,_0x3937df=A(_0x3e1dea);return this['has'](_0x3937df)||this['add'](_0x3937df,J[_0x3e1dea]),this['$'][_0x3937df]=_0x46a4f4,!0x0;},'get':(_0x1c1e6a,_0x411e2e)=>{let _0x434242=A(_0x411e2e);return this['has'](_0x434242)||this['add'](_0x434242,J[_0x411e2e]),this['$'][_0x434242];}});}return this['Be'];}['subConfigValue'](t,_0x3d391e){let _0x5ada2e=A(t);return this['has'](_0x5ada2e)||this['add'](_0x5ada2e,J[t]),this['sub'](_0x5ada2e,_0x3d391e);}},$t={'ATTRIBUTE':0x1,'CHILD':0x2},gt=_0x4d693f=>(..._0x5b6206)=>({'qr':_0x4d693f,'values':_0x5b6206}),Et=class{constructor(_0x2f1e4d){}get['W'](){return this['f']['W'];}['Wr'](_0x53d9e3,t,_0xdc5039){this['Wi']=_0x53d9e3,this['f']=t,this['iu']=_0xdc5039;}['Lc'](_0x165df1,t){return this['update'](_0x165df1,t);}['update'](_0xba189,t){return this['render'](...t);}},we=class extends Et{constructor(_0x2b23b2){if(super(_0x2b23b2),this['it']=U,_0x2b23b2['type']!==$t['CHILD'])throw Error(this['constructor']['directiveName']+'()\x20can\x20only\x20be\x20used\x20in\x20child\x20bindings');}['render'](_0x117069){if(_0x117069===U||null==_0x117069)return this['wn']=void 0x0,this['it']=_0x117069;if(_0x117069===it)return _0x117069;if('string'!=typeof _0x117069)throw Error(this['constructor']['directiveName']+'()\x20called\x20with\x20a\x20non-string\x20value');if(_0x117069===this['it'])return this['wn'];this['it']=_0x117069;let t=[_0x117069];return t['raw']=t,this['wn']={'Ne':this['constructor']['resultType'],'strings':t,'values':[]};}};we['directiveName']='unsafeHTML',we['resultType']=0x1;var vi=class extends we{};vi['directiveName']='unsafeSVG',vi['resultType']=0x2;var De=gt(vi),Wn='<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-about\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.152\x2014.12v.1h1.523v-.1c.007-.409.053-.752.138-1.028.086-.277.22-.517.405-.72.188-.202.434-.397.735-.586.32-.191.593-.412.82-.66.232-.249.41-.531.533-.847.125-.32.187-.678.187-1.076\x200-.579-.137-1.085-.41-1.518a2.717\x202.717\x200\x200\x200-1.14-1.018c-.49-.245-1.062-.367-1.715-.367-.597\x200-1.142.114-1.636.34-.49.228-.884.564-1.182\x201.008-.299.44-.46.98-.485\x201.619h1.62c.024-.377.118-.684.282-.922a1.48\x201.48\x200\x200\x201\x20.617-.532c.25-.114.51-.17.784-.17.301\x200\x20.575.063.82.191.248.124.447.302.597.533.149.23.223.504.223.82\x200\x20.263-.05.502-.149.72a1.91\x201.91\x200\x200\x201-.405.574\x203.48\x203.48\x200\x200\x201-.575.453\x204.22\x204.22\x200\x200\x200-.847.66c-.234.242-.415.558-.543.949-.125.39-.19.916-.197\x201.577Zm.053\x203.03c.21.206.46.31.75.31.196\x200\x20.374-.049.534-.144a1.1\x201.1\x200\x200\x200\x20.383-.384c.1-.163.15-.343.15-.538a1\x201\x200\x200\x200-.32-.746\x201.019\x201.019\x200\x200\x200-.746-.314c-.291\x200-.542.105-.751.314-.21.206-.314.455-.314.746\x200\x20.295.104.547.314.756ZM24\x2012c0\x206.627-5.373\x2012-12\x2012S0\x2018.627\x200\x2012\x205.373\x200\x2012\x200s12\x205.373\x2012\x2012Zm-1.5\x200c0\x205.799-4.701\x2010.5-10.5\x2010.5S1.5\x2017.799\x201.5\x2012\x206.201\x201.5\x2012\x201.5\x2022.5\x206.201\x2022.5\x2012Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-add\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12.75\x2021a.75.75\x200\x200\x201-1.5\x200v-8.25H3a.75.75\x200\x200\x201\x200-1.5h8.25V3a.75.75\x200\x200\x201\x201.5\x200v8.25H21a.75.75\x200\x200\x201\x200\x201.5h-8.25V21Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-arrow-down\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.5\x2023.03a.75.75\x200\x200\x200\x20.999\x200l9.29-8.276a.75.75\x200\x200\x200-.998-1.12l-8.042\x207.164V1.53a.75.75\x200\x200\x200-1.5\x200v19.267l-8.04-7.163a.75.75\x200\x200\x200-.998\x201.12z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x209\x206\x27\x20id=\x27uc-icon-arrow-dropdown\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27m1.5\x201.667\x203\x202.666\x203-2.666\x27\x20opacity=\x27.5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-aspect-ratio\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27M7.395\x2022.5H2.454v-5.25m14.824\x205.25h4.94v-5.25m0-10.5V1.5h-4.94m-9.883\x200H2.454v5.25\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-back\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M20.251\x2012a.75.75\x200\x200\x201-.75.75H6.067l5.72\x205.85a.75.75\x200\x201\x201-1.072\x201.05L4.136\x2012.92a1.292\x201.292\x200\x200\x201\x200-1.842l6.579-6.728a.75.75\x200\x201\x201\x201.072\x201.048l-5.72\x205.851H19.5a.75.75\x200\x200\x201\x20.75.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-badge-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13.6\x2018.4a1.6\x201.6\x200\x201\x201-3.2\x200\x201.6\x201.6\x200\x200\x201\x203.2\x200zM12\x204.5A1.5\x201.5\x200\x200\x201\x2013.5\x206v7a1.5\x201.5\x200\x200\x201-3\x200V6A1.5\x201.5\x200\x200\x201\x2012\x204.5z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-badge-success\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m10.5\x2018.204\x207.6-8.183a1.5\x201.5\x200\x200\x200-2.2-2.042l-5.4\x205.817-2.4-2.586a1.5\x201.5\x200\x201\x200-2.2\x202.041l4.6\x204.953Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-box\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M1.01\x204.148a.75.75\x200\x200\x201\x20.75.75v4.348a4.437\x204.437\x200\x200\x201\x202.988-1.153c1.734\x200\x203.23.992\x203.978\x202.438a4.478\x204.478\x200\x200\x201\x203.978-2.438c2.49\x200\x204.488\x202.044\x204.488\x204.543\x200\x202.5-1.999\x204.544-4.488\x204.544a4.478\x204.478\x200\x200\x201-3.978-2.438\x204.478\x204.478\x200\x200\x201-3.978\x202.438C2.26\x2017.18.26\x2015.135.26\x2012.636V4.898a.75.75\x200\x200\x201\x20.75-.75Zm.75\x208.488c0\x201.692\x201.348\x203.044\x202.988\x203.044s2.989-1.352\x202.989-3.044c0-1.691-1.349-3.043-2.989-3.043S1.76\x2010.945\x201.76\x2012.636Zm10.944-3.043c-1.64\x200-2.988\x201.352-2.988\x203.043\x200\x201.692\x201.348\x203.044\x202.988\x203.044s2.988-1.352\x202.988-3.044c0-1.69-1.348-3.043-2.988-3.043Zm4.328-1.23a.75.75\x200\x200\x201\x201.052.128l2.333\x202.983\x202.333-2.983a.75.75\x200\x200\x201\x201.181.924l-2.562\x203.277\x202.562\x203.276a.75.75\x200\x201\x201-1.181.924l-2.333-2.983-2.333\x202.983a.75.75\x200\x201\x201-1.181-.924l2.562-3.276-2.562-3.277a.75.75\x200\x200\x201\x20.129-1.052Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.65\x202.55a.75.75\x200\x200\x201\x20.6-.3h7.5a.75.75\x200\x200\x201\x20.6.3l2.025\x202.7H21a3\x203\x200\x200\x201\x203\x203v10.5a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V8.25a3\x203\x200\x200\x201\x203-3h2.625zm.975\x201.2L6.6\x206.45a.75.75\x200\x200\x201-.6.3H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V8.25a1.5\x201.5\x200\x200\x200-1.5-1.5h-3a.75.75\x200\x200\x201-.6-.3l-2.025-2.7zm3.375\x206a3.375\x203.375\x200\x201\x200\x200\x206.75\x203.375\x203.375\x200\x200\x200\x200-6.75zm-4.875\x203.375a4.875\x204.875\x200\x201\x201\x209.75\x200\x204.875\x204.875\x200\x200\x201-9.75\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-camera-full\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M2\x204.667a2\x202\x200\x200\x200-2\x202V16a2\x202\x200\x200\x200\x202\x202h16a2\x202\x200\x200\x200\x202-2V6.667a2\x202\x200\x200\x200-2-2h-2.667l-2-2.667H6.667l-2\x202.667H2Zm8\x2010a3.667\x203.667\x200\x201\x200\x200-7.334\x203.667\x203.667\x200\x200\x200\x200\x207.334Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-close\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M4.604\x204.604a.75.75\x200\x200\x201\x201.06\x200L12\x2010.939l6.335-6.335a.75.75\x200\x201\x201\x201.061\x201.06L13.061\x2012l6.335\x206.335a.75.75\x200\x201\x201-1.06\x201.061L12\x2013.061l-6.335\x206.335a.75.75\x200\x200\x201-1.061-1.06L10.939\x2012\x204.604\x205.665a.75.75\x200\x200\x201\x200-1.061z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-collapse\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M3.116\x2012a.75.75\x200\x200\x201\x20.75-.75h16.268a.75.75\x200\x200\x201\x200\x201.5H3.866a.75.75\x200\x200\x201-.75-.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-default\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.501.392a.75.75\x200\x200\x201\x20.998\x200l6.704\x205.972a.75.75\x200\x200\x201-.998\x201.12l-5.455-4.86v13.439a.75.75\x200\x200\x201-1.5\x200V2.625l-5.454\x204.86a.75.75\x200\x201\x201-.998-1.12zM.857\x2016.73a.75.75\x200\x200\x201\x20.75.75v4.914h20.786v-4.914a.75.75\x200\x200\x201\x201.5\x200v5.664a.75.75\x200\x200\x201-.75.75H.857a.75.75\x200\x200\x201-.75-.75v-5.664a.75.75\x200\x200\x201\x20.75-.75z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-dropbox\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.019\x201.92a.75.75\x200\x200\x201\x20.806\x200L12\x205.219l5.176-3.297a.75.75\x200\x200\x201\x20.806\x200l5.577\x203.553a.75.75\x200\x200\x201\x200\x201.265l-4.574\x202.914\x204.574\x202.914a.75.75\x200\x200\x201\x200\x201.265l-5.577\x203.554a.75.75\x200\x200\x201-.806\x200L12\x2014.089l-5.175\x203.297a.75.75\x200\x200\x201-.806\x200L.44\x2013.833a.75.75\x200\x200\x201\x200-1.266l4.575-2.914L.44\x206.74a.75.75\x200\x200\x201\x200-1.265zm.403\x208.616L2.24\x2013.2l4.182\x202.664\x204.181-2.664zm6.975\x202.664\x204.182\x202.664L21.76\x2013.2l-4.181-2.664zm2.776-3.547L12\x2012.311\x207.828\x209.653\x2012\x206.995zm1.406-.882\x204.181-2.664-4.181-2.664-4.182\x202.664zm-6.976-2.664L6.422\x203.443\x202.24\x206.107\x206.422\x208.77zM5.791\x2018.544a.75.75\x200\x200\x201\x201.035-.23l5.175\x203.297\x205.175-3.297a.75.75\x200\x201\x201\x20.806\x201.265l-5.578\x203.554a.75.75\x200\x200\x201-.806\x200L6.02\x2019.579a.75.75\x200\x200\x201-.23-1.035z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-edit-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13\x2013h-2V7h2m0\x2010h-2v-2h2M12\x202A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-evernote\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M9.804\x202.27v-.048c.055-.263.313-.562.85-.562h.44c.142\x200\x20.325.014.526.033.066.009.124.023.267.06l.13.032h.002c.319.079.515.275.644.482a1.461\x201.461\x200\x200\x201\x20.16.356l.004.012a.75.75\x200\x200\x200\x20.603.577l1.191.207a1988.512\x201988.512\x200\x200\x200\x202.332.402c.512.083\x201.1.178\x201.665.442.64.3\x201.19.795\x201.376\x201.77.548\x202.931.657\x205.829.621\x208a39.233\x2039.233\x200\x200\x201-.125\x202.602\x2017.518\x2017.518\x200\x200\x201-.092.849.735.735\x200\x200\x200-.024.112c-.378\x202.705-1.269\x203.796-2.04\x204.27-.746.457-1.53.451-2.217.447h-.192c-.46\x200-1.073-.23-1.581-.635-.518-.412-.763-.87-.763-1.217\x200-.45.188-.688.355-.786.161-.095.436-.137.796.087a.75.75\x200\x201\x200\x20.792-1.274c-.766-.476-1.64-.52-2.345-.108-.7.409-1.098\x201.188-1.098\x202.08\x200\x20.996.634\x201.84\x201.329\x202.392.704.56\x201.638.96\x202.515.96l.185.002c.667.009\x201.874.025\x203.007-.67\x201.283-.786\x202.314-2.358\x202.733-5.276a4.213\x204.213\x200\x200\x200\x20.056-.335c.023-.184.051-.445.079-.772.055-.655.111-1.585.13-2.704.037-2.234-.074-5.239-.647-8.301v-.002c-.294-1.544-1.233-2.391-2.215-2.85-.777-.363-1.623-.496-2.129-.576a8.872\x208.872\x200\x200\x201-.25-.041l-.006-.001-1.99-.345-.761-.132a2.93\x202.93\x200\x200\x200-.182-.338A2.532\x202.532\x200\x200\x200\x2012.379.329l-.091-.023a3.967\x203.967\x200\x200\x200-.493-.103L11.769.2a7.846\x207.846\x200\x200\x200-.675-.04h-.44c-.733\x200-1.368.284-1.795.742L2.416\x207.431c-.468.428-.751\x201.071-.751\x201.81\x200\x20.02\x200\x20.041.003.062l.003.034c.017.21.038.468.096.796.107.715.275\x201.47.391\x201.994.029.13.055.245.075.342l.002.008c.258\x201.141.641\x201.94.978\x202.466.168.263.323.456.444.589a2.808\x202.808\x200\x200\x200\x20.192.194c1.536\x201.562\x203.713\x202.196\x205.731\x202.08.13-.005.35-.032.537-.073a2.627\x202.627\x200\x200\x200\x20.652-.24c.425-.26.75-.661.992-1.046.184-.294.342-.61.473-.915a3.8\x203.8\x200\x200\x200\x20.627.493\x205.022\x205.022\x200\x200\x200\x201.97.709l.023.002.018.003.11.016c.088.014.205.035.325.058l.056.014c.088.022.164.04.235.061a1.736\x201.736\x200\x200\x201\x20.145.048l.03.014c.765.34\x201.302\x201.09\x201.302\x201.871a.75.75\x200\x200\x200\x201.5\x200c0-1.456-.964-2.69-2.18-3.235a3.595\x203.595\x200\x200\x200-.679-.217l-.063-.015a10.616\x2010.616\x200\x200\x200-.606-.105l-.02-.003-.03-.003h-.002a3.542\x203.542\x200\x200\x201-1.331-.485c-.471-.298-.788-.692-.828-1.234a.75.75\x200\x200\x200-1.48-.106l-.001.003-.004.017a8.23\x208.23\x200\x200\x201-.092.352\x209.963\x209.963\x200\x200\x201-.298.892c-.132.34-.29.68-.47.966-.174.276-.339.454-.478.549a1.178\x201.178\x200\x200\x201-.221.072\x201.949\x201.949\x200\x200\x201-.241.036h-.013l-.032.002c-1.684.1-3.423-.437-4.604-1.65a.746.746\x200\x200\x200-.053-.05L4.84\x2014.6a1.348\x201.348\x200\x200\x201-.07-.073\x202.99\x202.99\x200\x200\x201-.293-.392c-.242-.379-.558-1.014-.778-1.985a54.1\x2054.1\x200\x200\x200-.083-.376\x2027.494\x2027.494\x200\x200\x201-.367-1.872l-.003-.02a6.791\x206.791\x200\x200\x201-.08-.67c.004-.277.086-.475.2-.609l.067-.067a.63.63\x200\x200\x201\x20.292-.145h.05c.18\x200\x201.095.055\x202.013.115l1.207.08.534.037a.747.747\x200\x200\x200\x20.052.002c.782\x200\x201.349-.206\x201.759-.585l.005-.005c.553-.52.622-1.225.622-1.76V6.24l-.026-.565A774.97\x20774.97\x200\x200\x201\x209.885\x204.4c-.042-.961-.081-1.939-.081-2.13ZM4.995\x206.953a251.126\x20251.126\x200\x200\x201\x202.102.137l.508.035c.48-.004.646-.122.715-.185.07-.068.146-.209.147-.649l-.024-.548a791.69\x20791.69\x200\x200\x201-.095-2.187L4.995\x206.953Zm16.122\x209.996Zm-5.479-5.323a.75.75\x200\x200\x200\x201.014.31\x202.04\x202.04\x200\x200\x201\x20.304-.089\x201.84\x201.84\x200\x200\x201\x20.544-.039c.215.023.321.06.37.085.033.016.039.026.047.04a.75.75\x200\x200\x200\x201.289-.767c-.337-.567-.906-.783-1.552-.85a3.334\x203.334\x200\x200\x200-1.002.062c-.27.056-.531.14-.705.234a.75.75\x200\x200\x200-.31\x201.014Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-expand\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m12\x208.337-8.47\x208.47a.75.75\x200\x200\x201-1.06-1.06l8.605-8.606a1.29\x201.29\x200\x200\x201\x201.85\x200l8.605\x208.605a.75.75\x200\x201\x201-1.06\x201.06L12\x208.338Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-external-source-placeholder\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.341\x203.27a10.5\x2010.5\x200\x200\x201\x205.834-1.77.75.75\x200\x200\x200\x200-1.5\x2012\x2012\x200\x201\x200\x2012\x2012\x20.75.75\x200\x200\x200-1.5\x200A10.5\x2010.5\x200\x201\x201\x206.34\x203.27Zm14.145\x201.48a.75.75\x200\x201\x200-1.06-1.062L9.925\x2013.19V7.95a.75.75\x200\x201\x200-1.5\x200V15c0\x20.414.336.75.75.75h7.05a.75.75\x200\x200\x200\x200-1.5h-5.24l9.501-9.5Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-facebook\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12\x201.5C6.201\x201.5\x201.5\x206.201\x201.5\x2012c0\x204.943\x203.416\x209.089\x208.016\x2010.204v-6.108H7.383a.75.75\x200\x200\x201-.75-.75v-3.281a.75.75\x200\x200\x201\x20.75-.75h2.133V9.393c0-.958.225-2.511\x201.38-3.65\x201.194-1.177\x203.174-1.718\x206.254-1.056a.75.75\x200\x200\x201\x20.592.733v2.754a.75.75\x200\x200\x201-.75.75c-.692\x200-1.203.026-1.584.082-.387.057-.578.137-.675.202-.109.073-.237.205-.237\x201.029v1.078h2.39a.75.75\x200\x200\x201\x20.742.866l-.516\x203.281a.75.75\x200\x200\x201-.74.634h-1.876v6.106C19.09\x2021.082\x2022.5\x2016.939\x2022.5\x2012c0-5.799-4.701-10.5-10.5-10.5zM0\x2012C0\x205.373\x205.373\x200\x2012\x200s12\x205.373\x2012\x2012c0\x205.995-4.395\x2010.961-10.138\x2011.856a.75.75\x200\x200\x201-.866-.74v-7.77a.75.75\x200\x200\x201\x20.75-.75h1.984l.28-1.781h-2.264a.75.75\x200\x200\x201-.75-.75v-1.828c0-.829.089-1.729.9-2.274.363-.244.807-.37\x201.293-.441a9.623\x209.623\x200\x200\x201\x201.053-.086V6.04c-2.41-.405-3.645.132-4.293.771-.737.728-.933\x201.793-.933\x202.582v2.672a.75.75\x200\x200\x201-.75.75H8.133v1.78h2.133a.75.75\x200\x200\x201\x20.75.75v7.772a.75.75\x200\x200\x201-.865.741C4.4\x2022.968\x200\x2018\x200\x2012z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M2.895\x201.201c0-.473.383-.857.857-.857h8.4c.227\x200\x20.445.09.606.251l8.4\x208.4c.16.16.25.379.25.606v13.2a.857.857\x200\x200\x201-.856.857h-16.8a.857.857\x200\x200\x201-.857-.857zm1.714.857v19.886h15.085V10.458h-7.542a.857.857\x200\x200\x201-.858-.857V2.058zm8.4\x201.213\x205.473\x205.473H13.01z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-flickr\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M5.959\x207.926c-2.298\x200-4.14\x201.834-4.14\x204.073\x200\x202.241\x201.842\x204.075\x204.14\x204.075\x202.302\x200\x204.145-1.834\x204.145-4.075\x200-2.238-1.843-4.073-4.145-4.073Zm-5.64\x204.073c0-3.086\x202.533-5.573\x205.64-5.573\x203.11\x200\x205.645\x202.486\x205.645\x205.573\x200\x203.089-2.535\x205.575-5.645\x205.575-3.107\x200-5.64-2.487-5.64-5.575Zm18.07-4.073c-2.301\x200-4.144\x201.835-4.144\x204.073\x200\x202.24\x201.843\x204.075\x204.145\x204.075\x202.299\x200\x204.141-1.834\x204.141-4.075\x200-2.239-1.842-4.073-4.141-4.073Zm-5.644\x204.073c0-3.087\x202.535-5.573\x205.645-5.573\x203.108\x200\x205.641\x202.487\x205.641\x205.573\x200\x203.088-2.533\x205.575-5.641\x205.575-3.11\x200-5.645-2.486-5.645-5.575Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-gdrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.736\x201.818a.75.75\x200\x200\x201\x20.647-.37h7.587a.75.75\x200\x200\x201\x20.655.383l7.233\x2012.946a.75.75\x200\x200\x201-.003.737l-3.794\x206.66a.75.75\x200\x200\x201-.651.378H4.59a.75.75\x200\x200\x201-.651-.378l-3.794-6.66a.75.75\x200\x200\x201\x20.005-.75zm.64\x201.876L1.663\x2015.148l2.93\x205.145\x206.655-11.581zm3.736\x206.526-2.398\x204.173H14.5zm4.116\x204.173h5.697L15.53\x202.947H9.677zm5.685\x201.5H8.852l-2.966\x205.16h13.088z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-gphotos\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M12.51\x200c-.702\x200-1.272.57-1.272\x201.273V7.35A6.381\x206.381\x200\x200\x200\x200\x2011.489c0\x20.703.57\x201.273\x201.273\x201.273H7.35A6.381\x206.381\x200\x200\x200\x2011.488\x2024c.704\x200\x201.274-.57\x201.274-1.273V16.65A6.381\x206.381\x200\x200\x200\x2024\x2012.51c0-.703-.57-1.273-1.273-1.273H16.65A6.381\x206.381\x200\x200\x200\x2012.511\x200Zm.252\x2011.232V1.53a4.857\x204.857\x200\x200\x201\x200\x209.702Zm-1.53.006H1.53a4.857\x204.857\x200\x200\x201\x209.702\x200Zm1.536\x201.524a4.857\x204.857\x200\x200\x200\x209.702\x200h-9.702Zm-6.136\x204.857c0-2.598\x202.04-4.72\x204.606-4.85v9.7a4.857\x204.857\x200\x200\x201-4.606-4.85Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-huddle\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.204\x202.002c-.252.23-.357.486-.357.67V21.07c0\x20.15.084.505.313.812.208.28.499.477.929.477.519\x200\x20.796-.174.956-.365.178-.212.286-.535.286-.924v-.013l.117-6.58c.004-1.725\x201.419-3.883\x203.867-3.883\x201.33\x200\x202.332.581\x202.987\x201.364.637.762.95\x201.717.95\x202.526v6.47c0\x20.392.11.751.305.995.175.22.468.41\x201.008.41.52\x200\x20.816-.198\x201.002-.437.207-.266.31-.633.31-.969V14.04c0-2.81-1.943-5.108-4.136-5.422a5.971\x205.971\x200\x200\x200-3.183.41c-.912.393-1.538.96-1.81\x201.489a.75.75\x200\x200\x201-1.417-.344v-7.5c0-.587-.47-1.031-1.242-1.031-.315\x200-.638.136-.885.36ZM5.194.892A2.844\x202.844\x200\x200\x201\x207.09.142c1.328\x200\x202.742.867\x202.742\x202.53v5.607a6.358\x206.358\x200\x200\x201\x201.133-.629\x207.47\x207.47\x200\x200\x201\x203.989-.516c3.056.436\x205.425\x203.482\x205.425\x206.906v6.914c0\x20.602-.177\x201.313-.627\x201.89-.47.605-1.204\x201.016-2.186\x201.016-.96\x200-1.698-.37-2.179-.973-.46-.575-.633-1.294-.633-1.933v-6.469c0-.456-.19-1.071-.602-1.563-.394-.471-.986-.827-1.836-.827-1.447\x200-2.367\x201.304-2.367\x202.39v.014l-.117\x206.58c-.001.64-.177\x201.333-.637\x201.881-.48.57-1.2.9-2.105.9-.995\x200-1.7-.5-2.132-1.081-.41-.552-.61-1.217-.61-1.708V2.672c0-.707.366-1.341.847-1.78Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-info\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11\x209h2V7h-2m1\x2013c-4.41\x200-8-3.59-8-8s3.59-8\x208-8\x208\x203.59\x208\x208-3.59\x208-8\x208m0-18A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202m-1\x2015h2v-6h-2v6Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-local\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M3\x203.75a1.5\x201.5\x200\x200\x200-1.5\x201.5v13.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V9A1.5\x201.5\x200\x200\x200\x2021\x207.5h-9a.75.75\x200\x200\x201-.643-.364L9.325\x203.75zm-3\x201.5a3\x203\x200\x200\x201\x203-3h6.75a.75.75\x200\x200\x201\x20.643.364L12.425\x206H21a3\x203\x200\x200\x201\x203\x203v9.75a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-microphone\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M7.5\x204.781a4.5\x204.5\x200\x200\x201\x209\x200v6.469a4.5\x204.5\x200\x201\x201-9\x200V4.781Zm4.5-3a3\x203\x200\x200\x200-3\x203v6.469a3\x203\x200\x201\x200\x206\x200V4.781a3\x203\x200\x200\x200-3-3Zm-8.156\x208.11a.75.75\x200\x200\x201\x20.75.75\x207.406\x207.406\x200\x201\x200\x2014.812\x200\x20.75.75\x200\x200\x201\x201.5\x200\x208.907\x208.907\x200\x200\x201-8.156\x208.875v2.703h3.258a.75.75\x200\x201\x201\x200\x201.5H7.992a.75.75\x200\x200\x201\x200-1.5h3.258v-2.703a8.907\x208.907\x200\x200\x201-8.156-8.875.75.75\x200\x200\x201\x20.75-.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-microphone-mute\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M7.5\x204.781a4.5\x204.5\x200\x200\x201\x209\x200V6l3.524-3.524a.75.75\x200\x201\x201\x201.061\x201.06L5.036\x2019.585a.75.75\x200\x200\x201-1.06-1.06l1.656-1.657a8.88\x208.88\x200\x200\x201-2.538-6.227.75.75\x200\x200\x201\x201.5\x200c0\x202.009.8\x203.83\x202.1\x205.166l1.771-1.772A4.483\x204.483\x200\x200\x201\x207.5\x2011.25V4.781Zm2.037\x208.182L15\x207.5V4.781a3\x203\x200\x201\x200-6\x200v6.469c0\x20.637.198\x201.227.537\x201.713Zm10.62-3.072a.75.75\x200\x200\x201\x20.75.75\x208.907\x208.907\x200\x200\x201-8.157\x208.875v2.703h3.258a.75.75\x200\x201\x201\x200\x201.5H7.992a.75.75\x200\x200\x201\x200-1.5h3.258v-2.703a8.855\x208.855\x200\x200\x201-3.035-.811.75.75\x200\x201\x201\x20.638-1.358\x207.406\x207.406\x200\x200\x200\x2010.553-6.707.75.75\x200\x200\x201\x20.75-.75ZM15\x2010.81a.75.75\x200\x200\x201\x201.5\x200v.439a4.5\x204.5\x200\x200\x201-5\x204.473.75.75\x200\x201\x201\x20.166-1.491A3\x203\x200\x200\x200\x2015\x2011.25v-.44Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-mobile-photo-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.65\x202.55a.75.75\x200\x200\x201\x20.6-.3h7.5a.75.75\x200\x200\x201\x20.6.3l2.025\x202.7H21a3\x203\x200\x200\x201\x203\x203v10.5a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V8.25a3\x203\x200\x200\x201\x203-3h2.625zm.975\x201.2L6.6\x206.45a.75.75\x200\x200\x201-.6.3H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h18a1.5\x201.5\x200\x200\x200\x201.5-1.5V8.25a1.5\x201.5\x200\x200\x200-1.5-1.5h-3a.75.75\x200\x200\x201-.6-.3l-2.025-2.7zm3.375\x206a3.375\x203.375\x200\x201\x200\x200\x206.75\x203.375\x203.375\x200\x200\x200\x200-6.75zm-4.875\x203.375a4.875\x204.875\x200\x201\x201\x209.75\x200\x204.875\x204.875\x200\x200\x201-9.75\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-mobile-video-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M0\x206.75a3\x203\x200\x200\x201\x203-3h12a3\x203\x200\x200\x201\x203\x203v1.078L22.873\x205A.75.75\x200\x200\x201\x2024\x205.648v12.704a.75.75\x200\x200\x201-1.123.65L18\x2016.207v1.043a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V6.75Zm18\x207.728\x204.5\x202.58V6.95L18\x209.562v4.916ZM16.5\x206.75a1.5\x201.5\x200\x200\x200-1.5-1.5H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h12a1.5\x201.5\x200\x200\x200\x201.5-1.5V6.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-ngdrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M7.736\x201.818a.75.75\x200\x200\x201\x20.647-.37h7.587a.75.75\x200\x200\x201\x20.655.383l7.233\x2012.946a.75.75\x200\x200\x201-.003.737l-3.794\x206.66a.75.75\x200\x200\x201-.651.378H4.59a.75.75\x200\x200\x201-.651-.378l-3.794-6.66a.75.75\x200\x200\x201\x20.005-.75zm.64\x201.876L1.663\x2015.148l2.93\x205.145\x206.655-11.581zm3.736\x206.526-2.398\x204.173H14.5zm4.116\x204.173h5.697L15.53\x202.947H9.677zm5.685\x201.5H8.852l-2.966\x205.16h13.088z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-onedrive\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13.616\x204.147a7.689\x207.689\x200\x200\x200-7.642\x203.285A6.299\x206.299\x200\x200\x200\x201.455\x2017.3c.684.894\x202.473\x202.658\x205.17\x202.658h12.141c.95\x200\x201.882-.256\x202.697-.743.815-.486\x201.514-1.247\x201.964-2.083a5.26\x205.26\x200\x200\x200-3.713-7.612\x207.69\x207.69\x200\x200\x200-6.098-5.373ZM3.34\x2017.15c.674.63\x201.761\x201.308\x203.284\x201.308h12.142a3.76\x203.76\x200\x200\x200\x202.915-1.383l-7.494-4.489L3.34\x2017.15Zm10.875-6.25\x202.47-1.038a5.239\x205.239\x200\x200\x201\x201.427-.389\x206.19\x206.19\x200\x200\x200-10.3-1.952\x206.338\x206.338\x200\x200\x201\x202.118.813l4.285\x202.567Zm4.55.033c-.512\x200-1.019.104-1.489.307l-.006.003-1.414.594\x206.521\x203.906a3.76\x203.76\x200\x200\x200-3.357-4.8l-.254-.01ZM4.097\x209.617A4.799\x204.799\x200\x200\x201\x206.558\x208.9c.9\x200\x201.84.25\x202.587.713l3.4\x202.037-10.17\x204.28a4.799\x204.799\x200\x200\x201\x201.721-6.312Z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2010\x2010\x27\x20id=\x27uc-icon-pause\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20d=\x27M1\x200h2.5v10H1zM6.5\x200H9v10H6.5z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2010\x2010\x27\x20id=\x27uc-icon-play\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27m1\x200\x209\x205-9\x205V0Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-remove-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.955\x203.3A2.969\x202.969\x200\x200\x200\x208.998\x206h5.914a2.97\x202.97\x200\x200\x200-2.957-2.7zM16.416\x206a4.47\x204.47\x200\x200\x200-8.922\x200h-2.32a.755.755\x200\x200\x200-.111.008H3.075a.75.75\x200\x201\x200\x200\x201.5h1.35V19.35a2.85\x202.85\x200\x200\x200\x202.85\x202.85h9.45a2.85\x202.85\x200\x200\x200\x202.85-2.85V7.508h1.35a.75.75\x200\x200\x200\x200-1.5h-1.989A.754.754\x200\x200\x200\x2018.825\x206zM5.925\x207.508V19.35a1.35\x201.35\x200\x200\x200\x201.35\x201.35h9.45a1.35\x201.35\x200\x200\x200\x201.35-1.35V7.508z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-select\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27m7\x2010\x205\x205\x205-5H7Z\x27/></symbol><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-square\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><rect\x20width=\x2720\x27\x20height=\x2720\x27\x20rx=\x274\x27\x20fill=\x27#fff\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-upload\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M11.501.392a.75.75\x200\x200\x201\x20.998\x200l6.704\x205.972a.75.75\x200\x200\x201-.998\x201.12l-5.455-4.86v13.439a.75.75\x200\x200\x201-1.5\x200V2.625l-5.454\x204.86a.75.75\x200\x201\x201-.998-1.12zM.857\x2016.73a.75.75\x200\x200\x201\x20.75.75v4.914h20.786v-4.914a.75.75\x200\x200\x201\x201.5\x200v5.664a.75.75\x200\x200\x201-.75.75H.857a.75.75\x200\x200\x201-.75-.75v-5.664a.75.75\x200\x200\x201\x20.75-.75z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-upload-error\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M13\x2013h-2V7h2m0\x2010h-2v-2h2M12\x202A10\x2010\x200\x200\x200\x202\x2012a10\x2010\x200\x200\x200\x2010\x2010\x2010\x2010\x200\x200\x200\x2010-10A10\x2010\x200\x200\x200\x2012\x202Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-url\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M19.11\x203.67c-1.71-1.709-4.578-1.682-6.408.148l-2.22\x202.22a.75.75\x200\x200\x201-1.062-1.06l2.222-2.221C14.018.381\x2017.836.276\x2020.17\x202.61l1.22\x201.22c2.335\x202.334\x202.23\x206.153-.147\x208.529l-2.22\x202.22a.75.75\x200\x200\x201-1.062-1.06l2.222-2.221c1.83-1.83\x201.856-4.698.147-6.408zm-3.36\x204.58a.75.75\x200\x200\x201\x200\x201.06l-6.439\x206.44a.75.75\x200\x200\x201-1.06-1.06l6.439-6.44a.75.75\x200\x200\x201\x201.06\x200zM6.04\x209.42a.75.75\x200\x200\x201\x200\x201.061l-2.222\x202.222c-1.83\x201.83-1.856\x204.698-.147\x206.407l1.22\x201.22c1.71\x201.71\x204.578\x201.683\x206.408-.147l2.221-2.221a.75.75\x200\x201\x201\x201.06\x201.06l-2.22\x202.222c-2.377\x202.376-6.195\x202.481-8.53.147l-1.22-1.22c-2.334-2.334-2.228-6.153.148-8.53l2.221-2.22a.75.75\x200\x200\x201\x201.06\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-video-camera\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20clip-rule=\x27evenodd\x27\x20d=\x27M0\x206.75a3\x203\x200\x200\x201\x203-3h12a3\x203\x200\x200\x201\x203\x203v1.078L22.873\x205A.75.75\x200\x200\x201\x2024\x205.648v12.704a.75.75\x200\x200\x201-1.123.65L18\x2016.207v1.043a3\x203\x200\x200\x201-3\x203H3a3\x203\x200\x200\x201-3-3V6.75Zm18\x207.728\x204.5\x202.58V6.95L18\x209.562v4.916ZM16.5\x206.75a1.5\x201.5\x200\x200\x200-1.5-1.5H3a1.5\x201.5\x200\x200\x200-1.5\x201.5v10.5a1.5\x201.5\x200\x200\x200\x201.5\x201.5h12a1.5\x201.5\x200\x200\x200\x201.5-1.5V6.75Z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-video-camera-full\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27M2\x203.333a2\x202\x200\x200\x200-2\x202v9.334a2\x202\x200\x200\x200\x202\x202h10.938a2\x202\x200\x200\x200\x202-2v-2.013L20\x2015.646V4.354l-5.063\x203.03v-2.05a2\x202\x200\x200\x200-2-2H2Z\x27\x20fill=\x27currentColor\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-vk\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M6.341\x203.27a10.5\x2010.5\x200\x200\x201\x205.834-1.77.75.75\x200\x200\x200\x200-1.5\x2012\x2012\x200\x201\x200\x2012\x2012\x20.75.75\x200\x200\x200-1.5\x200A10.5\x2010.5\x200\x201\x201\x206.34\x203.27Zm14.145\x201.48a.75.75\x200\x201\x200-1.06-1.062L9.925\x2013.19V7.95a.75.75\x200\x201\x200-1.5\x200V15c0\x20.414.336.75.75.75h7.05a.75.75\x200\x200\x200\x200-1.5h-5.24l9.501-9.5Z\x27/></symbol></svg>',Zt=class extends C{constructor(){super(...arguments),this['init$']=Un(this);}static{this['styleAttrs']=['uc-wgt-common'];}static{this['lazyPlugins']=null;}['initCallback'](){super['initCallback'](),this['a11y']?.['registerBlock'](this),this['clipboardLayer']?.['registerBlock'](this),this['sharedCtx']['pub']('*solution',this['tagName']);let t=this['constructor']['lazyPlugins'];t&&this['sharedCtx']['pub']('*lazyPlugins',t);}['render'](){return v`${De(Wn)}`;}},Zn=_0x36ff62=>'number'!=typeof _0x36ff62?0x0:Math['floor'](_0x36ff62/0x3e8),Yn=(_0xd77264,{threshold:_0x44ae85})=>{let {secureExpire:t}=_0xd77264,_0x366e4a=Zn(Date['now']()),_0x3bc7ed=Number(t);return _0x366e4a+Zn(_0x44ae85)>=_0x3bc7ed;},Or=class extends j{constructor(){super(...arguments),this['We']=null;}async['getSecureToken'](){let {secureSignature:t,secureExpire:_0x592309,secureUploadsSignatureResolver:_0x27c9f8,secureUploadsExpireThreshold:_0x1291cd}=this['ze'];if((t||_0x592309)&&_0x27c9f8&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x27c9f8){if(!this['We']||Yn(this['We'],{'threshold':_0x1291cd})){this['We']?this['w']('Secure\x20signature\x20is\x20expired.\x20Resolving\x20a\x20new\x20one...'):this['w']('Secure\x20signature\x20is\x20not\x20set\x20yet.');try{let _0x10f222=await _0x27c9f8();_0x10f222?_0x10f222['secureSignature']&&_0x10f222['secureExpire']?(this['w']('Secure\x20signature\x20resolved:',_0x10f222),this['w']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0x10f222['secureExpire']))['toISOString']()),this['We']=_0x10f222):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0x10f222):(this['w']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['We']=null);}catch(_0xcaaad8){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0xcaaad8),this['i']['telemetryManager']['sendEventError'](_0xcaaad8,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['We'];}return t&&_0x592309?(this['w']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':t,'secureExpire':_0x592309}),{'secureSignature':t,'secureExpire':_0x592309}):null;}['destroy'](){super['destroy'](),this['We']=null;}},Qo=(_0x24480e,_0x450944)=>{if(_0x24480e['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x450944['l10n']('some-files-were-not-uploaded')};},Jo=(_0x4ecaeb,_0x5a6a02)=>{let t=_0x4ecaeb['totalCount'],_0x262cb2=_0x5a6a02['cfg']['multiple']?_0x5a6a02['cfg']['multipleMin']:0x0,_0x2d583a=_0x5a6a02['cfg']['multiple']?_0x5a6a02['cfg']['multipleMax']:0x1;return _0x262cb2&&t<_0x262cb2?{'type':'TOO_FEW_FILES','message':_0x5a6a02['l10n']('files-count-limit-error-too-few',{'min':_0x262cb2,'max':_0x2d583a,'total':t}),'payload':{'total':t,'min':_0x262cb2,'max':_0x2d583a}}:_0x2d583a&&t>_0x2d583a?{'type':'TOO_MANY_FILES','message':_0x5a6a02['l10n']('files-count-limit-error-too-many',{'min':_0x262cb2,'max':_0x2d583a,'total':t}),'payload':{'total':t,'min':_0x262cb2,'max':_0x2d583a}}:void 0x0;},ts=(_0x896e4d,_0xd2b96d)=>{let t=_0xd2b96d['cfg']['imgOnly'],_0x1f2149=_0xd2b96d['cfg']['accept'],_0x4a30a7=br([...t?mi:[],_0x1f2149]);if(!_0x4a30a7['length'])return;let _0x5718d6=_0x896e4d['mimeType'],_0x705abb=_0x896e4d['name'];if(!_0x5718d6||!_0x705abb)return;let _0x5c0a14=Wo(_0x5718d6,_0x4a30a7),_0x36845f=zn(_0x705abb,_0x4a30a7);return _0x5c0a14||_0x36845f?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0xd2b96d['l10n']('file-type-not-allowed'),'payload':{'entry':_0x896e4d}};},es=(_0x381ffa,_0x3ffb2a)=>{let t=_0x3ffb2a['cfg']['imgOnly'],_0x39683a=_0x381ffa['isImage'];if(t&&!_0x39683a&&(_0x381ffa['fileInfo']||!_0x381ffa['externalUrl'])&&(_0x381ffa['fileInfo']||_0x381ffa['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x3ffb2a['l10n']('images-only-accepted'),'payload':{'entry':_0x381ffa}};},Dt=0x3e8,Te=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),yi=_0x55bd25=>Math['ceil'](0x64*_0x55bd25)/0x64,Xn=(_0x57e061,_0xc65553=Te['AUTO'])=>{let t=_0xc65553===Te['AUTO'];if(_0xc65553===Te['BYTE']||t&&_0x57e061<Dt**0x1)return _0x57e061+'\x20'+('one'===kr('en-US',_0x57e061)?'byte':'bytes');return _0xc65553===Te['KB']||t&&_0x57e061<Dt**0x2?yi(_0x57e061/Dt**0x1)+'\x20KB':_0xc65553===Te['MB']||t&&_0x57e061<Dt**0x3?yi(_0x57e061/Dt**0x2)+'\x20MB':_0xc65553===Te['GB']||t&&_0x57e061<Dt**0x4?yi(_0x57e061/Dt**0x3)+'\x20GB':_0xc65553===Te['TB']||t&&_0x57e061<Dt**0x5?yi(_0x57e061/Dt**0x4)+'\x20TB':yi(_0x57e061/Dt**0x5)+'\x20PB';},is=(_0x3eb9dd,_0x407782)=>{let t=_0x407782['cfg']['maxLocalFileSizeBytes'],_0x399e03=_0x3eb9dd['size'];if(t&&_0x399e03&&_0x399e03>t)return{'type':'FILE_SIZE_EXCEEDED','message':_0x407782['l10n']('files-max-size-limit-error',{'maxFileSize':Xn(t)}),'payload':{'entry':_0x3eb9dd}};},rs=(_0x29221d,_0x5bc55e)=>{let {internalId:t}=_0x29221d;if(!_0x5bc55e['v']['hasItem'](t))return;let _0x2a24c2=_0x5bc55e['v']['read'](t)?.['getValue']('uploadError');if(!_0x2a24c2)return;if(_0x2a24c2 instanceof st)return{'type':'UPLOAD_ERROR','message':_0x2a24c2['message'],'payload':{'entry':_0x29221d,'error':_0x2a24c2}};if(_0x2a24c2 instanceof Le)return{'type':'NETWORK_ERROR','message':_0x2a24c2['message'],'payload':{'entry':_0x29221d,'error':_0x2a24c2}};let _0x51c83f=_0x2a24c2 instanceof Error?_0x2a24c2:new Error('Unknown\x20error',{'cause':_0x2a24c2});return{'type':'UNKNOWN_ERROR','message':_0x51c83f['message'],'payload':{'entry':_0x29221d,'error':_0x51c83f}};},Fe={'FILE_VALIDATION_FAILED':'File\x20validator\x20execution\x20has\x20failed','FILE_VALIDATION_TIMEOUT':'File\x20validator\x20execution\x20has\x20timed\x20out','COLLECTION_VALIDATION_FAILED':'Collection\x20validator\x20execution\x20has\x20failed','MISSING_ERROR_MESSAGE':'Missing\x20message.\x20We\x20recommend\x20adding\x20message:\x20value.'},ku=_0x26f1e6=>'function'==typeof _0x26f1e6?{'runOn':'change','validator':_0x26f1e6}:_0x26f1e6,Pr=class extends j{constructor(t){super(t),this['ru']=[es,ts,is,rs],this['ou']=[Jo,Qo],this['St']=new ie(0x14),this['Tn']=$(()=>{this['St']['run']();},0x1f4),this['Ie']=!0x1,this['At']=new Map();let _0x4f4767=$(()=>{this['runFileValidators']('change'),this['runCollectionValidators']();},0x0);this['addSub'](this['e']['sub'](A('maxLocalFileSizeBytes'),_0x4f4767)),this['addSub'](this['e']['sub'](A('multipleMin'),_0x4f4767)),this['addSub'](this['e']['sub'](A('multipleMax'),_0x4f4767)),this['addSub'](this['e']['sub'](A('multiple'),_0x4f4767)),this['addSub'](this['e']['sub'](A('imgOnly'),_0x4f4767)),this['addSub'](this['e']['sub'](A('accept'),_0x4f4767)),this['addSub'](this['e']['sub'](A('validationConcurrency'),_0x5c698e=>{this['St']['concurrency']=_0x5c698e;}));}get['v'](){return this['i']['uploadCollection'];}['runFileValidators'](t,_0x39a25e){if(this['Ie'])return;let _0x2c0dae=_0x39a25e??this['v']['items']();for(let _0xc403e4 of _0x2c0dae){let _0x5ea913=this['v']['read'](_0xc403e4);_0x5ea913&&this['su'](_0x5ea913,t);}}['runCollectionValidators'](){if(this['Ie'])return;let t=this['i']['api'],_0x2e5a91=t['getOutputCollectionState'](),_0x20865d=[],_0x5b0c31=this['ze']['collectionValidators'];for(let _0x32bee2 of[...this['ou'],..._0x5b0c31])try{let _0x15790c=_0x32bee2(_0x2e5a91,t);if(!_0x15790c)continue;_0x15790c&&(_0x20865d['push'](this['En'](_0x15790c)),_0x15790c['message']||console['warn'](Fe['MISSING_ERROR_MESSAGE']));}catch(_0xb3ad4){console['warn'](Fe['COLLECTION_VALIDATION_FAILED'],_0xb3ad4);}this['e']['pub']('*collectionErrors',_0x20865d),_0x20865d['length']>0x0&&this['i']['eventEmitter']['emit'](k['COMMON_UPLOAD_FAILED'],()=>t['getOutputCollectionState'](),{'debounce':!0x0});}['cleanupValidationForEntry'](t){let _0x4ebae3=this['At']['get'](t['uid']);_0x4ebae3&&(_0x4ebae3['abortController']?.['abort'](),this['At']['delete'](t['uid']));}async['su'](t,_0x1d2b70){if(this['Ie'])return;let _0xdd4370=this['i']['api'],_0x26b747=this['xn'](t),_0x3b74f8=_0x26b747['promise']??Promise['resolve'](),_0x3be200=((async()=>{if(this['Ie']||(await _0x3b74f8,this['Ie']))return;let _0x2cc62c=this['nu'](t,_0x1d2b70);if(0x0===_0x2cc62c['length']||!this['v']['hasItem'](t['uid']))return;t['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});let _0x4e4327=_0xdd4370['getOutputItem'](t['uid']),_0x47f7df=new AbortController();_0x26b747['abortController']=_0x47f7df;let _0x1e4548=this['ze']['validationTimeout'],_0x313dc9=this['Cn'](),_0x13364c=new Set(_0x2cc62c['map'](_0x127ae8=>_0x127ae8['validator'])),_0x3527bc=[];for(let _0x8c683d of _0x313dc9)if(!_0x13364c['has'](_0x8c683d['validator'])){let _0x42fcdf=_0x26b747['lastErrorThrownByValidator']['get'](_0x8c683d['validator']);_0x42fcdf&&_0x3527bc['push'](_0x42fcdf);}let _0x55128d=_0x2cc62c['map'](_0x36a339=>async()=>{if(this['Ie'])return;let _0x5bbdad=setTimeout(()=>{_0x26b747['skippedValidators']['add'](_0x36a339['validator']),_0x47f7df['abort'](),console['warn'](Fe['FILE_VALIDATION_TIMEOUT']);},_0x1e4548);try{let _0x4f3647=await _0x36a339['validator'](_0x4e4327,_0xdd4370,{'signal':_0x47f7df['signal']});if(!_0x4f3647||_0x47f7df['signal']['aborted'])return void _0x26b747['lastErrorThrownByValidator']['set'](_0x36a339['validator'],void 0x0);let _0x252d26=this['En'](_0x4f3647);_0x26b747['lastErrorThrownByValidator']['set'](_0x36a339['validator'],_0x252d26),_0x3527bc['push'](_0x252d26),_0x4f3647['message']||console['warn'](Fe['MISSING_ERROR_MESSAGE']);}catch(_0x163721){_0x47f7df['signal']['aborted']||(_0x26b747['skippedValidators']['add'](_0x36a339['validator']),console['warn'](Fe['FILE_VALIDATION_FAILED'],_0x163721),this['i']['telemetryManager']['sendEventError'](_0x163721,'file\x20validator.\x20'+Fe['FILE_VALIDATION_FAILED']));}finally{clearTimeout(_0x5bbdad),'change'!==_0x36a339['runOn']&&_0x26b747['skippedValidators']['add'](_0x36a339['validator']);}});this['Tn'](),await this['St']['add'](async()=>{this['Ie']||(t['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x55128d['map'](_0x43edd1=>_0x43edd1()))['catch'](()=>{}));},{'autoRun':!0x1}),_0x47f7df['signal']['aborted']?t['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}):t['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x3527bc});})());_0x26b747['promise']=_0x3be200;try{await _0x3be200;}finally{_0x26b747['promise']===_0x3be200&&(_0x26b747['promise']=void 0x0);}}['En'](t){return{...t,'type':t['type']??'CUSTOM_ERROR'};}['xn'](t){let _0x228f45=this['At']['get'](t['uid']);if(_0x228f45)return _0x228f45;let _0x24d5fa={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['At']['set'](t['uid'],_0x24d5fa),_0x24d5fa;}['Cn'](){let t=this['ze']['fileValidators'];return[...this['ru'],...t]['map'](ku);}['nu'](t,_0x1c2483){let _0x34efa3=this['xn'](t);return this['Cn']()['filter'](_0x490582=>!_0x34efa3['skippedValidators']['has'](_0x490582['validator']))['filter'](_0x51fa92=>_0x51fa92['runOn']===_0x1c2483);}['destroy'](){this['Ie']=!0x0,this['Tn']['cancel']();for(let t of this['At']['values']())t['abortController']?.['abort'](),t['promise']=void 0x0;this['At']['clear']();}},Qn='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',Lr=class{constructor(_0x39eee1){this['J']=ft['generateFastUid'](),this['Y']=H['registerCtx'](_0x39eee1,this['J']);}get['uid'](){return this['J'];}['setValue'](_0x1f7ac6,t){this['Y']['has'](_0x1f7ac6)?this['Y']['read'](_0x1f7ac6)!==t&&this['Y']['pub'](_0x1f7ac6,t):console['warn'](''+Qn+String(_0x1f7ac6));}['setMultipleValues'](_0x3f234c){for(let [t,_0x5cddad]of Object['entries'](_0x3f234c))this['setValue'](t,_0x5cddad);}['getValue'](_0x1ea4ac){return this['Y']['has'](_0x1ea4ac)||console['warn'](''+Qn+String(_0x1ea4ac)),this['Y']['read'](_0x1ea4ac);}['subscribe'](_0x1042fe,t){return this['Y']['sub'](_0x1042fe,t);}['destroy'](){H['deleteCtx'](this['J']);}},Ur=class e{constructor(_0x5e2b2f){this['Pe']=Object['create'](null),this['Zi']=new Set(),this['Yi']=new Set(),this['ye']=new Set(),this['fo']=new Set(),this['mo']=new Set(),this['kt']=new Set(),this['kn']=_0x5e2b2f['initialValue'],this['J']=ft['generateFastUid'](),this['Y']=H['registerCtx']({},this['J']),this['Sn']=_0x5e2b2f['watchList']||[];let t=Object['create'](null);this['An']=(_0x216ced,_0x1beb04)=>{this['Jt']&&window['clearTimeout'](this['Jt']),t[_0x216ced]||(t[_0x216ced]=new Set()),t[_0x216ced]['add'](_0x1beb04),this['Jt']=window['setTimeout'](()=>{0x0!==Object['keys'](t)['length']&&(this['Zi']['forEach'](_0x47c856=>{_0x47c856({...t});}),t=Object['create'](null));}),this['Mn']();},_0x5e2b2f['handler']&&this['observeCollection'](_0x5e2b2f['handler']);}static{this['au']=0x2710;}['q'](){this['ei']&&window['clearTimeout'](this['ei']),this['ei']=window['setTimeout'](()=>{let _0x8b014f=new Set(this['mo']),t=new Set(this['fo']);this['mo']['clear'](),this['fo']['clear']();for(let _0xa62d57 of this['Yi'])_0xa62d57?.([...this['ye']],_0x8b014f,t);this['Mn']();});}['Mn'](){0x0!==this['kt']['size']&&(this['ti']&&window['clearTimeout'](this['ti']),this['ti']=window['setTimeout'](()=>{let _0x3142c7=[...this['kt']];this['kt']['clear']();for(let t of _0x3142c7)t['destroy']();},e['au']));}['observeCollection'](_0x10dce9){return this['Yi']['add'](_0x10dce9),this['ye']['size']>0x0&&this['q'](),()=>{this['unobserveCollection'](_0x10dce9);};}['unobserveCollection'](_0x4ec1b7){this['Yi']['delete'](_0x4ec1b7);}['add'](_0x904a14){let t=new Lr(this['kn']);for(let [_0x4b132b,_0x41bdc1]of Object['entries'](_0x904a14))t['setValue'](_0x4b132b,_0x41bdc1);return this['ye']['add'](t['uid']),this['q'](),this['Y']['add'](t['uid'],t),this['mo']['add'](t),this['Sn']['forEach'](_0x4355ad=>{this['Pe'][t['uid']]||(this['Pe'][t['uid']]=[]),this['Pe'][t['uid']]?.['push'](t['subscribe'](_0x4355ad,()=>{this['An'](_0x4355ad,t['uid']);}));}),t['uid'];}['hasItem'](_0x46b582){return this['ye']['has'](_0x46b582);}['read'](_0x1d75f7){return this['Y']['read'](_0x1d75f7)??null;}['readProp'](_0x362b98,t){let _0x30102c=this['read'](_0x362b98);if(!_0x30102c)throw new Error('TypedCollection#readProp:\x20Item\x20with\x20id\x20'+_0x362b98+'\x20not\x20found');return _0x30102c['getValue'](t);}['publishProp'](_0x1ef7a5,t,_0xb74051){let _0xb477eb=this['read'](_0x1ef7a5);if(!_0xb477eb)throw new Error('TypedCollection#publishProp:\x20Item\x20with\x20id\x20'+_0x1ef7a5+'\x20not\x20found');_0xb477eb['setValue'](t,_0xb74051);}['remove'](_0x50f737){let t=this['read'](_0x50f737);t&&(this['fo']['add'](t),this['kt']['add'](t)),this['ye']['delete'](_0x50f737),this['q'](),this['Y']['pub'](_0x50f737,void 0x0),this['Pe'][_0x50f737]?.['forEach'](_0x8399e9=>{_0x8399e9();}),delete this['Pe'][_0x50f737];}['clearAll'](){this['ye']['forEach'](_0x2d16fd=>{this['remove'](_0x2d16fd);});}['observeProperties'](_0x23fa25){return this['Zi']['add'](_0x23fa25),()=>{this['unobserveProperties'](_0x23fa25);};}['unobserveProperties'](_0x2d5490){this['Zi']['delete'](_0x2d5490);}['findItems'](_0x203d1a){let t=[];return this['ye']['forEach'](_0x297c31=>{let _0x2b088b=this['read'](_0x297c31);_0x2b088b&&_0x203d1a(_0x2b088b)&&t['push'](_0x297c31);}),t;}['items'](){return[...this['ye']];}get['size'](){return this['ye']['size'];}['destroy'](){this['Jt']&&window['clearTimeout'](this['Jt']),this['ei']&&window['clearTimeout'](this['ei']),this['ti']&&window['clearTimeout'](this['ti']);for(let _0x18a163 of this['kt'])_0x18a163['destroy']();this['kt']['clear'](),H['deleteCtx'](this['J']),this['Zi']=new Set(),this['Yi']=new Set();for(let _0x14fcb9 of Object['keys'](this['Pe']))this['Pe'][_0x14fcb9]?.['forEach'](t=>{t();}),delete this['Pe'][_0x14fcb9];}},P=Object['freeze']({'PHOTO':'photo','VIDEO':'video'}),Ct=Object['freeze']({'IDLE':'idle','SHOT':'shot','PLAY':'play','PAUSE':'pause','RESUME':'resume','STOP':'stop','RETAKE':'retake','ACCEPT':'accept'}),Jn=_0x46a243=>({'isVideoRecordingEnabled':K(_0x46a243['cameraModes'])['includes'](P['VIDEO']),'isPhotoEnabled':K(_0x46a243['cameraModes'])['includes'](P['PHOTO'])}),ta=(_0x3edd0c,_0xedd865)=>{for(let t of _0x3edd0c)if(_0xedd865(t))return t;},os=(_0x1c1a1b,_0x2403ee,{timeout:t=0x3e8,onTimeout:_0x1c646b}={})=>new Promise(_0x47986e=>{let _0x35d659,_0x22654e=setTimeout(()=>{cancelAnimationFrame(_0x35d659),_0x1c646b?.();},t),_0x14e08f=()=>{for(let _0x396d4d of _0x1c1a1b)if(_0x2403ee(_0x396d4d))return clearTimeout(_0x22654e),void _0x47986e(_0x396d4d);_0x35d659=requestAnimationFrame(_0x14e08f);};_0x14e08f();});function Rr(_0x3c7934,_0xfebe89){for(let t in _0xfebe89)t['includes']('-')?_0x3c7934['style']['setProperty'](t,String(_0xfebe89[t])):_0x3c7934['style'][t]=String(_0xfebe89[t]);}var Mu=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,Iu=new RegExp('^/?('+Mu['source']+')(?:/(-/(?:[^/]+/)+)?([^/]*))?$','i'),ea=({url:_0x1eda35,cdnBase:_0x43da79})=>{let t=new URL(_0x43da79),_0x319702=new URL(pi),_0x5753bd=new URL(_0x1eda35);if(t['host']!==_0x5753bd['host']&&_0x319702['host']!==_0x5753bd['host'])return null;let _0x46bccd=Iu['exec'](_0x5753bd['pathname']);if(!_0x46bccd)return null;let [,_0x4667d8,_0x2bc1e2,_0x34335b]=_0x46bccd;return _0x4667d8?{'uuid':_0x4667d8,'cdnUrlModifiers':_0x2bc1e2||'','filename':_0x34335b||null}:null;},ut=Object['freeze']({'FACEBOOK':'facebook','DROPBOX':'dropbox','DROPBOX_CHOOSER':'dropboxchooser','GDRIVE':'gdrive','GPHOTOS':'gphotos','FLICKR':'flickr','VK':'vk','EVERNOTE':'evernote','BOX':'box','ONEDRIVE':'onedrive','HUDDLE':'huddle'}),Ou=Object['freeze']({'MOBILE_VIDEO_CAMERA':'mobile-video-camera','MOBILE_PHOTO_CAMERA':'mobile-photo-camera'}),N=Object['freeze']({'LOCAL':'local','DROP_AREA':'drop-area','CAMERA':'camera','EXTERNAL':'external','API':'js-api','URL':'url',...Ou,...ut}),Pu={[ut['DROPBOX_CHOOSER']]:ut['DROPBOX']},ia=_0x2aae3=>Pu[_0x2aae3]??_0x2aae3,$r=_0x5e3c61=>_0x5e3c61['uploadCollection']['items']()['map'](_0x4fb519=>_0x5e3c61['api']['getOutputItem'](_0x4fb519));function ra(_0x32a0c1){let _0xce8494=new Map();return(..._0xb5b8e4)=>{let _0x48df34=JSON['stringify'](_0xb5b8e4);if(_0xce8494['has'](_0x48df34))return _0xce8494['get'](_0x48df34);let _0x45be33=_0x32a0c1(..._0xb5b8e4);return _0xce8494['set'](_0x48df34,_0x45be33),_0x45be33;};}var oa=new Set();function Dr(_0x442b17){oa['has'](_0x442b17)||(oa['add'](_0x442b17),console['warn'](_0x442b17));}function Lu(_0x4fcd39){let _0x4fdc6d=!0x1;return setTimeout(()=>{_0x4fdc6d=!0x0;},0x0),_0x3f4d5b=>(..._0x58cbae)=>(_0x4fdc6d&&Dr(_0x4fcd39),_0x3f4d5b(..._0x58cbae));}function sa(_0x491b93){let _0x40883b={},t=_0x491b93['ctx'],_0x73048f={'progress':()=>t['read']('*commonProgress'),'errors':()=>t['read']('*collectionErrors'),'group':()=>t['read']('*groupInfo'),'totalCount':()=>_0x491b93['uploadCollection']['size'],'failedCount':()=>_0x40883b['failedEntries']['length'],'successCount':()=>_0x40883b['successEntries']['length'],'uploadingCount':()=>_0x40883b['uploadingEntries']['length'],'status':()=>_0x40883b['isFailed']?'failed':_0x40883b['isUploading']?'uploading':_0x40883b['isSuccess']?'success':'idle','isSuccess':()=>_0x40883b['allEntries']['length']>0x0&&0x0===_0x40883b['errors']['length']&&_0x40883b['successEntries']['length']===_0x40883b['allEntries']['length'],'isUploading':()=>_0x40883b['allEntries']['some'](_0x5b1f76=>'uploading'===_0x5b1f76['status']),'isFailed':()=>_0x40883b['errors']['length']>0x0||_0x40883b['failedEntries']['length']>0x0,'allEntries':()=>$r(_0x491b93),'successEntries':()=>_0x40883b['allEntries']['filter'](_0xdf38bf=>'success'===_0xdf38bf['status']),'failedEntries':()=>_0x40883b['allEntries']['filter'](_0x107179=>'failed'===_0x107179['status']),'uploadingEntries':()=>_0x40883b['allEntries']['filter'](_0x97ebd4=>'uploading'===_0x97ebd4['status']),'idleEntries':()=>_0x40883b['allEntries']['filter'](_0x3e747a=>'idle'===_0x3e747a['status'])},_0x61770b=Lu('You\x27re\x20trying\x20to\x20access\x20the\x20OutputCollectionState\x20asynchronously.\x20In\x20this\x20case,\x20the\x20data\x20you\x20retrieve\x20will\x20be\x20newer\x20than\x20it\x20was\x20when\x20the\x20OutputCollectionState\x20was\x20created\x20or\x20when\x20the\x20event\x20was\x20dispatched.\x20If\x20you\x20want\x20to\x20retain\x20the\x20state\x20at\x20a\x20specific\x20moment\x20in\x20time,\x20you\x20should\x20use\x20the\x20spread\x20operator\x20like\x20this:\x20`{...outputCollectionState}`\x20or\x20`{...e.detail}`');for(let [_0x2a9e9f,_0x50a4f2]of Object['entries'](_0x73048f)){let _0x1c06b4=_0x2a9e9f,_0x4a5723=ra(_0x61770b(_0x50a4f2));Object['defineProperty'](_0x40883b,_0x1c06b4,{'get':_0x4a5723,'enumerable':!0x0});}return _0x40883b;}var Fr=class extends j{constructor(){super(...arguments),this['Et']=Mr(()=>this['e']),this['addFileFromUrl']=(t,{silent:_0x5b6155,fileName:_0x4fd003,source:_0x446448}={})=>{let _0x4d7043=this['v']['add']({'externalUrl':t,'fileName':_0x4fd003??null,'silent':_0x5b6155??!0x1,'source':_0x446448??N['API']});return this['getOutputItem'](_0x4d7043);},this['addFileFromUuid']=(t,{silent:_0x479caf,fileName:_0x3cfddc,source:_0x4a00db}={})=>{let _0x1d5bac=this['v']['add']({'uuid':t,'fileName':_0x3cfddc??null,'silent':_0x479caf??!0x1,'source':_0x4a00db??N['API']});return this['getOutputItem'](_0x1d5bac);},this['addFileFromCdnUrl']=(t,{silent:_0x53aca5,fileName:_0x15068e,source:_0x28c61c}={})=>{let _0x3d4661=ea({'url':t,'cdnBase':this['cfg']['cdnCname']});if(!_0x3d4661)throw new Error('Invalid\x20CDN\x20URL');let _0x59326c=this['v']['add']({'uuid':_0x3d4661['uuid'],'cdnUrl':t,'cdnUrlModifiers':_0x3d4661['cdnUrlModifiers'],'fileName':_0x15068e??_0x3d4661['filename']??null,'silent':_0x53aca5??!0x1,'source':_0x28c61c??N['API']});return this['getOutputItem'](_0x59326c);},this['addFileFromObject']=(t,{silent:_0x2053ec,fileName:_0x271dc8,source:_0x20809c,fullPath:_0x1e0af6}={})=>{let _0x1cc75c=this['v']['add']({'file':t,'isImage':Re(t),'mimeType':t['type']||null,'fileName':_0x271dc8??t['name'],'fileSize':t['size'],'silent':_0x2053ec??!0x1,'source':_0x20809c??N['API'],'fullPath':_0x1e0af6??null});return this['getOutputItem'](_0x1cc75c);},this['removeFileByInternalId']=t=>{if(!this['v']['read'](t))throw new Error('File\x20with\x20internalId\x20'+t+'\x20not\x20found');this['v']['remove'](t);},this['uploadAll']=()=>{let t=this['v']['items']()['filter'](_0x311d2d=>{let _0xd4276c=this['v']['read'](_0x311d2d);return!!_0xd4276c&&!(_0xd4276c['getValue']('isRemoved')||_0xd4276c['getValue']('isUploading')||_0xd4276c['getValue']('fileInfo')||0x0!==_0xd4276c['getValue']('errors')['length']||_0xd4276c['getValue']('isValidationPending')||_0xd4276c['getValue']('isQueuedForValidation'));});0x0!==t['length']&&(this['e']['pub']('*uploadTrigger',new Set(t)),this['i']['eventEmitter']['emit'](k['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));},this['openSystemDialog']=(t={})=>{let _0x1f1be3=Ht(br([this['cfg']['accept']??'',...this['cfg']['imgOnly']?mi:[]])),_0x1d4ec1='uploadcare-file-input',_0x44f23f=document['createElement']('input');if(_0x44f23f['setAttribute'](_0x1d4ec1,''),Rr(_0x44f23f,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0x44f23f['type']='file',_0x44f23f['multiple']=this['cfg']['multiple'],t['captureCamera']){_0x44f23f['capture']=this['cfg']['cameraCapture'];let {isPhotoEnabled:_0x367b75,isVideoRecordingEnabled:_0x2e4ee7}=Jn(this['cfg']);t['modeCamera']===P['PHOTO']&&_0x367b75?_0x44f23f['accept']=fi:t['modeCamera']===P['VIDEO']&&_0x2e4ee7?_0x44f23f['accept']=qo:_0x44f23f['accept']=[fi,_0x2e4ee7&&qo]['filter'](Boolean)['join'](',');}else _0x44f23f['accept']=_0x1f1be3;_0x44f23f['addEventListener']('change',()=>{_0x44f23f['files']&&([..._0x44f23f['files']]['forEach'](_0x5a2690=>{this['addFileFromObject'](_0x5a2690,{'source':t['captureCamera']?N['CAMERA']:N['LOCAL']});}),this['e']['pub']('*currentActivity',F['UPLOAD_LIST']),this['i']['modalManager']?.['open'](F['UPLOAD_LIST']),_0x44f23f['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x1d4ec1+']')['forEach'](_0xe2225d=>{_0xe2225d['remove']();}),document['body']['appendChild'](_0x44f23f),_0x44f23f['dispatchEvent'](new MouseEvent('click'));},this['initFlow']=(t=!0x1)=>{if(this['v']['size']>0x0&&!t)this['e']['pub']('*currentActivity',F['UPLOAD_LIST']),this['i']['modalManager']?.['open'](F['UPLOAD_LIST']);else{if(0x1===this['On']?.['length']){let _0x4b5bf6=this['On'][0x0];this['go']()['then'](()=>{let _0xfa8c6b=this['i']['pluginManager']['snapshot']()['sources'],_0x292e2f=_0xfa8c6b['find'](_0x45c97f=>_0x45c97f['id']===_0x4b5bf6);if(_0x292e2f){let _0x11efea=_0x292e2f['expand']?.()??[_0x4b5bf6];return void(0x1===_0x11efea['length']?(_0xfa8c6b['find'](_0x645b61=>_0x645b61['id']===_0x11efea[0x0])??_0x292e2f)['onSelect']():(this['e']['pub']('*currentActivity',F['START_FROM']),this['i']['modalManager']?.['open'](F['START_FROM'])));}this['e']['read']('*currentActivity')&&this['i']['modalManager']?.['open'](this['e']['read']('*currentActivity'));});}else this['e']['pub']('*currentActivity',F['START_FROM']),this['i']['modalManager']?.['open'](F['START_FROM']);}},this['doneFlow']=()=>{let t=ta(this['i']['blocksRegistry'],_0x2e0cde=>'doneActivity'in _0x2e0cde);t&&(this['e']['pub']('*currentActivity',t['doneActivity']),this['e']['pub']('*history',t['doneActivity']?[t['doneActivity']]:[]),this['e']['read']('*currentActivity')||this['i']['modalManager']?.['closeAll']());},this['setCurrentActivity']=(t,..._0x1c7623)=>{this['go']()['then'](()=>{this['e']['pub']('*currentActivityParams',_0x1c7623[0x0]??{}),this['e']['pub']('*currentActivity',t),os(this['i']['blocksRegistry'],_0x3107e1=>_0x3107e1['activityType']===t,{'onTimeout':()=>console['warn']('Activity\x20type\x20\x22'+t+'\x22\x20not\x20found\x20in\x20the\x20context'),'timeout':0x64});});},this['on']=(t,_0x3fd121)=>this['i']['eventEmitter']['on'](t,_0x3fd121),this['getCurrentActivity']=()=>this['e']['read']('*currentActivity'),this['historyBack']=()=>{this['e']['read']('*historyBack')?.();},this['setModalState']=t=>{this['go']()['then'](()=>{if(!t)return this['i']['modalManager']?.['close'](this['e']['read']('*currentActivity')),void this['e']['pub']('*currentActivity',null);let _0x19c901=this['e']['read']('*currentActivity');if(_0x19c901)return os(this['i']['blocksRegistry'],_0x116efd=>_0x116efd['activityType']===_0x19c901,{'onTimeout':()=>console['warn']('Activity\x20block\x20\x22'+_0x19c901+'\x22\x20not\x20found\x20in\x20the\x20context')})['then'](()=>{this['i']['modalManager']?.['open'](_0x19c901);});console['warn']('Can\x27t\x20open\x20modal\x20without\x20current\x20activity.\x20Please\x20use\x20\x22setCurrentActivity\x22\x20method\x20first.');});};}get['v'](){return this['i']['uploadCollection'];}get['cfg'](){return this['ze'];}get['l10n'](){return this['Et'];}['removeAllFiles'](){this['v']['clearAll']();}['getOutputItem'](t){let _0x16e7cf=H['getCtx'](t);if(!_0x16e7cf)throw new Error('UploaderPublicApi#getOutputItem:\x20Entry\x20with\x20ID\x20\x22'+t+'\x22\x20not\x20found\x20in\x20the\x20upload\x20collection');let _0x40c4fb=_0x16e7cf['store'],_0xb054c5=_0x40c4fb['fileInfo'],_0x48d86a=_0x40c4fb['isRemoved']?'removed':_0x40c4fb['errors']['length']>0x0?'failed':_0x40c4fb['fileInfo']?'success':_0x40c4fb['isUploading']?'uploading':'idle';return{'uuid':_0xb054c5?.['uuid']??_0x40c4fb['uuid']??null,'internalId':t,'name':_0xb054c5?.['originalFilename']??_0x40c4fb['fileName'],'size':_0xb054c5?.['size']??_0x40c4fb['fileSize'],'isImage':_0xb054c5?.['isImage']??_0x40c4fb['isImage'],'mimeType':_0xb054c5?.['mimeType']??_0x40c4fb['mimeType'],'file':_0x40c4fb['file'],'externalUrl':_0x40c4fb['externalUrl'],'cdnUrlModifiers':_0x40c4fb['cdnUrlModifiers'],'cdnUrl':_0x40c4fb['cdnUrl']??_0xb054c5?.['cdnUrl']??null,'fullPath':_0x40c4fb['fullPath'],'uploadProgress':_0x40c4fb['uploadProgress'],'fileInfo':_0xb054c5??null,'metadata':_0x40c4fb['metadata']??_0xb054c5?.['metadata']??null,'isSuccess':'success'===_0x48d86a,'isUploading':'uploading'===_0x48d86a,'isFailed':'failed'===_0x48d86a,'isRemoved':'removed'===_0x48d86a,'isValidationPending':_0x40c4fb['isValidationPending'],'errors':_0x40c4fb['errors'],'status':_0x48d86a,'source':_0x40c4fb?.['source']};}['getOutputCollectionState'](){return sa(this['i']);}async['go'](){return(await this['i']['wait']('pluginManager'))['pluginsReady']();}get['On'](){let t=[];return this['cfg']['sourceList']&&(t=Z(this['cfg']['sourceList'])),t;}},na={'file':null,'externalUrl':null,'fileName':null,'fileSize':null,'lastModified':Date['now'](),'uploadProgress':0x0,'uuid':null,'isImage':!0x1,'mimeType':null,'ctxName':null,'cdnUrl':null,'cdnUrlModifiers':null,'fileInfo':null,'isUploading':!0x1,'abortController':null,'thumbUrl':null,'silent':!0x1,'source':null,'fullPath':null,'metadata':null,'errors':[],'uploadError':null,'isRemoved':!0x1,'isQueuedForUploading':!0x1,'isValidationPending':!0x1,'isQueuedForValidation':!0x1},bi=33.333333333333336,M=0x1,ss=0x18,aa=0x6;function se(_0x82fc69,_0x266ef5){for(let [t,_0x5501ba]of Object['entries'](_0x266ef5))_0x82fc69['setAttributeNS'](null,t,_0x5501ba['toString']());}function vt(_0x2849e7,_0x185592={}){let t=document['createElementNS']('http://www.w3.org/2000/svg',_0x2849e7);return se(t,_0x185592),t;}function la(_0x3cce42,_0x4aa9e7,t){let {x:_0x36c8fb,y:_0x2782fc,width:_0x3bdf,height:_0x4dfd01}=_0x3cce42,_0x259ed9=_0x4aa9e7['includes']('w')?0x0:0x1,_0x4f2f1a=_0x4aa9e7['includes']('n')?0x0:0x1,_0x55e683=0x0===_0x259ed9?-0x1:0x1,_0x25e8d1=0x0===_0x4f2f1a?-0x1:0x1,_0x2de469=[_0x36c8fb+_0x259ed9*_0x3bdf+1.5*_0x55e683,_0x2782fc+_0x4f2f1a*_0x4dfd01+1.5*_0x25e8d1-0x18*t*_0x25e8d1],_0x40f8bc=[_0x36c8fb+_0x259ed9*_0x3bdf+1.5*_0x55e683,_0x2782fc+_0x4f2f1a*_0x4dfd01+1.5*_0x25e8d1],_0x56e5ba=[_0x36c8fb+_0x259ed9*_0x3bdf-0x18*t*_0x55e683+1.5*_0x55e683,_0x2782fc+_0x4f2f1a*_0x4dfd01+1.5*_0x25e8d1];return{'d':'M\x20'+_0x2de469[0x0]+'\x20'+_0x2de469[0x1]+'\x20L\x20'+_0x40f8bc[0x0]+'\x20'+_0x40f8bc[0x1]+'\x20L\x20'+_0x56e5ba[0x0]+'\x20'+_0x56e5ba[0x1],'center':[_0x40f8bc[0x0],_0x40f8bc[0x1]]};}function ca(_0x1bfdb4,_0x56816e,t){let _0x41abc2,_0x11f693,{x:_0x49acfa,y:_0x3f17b7,width:_0x189bfb,height:_0x236fc9}=_0x1bfdb4,_0x300029='n'===_0x56816e||'s'===_0x56816e,_0x296218=_0x300029?0.5:'w'===_0x56816e?0x0:0x1,_0x386968='w'===_0x56816e||'e'===_0x56816e?0.5:'n'===_0x56816e?0x0:0x1,_0x489181='w'===_0x56816e?-0x1:'e'===_0x56816e?0x1:0x0,_0x203bbd='n'===_0x56816e?-0x1:'s'===_0x56816e?0x1:0x0;return _0x300029?(_0x41abc2=[_0x49acfa+_0x296218*_0x189bfb-0x22*t/0x2,_0x3f17b7+_0x386968*_0x236fc9+1.5*_0x203bbd],_0x11f693=[_0x49acfa+_0x296218*_0x189bfb+0x22*t/0x2,_0x3f17b7+_0x386968*_0x236fc9+1.5*_0x203bbd]):(_0x41abc2=[_0x49acfa+_0x296218*_0x189bfb+1.5*_0x489181,_0x3f17b7+_0x386968*_0x236fc9-0x22*t/0x2],_0x11f693=[_0x49acfa+_0x296218*_0x189bfb+1.5*_0x489181,_0x3f17b7+_0x386968*_0x236fc9+0x22*t/0x2]),{'d':'M\x20'+_0x41abc2[0x0]+'\x20'+_0x41abc2[0x1]+'\x20L\x20'+_0x11f693[0x0]+'\x20'+_0x11f693[0x1],'center':[(_0x41abc2[0x0]+_0x11f693[0x0])/0x2,(_0x41abc2[0x1]+_0x11f693[0x1])/0x2]};}function ua(_0x3a79c2){return''===_0x3a79c2?'move':['e','w']['includes'](_0x3a79c2)?'ew-resize':['n','s']['includes'](_0x3a79c2)?'ns-resize':['nw','se']['includes'](_0x3a79c2)?'nwse-resize':'nesw-resize';}function da({rect:_0x39e87e,delta:[_0xd074c4,t],imageBox:_0x22541b}){return Ne({..._0x39e87e,'x':_0x39e87e['x']+_0xd074c4,'y':_0x39e87e['y']+t},_0x22541b);}function Ne(_0x2d6638,_0x432dc3){let {x:t}=_0x2d6638,{y:_0x1f3e7b}=_0x2d6638;return _0x2d6638['x']<_0x432dc3['x']?t=_0x432dc3['x']:_0x2d6638['x']+_0x2d6638['width']>_0x432dc3['x']+_0x432dc3['width']&&(t=_0x432dc3['x']+_0x432dc3['width']-_0x2d6638['width']),_0x2d6638['y']<_0x432dc3['y']?_0x1f3e7b=_0x432dc3['y']:_0x2d6638['y']+_0x2d6638['height']>_0x432dc3['y']+_0x432dc3['height']&&(_0x1f3e7b=_0x432dc3['y']+_0x432dc3['height']-_0x2d6638['height']),{..._0x2d6638,'x':t,'y':_0x1f3e7b};}function Uu({rect:_0x47add6,delta:_0x70f455,aspectRatio:t,imageBox:_0x187ff4}){let [,_0x4a81fe]=_0x70f455,{y:_0x45f5cc,width:_0x11597c,height:_0x40c79f}=_0x47add6;_0x45f5cc+=_0x4a81fe,_0x40c79f-=_0x4a81fe,t&&(_0x11597c=_0x40c79f*t);let _0x949f18=_0x47add6['x']+_0x47add6['width']/0x2-_0x11597c/0x2;return _0x45f5cc<=_0x187ff4['y']&&(_0x45f5cc=_0x187ff4['y'],_0x40c79f=_0x47add6['y']+_0x47add6['height']-_0x45f5cc,t&&(_0x11597c=_0x40c79f*t,_0x949f18=_0x47add6['x']+_0x47add6['width']/0x2-_0x11597c/0x2)),_0x949f18<=_0x187ff4['x']&&(_0x949f18=_0x187ff4['x'],_0x45f5cc=_0x47add6['y']+_0x47add6['height']-_0x40c79f),_0x949f18+_0x11597c>=_0x187ff4['x']+_0x187ff4['width']&&(_0x949f18=Math['max'](_0x187ff4['x'],_0x187ff4['x']+_0x187ff4['width']-_0x11597c),_0x11597c=_0x187ff4['x']+_0x187ff4['width']-_0x949f18,t&&(_0x40c79f=_0x11597c/t),_0x45f5cc=_0x47add6['y']+_0x47add6['height']-_0x40c79f),_0x40c79f<M&&(_0x40c79f=M,t&&(_0x11597c=_0x40c79f*t,_0x949f18=_0x47add6['x']+_0x47add6['width']/0x2-_0x11597c/0x2),_0x45f5cc=_0x47add6['y']+_0x47add6['height']-_0x40c79f),_0x11597c<M&&(_0x11597c=M,t&&(_0x40c79f=_0x11597c/t,_0x949f18=_0x47add6['x']+_0x47add6['width']/0x2-_0x11597c/0x2),_0x45f5cc=_0x47add6['y']+_0x47add6['height']-_0x40c79f),{'x':_0x949f18,'y':_0x45f5cc,'width':_0x11597c,'height':_0x40c79f};}function Ru({rect:_0x50772b,delta:_0x331c8c,aspectRatio:t,imageBox:_0x13d6bf}){let [_0x20b7d0]=_0x331c8c,{x:_0x5c1f98,width:_0x2a4c6e,height:_0x1d89b8}=_0x50772b;_0x5c1f98+=_0x20b7d0,_0x2a4c6e-=_0x20b7d0,t&&(_0x1d89b8=_0x2a4c6e/t);let _0x18ff18=_0x50772b['y']+_0x50772b['height']/0x2-_0x1d89b8/0x2;return _0x5c1f98<=_0x13d6bf['x']&&(_0x5c1f98=_0x13d6bf['x'],_0x2a4c6e=_0x50772b['x']+_0x50772b['width']-_0x5c1f98,t&&(_0x1d89b8=_0x2a4c6e/t,_0x18ff18=_0x50772b['y']+_0x50772b['height']/0x2-_0x1d89b8/0x2)),_0x18ff18<=_0x13d6bf['y']&&(_0x18ff18=_0x13d6bf['y'],_0x5c1f98=_0x50772b['x']+_0x50772b['width']-_0x2a4c6e),_0x18ff18+_0x1d89b8>=_0x13d6bf['y']+_0x13d6bf['height']&&(_0x18ff18=Math['max'](_0x13d6bf['y'],_0x13d6bf['y']+_0x13d6bf['height']-_0x1d89b8),_0x1d89b8=_0x13d6bf['y']+_0x13d6bf['height']-_0x18ff18,t&&(_0x2a4c6e=_0x1d89b8*t),_0x5c1f98=_0x50772b['x']+_0x50772b['width']-_0x2a4c6e),_0x1d89b8<M&&(_0x1d89b8=M,t&&(_0x2a4c6e=_0x1d89b8*t),_0x18ff18=_0x50772b['y']+_0x50772b['height']/0x2-_0x1d89b8/0x2,_0x5c1f98=_0x50772b['x']+_0x50772b['width']-_0x2a4c6e),_0x2a4c6e<M&&(_0x2a4c6e=M,t&&(_0x1d89b8=_0x2a4c6e/t),_0x18ff18=_0x50772b['y']+_0x50772b['height']/0x2-_0x1d89b8/0x2,_0x5c1f98=_0x50772b['x']+_0x50772b['width']-_0x2a4c6e),{'x':_0x5c1f98,'y':_0x18ff18,'width':_0x2a4c6e,'height':_0x1d89b8};}function $u({rect:_0x5c9ce4,delta:_0x2005e4,aspectRatio:t,imageBox:_0x256b4e}){let [,_0x263b8a]=_0x2005e4,{y:_0x5a9062,width:_0xda851,height:_0x2aff40}=_0x5c9ce4;_0x2aff40+=_0x263b8a,t&&(_0xda851=_0x2aff40*t);let _0x1c97e2=_0x5c9ce4['x']+_0x5c9ce4['width']/0x2-_0xda851/0x2;return _0x5a9062+_0x2aff40>=_0x256b4e['y']+_0x256b4e['height']&&(_0x2aff40=_0x256b4e['y']+_0x256b4e['height']-_0x5a9062,t&&(_0xda851=_0x2aff40*t),_0x1c97e2=_0x5c9ce4['x']+_0x5c9ce4['width']/0x2-_0xda851/0x2),_0x1c97e2<=_0x256b4e['x']&&(_0x1c97e2=_0x256b4e['x'],_0x5a9062=_0x5c9ce4['y']),_0x1c97e2+_0xda851>=_0x256b4e['x']+_0x256b4e['width']&&(_0x1c97e2=Math['max'](_0x256b4e['x'],_0x256b4e['x']+_0x256b4e['width']-_0xda851),_0xda851=_0x256b4e['x']+_0x256b4e['width']-_0x1c97e2,t&&(_0x2aff40=_0xda851/t),_0x5a9062=_0x5c9ce4['y']),_0x2aff40<M&&(_0x2aff40=M,t&&(_0xda851=_0x2aff40*t),_0x1c97e2=_0x5c9ce4['x']+_0x5c9ce4['width']/0x2-_0xda851/0x2),_0xda851<M&&(_0xda851=M,t&&(_0x2aff40=_0xda851/t),_0x1c97e2=_0x5c9ce4['x']+_0x5c9ce4['width']/0x2-_0xda851/0x2),{'x':_0x1c97e2,'y':_0x5a9062,'width':_0xda851,'height':_0x2aff40};}function Du({rect:_0x8ff46d,delta:_0x2081bf,aspectRatio:t,imageBox:_0x3c42f2}){let [_0x595a47]=_0x2081bf,{x:_0x31c3d6,width:_0xad49fc,height:_0x2cb85a}=_0x8ff46d;_0xad49fc+=_0x595a47,t&&(_0x2cb85a=_0xad49fc/t);let _0x48296f=_0x8ff46d['y']+_0x8ff46d['height']/0x2-_0x2cb85a/0x2;return _0x31c3d6+_0xad49fc>=_0x3c42f2['x']+_0x3c42f2['width']&&(_0xad49fc=_0x3c42f2['x']+_0x3c42f2['width']-_0x31c3d6,t&&(_0x2cb85a=_0xad49fc/t),_0x48296f=_0x8ff46d['y']+_0x8ff46d['height']/0x2-_0x2cb85a/0x2),_0x48296f<=_0x3c42f2['y']&&(_0x48296f=_0x3c42f2['y'],_0x31c3d6=_0x8ff46d['x']),_0x48296f+_0x2cb85a>=_0x3c42f2['y']+_0x3c42f2['height']&&(_0x48296f=Math['max'](_0x3c42f2['y'],_0x3c42f2['y']+_0x3c42f2['height']-_0x2cb85a),_0x2cb85a=_0x3c42f2['y']+_0x3c42f2['height']-_0x48296f,t&&(_0xad49fc=_0x2cb85a*t),_0x31c3d6=_0x8ff46d['x']),_0x2cb85a<M&&(_0x2cb85a=M,t&&(_0xad49fc=_0x2cb85a*t),_0x48296f=_0x8ff46d['y']+_0x8ff46d['height']/0x2-_0x2cb85a/0x2),_0xad49fc<M&&(_0xad49fc=M,t&&(_0x2cb85a=_0xad49fc/t),_0x48296f=_0x8ff46d['y']+_0x8ff46d['height']/0x2-_0x2cb85a/0x2),{'x':_0x31c3d6,'y':_0x48296f,'width':_0xad49fc,'height':_0x2cb85a};}function Fu({rect:_0x567a8b,delta:_0x2252e9,aspectRatio:t,imageBox:_0x197485}){let [_0x1c7c36,_0x4bc828]=_0x2252e9,{x:_0xa57a03,y:_0x359fae,width:_0x381fd8,height:_0x5b64d0}=_0x567a8b;return _0xa57a03+_0x1c7c36<_0x197485['x']&&(_0x1c7c36=_0x197485['x']-_0xa57a03),_0x359fae+_0x4bc828<_0x197485['y']&&(_0x4bc828=_0x197485['y']-_0x359fae),_0xa57a03+=_0x1c7c36,_0x381fd8-=_0x1c7c36,_0x359fae+=_0x4bc828,_0x5b64d0-=_0x4bc828,t&&Math['abs'](_0x381fd8/_0x5b64d0)>t?(_0x4bc828=_0x381fd8/t-_0x5b64d0,_0x5b64d0+=_0x4bc828,_0x359fae-=_0x4bc828,_0x359fae<=_0x197485['y']&&(_0x5b64d0-=_0x197485['y']-_0x359fae,_0x381fd8=_0x5b64d0*t,_0xa57a03=_0x567a8b['x']+_0x567a8b['width']-_0x381fd8,_0x359fae=_0x197485['y'])):t&&(_0x1c7c36=_0x5b64d0*t-_0x381fd8,_0x381fd8+=_0x1c7c36,_0xa57a03-=_0x1c7c36,_0xa57a03<=_0x197485['x']&&(_0x381fd8-=_0x197485['x']-_0xa57a03,_0x5b64d0=_0x381fd8/t,_0xa57a03=_0x197485['x'],_0x359fae=_0x567a8b['y']+_0x567a8b['height']-_0x5b64d0)),_0x5b64d0<M&&(_0x5b64d0=M,t&&(_0x381fd8=_0x5b64d0*t),_0xa57a03=_0x567a8b['x']+_0x567a8b['width']-_0x381fd8,_0x359fae=_0x567a8b['y']+_0x567a8b['height']-_0x5b64d0),_0x381fd8<M&&(_0x381fd8=M,t&&(_0x5b64d0=_0x381fd8/t),_0xa57a03=_0x567a8b['x']+_0x567a8b['width']-_0x381fd8,_0x359fae=_0x567a8b['y']+_0x567a8b['height']-_0x5b64d0),{'x':_0xa57a03,'y':_0x359fae,'width':_0x381fd8,'height':_0x5b64d0};}function Vu({rect:_0x3124bb,delta:_0x4220f5,aspectRatio:t,imageBox:_0x2bc6c8}){let [_0x10338d,_0x386d62]=_0x4220f5,{x:_0x5a6824,y:_0x16c4af,width:_0x2eee97,height:_0x2e3098}=_0x3124bb;return _0x5a6824+_0x2eee97+_0x10338d>_0x2bc6c8['x']+_0x2bc6c8['width']&&(_0x10338d=_0x2bc6c8['x']+_0x2bc6c8['width']-_0x5a6824-_0x2eee97),_0x16c4af+_0x386d62<_0x2bc6c8['y']&&(_0x386d62=_0x2bc6c8['y']-_0x16c4af),_0x2eee97+=_0x10338d,_0x16c4af+=_0x386d62,_0x2e3098-=_0x386d62,t&&Math['abs'](_0x2eee97/_0x2e3098)>t?(_0x386d62=_0x2eee97/t-_0x2e3098,_0x2e3098+=_0x386d62,_0x16c4af-=_0x386d62,_0x16c4af<=_0x2bc6c8['y']&&(_0x2e3098-=_0x2bc6c8['y']-_0x16c4af,_0x2eee97=_0x2e3098*t,_0x5a6824=_0x3124bb['x'],_0x16c4af=_0x2bc6c8['y'])):t&&(_0x10338d=_0x2e3098*t-_0x2eee97,_0x2eee97+=_0x10338d,_0x5a6824+_0x2eee97>=_0x2bc6c8['x']+_0x2bc6c8['width']&&(_0x2eee97=_0x2bc6c8['x']+_0x2bc6c8['width']-_0x5a6824,_0x2e3098=_0x2eee97/t,_0x5a6824=_0x2bc6c8['x']+_0x2bc6c8['width']-_0x2eee97,_0x16c4af=_0x3124bb['y']+_0x3124bb['height']-_0x2e3098)),_0x2e3098<M&&(_0x2e3098=M,t&&(_0x2eee97=_0x2e3098*t),_0x16c4af=_0x3124bb['y']+_0x3124bb['height']-_0x2e3098),_0x2eee97<M&&(_0x2eee97=M,t&&(_0x2e3098=_0x2eee97/t),_0x16c4af=_0x3124bb['y']+_0x3124bb['height']-_0x2e3098),{'x':_0x5a6824,'y':_0x16c4af,'width':_0x2eee97,'height':_0x2e3098};}function Nu({rect:_0x5986be,delta:_0x41cb15,aspectRatio:t,imageBox:_0x58b0f0}){let [_0xef6cd4,_0x2c0642]=_0x41cb15,{x:_0x3cc5d4,y:_0x5d1b69,width:_0x1d3183,height:_0x5ed612}=_0x5986be;return _0x3cc5d4+_0xef6cd4<_0x58b0f0['x']&&(_0xef6cd4=_0x58b0f0['x']-_0x3cc5d4),_0x5d1b69+_0x5ed612+_0x2c0642>_0x58b0f0['y']+_0x58b0f0['height']&&(_0x2c0642=_0x58b0f0['y']+_0x58b0f0['height']-_0x5d1b69-_0x5ed612),_0x3cc5d4+=_0xef6cd4,_0x1d3183-=_0xef6cd4,_0x5ed612+=_0x2c0642,t&&Math['abs'](_0x1d3183/_0x5ed612)>t?(_0x2c0642=_0x1d3183/t-_0x5ed612,_0x5ed612+=_0x2c0642,_0x5d1b69+_0x5ed612>=_0x58b0f0['y']+_0x58b0f0['height']&&(_0x5ed612=_0x58b0f0['y']+_0x58b0f0['height']-_0x5d1b69,_0x1d3183=_0x5ed612*t,_0x3cc5d4=_0x5986be['x']+_0x5986be['width']-_0x1d3183,_0x5d1b69=_0x58b0f0['y']+_0x58b0f0['height']-_0x5ed612)):t&&(_0xef6cd4=_0x5ed612*t-_0x1d3183,_0x1d3183+=_0xef6cd4,_0x3cc5d4-=_0xef6cd4,_0x3cc5d4<=_0x58b0f0['x']&&(_0x1d3183-=_0x58b0f0['x']-_0x3cc5d4,_0x5ed612=_0x1d3183/t,_0x3cc5d4=_0x58b0f0['x'],_0x5d1b69=_0x5986be['y'])),_0x5ed612<M&&(_0x5ed612=M,t&&(_0x1d3183=_0x5ed612*t),_0x3cc5d4=_0x5986be['x']+_0x5986be['width']-_0x1d3183),_0x1d3183<M&&(_0x1d3183=M,t&&(_0x5ed612=_0x1d3183/t),_0x3cc5d4=_0x5986be['x']+_0x5986be['width']-_0x1d3183),{'x':_0x3cc5d4,'y':_0x5d1b69,'width':_0x1d3183,'height':_0x5ed612};}function _u({rect:_0x1da399,delta:_0x3b9193,aspectRatio:t,imageBox:_0x197747}){let [_0x1a33b0,_0x498f9f]=_0x3b9193,{x:_0x47649b,y:_0x542bf4,width:_0x2852c1,height:_0x252c09}=_0x1da399;return _0x47649b+_0x2852c1+_0x1a33b0>_0x197747['x']+_0x197747['width']&&(_0x1a33b0=_0x197747['x']+_0x197747['width']-_0x47649b-_0x2852c1),_0x542bf4+_0x252c09+_0x498f9f>_0x197747['y']+_0x197747['height']&&(_0x498f9f=_0x197747['y']+_0x197747['height']-_0x542bf4-_0x252c09),_0x2852c1+=_0x1a33b0,_0x252c09+=_0x498f9f,t&&Math['abs'](_0x2852c1/_0x252c09)>t?(_0x498f9f=_0x2852c1/t-_0x252c09,_0x252c09+=_0x498f9f,_0x542bf4+_0x252c09>=_0x197747['y']+_0x197747['height']&&(_0x252c09=_0x197747['y']+_0x197747['height']-_0x542bf4,_0x2852c1=_0x252c09*t,_0x47649b=_0x1da399['x'],_0x542bf4=_0x197747['y']+_0x197747['height']-_0x252c09)):t&&(_0x1a33b0=_0x252c09*t-_0x2852c1,_0x2852c1+=_0x1a33b0,_0x47649b+_0x2852c1>=_0x197747['x']+_0x197747['width']&&(_0x2852c1=_0x197747['x']+_0x197747['width']-_0x47649b,_0x252c09=_0x2852c1/t,_0x47649b=_0x197747['x']+_0x197747['width']-_0x2852c1,_0x542bf4=_0x1da399['y'])),_0x252c09<M&&(_0x252c09=M,t&&(_0x2852c1=_0x252c09*t)),_0x2852c1<M&&(_0x2852c1=M,t&&(_0x252c09=_0x2852c1/t)),{'x':_0x47649b,'y':_0x542bf4,'width':_0x2852c1,'height':_0x252c09};}function pa({direction:_0x2b4827,..._0x220c2d}){switch(_0x2b4827){case'n':return Uu(_0x220c2d);case'w':return Ru(_0x220c2d);case's':return $u(_0x220c2d);case'e':return Du(_0x220c2d);case'nw':return Fu(_0x220c2d);case'ne':return Vu(_0x220c2d);case'sw':return Nu(_0x220c2d);case'se':return _u(_0x220c2d);default:return _0x220c2d['rect'];}}function ha(_0x3afbb9,[_0x537b0f,t]){return _0x3afbb9['x']<=_0x537b0f&&_0x537b0f<=_0x3afbb9['x']+_0x3afbb9['width']&&_0x3afbb9['y']<=t&&t<=_0x3afbb9['y']+_0x3afbb9['height'];}function fa(_0x1b79d2,_0x5cf019){return _0x1b79d2['x']>=_0x5cf019['x']&&_0x1b79d2['y']>=_0x5cf019['y']&&_0x1b79d2['x']+_0x1b79d2['width']<=_0x5cf019['x']+_0x5cf019['width']&&_0x1b79d2['y']+_0x1b79d2['height']<=_0x5cf019['y']+_0x5cf019['height'];}function ma(_0x1caf50,_0x4180d3){return Math['abs'](_0x1caf50['width']/_0x1caf50['height']-_0x4180d3)<0.1;}function _e({width:_0x4856d3,height:_0x4faf43},t){let _0x1c871d=t/0x5a%0x2!=0x0;return{'width':_0x1c871d?_0x4faf43:_0x4856d3,'height':_0x1c871d?_0x4856d3:_0x4faf43};}function ga(_0x5ddc6c,_0x59fe16,t){let _0x305ed6,_0x30d9db;_0x5ddc6c/_0x59fe16>t?(_0x305ed6=Math['round'](_0x59fe16*t),_0x30d9db=_0x59fe16):(_0x305ed6=_0x5ddc6c,_0x30d9db=Math['round'](_0x5ddc6c/t));let _0x2bbc1f=Math['round']((_0x5ddc6c-_0x305ed6)/0x2),_0x38a6dc=Math['round']((_0x59fe16-_0x30d9db)/0x2);return _0x2bbc1f+_0x305ed6>_0x5ddc6c&&(_0x305ed6=_0x5ddc6c-_0x2bbc1f),_0x38a6dc+_0x30d9db>_0x59fe16&&(_0x30d9db=_0x59fe16-_0x38a6dc),{'x':_0x2bbc1f,'y':_0x38a6dc,'width':_0x305ed6,'height':_0x30d9db};}function ze(_0x2cdff8){return{'x':Math['round'](_0x2cdff8['x']),'y':Math['round'](_0x2cdff8['y']),'width':Math['round'](_0x2cdff8['width']),'height':Math['round'](_0x2cdff8['height'])};}function ne(_0x5e0a29,_0x44bcfa,t){return Math['min'](Math['max'](_0x5e0a29,_0x44bcfa),t);}var wi=['free'],Nr=_0x13b7f5=>{let _0x4a6911=Z(_0x13b7f5);if(!_0x4a6911||0x0===_0x4a6911['length'])return[];let t=[];for(let _0x421a01 of _0x4a6911){let _0x28ba48=_0x421a01['trim']();if(!_0x28ba48)continue;let _0x6f3c84=_0x28ba48['indexOf'](':');if(-0x1===_0x6f3c84&&!wi['includes'](_0x28ba48)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0x28ba48);continue;}let _0x234aff=Number(_0x28ba48['slice'](0x0,_0x6f3c84)),_0x567181=Number(_0x28ba48['slice'](_0x6f3c84+0x1));!(!Number['isFinite'](_0x234aff)||!Number['isFinite'](_0x567181)||_0x234aff<=0x0||_0x567181<=0x0)||wi['includes'](_0x28ba48)?t['push']({'id':ft['generateFastUid'](),'type':'aspect-ratio','width':wi['includes'](_0x28ba48)?0x0:_0x234aff,'height':wi['includes'](_0x28ba48)?0x0:_0x567181,'hasFreeform':wi['includes'](_0x28ba48)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0x28ba48);}return t;},va=(_0x381b55,_0x13c70e,t,_0x349410=0.1)=>{let _0x1d25dd=_0x381b55/_0x13c70e,_0x53c0c8=null,_0x54873e=0x1/0x0;for(let _0x5f1bb9 of t){let [_0x4b44cd,_0xdcc382]=[_0x5f1bb9['width'],_0x5f1bb9['height']],_0x3e5bce=_0x4b44cd/_0xdcc382,_0x376564=Math['abs'](_0x1d25dd-_0x3e5bce);_0x376564<_0x54873e&&(_0x54873e=_0x376564,_0x53c0c8=_0x5f1bb9);}if(_0x53c0c8){let [_0x328360,_0x3ceee2]=[_0x53c0c8['width'],_0x53c0c8['height']],_0x31b57b=_0x328360/_0x3ceee2;if(Math['abs'](_0x1d25dd-_0x31b57b)/_0x31b57b>_0x349410)return null;}return _0x53c0c8;};function ya(_0x3cbc7f){return $o({..._0x3cbc7f,'libraryName':Ut,'libraryVersion':Rt});}var ba='active',Be='___ACTIVITY_IS_ACTIVE___',wa,x=class e extends(wa=C,wa){constructor(){super(...arguments),this['historyTracked']=!0x1,this['activityType']=null,this['init$']=Bo(this),this['lu']=$(this['cu']['bind'](this),0xa);}['In'](){let t=e['ii']['get'](this);this[Be]=!0x1,this['removeAttribute'](ba),t?.['deactivateCallback']?.();}['uu'](){let t=e['ii']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[Be]=!0x0,this['setAttribute'](ba,''),t?.['activateCallback']?.(),this['lu'](),this['emit'](k['ACTIVITY_CHANGE'],{'activity':this['activityType']});}['initCallback'](){super['initCallback'](),this['activityType']&&(this['hasAttribute']('activity')||this['setAttribute']('activity',this['activityType']),this['sub']('*currentActivity',t=>{try{this['activityType']!==t&&this[Be]?this['In']():this['activityType']===t&&!this[Be]&&this['uu']();}catch(_0x12612f){this['telemetryManager']['sendEventError'](_0x12612f,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x12612f);let _0x36dd53=this['$']['*history'][this['$']['*history']['length']-0x1];this['$']['*currentActivity']=_0x36dd53??null;}t||(this['$']['*history']=[]);}));}['cu'](){let t=this['$']['*history'];t&&(t['length']>0xa&&(t=t['slice'](t['length']-0xb,t['length']-0x1)),this['historyTracked']&&t[t['length']-0x1]!==this['activityType']&&t['push'](this['activityType']),this['$']['*history']=t);}['Pn'](){return!!this['activityType']&&e['ii']['has'](this);}static{this['ii']=new Map();}get['isActivityActive'](){return!!this[Be];}get['couldOpenActivity'](){return!0x0;}['registerActivity'](t,_0x10e37f={}){let {onActivate:_0x1c6570,onDeactivate:_0x44e7ee}=_0x10e37f;e['ii']['set'](this,{'activateCallback':_0x1c6570,'deactivateCallback':_0x44e7ee});}['du'](){this['isActivityActive']&&this['In'](),e['ii']['delete'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['Pn']()&&this['du']();}get['activityParams'](){return this['$']['*currentActivityParams'];}get['initActivity'](){return this['getCssData']('--cfg-init-activity')??null;}get['doneActivity'](){return this['getCssData']('--cfg-done-activity')??null;}['historyBack'](){let t=this['$']['*history'];if(t){let _0x5c1e98=t['pop']();for(;_0x5c1e98===this['activityType'];)_0x5c1e98=t['pop']();let _0x5d990c=!!_0x5c1e98;_0x5c1e98&&(_0x5d990c=[...this['blocksRegistry']]['find'](_0x2e5be6=>_0x2e5be6['activityType']===_0x5c1e98)?.['couldOpenActivity']??!0x1),_0x5c1e98=_0x5d990c?_0x5c1e98:null,this['$']['*currentActivity']=_0x5c1e98??null,_0x5c1e98&&this['modalManager']?.['open'](_0x5c1e98),this['$']['*history']=t,_0x5c1e98||this['modalManager']?.['closeAll']();}}};x['activities']=F;var R=class e extends x{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x1,this['Xi']=!0x1,this['init$']=Ho(this),this['bo']=$(async()=>{if(this['getOutputData']()['length']!==this['uploadCollection']['size'])return;let _0x13ccc1=this['api']['getOutputCollectionState']();this['$']['*collectionState']=_0x13ccc1,this['emit'](k['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['cfg']['groupOutput']&&_0x13ccc1['totalCount']>0x0&&'success'===_0x13ccc1['status']&&this['gu'](_0x13ccc1);},0x12c),this['fu']=(t,_0xff7ea4,_0x2a2eb9)=>{if(this['isConnected']){(_0xff7ea4['size']||_0x2a2eb9['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0xff7ea4]['map'](_0x47ff88=>_0x47ff88['uid']));for(let _0x44b4e3 of _0xff7ea4)_0x44b4e3['getValue']('silent')||this['emit'](k['FILE_ADDED'],this['api']['getOutputItem'](_0x44b4e3['uid'])),this['i']['wait']('pluginManager')['then'](_0x84da2b=>_0x84da2b['runOnAddHooks'](_0x44b4e3));this['validationManager']['runCollectionValidators']();for(let _0x37974f of _0x2a2eb9){this['$']['*uploadTrigger']['delete'](_0x37974f['uid']),this['validationManager']['cleanupValidationForEntry'](_0x37974f),_0x37974f['getValue']('abortController')?.['abort'](),_0x37974f['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});let _0x4bee1e=_0x37974f?.['getValue']('thumbUrl');_0x4bee1e&&URL['revokeObjectURL'](_0x4bee1e),this['emit'](k['FILE_REMOVED'],this['api']['getOutputItem'](_0x37974f['uid']));}this['$']['*uploadList']=t['map'](_0x5b15a5=>({'uid':_0x5b15a5})),this['Un'](),this['bo']();}},this['mu']=t=>{if(!this['isConnected'])return;this['bo']();let _0x24d387=this['uploadCollection'],_0x4adf48=[...new Set(Object['entries'](t)['filter'](([_0x4afa0d])=>['file','uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x4afa0d))['flatMap'](([,_0x1aa96e])=>[..._0x1aa96e]))];if(_0x4adf48['length']>0x0&&setTimeout(()=>{if(!this['isConnected'])return;let _0x18ed0a=_0x4adf48['filter'](_0x535217=>t['fileInfo']?.['has'](_0x535217)&&!!H['getCtx'](_0x535217)?.['store']['fileInfo']);_0x18ed0a['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x18ed0a),this['validationManager']['runFileValidators']('change',_0x4adf48);}),t['uploadProgress']){for(let _0x12fb4f of t['uploadProgress']){let _0x165054=H['getCtx'](_0x12fb4f);if(!_0x165054)continue;let {isUploading:_0x251459,silent:_0x1da79e}=_0x165054['store'];_0x251459&&!_0x1da79e&&this['emit'](k['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x12fb4f));}this['Un']();}if(t['isUploading'])for(let _0x17fe3b of t['isUploading']){let _0x555e35=H['getCtx'](_0x17fe3b);if(!_0x555e35)continue;let {isUploading:_0x352545,silent:_0x57c4b2}=_0x555e35['store'];_0x352545&&!_0x57c4b2&&this['emit'](k['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x17fe3b));}if(t['fileInfo']){for(let _0x563385 of t['fileInfo']){let _0x3f18d1=H['getCtx'](_0x563385);if(!_0x3f18d1)continue;let {fileInfo:_0x1c8978,silent:_0x3219b5}=_0x3f18d1['store'];_0x1c8978&&!_0x3219b5&&this['emit'](k['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0x563385));}this['cfg']['cropPreset']&&this['vu']();}if(t['errors']){this['validationManager']['runCollectionValidators']();for(let _0x1d02a9 of t['errors']){let _0x58d7ef=H['getCtx'](_0x1d02a9);if(!_0x58d7ef)continue;let {errors:_0x28f5e9}=_0x58d7ef['store'];_0x28f5e9['length']>0x0&&(this['emit'](k['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x1d02a9)),this['emit'](k['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}let _0x3fb19e=_0x24d387['findItems'](_0x52c399=>!!_0x52c399['getValue']('fileInfo')),_0x26efa5=_0x24d387['findItems'](_0x18ac28=>_0x18ac28['getValue']('errors')['length']>0x0);_0x24d387['size']>0x0&&0x0===_0x26efa5['length']&&_0x24d387['size']===_0x3fb19e['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](k['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}t['cdnUrl']&&([...t['cdnUrl']]['filter'](_0x91db53=>!!this['uploadCollection']['read'](_0x91db53)?.['getValue']('cdnUrl'))['forEach'](_0x1843b7=>{this['emit'](k['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x1843b7));}),this['$']['*groupInfo']=null);},this['Un']=()=>{let t=0x0,_0x2204af=[...this['$']['*uploadTrigger']]['filter'](_0x5966aa=>!!this['uploadCollection']['read'](_0x5966aa));_0x2204af['forEach'](_0x4260d0=>{let _0x360e4f=this['uploadCollection']['readProp'](_0x4260d0,'uploadProgress');'number'==typeof _0x360e4f&&(t+=_0x360e4f);});let _0x799609=_0x2204af['length']?Math['round'](t/_0x2204af['length']):0x0;this['$']['*commonProgress']!==_0x799609&&(this['$']['*commonProgress']=_0x799609,this['emit'](k['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};}get['pu'](){return this['hasBlockInCtx'](t=>t instanceof e&&(t['Xi']&&t['isConnected']&&t!==this));}['initCallback'](){super['initCallback'](),this['Z']('*uploadCollection',()=>new Ur({'initialValue':na,'watchList':['file','uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']})),this['Z']('*secureUploadsManager',t=>new Or(t)),this['Z']('*validationManager',t=>new Pr(t)),this['Z']('*publicApi',t=>new Fr(t)),!this['pu']&&this['couldBeCtxOwner']&&this['hu']();}['getAPI'](){return this['api'];}get['validationManager'](){return this['ie']('*validationManager');}get['api'](){return this['ie']('*publicApi');}get['uploadCollection'](){return this['ie']('*uploadCollection');}get['secureUploadsManager'](){return this['ie']('*secureUploadsManager');}['disconnectedCallback'](){super['disconnectedCallback'](),this['Xi']&&this['Ln'](),this['bo']['cancel']();}['connectedCallback'](){super['connectedCallback'](),this['Xi']&&this['Rn']();}['hu'](){this['Xi']=!0x0,this['Rn'](),this['subConfigValue']('maxConcurrentRequests',t=>{this['$']['*uploadQueue']['concurrency']=Number(t)||0x1;});}['Rn'](){this['Ln'](),this['vo']=this['uploadCollection']['observeCollection'](this['fu']),this['yo']=this['uploadCollection']['observeProperties'](this['mu']);}['Ln'](){this['yo']?.(),this['vo']?.(),this['yo']=void 0x0,this['vo']=void 0x0;}async['gu'](t){let _0x134335=await this['getUploadClientOptions'](),_0x1781c3=t['allEntries']['map'](_0xb85b7=>_0xb85b7['uuid']+(_0xb85b7['cdnUrlModifiers']?'/'+_0xb85b7['cdnUrlModifiers']:'')),_0x34aed3=new AbortController(),_0x5a12b7=await Ln(_0x1781c3,{..._0x134335,'signal':_0x34aed3['signal']});if(this['$']['*collectionState']!==t)return void _0x34aed3['abort']();this['$']['*groupInfo']=_0x5a12b7;let _0x50eee3=this['api']['getOutputCollectionState']();this['emit'](k['GROUP_CREATED'],_0x50eee3),this['emit'](k['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x50eee3;}['vu'](){let t=Nr(this['cfg']['cropPreset']);if(!t)return;let [_0x20fe58]=t,_0x542f91=this['uploadCollection']['findItems'](_0x247f85=>!!_0x247f85['getValue']('fileInfo')&&_0x247f85['getValue']('isImage')&&!_0x247f85['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x1b9490=>this['uploadCollection']['read'](_0x1b9490))['filter'](Boolean);for(let _0x51115b of _0x542f91){let _0x3f6360=_0x51115b['getValue']('fileInfo');if(!_0x3f6360||!_0x3f6360['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x51115b['uid']);continue;}let {width:_0x3c9452,height:_0x2ee63e}=_0x3f6360['imageInfo'],_0x507267=ga(_0x3c9452,_0x2ee63e,'number'==typeof _0x20fe58?.['width']&&'number'==typeof _0x20fe58?.['height']&&_0x20fe58['width']>0x0&&_0x20fe58['height']>0x0?_0x20fe58['width']/_0x20fe58['height']:0x1),_0x5cf983=rt('crop/'+_0x507267['width']+'x'+_0x507267['height']+'/'+_0x507267['x']+','+_0x507267['y'],'preview'),_0x513a62=_0x51115b['getValue']('cdnUrl');_0x513a62?_0x51115b['setMultipleValues']({'cdnUrlModifiers':_0x5cf983,'cdnUrl':W(_0x513a62,_0x5cf983)}):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x51115b['uid']);}}async['getMetadataFor'](t){let _0x2bf576=this['cfg']['metadata']||void 0x0;if('function'==typeof _0x2bf576){let _0x29237b=this['api']['getOutputItem'](t);return await _0x2bf576(_0x29237b);}return _0x2bf576;}async['getUploadClientOptions'](){let t=await this['secureUploadsManager']['getSecureToken']()['catch'](()=>null);return{'store':this['cfg']['store'],'publicKey':this['cfg']['pubkey'],'baseCDN':this['cfg']['cdnCname'],'baseURL':this['cfg']['baseUrl'],'userAgent':ya,'integration':this['cfg']['userAgentIntegration'],'secureSignature':t?.['secureSignature'],'secureExpire':t?.['secureExpire'],'retryThrottledRequestMaxTimes':this['cfg']['retryThrottledRequestMaxTimes'],'retryNetworkErrorMaxTimes':this['cfg']['retryNetworkErrorMaxTimes'],'multipartMinFileSize':this['cfg']['multipartMinFileSize'],'multipartChunkSize':this['cfg']['multipartChunkSize'],'maxConcurrentRequests':this['cfg']['multipartMaxConcurrentRequests'],'multipartMaxAttempts':this['cfg']['multipartMaxAttempts'],'checkForUrlDuplicates':!!this['cfg']['checkForUrlDuplicates'],'saveUrlForRecurrentUploads':!!this['cfg']['saveUrlForRecurrentUploads']};}['getOutputData'](){return $r(this['i']);}};R['extSrcList']=Object['freeze']({...ut}),R['sourceTypes']=Object['freeze']({...N});var ae=class extends C{constructor(){super(...arguments),this['name']='',this['Qi']='',this['ri']=null,this['$n']=null;}['initCallback'](){super['initCallback'](),this['setAttribute']('aria-hidden','true'),this['subConfigValue']('iconHrefResolver',_0x3a8103=>{this['$n']=_0x3a8103,this['wo']();});let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['wo']()));}['willUpdate'](t){super['willUpdate'](t),t['has']('name')&&this['wo']();}['wo'](){if(!this['name'])return this['Qi']='',void(this['ri']=null);let _0x2cf0ed=this['i']['pluginManager']?.['snapshot']()['icons']['find'](_0x39ed99=>_0x39ed99['name']===this['name']);if(_0x2cf0ed)return this['ri']=_0x2cf0ed['svg'],void(this['Qi']='');this['ri']=null;let _0x5ef793='#uc-icon-'+this['name'],_0x363440=this['$n']?.(this['name']);this['Qi']=_0x363440??_0x5ef793;}['render'](){return this['ri']?v`${this['yield']('',v`${De(this['ri'])}`)}`:v` ${this['yield']('',v`<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use href=${this['Qi']}></use></svg>`)} `;}['disconnectedCallback'](){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback']();}};p([y({'type':String})],ae['prototype'],'name',0x2),p([m()],ae['prototype'],'Qi',0x2),p([m()],ae['prototype'],'ri',0x2);var Ta=_0x9f8d63=>[...new Set(_0x9f8d63)],Ee='--uc-img-',ns='unresolved',as=!window['location']['host']['trim']()||window['location']['host']['includes'](':')||window['location']['hostname']['includes']('localhost'),ls=0xbb8,cs=0x1388,us=Object['freeze']({'PREVIEW':'PREVIEW','MAIN':'MAIN'}),zu='https://ucarecdn.com',He=Object['freeze']({'dev-mode':{},'pubkey':{},'uuid':{},'src':{},'lazy':{'default':0x1},'intersection':{},'breakpoints':{},'cdn-cname':{'default':zu},'proxy-cname':{},'secure-delivery-proxy':{},'hi-res-support':{'default':0x1},'ultra-res-support':{},'format':{},'cdn-operations':{},'progressive':{},'quality':{},'is-background-for':{},'is-preview-blur':{'default':0x1}}),_r=class extends Me(Ie(Tt)){constructor(){super(),this['Mt']={},this['c']=new Map(),this['Ot']=null,this['Ji']=null;for(let t in He){let _0xb4115e=He[t];this['Mt'][Ee+t]=_0xb4115e?.['default']||'';}}['createRenderRoot'](){return this;}['$$'](t){return this['Mt'][Ee+t];}['set$$'](t){for(let _0x5898b4 in t){let _0x5ae288=Ee+_0x5898b4,_0x3b5667=t[_0x5898b4];this['Mt'][_0x5ae288]=_0x3b5667,this['q'](_0x5ae288,_0x3b5667);}}['sub$$'](t,_0xfbdf35){let _0x4742ba=Ee+t;this['c']['has'](_0x4742ba)||this['c']['set'](_0x4742ba,new Set()),this['c']['get'](_0x4742ba)?.['add'](_0xfbdf35);let _0x57b4a1=this['Mt'][_0x4742ba];null!==_0x57b4a1&&''!==_0x57b4a1&&_0xfbdf35(_0x57b4a1);}['q'](t,_0x580c47){this['c']['has'](t)&&this['c']['get'](t)?.['forEach'](_0x90a160=>{null===_0x580c47||''===_0x580c47||_0x90a160(_0x580c47);});}['analyticsParams'](){return'-/@clib/'+Ut+'/'+Rt+'/uc-img/';}['initAttributes'](t){Array['from'](this['attributes'])['forEach'](_0x59dabb=>{let _0x50dedd=_0x59dabb;He[_0x50dedd['name']]||t['setAttribute'](_0x50dedd['name'],_0x50dedd['value']);});}['initIntersection'](t,_0x5da13c){this['Ot']=new IntersectionObserver(_0x4f666a=>{_0x4f666a['forEach'](_0x48bd7f=>{_0x48bd7f['isIntersecting']&&(_0x5da13c(),this['Ot']?.['unobserve'](t));});},{'root':null,'rootMargin':'0px'}),this['Ot']['observe'](t),this['Ji']||(this['Ji']=new Set()),this['Ji']['add'](t);}['connectedCallback'](){super['connectedCallback'](),this['yu']();}['yu'](){for(let t in He){let _0x3b852f=Ee+t,_0x1f363a=this['getCssData'](_0x3b852f,!0x0);null!=_0x1f363a&&(this['Mt'][_0x3b852f]=_0x1f363a);}}['disconnectedCallback'](){super['disconnectedCallback'](),this['Ot']&&(this['Ji']?.['forEach'](t=>{this['Ot']?.['unobserve'](t);}),this['Ot']=null),this['c']['clear']();}static get['observedAttributes'](){return Object['keys'](He);}['attributeChangedCallback'](t,_0x278309,_0x502e2d){window['setTimeout'](()=>{let _0x29cb25=Ee+t;this['Mt'][_0x29cb25]=_0x502e2d,this['q'](_0x29cb25,_0x502e2d);});}},Ea=_0x410e09=>Object['entries'](_0x410e09)['filter'](([_0x2a7751,t])=>void 0x0!==t&&''!==t)['map'](([_0x3c363a,t])=>'cdn-operations'===_0x3c363a||'analytics'===_0x3c363a?t:_0x3c363a+'/'+t),Hr=class extends _r{constructor(){super(...arguments),this['be']=new Image(),this['pe']=new Image();}['Dn'](t){return!t['includes']('//')&&!as&&(t=new URL(t,document['baseURI'])['href']),t;}['er'](t){if(!t)return;let _0x11d196=t,_0x32a599=_0x11d196['match'](/\d+/)?.[0x0],_0x5f3512=_0x11d196['match'](/[a-zA-Z]+/)?.[0x0];if(!_0x32a599||!_0x5f3512)return;let _0x42aea6=parseInt(_0x32a599,0xa);return Number(_0x42aea6)>cs&&this['Fn']?cs+_0x5f3512:Number(_0x42aea6)>ls&&!this['Fn']?ls+_0x5f3512:t;}['bu'](t,_0x486cff){let _0x40e3de={'format':this['To']('format'),'quality':this['To']('quality'),'resize':this['er'](t),'blur':_0x486cff,'cdn-operations':this['To']('cdn-operations')??void 0x0,'analytics':this['analyticsParams']()};return rt(...Ea(_0x40e3de));}['To'](t){let _0x3de96a=this['$$'](t);if(null==_0x3de96a||'string'==typeof _0x3de96a||'number'==typeof _0x3de96a||'boolean'==typeof _0x3de96a)return _0x3de96a;}['re'](t='',_0x1ba301=''){let _0x2e4639=this['$$']('src');if(_0x2e4639['startsWith']('data:')||_0x2e4639['startsWith']('blob:'))return _0x2e4639;if(as&&_0x2e4639&&!_0x2e4639['includes']('//'))return this['oi'](_0x2e4639);let _0x6b7e2=this['bu'](t,_0x1ba301),_0x13bf79=this['$$']('cdn-cname'),_0x3f8540=_0x13bf79;if(_0x2e4639['startsWith'](String(_0x13bf79)))return W(_0x2e4639,_0x6b7e2);let _0x2cae61=this['$$']('uuid');if(_0x3f8540&&_0x2cae61)return this['oi'](W(Jt(_0x3f8540,_0x2cae61),_0x6b7e2));if(_0x2cae61)return this['oi'](W(Jt(_0x3f8540,_0x2cae61),_0x6b7e2));let _0x35ab1f=this['$$']('proxy-cname');if(_0x35ab1f)return this['oi'](W(_0x35ab1f,_0x6b7e2,this['Dn'](_0x2e4639)));let _0x29cd00=this['$$']('pubkey');return _0x29cd00?this['oi'](W('https://'+_0x29cd00+'.ucr.io/',_0x6b7e2,this['Dn'](_0x2e4639))):void 0x0;}['oi'](t){let _0x1ef3ea=this['$$']('secure-delivery-proxy');return _0x1ef3ea?$e(_0x1ef3ea,{'previewUrl':t},{'transform':_0x12d23a=>window['encodeURIComponent'](_0x12d23a)}):t;}['It'](t,_0xe0129=0x1,_0x57646b=!0x0){let _0x20254e=t['getBoundingClientRect'](),_0x511595=_0xe0129*Math['round'](_0x20254e['width']),_0x2be68a=_0x57646b?'':_0xe0129*Math['round'](_0x20254e['height']);return _0x511595||_0x2be68a?(_0x511595||'')+'x'+(_0x2be68a||''):null;}['wu'](t){let _0x85e980=_0x317178=>{_0x317178['stopPropagation']();let _0x4803f4=new Event(_0x317178['type'],_0x317178);this['dispatchEvent'](_0x4803f4);},_0x39612d=['load','error'];for(let _0x1eea83 of _0x39612d)t['addEventListener'](_0x1eea83,_0x85e980);}get['img'](){return this['we']||(this['Eo']({'elNode':this['be']}),this['appendChild'](this['be'])),this['be'];}get['tr'](){return this['we']?{'type':us['PREVIEW'],'img':this['pe']}:{'type':us['MAIN'],'img':this['img']};}get['we'](){return this['$$']('is-preview-blur');}get['Nn'](){return this['$$']('is-background-for');}get['Vn'](){let t=this['$$']('breakpoints');if(t){let _0x301e56=Z(t);return Ta(_0x301e56['map'](_0x1e66fb=>parseInt(_0x1e66fb,0xa)));}return null;}get['Fn'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['_n'](t){let _0x38d0df=new Set();_0x38d0df['add']('url(\x22'+this['re'](this['It'](t))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0x38d0df['add']('url(\x22'+this['re'](this['It'](t,0x2))+'\x22)\x202x'),this['$$']('ultra-res-support')&&_0x38d0df['add']('url(\x22'+this['re'](this['It'](t,0x3))+'\x22)\x203x');let _0xc22c4d='image-set('+[..._0x38d0df]['join'](',\x20')+')';t['style']['setProperty']('background-image',_0xc22c4d),t['style']['setProperty']('background-image','-webkit-'+_0xc22c4d);}['Bn'](){let t=new Set();return this['Vn']?this['Vn']['forEach'](_0x47658c=>{t['add'](this['re'](_0x47658c+'x')+'\x20'+this['er'](_0x47658c+'w')),this['$$']('hi-res-support')&&t['add'](this['re'](0x2*_0x47658c+'x')+'\x20'+this['er'](0x2*_0x47658c+'w')),this['$$']('ultra-res-support')&&t['add'](this['re'](0x3*_0x47658c+'x')+'\x20'+this['er'](0x3*_0x47658c+'w'));}):(t['add'](this['re'](this['It'](this['tr']['img']))+'\x201x'),this['$$']('hi-res-support')&&t['add'](this['re'](this['It'](this['tr']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&t['add'](this['re'](this['It'](this['tr']['img'],0x3))+'\x203x')),[...t]['join']();}['zn'](){return this['re']();}get['Hn'](){return this['re']('100x','100');}['Tu'](){let t=this['Nn'];[...document['querySelectorAll'](t)]['forEach'](_0x873090=>{this['$$']('intersection')?this['initIntersection'](_0x873090,()=>{this['_n'](_0x873090);}):this['_n'](_0x873090);});}['Eu']({elNode:t,src:_0x58ca75,srcset:_0x1362aa}){_0x58ca75&&(t['src']=_0x58ca75),_0x1362aa&&(t['srcset']=_0x1362aa);}['Eo']({elNode:t}){this['wu'](t),this['initAttributes'](t);}['xo']({src:t,srcset:_0xd87c14,elNode:_0x2a72c8}){return new Promise((_0x2d8558,_0xf40d19)=>{this['Eo']({'elNode':_0x2a72c8}),_0x2a72c8['setAttribute'](ns,''),_0x2a72c8['addEventListener']('load',()=>{_0x2a72c8['removeAttribute'](ns),_0x2d8558(_0x2a72c8);}),_0x2a72c8['addEventListener']('error',()=>{_0xf40d19(!0x1);}),this['Eu']({'elNode':_0x2a72c8,'src':t,'srcset':_0xd87c14});});}async['xu'](){if(this['$$']('intersection'))return this['we']&&(this['Eo']({'elNode':this['pe']}),this['appendChild'](this['pe'])),void this['initIntersection'](this['tr']['img'],async()=>{this['we']&&(this['pe']['src']=this['Hn']);try{await this['xo']({'src':this['zn'](),'srcset':this['Bn'](),'elNode':this['be']}),this['we']&&await this['pe']['remove'](),this['appendChild'](this['be']);}catch{this['we']&&await this['pe']?.['remove'](),this['appendChild'](this['be']);}});try{this['we']&&(await this['xo']({'src':this['Hn'],'elNode':this['pe']}),this['appendChild'](this['pe'])),await this['xo']({'src':this['zn'](),'srcset':this['Bn'](),'elNode':this['be']}),this['we']&&await this['pe']?.['remove'](),this['appendChild'](this['be']);}catch{this['we']&&await this['pe']?.['remove'](),this['appendChild'](this['be']);}}['init'](){this['Nn']?this['Tu']():this['xu']();}},ds=class extends Hr{['connectedCallback'](){super['connectedCallback'](),this['sub$$']('src',()=>{this['init']();}),this['sub$$']('uuid',()=>{this['init']();}),this['sub$$']('lazy',_0x1d8f3c=>{!this['$$']('is-background-for')&&!this['$$']('is-preview-blur')&&(this['img']['loading']=_0x1d8f3c?'lazy':'eager');});}},{I:Bu}=en,Ca=_0x432030=>_0x432030,Sa=_0x20ee73=>void 0x0===_0x20ee73['strings'],xa=()=>document['createComment'](''),Ke=(_0xc59093,_0x29b5d0,t)=>{let _0x307dfe=_0xc59093['ve']['parentNode'],_0x351979=void 0x0===_0x29b5d0?_0xc59093['yt']:_0x29b5d0['ve'];if(void 0x0===t){let _0x46fe09=_0x307dfe['insertBefore'](xa(),_0x351979),_0x18e898=_0x307dfe['insertBefore'](xa(),_0x351979);t=new Bu(_0x46fe09,_0x18e898,_0xc59093,_0xc59093['options']);}else{let _0x38bd15=t['yt']['nextSibling'],_0x3cabd8=t['f'],_0x456351=_0x3cabd8!==_0xc59093;if(_0x456351){let _0x2aa7b1;t['Cu']?.(_0xc59093),t['f']=_0xc59093,void 0x0!==t['Ui']&&(_0x2aa7b1=_0xc59093['W'])!==_0x3cabd8['W']&&t['Ui'](_0x2aa7b1);}if(_0x38bd15!==_0x351979||_0x456351){let _0x482cc4=t['ve'];for(;_0x482cc4!==_0x38bd15;){let _0x59a4c2=Ca(_0x482cc4)['nextSibling'];Ca(_0x307dfe)['insertBefore'](_0x482cc4,_0x351979),_0x482cc4=_0x59a4c2;}}}return t;},le=(_0x6fe26e,_0x280311,t=_0x6fe26e)=>(_0x6fe26e['ce'](_0x280311,t),_0x6fe26e),Hu={},Aa=(_0x3f491a,_0x255fdf=Hu)=>_0x3f491a['r']=_0x255fdf,ka=_0x45ba2c=>_0x45ba2c['r'],Kr=_0x275345=>{_0x275345['bt'](),_0x275345['ve']['remove']();},Ti=(_0x16ec7f,_0x14171d)=>{let t=_0x16ec7f['le'];if(void 0x0===t)return!0x1;for(let _0x477be0 of t)_0x477be0['qs']?.(_0x14171d,!0x1),Ti(_0x477be0,_0x14171d);return!0x0;},jr=_0x3ef453=>{let _0x4f16e3,t;do{if(void 0x0===(_0x4f16e3=_0x3ef453['f']))break;t=_0x4f16e3['le'],t['delete'](_0x3ef453),_0x3ef453=_0x4f16e3;}while(0x0===t?.['size']);},Ma=_0x49aadb=>{for(let _0x2fb37a;_0x2fb37a=_0x49aadb['f'];_0x49aadb=_0x2fb37a){let t=_0x2fb37a['le'];if(void 0x0===t)_0x2fb37a['le']=t=new Set();else{if(t['has'](_0x49aadb))break;}t['add'](_0x49aadb),Gu(_0x2fb37a);}};function Ku(_0x179b3d){void 0x0!==this['le']?(jr(this),this['f']=_0x179b3d,Ma(this)):this['f']=_0x179b3d;}function ju(_0x352fdd,_0x2a9564=!0x1,t=0x0){let _0x5bdb40=this['r'],_0x46cebe=this['le'];if(void 0x0!==_0x46cebe&&0x0!==_0x46cebe['size']){if(_0x2a9564){if(Array['isArray'](_0x5bdb40)){for(let _0x411c51=t;_0x411c51<_0x5bdb40['length'];_0x411c51++)Ti(_0x5bdb40[_0x411c51],!0x1),jr(_0x5bdb40[_0x411c51]);}else null!=_0x5bdb40&&(Ti(_0x5bdb40,!0x1),jr(_0x5bdb40));}else Ti(this,_0x352fdd);}}var Gu=_0x13e687=>{_0x13e687['type']==$t['CHILD']&&(_0x13e687['Ui']??=ju,_0x13e687['Cu']??=Ku);},Gr=class extends Et{constructor(){super(...arguments),this['le']=void 0x0;}['Wr'](_0x54f4e6,t,_0x4f0bc8){super['Wr'](_0x54f4e6,t,_0x4f0bc8),Ma(this),this['isConnected']=_0x54f4e6['W'];}['qs'](_0xdc354,t=!0x0){_0xdc354!==this['isConnected']&&(this['isConnected']=_0xdc354,_0xdc354?this['reconnected']?.():this['disconnected']?.()),t&&(Ti(this,_0xdc354),jr(this));}['setValue'](_0x143a04){if(Sa(this['Wi']))this['Wi']['ce'](_0x143a04,this);else{let t=[...this['Wi']['r']];t[this['iu']]=_0x143a04,this['Wi']['ce'](t,this,0x0);}}['disconnected'](){}['reconnected'](){}},I=()=>new hs(),hs=class{},ps=new WeakMap(),O=gt(class extends Gr{['render'](_0x555f05){return U;}['update'](_0x35bb03,[_0x241093]){let t=_0x241093!==this['G'];return t&&void 0x0!==this['G']&&this['rt'](void 0x0),(t||this['lt']!==this['ct'])&&(this['G']=_0x241093,this['ht']=_0x35bb03['options']?.['host'],this['rt'](this['ct']=_0x35bb03['element'])),U;}['rt'](_0x39bb70){if(this['isConnected']||(_0x39bb70=void 0x0),'function'==typeof this['G']){let _0x1fc80e=this['ht']??globalThis,t=ps['get'](_0x1fc80e);void 0x0===t&&(t=new WeakMap(),ps['set'](_0x1fc80e,t)),void 0x0!==t['get'](this['G'])&&this['G']['call'](this['ht'],void 0x0),t['set'](this['G'],_0x39bb70),void 0x0!==_0x39bb70&&this['G']['call'](this['ht'],_0x39bb70);}else this['G']['value']=_0x39bb70;}get['lt'](){return'function'==typeof this['G']?ps['get'](this['ht']??globalThis)?.['get'](this['G']):this['G']?.['value'];}['disconnected'](){this['lt']===this['ct']&&this['rt'](void 0x0);}['reconnected'](){this['rt'](this['ct']);}}),fs=null,Ei=class extends C{constructor(){super(...arguments),this['dialogEl']=I(),this['strokes']=!0x1,this['blockBodyScrolling']=!0x1,this['closeDialog']=()=>{this['modalManager']?.['close'](this['id']),this['modalManager']?.['hasActiveModals']||(document['body']['style']['overflow']='',this['$']['*currentActivity']=null);},this['Su']=()=>{this['closeDialog']();},this['Au']=t=>{this['Co']=t['target'];},this['ku']=t=>{let _0x5e900f=t['target'];_0x5e900f===this['dialogEl']['value']&&_0x5e900f===this['Co']&&this['closeDialog']();},this['si']=({id:t})=>{t===this['id']?(fs=t,this['show'](),this['emit'](k['MODAL_OPEN'],{'modalId':t},{'debounce':!0x0})):this['hide']();},this['ni']=({id:t})=>{t===this['id']&&(this['hide'](),this['emit'](k['MODAL_CLOSE'],{'modalId':t,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));},this['Kn']=t=>{this['hide'](),fs===this['id']&&this['emit'](k['MODAL_CLOSE'],{'modalId':fs,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0});};}static{this['styleAttrs']=[...super['styleAttrs'],'uc-modal'];}async['show'](){await this['updateComplete'];let t=this['dialogEl']['value'];'function'==typeof t['showModal']?(this['setAttribute']('aria-modal','true'),t['showModal']()):t['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){let t=this['dialogEl']['value'];t&&('function'==typeof t['close']?(this['setAttribute']('aria-modal','false'),t['close']()):t['removeAttribute']('open'));}['initCallback'](){super['initCallback'](),this['modalManager']?.['registerModal'](this['id'],this),this['subConfigValue']('modalBackdropStrokes',t=>{t?this['setAttribute']('strokes',''):this['removeAttribute']('strokes');}),this['modalManager']?.['subscribe'](Y['OPEN'],this['si']),this['modalManager']?.['subscribe'](Y['CLOSE'],this['ni']),this['modalManager']?.['subscribe'](Y['CLOSE_ALL'],this['Kn']);}['disconnectedCallback'](){super['disconnectedCallback'](),document['body']['style']['overflow']='',this['Co']=void 0x0,this['modalManager']?.['unsubscribe'](Y['OPEN'],this['si']),this['modalManager']?.['unsubscribe'](Y['CLOSE'],this['ni']),this['modalManager']?.['unsubscribe'](Y['CLOSE_ALL'],this['Kn']);}['Mu'](t){this['dialogEl']={'value':t},this['dialogEl']['value']?.['addEventListener']('close',this['Su']),this['dialogEl']['value']?.['addEventListener']('mousedown',this['Au']),this['dialogEl']['value']?.['addEventListener']('mouseup',this['ku']);}['render'](){return v`<dialog ${O(this['Mu'])}>${this['yield']('')}</dialog>`;}};p([y({'type':Boolean,'noAccessor':!0x0})],Ei['prototype'],'strokes',0x2),p([y({'type':Boolean,'attribute':'block-body-scrolling','noAccessor':!0x0})],Ei['prototype'],'blockBodyScrolling',0x2);var qr=class extends R{constructor(){super(...arguments),this['z']=null,this['ir']=null;}get['jn'](){return this['nameAttrValue']??this['ctxName'];}['Gn'](){let t=document['createElement']('input');return t['type']='text',t['name']=this['jn'],t['required']=this['cfg']['multipleMin']>0x0,t['tabIndex']=-0x1,Rr(t,{'opacity':0x0,'height':0x0,'width':0x0}),t;}['initCallback'](){super['initCallback'](),this['z']=this['Gn'](),this['appendChild'](this['z']),this['sub']('*collectionState',t=>{if(!t)return;if(!this['ir']){let _0x549c4a=document['createElement']('div');this['appendChild'](_0x549c4a),this['ir']=_0x549c4a;}if(!this['z']){let _0x1ffc95=this['Gn']();this['appendChild'](_0x1ffc95),this['z']=_0x1ffc95;}if(this['ir']['innerHTML']='','uploading'===t['status']||'idle'===t['status'])return this['z']['value']='',void this['z']['setCustomValidity']('');if('failed'===t['status']){let _0x4ca41a=t['errors'][0x0]?.['message'];return this['z']['value']='',void this['z']['setCustomValidity'](_0x4ca41a??'');}let _0x1d7b32=t['group']?t['group']:null;if(_0x1d7b32)return this['z']['value']=_0x1d7b32['cdnUrl']??'',void this['z']['setCustomValidity']('');let _0x4f98de=t['allEntries']['map'](_0x2d8587=>_0x2d8587['cdnUrl'])['filter'](_0x1984ef=>'string'==typeof _0x1984ef);if(!this['cfg']['multiple']&&0x1===_0x4f98de['length']&&_0x4f98de[0x0])return this['z']['value']=_0x4f98de[0x0],void this['z']['setCustomValidity']('');this['z']['remove'](),this['z']=null;let _0xfd0711=new DocumentFragment();for(let _0x5e5174 of _0x4f98de){let _0x435c60=document['createElement']('input');_0x435c60['type']='hidden',_0x435c60['name']=this['jn']+'[]',_0x435c60['value']=_0x5e5174,_0xfd0711['appendChild'](_0x435c60);}this['ir']['replaceChildren'](_0xfd0711);},!0x1);}};p([y({'type':String,'noAccessor':!0x0,'attribute':'name'})],qr['prototype'],'nameAttrValue',0x2);var ms=class extends C{['initCallback'](){super['initCallback'](),this['subConfigValue']('removeCopyright',_0x1586cd=>{this['toggleAttribute']('hidden',!!_0x1586cd);});}['render'](){return v`<a href="https://uploadcare.com/?utm_source=copyright&amp;utm_medium=referral&amp;utm_campaign=v4" target="_blank noopener" class="uc-credits" >Powered by Uploadcare</a >`;}},je=class extends C{constructor(){super(...arguments),this['hasFileName']=!0x1,this['value']=0x0,this['visible']=!0x0,this['oe']=0x0,this['rr']=I(),this['qn']=()=>{let t=this['rr']['value'];if(t){if(!this['visible'])return void t['classList']['add']('uc-fake-progress--hidden');this['oe']>0x0&&t['classList']['add']('uc-fake-progress--hidden');}};}['firstUpdated'](t){super['firstUpdated'](t),this['oe']=this['So'](this['value']),this['Ao'](),this['rr']['value']?.['addEventListener']('animationiteration',this['qn']);}['updated'](t){if(super['updated'](t),t['has']('value')){let _0xa0da42=this['So'](this['value']);if(this['visible']){let _0x55b549=Math['max'](this['oe'],_0xa0da42);_0x55b549!==this['oe']&&(this['oe']=_0x55b549,this['Ao']());}else this['oe']=_0xa0da42;}t['has']('visible')&&(this['classList']['toggle']('uc-progress-bar--hidden',!this['visible']),this['visible']?this['Ao']():this['oe']=this['So'](this['value']));}['disconnectedCallback'](){super['disconnectedCallback'](),this['rr']['value']?.['removeEventListener']('animationiteration',this['qn']);}['So'](t){return Number['isFinite'](t)?Math['min'](0x64,Math['max'](0x0,t)):0x0;}['Ao'](){this['visible']&&this['style']['setProperty']('--l-progress-value',this['oe']['toString']());}['render'](){return v`<div ${O(this['rr'])} class="uc-fake-progress"></div><div class="uc-progress"></div>`;}};p([y({'type':Boolean,'noAccessor':!0x0})],je['prototype'],'hasFileName',0x2),p([y({'type':Number})],je['prototype'],'value',0x2),p([y({'type':Boolean,'reflect':!0x0})],je['prototype'],'visible',0x2);var Ci=class extends R{constructor(){super(),this['he']=!0x1,this['Pt']=0x0,this['init$']={...this['init$'],'*commonProgress':0x0};}['initCallback'](){super['initCallback'](),this['ko']=this['uploadCollection']['observeProperties'](()=>{let t=this['uploadCollection']['items']()['some'](_0x33a3e4=>this['uploadCollection']['read'](_0x33a3e4)?.['getValue']('isUploading')??!0x1);this['he']=t;}),this['sub']('*commonProgress',t=>{this['Pt']=t;});}['updated'](t){super['updated'](t),t['has']('visible')&&(this['he']?this['setAttribute']('active',''):this['removeAttribute']('active'));}['disconnectedCallback'](){super['disconnectedCallback'](),this['ko']?.(),this['ko']=void 0x0;}['render'](){return v`<uc-progress-bar .value=${this['Pt']} .visible=${this['he']}></uc-progress-bar>`;}};p([m()],Ci['prototype'],'he',0x2),p([m()],Ci['prototype'],'Pt',0x2);var Ge=class extends C{constructor(){super(...arguments),this['value']='',this['disabled']=!0x1,this['options']=[],this['Ou']=t=>{if(this['disabled'])return t['preventDefault'](),void t['stopPropagation']();t['preventDefault'](),t['stopPropagation']();let _0x4ae95d=t['currentTarget'];_0x4ae95d&&(this['value']=_0x4ae95d['value'],this['dispatchEvent'](new Event('change')));};}['render'](){return v`<select @change=${this['Ou']} .value=${this['value']} ?disabled=${this['disabled']}>${this['options']['map'](t=>v`<option value=${t['value']}>${t['text']}</option>`)}</select>`;}};p([y({'type':String,'attribute':!0x1})],Ge['prototype'],'value',0x2),p([y({'type':Boolean,'reflect':!0x0})],Ge['prototype'],'disabled',0x2),p([y({'type':Array,'attribute':!0x1})],Ge['prototype'],'options',0x2);var qe=class extends R{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['Mo']='default',this['Oo']='';}['willUpdate'](t){super['willUpdate'](t),t['has']('source')&&this['Iu'](this['source']);}['Iu'](t){if(!t)return this['Oo']='',void(this['Mo']='default');let {label:_0x22d9e1,icon:_0x333c47,id:_0x5b810f}=t;this['Oo']=_0x22d9e1,this['Mo']=_0x333c47??_0x5b810f??'default';}['activate'](){this['source']&&this['source']['onClick']();}['render'](){return v`<button type="button" @click=${this['activate']}><uc-icon name=${this['Mo']}></uc-icon><div class="uc-txt">${this['l10n'](this['Oo'])}</div></button>`;}};p([y({'attribute':!0x1})],qe['prototype'],'source',0x2),p([m()],qe['prototype'],'Mo',0x2),p([m()],qe['prototype'],'Oo',0x2);var xi=class extends R{constructor(){super(...arguments),this['Wn']=[],this['Me']=[],this['wrap']=!0x1;}['initCallback'](){super['initCallback'](),this['subConfigValue']('sourceList',_0x2b6c99=>{this['Wn']=Z(_0x2b6c99),this['Zn']();});let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['Zn']()));}['updated'](t){super['updated'](t),this['cfg']['sourceListWrap']?this['style']['removeProperty']('display'):this['style']['display']='contents';}['Zn'](){let _0x206f9e=this['i']['pluginManager']?.['snapshot']()['sources']??[],_0x504049=new Map(_0x206f9e['map'](_0x168649=>[_0x168649['id'],_0x168649])),_0x1fe3ad=[];this['Wn']['forEach'](_0x5aa393=>{let _0x9c5342=this['Pu'](_0x5aa393,_0x504049);if(0x1!==_0x9c5342['length']||_0x9c5342[0x0]!==_0x5aa393){for(let _0x124845 of _0x9c5342){let _0x1b13ba=_0x504049['get'](_0x124845);_0x1b13ba&&_0x1fe3ad['push'](this['Yn'](_0x1b13ba));}return;}let _0x761615=_0x504049['get'](_0x5aa393);_0x761615&&_0x1fe3ad['push'](this['Yn'](_0x761615));}),this['Me']=_0x1fe3ad;}['Pu'](t,_0x30c836){let _0x524eee=_0x30c836['get'](t);return _0x524eee?.['expand']?_0x524eee['expand']():[t];}['Yn'](t){return{'id':t['id'],'label':t['label'],'icon':t['icon'],'onClick':()=>t['onSelect']()};}['render'](){return v`${this['Me']['map'](t=>v`<uc-source-btn role="listitem" .source=${t} data-source-id=${t['id']}></uc-source-btn>`)}`;}['disconnectedCallback'](){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback']();}};p([m()],xi['prototype'],'Me',0x2),p([y({'type':Boolean,'attribute':'wrap','noAccessor':!0x0})],xi['prototype'],'wrap',0x2);var gs=class extends C{['render'](){return v`<div class="uc-spinner"></div>`;}},It='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';function Ce(_0x4b660a){let _0x12fc62=new Image();return{'promise':new Promise((_0x4e133a,_0x52fcc7)=>{_0x12fc62['src']=_0x4b660a,_0x12fc62['onload']=()=>_0x4e133a(),_0x12fc62['onerror']=_0x107d38=>_0x52fcc7(_0x107d38);}),'image':_0x12fc62,'cancel':()=>{0x0===_0x12fc62['naturalWidth']&&(_0x12fc62['src']=It);}};}function Si(_0x47c6cd){let _0x1bb0da=[];for(let _0x44f038 of _0x47c6cd){let _0x1cdbfa=Ce(_0x44f038);_0x1bb0da['push'](_0x1cdbfa);}let t=_0x1bb0da['map'](_0x41e619=>_0x41e619['image']);return{'promise':Promise['allSettled'](_0x1bb0da['map'](_0x87d319=>_0x87d319['promise'])),'images':t,'cancel':()=>{_0x1bb0da['forEach'](_0x52308c=>{_0x52308c['cancel']();});}};}function vs(_0x3b132d,_0x24dad0=0x28){if('image/svg+xml'===_0x3b132d['type'])return URL['createObjectURL'](_0x3b132d);let t=document['createElement']('canvas'),_0x4bdcdd=t['getContext']('2d');if(!_0x4bdcdd)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));let _0x5394cd=new Image(),_0x46e0a7=new Promise((_0x533494,_0x3f28b1)=>{_0x5394cd['onload']=()=>{let _0x31022a=_0x5394cd['height']/_0x5394cd['width'];_0x31022a>0x1?(t['width']=_0x24dad0,t['height']=_0x24dad0*_0x31022a):(t['height']=_0x24dad0,t['width']=_0x24dad0/_0x31022a),_0x4bdcdd['fillStyle']='rgb(240,\x20240,\x20240)',_0x4bdcdd['fillRect'](0x0,0x0,t['width'],t['height']),_0x4bdcdd['drawImage'](_0x5394cd,0x0,0x0,t['width'],t['height']),t['toBlob'](_0xfe4bbe=>{if(!_0xfe4bbe)return void _0x3f28b1();let _0x308ea4=URL['createObjectURL'](_0xfe4bbe);_0x533494(_0x308ea4);});},_0x5394cd['onerror']=_0x3cc2d6=>{_0x3f28b1(_0x3cc2d6);};});return _0x5394cd['src']=URL['createObjectURL'](_0x3b132d),_0x46e0a7;}var We=class extends R{constructor(){super(...arguments),this['or']=new Set(),this['entry']=null;}['withEntry'](t){return(..._0x1ab2ce)=>{let _0x32b90b=this['entry'];if(_0x32b90b)return t(_0x32b90b,..._0x1ab2ce);console['warn']('No\x20entry\x20found');};}['subEntry'](t,_0x477694){this['withEntry']((_0x299392,_0x387d2e,_0x4ca815)=>{let _0x1a9170=_0x299392['subscribe'](_0x387d2e,_0x124e06=>{this['isConnected']&&_0x4ca815(_0x124e06);});this['or']['add'](_0x1a9170);})(t,_0x477694);}['reset'](){for(let t of this['or'])t();this['or']=new Set(),this['entry']=null;}['disconnectedCallback'](){super['disconnectedCallback'](),this['or']=new Set();}};function qu(_0x3fb83b){let _0x22469f=new Blob([_0x3fb83b],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x22469f);}function Wr(_0x35348d='hsl(209,\x2021%,\x2065%)',_0x4bf9a5=0x20,t=0x20){return qu('<svg\x20width=\x22'+_0x4bf9a5+'\x22\x20height=\x22'+t+'\x22\x20viewBox=\x220\x200\x2030\x2030\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20fill-rule=\x22evenodd\x22\x20fill=\x22'+_0x35348d+'\x22\x20d=\x22M9.68848\x208.70068C9.68848\x208.42454\x209.91233\x208.20068\x2010.1885\x208.20068H15.0885C15.2211\x208.20068\x2015.3483\x208.25336\x2015.442\x208.34713L20.342\x2013.2471C20.4358\x2013.3409\x2020.4885\x2013.4681\x2020.4885\x2013.6007V21.3007C20.4885\x2021.5768\x2020.2646\x2021.8007\x2019.9885\x2021.8007H10.1885C9.91233\x2021.8007\x209.68848\x2021.5768\x209.68848\x2021.3007V8.70068ZM10.6885\x209.20068V20.8007H19.4885V14.1007L15.0885\x2014.1007C14.8123\x2014.1007\x2014.5885\x2013.8768\x2014.5885\x2013.6007L14.5885\x209.20068H10.6885ZM15.5885\x209.90779L18.7814\x2013.1007L15.5885\x2013.1007L15.5885\x209.90779Z\x22/></svg>');}var Wu=0xbb8,Ze=class extends We{constructor(){super(...arguments),this['badgeIcon']='',this['uid']='',this['Le']='',this['Xn']=!0x1,this['sr']=null,this['Qn']=!0x1,this['Lu']=this['cfg']['filesViewMode'],this['Jn']=this['withEntry'](async(t,_0x33bd58=!0x1)=>{let _0x158d21=t['getValue']('fileInfo'),_0x48c93f=t['getValue']('isImage'),_0x30d6d0=t['getValue']('uuid'),_0x281ac7=t['getValue']('thumbUrl'),_0xe6fb68=this['Ru'](_0x33bd58);if(_0x158d21&&_0x48c93f&&_0x30d6d0){let _0x1732d3=await this['proxyUrl'](W(Jt(this['cfg']['cdnCname'],_0x30d6d0),rt(t['getValue']('cdnUrlModifiers'),'stretch/off','scale_crop/'+_0xe6fb68+'x'+_0xe6fb68+'/center')));if(_0x281ac7===_0x1732d3)return;let {promise:_0x1ca6e3}=Ce(_0x1732d3);return void _0x1ca6e3['then'](()=>{t['setValue']('thumbUrl',_0x1732d3),_0x281ac7?.['startsWith']('blob:')&&URL['revokeObjectURL'](_0x281ac7);})['catch'](async()=>{if(!_0x281ac7?.['startsWith']('blob:'))try{let _0x348483=t['getValue']('file');if(!_0x348483)return;let _0x396890=await vs(_0x348483,_0xe6fb68);t['setValue']('thumbUrl',_0x396890);}catch(_0x25fe68){this['telemetryManager']['sendEventError'](_0x25fe68,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');let _0x5f18c0=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');t['setValue']('thumbUrl',Wr(_0x5f18c0));}});}if(t['getValue']('thumbUrl'))return;let _0x282232=t['getValue']('file');if(_0x282232?.['type']['includes']('image'))try{let _0x4f9583=await vs(_0x282232,_0xe6fb68);t['setValue']('thumbUrl',_0x4f9583);}catch(_0x5438ca){this['telemetryManager']['sendEventError'](_0x5438ca,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');let _0x392a34=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');t['setValue']('thumbUrl',Wr(_0x392a34));}else{let _0x1d4ad6=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');t['setValue']('thumbUrl',Wr(_0x1d4ad6));}}),this['nr']=$(this['Jn']['bind'](this),0x64);}['Ru'](t=!0x1){t&&(this['sr']=this['getBoundingClientRect']());let _0x43721=Math['max'](parseInt(String(this?.['sr']?.['height']||0x0),0xa),parseInt(String(this?.['sr']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x43721*=window['devicePixelRatio']),Math['min'](_0x43721,Wu);}['Uu'](t,_0x3cc7e9){return new Promise((_0x20b2b6,_0x12a709)=>{let _0x43c632=new Image();_0x43c632['decoding']='async';let _0x401b75=()=>{_0x43c632&&(_0x43c632['onload']=null,_0x43c632['onerror']=null,_0x43c632['src']=It,_0x3cc7e9?.['removeEventListener']('abort',_0x25da9b),_0x43c632=null);},_0x25da9b=()=>{_0x401b75(),_0x12a709(new DOMException('Aborted','AbortError'));};if(_0x3cc7e9){if(_0x3cc7e9['aborted'])return void _0x25da9b();_0x3cc7e9['addEventListener']('abort',_0x25da9b,{'once':!0x0});}let _0x1446b3=()=>{_0x401b75(),_0x20b2b6();},_0x368707=_0x1298b5=>{_0x401b75(),_0x12a709(_0x1298b5);};if('function'==typeof _0x43c632['decode'])return _0x43c632['src']=t,void _0x43c632['decode']()['then'](_0x1446b3)['catch'](_0x368707);_0x43c632['onload']=_0x1446b3,_0x43c632['onerror']=_0x368707,_0x43c632['src']=t;});}['Po'](){this['Io']?.['cancel'](),this['Io']=void 0x0;}['$u'](t){if(this['Po'](),!t)return void(this['Le']&&(this['Le']=''));if(t===this['Le'])return;let _0x550912=new AbortController(),_0x31e256={'controller':_0x550912,'cancel':()=>{_0x550912['abort'](),void 0x0!==_0x31e256['rafId']&&window['cancelAnimationFrame'](_0x31e256['rafId']);}};this['Io']=_0x31e256,this['Uu'](t,_0x550912['signal'])['then'](()=>{_0x550912['signal']['aborted']||(_0x31e256['rafId']=window['requestAnimationFrame'](()=>{_0x550912['signal']['aborted']||(this['Le']=t);}));})['catch'](_0x1dea94=>{_0x550912['signal']['aborted']||_0x1dea94 instanceof DOMException&&'AbortError'===_0x1dea94['name']||console['warn']('[Thumb]\x20Failed\x20to\x20decode\x20thumbnail\x20image',_0x1dea94);});}['ar'](t=!0x1){if(this['entry']){if(t)return void this['Jn'](!0x0);this['Qn']&&this['nr']();}}['firstUpdated'](t){super['firstUpdated'](t),this['ea']();}['updated'](t){super['updated'](t),t['has']('uid')&&this['ea']();}['ai'](t){let [_0x32fdf0]=t;_0x32fdf0&&(this['Qn']=_0x32fdf0['isIntersecting'],_0x32fdf0['isIntersecting']&&(this['sr']=_0x32fdf0['boundingClientRect'],this['ar'](),this['s']?.['disconnect']()),0x0===_0x32fdf0['intersectionRatio']&&this['nr']['cancel']());}['reset'](){super['reset'](),this['nr']['cancel'](),this['Po'](),this['Le']&&(this['Le']='');}['ea'](){let t=this['uid']?.['trim']();if(!t)return void(this['entry']&&this['reset']());let _0x37bbe6=this['uploadCollection']?.['read'](t);if(!_0x37bbe6||_0x37bbe6===this['entry'])return;this['reset'](),this['entry']=_0x37bbe6;let _0x5ad048=()=>{this['ar']();};this['subEntry']('fileInfo',_0x540f54=>{_0x540f54?.['isImage']&&_0x5ad048();}),this['subEntry']('thumbUrl',_0x22d5a8=>{this['$u'](_0x22d5a8??void 0x0);}),this['subEntry']('cdnUrlModifiers',_0x5ad048),this['ar'](!0x0);}['initCallback'](){super['initCallback'](),this['subConfigValue']('filesViewMode',t=>{'grid'===t&&!this['Xn']&&('list'===this['Lu']&&this['ar'](!0x0),this['Xn']=!0x0);});}['connectedCallback'](){super['connectedCallback'](),this['s']?.['disconnect'](),this['s']=new window['IntersectionObserver'](this['ai']['bind'](this),{'threshold':0.1}),this['s']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['nr']['cancel'](),this['Po'](),this['s']?.['disconnect']();}['render'](){return v`<div class="uc-thumb"><img class="uc-thumb__img" src=${this['Le']||It} role="img" alt="Preview of uploaded image" ?hidden=${!this['Le']} draggable="false" /><div class="uc-badge"><uc-icon name=${this['badgeIcon']}></uc-icon></div></div>`;}};p([y({'type':String})],Ze['prototype'],'badgeIcon',0x2),p([y({'attribute':!0x1})],Ze['prototype'],'uid',0x2),p([m()],Ze['prototype'],'Le',0x2);var ys=class extends x{},bs=class extends x{constructor(){super(...arguments),this['historyTracked']=!0x0,this['activityType']=x['activities']['START_FROM'];}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'');}['render'](){return v`<div class="uc-content">${this['yield']('')}</div>`;}},ws=class extends R{constructor(){super(...arguments),this['ta']=null;}static{this['styleAttrs']=['uc-wgt-common'];}static{this['EventType']=k;}['initCallback'](){super['initCallback'](),this['ta']=this['eventEmitter']['bindTarget'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['ta']?.();}},Ye=(_0x1d9314,_0x1f1557)=>{let _0x21e0a2,t=!0x1,_0x2b0640=0x0,_0x3232d9=(..._0x5d36d1)=>{t?(_0x21e0a2&&clearTimeout(_0x21e0a2),_0x21e0a2=setTimeout(()=>{Date['now']()-_0x2b0640>=_0x1f1557&&(_0x1d9314(..._0x5d36d1),_0x2b0640=Date['now']());},Math['max'](_0x1f1557-(Date['now']()-_0x2b0640),0x0))):(_0x1d9314(..._0x5d36d1),_0x2b0640=Date['now'](),t=!0x0);};return Object['defineProperty'](_0x3232d9,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0x21e0a2&&clearTimeout(_0x21e0a2);}}),_0x3232d9;},Ia=(_0x487453,_0x128461,t)=>{let _0x325db8=new Map();for(let _0x65e6b2=_0x128461;_0x65e6b2<=t;_0x65e6b2++)_0x325db8['set'](_0x487453[_0x65e6b2],_0x65e6b2);return _0x325db8;},Ai=gt(class extends Et{constructor(_0x524505){if(super(_0x524505),_0x524505['type']!==$t['CHILD'])throw Error('repeat()\x20can\x20only\x20be\x20used\x20in\x20text\x20expressions');}['dt'](_0x334be8,_0x275b8f,t){let _0x5d1c00;void 0x0===t?t=_0x275b8f:void 0x0!==_0x275b8f&&(_0x5d1c00=_0x275b8f);let _0x162e39=[],_0x22a0d8=[],_0x1ce29=0x0;for(let _0x342b34 of _0x334be8)_0x162e39[_0x1ce29]=_0x5d1c00?_0x5d1c00(_0x342b34,_0x1ce29):_0x1ce29,_0x22a0d8[_0x1ce29]=t(_0x342b34,_0x1ce29),_0x1ce29++;return{'values':_0x22a0d8,'keys':_0x162e39};}['render'](_0x3c4710,_0x557bd4,t){return this['dt'](_0x3c4710,_0x557bd4,t)['values'];}['update'](_0x5532bb,[_0x2adfde,t,_0x28ec3c]){let _0x419cf6=ka(_0x5532bb),{values:_0x3184b4,keys:_0x5f73a4}=this['dt'](_0x2adfde,t,_0x28ec3c);if(!Array['isArray'](_0x419cf6))return this['ut']=_0x5f73a4,_0x3184b4;let _0x2d496a,_0x36c3fa,_0x3c679b=this['ut']??=[],_0x1df58c=[],_0x4f4d9a=0x0,_0x446700=_0x419cf6['length']-0x1,_0x689904=0x0,_0x5c254c=_0x3184b4['length']-0x1;for(;_0x4f4d9a<=_0x446700&&_0x689904<=_0x5c254c;)if(null===_0x419cf6[_0x4f4d9a])_0x4f4d9a++;else{if(null===_0x419cf6[_0x446700])_0x446700--;else{if(_0x3c679b[_0x4f4d9a]===_0x5f73a4[_0x689904])_0x1df58c[_0x689904]=le(_0x419cf6[_0x4f4d9a],_0x3184b4[_0x689904]),_0x4f4d9a++,_0x689904++;else{if(_0x3c679b[_0x446700]===_0x5f73a4[_0x5c254c])_0x1df58c[_0x5c254c]=le(_0x419cf6[_0x446700],_0x3184b4[_0x5c254c]),_0x446700--,_0x5c254c--;else{if(_0x3c679b[_0x4f4d9a]===_0x5f73a4[_0x5c254c])_0x1df58c[_0x5c254c]=le(_0x419cf6[_0x4f4d9a],_0x3184b4[_0x5c254c]),Ke(_0x5532bb,_0x1df58c[_0x5c254c+0x1],_0x419cf6[_0x4f4d9a]),_0x4f4d9a++,_0x5c254c--;else{if(_0x3c679b[_0x446700]===_0x5f73a4[_0x689904])_0x1df58c[_0x689904]=le(_0x419cf6[_0x446700],_0x3184b4[_0x689904]),Ke(_0x5532bb,_0x419cf6[_0x4f4d9a],_0x419cf6[_0x446700]),_0x446700--,_0x689904++;else{if(void 0x0===_0x2d496a&&(_0x2d496a=Ia(_0x5f73a4,_0x689904,_0x5c254c),_0x36c3fa=Ia(_0x3c679b,_0x4f4d9a,_0x446700)),_0x2d496a['has'](_0x3c679b[_0x4f4d9a])){if(_0x2d496a['has'](_0x3c679b[_0x446700])){let _0x5c5974=_0x36c3fa['get'](_0x5f73a4[_0x689904]),_0x58b4a1=void 0x0!==_0x5c5974?_0x419cf6[_0x5c5974]:null;if(null===_0x58b4a1){let _0x5eda05=Ke(_0x5532bb,_0x419cf6[_0x4f4d9a]);le(_0x5eda05,_0x3184b4[_0x689904]),_0x1df58c[_0x689904]=_0x5eda05;}else _0x1df58c[_0x689904]=le(_0x58b4a1,_0x3184b4[_0x689904]),Ke(_0x5532bb,_0x419cf6[_0x4f4d9a],_0x58b4a1),_0x419cf6[_0x5c5974]=null;_0x689904++;}else Kr(_0x419cf6[_0x446700]),_0x446700--;}else Kr(_0x419cf6[_0x4f4d9a]),_0x4f4d9a++;}}}}}}for(;_0x689904<=_0x5c254c;){let _0x57eaa4=Ke(_0x5532bb,_0x1df58c[_0x5c254c+0x1]);le(_0x57eaa4,_0x3184b4[_0x689904]),_0x1df58c[_0x689904++]=_0x57eaa4;}for(;_0x4f4d9a<=_0x446700;){let _0x43bf01=_0x419cf6[_0x4f4d9a++];null!==_0x43bf01&&Kr(_0x43bf01);}return this['ut']=_0x5f73a4,Aa(_0x5532bb,_0x1df58c),it;}}),X=Object['freeze']({'FINISHED':Symbol('FINISHED'),'FAILED':Symbol('FAILED'),'UPLOADING':Symbol('UPLOADING'),'VALIDATION':Symbol('VALIDATION'),'QUEUED_UPLOADING':Symbol('QUEUED-UPLOADING'),'QUEUED_VALIDATION':Symbol('QUEUED-VALIDATION'),'IDLE':Symbol('IDLE')}),G=class e extends We{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['ia']=!0x0,this['uid']='',this['Lo']='',this['Ro']='',this['Uo']='',this['oe']=0x0,this['ra']=!0x1,this['$o']='',this['oa']=!0x1,this['sa']=!0x1,this['na']=!0x1,this['aa']=!0x1,this['lr']=!0x1,this['la']='',this['cr']=[],this['ca']=!0x1,this['Du']=()=>{this['telemetryManager']['sendEvent']({'payload':{'metadata':{'event':'remove-file','node':this['tagName']}}}),this['uid']&&this['uploadCollection']['hasItem'](this['uid'])&&this['uploadCollection']['remove'](this['uid']);},this['Fu']=()=>{this['ua']();},this['S']=$(()=>this['da'](),0x64),this['Vu']=this['withEntry'](Ye((t,_0x418019)=>{let _0x3e3ab5=t['getValue']('errors')?.[0x0]?.['message']??'',_0x348ce5=t['getValue']('source'),_0x5eb21c=t['getValue']('externalUrl'),_0x5706de=_0x418019===X['FINISHED'],_0x36fcfe=_0x418019===X['UPLOADING'],_0x2e59e3=_0x418019===X['QUEUED_UPLOADING'],_0x564fe2=_0x418019===X['QUEUED_VALIDATION'],_0x3e3989=_0x418019===X['VALIDATION'],_0xcc2043=t['getValue']('fileName'),_0x38c8bd='';_0x3e3ab5?_0x38c8bd='':!_0x5706de&&_0x5eb21c&&_0x348ce5&&Object['values'](ut)['includes'](_0x348ce5)&&(_0x38c8bd=this['l10n']('waiting-for',{'source':this['l10n']('src-type-'+ia(_0x348ce5))})),this['Uo']=_0x38c8bd,this['Ro']=_0x3e3ab5,this['ra']=_0x36fcfe||_0x2e59e3||_0x564fe2||_0x3e3989,this['oe']=_0x564fe2||_0x3e3989?0x0:t['getValue']('uploadProgress'),this['la']=_0xcc2043?this['l10n']('a11y-file-item-status',{'fileName':_0xcc2043,'status':this['l10n'](_0x418019?.['description']?.['toLocaleLowerCase']()??'')['toLocaleLowerCase']()}):'';},0x64)),this['ua']=this['withEntry'](async t=>{if(!this['uploadCollection']['read'](t['uid'])||t['getValue']('fileInfo')||t['getValue']('isUploading')||t['getValue']('errors')['length']>0x0||t['getValue']('isValidationPending'))return;let _0x2e6c63=this['cfg']['multiple']?this['cfg']['multipleMax']:0x1;if(!(_0x2e6c63&&this['uploadCollection']['size']>_0x2e6c63)){t['setMultipleValues']({'isUploading':!0x0,'errors':[],'isQueuedForUploading':!0x0}),this['S']();try{let _0x336ef3=new AbortController();t['setValue']('abortController',_0x336ef3);let _0x4f7d50=async()=>{t['setValue']('isQueuedForUploading',!0x1);let _0x54a235=t['getValue']('file');if(_0x54a235 instanceof File||_0x54a235 instanceof Blob){let _0xc921e3=(this['i']['pluginManager']?.['snapshot']()['fileHooks']??[])['filter'](_0x3ded8b=>'beforeUpload'===_0x3ded8b['type']);for(let _0x42c93 of _0xc921e3)try{let _0x43f05e=_0x42c93['handler']({'file':_0x54a235,'signal':_0x336ef3['signal']}),_0x5db074=new Promise((_0x1503bb,_0x549bd7)=>setTimeout(()=>_0x549bd7(new Error('beforeUpload\x20hook\x20timed\x20out')),_0x42c93['timeout'])),{file:_0x472774}=await Promise['race']([_0x43f05e,_0x5db074]);_0x472774!==_0x54a235&&(_0x54a235=_0x472774,t['setValue']('mimeType',_0x54a235['type']||null),t['setValue']('isImage',Re(_0x54a235)),t['setValue']('fileSize',_0x54a235['size']),_0x54a235 instanceof File&&t['setValue']('fileName',_0x54a235['name']));}catch(_0x2df0b9){console['warn']('File\x20hook\x20\x22beforeUpload\x22\x20from\x20plugin\x20\x22'+_0x42c93['pluginId']+'\x22\x20failed',_0x2df0b9);}}let _0x16c043=_0x54a235||t['getValue']('externalUrl')||t['getValue']('uuid');if(!_0x16c043)throw new Error('No\x20file\x20input');let _0x1c82da={...await this['getUploadClientOptions'](),'fileName':t['getValue']('fileName')??void 0x0,'source':t['getValue']('source')??void 0x0,'onProgress':_0x4755f5=>{if(_0x4755f5['isComputable']){let _0x59240d=0x64*_0x4755f5['value'];t['setValue']('uploadProgress',_0x59240d);}},'signal':_0x336ef3['signal'],'metadata':await this['getMetadataFor'](t['uid'])};return this['debugPrint']('upload\x20options',_0x16c043,_0x1c82da),_o(_0x16c043,_0x1c82da);},_0x5ef024=await this['$']['*uploadQueue']['add'](_0x4f7d50);t['setMultipleValues']({'fileInfo':_0x5ef024,'isQueuedForUploading':!0x1,'isUploading':!0x1,'fileName':_0x5ef024['originalFilename'],'fileSize':_0x5ef024['size'],'isImage':_0x5ef024['isImage']??!0x1,'mimeType':_0x5ef024['contentInfo']?.['mime']?.['mime']??_0x5ef024['mimeType'],'uuid':_0x5ef024['uuid'],'cdnUrl':t['getValue']('cdnUrl')??_0x5ef024['cdnUrl'],'cdnUrlModifiers':t['getValue']('cdnUrlModifiers')??'','uploadProgress':0x64,'source':t['getValue']('source')??null}),t===this['entry']&&this['S']();}catch(_0x50c2ff){let _0x180ce7=_0x50c2ff instanceof ee&&_0x50c2ff['isCancel'];_0x180ce7?t['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0}):_0x50c2ff instanceof ve?t['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':_0x50c2ff}):(console['error']('Unknown\x20upload\x20error',_0x50c2ff),t['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':new Error('Something\x20went\x20wrong',{'cause':_0x50c2ff})})),t===this['entry']&&this['S'](),this['isConnected']&&!_0x180ce7&&this['telemetryManager']['sendEventError'](_0x50c2ff,'file\x20upload.\x20Failed\x20to\x20upload\x20file');}}});}['da'](){let t=this['entry'];if(!t)return;let _0x2840eb=X['IDLE'];t['getValue']('errors')['length']>0x0?_0x2840eb=X['FAILED']:t['getValue']('isQueuedForUploading')?_0x2840eb=X['QUEUED_UPLOADING']:t['getValue']('isQueuedForValidation')?_0x2840eb=X['QUEUED_VALIDATION']:t['getValue']('isValidationPending')?_0x2840eb=X['VALIDATION']:t['getValue']('isUploading')?_0x2840eb=X['UPLOADING']:t['getValue']('fileInfo')&&(_0x2840eb=X['FINISHED']),this['Nu'](t,_0x2840eb);}['Nu'](t,_0x1066c3){_0x1066c3===X['FAILED']?this['$o']='badge-error':_0x1066c3===X['FINISHED']&&(this['$o']='badge-success'),_0x1066c3===X['UPLOADING']&&(this['aa']=!0x1,this['removeAttribute']('focused')),this['sa']=_0x1066c3===X['FAILED'],this['na']=_0x1066c3===X['UPLOADING'],this['oa']=_0x1066c3===X['FINISHED'],this['Vu'](_0x1066c3);}['reset'](){super['reset'](),this['S']['cancel']();}['ai'](t){let [_0x4cca0a]=t;_0x4cca0a&&_0x4cca0a['isIntersecting']&&!this['ca']&&(this['ia']=!0x1,this['ca']=!0x0);}['pa'](t){this['reset']();let _0x50b9c5=this['uploadCollection']?.['read'](t);this['entry']=_0x50b9c5,_0x50b9c5?(this['subEntry']('isQueuedForValidation',()=>{this['S']();}),this['subEntry']('isValidationPending',()=>{this['S']();}),this['subEntry']('uploadProgress',()=>{this['S']();}),this['subEntry']('isQueuedForUploading',()=>{this['S']();}),this['subEntry']('fileName',_0x9d5b4f=>{this['Lo']=_0x9d5b4f||_0x50b9c5['getValue']('externalUrl')||this['l10n']('file-no-name'),this['S']();}),this['subEntry']('externalUrl',_0x19cf9d=>{this['Lo']=_0x50b9c5['getValue']('fileName')||_0x19cf9d||this['l10n']('file-no-name');}),this['subEntry']('fileInfo',()=>{this['S']();}),this['subEntry']('errors',()=>this['S']()),this['subEntry']('isUploading',()=>this['S']()),this['subEntry']('fileSize',()=>this['S']()),this['subEntry']('mimeType',()=>this['S']()),this['subEntry']('isImage',()=>this['S']()),this['subEntry']('fileInfo',()=>this['Ze']()),this['subEntry']('isUploading',()=>this['Ze']()),this['subEntry']('errors',()=>this['Ze']()),this['da'](),this['Ze']()):this['Ze']();}['ha'](t){'list'!==this['cfg']['filesViewMode']?this['lr']=t:this['lr']=!0x0;}['willUpdate'](t){super['willUpdate'](t),t['has']('uid')&&this['pa'](this['uid']);}['Ze'](){let t=this['i']['pluginManager'];if(!t||!this['uid'])return void(this['cr']=[]);let _0x504c81=t['snapshot']()['fileActions'],_0xeda5a7=this['api']['getOutputItem'](this['uid']);this['cr']=_0xeda5a7?_0x504c81['filter'](_0x13fe9f=>{try{return _0x13fe9f['shouldRender'](_0xeda5a7);}catch(_0x416bf3){return console['error']('Error\x20in\x20plugin\x20file\x20action\x20shouldRender\x20('+_0x13fe9f['id']+'):',_0x416bf3),!0x1;}}):[];}['_u'](t){if(!this['uid'])return;let _0x8b403d=this['api']['getOutputItem'](this['uid']);if(_0x8b403d){this['telemetryManager']['sendEvent']({'payload':{'metadata':{'event':t['id'],'node':this['tagName'],'pluginId':t['pluginId']}}});try{t['onClick'](_0x8b403d);}catch(_0x21d059){console['error']('Error\x20in\x20plugin\x20file\x20action\x20onClick\x20('+t['id']+'):',_0x21d059);}}}['initCallback'](){super['initCallback'](),this['pa'](this['uid']),this['subConfigValue']('filesViewMode',_0x2abf9c=>{this['ha'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0x2abf9c);}),this['subConfigValue']('gridShowFileNames',_0x1c0139=>{this['ha'](_0x1c0139);}),this['onclick']=()=>{e['activeInstances']['forEach'](_0x4386a7=>{_0x4386a7===this?_0x4386a7['setAttribute']('focused',''):_0x4386a7['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0x5da692=>{this['entry']&&!_0x5da692['has'](this['entry']['uid'])||setTimeout(()=>this['isConnected']&&this['ua']());});let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['Ze']())),this['Ze'](),e['activeInstances']['add'](this);}['connectedCallback'](){super['connectedCallback'](),this['s']=new window['IntersectionObserver'](this['ai']['bind'](this),{'threshold':[0x0,0x1]}),this['s']['observe'](this);}['disconnectedCallback'](){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback'](),this['s']?.['disconnect'](),e['activeInstances']['delete'](this),this['reset']();}static{this['activeInstances']=new Set();}['shouldUpdate'](t){return!this['ia']&&super['shouldUpdate'](t);}['render'](){return v`<div class="uc-inner" ?data-finished=${this['oa']} ?data-uploading=${this['na']} ?data-failed=${this['sa']} ?data-focused=${this['aa']} ><uc-thumb .uid=${this['uid']} .badgeIcon=${this['$o']}></uc-thumb><div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" aria-label=${this['la']}><span class="uc-file-name" ?hidden=${!this['lr']}>${this['Lo']}</span><span class="uc-file-error" ?hidden=${!this['Ro']}>${this['Ro']}</span><span class="uc-file-hint" ?hidden=${!this['Uo']}>${this['Uo']}</span></div><div class="uc-file-actions">${this['cr']['map'](t=>v`<button type="button" @click=${()=>this['_u'](t)} title=${this['l10n'](t['label'])} aria-label=${this['l10n'](t['label'])} class="uc-plugin-action-btn uc-mini-btn" data-plugin-action-id=${t['id']} ><uc-icon name=${t['icon']}></uc-icon></button>`)}<button type="button" @click=${this['Du']} title=${this['l10n']('file-item-remove-button')} aria-label=${this['l10n']('file-item-remove-button')} class="uc-remove-btn uc-mini-btn" ><uc-icon name="remove-file"></uc-icon></button><button type="button" class="uc-upload-btn uc-mini-btn" @click=${this['Fu']}><uc-icon name="upload"></uc-icon></button></div><uc-progress-bar class="uc-progress-bar" .value=${this['oe']} .visible=${this['ra']} ?hasFileName=${this['lr']}></uc-progress-bar></div>`;}};p([m()],G['prototype'],'ia',0x2),p([y({'attribute':!0x1})],G['prototype'],'uid',0x2),p([m()],G['prototype'],'Lo',0x2),p([m()],G['prototype'],'Ro',0x2),p([m()],G['prototype'],'Uo',0x2),p([m()],G['prototype'],'oe',0x2),p([m()],G['prototype'],'ra',0x2),p([m()],G['prototype'],'$o',0x2),p([m()],G['prototype'],'oa',0x2),p([m()],G['prototype'],'sa',0x2),p([m()],G['prototype'],'na',0x2),p([m()],G['prototype'],'aa',0x2),p([m()],G['prototype'],'lr',0x2),p([m()],G['prototype'],'la',0x2),p([m()],G['prototype'],'cr',0x2);var Ts=G;function Zu(_0x2e770e){return new Promise(_0x470f71=>{'function'!=typeof window['FileReader']&&_0x470f71(!0x1);try{let t=new FileReader();t['onerror']=()=>{_0x470f71(!0x0);};let _0x104f9d=_0x40d268=>{'loadend'!==_0x40d268['type']&&t['abort'](),_0x470f71(!0x1);};t['onloadend']=_0x104f9d,t['onprogress']=_0x104f9d,t['readAsDataURL'](_0x2e770e);}catch{_0x470f71(!0x1);}});}function Yu(_0x53898b,_0x15b2ca){return new Promise(t=>{let _0x3b3e62=0x0,_0x1afa57=[],_0x37ab22=_0x482463=>{if(!_0x482463)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void t(null);_0x482463['isFile']?(_0x3b3e62++,_0x482463['file'](_0x15aae3=>{_0x3b3e62--;let _0x5368d8=new File([_0x15aae3],_0x15aae3['name'],{'type':_0x15aae3['type']||_0x15b2ca});_0x1afa57['push']({'type':'file','file':_0x5368d8,'fullPath':_0x482463['fullPath']}),0x0===_0x3b3e62&&t(_0x1afa57);})):_0x482463['isDirectory']&&_0x41a774(_0x482463['createReader']());},_0x41a774=_0x5a4d18=>{_0x3b3e62++,_0x5a4d18['readEntries'](_0x19ec9b=>{_0x3b3e62--;for(let _0x17b048 of _0x19ec9b)_0x37ab22(_0x17b048);0x0===_0x3b3e62&&t(_0x1afa57);});};_0x37ab22(_0x53898b);});}function Oa(_0x9539a3){let _0x3f3976=[],t=[];for(let _0x1b9d0d=0x0;_0x1b9d0d<_0x9539a3['items']['length'];_0x1b9d0d++){let _0x508107=_0x9539a3['items'][_0x1b9d0d];if(_0x508107){if('file'===_0x508107['kind']){let _0x28768e=_0x508107['type'],_0x56a0a7=_0x508107;if('function'==typeof _0x56a0a7['webkitGetAsEntry']||'function'==typeof _0x56a0a7['getAsEntry']){let _0x29b5e1='function'==typeof _0x56a0a7['webkitGetAsEntry']?_0x56a0a7['webkitGetAsEntry']():_0x56a0a7['getAsEntry']?.();_0x29b5e1&&t['push'](Yu(_0x29b5e1,_0x28768e)['then'](_0x3b30f4=>{_0x3b30f4&&_0x3f3976['push'](..._0x3b30f4);}));continue;}let _0x49c9f=_0x508107['getAsFile']();_0x49c9f&&t['push'](Zu(_0x49c9f)['then'](_0x30f368=>{_0x30f368||_0x3f3976['push']({'type':'file','file':_0x49c9f});}));}else'string'===_0x508107['kind']&&/^text\/uri-list/['test'](_0x508107['type'])&&t['push'](new Promise(_0x443d50=>{_0x508107['getAsString'](_0x2edc98=>{_0x3f3976['push']({'type':'url','url':_0x2edc98}),_0x443d50();});}));}}return Promise['all'](t)['then'](()=>_0x3f3976);}var nt=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),Pa=['focus'],Xu=0x64,Es=new Map();function Qu(_0xce53f1,_0x1ed555){let t=Math['max'](Math['min'](_0xce53f1[0x0],_0x1ed555['x']+_0x1ed555['width']),_0x1ed555['x']),_0x360437=Math['max'](Math['min'](_0xce53f1[0x1],_0x1ed555['y']+_0x1ed555['height']),_0x1ed555['y']);return Math['sqrt']((_0xce53f1[0x0]-t)*(_0xce53f1[0x0]-t)+(_0xce53f1[0x1]-_0x360437)*(_0xce53f1[0x1]-_0x360437));}function Cs(_0x5ab8dd){let _0x41fa34=0x0,t=document['body'],_0x152cb7=new Set(),_0x52b494=nt['INACTIVE'],_0x5dbdd3=_0xa32bf7=>{_0x5ab8dd['shouldIgnore']()&&_0xa32bf7!==nt['INACTIVE']||(_0x52b494!==_0xa32bf7&&_0x152cb7['forEach'](_0x257986=>{_0x257986(_0xa32bf7);}),_0x52b494=_0xa32bf7);},_0x1745a3=()=>_0x41fa34>0x0;var _0x414613;_0x414613=_0x567126=>_0x5ab8dd['onChange'](_0x567126),_0x152cb7['add'](_0x414613);let _0x161b6e=()=>{_0x41fa34=0x0,_0x5dbdd3(nt['INACTIVE']);},_0x3bcf96=()=>{_0x41fa34+=0x1,_0x52b494===nt['INACTIVE']&&_0x5dbdd3(nt['ACTIVE']);},_0x2ef87d=()=>{_0x41fa34-=0x1,_0x1745a3()||_0x5dbdd3(nt['INACTIVE']);},_0xdc0bd1=_0x6e93d9=>{_0x6e93d9['preventDefault'](),_0x41fa34=0x0,_0x5dbdd3(nt['INACTIVE']);},_0x3b1f83=_0x20313d=>{if(_0x5ab8dd['shouldIgnore']())return;_0x1745a3()||(_0x41fa34+=0x1);let _0x3516e9=[_0x20313d['x'],_0x20313d['y']],_0x469088=_0x5ab8dd['element']['getBoundingClientRect'](),_0x5d448f=Math['floor'](Qu(_0x3516e9,_0x469088)),_0x3bd5ae=_0x5d448f<Xu,_0x347fa0=_0x20313d['composedPath']()['includes'](_0x5ab8dd['element']);Es['set'](_0x5ab8dd['element'],_0x5d448f);let _0x139414=Math['min'](...Es['values']())===_0x5d448f;_0x347fa0&&_0x139414?(_0x20313d['preventDefault'](),_0x5dbdd3(nt['OVER'])):_0x5dbdd3(_0x3bd5ae&&_0x139414?nt['NEAR']:nt['ACTIVE']);},_0x12d409=async _0x18d0e5=>{if(_0x5ab8dd['shouldIgnore']())return;_0x18d0e5['preventDefault']();let {dataTransfer:_0x175ca7}=_0x18d0e5;if(!_0x175ca7)return;let _0x4177f1=await Oa(_0x175ca7);_0x5ab8dd['onItems'](_0x4177f1),_0x5dbdd3(nt['INACTIVE']);};return t['addEventListener']('drop',_0xdc0bd1),t['addEventListener']('dragleave',_0x2ef87d),t['addEventListener']('dragenter',_0x3bcf96),t['addEventListener']('dragover',_0x3b1f83),_0x5ab8dd['element']['addEventListener']('drop',_0x12d409),Pa['forEach'](_0x40cd4a=>{window['addEventListener'](_0x40cd4a,_0x161b6e);}),()=>{Es['delete'](_0x5ab8dd['element']),t['removeEventListener']('drop',_0xdc0bd1),t['removeEventListener']('dragleave',_0x2ef87d),t['removeEventListener']('dragenter',_0x3bcf96),t['removeEventListener']('dragover',_0x3b1f83),_0x5ab8dd['element']['removeEventListener']('drop',_0x12d409),Pa['forEach'](_0x276031=>{window['removeEventListener'](_0x276031,_0x161b6e);});};}var xs=new Set(),dt=class extends R{constructor(){super(...arguments),this['single']=!0x1,this['ghost']=!0x1,this['disabled']=!0x1,this['clickable']=!0x1,this['withIcon']=!0x1,this['fullscreen']=!0x1,this['initflow']=!0x1,this['Oe']=!0x0,this['fa']=!0x0,this['Do']='drop-files-here',this['ma']=!0x1,this['va']=null,this['Fo']=null,this['ya']=I(),this['Lt']=t=>{if(t instanceof KeyboardEvent){if('Space'!==t['code']&&'Enter'!==t['code'])return;}else{if(!(t instanceof MouseEvent))return;}this['initflow']?this['api']['initFlow']():this['api']['openSystemDialog']();},this['ba']=!0x0,this['Rt']=!0x1;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-drop-area'];}['ga'](){let t=this['text'];'string'==typeof t&&t['length']>0x0?this['Do']=this['l10n'](t)||t:this['Do']=this['ma']?this['l10n']('drop-files-here'):this['l10n']('drop-file-here');}['isActive'](){if(!this['Oe'])return!0x1;let t=this['getBoundingClientRect'](),_0x324ed2=t['width']>0x0&&t['height']>0x0,_0x5c7698=t['top']>=0x0&&t['left']>=0x0&&t['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&t['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x36cd9f=window['getComputedStyle'](this),_0x36eeb9='hidden'!==_0x36cd9f['visibility']&&'none'!==_0x36cd9f['display'];return _0x324ed2&&_0x36eeb9&&_0x5c7698;}['initCallback'](){super['initCallback'](),xs['add'](this),this['No'](),this['Vo'](),this['wa'](),this['Ta'](nt['INACTIVE']),this['va']=Cs({'element':this,'shouldIgnore':()=>this['Ea'](),'onChange':t=>{this['Ta'](t);},'onItems':t=>{t['length']&&(t['forEach'](_0x1cae96=>{'url'===_0x1cae96['type']?this['api']['addFileFromUrl'](_0x1cae96['url'],{'source':N['DROP_AREA']}):'file'===_0x1cae96['type']&&this['api']['addFileFromObject'](_0x1cae96['file'],{'source':N['DROP_AREA'],'fullPath':_0x1cae96['fullPath']});}),this['uploadCollection']['size']&&(this['set$']({'*currentActivity':x['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](x['activities']['UPLOAD_LIST'])));}}),this['updateComplete']['then'](()=>this['Bu']()),this['subConfigValue']('sourceList',t=>{let _0x5545d0=Z(t);this['ba']=_0x5545d0['includes'](N['LOCAL']),this['No'](),this['Vo']();}),this['subConfigValue']('multiple',t=>{this['ma']=!!t,this['ga']();});}['willUpdate'](t){super['willUpdate'](t),t['has']('disabled')&&(this['No'](),this['Vo']()),(t['has']('text')||t['has']('localeId'))&&this['ga']();}['updated'](t){super['updated'](t),t['has']('clickable')&&this['wa']();}['Ea'](){if(!this['Oe']||!this['zu']())return!0x0;if(!this['fullscreen'])return!0x1;let t=xs;return 0x0!==t['size']&&[...t]['filter'](_0x31676f=>_0x31676f!==this)['filter'](_0x51e4a2=>_0x51e4a2['isActive']())['length']>0x0;}['zu'](){let t=this['cfg']['multiple'],_0x445f77=this['cfg']['multipleMax'],_0x3bbdf7=this['uploadCollection']['size'];return!(t&&_0x445f77&&_0x3bbdf7>=_0x445f77||!t&&_0x3bbdf7>0x0);}['No'](){let t=this['ba']&&!this['disabled'];this['Oe']=t;}['Vo'](){let t=this['Oe']||!this['querySelector']('[data-default-slot]');this['fa']=t,this['hidden']=!t;}['Ta'](t){let _0x1e00d1=Object['entries'](nt)['find'](([,_0x5be0e9])=>_0x5be0e9===t)?.[0x0]['toLowerCase']();_0x1e00d1&&this['setAttribute']('drag-state',_0x1e00d1);}['Bu'](){if(this['Fo'])return;let t=this['ya']['value'];t&&(this['Fo']=Cs({'element':t,'onChange':_0x39290d=>{let _0x516950=Object['entries'](nt)['find'](([,_0x1e59b6])=>_0x1e59b6===_0x39290d)?.[0x0]['toLowerCase']();_0x516950&&t['setAttribute']('drag-state',_0x516950);},'onItems':()=>{},'shouldIgnore':()=>this['Ea']()}));}['wa'](){this['clickable']&&!this['Rt']?(this['addEventListener']('keydown',this['Lt']),this['addEventListener']('click',this['Lt']),this['Rt']=!0x0):!this['clickable']&&this['Rt']&&(this['removeEventListener']('keydown',this['Lt']),this['removeEventListener']('click',this['Lt']),this['Rt']=!0x1);}['disconnectedCallback'](){super['disconnectedCallback'](),xs['delete'](this),this['va']?.(),this['Fo']?.(),this['Rt']&&(this['removeEventListener']('keydown',this['Lt']),this['removeEventListener']('click',this['Lt']),this['Rt']=!0x1);}['render'](){return v` ${this['yield']('',v`<div data-default-slot hidden></div><div ${O(this['ya'])} class="uc-content-wrapper" ?hidden=${!this['fa']}><div class="uc-icon-container" ?hidden=${!this['withIcon']}><uc-icon name="default"></uc-icon><uc-icon name="arrow-down"></uc-icon></div><span class="uc-text">${this['Do']}</span></div>`)} `;}};p([y({'type':Boolean,'noAccessor':!0x0})],dt['prototype'],'single',0x2),p([y({'type':Boolean,'noAccessor':!0x0})],dt['prototype'],'ghost',0x2),p([y({'type':Boolean,'reflect':!0x0})],dt['prototype'],'disabled',0x2),p([y({'type':Boolean,'reflect':!0x0})],dt['prototype'],'clickable',0x2),p([y({'type':Boolean,'attribute':'with-icon','reflect':!0x0})],dt['prototype'],'withIcon',0x2),p([y({'type':Boolean,'reflect':!0x0})],dt['prototype'],'fullscreen',0x2),p([y({'type':Boolean,'reflect':!0x0})],dt['prototype'],'initflow',0x2),p([y({'type':String})],dt['prototype'],'text',0x2),p([m()],dt['prototype'],'Oe',0x2),p([m()],dt['prototype'],'fa',0x2),p([m()],dt['prototype'],'Do',0x2);var Ot=class extends R{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['historyTracked']=!0x0,this['activityType']=x['activities']['UPLOAD_LIST'],this['xa']=!0x1,this['Ca']=!0x1,this['Sa']=!0x1,this['_o']=!0x1,this['Bo']=!0x1,this['ur']=null,this['Aa']=!0x1,this['zo']=null,this['ka']=()=>{this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'add-more','node':this['tagName']}}}),this['api']['initFlow'](!0x0);},this['Ho']=()=>{this['emit'](k['UPLOAD_CLICK']),this['api']['uploadAll'](),this['Te']();},this['Ko']=()=>{this['emit'](k['DONE_CLICK'],this['api']['getOutputCollectionState']()),this['api']['doneFlow']();},this['Ee']=()=>{this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'clear-all','node':this['tagName']}}}),this['uploadCollection']['clearAll']();},this['Te']=Ye(()=>{this['isConnected']&&(this['ju'](),!this['couldOpenActivity']&&this['$']['*currentActivity']===this['activityType']&&this['historyBack'](),this['cfg']['confirmUpload']||this['api']['uploadAll']());},0x12c);}get['Hu'](){return this['zo']?this['Ku'](this['zo']):'';}['ju'](){let t=this['api']['getOutputCollectionState'](),_0x4dc96d={'total':t['totalCount'],'succeed':t['successCount'],'uploading':t['uploadingCount'],'failed':t['failedCount'],'validatingBeforeUploading':t['idleEntries']['filter'](_0x4f43d7=>_0x4f43d7['isValidationPending'])['length']},_0x22bc67=!t['errors']['some'](_0x215102=>'TOO_MANY_FILES'===_0x215102['type']||'TOO_FEW_FILES'===_0x215102['type']),_0x46d946=t['errors']['some'](_0x4322b3=>'TOO_MANY_FILES'===_0x4322b3['type']),_0x1bcca2=t['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x6bd559=t['allEntries']['some'](_0xfe700d=>_0xfe700d['isValidationPending']),_0x31e17e=0x0===_0x4dc96d['failed']&&0x0===t['errors']['length']&&!_0x6bd559,_0x169f44=!0x1,_0x27cce2=!0x1,_0x3a5988=!0x1;if(_0x4dc96d['total']-_0x4dc96d['succeed']-_0x4dc96d['uploading']-_0x4dc96d['failed']>0x0&&_0x22bc67&&_0x31e17e&&this['cfg']['confirmUpload'])_0x169f44=!0x0;else{_0x27cce2=!0x0;let _0x475585=!this['cfg']['groupOutput']||!!t['group'];_0x3a5988=_0x4dc96d['total']===_0x4dc96d['succeed']&&_0x22bc67&&_0x31e17e&&_0x475585;}this['xa']=_0x27cce2,this['Ca']=_0x3a5988,this['Sa']=_0x169f44,this['Bo']=0x0===_0x4dc96d['total']||!_0x46d946&&!_0x1bcca2,this['_o']=!_0x1bcca2||this['cfg']['multiple'],this['Aa']=_0x4dc96d['total']>0x0,this['zo']=_0x4dc96d;}['Ku'](t){let _0x49d564=_0x1b5eb1=>{let _0x46408b=t[_0x1b5eb1];return'uploading'===_0x1b5eb1&&(_0x46408b+=t['validatingBeforeUploading']),this['l10n']('header-'+_0x1b5eb1,{'count':_0x46408b});};return t['uploading']>0x0||t['validatingBeforeUploading']>0x0?_0x49d564('uploading'):t['failed']>0x0?_0x49d564('failed'):t['succeed']>0x0?_0x49d564('succeed'):_0x49d564('total');}get['couldOpenActivity'](){return this['cfg']['showEmptyList']||this['uploadCollection']['size']>0x0;}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']),this['subConfigValue']('multiple',this['Te']),this['subConfigValue']('multipleMin',this['Te']),this['subConfigValue']('multipleMax',this['Te']),this['sub']('*groupInfo',t=>{t&&this['Te']();}),this['subConfigValue']('filesViewMode',t=>{this['setAttribute']('mode',t);}),this['sub']('*currentActivity',t=>{!this['couldOpenActivity']&&t===this['activityType']&&(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['Te']),this['uploadCollection']['observeCollection'](this['Te']),this['sub']('*collectionErrors',t=>{let _0x12a69a=t['filter'](_0x551bbe=>'SOME_FILES_HAS_ERRORS'!==_0x551bbe['type'])[0x0];this['ur']=_0x12a69a?_0x12a69a['message']:null;});}['disconnectedCallback'](){super['disconnectedCallback'](),this['has']('*uploadCollection')&&(this['uploadCollection']['unobserveProperties'](this['Te']),this['uploadCollection']['unobserveCollection'](this['Te']));}['render'](){return v`<uc-activity-header><span aria-live="polite" class="uc-header-text">${this['Hu']}</span><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*closeModal']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><div class="uc-no-files" ?hidden=${this['Aa']}>${this['yield']('empty',v`<span>${this['l10n']('no-files')}</span>`)}</div><div class="uc-files"><div class="uc-files-wrapper">${Ai(this['$']['*uploadList']??[],({uid:t})=>t,({uid:t})=>v`<uc-file-item .uid=${t}></uc-file-item>`)}</div><button type="button" class="uc-add-more-btn uc-secondary-btn" @click=${this['ka']} ?disabled=${!this['Bo']} ?hidden=${!this['_o']} ><uc-icon name="add"></uc-icon><span>${this['l10n']('add-more')}</span></button></div><div class="uc-common-error" ?hidden=${!this['ur']} >${this['ur']??''}</div><div class="uc-toolbar"><button type="button" class="uc-cancel-btn uc-secondary-btn" @click=${this['Ee']}>${this['l10n']('clear')}</button><div class="uc-toolbar-spacer"></div><button type="button" class="uc-add-more-btn uc-secondary-btn" ?hidden=${!this['_o']} ?disabled=${!this['Bo']} @click=${this['ka']} ><uc-icon name="add"></uc-icon><span>${this['l10n']('add-more')}</span></button><button type="button" class="uc-upload-btn uc-primary-btn" ?hidden=${!this['Sa']} @click=${this['Ho']} >${this['l10n']('upload')}</button><button type="button" class="uc-done-btn uc-primary-btn" ?hidden=${!this['xa']} ?disabled=${!this['Ca']} @click=${this['Ko']} >${this['l10n']('done')}</button></div><uc-drop-area ghost></uc-drop-area>`;}};p([m()],Ot['prototype'],'xa',0x2),p([m()],Ot['prototype'],'Ca',0x2),p([m()],Ot['prototype'],'Sa',0x2),p([m()],Ot['prototype'],'_o',0x2),p([m()],Ot['prototype'],'Bo',0x2),p([m()],Ot['prototype'],'ur',0x2),p([m()],Ot['prototype'],'Aa',0x2),p([m()],Ot['prototype'],'zo',0x2);var Ju=[{'test':_0x202b8d=>!!_0x202b8d['accept']&&!!_0x202b8d['imgOnly'],'message':'There\x20could\x20be\x20a\x20mistake.\x0aBoth\x20`accept`\x20and\x20`imgOnly`\x20parameters\x20are\x20set.\x0aThe\x20value\x20of\x20`accept`\x20will\x20be\x20concatenated\x20with\x20the\x20internal\x20image\x20mime\x20types\x20list.'},{'test':_0x3f6811=>null!==_0x3f6811['enableVideoRecording'],'message':'The\x20`enableVideoRecording`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'},{'test':_0x2530df=>null!==_0x2530df['defaultCameraMode'],'message':'The\x20`defaultCameraMode`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'}],La=$(_0xca0dc4=>{for(let {test:_0x3d3ebc,message:t}of Ju)_0x3d3ebc(_0xca0dc4)&&Dr(t);},0x0),Ua=(_0x2f3912,_0x578862)=>{let t=new URL(_0x578862);return t['hostname']=_0x2f3912+'.'+t['hostname'],t['toString']()['replace'](/\/$/,'');},td='0123456789abcdefghijklmnopqrstuvwxyz',Ra=_0x2414f1=>{if(_0x2414f1<=0x0n)return'0';let _0x331bba='';for(;_0x2414f1>0x0n;){_0x331bba=td[Number(_0x2414f1%0x24n)]+_0x331bba,_0x2414f1/=0x24n;}return _0x331bba;},Ss=(_0x577dc0,_0x149ed6)=>{try{let t=new URL(_0x577dc0),_0x4a53ce=new URL(_0x149ed6);return t['hostname']['endsWith'](_0x4a53ce['hostname']);}catch{return!0x1;}},ed=async _0x57954b=>{let _0x262aab=new TextEncoder()['encode'](_0x57954b),t=await window['crypto']['subtle']['digest']('SHA-256',_0x262aab),_0x20f52a=Array['from'](new Uint8Array(t))['map'](_0x28e554=>_0x28e554['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x20f52a);},id=0xa,rd=async _0x222794=>{let _0x597864=await ed(_0x222794);return Ra(_0x597864)['slice'](0x0,id);},$a=async(_0x271ff7,_0x2bf041)=>{let t=await rd(_0x271ff7);return Ua(t,_0x2bf041);},Da=_0x3abcf4=>_0x3abcf4 instanceof Promise||!(!_0x3abcf4||'object'!=typeof _0x3abcf4||!('then'in _0x3abcf4)||'function'!=typeof _0x3abcf4['then']),As=_0x54bf50=>_0x54bf50,od=[As({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x55ae9a,enableVideoRecording:_0x3d0674})=>{let t=_0x3d0674();if(null===t)return _0x55ae9a();let _0x481515=K(_0x55ae9a());return t&&!_0x481515['includes']('video')?_0x481515=_0x481515['concat']('video'):t||(_0x481515=_0x481515['filter'](_0xec52c=>'video'!==_0xec52c)),Ht(_0x481515);}}),As({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x3e7722,defaultCameraMode:_0x46fa13})=>{let t=_0x46fa13();if(null===t)return _0x3e7722();let _0x2ad275=K(_0x3e7722());return _0x2ad275=_0x2ad275['sort']((_0xa0d324,_0x9f5bfe)=>_0xa0d324===t?-0x1:_0x9f5bfe===t?0x1:0x0),Ht(_0x2ad275);}}),As({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0x307540,cdnCname:_0x105199,cdnCnamePrefixed:t})=>{let _0x3f03a4=_0x307540(),_0x186bfd=_0x105199(),_0xe98120=t();return _0x3f03a4&&(_0x186bfd===pi||Ss(_0x186bfd,_0xe98120))?$a(_0x3f03a4,_0xe98120):_0x186bfd;}})],Fa=({key:_0x3bcf57,setValue:_0x3e4444,getValue:t,computationControllers:_0x6e68c0})=>{for(let _0x4b9a96 of od){if(!_0x4b9a96['deps']['includes'](_0x3bcf57))continue;let _0x10b2ff={[_0x4b9a96['key']]:()=>t(_0x4b9a96['key'])};for(let _0x24ecef of _0x4b9a96['deps'])_0x10b2ff[_0x24ecef]=()=>t(_0x24ecef);let _0x4ce337,_0x52bad9=new AbortController();_0x6e68c0['get'](_0x4b9a96['fn'])?.['abort'](),_0x6e68c0['set'](_0x4b9a96['fn'],_0x52bad9);try{_0x4ce337=_0x4b9a96['fn'](_0x10b2ff,{'signal':_0x52bad9['signal']});}catch(_0x245e5d){return _0x6e68c0['get'](_0x4b9a96['fn'])===_0x52bad9&&_0x6e68c0['delete'](_0x4b9a96['fn']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x4b9a96['key']+'\x22',_0x245e5d);}Da(_0x4ce337)?_0x4ce337['then'](_0x15fe3b=>{_0x52bad9['signal']['aborted']||_0x3e4444(_0x4b9a96['key'],_0x15fe3b);})['catch'](_0x37062a=>{_0x52bad9['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0x4b9a96['key']+'\x22',_0x37062a);})['finally'](()=>{_0x6e68c0['get'](_0x4b9a96['fn'])===_0x52bad9&&_0x6e68c0['delete'](_0x4b9a96['fn']);}):_0x3e4444(_0x4b9a96['key'],_0x4ce337);}},V=_0x47859c=>String(_0x47859c),tt=_0xeb78d2=>{let _0x14905f=Number(_0xeb78d2);if(Number['isNaN'](_0x14905f))throw new Error('Invalid\x20number:\x20\x22'+_0xeb78d2+'\x22');return _0x14905f;},z=_0x28ccf7=>{if(typeof _0x28ccf7>'u'||null===_0x28ccf7)return!0x1;if('boolean'==typeof _0x28ccf7)return _0x28ccf7;if('true'===_0x28ccf7||''===_0x28ccf7)return!0x0;if('false'===_0x28ccf7)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x28ccf7+'\x22');},Va=_0xf777b7=>'auto'===_0xf777b7?_0xf777b7:z(_0xf777b7),Na=_0x1bef26=>{let _0x334cd5=V(_0x1bef26);if('user'!==_0x334cd5&&'environment'!==_0x334cd5&&''!==_0x334cd5)throw new Error('Invalid\x20value:\x20\x22'+_0x334cd5+'\x22');return _0x334cd5;},_a=_0x2a01c7=>{let _0x44e84e=V(_0x2a01c7);if(!Object['values'](P)['includes'](_0x44e84e))throw new Error('Invalid\x20value:\x20\x22'+_0x44e84e+'\x22');return _0x44e84e;},za=_0x4af48f=>{let _0x11e839=V(_0x4af48f),t=K(_0x11e839);if(t['some'](_0x23c48e=>!Object['values'](P)['includes'](_0x23c48e)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](t)+'\x22');return _0x11e839;},Ba=_0x2c8b18=>{let _0x33cfb1=V(_0x2c8b18);if('local'===_0x33cfb1||'global'===_0x33cfb1)return _0x33cfb1;if(!0x1===z(_0x2c8b18))return!0x1;throw new Error('Invalid\x20value:\x20\x22'+_0x33cfb1+'\x22');},Ha=_0x2ce046=>{if('object'==typeof _0x2ce046&&!Array['isArray'](_0x2ce046)||'function'==typeof _0x2ce046)return _0x2ce046;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},ks=_0xc86332=>{if('object'==typeof _0xc86332)return _0xc86332;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},Zr=_0x1767bb=>{if('function'==typeof _0x1767bb)return _0x1767bb;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},Yr=_0x4591a5=>{if(Array['isArray'](_0x4591a5))return _0x4591a5;throw new Error('Must\x20be\x20an\x20array.');},Ka=_0x2ebd25=>{let _0xb32227=V(_0x2ebd25);if(['grid','list']['includes'](_0xb32227))return _0xb32227;throw new Error('Invalid\x20value:\x20\x22'+_0xb32227+'\x22');},sd={'pubkey':V,'multiple':z,'multipleMin':tt,'multipleMax':tt,'confirmUpload':z,'imgOnly':z,'accept':V,'externalSourcesPreferredTypes':V,'externalSourcesEmbedCss':V,'store':Va,'cameraMirror':z,'cameraCapture':Na,'sourceList':V,'topLevelOrigin':V,'maxLocalFileSizeBytes':tt,'thumbSize':tt,'showEmptyList':z,'useLocalImageEditor':z,'useCloudImageEditor':z,'cloudImageEditorTabs':V,'removeCopyright':z,'cropPreset':V,'imageShrink':V,'modalScrollLock':z,'modalBackdropStrokes':z,'sourceListWrap':z,'remoteTabSessionKey':V,'cdnCname':V,'cdnCnamePrefixed':V,'baseUrl':V,'socialBaseUrl':V,'secureSignature':V,'secureExpire':V,'secureDeliveryProxy':V,'retryThrottledRequestMaxTimes':tt,'retryNetworkErrorMaxTimes':tt,'multipartMinFileSize':tt,'multipartChunkSize':tt,'maxConcurrentRequests':tt,'multipartMaxConcurrentRequests':tt,'multipartMaxAttempts':tt,'checkForUrlDuplicates':z,'saveUrlForRecurrentUploads':z,'groupOutput':z,'userAgentIntegration':V,'debug':z,'localeName':V,'metadata':Ha,'secureUploadsExpireThreshold':tt,'localeDefinitionOverride':_0x1a8923=>ks(_0x1a8923),'secureUploadsSignatureResolver':_0x53c01e=>Zr(_0x53c01e),'secureDeliveryProxyUrlResolver':_0x5afc8e=>Zr(_0x5afc8e),'iconHrefResolver':_0x4fa86a=>Zr(_0x4fa86a),'plugins':_0x1d81e7=>Yr(_0x1d81e7),'fileValidators':Yr,'collectionValidators':Yr,'validationTimeout':tt,'validationConcurrency':tt,'cameraModes':za,'defaultCameraMode':_a,'enableAudioRecording':z,'enableVideoRecording':z,'mediaRecorderOptions':ks,'maxVideoRecordingDuration':tt,'filesViewMode':Ka,'gridShowFileNames':z,'cloudImageEditorAutoOpen':z,'cloudImageEditorMaskHref':V,'testMode':z,'qualityInsights':z,'pasteScope':Ba},ja=(_0x50a625,_0x15d572)=>{if(!(typeof _0x15d572>'u'||null===_0x15d572))try{return sd[_0x50a625](_0x15d572);}catch(_0x50a4bb){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x50a625+'\x22.',_0x50a4bb),J[_0x50a625];}},Xr=[...new Set(['debug',...Object['keys'](J)])],nd=['metadata','plugins','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],qa=_0x1a907f=>nd['includes'](_0x1a907f),Is=Xr['filter'](_0x354961=>!qa(_0x354961)),Ms={...Object['fromEntries'](Is['map'](_0x41a6c9=>[cr(_0x41a6c9),_0x41a6c9])),...Object['fromEntries'](Is['map'](_0x4f4b26=>[_0x4f4b26['toLowerCase'](),_0x4f4b26]))},Ga=_0x414243=>'__'+_0x414243,Xe=class extends C{constructor(){super(...arguments),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](J)['map'](([t,_0x2f1c37])=>[A(t),_0x2f1c37]))},this['Gu']=new Map(),this['ci']={},this['Ma']=new Set(),this['Ut']=new Map();}['jo'](t){return this['Ma']['has'](t);}['Go'](t){let _0xb5ceeb=this['i']['pluginManager'];if(_0xb5ceeb)return _0xb5ceeb['configRegistry']['get'](t);}['Oa'](t){return[...new Set([cr(t),t['toLowerCase']()])];}['qu'](t,_0x1deb53){if(qa(t)||this['jo'](t)&&!0x1===this['Go'](t)?.['attribute'])return;let _0x5af7ec=this['Oa'](t);for(let _0x47b11d of _0x5af7ec)typeof _0x1deb53>'u'||null===_0x1deb53?this['removeAttribute'](_0x47b11d):this['getAttribute'](_0x47b11d)!==_0x1deb53['toString']()&&this['setAttribute'](_0x47b11d,_0x1deb53['toString']());}['Wu'](t,_0x584f64){let _0x1daf2e=A(t);if(this['$'][_0x1daf2e]!==_0x584f64){if(typeof _0x584f64>'u'||null===_0x584f64){let _0x3b7fdf=J[t];this['$'][_0x1daf2e]=void 0x0!==_0x3b7fdf?_0x3b7fdf:_0x584f64;}else this['$'][_0x1daf2e]=_0x584f64;}}['Ye'](t,_0x2099e3){let _0xc7fb13;if(this['jo'](t)){let _0x15c49e=this['Go'](t);try{_0xc7fb13=_0x15c49e?.['normalize']?.(_0x2099e3)??_0x2099e3;}catch(_0x24570b){return void console['warn']('[uc-config]\x20normalize()\x20for\x20\x22'+t+'\x22\x20threw\x20an\x20error,\x20keeping\x20previous\x20value',_0x24570b);}}else _0xc7fb13=ja(t,_0x2099e3);let _0x131a35=this,_0x3385bc=Ga(t);_0x131a35[_0x3385bc]!==_0xc7fb13&&(this['Zu'](t,_0x131a35[_0x3385bc],_0xc7fb13),_0x131a35[_0x3385bc]=_0xc7fb13,this['qu'](t,_0xc7fb13),this['Wu'](t,_0xc7fb13),this['debugPrint']('\x22'+t+'\x22',_0xc7fb13),this['jo'](t)||La(this['cfg']));}['pr'](t){return this[Ga(t)]??this['$'][A(t)];}['Zu'](t,_0x1cc575,_0x3b28ad){this['cfg']['debug']&&_0x3b28ad!==_0x1cc575&&'object'==typeof _0x3b28ad&&'object'==typeof _0x1cc575&&JSON['stringify'](_0x3b28ad)===JSON['stringify'](_0x1cc575)&&(console['warn']('[uc-config]\x20Option\x20\x22'+t+'\x22\x20value\x20is\x20the\x20same\x20as\x20the\x20previous\x20one\x20but\x20the\x20reference\x20is\x20different'),console['warn']('[uc-config]\x20You\x20should\x20avoid\x20changing\x20the\x20reference\x20of\x20the\x20object\x20to\x20prevent\x20unnecessary\x20calculations'),console['warn']('[uc-config]\x20\x22'+t+'\x22\x20previous\x20value:',_0x1cc575),console['warn']('[uc-config]\x20\x22'+t+'\x22\x20new\x20value:',_0x3b28ad));}['Ia'](t){let _0x34dad5=t['configRegistry']['getAll']();this['ci']={},this['Ma']=new Set(_0x34dad5['keys']());for(let [_0x4babd7,_0x84b08d]of this['Ut'])_0x34dad5['has'](_0x4babd7)||(_0x84b08d(),this['Ut']['delete'](_0x4babd7));for(let [_0x45e476,_0x34d2d9]of _0x34dad5){let _0x2c3407=A(_0x45e476);if(_0x34d2d9['attribute']){let _0xecd565=this['Oa'](_0x45e476);for(let _0x44a58d of _0xecd565)this['ci'][_0x44a58d]=_0x45e476;}this['sharedCtx']['has'](_0x2c3407)||this['sharedCtx']['add'](_0x2c3407,_0x34d2d9['defaultValue']);let _0x4e929d=Object['getOwnPropertyDescriptor'](this,_0x45e476);if((!_0x4e929d||!_0x4e929d['set']||!_0x4e929d['get'])&&Object['defineProperty'](this,_0x45e476,{'set':_0x3e5914=>{this['Ye'](_0x45e476,_0x3e5914);},'get':()=>this['pr'](_0x45e476),'enumerable':!0x0,'configurable':!0x0}),!this['Ut']['has'](_0x45e476)){let _0x27e6f0=this['sub'](_0x2c3407,_0x3cb7e8=>{this['Ye'](_0x45e476,_0x3cb7e8);},!0x1);this['Ut']['set'](_0x45e476,_0x27e6f0);}}}['Yu'](){this['i']['when']('pluginManager',t=>{this['Ia'](t),this['dr']=t['onPluginsChange'](()=>{this['Ia'](t);});});}['Xu'](){this['li']=new MutationObserver(t=>{for(let _0x4ad2c3 of t)if('attributes'===_0x4ad2c3['type']&&_0x4ad2c3['attributeName']){let _0x518071=_0x4ad2c3['attributeName'],_0x55f537=_0x4ad2c3['oldValue'],_0x389053=this['getAttribute'](_0x518071);if(_0x55f537===_0x389053||_0x518071 in Ms)continue;if(_0x518071 in this['ci']){let _0x369cb9=this['ci'][_0x518071],_0x19e533=this['Go'](_0x369cb9);this['attributeChangedCallback'](_0x518071,_0x55f537??'',_0x389053??_0x19e533?.['defaultValue']??'');}}}),this['li']['observe'](this,{'attributes':!0x0,'attributeOldValue':!0x0});}['initCallback'](){super['initCallback']();let t=this;this['Yu'](),this['Xu']();for(let _0x42b64e of Is)this['sub'](A(_0x42b64e),_0x6e42c5=>{this['Ye'](_0x42b64e,_0x6e42c5);},!0x1);for(let _0x3171c8 of Xr){let _0x5a99b8=t[_0x3171c8]??this['$'][A(_0x3171c8)];_0x5a99b8!==J[_0x3171c8]&&this['Ye'](_0x3171c8,_0x5a99b8);let _0x57d6d2=Object['getOwnPropertyDescriptor'](this,_0x3171c8);(!_0x57d6d2||!_0x57d6d2['set']||!_0x57d6d2['get'])&&Object['defineProperty'](this,_0x3171c8,{'set':_0x54833c=>{this['Ye'](_0x3171c8,_0x54833c);},'get':()=>this['pr'](_0x3171c8)});}let _0x1a7d7b=_0x1913ae=>{Fa({'key':_0x1913ae,'setValue':this['Ye']['bind'](this),'getValue':this['pr']['bind'](this),'computationControllers':this['Gu']});};for(let _0x4a5003 of Xr)this['sub'](A(_0x4a5003),()=>_0x1a7d7b(_0x4a5003));}['attributeChangedCallback'](t,_0x1c67bf,_0x26d1f4){if(super['attributeChangedCallback'](t,_0x1c67bf,_0x26d1f4),_0x1c67bf===_0x26d1f4)return;let _0x476291=Ms[t];_0x476291?this[_0x476291]=_0x26d1f4:this['i']['when']('pluginManager',_0x4fb7bb=>{let _0x288f4d=this['getAttribute'](t);if(_0x288f4d&&_0x288f4d!==_0x26d1f4)return;let _0x305d5d=this['ci'][t],_0x2e4ca3=_0x305d5d?_0x4fb7bb['configRegistry']['get'](_0x305d5d):void 0x0;if(_0x305d5d&&_0x2e4ca3){let _0x4250fd=_0x2e4ca3['fromAttribute']?_0x2e4ca3['fromAttribute'](_0x26d1f4):_0x26d1f4;if(this['pr'](_0x305d5d)===_0x4250fd)return;this['Ye'](_0x305d5d,_0x4250fd);}});}['disconnectedCallback'](){super['disconnectedCallback'](),this['dr']&&(this['dr'](),this['dr']=void 0x0),this['li']&&(this['li']['disconnect'](),this['li']=void 0x0);for(let t of this['Ut']['values']())t();this['Ut']['clear']();}static get['observedAttributes'](){return[...super['observedAttributes'],...Object['keys'](Ms)];}};for(let e of Xr)Xe['prototype'][e]=void 0x0;var ki=class extends R{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['dropzone']=!0x0,this['ui']='upload-file',this['Qu']=()=>{this['api']['initFlow']();};}static{this['styleAttrs']=[...super['styleAttrs'],'uc-simple-btn'];}['initCallback'](){super['initCallback'](),this['subConfigValue']('multiple',t=>{this['ui']=t?'upload-files':'upload-file';});}['render'](){return v`<uc-drop-area .disabled=${!this['dropzone']}><button type="button" @click=${this['Qu']}><uc-icon name="upload"></uc-icon><span>${this['l10n'](this['ui'])}</span>${this['yield']('')}<div class="uc-visual-drop-area">${this['l10n']('drop-files-here')}</div></button></uc-drop-area>`;}};p([y({'attribute':'dropzone','type':Boolean})],ki['prototype'],'dropzone',0x2),p([m()],ki['prototype'],'ui',0x2);var Mi=class extends x{constructor(){super(...arguments),this['Wo']=I();}['initCallback'](){this['activityType']=this['registration']?.['id']??null,this['Pa'](),super['initCallback']();}['willUpdate'](t){super['willUpdate'](t),t['has']('registration')&&(this['Pa'](),this['isActivityActive']&&(this['hr'](),this['La']()));}['Pa'](){this['registration']&&(this['Pn']()||this['registerActivity'](this['activityType']??'',{'onActivate':()=>this['La'](),'onDeactivate':()=>this['hr']()}));}async['La'](){await this['updateComplete'];let t=this['Wo']['value'];if(!t||!this['registration'])return;this['hr']();let _0x474ffb=this['$']['*currentActivityParams'];try{this['qo']=this['registration']['render'](t,_0x474ffb)??void 0x0;}catch(_0x50e41c){console['error']('[Plugin\x20\x22'+this['registration']['pluginId']+'\x22]\x20Activity\x20render()\x20threw\x20an\x20error',_0x50e41c);}}['hr'](){let t=this['Wo']['value'];if(t){try{this['qo']?.();}catch(_0x53f541){console['error']('[Plugin\x20\x22'+this['registration']?.['pluginId']+'\x22]\x20Activity\x20dispose\x20threw\x20an\x20error',_0x53f541);}this['qo']=void 0x0,t['replaceChildren']();}}['disconnectedCallback'](){this['hr'](),super['disconnectedCallback']();}['render'](){return v`<div style="display: contents;" ${O(this['Wo'])}></div>`;}};p([y({'attribute':!0x1})],Mi['prototype'],'registration',0x2);var Qe=class extends C{constructor(){super(...arguments),this['mode']='modal',this['de']=[];}['initCallback'](){super['initCallback']();let t=this['i']['pluginManager'];t?.['onPluginsChange']&&(this['E']=t['onPluginsChange'](()=>this['Ra']())),this['Ra']();}['Ra'](){let t=this['i']['pluginManager'];this['de']=t?t['snapshot']()['activities']:[];}['disconnectedCallback'](){this['E']?.(),this['E']=void 0x0,super['disconnectedCallback']();}['render'](){return'inline'===this['mode']?v`${Ai(this['de'],t=>t['id'],t=>v`<uc-plugin-activity-host .registration=${t}></uc-plugin-activity-host>`)}`:v`${Ai(this['de'],t=>t['id'],t=>v`<uc-modal id=${t['id']} strokes block-body-scrolling><uc-plugin-activity-host .registration=${t}></uc-plugin-activity-host></uc-modal>`)}`;}};function Ii(_0x2ac0b5,_0x4b26b5,t){return _0x2ac0b5?_0x4b26b5(_0x2ac0b5):t?.(_0x2ac0b5);}function Wa(..._0x420bcd){return _0x420bcd['reduce']((_0x501ec6,t)=>{if('string'==typeof t)return _0x501ec6[t]=!0x0,_0x501ec6;for(let _0x5e71db of Object['keys'](t))_0x501ec6[_0x5e71db]=t[_0x5e71db];return _0x501ec6;},{});}function yt(..._0x582c56){let _0x45f945=Wa(..._0x582c56);return Object['keys'](_0x45f945)['reduce']((t,_0x2454dc)=>(_0x45f945[_0x2454dc]&&t['push'](_0x2454dc),t),[])['join']('\x20');}function Za(_0x4419a3,..._0x2bc41b){let t=Wa(..._0x2bc41b);for(let _0x5ed4db of Object['keys'](t))_0x4419a3['classList']['toggle'](_0x5ed4db,!!t[_0x5ed4db]);}p([y({'type':String})],Qe['prototype'],'mode',0x2),p([m()],Qe['prototype'],'de',0x2);var ad=_0x52f6a4=>ot['includes'](_0x52f6a4),Ya=_0x4e5cc5=>{if(!_0x4e5cc5)return ot;let _0x1d4787=K(_0x4e5cc5)['filter'](ad);return 0x0===_0x1d4787['length']?ot:_0x1d4787;};function Xa(_0x35d601){return{'*originalUrl':null,'*loadingOperations':new Map(),'*faderEl':null,'*cropperEl':null,'*imgEl':null,'*imgContainerEl':null,'*networkProblems':!0x1,'*imageSize':null,'*editorTransformations':{},'*cropPresetList':[],'*currentAspectRatio':null,'*tabList':ot,'*tabId':B['CROP'],'*on.retryNetwork':()=>{let _0x2c50f5=_0x35d601['querySelectorAll']('img');for(let t of _0x2c50f5){let _0x17a1fa=t['src'];t['src']=It,t['src']=_0x17a1fa;}_0x35d601['$']['*networkProblems']=!0x1;},'*on.apply':_0x1168dd=>{if(!_0x1168dd)return;let t=_0x35d601['$']['*originalUrl'];if(!t)return void console['warn']('Original\x20URL\x20is\x20null,\x20cannot\x20apply\x20transformations');let _0xb4ef9e=rt(te(_0x1168dd),'preview'),_0x30e16c={'originalUrl':t,'cdnUrlModifiers':_0xb4ef9e,'cdnUrl':W(t,_0xb4ef9e),'transformations':_0x1168dd};_0x35d601['dispatchEvent'](new CustomEvent('apply',{'detail':_0x30e16c,'bubbles':!0x0,'composed':!0x0})),_0x35d601['remove']();},'*on.cancel':()=>{_0x35d601['remove'](),_0x35d601['dispatchEvent'](new CustomEvent('cancel',{'bubbles':!0x0,'composed':!0x0}));}};}var Qa='<svg\x20width=\x270\x27\x20height=\x270\x27\x20style=\x27position:absolute\x27><symbol\x20fill=\x27none\x27\x20viewBox=\x270\x200\x209\x206\x27\x20id=\x27uc-icon-arrow-dropdown\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke=\x27currentColor\x27\x20d=\x27m1.5\x201.667\x203\x202.666\x203-2.666\x27\x20opacity=\x27.5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2024\x2024\x27\x20id=\x27uc-icon-aspect-ratio\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27/><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-brightness\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M15\x2010a5\x205\x200\x200\x201-5\x205m5-5a5\x205\x200\x200\x200-5-5m5\x205h-5m0\x205a5\x205\x200\x200\x201\x200-10m0\x2010V5m0\x2015v-3M2.93\x202.929\x205.05\x205.05M0\x2010h3m-.07\x207.071\x202.12-2.121M10\x200v3m7.07\x2014.071-2.12-2.121M20\x2010h-3m.07-7.071L14.95\x205.05m-.626\x202.45H10m4.324\x205H10\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-closeMax\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27M8.232\x2010\x203.585\x205.353l1.768-1.768L10\x208.232l4.648-4.647\x201.767\x201.768L11.768\x2010l4.647\x204.648-1.767\x201.767L10\x2011.768l-4.647\x204.647-1.768-1.767L8.232\x2010Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-contrast\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M2\x2010a8\x208\x200\x201\x200\x2016\x200\x208\x208\x200\x201\x200-16\x200m8-8v16m8-8h-8m7.598\x202.5H10m6.24\x202.5H10m7.6-7.5H10M16.242\x205H10\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-crop\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M20\x2014H7.005C6.45\x2014\x206\x2013.55\x206\x2012.995V0M0\x206h13.067c.515\x200\x20.933.418.933.933V20M14.5.4\x2013\x202l1.5\x201.6M13\x202h2a3\x203\x200\x200\x201\x203\x203v2M5.5\x2019.6\x207\x2018l-1.5-1.6M7\x2018H5a3\x203\x200\x200\x201-3-3v-2\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-done\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27m18.057\x206.333-9.365\x209.125a1.25\x201.25\x200\x200\x201-1.768-.023L1.92\x2010.296l1.791-1.744\x204.132\x204.243\x208.47-8.253\x201.744\x201.79Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20fill=\x27currentColor\x27\x20viewBox=\x270\x200\x2025\x2024\x27\x20id=\x27uc-icon-edit-file\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-enhance\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M19\x2013h-2m0\x200a4\x204\x200\x200\x201-4-4m4\x204a4\x204\x200\x200\x200-4\x204m0-8V7m0\x202a4\x204\x200\x200\x201-4\x204m-2\x200h2m0\x200a4\x204\x200\x200\x201\x204\x204m0\x200v2M8\x208.5H6.5m0\x200a2\x202\x200\x200\x201-2-2m2\x202a2\x202\x200\x200\x200-2\x202m0-4V5m0\x201.5a2\x202\x200\x200\x201-2\x202M1\x208.5h1.5m0\x200a2\x202\x200\x200\x201\x202\x202m0\x200V12M12\x203h-1m0\x200a1\x201\x200\x200\x201-1-1m1\x201a1\x201\x200\x200\x200-1\x201m0-2V1m0\x201a1\x201\x200\x200\x201-1\x201M8\x203h1m0\x200a1\x201\x200\x200\x201\x201\x201m0\x200v1\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-exposure\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M10\x2020v-3M2.93\x202.929\x205.05\x205.05M0\x2010h3m-.07\x207.071\x202.12-2.121M10\x200v3m7.07\x2014.071-2.12-2.121M20\x2010h-3m.07-7.071L14.95\x205.05M5\x2010a5\x205\x200\x201\x200\x2010\x200\x205\x205\x200\x201\x200-10\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-filters\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M4.5\x206.5a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200m-3.5\x206a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200m7\x200a5.5\x205.5\x200\x201\x200\x2011\x200\x205.5\x205.5\x200\x201\x200-11\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-flip\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M19.6\x205\x2018\x203.5\x2016.4\x205m3.2\x2010L18\x2016.5\x2016.4\x2015M18\x203.523v12.954M3.3\x208.5h10.654c.301\x200\x20.415-.395.159-.554L3.459\x201.286A.3.3\x200\x200\x200\x203\x201.542V8.2a.3.3\x200\x200\x200\x20.3.3zm0\x203h10.654c.301\x200\x20.415.395.159.554l-10.654\x206.66A.3.3\x200\x200\x201\x203\x2018.458v-6.66a.3.3\x200\x200\x201\x20.3-.3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-gamma\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M17\x203C9\x206\x202.5\x2011.5\x202.5\x2017.5m0\x200h1m-1\x200v-1m14\x201h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3\x200h1m-3-14v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1m0\x203v-1\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-mirror\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M5\x20.4\x203.5\x202\x205\x203.6M15\x20.4\x2016.5\x202\x2015\x203.6M3.52\x202h12.957M8.5\x2016.7V6.046c0-.301-.394-.415-.554-.159L1.287\x2016.541a.3.3\x200\x200\x200\x20.255.459H8.2a.3.3\x200\x200\x200\x20.3-.3zm3\x200V6.046c0-.301.395-.415.555-.159l6.659\x2010.654a.3.3\x200\x200\x201-.255.459H11.8a.3.3\x200\x200\x201-.3-.3z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2040\x2040\x27\x20id=\x27uc-icon-original\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.5\x27\x20d=\x27M0\x2040\x2040\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-rotate\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M13.5.4\x2012\x202l1.5\x201.6M12.023\x202H14.4A3.6\x203.6\x200\x200\x201\x2018\x205.6V8M4\x2017h9a1\x201\x200\x200\x200\x201-1V7a1\x201\x200\x200\x200-1-1H4a1\x201\x200\x200\x200-1\x201v9a1\x201\x200\x200\x200\x201\x201z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-sad\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M2\x2017c4.418-4\x2011.582-4\x2016\x200M16.5\x205a1\x201\x200\x201\x201-2\x200\x201\x201\x200\x200\x201\x202\x200zm-11\x200a1\x201\x200\x201\x201-2\x200\x201\x201\x200\x200\x201\x202\x200z\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-saturation\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><defs><linearGradient\x20id=\x27ruc-icon-id__a\x27\x20x1=\x2710.001\x27\x20y1=\x271\x27\x20x2=\x2710.001\x27\x20y2=\x2719\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient></defs><circle\x20cx=\x2710.001\x27\x20cy=\x2710\x27\x20r=\x279\x27\x20transform=\x27rotate(90\x2010\x2010)\x27\x20fill=\x27url(#ruc-icon-id__a)\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-slider\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M0\x2010h11m0\x200a2\x202\x200\x201\x200\x204\x200m-4\x200a2\x202\x200\x201\x201\x204\x200m0\x200h5\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-tuning\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20stroke-linejoin=\x27round\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20d=\x27M8\x2010h11M1\x2010h4M1\x204.5h11m3\x200h4m-18\x2011h11m3\x200h4m-7-11a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200M5\x2010a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200m7\x205.5a1.5\x201.5\x200\x201\x200\x203\x200\x201.5\x201.5\x200\x201\x200-3\x200\x27/></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-vibrance\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27M2.125\x205.64A8.96\x208.96\x200\x200\x200\x201.001\x2010a8.96\x208.96\x200\x200\x200\x201.124\x204.36V5.64z\x27\x20fill=\x27url(#uuc-icon-id__a)\x27/><path\x20d=\x27M2.875\x2015.499V4.502a9.053\x209.053\x200\x200\x201\x201.75-1.72v14.437a9.05\x209.05\x200\x200\x201-1.75-1.72z\x27\x20fill=\x27url(#uuc-icon-id__b)\x27/><path\x20d=\x27M5.375\x2017.722c.548.33\x201.134.601\x201.75.809V1.469a8.956\x208.956\x200\x200\x200-1.75.81v15.443z\x27\x20fill=\x27url(#uuc-icon-id__c)\x27/><path\x20d=\x27M7.875\x201.253v17.495c.564.136\x201.15.22\x201.75.244V1.008a9\x209\x200\x200\x200-1.75.245z\x27\x20fill=\x27url(#uuc-icon-id__d)\x27/><path\x20d=\x27M10.375\x201.008v17.984a9\x209\x200\x200\x200\x201.75-.244V1.252a9\x209\x200\x200\x200-1.75-.244z\x27\x20fill=\x27url(#uuc-icon-id__e)\x27/><path\x20d=\x27M12.875\x201.469V18.53a8.957\x208.957\x200\x200\x200\x201.75-.808V2.277a8.957\x208.957\x200\x200\x200-1.75-.808z\x27\x20fill=\x27url(#uuc-icon-id__f)\x27/><path\x20d=\x27M15.375\x202.78v14.44a9.053\x209.053\x200\x200\x200\x201.75-1.72v-11a9.054\x209.054\x200\x200\x200-1.75-1.72z\x27\x20fill=\x27url(#uuc-icon-id__g)\x27/><path\x20d=\x27M17.875\x205.638v8.724A8.959\x208.959\x200\x200\x200\x2019.001\x2010a8.96\x208.96\x200\x200\x200-1.126-4.362z\x27\x20fill=\x27url(#uuc-icon-id__h)\x27/><defs><linearGradient\x20id=\x27uuc-icon-id__a\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__b\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__c\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__d\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__e\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__f\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__g\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient><linearGradient\x20id=\x27uuc-icon-id__h\x27\x20x1=\x2719.001\x27\x20y1=\x2710\x27\x20x2=\x271.001\x27\x20y2=\x2710\x27\x20gradientUnits=\x27userSpaceOnUse\x27><stop\x20stop-color=\x27#DE15FF\x27/><stop\x20offset=\x27.203\x27\x20stop-color=\x27#0029FF\x27/><stop\x20offset=\x27.479\x27\x20stop-color=\x27#2AE4F0\x27/><stop\x20offset=\x27.604\x27\x20stop-color=\x27#15EF11\x27/><stop\x20offset=\x27.75\x27\x20stop-color=\x27#FAE528\x27/><stop\x20offset=\x271\x27\x20stop-color=\x27#EB2A2A\x27/></linearGradient></defs></symbol><symbol\x20viewBox=\x270\x200\x2020\x2020\x27\x20id=\x27uc-icon-warmth\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20d=\x27m7.5\x2013.05.429.42.171-.175v-.244h-.6zm5\x200h-.6v.245l.172.175.428-.42zM8.1\x203.5c0-1.05.85-1.9\x201.9-1.9V.4a3.1\x203.1\x200\x200\x200-3.1\x203.1h1.2zm0\x209.55V3.5H6.9v9.55h1.2zm-1\x202.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088\x204.088\x200\x200\x200\x205.9\x2015.5h1.2zm2.9\x202.9a2.9\x202.9\x200\x200\x201-2.9-2.9H5.9a4.1\x204.1\x200\x200\x200\x204.1\x204.1v-1.2zm2.9-2.9a2.9\x202.9\x200\x200\x201-2.9\x202.9v1.2a4.1\x204.1\x200\x200\x200\x204.1-4.1h-1.2zm-.829-2.03c.514.524.829\x201.24.829\x202.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9\x203.5v9.55h1.2V3.5h-1.2zM10\x201.6c1.05\x200\x201.9.85\x201.9\x201.9h1.2A3.1\x203.1\x200\x200\x200\x2010\x20.4v1.2z\x27\x20fill=\x27currentColor\x27/><path\x20d=\x27M10\x2014V8\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27\x20stroke-linecap=\x27round\x27/><path\x20d=\x27M14\x203h3m-3\x203h3m-3\x203h3m-8\x206.5a1\x201\x200\x201\x200\x202\x200\x201\x201\x200\x201\x200-2\x200\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x271.2\x27/></symbol></svg>',xe={'transition':'uc-transition','visible':'uc-visible','hidden':'uc-hidden'},Je=class extends C{constructor(){super(...arguments),this['he']=!0x1,this['Ua']=xe,this['$a']=xe['visible'],this['Da']=xe['hidden'],this['Zo']=!0x1,this['Fa']=!0x1;}set['visible'](t){this['he']=t,this['Na']();}get['visible'](){return this['he'];}set['styles'](t){this['Ua']=t,this['Zo']=!0x0,this['$a']=t['visible']??xe['visible'],this['Da']=t['hidden']??xe['hidden'];}get['styles'](){return this['Ua'];}['Na'](){this['style']['visibility']=this['he']?'inherit':'hidden',Za(this,{[xe['transition']]:!this['Zo'],[this['$a']]:this['he'],[this['Da']]:!this['he']}),this['toggleAttribute']('inert',!this['he']);}['Ju'](){this['Fa']||(this['Fa']=!0x0,this['dispatchEvent'](new CustomEvent('initial-render',{'bubbles':!0x0,'composed':!0x0})));}['initCallback'](){super['initCallback'](),this['classList']['toggle']('uc-initial',!0x0),this['Zo']||this['classList']['add'](xe['transition']),this['Na'](),setTimeout(()=>{this['classList']['toggle']('uc-initial',!0x1),this['Ju']();},0x0);}};p([y({'type':Boolean})],Je['prototype'],'visible',0x1),p([y({'attribute':!0x1})],Je['prototype'],'styles',0x1);var Oi=class extends C{constructor(){super(...arguments),this['active']=!0x1,this['Xe']=I(),this['Yo']=!0x1,this['Xo']=()=>{let t=this['Xe']['value'];t&&(this['Va'](t),this['Yo']&&this['active']&&this['Qo']());};}['firstUpdated'](t){super['firstUpdated'](t),this['active']&&this['Qo']();}['updated'](t){super['updated'](t),t['has']('active')&&(this['active']?this['Qo']():this['ed']());}['Qo'](){let t=this['Xe']['value'];if(!t)return;this['Yo']=!0x0;let {width:_0x4e5d55}=this['getBoundingClientRect']();t['removeEventListener']('transitionend',this['Xo']),t['style']['transition']='transform\x201s',t['style']['opacity']='1',t['style']['transform']='translateX('+_0x4e5d55+'px)',t['addEventListener']('transitionend',this['Xo'],{'once':!0x0});}['ed'](){let t=this['Xe']['value'];t&&(this['Yo']=!0x1,t['removeEventListener']('transitionend',this['Xo']),this['Va'](t));}['Va'](t){t['style']['transition']='initial',t['style']['opacity']='0',t['style']['transform']='translateX(-101%)';}['render'](){return v`<div class="uc-inner"><div class="uc-line" ${O(this['Xe'])}></div></div>`;}};p([y({'type':Boolean,'reflect':!0x0})],Oi['prototype'],'active',0x2);var Pt=gt(class extends Et{constructor(_0x8492b4){if(super(_0x8492b4),_0x8492b4['type']!==$t['ATTRIBUTE']||'class'!==_0x8492b4['name']||_0x8492b4['strings']?.['length']>0x2)throw Error('`classMap()`\x20can\x20only\x20be\x20used\x20in\x20the\x20`class`\x20attribute\x20and\x20must\x20be\x20the\x20only\x20part\x20in\x20the\x20attribute.');}['render'](_0x478a73){return'\x20'+Object['keys'](_0x478a73)['filter'](_0x402359=>_0x478a73[_0x402359])['join']('\x20')+'\x20';}['update'](_0x40d0a1,[_0x417a75]){if(void 0x0===this['st']){this['st']=new Set(),void 0x0!==_0x40d0a1['strings']&&(this['nt']=new Set(_0x40d0a1['strings']['join']('\x20')['split'](/\s/)['filter'](_0xf72620=>''!==_0xf72620)));for(let _0x5a7f0a in _0x417a75)_0x417a75[_0x5a7f0a]&&!this['nt']?.['has'](_0x5a7f0a)&&this['st']['add'](_0x5a7f0a);return this['render'](_0x417a75);}let t=_0x40d0a1['element']['classList'];for(let _0x806d4e of this['st'])_0x806d4e in _0x417a75||(t['remove'](_0x806d4e),this['st']['delete'](_0x806d4e));for(let _0x11081c in _0x417a75){let _0x3715bc=!!_0x417a75[_0x11081c];_0x3715bc===this['st']['has'](_0x11081c)||this['nt']?.['has'](_0x11081c)||(_0x3715bc?(t['add'](_0x11081c),this['st']['add'](_0x11081c)):(t['remove'](_0x11081c),this['st']['delete'](_0x11081c)));}return it;}}),q=_0x5d5dec=>_0x5d5dec??U,xt=class extends C{constructor(){super(...arguments),this['text']='',this['icon']='',this['reverse']=!0x1,this['theme']='default',this['ariaRole']=void 0x0,this['ariaControls']='',this['titleProp']='',this['active']=!0x1;}['firstUpdated'](t){super['firstUpdated'](t),this['_a'](),this['Ba']();}['updated'](t){super['updated'](t),t['has']('reverse')&&this['_a'](),t['has']('theme')&&this['Ba']();}['_a'](){this['style']['flexDirection']=this['reverse']?'row-reverse':'';}['Ba'](){this['theme']&&'custom'!==this['theme']&&(this['className']='uc-'+this['theme']);}get['td'](){let t=this['Jo'];return{'uc-icon':!0x0,'uc-icon_left':!this['reverse'],'uc-icon_right':this['reverse'],'uc-icon_hidden':t,'uc-icon_single':this['rd']};}get['Jo'](){return!this['icon'];}get['rd'](){return!this['text']&&!this['Jo'];}['render'](){return v`<button type="button" role=${q(this['ariaRole']||void 0x0)} aria-controls=${q(this['ariaControls']||void 0x0)} aria-label=${q(this['l10n'](this['titleProp']))} title=${q(this['l10n'](this['titleProp']))} ><uc-icon class=${Pt(this['td'])} name=${q(this['icon']||void 0x0)} ?hidden=${this['Jo']} ></uc-icon><div class="uc-text">${this['text']}</div></button>`;}};function Ja(_0x5400c4,_0x1ea772){let t={};for(let _0x48c816 of _0x1ea772){let _0x1eb026=_0x5400c4[_0x48c816];(Object['hasOwn'](_0x5400c4,_0x48c816)||void 0x0!==_0x1eb026)&&(t[_0x48c816]=_0x1eb026);}return t;}function ti(_0x498df6,_0x4a51e6,t){let _0x3c25cb=window['devicePixelRatio'],_0x436592=Math['min'](Math['ceil'](_0x4a51e6*_0x3c25cb),0xbb8),_0x54e2b9=_0x3c25cb>=0x2?'lightest':'normal';return W(_0x498df6,rt(nr,te(t),'quality/'+_0x54e2b9,'stretch/off/-/resize/'+_0x436592+'x','@clib/'+Ut+'/'+Rt+'/uc-cloud-image-editor/'));}p([y({'type':String})],xt['prototype'],'text',0x2),p([y({'type':String})],xt['prototype'],'icon',0x2),p([y({'type':Boolean,'reflect':!0x0})],xt['prototype'],'reverse',0x2),p([y({'type':String,'reflect':!0x0})],xt['prototype'],'theme',0x2),p([y({'attribute':'aria-role'})],xt['prototype'],'ariaRole',0x2),p([y({'attribute':'aria-controls'})],xt['prototype'],'ariaControls',0x2),p([y({'attribute':'title-prop'})],xt['prototype'],'titleProp',0x2),p([y({'type':Boolean,'noAccessor':!0x0})],xt['prototype'],'active',0x2);var Pi=class extends C{constructor(){super(...arguments),this['za']='uc-backdrop-mask-'+ft['generateFastUid'](),this['mr']=!0x1,this['fi']=!0x1,this['ja']=I(),this['mi']=!0x1,this['gi']=null,this['qa']=t=>{this['Wa'](),this['vi']&&(t['stopPropagation'](),t['preventDefault'](),this['vi']=!0x1);},this['Za']=t=>{if(!this['vi']||!this['fr']||!this['ts'])return;t['stopPropagation'](),t['preventDefault']();let _0x2e2090=this['Re'];if(!_0x2e2090)return;let {x:_0x5f755a,y:_0x18313e}=_0x2e2090['getBoundingClientRect'](),_0x3016e6=t['x']-_0x5f755a,_0x31a76e=t['y']-_0x18313e,_0x675464=_0x3016e6-this['fr'][0x0],_0x1b53c5=_0x31a76e-this['fr'][0x1],{direction:_0x31af6b}=this['ts'],_0x4478b7=this['pd'](_0x31af6b,[_0x675464,_0x1b53c5]);_0x4478b7&&(this['$']['*cropBox']=_0x4478b7);},this['Ya']=t=>{if(!this['xe'])return;let _0x453015=Object['values'](this['xe'])['find'](_0x58da57=>{if(!_0x58da57||this['os'](_0x58da57['direction']))return!0x1;let _0x1b9f22=_0x58da57['interactionNode']['getBoundingClientRect']();return ha({'x':_0x1b9f22['x'],'y':_0x1b9f22['y'],'width':_0x1b9f22['width'],'height':_0x1b9f22['height']},[t['x'],t['y']]);});this['Ha']=_0x453015,this['Wa']();};}get['Re'](){return this['ja']['value']??null;}get['vi'](){return this['fi'];}set['vi'](t){this['fi']!==t&&(this['fi']=t,this['rs']());}['rs'](){this['pi']&&this['pi']['setAttribute']('class',yt({'uc-guides--hidden':this['mr'],'uc-guides--visible':!this['mr']&&this['fi'],'uc-guides--semi-hidden':!this['mr']&&!this['fi']}));}['os'](t){let _0x3dd178=this['$']['*imageBox'];if(!_0x3dd178)return!0x1;if(''===t&&_0x3dd178['height']<=M&&_0x3dd178['width']<=M)return!0x0;let _0x39223d=_0x3dd178['height']<=M&&(t['includes']('n')||t['includes']('s')),_0x438f37=_0x3dd178['width']<=M&&(t['includes']('e')||t['includes']('w'));return _0x39223d||_0x438f37;}['od'](){let t=this['$']['*cropBox'];if(!t)return;let {x:_0x7efd9b,y:_0x280f39,width:_0x4b40dd,height:_0x2d4ccf}=t,_0x2c7d87=this['Re'];if(!_0x2c7d87)return;let _0x419a0c=vt('mask',{'id':this['za']}),_0x31504c=vt('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x1ca98f=vt('rect',{'x':_0x7efd9b,'y':_0x280f39,'width':_0x4b40dd,'height':_0x2d4ccf,'fill':'black'});_0x419a0c['appendChild'](_0x31504c),_0x419a0c['appendChild'](_0x1ca98f);let _0x216b33=vt('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['za']+')'});_0x2c7d87['appendChild'](_0x216b33),_0x2c7d87['appendChild'](_0x419a0c),this['di']=_0x419a0c,this['es']=_0x1ca98f;}['sd'](){this['di']&&(this['di']['style']['display']='none',window['requestAnimationFrame'](()=>{this['di']&&(this['di']['style']['display']='block');}));}['nd'](){let t=this['$']['*cropBox'];if(!t)return;let {x:_0x1d10f5,y:_0x3b1daf,width:_0x4d5f21,height:_0x1cc4f4}=t;this['es']&&se(this['es'],{'x':_0x1d10f5,'y':_0x3b1daf,'width':_0x4d5f21,'height':_0x1cc4f4});}['ad'](){let t=this['$']['*cropBox'];if(t&&this['pi']&&this['xe']){for(let _0xbcef86 of Object['values'](this['xe'])){if(!_0xbcef86)continue;let {direction:_0x57c7a8,pathNode:_0x4ee93e,interactionNode:_0x315d68,groupNode:_0x5d87f9}=_0xbcef86,_0x3a5aa2=''===_0x57c7a8,_0x1d3bde=0x2===_0x57c7a8['length'],{x:_0x448a50,y:_0x35d335,width:_0x27ec2f,height:_0x41b4cf}=t;if(_0x3a5aa2)se(_0x315d68,{'x':_0x448a50,'y':_0x35d335,'width':_0x27ec2f,'height':_0x41b4cf});else{let _0x121d4e=ne(Math['min'](_0x27ec2f,_0x41b4cf)/0x52/0x2,0x0,0x1),_0xf8fe7b=_0x1d3bde?la(t,_0x57c7a8,_0x121d4e):ca(t,_0x57c7a8,_0x121d4e),_0x392b9e=_0xf8fe7b['center'];if(!_0x392b9e)continue;let _0x4586ec=Math['max'](ss*ne(Math['min'](_0x27ec2f,_0x41b4cf)/ss/0x3,0x0,0x1),aa);se(_0x315d68,{'x':_0x392b9e[0x0]-_0x4586ec,'y':_0x392b9e[0x1]-_0x4586ec,'width':0x2*_0x4586ec,'height':0x2*_0x4586ec}),se(_0x4ee93e,{'d':_0xf8fe7b['d']});}let _0x2900c5=this['os'](_0x57c7a8);_0x5d87f9['setAttribute']('class',yt('uc-thumb',{'uc-thumb--hidden':_0x2900c5,'uc-thumb--visible':!_0x2900c5}));}se(this['pi'],{'x':t['x']-0.5,'y':t['y']-0.5,'width':t['width']+0x1,'height':t['height']+0x1});}}['Ga'](t,_0x291ce6){let _0x532876=vt('g');_0x532876['classList']['add']('uc-thumb'),_0x532876['setAttribute']('with-effects','');let _0x42414b=vt('rect',{'fill':'transparent'}),_0x417d1b=vt('path',{'stroke':'currentColor','fill':'none','stroke-width':0x3});_0x532876['appendChild'](_0x417d1b),_0x532876['appendChild'](_0x42414b),t[_0x291ce6]={'direction':_0x291ce6,'pathNode':_0x417d1b,'interactionNode':_0x42414b,'groupNode':_0x532876},''===_0x291ce6&&(_0x532876['style']['cursor']='move'),_0x42414b['addEventListener']('pointerdown',this['ld']['bind'](this,_0x291ce6));}['cd'](){let t={};for(let _0x4c399a=0x0;_0x4c399a<0x3;_0x4c399a++)for(let _0x2406a0=0x0;_0x2406a0<0x3;_0x2406a0++){let _0x170461=''+['n','','s'][_0x4c399a]+['w','','e'][_0x2406a0];''!==_0x170461&&this['Ga'](t,_0x170461);}return this['Ga'](t,''),t;}['ud'](){let t=vt('svg'),_0x528df7=vt('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':0x1,'stroke-opacity':0.5});t['appendChild'](_0x528df7);for(let _0x4128ed=0x1;_0x4128ed<=0x2;_0x4128ed++){let _0x29c855=vt('line',{'x1':bi*_0x4128ed+'%','y1':'0%','x2':bi*_0x4128ed+'%','y2':'100%','stroke':'currentColor','stroke-width':0x1,'stroke-opacity':0.3});t['appendChild'](_0x29c855);}for(let _0x372254=0x1;_0x372254<=0x2;_0x372254++){let _0x40cc44=vt('line',{'x1':'0%','y1':bi*_0x372254+'%','x2':'100%','y2':bi*_0x372254+'%','stroke':'currentColor','stroke-width':0x1,'stroke-opacity':0.3});t['appendChild'](_0x40cc44);}return t['classList']['add']('uc-guides','uc-guides--semi-hidden'),t;}['dd'](){let t=this['Re'];if(!t)return;let _0x527c08=document['createDocumentFragment'](),_0x384851=this['ud']();_0x527c08['appendChild'](_0x384851);let _0x3e044d=this['cd']();for(let {groupNode:_0x2fdd39}of Object['values'](_0x3e044d))_0x527c08['appendChild'](_0x2fdd39);t['appendChild'](_0x527c08),this['xe']=_0x3e044d,this['pi']=_0x384851,this['rs']();}['ld'](t,_0x5060de){if(!this['xe'])return;let _0x16ed17=this['xe'][t];if(!_0x16ed17||this['os'](t))return;let _0x1143ba=this['$']['*cropBox'],_0x540b38=this['Re'];if(!_0x540b38)return;let {x:_0x4c8bca,y:_0x3f6404}=_0x540b38['getBoundingClientRect'](),_0x101ea3=_0x5060de['x']-_0x4c8bca,_0x5c9a32=_0x5060de['y']-_0x3f6404;this['vi']=!0x0,this['ts']=_0x16ed17,this['fr']=[_0x101ea3,_0x5c9a32],this['Ka']={..._0x1143ba};}['pd'](t,_0x3b3164){let [_0xdb91ee,_0x3f5b08]=_0x3b3164,_0x6bdccb=this['$']['*imageBox'],_0x11e0b7=this['Ka']??this['$']['*cropBox'],_0x1a8125=this['$']['*currentAspectRatio'],_0x34df7c=_0x1a8125?_0x1a8125['width']/_0x1a8125['height']:void 0x0;if(_0x11e0b7=''===t?da({'rect':_0x11e0b7,'delta':[_0xdb91ee,_0x3f5b08],'imageBox':_0x6bdccb}):pa({'rect':_0x11e0b7,'delta':[_0xdb91ee,_0x3f5b08],'direction':t,'aspectRatio':_0x34df7c,'imageBox':_0x6bdccb}),Object['values'](_0x11e0b7)['every'](_0x13d605=>Number['isFinite'](_0x13d605)&&_0x13d605>=0x0))return Ne(ze(_0x11e0b7),_0x6bdccb);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x11e0b7});}['Wa'](){let t=this['Ha'],_0x48ee4c=this['Re'];_0x48ee4c&&(_0x48ee4c['style']['cursor']=t?ua(t['direction']):'initial');}['Xa'](t){if(this['hi'])return void this['hi']['setAttribute']('href',t);let _0x544e75=this['Re'];if(!_0x544e75)return void(this['gi']=t);this['gi']=null;let _0x5c2eb0=document['createDocumentFragment'](),_0xad9167=vt('image',{'href':t});_0xad9167['setAttribute']('class','uc-cloud-mask'),_0x5c2eb0['appendChild'](_0xad9167),_0x544e75['appendChild'](_0x5c2eb0),this['hi']=_0xad9167;}['hd'](){let t=this['$']['*cropBox'];if(!t||!this['hi'])return;let {x:_0x45ef56,y:_0x3ce2ca,width:_0x49168f,height:_0xe9ff64}=t;se(this['hi'],{'x':_0x45ef56,'y':_0x3ce2ca,'height':_0xe9ff64,'width':_0x49168f});}['ss'](){this['mi']&&(this['nd'](),this['ad'](),this['hd']());}['toggleThumbs'](t){if(this['xe'])for(let _0x587988 of Object['values'](this['xe'])){if(!_0x587988)continue;let {groupNode:_0x27edcd}=_0x587988;_0x27edcd['setAttribute']('class',yt('uc-thumb',{'uc-thumb--hidden':!t,'uc-thumb--visible':t}));}}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['sd'](),this['mi']&&window['requestAnimationFrame'](()=>{this['ss']();});}),this['sub']('*cropBox',t=>{t&&(this['mr']=t['height']<=M||t['width']<=M,this['rs'](),this['mi']&&window['requestAnimationFrame'](()=>{this['ss']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',t=>{t&&this['Xa'](t);}),document['addEventListener']('pointermove',this['Za'],!0x0),document['addEventListener']('pointerup',this['qa'],!0x0);}['firstUpdated'](t){super['firstUpdated'](t),this['fd']();}['fd'](){let t=this['Re'];if(t&&!this['mi']){if(this['od'](),this['dd'](),this['mi']=!0x0,t['addEventListener']('pointermove',this['Ya'],!0x0),this['gi']){let _0x40d398=this['gi'];this['gi']=null,this['Xa'](_0x40d398);}this['ss']();}}['disconnectedCallback'](){super['disconnectedCallback'](),this['Re']?.['removeEventListener']('pointermove',this['Ya'],!0x0),document['removeEventListener']('pointermove',this['Za'],!0x0),document['removeEventListener']('pointerup',this['qa'],!0x0);}['render'](){return v`<svg class="uc-svg" xmlns="http://www.w3.org/2000/svg" ${O(this['ja'])}></svg>`;}};function cd(_0x3ac159){return!_0x3ac159||[({dimensions:t,coords:_0x23a875})=>[...t,..._0x23a875]['every'](_0x571de0=>Number['isInteger'](_0x571de0)&&Number['isFinite'](_0x571de0)),({dimensions:t,coords:_0x3f4dbd})=>t['every'](_0x1b2479=>_0x1b2479>0x0)&&_0x3f4dbd['every'](_0x3c9d95=>_0x3c9d95>=0x0)]['every'](t=>t(_0x3ac159));}p([m()],Pi['prototype'],'fi',0x2);var Li=class extends C{constructor(){super(),this['ctxOwner']=!0x0,this['Qe']={'width':0x0,'height':0x0},this['e']=null,this['_']=!0x1,this['se']=null,this['Ja']=I(),this['as']=I(),this['init$']={...this['init$'],'*padding':0x14,'*operations':{'rotate':0x0,'mirror':!0x1,'flip':!0x1},'*imageBox':{'x':0x0,'y':0x0,'width':0x0,'height':0x0},'*cropBox':{'x':0x0,'y':0x0,'width':0x0,'height':0x0}},this['Qa']=$(this['tl']['bind'](this),0x12c),this['ns']=Ye(()=>{!this['isConnected']||!this['_']||(this['ls'](),this['il'](),this['rl'](),this['cs'](),this['us']());},0x64);}['firstUpdated'](t){super['firstUpdated'](t),this['ls']();}['il'](){let _0x1abff3=Ja(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x433252={...this['$']['*operations'],..._0x1abff3};this['$']['*operations']=_0x433252;}['ls'](){let t=this['Ja']['value'];if(!t)return;let _0xd30041=t['getContext']('2d'),_0x18b1b6=this['offsetWidth'],_0x16576e=this['offsetHeight'],_0x532ec1=window['devicePixelRatio'];t['style']['width']=_0x18b1b6+'px',t['style']['height']=_0x16576e+'px',t['width']=_0x18b1b6*_0x532ec1,t['height']=_0x16576e*_0x532ec1,_0xd30041?.['scale'](_0x532ec1,_0x532ec1),this['fe']=t,this['e']=_0xd30041;}['rl'](){if(!this['_']||!this['se'])return;let _0x382f30,t=this['se'],_0x6cc0a6=this['$']['*padding'],_0x339863=this['$']['*operations'],{rotate:_0x50163e}=_0x339863,_0x4ef451=this['offsetWidth'],_0x3d2e8d=this['offsetHeight'],_0x56f80e=_e({'width':t['naturalWidth'],'height':t['naturalHeight']},_0x50163e);if(_0x56f80e['width']>_0x4ef451-0x2*_0x6cc0a6||_0x56f80e['height']>_0x3d2e8d-0x2*_0x6cc0a6){let _0x5a975c=_0x56f80e['width']/_0x56f80e['height'];if(_0x5a975c>_0x4ef451/_0x3d2e8d){let _0x2c9360=_0x4ef451-0x2*_0x6cc0a6,_0x244411=_0x2c9360/_0x5a975c;_0x382f30={'x':0x0+_0x6cc0a6,'y':_0x6cc0a6+(_0x3d2e8d-0x2*_0x6cc0a6)/0x2-_0x244411/0x2,'width':_0x2c9360,'height':_0x244411};}else{let _0x11517d=_0x3d2e8d-0x2*_0x6cc0a6,_0x20e11f=_0x11517d*_0x5a975c;_0x382f30={'x':_0x6cc0a6+(_0x4ef451-0x2*_0x6cc0a6)/0x2-_0x20e11f/0x2,'y':0x0+_0x6cc0a6,'width':_0x20e11f,'height':_0x11517d};}}else{let {width:_0x54ca51,height:_0x890fce}=_0x56f80e;_0x382f30={'x':_0x6cc0a6+(_0x4ef451-0x2*_0x6cc0a6)/0x2-_0x54ca51/0x2,'y':_0x6cc0a6+(_0x3d2e8d-0x2*_0x6cc0a6)/0x2-_0x890fce/0x2,'width':_0x54ca51,'height':_0x890fce};}this['$']['*imageBox']=ze(_0x382f30);}['cs'](){let t=this['$']['*cropBox'],_0x485e76=this['$']['*imageBox'],_0x198a5c=this['$']['*operations'],{rotate:_0x25885a}=_0x198a5c,_0x59e14a=this['$']['*editorTransformations']['crop'],{width:_0x9e102c,x:_0x360f0b,y:_0x5104fb}=_0x485e76;if(_0x59e14a){let {dimensions:[_0x1ef2b7,_0x5b6216],coords:[_0x3d1b18,_0x1c5421]}=_0x59e14a,{width:_0x2a94ff}=_e(this['Qe'],_0x25885a),_0x3ab0d8=_0x9e102c/_0x2a94ff;t=Ne(ze({'x':_0x360f0b+_0x3d1b18*_0x3ab0d8,'y':_0x5104fb+_0x1c5421*_0x3ab0d8,'width':_0x1ef2b7*_0x3ab0d8,'height':_0x5b6216*_0x3ab0d8}),_0x485e76);}let _0x27bb56=this['$']['*currentAspectRatio'],_0x33b578=_0x27bb56?_0x27bb56['width']/_0x27bb56['height']:void 0x0;if(!fa(t,_0x485e76)||_0x33b578&&!ma(t,_0x33b578)){let _0xd26d75=_0x485e76['width']/_0x485e76['height'],_0x4c3caa=_0x485e76['width'],_0x4c0e83=_0x485e76['height'];_0x33b578&&(_0xd26d75>_0x33b578?_0x4c3caa=Math['min'](_0x485e76['height']*_0x33b578,_0x485e76['width']):_0x4c0e83=Math['min'](_0x485e76['width']/_0x33b578,_0x485e76['height'])),t={'x':_0x485e76['x']+_0x485e76['width']/0x2-_0x4c3caa/0x2,'y':_0x485e76['y']+_0x485e76['height']/0x2-_0x4c0e83/0x2,'width':_0x4c3caa,'height':_0x4c0e83};}this['$']['*cropBox']=Ne(ze(t),_0x485e76);}['md'](){let t=this['e'];if(!t)return;let _0x478d2c=this['se'];if(!_0x478d2c)return;let _0x4d544c=this['$']['*imageBox'],_0xbee53f=this['$']['*operations'],{mirror:_0x48bdfd,flip:_0x3551b5,rotate:_0x1958af}=_0xbee53f,_0x2090c1=_e({'width':_0x4d544c['width'],'height':_0x4d544c['height']},_0x1958af);t['save'](),t['translate'](_0x4d544c['x']+_0x4d544c['width']/0x2,_0x4d544c['y']+_0x4d544c['height']/0x2),t['rotate'](_0x1958af*Math['PI']*-0x1/0xb4),t['scale'](_0x48bdfd?-0x1:0x1,_0x3551b5?-0x1:0x1),t['drawImage'](_0x478d2c,-_0x2090c1['width']/0x2,-_0x2090c1['height']/0x2,_0x2090c1['width'],_0x2090c1['height']),t['restore']();}['us'](){if(!(this['_']&&this['se']&&this['fe']&&this['e']))return;let t=this['fe'];this['e']['clearRect'](0x0,0x0,t['width'],t['height']),this['md']();}['gd']({fromViewer:t}){this['se']&&(this['as']['value']?.['toggleThumbs'](!0x0),this['vd'](),setTimeout(()=>{this['className']=yt({'uc-active_from_viewer':t,'uc-active_from_editor':!t,'uc-inactive_to_editor':!0x1});}));}['ol'](){let t=this['$']['*cropBox'],_0x4eb3cc=this['$']['*imageBox'],_0x36f3ec=this['$']['*operations'],{rotate:_0x3a0638}=_0x36f3ec,{width:_0x3486a2,height:_0x3c6914}=_0x4eb3cc,{width:_0x5460fa,height:_0x3d567c}=_e(this['Qe'],_0x3a0638),{width:_0x16f00c,height:_0x280299}=t,_0x51f535=_0x3486a2/_0x5460fa,_0x281659=_0x3c6914/_0x3d567c;return[ne(Math['round'](_0x16f00c/_0x51f535),0x1,_0x5460fa),ne(Math['round'](_0x280299/_0x281659),0x1,_0x3d567c)];}['yd'](){let t=this['$']['*cropBox'],_0x1be0e6=this['$']['*imageBox'],_0x33130b=this['$']['*operations'],{rotate:_0x10eec0}=_0x33130b,{width:_0x475888,height:_0x700eb9,x:_0x107c45,y:_0x44a8cb}=_0x1be0e6,{width:_0x2d3a52,height:_0x408fd0}=_e(this['Qe'],_0x10eec0),{x:_0x39f476,y:_0x2fd544}=t,_0x1d056a=_0x475888/_0x2d3a52,_0x5c1d7f=_0x700eb9/_0x408fd0,_0x56be0e=this['ol'](),_0x38a159={'dimensions':_0x56be0e,'coords':[ne(Math['round']((_0x39f476-_0x107c45)/_0x1d056a),0x0,_0x2d3a52-_0x56be0e[0x0]),ne(Math['round']((_0x2fd544-_0x44a8cb)/_0x5c1d7f),0x0,_0x408fd0-_0x56be0e[0x1])]};if(cd(_0x38a159))return _0x56be0e[0x0]!==_0x2d3a52||_0x56be0e[0x1]!==_0x408fd0?_0x38a159:void 0x0;console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x38a159});}['tl'](){if(!this['isConnected']||!this['Qe'])return;let t=this['$']['*operations'],{rotate:_0x322008,mirror:_0x2cf3a2,flip:_0x156ad0}=t,_0x53a9d3=this['yd'](),_0x3f96c5={...this['$']['*editorTransformations'],'crop':_0x53a9d3,'rotate':_0x322008,'mirror':_0x2cf3a2,'flip':_0x156ad0};this['$']['*editorTransformations']=_0x3f96c5;}['setValue'](t,_0x6a368a){this['$']['*operations']={...this['$']['*operations'],[t]:_0x6a368a},this['_']&&(this['rl'](),this['cs'](),this['us']());}['getValue'](t){return this['$']['*operations'][t];}async['activate'](t,{fromViewer:_0x4825f3}={}){if(!this['_']){this['_']=!0x0,await this['updateComplete'],this['ls'](),this['Qe']=t,this['removeEventListener']('transitionend',this['sl']);try{let _0x44fc2d=this['$']['*originalUrl'],_0x1748cf=this['$']['*editorTransformations'];this['se']=await this['bd'](_0x44fc2d,_0x1748cf),this['il'](),this['ns'](),this['gd']({'fromViewer':_0x4825f3});}catch(_0xfc573c){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0xfc573c}),this['telemetryManager']['sendEventError'](_0xfc573c,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['s']=new ResizeObserver(_0x134541=>{let [_0x1ca00b]=_0x134541;_0x1ca00b&&_0x1ca00b['contentRect']['width']>0x0&&_0x1ca00b['contentRect']['height']>0x0&&this['_']&&this['se']&&this['ns']();}),this['s']['observe'](this);}}['deactivate']({reset:t=!0x1}={}){this['_']&&(!t&&this['tl'](),this['_']=!0x1,this['wd'](),this['className']=yt({'uc-active_from_viewer':!0x1,'uc-active_from_editor':!0x1,'uc-inactive_to_editor':!0x0}),this['as']['value']?.['toggleThumbs'](!0x1),this['addEventListener']('transitionend',this['sl'],{'once':!0x0}),this['s']?.['disconnect']());}['wd'](){let t=this['ol'](),_0x365fd2=this['$']['*cropBox'],_0x222751=Math['min'](this['offsetWidth'],t[0x0])/_0x365fd2['width'],_0x2d2e2e=Math['min'](this['offsetHeight'],t[0x1])/_0x365fd2['height'],_0x1539a0=Math['min'](_0x222751,_0x2d2e2e),_0x49f9bf=_0x365fd2['x']+_0x365fd2['width']/0x2,_0x47b0ca=_0x365fd2['y']+_0x365fd2['height']/0x2;this['style']['transform']='scale('+_0x1539a0+')\x20translate('+(this['offsetWidth']/0x2-_0x49f9bf)/_0x1539a0+'px,\x20'+(this['offsetHeight']/0x2-_0x47b0ca)/_0x1539a0+'px)',this['style']['transformOrigin']=_0x49f9bf+'px\x20'+_0x47b0ca+'px';}['vd'](){let t=this['$']['*cropBox'],_0x4d4062=t['x']+t['width']/0x2,_0x4da705=t['y']+t['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x4d4062+'px\x20'+_0x4da705+'px';}['sl'](){this['_']||(this['se']=null);}async['bd'](t,_0x3b1d28){let _0x3e5043=this['offsetWidth'];_0x3b1d28={..._0x3b1d28,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};let _0x1ac508=await this['proxyUrl'](ti(t,_0x3e5043,_0x3b1d28)),{promise:_0x3c0a99,cancel:_0x94d7f6,image:_0x2265f1}=Ce(_0x1ac508),_0x26e1bf=this['$t'](_0x1ac508);return _0x2265f1['addEventListener']('load',_0x26e1bf,{'once':!0x0}),_0x2265f1['addEventListener']('error',_0x26e1bf,{'once':!0x0}),this['b']?.(),this['b']=_0x94d7f6,_0x3c0a99['then'](()=>_0x2265f1)['catch'](_0x5215e2=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x5215e2}),this['$']['*networkProblems']=!0x0,_0x2265f1));}['$t'](t){let _0xd04533='crop',_0x5732ce=this['$']['*loadingOperations'],_0x5c83e0=_0x5732ce['get'](_0xd04533);return _0x5c83e0||(_0x5c83e0=new Map(),_0x5732ce['set'](_0xd04533,_0x5c83e0)),_0x5c83e0['get'](t)||(_0x5c83e0['set'](t,!0x0),this['$']['*loadingOperations']=_0x5732ce),()=>{let _0x41216e=_0x5732ce['get'](_0xd04533);_0x41216e?.['has'](t)&&(_0x41216e['delete'](t),this['$']['*loadingOperations']=_0x5732ce);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['us']();}),this['sub']('*cropBox',()=>{this['se']&&this['Qa']();}),this['sub']('*currentAspectRatio',()=>{this['cs']();}),setTimeout(()=>{this['sub']('*networkProblems',t=>{t||this['_']&&this['Qe']&&this['activate'](this['Qe'],{'fromViewer':!0x1});});},0x0);}['disconnectedCallback'](){super['disconnectedCallback'](),this['s']?.['disconnect'](),this['se']&&(this['se']=null);}['render'](){return v`<canvas class="uc-canvas" ${O(this['Ja'])}></canvas><uc-crop-frame ${O(this['as'])}></uc-crop-frame>`;}};function Os(_0x7be5f0,_0x17a36e,t){let _0x210a91=t-0x1,_0x227d32=new Array(t);for(let _0x24f795=_0x210a91;_0x24f795>=0x0;_0x24f795-=0x1)_0x227d32[_0x24f795]=Math['ceil']((_0x24f795*_0x17a36e+(_0x210a91-_0x24f795)*_0x7be5f0)/_0x210a91);return _0x227d32;}function ud(_0x5e93f7){return'string'==typeof _0x5e93f7&&_0x5e93f7 in kt;}function dd(_0x2512e3){let _0x2d1a80=[];for(let t=0x0;t<_0x2512e3['length']-0x1;t+=0x1){let _0x533d03=_0x2512e3[t],_0x5cbaac=_0x2512e3[t+0x1];'number'==typeof _0x533d03&&'number'==typeof _0x5cbaac&&_0x2d1a80['push']([_0x533d03,_0x5cbaac]);}return _0x2d1a80;}function pd(_0x3a4c7c,_0x47b90e,t){let _0x4ea4b0=dd(_0x3a4c7c)['find'](([_0x3a3dbc,_0x328f1b])=>_0x3a3dbc<=_0x47b90e&&_0x47b90e<=_0x328f1b);if(!_0x4ea4b0)return _0x3a4c7c['map'](()=>0x0);let [_0x21c068,_0x5ad112]=_0x4ea4b0;return _0x3a4c7c['map'](_0x7306c5=>{let _0xe78d54=Math['abs'](_0x21c068-_0x5ad112)||0x1,_0x3eb4fe=Math['abs'](_0x47b90e-_0x21c068)/_0xe78d54;return _0x21c068===_0x7306c5?_0x47b90e>t?0x1:0x1-_0x3eb4fe:_0x5ad112===_0x7306c5?_0x47b90e>=t?_0x3eb4fe:0x1:0x0;});}function hd(_0x1f7bf7,_0x16deb7){return _0x1f7bf7['map']((t,_0x52b371)=>t<_0x16deb7?_0x1f7bf7['length']-_0x52b371:_0x52b371);}function tl(_0x2a9b77,_0x2e1004){let t=kt[_0x2a9b77]['keypointsNumber'],{range:_0x38c2c7,zero:_0x32fd0d}=kt[_0x2a9b77];return[...new Set([...Os(_0x38c2c7[0x0],_0x32fd0d,t+0x1),...Os(_0x32fd0d,_0x38c2c7[0x1],t+0x1),_0x32fd0d,_0x2e1004])]['sort']((_0x632f9b,_0x1262e3)=>_0x632f9b-_0x1262e3);}p([m()],Li['prototype'],'se',0x2);var Qr=class extends C{constructor(){super(),this['_']=!0x1,this['ds']=!0x0,this['n']='initial',this['nl']={},this['Ue']=[],this['al']=0x0,this['cl']=I(),this['gr']=I(),this['classList']['add']('uc-inactive_to_cropper'),this['ll']=$(async(t,_0x48e75a,_0x17c792)=>{let _0x17ac21=()=>!this['ul'](t,_0x48e75a)||this['Pt']!==_0x17c792||!!this['Ue']['find'](_0x382024=>_0x382024['value']===_0x17c792);if(_0x17ac21())return;let _0x2d89b7=await this['dl'](t,_0x17c792),_0x3528c6=new Image();_0x3528c6['src']=_0x2d89b7['src'];let _0x27484e=this['$t'](_0x2d89b7['src']);_0x3528c6['addEventListener']('load',_0x27484e,{'once':!0x0}),_0x3528c6['addEventListener']('error',_0x27484e,{'once':!0x0}),_0x2d89b7['image']=_0x3528c6,_0x3528c6['classList']['add']('uc-fader-image'),_0x3528c6['addEventListener']('load',()=>{if(_0x17ac21())return;let _0x5dd182=this['Ue'],_0x5cbb6b=_0x5dd182['findIndex'](_0x54ecae=>_0x54ecae['value']>_0x17c792);-0x1===_0x5cbb6b&&(_0x5cbb6b=_0x5dd182['length']);let _0x392938=_0x5dd182[_0x5cbb6b]?.['image'],_0x20261f=this['gr']['value'];!_0x20261f||_0x392938&&!_0x20261f['contains'](_0x392938)||(_0x5dd182['splice'](_0x5cbb6b,0x0,_0x2d89b7),_0x392938?_0x20261f['insertBefore'](_0x3528c6,_0x392938):_0x20261f['appendChild'](_0x3528c6),this['fs'](t,_0x17c792));},{'once':!0x0}),_0x3528c6['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});},0x258);}['$t'](t){let _0x120e3b=this['n'],_0x552ccf=this['$']['*loadingOperations'];_0x552ccf['has'](_0x120e3b)||_0x552ccf['set'](_0x120e3b,new Map());let _0x540bbd=_0x552ccf['get'](_0x120e3b);return _0x540bbd&&!_0x540bbd['get'](t)&&(_0x540bbd['set'](t,!0x0),this['$']['*loadingOperations']=_0x552ccf),()=>{let _0x46ae1c=_0x552ccf['get'](_0x120e3b);_0x46ae1c?.['has'](t)&&(_0x46ae1c['delete'](t),this['$']['*loadingOperations']=_0x552ccf);};}['pl'](){window['cancelAnimationFrame'](this['al']),this['al']=window['requestAnimationFrame'](()=>{for(let t of this['Ue']){let {image:_0x148b7d}=t;_0x148b7d&&(_0x148b7d['style']['opacity']=t['opacity']['toString'](),_0x148b7d['style']['zIndex']=t['zIndex']['toString']());}});}['Je']({url:t=this['Dt'],filter:_0x1e453c=this['m']??void 0x0,operation:_0x4f4dbc,value:_0x375982}={}){if(!t)throw new Error('URL\x20is\x20not\x20defined');let _0x15b594={...this['nl']};_0x4f4dbc&&('filter'===_0x4f4dbc?_0x1e453c&&'number'==typeof _0x375982&&(_0x15b594['filter']={'name':_0x1e453c,'amount':_0x375982}):'number'==typeof _0x375982&&(_0x15b594[_0x4f4dbc]=_0x375982));let _0x6457f=this['offsetWidth'];return this['proxyUrl'](ti(t,_0x6457f,_0x15b594));}async['dl'](t,_0x1620ee){return{'src':await this['Je']({'operation':t,'value':_0x1620ee}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0x1620ee};}['ul'](t,_0x1b85b2){return this['n']===t&&this['m']===_0x1b85b2;}['set'](t){let _0x163ef9='string'==typeof t?parseInt(t,0xa):t;!ud(this['n'])||!Number['isFinite'](_0x163ef9)||(this['fs'](this['n'],_0x163ef9),this['ll'](this['n'],this['m'],_0x163ef9));}['fs'](t,_0x1a401e){this['n']=t,this['Pt']=_0x1a401e;let {zero:_0x55909e}=kt[t],_0xddcd9e=this['Ue']['map'](_0x563bf3=>_0x563bf3['value']),_0x550964=pd(_0xddcd9e,_0x1a401e,_0x55909e),_0x373245=hd(_0xddcd9e,_0x55909e);this['Ue']['forEach']((_0x19caff,_0x2b148b)=>{let _0x2bff30=_0x550964[_0x2b148b],_0x54d97b=_0x373245[_0x2b148b];'number'==typeof _0x2bff30&&(_0x19caff['opacity']=_0x2bff30),'number'==typeof _0x54d97b&&(_0x19caff['zIndex']=_0x54d97b);}),this['pl']();}['hl'](){let t=new Image();return t['classList']['add']('uc-fader-image','uc-fader-image--preview'),t['style']['opacity']='0',t;}async['Td'](){this['a']=this['a']||this['hl']();let t=this['a'];t&&this['fl'](t);let _0x2f9939=this['Ue']['map'](_0x40e7da=>_0x40e7da['src']),{images:_0x3a7854,promise:_0x3b938a,cancel:_0x1380dd}=Si(_0x2f9939);_0x3a7854['forEach'](_0x33913a=>{let _0x3df2c7=this['$t'](_0x33913a['src']);_0x33913a['addEventListener']('load',_0x3df2c7),_0x33913a['addEventListener']('error',_0x3df2c7);}),this['ps']=()=>{_0x1380dd(),this['ps']=void 0x0;};let _0x560571=this['n'],_0x42fe02=this['m'];if(await _0x3b938a,this['_']&&this['ul'](_0x560571,_0x42fe02)){let _0x5163a3=this['gr']['value'];if(!_0x5163a3)return;_0x5163a3['replaceChildren'](),this['Ue']['forEach']((_0x40ad4b,_0x2674bf)=>{let _0x474898=_0x3a7854[_0x2674bf];_0x474898&&(_0x474898['classList']['add']('uc-fader-image'),_0x40ad4b['image']=_0x474898,_0x5163a3['appendChild'](_0x474898));}),this['pl']();}}async['setTransformations'](t){if(this['nl']=t,this['a']){let _0x543c85=await this['Je'](),_0x5d5b83=this['$t'](_0x543c85);this['a']['src']=_0x543c85,this['a']['addEventListener']('load',_0x5d5b83,{'once':!0x0}),this['a']['addEventListener']('error',_0x5d5b83,{'once':!0x0}),this['a']['style']['opacity']='1',this['a']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:t,filter:_0x41c6f0,operation:_0x468b4e,value:_0x52dcda}){if(!_0x468b4e||'number'!=typeof _0x52dcda)return;this['hs']?.();let _0x32dd55=tl(_0x468b4e,_0x52dcda),_0x409292=await Promise['all'](_0x32dd55['map'](_0x3d5b82=>this['Je']({'url':t,'filter':_0x41c6f0,'operation':_0x468b4e,'value':_0x3d5b82}))),{cancel:_0x12cfad}=Si(_0x409292);this['hs']=_0x12cfad;}['Ed'](t){let _0x4e3516=this['a']||this['hl']();if(this['fl'](_0x4e3516),this['a']=_0x4e3516,_0x4e3516['src']===t)return _0x4e3516['style']['opacity']='1',_0x4e3516['style']['transform']='scale(1)',void(this['className']=yt({'uc-active_from_viewer':this['yi'],'uc-active_from_cropper':!this['yi'],'uc-inactive_to_cropper':!0x1}));_0x4e3516['style']['opacity']='0';let _0x22e67b=this['$t'](t);_0x4e3516['addEventListener']('error',_0x22e67b,{'once':!0x0}),_0x4e3516['src']=t,_0x4e3516['addEventListener']('load',()=>{_0x22e67b(),_0x4e3516&&(_0x4e3516['style']['opacity']='1',_0x4e3516['style']['transform']='scale(1)',this['className']=yt({'uc-active_from_viewer':this['yi'],'uc-active_from_cropper':!this['yi'],'uc-inactive_to_cropper':!0x1}));},{'once':!0x0}),_0x4e3516['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:t,operation:_0x104b10,value:_0x4b6d1e,filter:_0x8ef5cb,fromViewer:_0x26bc58}){if(this['_']=!0x0,this['ds']=!0x1,await this['updateComplete'],this['Dt']=t,this['n']=_0x104b10??'initial',this['Pt']=_0x4b6d1e,this['m']=_0x8ef5cb,this['yi']=_0x26bc58,'number'!=typeof _0x4b6d1e&&!_0x8ef5cb){let _0x20a42f=await this['Je']({'operation':_0x104b10,'value':_0x4b6d1e});return this['Ed'](_0x20a42f),void this['ms']();}!_0x104b10||'number'!=typeof _0x4b6d1e||(this['Ue']=await Promise['all'](tl(_0x104b10,_0x4b6d1e)['map'](_0x18f474=>this['dl'](_0x104b10,_0x18f474))),this['fs'](_0x104b10,_0x4b6d1e),this['Td']());}['deactivate']({hide:t=!0x0}={}){this['_']=!0x1,this['ps']?.(),this['hs']?.(),t&&!this['ds']?(this['ds']=!0x0,this['a']&&(this['a']['style']['transform']='scale(1)'),this['className']=yt({'uc-active_from_viewer':!0x1,'uc-active_from_cropper':!0x1,'uc-inactive_to_cropper':!0x0}),this['addEventListener']('transitionend',()=>{this['ms']();},{'once':!0x0})):this['ms']();}['fl'](t){let _0x484aa0=this['cl']['value'];_0x484aa0&&(_0x484aa0['contains'](t)||_0x484aa0['appendChild'](t));}['ms'](){this['gr']['value']?.['replaceChildren']();}['render'](){return v`<div class="uc-fader-preview-host" ${O(this['cl'])}></div><div class="uc-fader-layers-host" ${O(this['gr'])}></div>`;}},el='important',fd='\x20!'+el,Ae=gt(class extends Et{constructor(_0x3b4479){if(super(_0x3b4479),_0x3b4479['type']!==$t['ATTRIBUTE']||'style'!==_0x3b4479['name']||_0x3b4479['strings']?.['length']>0x2)throw Error('The\x20`styleMap`\x20directive\x20must\x20be\x20used\x20in\x20the\x20`style`\x20attribute\x20and\x20must\x20be\x20the\x20only\x20part\x20in\x20the\x20attribute.');}['render'](_0x3996f7){return Object['keys'](_0x3996f7)['reduce']((_0x2f78f9,t)=>{let _0x3dd9df=_0x3996f7[t];return null==_0x3dd9df?_0x2f78f9:_0x2f78f9+((t=t['includes']('-')?t:t['replace'](/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,'-$&')['toLowerCase']())+':'+_0x3dd9df+';');},'');}['update'](_0x418c28,[_0x3d2cd6]){let {style:t}=_0x418c28['element'];if(void 0x0===this['ft'])return this['ft']=new Set(Object['keys'](_0x3d2cd6)),this['render'](_0x3d2cd6);for(let _0x52c0a7 of this['ft'])null==_0x3d2cd6[_0x52c0a7]&&(this['ft']['delete'](_0x52c0a7),_0x52c0a7['includes']('-')?t['removeProperty'](_0x52c0a7):t[_0x52c0a7]=null);for(let _0x13c6b7 in _0x3d2cd6){let _0x4eebc1=_0x3d2cd6[_0x13c6b7];if(null!=_0x4eebc1){this['ft']['add'](_0x13c6b7);let _0x1e54ff='string'==typeof _0x4eebc1&&_0x4eebc1['endsWith'](fd);_0x13c6b7['includes']('-')||_0x1e54ff?t['setProperty'](_0x13c6b7,_0x1e54ff?_0x4eebc1['slice'](0x0,-0xb):_0x4eebc1,_0x1e54ff?el:''):t[_0x13c6b7]=_0x4eebc1;}}return it;}}),Vt=class extends C{constructor(){super(),this['gs']=0x0,this['vr']=I(),this['gl']=I(),this['vl']=I(),this['disabled']=!0x1,this['min']=0x0,this['max']=0x64,this['defaultValue']=0x0,this['zero']=0x0,this['$e']=0x0,this['Cd']=t=>{t['stopPropagation']();let _0x172b52=this['yl'](t);null!==_0x172b52&&(this['vs'](_0x172b52),this['xd']('slider-input',_0x172b52));},this['Sd']=t=>{t['stopPropagation']();let _0x1dd1db=this['yl'](t);null!==_0x1dd1db&&this['vs'](_0x1dd1db);},this['bl']=()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');},this['wl']=()=>{this['style']['setProperty']('--color-effect','var(--idle-color-rgb)');},this['setAttribute']('with-effects','');}['xd'](t,_0xa99f59){this['dispatchEvent'](new CustomEvent(t,{'detail':{'value':_0xa99f59},'bubbles':!0x0,'composed':!0x0}));}['firstUpdated'](t){super['firstUpdated'](t),this['gs']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa)||0x0,this['Tl'](this['$e']),this['ys'](),this['s']=new ResizeObserver(()=>{this['ys'](),this['yr'](this['$e']);}),this['s']['observe'](this);let _0x295e41=this['vr']['value'];_0x295e41?.['addEventListener']('focus',this['bl']),_0x295e41?.['addEventListener']('blur',this['wl']),window['setTimeout'](()=>{this['yr'](this['$e']);},0x0);}['willUpdate'](t){super['willUpdate'](t),t['has']('defaultValue')&&this['defaultValue']!==this['$e']&&this['vs'](this['defaultValue']),(t['has']('min')||t['has']('max'))&&this['hasUpdated']&&(this['ys'](),this['yr'](this['$e'])),t['has']('zero')&&this['hasUpdated']&&this['El'](this['$e']);}['yr'](t){this['El'](t);let _0x459435=this['max']-this['min'];if(0x0===_0x459435)return;let {width:_0x543746}=this['getBoundingClientRect'](),_0x3bae2e=0x64/_0x459435*(t-this['min'])*(_0x543746-this['gs'])/0x64;window['requestAnimationFrame'](()=>{let _0x158e28=this['gl']['value'];_0x158e28&&(_0x158e28['style']['transform']='translateX('+_0x3bae2e+'px)');});}['El'](t){if(!this['bi'])return;let _0xf08bd9=this['max']-this['min'];if(0x0===_0xf08bd9)return;this['bi']['style']['opacity']=t===this['zero']?'0':'1';let {width:_0x43e847}=this['getBoundingClientRect'](),_0x5105ba=0x64/_0xf08bd9*(this['zero']-this['min'])*(_0x43e847-this['gs'])/0x64;window['requestAnimationFrame'](()=>{this['bi']&&(this['bi']['style']['transform']='translateX('+_0x5105ba+'px)');});}['ys'](){let _0x906d76=this['vl']['value'];if(!_0x906d76)return;let {width:_0x54a1e1}=_0x906d76['getBoundingClientRect'](),_0x4aa43f=Math['ceil'](_0x54a1e1/0x2),_0x4cf708=Math['ceil'](_0x4aa43f/0xf)-0x2;if(this['ml']===_0x4cf708)return;let _0x1d6a57=document['createDocumentFragment'](),_0x3ec38b=document['createElement']('div'),_0x360185=document['createElement']('div');_0x3ec38b['className']='uc-minor-step',_0x360185['className']='uc-border-step',_0x1d6a57['appendChild'](_0x360185);for(let _0x3c1c53=0x0;_0x3c1c53<_0x4cf708;_0x3c1c53+=0x1)_0x1d6a57['appendChild'](_0x3ec38b['cloneNode']());_0x1d6a57['appendChild'](_0x360185['cloneNode']());for(let _0x2ef241=0x0;_0x2ef241<_0x4cf708;_0x2ef241+=0x1)_0x1d6a57['appendChild'](_0x3ec38b['cloneNode']());_0x1d6a57['appendChild'](_0x360185['cloneNode']());let _0x381fa9=document['createElement']('div');_0x381fa9['className']='uc-zero-dot',_0x1d6a57['appendChild'](_0x381fa9),this['bi']=_0x381fa9,_0x906d76['innerHTML']='',_0x906d76['appendChild'](_0x1d6a57),this['ml']=_0x4cf708;}['disconnectedCallback'](){super['disconnectedCallback']();let t=this['vr']['value'];t?.['removeEventListener']('focus',this['bl']),t?.['removeEventListener']('blur',this['wl']),this['s']?.['disconnect'](),this['s']=void 0x0;}['vs'](t){Number['isFinite'](t)&&(this['$e']=t,this['hasUpdated']&&(this['Tl'](t),this['yr'](t)));}['Tl'](t){let _0x492a67=this['vr']['value'];_0x492a67&&(_0x492a67['value']=String(t));}['yl'](t){let _0x345d2f=t['currentTarget'];if(!_0x345d2f)return null;let _0x59a2a4=Number['parseInt'](_0x345d2f['value'],0xa);return Number['isFinite'](_0x59a2a4)?_0x59a2a4:null;}['render'](){return v`<div class="uc-steps" ${O(this['vl'])}></div><div class="uc-thumb" ${O(this['gl'])}></div><input class="uc-input" type="range" ${O(this['vr'])} .min=${String(this['min'])} .max=${String(this['max'])} .value=${String(this['$e'])} ?disabled=${this['disabled']} @input=${this['Cd']} @change=${this['Sd']} />`;}};p([y({'type':Boolean,'reflect':!0x0})],Vt['prototype'],'disabled',0x2),p([y({'type':Number})],Vt['prototype'],'min',0x2),p([y({'type':Number})],Vt['prototype'],'max',0x2),p([y({'type':Number,'attribute':!0x1})],Vt['prototype'],'defaultValue',0x2),p([y({'type':Number})],Vt['prototype'],'zero',0x2),p([m()],Vt['prototype'],'$e',0x2);var Nt='original',Ui=class extends C{constructor(){super(...arguments),this['state']={'operation':'filter','filter':void 0x0,'originalUrl':'','disabled':!0x1,'min':0x0,'max':0x64,'value':0x0,'defaultValue':0x0,'zero':0x0},this['bs']=t=>{let {value:_0x2960c0}=t['detail'];this['$']['*faderEl']?.['set'](_0x2960c0),this['state']={...this['state'],'value':_0x2960c0};};}['setOperation'](t,_0x16c717){this['state']={...this['state'],'operation':t,'filter':_0x16c717},this['Ad']();let _0x2bf7b3=this['$']['*faderEl'],_0x1c3ac5=this['state']['originalUrl']||this['$']['*originalUrl'];_0x2bf7b3&&_0x1c3ac5&&_0x2bf7b3['activate']({'url':_0x1c3ac5,'operation':this['state']['operation'],'value':this['state']['filter']===Nt?void 0x0:this['state']['value'],'filter':this['state']['filter']===Nt?void 0x0:this['state']['filter'],'fromViewer':!0x1});}['Ad'](){let t=this['state']['operation'],{range:_0x304d1a,zero:_0x480247}=kt[t],[_0x59f072,_0x5f27f8]=_0x304d1a;this['state']={...this['state'],'min':_0x59f072,'max':_0x5f27f8,'zero':_0x480247};let _0x375d08=this['$']['*editorTransformations'][t];if('filter'===t){let _0x421d4c=Number(_0x5f27f8),_0x7d51b9=_0x375d08;if(_0x7d51b9){let {name:_0x2073be,amount:_0xf39f86}=_0x7d51b9;_0x421d4c=_0x2073be===this['state']['filter']?_0xf39f86:_0x5f27f8;}return void(this['state']={...this['state'],'value':_0x421d4c,'defaultValue':_0x421d4c});}let _0x5bb53b=typeof _0x375d08<'u'?_0x375d08:_0x480247;this['state']={...this['state'],'value':_0x5bb53b,'defaultValue':_0x5bb53b};}['apply'](){let _0x5ad581={...this['$']['*editorTransformations']};'filter'===this['state']['operation']?this['state']['filter']&&this['state']['filter']!==Nt?_0x5ad581['filter']={'name':this['state']['filter'],'amount':this['state']['value']}:delete _0x5ad581['filter']:_0x5ad581[this['state']['operation']]=this['state']['value'],this['$']['*editorTransformations']=_0x5ad581;}['cancel'](){this['$']['*faderEl']?.['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',t=>{t&&(this['state']={...this['state'],'originalUrl':t});});}['updated'](t){if(super['updated'](t),t['has']('state')){let _0x4b42b7=(this['state']['filter']??this['state']['operation'])+'\x20'+this['state']['value'];this['$']['*operationTooltip']=_0x4b42b7;}}['render'](){return v`<uc-slider-ui .disabled=${this['state']['disabled']} .min=${this['state']['min']} .max=${this['state']['max']} .defaultValue=${this['state']['defaultValue']} .zero=${this['state']['zero']} @slider-input=${this['bs']} ></uc-slider-ui>`;}};function ei(_0x4384b4){if(!_0x4384b4)return null;let _0x26e4da=_0x4384b4['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x26e4da)return null;let [,t,_0x43c5dd]=_0x26e4da;return!t||typeof _0x43c5dd>'u'?null:{'filter':t,'value':Number(_0x43c5dd)};}p([m()],Ui['prototype'],'state',0x2);var at=class extends C{constructor(){super(...arguments),this['active']=!0x1,this['title']='',this['icon']='',this['titleProp']='';}get['buttonClasses'](){let t=this['active'];return{'uc-active':t,'uc-not_active':!t};}['xl'](){let t=this['buttonClasses'];for(let [_0x41a379,_0x5dec0e]of Object['entries'](t))this['classList']['toggle'](_0x41a379,_0x5dec0e);}['onClick'](t){}['connectedCallback'](){super['connectedCallback'](),this['xl']();}['updated'](t){super['updated'](t),t['has']('active')&&this['xl']();}['render'](){let t=this['onClick'],_0x872b62=this['title'];return v`<button role="option" type="button" aria-label=${q(this['titleProp'])} title=${q(this['titleProp'])} @click=${t} ><uc-icon name=${this['icon']}></uc-icon><div class="uc-title" ?hidden=${!_0x872b62}>${_0x872b62}</div></button>`;}};p([m()],at['prototype'],'active',0x2),p([m()],at['prototype'],'title',0x2),p([m()],at['prototype'],'icon',0x2),p([m()],at['prototype'],'titleProp',0x2);var Jr=0xc,to=0x10,md=_0x2ca394=>{let _0x1344e8=0xc,t=0xc;return _0x2ca394['width']/_0x2ca394['height']>=0x1?(_0x1344e8=Jr,t=Math['round'](Jr*_0x2ca394['height']/_0x2ca394['width'])):(t=Jr,_0x1344e8=Math['round'](Jr*_0x2ca394['width']/_0x2ca394['height'])),{'width':_0x1344e8,'height':t};},eo=class extends at{['initCallback'](){super['initCallback'](),this['icon']='arrow-dropdown',this['sub']('*currentAspectRatio',_0x2a2f46=>{let t=this['kd'](_0x2a2f46);this['title']=t,this['titleProp']=t;});}['onClick'](){this['$']['*showListAspectRatio']=!0x0;}['kd'](_0x2540ec){return _0x2540ec?_0x2540ec['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0x2540ec['width']+':'+_0x2540ec['height']}):'';}['render'](){let _0x1fc893=this['onClick'],t=this['title'];return v`<button role="option" type="button" class=${Pt(this['buttonClasses'])} aria-label=${q(this['titleProp'])} title=${q(this['titleProp'])} @click=${_0x1fc893} ><div class="uc-title" ?hidden=${!t}>${t}</div><uc-icon name=${this['icon']}></uc-icon></button>`;}},Ri=class extends at{constructor(){super(...arguments),this['X']=null;}get['aspectRatio'](){return this['X'];}set['aspectRatio'](t){if(this['X']===t)return;let _0x3ee1b1=this['X'];this['X']=t,this['requestUpdate']('aspectRatio',_0x3ee1b1),t?this['Cl'](t):(this['removeAttribute']('uc-aspect-ratio-freeform'),this['title']='',this['titleProp']='');}['initCallback'](){super['initCallback'](),this['X']&&this['Cl'](this['X']),this['sub']('*currentAspectRatio',t=>{this['active']=t&&t['id']===this['X']?.['id']||t?.['width']===this['X']?.['width']&&t?.['height']===this['X']?.['height'];});}['onClick'](){this['$']['*currentAspectRatio']?.['id']!==this['X']?.['id']&&(this['$']['*currentAspectRatio']=this['X']);}['Cl'](t){if(!this['isConnected'])return;let _0x2fe6e7=!!t['hasFreeform'];this['toggleAttribute']('uc-aspect-ratio-freeform',_0x2fe6e7),(((()=>{let _0x194fad=_0x2fe6e7?this['l10n']('custom'):t['width']+':'+t['height'];this['title']=_0x194fad;})()),((()=>{let _0x209151=this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x2fe6e7?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':t['width']+':'+t['height']})['toLowerCase'](),'value':''});this['titleProp']=_0x209151;})()),_0x2fe6e7||this['requestUpdate']());}['Md'](){let t=this['X'];if(!t||t['hasFreeform'])return v`<uc-icon name=${this['icon']}></uc-icon>`;let {width:_0x491490,height:_0x41297b}=md(t);return v`<uc-icon><svg viewBox="0 0 ${to} ${to}" aria-hidden="true" focusable="false" ><rect x=${(to-_0x491490)/0x2} y=${(to-_0x41297b)/0x2} width=${_0x491490} height=${_0x41297b} rx="2" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" ></rect></svg></uc-icon>`;}['render'](){let t=this['onClick'],_0x117507=this['title'];return v`<button role="option" type="button" class=${Pt(this['buttonClasses'])} aria-label=${q(this['titleProp'])} title=${q(this['titleProp'])} @click=${t} >${this['Md']()}<div class="uc-title" ?hidden=${!_0x117507}>${_0x117507}</div></button>`;}};function gd(_0x493e31){let _0x1ee724=_0x493e31+0x5a;return _0x1ee724=_0x1ee724>=0x168?0x0:_0x1ee724,_0x1ee724;}function vd(_0x3bb4d1,_0x51ad07){if('rotate'===_0x3bb4d1)return gd('number'==typeof _0x51ad07?_0x51ad07:0x0);if('mirror'===_0x3bb4d1||'flip'===_0x3bb4d1)return!_0x51ad07;throw new Error('Unsupported\x20operation:\x20'+_0x3bb4d1);}p([y({'attribute':!0x1})],Ri['prototype'],'aspectRatio',0x1);var $i=class extends at{constructor(){super(...arguments),this['operation']=void 0x0;}['willUpdate'](t){super['willUpdate'](t),this['operation']?(this['titleProp']=this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](this['operation'])['toLowerCase']()}),this['icon']=this['operation']):(this['icon']='',this['titleProp']='');}['onClick'](t){if(!this['operation'])return;let _0x112741=this['$']['*cropperEl'],_0x2dae85=_0x112741['getValue'](this['operation']),_0xe962c1=vd(this['operation'],_0x2dae85);this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'operation':this['operation'],'next':_0xe962c1,'prev':_0x2dae85}),_0x112741['setValue'](this['operation'],_0xe962c1);}};p([y({'type':String})],$i['prototype'],'operation',0x2);var Yt=class extends at{constructor(){super(...arguments),this['n']='',this['m']='',this['wi']='',this['br']=0x0,this['a']=null,this['Nt']=!0x1,this['isOriginal']=!0x1,this['Sl']=0x14;}get['filter'](){return this['m'];}set['filter'](t){let _0x2e6d7a=t??'';if(this['m']===_0x2e6d7a)return;let _0x41bd2e=this['m'];this['m']=_0x2e6d7a,this['n']='filter',this['isOriginal']=_0x2e6d7a===Nt,this['icon']=this['isOriginal']?'original':'slider',this['Sl']=this['isOriginal']?0x28:0x14,this['requestUpdate']('filter',_0x41bd2e),this['isConnected']&&this['Al'](_0x2e6d7a);}['onClick'](t){if(this['active'])this['isOriginal']||(this['$']['*sliderEl']['setOperation'](this['n'],this['m']),this['$']['*showSlider']=!0x0);else{let _0x215d9b=this['$']['*sliderEl'];_0x215d9b['setOperation'](this['n'],this['m']),_0x215d9b['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'operation':ei(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['m'];}['Od'](){let t=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0xdbd2c5=Number['isFinite'](t)&&t>0x0?t:this['Sl']||0x20,_0x3eaffd=window['devicePixelRatio'],_0x40d8e8=Math['ceil'](_0x3eaffd*_0xdbd2c5),_0x203be8=_0x3eaffd>=0x2?'lightest':'normal',_0x4a1fd7={...this['$']['*editorTransformations']};return _0x4a1fd7[this['n']]=this['m']!==Nt?{'name':this['m'],'amount':0x64}:void 0x0,W(this['wi'],rt(nr,te(_0x4a1fd7),'quality/'+_0x203be8,'scale_crop/'+_0x40d8e8+'x'+_0x40d8e8+'/center','@clib/'+Ut+'/'+Rt+'/uc-cloud-image-editor/'));}async['ai'](t,_0x1519c1){t[0x0]?.['isIntersecting']?await this['Ts'](_0x1519c1):this['b']?.();}['initCallback'](){super['initCallback'](),this['s']=new window['IntersectionObserver'](this['ai']['bind'](this),{'threshold':[0x0,0x1]});let t=this['$']['*originalUrl'];this['wi']=t??'',this['sub']('*originalUrl',_0x25994a=>{this['wi']=_0x25994a??'',!this['isOriginal']&&this['wi']&&this['isConnected']&&!this['a']&&(this['s']?.['observe'](this),this['et']());}),this['isOriginal']||(this['s']?.['observe'](this),this['et']()),this['m']&&this['Al'](this['m']),this['sub']('*currentFilter',_0x2cfa3c=>{this['active']=!(!_0x2cfa3c||_0x2cfa3c!==this['m']);}),this['sub']('*networkProblems',async _0x558710=>{_0x558710||(this['a']?await this['Ts']():this['et']());});}['disconnectedCallback'](){super['disconnectedCallback'](),this['s']?.['disconnect'](),this['b']?.(),this['wr']();}['updated'](t){super['updated'](t),t['has']('isOriginal')&&(this['isOriginal']?this['s']?.['unobserve'](this):(this['s']?.['observe'](this),this['et']()));}['Al'](t){if(!t)return void(this['titleProp']='');let _0x331127=this['l10n']('a11y-cloud-editor-apply-filter',{'name':t['toLowerCase']()});this['titleProp']=_0x331127;}async['Ts'](t){if(!this['isConnected'])return t?.['unobserve'](this),this['b']?.(),void(this['b']=void 0x0);if(!this['wi'])return void(!this['Ft']&&!this['De']&&this['et']());let _0x451130=++this['br'],_0x25e148='';try{_0x25e148=await this['proxyUrl'](this['Od']());}catch(_0x3d95a4){return this['$']['*networkProblems']=!0x0,void console['error']('Failed\x20to\x20resolve\x20preview\x20URL',{'error':_0x3d95a4});}this['Nt']=!0x1,this['b']?.();let {promise:_0x1d9a31,cancel:_0x41a315}=Ce(_0x25e148);this['b']=()=>{_0x41a315(),this['br']===_0x451130&&(this['b']=void 0x0);};try{if(await _0x1d9a31,this['br']!==_0x451130||!this['isConnected'])return;this['a']=_0x25e148,this['Nt']=!0x0,this['wr'](),(t??this['s'])?.['unobserve'](this);}catch(_0x460b4e){this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0x460b4e}),this['et']();}finally{this['br']===_0x451130&&(this['b']=void 0x0);}}['et'](){!this['isConnected']||this['a']||this['Nt']||this['isOriginal']||this['$']['*networkProblems']?this['wr']():(this['De']&&cancelAnimationFrame(this['De']),this['De']=requestAnimationFrame(()=>{if(this['De']=void 0x0,!this['isConnected']||this['a']||this['Nt']||this['isOriginal'])return void this['wr']();let t=this['getBoundingClientRect'](),_0x12b346=t['width']>0x0&&t['height']>0x0,_0x2a5ba4=window['innerWidth']||document['documentElement']['clientWidth'],_0x1eb8cf=window['innerHeight']||document['documentElement']['clientHeight'];_0x12b346&&t['bottom']>0x0&&t['right']>0x0&&t['top']<_0x1eb8cf&&t['left']<_0x2a5ba4?this['Ts']():this['Ft']=window['setTimeout'](()=>{this['Ft']=void 0x0,this['et']();},0x1f4);}));}['wr'](){this['De']&&(cancelAnimationFrame(this['De']),this['De']=void 0x0),this['Ft']&&(window['clearTimeout'](this['Ft']),this['Ft']=void 0x0);}get['Id'](){return!(!this['Nt']||this['active']||this['isOriginal']);}['render'](){let t=this['onClick'],_0x1214ff={'opacity':this['Id']?'1':'0'};this['a']&&(_0x1214ff['backgroundImage']='url('+this['a']+')');let _0x5b40ba={'opacity':this['active']||this['isOriginal']?'1':'0'};return v`<button role="option" type="button" class=${Pt(this['buttonClasses'])} aria-label=${q(this['titleProp'])} title=${q(this['titleProp'])} @click=${t} ><div class="uc-preview" ?data-loaded=${this['Nt']} style=${Ae(_0x1214ff)}></div><uc-icon class=${Pt({'uc-original-icon':this['isOriginal']})} name=${this['icon']} style=${Ae(_0x5b40ba)} ></uc-icon></button>`;}};p([m()],Yt['prototype'],'a',0x2),p([m()],Yt['prototype'],'Nt',0x2),p([m()],Yt['prototype'],'isOriginal',0x2),p([m()],Yt['prototype'],'Sl',0x2),p([y({'type':String})],Yt['prototype'],'filter',0x1);var Di=class extends at{constructor(){super(...arguments),this['n']='';}get['operation'](){return this['n'];}set['operation'](t){let _0x5b51ed=t??'';if(this['n']===_0x5b51ed)return;let _0x2d568c=this['n'];this['n']=_0x5b51ed,this['requestUpdate']('operation',_0x2d568c),this['isConnected']&&_0x5b51ed&&this['kl'](_0x5b51ed);}['kl'](t){this['icon']=t,(((()=>{let _0x8b1d5c=this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](t)['toLowerCase']()});this['titleProp']=_0x8b1d5c;})()),((()=>{let _0x287acf=this['l10n'](t);this['title']=_0x287acf;})()));}['initCallback'](){super['initCallback'](),this['n']&&this['kl'](this['n']),this['sub']('*editorTransformations',t=>{if(!this['n'])return;let {zero:_0x550686}=kt[this['n']],_0x362029=t[this['n']],_0x46a5be=typeof _0x362029<'u'&&_0x362029!==_0x550686;this['active']=_0x46a5be;});}['onClick'](t){this['$']['*sliderEl']?.['setOperation'](this['n']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['n'],this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'operation':ei(this['$']['*operationTooltip'])});}};p([y({'type':String})],Di['prototype'],'operation',0x1);var yd=0x1,il=()=>{},Fi=class extends C{constructor(){super(...arguments),this['hiddenScrollbar']=!0x1,this['Ml']=t=>{t['preventDefault']();let {deltaY:_0x399be4,deltaX:_0xa46245}=t;Math['abs'](_0xa46245)>yd?this['scrollLeft']+=_0xa46245:this['scrollLeft']+=_0x399be4;};}['connectedCallback'](){super['connectedCallback'](),this['addEventListener']('wheel',this['Ml'],{'passive':!0x1}),this['addEventListener']('scroll',il,{'passive':!0x0});}['disconnectedCallback'](){this['removeEventListener']('wheel',this['Ml']),this['removeEventListener']('scroll',il),super['disconnectedCallback']();}};p([y({'type':Boolean,'noAccessor':!0x0,'attribute':'hidden-scrollbar'})],Fi['prototype'],'hiddenScrollbar',0x2);var pt=class extends C{constructor(){super(...arguments),this['Ti']=!0x1,this['showMainToolbar']=!0x0,this['showSubToolbar']=!0x1,this['Ol']=!0x0,this['tabList']=[...ot],this['activeTab']=B['CROP'],this['Tr']=!0x0,this['Es']=!0x1,this['Il']=null,this['Pl']=0x0,this['Ll']=0x0,this['Er']=I(),this['Rl']=I(),this['tabToggleRefs']={[B['CROP']]:I(),[B['TUNING']]:I(),[B['FILTERS']]:I()},this['Ul']=()=>{this['tt']();},this['Ei']=[],this['xr']=$(t=>{this['Ti']=t;},0x1f4),this['Cr']=$(()=>{let t=this['$']['*editorTransformations'],_0x339433=this['$']['*currentOperation'],_0x3570a4='',_0x90cc0c=!0x1;if(this['$']['*tabId']===B['FILTERS']){if(_0x90cc0c=!0x0,this['$']['*currentFilter']&&t?.['filter']?.['name']===this['$']['*currentFilter']){let _0x1f12c5=t?.['filter']?.['amount']||0x64;_0x3570a4=this['$']['*currentFilter']+'\x20'+_0x1f12c5;}else _0x3570a4=this['l10n'](Nt);}else{if(this['showSubToolbar']&&this['$']['*tabId']===B['TUNING']&&_0x339433){_0x90cc0c=!0x0;let _0x1b95aa=t?.[_0x339433]||kt[_0x339433]['zero'];_0x3570a4=this['l10n'](_0x339433)+'\x20'+_0x1b95aa;}}_0x90cc0c&&(this['$']['*operationTooltip']=_0x3570a4),this['Es']=_0x90cc0c;},0x0),this['Pd']={'hidden':'uc-sub-toolbar--top-hidden','visible':'uc-sub-toolbar--visible'},this['Ld']={'hidden':'uc-sub-toolbar--bottom-hidden','visible':'uc-sub-toolbar--visible'},this['Rd']={'hidden':'uc-tab-toggle--hidden','visible':'uc-tab-toggle--visible'},this['Ud']={'hidden':'uc-tab-toggles--hidden','visible':'uc-tab-toggles--visible'},this['init$']={...this['init$'],'*sliderEl':null,'*showSlider':!0x1,'*showListAspectRatio':!0x1,'*currentFilter':Nt,'*currentOperation':null,'*operationTooltip':null},this['Ee']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'cancel'}),this['b']?.();let _0x1cb67f=this['$']['*on.cancel'];_0x1cb67f?.();},this['As']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'apply'});let _0x2cbd92=this['$']['*on.apply'];_0x2cbd92?.(this['$']['*editorTransformations']);},this['jd']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'apply-slider','operation':ei(this['$']['*operationTooltip'])}),this['Er']['value']?.['apply'](),this['$l']();},this['Gd']=t=>{this['telemetryManager']['sendEventCloudImageEditor'](t,this['$']['*tabId'],{'action':'cancel-slider'}),this['Er']['value']?.['cancel'](),this['$l']();},this['qd']=t=>{let _0x23c8cf=t['currentTarget']?.['getAttribute']('data-id');_0x23c8cf&&(this['telemetryManager']['sendEventCloudImageEditor'](t,_0x23c8cf),this['xs'](_0x23c8cf,{'fromViewer':!0x1}));};}['$l'](){this['$']['*showSlider']=!0x1,this['$']['*tabId']===B['CROP']&&(this['$']['*showListAspectRatio']=!0x1),this['$']['*tabId']===B['TUNING']&&(this['Es']=!0x1);}['xs'](t,{fromViewer:_0x9c693a=!0x1,force:_0x2c6fe0=!0x1}={}){this['$']['*tabId']!==t&&(this['$']['*tabId']=t),this['Dl'](t,{'fromViewer':_0x9c693a,'force':_0x2c6fe0});}['Dl'](t,{fromViewer:_0xb8a044,force:_0x359074=!0x1}){if(!_0x359074&&this['activeTab']===t)return void this['tt']();this['activeTab']=t;let _0x1fe94a=this['$']['*faderEl'],_0x5eb624=this['$']['*cropperEl'];t===B['CROP']?(_0x1fe94a?.['deactivate'](),this['$']['*imageSize']&&_0x5eb624?.['activate'](this['$']['*imageSize'],{'fromViewer':_0xb8a044})):(_0x1fe94a?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0xb8a044}),_0x5eb624?.['deactivate']());for(let _0x5d9295 of ot){let _0x348866=_0x5d9295===t,_0x321cd8=this['tabToggleRefs'][_0x5d9295]?.['value'];_0x321cd8&&(_0x321cd8['active']=_0x348866),_0x348866&&this['tt']();}}['tt'](){let _0x239853=this['tabToggleRefs'][this['activeTab']]?.['value'],_0x46a1d2=this['Rl']['value'];if(!_0x239853||!_0x46a1d2)return;let _0x4b7f1a=_0x239853['offsetLeft'],_0x2d0372=_0x239853['offsetWidth']||Number(getComputedStyle(_0x239853)['width']['replace']('px',''));(this['Pl']!==_0x4b7f1a||this['Ll']!==_0x2d0372)&&(this['Pl']=_0x4b7f1a,this['Ll']=_0x2d0372,_0x46a1d2['style']['transform']='translateX('+_0x4b7f1a+'px)',_0x46a1d2['style']['width']=_0x2d0372+'px');}get['Cs'](){return this['Ei']['length']>=0x3;}['$d'](t){switch(t){case B['CROP']:return this['Dd']();case B['FILTERS']:return this['Fd']();case B['TUNING']:return this['Nd']();default:return[];}}['Dd'](){let t=[];if(this['Cs'])t['push'](()=>this['Vd']());else{for(let _0x9db01c of this['Ei'])t['push'](()=>this['Fl'](_0x9db01c));}for(let _0x33675b of yn)t['push'](()=>this['_d'](_0x33675b));return this['Ss'](t);}['Fd'](){let _0x2d74b9=[Nt,...vn]['map'](_0x123818=>()=>this['Bd'](_0x123818));return this['Ss'](_0x2d74b9);}['Nd'](){let t=gn['map'](_0x2b36dd=>()=>this['zd'](_0x2b36dd));return this['Ss'](t);}['Ss'](t){return t['length']?t['map'](_0x297139=>_0x297139()):[];}['Vd'](){return v`<uc-editor-freeform-button-control></uc-editor-freeform-button-control>`;}['Fl'](t){return v`<uc-editor-aspect-ratio-button-control .aspectRatio=${t}></uc-editor-aspect-ratio-button-control>`;}['_d'](t){return v`<uc-editor-crop-button-control .operation=${t}></uc-editor-crop-button-control>`;}['Bd'](t){return v`<uc-editor-filter-control .filter=${t}></uc-editor-filter-control>`;}['zd'](t){return v`<uc-editor-operation-control .operation=${t}></uc-editor-operation-control>`;}['Hd'](){return this['Cs']?this['Ei']['map'](t=>this['Fl'](t)):[];}async['Kd'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){let t=this['$']['*imgContainerEl']['offsetWidth'],_0x186e69=await this['proxyUrl'](ti(this['$']['*originalUrl'],t,this['$']['*editorTransformations']));this['b']?.();let {cancel:_0x5c78d1}=Si([_0x186e69]);this['b']=()=>{_0x5c78d1(),this['b']=void 0x0;};}}['initCallback'](){super['initCallback']();let t=this['$']['*cropPresetList']??[];this['Ei']=[...t],this['sub']('*cropPresetList',_0x3b2c8f=>{this['Ei']=[..._0x3b2c8f??[]];}),this['sub']('*imageSize',_0xb6763d=>{_0xb6763d&&setTimeout(()=>{this['xs'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x3798da=>{let _0x4c5415=_0x3798da?.['filter']?.['name'];this['$']['*currentFilter']!==_0x4c5415&&(this['$']['*currentFilter']=_0x4c5415??'');}),this['sub']('*currentFilter',()=>{this['Cr']();}),this['sub']('*currentOperation',()=>{this['Cr']();}),this['sub']('*tabId',_0x5b52a9=>{this['Dl'](_0x5b52a9,{'fromViewer':!0x1,'force':!0x0}),this['Cr']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x2d9348=>{this['Kd'](),this['$']['*faderEl']?.['setTransformations'](_0x2d9348);}),this['sub']('*loadingOperations',_0x5b73b3=>{let _0x159e49=!0x1;for(let [,_0x3901fd]of _0x5b73b3['entries']()){if(_0x159e49)break;for(let [,_0x4009f2]of _0x3901fd['entries']())if(_0x4009f2){_0x159e49=!0x0;break;}}this['xr'](_0x159e49);}),this['sub']('*showSlider',_0x2b0502=>{_0x2b0502?(this['showSubToolbar']=!0x0,this['showMainToolbar']=!0x1,this['Tr']=!0x0):this['$']['*showListAspectRatio']||(this['showSubToolbar']=!0x1,this['showMainToolbar']=!0x0);}),this['sub']('*showListAspectRatio',_0x28fe3d=>{_0x28fe3d?(this['showSubToolbar']=!0x0,this['showMainToolbar']=!0x1,this['Tr']=!0x1):this['$']['*showSlider']||(this['showSubToolbar']=!0x1,this['showMainToolbar']=!0x0);}),this['sub']('*tabList',_0x1247e5=>{if(this['tabList']=_0x1247e5,this['Ol']=_0x1247e5['length']>0x1,!_0x1247e5['includes'](this['$']['*tabId'])&&_0x1247e5['length']>0x0){let [_0x3a0cbd]=_0x1247e5;return void(_0x3a0cbd&&this['xs'](_0x3a0cbd,{'fromViewer':!0x1}));}this['tt']();}),this['sub']('*operationTooltip',_0xbbb49b=>{this['Il']=_0xbbb49b;}),this['Cr']();}['connectedCallback'](){super['connectedCallback'](),window['addEventListener']('resize',this['Ul']);}['firstUpdated'](t){super['firstUpdated'](t),this['Sr'](),this['tt']();}['updated'](t){super['updated'](t),(t['has']('activeTab')||t['has']('tabList'))&&this['updateComplete']['then'](()=>this['tt']()),(t['has']('showSubToolbar')||t['has']('showMainToolbar'))&&this['Sr']();}['disconnectedCallback'](){window['removeEventListener']('resize',this['Ul']),super['disconnectedCallback'](),this['$']['*showSlider']=!0x1,this['$']['*showListAspectRatio']=!0x1;}['Sr'](){let t=this['Er']['value'];t&&(this['$']['*sliderEl']=t);}['Wd'](t){let _0x2f4a32=this['tabList']['includes'](t),_0x2cc5a5=this['activeTab']===t,_0x22190d=this['tabList']['indexOf'](t),_0x5f14cf=_0x22190d>=0x0?Ae({'gridColumn':''+(_0x22190d+0x1)}):U;return v`<uc-presence-toggle class="uc-tab-toggle" .visible=${_0x2f4a32} .styles=${this['Rd']}><uc-btn-ui theme="tab" data-id=${t} icon=${t} role="tab" aria-controls=${'tab_'+t} aria-selected=${_0x2cc5a5?'true':'false'} title-prop=${'a11y-editor-tab-'+t} .active=${_0x2cc5a5} style=${_0x5f14cf} @click=${this['qd']} ${O(this['tabToggleRefs'][t])} ></uc-btn-ui></uc-presence-toggle>`;}['Zd'](t){let _0x3443cc=this['$d'](t);return v`<div id=${'tab_'+t} class="uc-tab-content" ><uc-editor-scroller hidden-scrollbar><div class="uc-controls-list_align"><div role="listbox" aria-orientation="horizontal" class="uc-controls-list_inner">${_0x3443cc['length']?_0x3443cc:U}</div></div></uc-editor-scroller></div>`;}['render'](){let t=['uc-info-tooltip',this['Es']?'uc-info-tooltip_visible':'uc-info-tooltip_hidden']['join']('\x20'),_0x5d8fe3=this['Cs'];return v`<uc-line-loader-ui .active=${this['Ti']}></uc-line-loader-ui><div class="uc-info-tooltip_container"><div class="uc-info-tooltip_wrapper"><div class=${t}>${this['Il']??''}</div></div></div><div class="uc-toolbar-container"><uc-presence-toggle role="tablist" class="uc-sub-toolbar" .visible=${this['showMainToolbar']} .styles=${this['Pd']} ><div class="uc-tab-content-row">${ot['map'](_0x28b9e4=>Ii(this['activeTab']===_0x28b9e4,()=>this['Zd'](_0x28b9e4)))}</div><div class="uc-controls-row"><uc-presence-toggle class="uc-tab-toggles" .visible=${this['Ol']} .styles=${this['Ud']} @initial-render=${()=>this['tt']()} ><div class="uc-tab-toggles_indicator" ${O(this['Rl'])} ></div>${ot['map'](_0x254377=>this['Wd'](_0x254377))}</uc-presence-toggle><uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" title-prop="cancel" @click=${this['Ee']} ></uc-btn-ui><uc-btn-ui theme="primary-icon" icon="done" title-prop="apply" @click=${this['As']}></uc-btn-ui></div></uc-presence-toggle><uc-presence-toggle class="uc-sub-toolbar" .visible=${this['showSubToolbar']} .styles=${this['Ld']}><div class="uc-slider" ?hidden=${!this['Tr']}><uc-editor-slider ${O(this['Er'])}></uc-editor-slider></div><div class="uc-list-aspect-ratio-container" ?hidden=${this['Tr']||!_0x5d8fe3}>${_0x5d8fe3?v`<div class="uc-list-aspect-ratio">${this['Hd']()}</div>`:U}</div><div class="uc-controls-row"><uc-btn-ui theme="secondary" @click=${this['Gd']} text=${this['l10n']('cancel')}></uc-btn-ui><uc-btn-ui theme="primary" @click=${this['jd']} text=${this['l10n']('apply')}></uc-btn-ui></div></uc-presence-toggle></div>`;}};p([m()],pt['prototype'],'Ti',0x2),p([m()],pt['prototype'],'showMainToolbar',0x2),p([m()],pt['prototype'],'showSubToolbar',0x2),p([m()],pt['prototype'],'Ol',0x2),p([m()],pt['prototype'],'tabList',0x2),p([m()],pt['prototype'],'activeTab',0x2),p([m()],pt['prototype'],'Tr',0x2),p([m()],pt['prototype'],'Es',0x2),p([m()],pt['prototype'],'Il',0x2),p([m()],pt['prototype'],'Ei',0x2);var rl=Ht([...ot]),et=class extends C{constructor(){super(...arguments),this['ctxOwner']=!0x0,this['Yd']='',this['Je']=It,this['Xd']='',this['Ti']=!0x1,this['uuid']=null,this['cdnUrl']=null,this['cropPreset']='',this['tabs']=rl,this['Nl']=!0x1,this['ke']=!0x1,this['ks']=null,this['xi']=null,this['xr']=$(t=>{this['Ti']=t;},0x12c),this['Ar']=I(),this['Vl']=I(),this['_l']=I(),this['Bl']=I(),this['zl']=()=>{this['xr'](!0x1),this['Je']!==It&&(this['$']['*networkProblems']=!0x1);},this['Hl']=()=>{this['xr'](!0x1),this['$']['*networkProblems']=!0x0;},this['Qd']=()=>{let t=this['$']['*on.retryNetwork'];t?.();},this['init$']={...this['init$'],...Xa(this)};}static{this['styleAttrs']=['uc-cloud-image-editor'];}['Jd'](){this['ke']||this['ks']||(this['ks']=this['updateComplete']['then'](()=>{this['ks']=null,this['ke']=!0x0;}));}['initCallback'](){super['initCallback'](),this['Kl'](),this['jl']();}['Sr'](){let t=this['_l']['value'];t&&(this['$']['*faderEl']=t);let _0x52deaf=this['Vl']['value'];_0x52deaf&&(this['$']['*cropperEl']=_0x52deaf);let _0x53ecc1=this['Bl']['value'];_0x53ecc1&&(this['$']['*imgContainerEl']=_0x53ecc1);let _0x3bbd31=this['Ar']['value'];_0x3bbd31&&(this['$']['*imgEl']=_0x3bbd31);}['ep'](){let t=this['Ar']['value'];t&&(t['addEventListener']('load',this['zl']),t['addEventListener']('error',this['Hl']));}['tp'](){let t=this['Ar']['value'];t&&(t['removeEventListener']('load',this['zl']),t['removeEventListener']('error',this['Hl']));}get['ip'](){let t=this['$']['*tabId'];return yt('uc-image',{'uc-image_hidden_to_cropper':t===B['CROP'],'uc-image_hidden_effects':t!==B['CROP']});}['Gl'](){if(this['xi'])return this['xi'];return this['xi']=new Promise((_0x18eb9e,_0x129cb6)=>{let _0x15e3e1=()=>{window['clearTimeout'](_0x3f2cf3),_0x2e9c2a['disconnect'](),this['xi']=null;},_0x35aee3=()=>{_0x15e3e1(),window['setTimeout'](()=>_0x18eb9e(),0x0);},_0x50f4a9=()=>{let _0x105f71=new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size');_0x15e3e1(),this['isConnected']&&console['error'](_0x105f71['message']),_0x129cb6(_0x105f71);},_0x2e9c2a=new ResizeObserver(_0x276032=>{let [_0x2d78fa]=_0x276032;_0x2d78fa&&_0x2d78fa['contentRect']['width']>0x0&&_0x2d78fa['contentRect']['height']>0x0&&_0x35aee3();}),_0x3f2cf3=window['setTimeout'](()=>{_0x50f4a9();},0xbb8);((()=>{let {width:_0x8a7f33,height:_0x2dc5e4}=this['getBoundingClientRect']();return _0x8a7f33>0x0&&_0x2dc5e4>0x0;})())?_0x35aee3():_0x2e9c2a['observe'](this);}),this['xi'];}['firstUpdated'](t){super['firstUpdated'](t),this['Sr'](),this['ep'](),this['initEditor']();let _0x5588f1=!(!this['uuid']&&!this['cdnUrl']),_0xe344c2=t['has']('uuid')||t['has']('cdnUrl');_0x5588f1&&!_0xe344c2&&this['updateImage']();}['disconnectedCallback'](){this['tp'](),super['disconnectedCallback']();}['render'](){let t=this['Xd']??'',_0x3d6a49=this['Yd']??'',_0x3656e0=this['Je']||It,_0x33be00=this['Ti'],_0x16758f=this['Nl'];return v` ${De(Qa)}<div class="uc-wrapper uc-wrapper_desktop"><uc-presence-toggle class="uc-network_problems_splash" .visible=${_0x16758f}><div class="uc-network_problems_content"><div class="uc-network_problems_icon"><uc-icon name="sad"></uc-icon></div><div class="uc-network_problems_text">Network error</div></div><div class="uc-network_problems_footer"><uc-btn-ui theme="primary" text="Retry" @click=${this['Qd']}></uc-btn-ui></div></uc-presence-toggle><div class="uc-viewport"><div class="uc-file_type_outer"><div class="uc-file_type">${t}</div></div><div class="uc-image_container" ${O(this['Bl'])}><img src=${_0x3656e0} class=${this['ip']} ${O(this['Ar'])} />${Ii(this['ke'],()=>v`<uc-editor-image-cropper ${O(this['Vl'])}></uc-editor-image-cropper>`)}<uc-editor-image-fader ${O(this['_l'])}></uc-editor-image-fader></div><div class="uc-info_pan">${_0x3d6a49}</div></div><div class="uc-toolbar"><uc-line-loader-ui .active=${_0x33be00}></uc-line-loader-ui><div class="uc-toolbar_content uc-toolbar_content__editor">${Ii(this['ke'],()=>v`<uc-editor-toolbar></uc-editor-toolbar>`)}</div></div></div>`;}['updated'](t){super['updated'](t),t['has']('uuid')&&this['uuid']&&this['updateImage'](),t['has']('cdnUrl')&&this['cdnUrl']&&this['updateImage'](),t['has']('tabs')&&this['Kl'](),(t['has']('cropPreset')||t['has']('cdnUrl'))&&this['jl']();}['Kl'](){let t=this['tabs']||rl;this['$']['*tabList']=Ya(t);}['jl'](){let t=Nr(this['cropPreset']??''),_0x437b28=null;if(this['cdnUrl']){let _0x3dd170=Mo(ko(this['cdnUrl']));if(Array['isArray'](_0x3dd170?.['crop']?.['dimensions'])){let [_0x3aee51,_0x9c2831]=_0x3dd170['crop']['dimensions'];_0x437b28=va(_0x3aee51,_0x9c2831,t,0.1);}}this['$']['*cropPresetList']=t,this['$']['*currentAspectRatio']=_0x437b28??t?.[0x0]??null;}async['updateImage'](){if(this['isConnected']){try{await this['Gl']();}catch{return;}if(this['isConnected']){if(this['cdnUrl']){let t=this['cdnUrl'],_0x18c872=sr(t),_0x838979=Jt(t,_0x18c872);if(_0x838979===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x838979;let _0x4d631a=Mo(ko(t));this['$']['*editorTransformations']=_0x4d631a;}else{if(!this['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{let t=Jt(this['cfg']['cdnCname'],this['uuid']);if(t===this['$']['*originalUrl'])return;this['$']['*originalUrl']=t,Object['keys'](this['$']['*editorTransformations'])['length']>0x0&&(this['$']['*editorTransformations']={});}}this['$']['*tabId']===B['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{let t=this['$']['*originalUrl'],_0x99dfe8=await this['proxyUrl'](W(t,rt('json'))),_0xd5a966=await fetch(_0x99dfe8)['then'](_0x11eda9=>_0x11eda9['json']()),{width:_0x6175ca,height:_0x3434aa}=_0xd5a966;this['$']['*imageSize']={'width':_0x6175ca,'height':_0x3434aa},this['$']['*tabId']===B['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':t});}catch(_0xab48ca){_0xab48ca&&(this['telemetryManager']['sendEventError'](_0xab48ca,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0xab48ca));}this['Jd']();}}}async['initEditor'](){try{await this['Gl']();}catch{return;}this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',t=>{let _0x52651b=!!t;this['Nl']=_0x52651b;}),this['sub']('*editorTransformations',t=>{if(0x0===Object['keys'](t)['length'])return;let _0x9c65a7=this['$']['*originalUrl'],_0x4aa6e9=rt(te(t),'preview'),_0x52e125={'originalUrl':_0x9c65a7,'cdnUrlModifiers':_0x4aa6e9,'cdnUrl':W(_0x9c65a7,_0x4aa6e9),'transformations':t};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x52e125,'bubbles':!0x0,'composed':!0x0}));},!0x1);}};p([m()],et['prototype'],'Yd',0x2),p([m()],et['prototype'],'Je',0x2),p([m()],et['prototype'],'Xd',0x2),p([m()],et['prototype'],'Ti',0x2),p([y({'type':String,'reflect':!0x0})],et['prototype'],'uuid',0x2),p([y({'type':String,'attribute':'cdn-url','reflect':!0x0})],et['prototype'],'cdnUrl',0x2),p([y({'type':String,'attribute':'crop-preset','reflect':!0x0})],et['prototype'],'cropPreset',0x2),p([y({'type':String,'reflect':!0x0})],et['prototype'],'tabs',0x2),p([m()],et['prototype'],'Nl',0x2),p([m()],et['prototype'],'ke',0x2);var Ps={};Ds(Ps,{'CloudImageEditorActivity':()=>Vi});var io=class extends et{static{this['styleAttrs']=[...super['styleAttrs'],'uc-wgt-common'];}constructor(){super(),this['init$']={...this['init$'],'*solution':this['tagName']};}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':D['INIT_SOLUTION']}),this['a11y']?.['registerBlock'](this);}},Vi=class extends R{constructor(){super(...arguments),this['Q']=null;}get['activityParams'](){let t=super['activityParams'];if('internalId'in t)return t;throw new Error('Cloud\x20Image\x20Editor\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['subConfigValue']('cropPreset',t=>{this['Q']&&this['Q']['cropPreset']!==t&&(this['Q']={...this['Q'],'cropPreset':t});}),this['subConfigValue']('cloudImageEditorTabs',t=>{this['Q']&&this['Q']['tabs']!==t&&(this['Q']={...this['Q'],'tabs':t});}),this['rp']();}['disconnectedCallback'](){super['disconnectedCallback'](),this['op']();}['As'](t){if(!this['Ci'])return;this['debugPrint']('editor\x20event\x20\x22apply\x22',t['detail']);let _0x46675d=t['detail'];this['Ci']['setMultipleValues']({'cdnUrl':_0x46675d['cdnUrl'],'cdnUrlModifiers':_0x46675d['cdnUrlModifiers']}),this['modalManager']?.['close'](x['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['Ee'](t){let _0x22f0fc=t instanceof CustomEvent?t['detail']:void 0x0;this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x22f0fc),this['modalManager']?.['close'](x['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['handleChange'](t){this['debugPrint']('editor\x20event\x20\x22change\x22',t['detail']);}['rp'](){let {internalId:t}=this['activityParams'],_0x4dbdbc=this['uploadCollection']['read'](t);if(!_0x4dbdbc)throw new Error('Entry\x20with\x20internalId\x20\x22'+t+'\x22\x20not\x20found');this['Ci']=_0x4dbdbc;let _0x106d08=this['Ci']['getValue']('cdnUrl');if(!_0x106d08)throw new Error('Entry\x20with\x20internalId\x20\x22'+t+'\x22\x20hasn\x27t\x20uploaded\x20yet');this['Q']=this['sp'](_0x106d08);}['op'](){this['Ci']=void 0x0,this['Q']=null;}['render'](){if(!this['Q'])return U;let {cdnUrl:t,cropPreset:_0xd6abc6,tabs:_0x2b491b}=this['Q'];return v`<uc-cloud-image-editor cdn-url=${t} crop-preset=${q(_0xd6abc6)} tabs=${q(_0x2b491b)} @apply=${this['As']} @cancel=${this['Ee']} @change=${this['handleChange']} ></uc-cloud-image-editor>`;}['sp'](t){return{'cdnUrl':t,'cropPreset':this['cfg']['cropPreset'],'tabs':this['cfg']['cloudImageEditorTabs']};}};p([m()],Vi['prototype'],'Q',0x2);var ii=class extends R{constructor(){super(...arguments),this['Dt']='',this['bs']=t=>{this['Dt']=t['target']?.['value']??'';},this['Ho']=t=>{t['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});let _0x39e433=this['Dt']['trim']();_0x39e433&&(this['api']['addFileFromUrl'](_0x39e433,{'source':N['URL']}),this['$']['*currentActivity']=x['activities']['UPLOAD_LIST'],this['modalManager']?.['open'](x['activities']['UPLOAD_LIST']));};}['render'](){return v`<uc-activity-header><button type="button" class="uc-mini-btn" @click=${this['historyBack']} title=${this['l10n']('back')} aria-label=${this['l10n']('back')}><uc-icon name="back"></uc-icon></button><div><uc-icon name="url"></uc-icon><span>${this['l10n']('caption-from-url')}</span></div><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*closeModal']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><form class="uc-content" @submit=${this['Ho']}><label><input placeholder="https://" class="uc-url-input" type="text" autofocus @input=${this['bs']} /></label><button type="submit" class="uc-url-upload-btn uc-primary-btn" ?disabled=${!this['Dt']} >${this['l10n']('upload-url')}</button></form>`;}};p([m()],ii['prototype'],'Dt',0x2);var ol=()=>{let _0x880391=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x880391['location']['origin'];}catch(_0x4b833f){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x4b833f),globalThis['location']['origin'];}},bd=_0x18810d=>_0x18810d['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),sl=(_0x5a58bd,_0x5db65f='i')=>{let t=_0x5a58bd['split']('*')['map'](bd);return new RegExp('^'+t['join']('.+')+'$',_0x5db65f);},wd=['--uc-font-family','--uc-font-size','--uc-line-height','--uc-button-size','--uc-preview-size','--uc-input-size','--uc-padding','--uc-radius','--uc-transition','--uc-background','--uc-foreground','--uc-primary','--uc-primary-hover','--uc-primary-transparent','--uc-primary-foreground','--uc-secondary','--uc-secondary-hover','--uc-secondary-foreground','--uc-muted','--uc-muted-foreground','--uc-destructive','--uc-destructive-foreground','--uc-border'],Td=(_0x48941a,_0x5e1462)=>window['getComputedStyle'](_0x48941a)['getPropertyValue'](_0x5e1462)['trim'](),nl=_0x1e24cd=>{let _0x5e0f19={};for(let t of wd){let _0x331818=Td(_0x1e24cd,t);_0x331818&&(_0x5e0f19[t]=_0x331818);}return _0x5e0f19;},Ed=['selected-files-change','toolbar-state-change'],Cd=_0x5101b9=>{if(!_0x5101b9||'object'!=typeof _0x5101b9||!('type'in _0x5101b9))return!0x1;let _0x5f4eb4=_0x5101b9['type'];return!('string'!=typeof _0x5f4eb4||!Ed['includes'](_0x5f4eb4));},ro=class{constructor(_0x334be5,t){this['kr']=new Map(),this['Wl']=_0x1d12be=>{if(_0x1d12be['source']!==this['Ms'])return;let t=_0x1d12be['data'];if(!Cd(t))return;let _0x13911d=this['kr']['get'](t['type']);if(_0x13911d){for(let _0x2feac5 of _0x13911d)_0x2feac5(t);}},this['Ms']=_0x334be5,this['ql']=t,window['addEventListener']('message',this['Wl']);}['on'](_0x24f54a,t){let _0x57d16e=this['kr']['get'](_0x24f54a)??new Set();this['kr']['has'](_0x24f54a)||this['kr']['set'](_0x24f54a,_0x57d16e),_0x57d16e['add'](t);}['send'](_0x710f06){let t=this['ql']();this['Ms']['postMessage'](_0x710f06,t);}['destroy'](){window['removeEventListener']('message',this['Wl']);}};function al(_0x28c1cf){let _0x221ce9=[];for(let [t,_0x2ca4a6]of Object['entries'](_0x28c1cf))null==_0x2ca4a6||'string'==typeof _0x2ca4a6&&0x0===_0x2ca4a6['length']||_0x221ce9['push'](t+'='+encodeURIComponent(_0x2ca4a6));return _0x221ce9['join']('&');}var xd={[ut['GDRIVE']]:'ngdrive'},ht=class extends R{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['Vt']=I(),this['Mr']=null,this['Os']=[],this['Is']=!0x1,this['Ps']=!0x1,this['Ls']=!0x1,this['Rs']=!0x1,this['Or']=!0x1,this['Us']=!0x1,this['$s']='uc-hidden',this['Zl']=!0x0,this['Ko']=()=>{for(let t of this['Os']){let _0x5cbcbe=this['ap'](t),{filename:_0x1bc22c}=t,{externalSourceType:_0x408a26}=this['activityParams'];this['api']['addFileFromUrl'](_0x5cbcbe,{'fileName':_0x1bc22c,'source':_0x408a26});}this['$']['*currentActivity']=x['activities']['UPLOAD_LIST'],this['modalManager']?.['open'](x['activities']['UPLOAD_LIST']);},this['Ee']=()=>{this['historyBack']();},this['hp']=()=>{this['ne']?.['send']({'type':'select-all'});},this['fp']=()=>{this['ne']?.['send']({'type':'deselect-all'});};}get['np'](){if(!this['Mr'])return'';let {selectedCount:t,total:_0x46ba55}=this['Mr'];return this['l10n']('selected-count',{'count':t,'total':_0x46ba55});}get['activityParams'](){let t=super['activityParams'];if('externalSourceType'in t)return t;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback']();let {externalSourceType:t}=this['activityParams'];t?this['Yl']():console['error']('Param\x20\x22externalSourceType\x22\x20is\x20required\x20for\x20external\x20source\x20activity'),this['sub']('*currentActivityParams',()=>{setTimeout(()=>{this['isConnected']&&(this['Xl'](),this['Yl']());});}),this['subConfigValue']('multiple',_0x8274cb=>{this['Or']=_0x8274cb;}),this['subConfigValue']('localeName',()=>{this['Ql']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x4ae1cb=>{this['Jl'](_0x4ae1cb);});}['ap'](t){if(t['alternatives']){let _0x5af0e6=Z(this['cfg']['externalSourcesPreferredTypes']);for(let _0x2c1b24 of _0x5af0e6){let _0x322ccf=sl(_0x2c1b24);for(let [_0x1c03af,_0xd84a47]of Object['entries'](t['alternatives']))if(_0x322ccf['test'](_0x1c03af))return _0xd84a47;}}return t['url'];}['lp'](t){this['Zl']=t['isVisible'];}async['cp'](t){this['cfg']['multiple']===t['isMultipleMode']?(this['up'](t['selectedCount'],t['total']),this['$s']=t['isReady']?'':'uc-hidden',this['Is']=t['isReady'],this['Ps']=t['isReady']&&t['selectedFiles']['length']>0x0,this['Or']=t['isMultipleMode']&&t['total']>0x0,this['Ls']=t['selectedCount']<t['total'],this['Rs']=t['selectedCount']===t['total'],this['Os']=t['selectedFiles']??[],this['Us']=t['total']>0x0):console['error']('Multiple\x20mode\x20mismatch');}['ec'](){this['Jl'](this['cfg']['externalSourcesEmbedCss']),this['dp'](),this['Ql']();}['dp'](){this['ne']?.['send']({'type':'set-theme-definition','theme':nl(this)});}['Jl'](t){this['ne']?.['send']({'type':'set-embed-css','css':t});}['Ql'](){this['ne']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['pp'](){let {pubkey:t,remoteTabSessionKey:_0x496526,socialBaseUrl:_0x1de5ed,multiple:_0x1efd22}=this['cfg'],{externalSourceType:_0x4adf52}=this['activityParams'],_0x62a972=xd[_0x4adf52]??_0x4adf52,_0x16b6fb={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':t,'images_only':'false','session_key':_0x496526,'wait_for_theme':!0x0,'multiple':_0x1efd22['toString'](),'origin':this['cfg']['topLevelOrigin']||ol(),'debug':this['cfg']['debug']},_0x19cc00=new URL('/window4/'+_0x62a972,_0x1de5ed);return _0x19cc00['search']=al(_0x16b6fb),_0x19cc00['toString']();}['up'](t,_0x1226f7){this['Mr']={'selectedCount':t,'total':_0x1226f7};}['Yl'](){let t=document['createElement']('iframe');t['src']=this['pp'](),t['marginHeight']=0x0,t['marginWidth']=0x0,t['frameBorder']='0',t['allowTransparency']=!0x0,t['addEventListener']('load',this['ec']['bind'](this)),t['addEventListener']('load',this['ec']['bind'](this)),this['Vt']['value']&&(this['Vt']['value']['innerHTML']='',this['Vt']['value']['appendChild'](t)),t['contentWindow']&&(this['ne']?.['destroy'](),this['ne']=new ro(t['contentWindow'],()=>this['cfg']['socialBaseUrl']),this['ne']['on']('selected-files-change',this['cp']['bind'](this)),this['ne']['on']('toolbar-state-change',this['lp']['bind'](this)),this['tc']());}['Xl'](){this['ne']?.['destroy'](),this['ne']=void 0x0,this['Vt']['value']&&(this['Vt']['value']['innerHTML']=''),this['tc']();}['tc'](){this['Os']=[],this['Is']=!0x1,this['Ps']=!0x1,this['Ls']=!0x1,this['Rs']=!0x1,this['Or']=!0x1,this['Us']=!0x1,this['$s']='uc-hidden',this['Mr']=null;}['disconnectedCallback'](){super['disconnectedCallback'](),this['Xl']();}['render'](){return v`<uc-activity-header><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*historyBack']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><div class="uc-content"><div ${O(this['Vt'])} class="uc-iframe-wrapper"></div><div class="uc-toolbar" ?hidden=${!this['Zl']}><button type="button" class="uc-cancel-btn uc-secondary-btn" @click=${this['Ee']}>${this['l10n']('cancel')}</button><div class="uc-selection-status-box" ?hidden=${!this['Or']}><span>${this['np']}</span><button type="button" @click=${this['hp']} ?hidden=${!this['Ls']}>${this['l10n']('select-all')}</button><button type="button" @click=${this['fp']} ?hidden=${!this['Rs']}>${this['l10n']('deselect-all')}</button></div><button type="button" class="uc-done-btn uc-primary-btn" @click=${this['Ko']} ?disabled=${!this['Ps']} ?hidden=${!this['Us']} ><uc-spinner ?hidden=${this['Is']}></uc-spinner><span class=${this['$s']}>${this['l10n']('done')}</span></button></div></div>`;}};p([m()],ht['prototype'],'Os',0x2),p([m()],ht['prototype'],'Is',0x2),p([m()],ht['prototype'],'Ps',0x2),p([m()],ht['prototype'],'Ls',0x2),p([m()],ht['prototype'],'Rs',0x2),p([m()],ht['prototype'],'Or',0x2),p([m()],ht['prototype'],'Us',0x2),p([m()],ht['prototype'],'$s',0x2),p([m()],ht['prototype'],'Zl',0x2);var ll=()=>typeof navigator['permissions']<'u',Sd={'width':{'ideal':0x780},'height':{'ideal':0x438},'frameRate':{'ideal':0x1e}},Ad=['camera','microphone'];function oo(_0x26de42){return Math['floor'](_0x26de42/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x26de42%0x3c)['toString']()['padStart'](0x2,'0');}var cl='image/jpeg',ul='video/webm',_=class extends R{constructor(){super(...arguments),this['couldBeCtxOwner']=!0x0,this['Ir']=null,this['Ds']=!0x1,this['Si']=[],this['me']=null,this['ge']=null,this['Pr']=null,this['Lr']=null,this['g']=null,this['Ai']={},this['fe']=null,this['e']=null,this['_t']=[],this['Bt']=[],this['mp']={},this['Rr']=[],this['Ur']=null,this['ic']=()=>{this['rc'](),this['ki']='pause';},this['oc']=()=>{this['ki']='play',this['gp']();},this['Mi']=I(),this['Xe']=I(),this['K']=I(),this['sc']=0x0,this['nc']=0x0,this['ac']=null,this['$r']=!0x0,this['Dr']=!0x0,this['vp']=ll(),this['cc']=[],this['ot']=!0x0,this['Fs']='',this['zt']=!0x0,this['at']=!0x0,this['Ht']=!0x0,this['uc']=[],this['pt']=!0x0,this['Ns']=!0x0,this['mt']=!0x0,this['Ce']=!0x0,this['gt']=!0x0,this['Kt']='camera-full',this['ki']='play',this['dc']='microphone',this['Fr']='uc-shot-btn\x20uc-camera-action',this['yp']=()=>{if(this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'start-camera','node':this['tagName'],'tabId':this['g']}}}),this['g']===P['PHOTO']&&this['bp'](),this['g']===P['VIDEO']){if('recording'===this['me']?.['state'])return void this['pc']();this['wp']();}},this['Tp']=t=>{let _0x37cb39=t['target'];_0x37cb39&&(this['Lr']=_0x37cb39['value'],this['jt']());},this['Ep']=t=>{let _0x15b3ed=t['target'];_0x15b3ed&&(this['Pr']=_0x15b3ed['value'],this['jt']());},this['xp']=()=>{this['jt']();},this['Cp']=()=>{this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'shot-camera','node':this['tagName'],'tabId':this['g']}}}),this['yp']();},this['Sp']=()=>{this['Ap']();},this['kp']=()=>{this['Mp']();},this['Op']=()=>{this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'retake-camera','node':this['tagName'],'tabId':this['g']}}}),this['Ip']();},this['Pp']=()=>{this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'accept-camera','node':this['tagName'],'tabId':this['g']}}}),this['Lp']();},this['hc']=t=>{let _0x46dee2=t['currentTarget']?.['getAttribute']('data-id');_0x46dee2&&this['fc'](_0x46dee2);},this['mc']=()=>{let t=Math['floor']((performance['now']()-this['sc']+this['nc'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){let _0x42d0f5=this['cfg']['maxVideoRecordingDuration']-t;if(_0x42d0f5<=0x0){let _0x262f53=this['Mi']['value'];return _0x262f53&&(_0x262f53['textContent']=oo(_0x42d0f5)),void this['pc']();}let _0x839b52=this['Mi']['value'];_0x839b52&&(_0x839b52['textContent']=oo(_0x42d0f5));}else{let _0x2a4e82=this['Mi']['value'];_0x2a4e82&&(_0x2a4e82['textContent']=oo(t));}this['Gt']=requestAnimationFrame(this['mc']);},this['Rp']=()=>{this['sc']=performance['now'](),this['nc']=0x0,this['mc']();},this['gc']=()=>{this['Gt']&&cancelAnimationFrame(this['Gt']);},this['rc']=()=>{let t=this['K']['value'];if(!t)return;let _0x34767a=t['currentTime'],_0x5f128d=t['duration']||0x1,_0x44f7b2=this['Xe']['value'];_0x44f7b2&&(_0x44f7b2['style']['transform']='scaleX('+_0x34767a/_0x5f128d+')');let _0x31a116=this['Mi']['value'];_0x31a116&&(_0x31a116['textContent']=oo(_0x34767a)),this['Gt']=requestAnimationFrame(this['rc']);},this['gp']=()=>{this['Gt']&&cancelAnimationFrame(this['Gt']);},this['Gt']=null,this['wp']=()=>{try{this['Si']=[],this['Ai']={...this['cfg']['mediaRecorderOptions']};let {mimeType:t}=this['cfg']['mediaRecorderOptions']||{};t&&MediaRecorder['isTypeSupported'](t)?this['Ai']['mimeType']=t:MediaRecorder['isTypeSupported'](ul)?this['Ai']['mimeType']=ul:this['Ai']['mimeType']='video/mp4',this['ge']&&(this['me']=new MediaRecorder(this['ge'],this['Ai']),this['me']['start'](),this['me']['addEventListener']('dataavailable',_0x5e0678=>{this['Si']['push'](_0x5e0678['data']);}),this['Rp'](),this['classList']['add']('uc-recording'),this['Oi'](Ct['PLAY']));}catch(_0x296658){console['error']('Failed\x20to\x20start\x20recording',_0x296658),this['telemetryManager']['sendEventError'](_0x296658,'camera\x20recording.\x20Failed\x20to\x20start\x20recording');}},this['pc']=()=>{this['me']?.['addEventListener']('stop',()=>{this['Up'](),this['gc'](),this['Oi'](Ct['STOP']);}),this['me']?.['stop'](),this['classList']['remove']('uc-recording'),this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'stop-camera','node':this['tagName'],'tabId':this['g']}}});},this['Ap']=()=>{if('recording'===this['me']?.['state'])return;let t=this['K']['value'];t&&(!t['paused']&&!t['ended']&&t['readyState']>0x2?t['pause']():t['paused']&&t['play']());},this['Mp']=()=>{this['ge']?.['getAudioTracks']()['forEach'](t=>{t['enabled']=!t['enabled'],this['dc']=t['enabled']?'microphone':'microphone-mute',this['Ns']=!t['enabled'];});},this['Up']=()=>{try{let t=new Blob(this['Si'],{'type':this['me']?.['mimeType']}),_0x441a48=URL['createObjectURL'](t),_0x3f54ba=this['K']['value'];if(!_0x3f54ba)return;_0x3f54ba['muted']=!0x1,_0x3f54ba['volume']=0x1,this['Ii'](null),_0x3f54ba['src']=_0x441a48,this['$p'](_0x3f54ba);}catch(_0x2187a3){console['error']('Failed\x20to\x20preview\x20video',_0x2187a3),this['telemetryManager']['sendEventError'](_0x2187a3,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}},this['Ip']=()=>{if(this['Oi'](Ct['RETAKE']),this['g']===P['VIDEO']){this['Ii'](this['ge']);let t=this['K']['value'];t&&(t['muted']=!0x0);}this['K']['value']?.['play']?.();},this['Lp']=()=>{if(this['Oi'](Ct['ACCEPT']),this['g']===P['PHOTO'])return void this['fe']?.['toBlob'](_0x96ed50=>{if(!_0x96ed50)return;let _0x558d8d=this['vc']('camera','jpeg',cl,_0x96ed50);this['yc'](_0x558d8d);},cl);let t=new Blob(this['Si'],{'type':this['me']?.['mimeType']}),_0x36ba31=this['Dp'](this['me']?.['mimeType']),_0x4e3302=this['vc']('video',_0x36ba31,'video/'+_0x36ba31,t);this['yc'](_0x4e3302),this['Si']=[];},this['Fp']=t=>{t===Ct['SHOT']&&(this['gt']=!0x0,this['at']=!0x0,this['Ce']=!0x0,this['Ht']=!0x1,this['ot']=!0x0),(t===Ct['RETAKE']||t===Ct['ACCEPT'])&&(this['gt']=!this['Se']['includes'](P['VIDEO']),this['Ce']=!this['Se']['includes'](P['PHOTO']),this['at']=!0x1,this['Ht']=!0x0,this['ot']=this['_t']['length']<=0x1);},this['Np']=t=>{t===Ct['PLAY']&&(this['zt']=!0x1,this['Ce']=!0x0,this['ot']=!0x0,this['pt']=!0x0,this['ki']='pause',this['Kt']='square',this['Fr']='uc-shot-btn\x20uc-camera-action\x20uc-stop-record'),t===Ct['STOP']&&(this['zt']=!0x1,this['at']=!0x0,this['mt']=!0x0,this['Ht']=!0x1),(t===Ct['RETAKE']||t===Ct['ACCEPT'])&&(this['zt']=!0x0,this['gt']=!this['Se']['includes'](P['VIDEO']),this['Ce']=!this['Se']['includes'](P['PHOTO']),this['at']=!0x1,this['Ht']=!0x0,this['mt']=!this['cfg']['enableAudioRecording'],this['Kt']='video-camera-full',this['Fr']='uc-shot-btn\x20uc-camera-action',this['pt']=!this['cfg']['enableAudioRecording']||this['Bt']['length']<=0x1,this['ot']=this['_t']['length']<=0x1);},this['Oi']=t=>{this['g']===P['PHOTO']&&('shot'===t||'retake'===t||'accept'===t)&&this['Fp'](t),this['g']===P['VIDEO']&&('play'===t||'stop'===t||'retake'===t||'accept'===t||'pause'===t||'resume'===t)&&this['Np'](t);},this['fc']=t=>{t===P['PHOTO']&&(this['Kt']='camera-full',this['pt']=!0x0,this['mt']=!0x0),t===P['VIDEO']&&(this['ki']='play',this['Kt']='video-camera-full',this['pt']=!this['cfg']['enableAudioRecording']||this['Bt']['length']<=0x1,this['mt']=!this['cfg']['enableAudioRecording']),this['telemetryManager']['sendEvent']({'eventType':D['ACTION_EVENT'],'payload':{'metadata':{'event':'camera-tab-switch','node':this['tagName'],'tabId':t}}}),this['g']=t;},this['vc']=(t,_0x4bc756,_0x1ced00,_0x12edab)=>{let _0xb54413=Date['now']();return new File([_0x12edab],t+'-'+_0xb54413+'.'+_0x4bc756,{'lastModified':_0xb54413,'type':_0x1ced00});},this['yc']=t=>{this['api']['addFileFromObject'](t,{'source':N['CAMERA']}),this['set$']({'*currentActivity':x['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](x['activities']['UPLOAD_LIST']);},this['Pi']=$(t=>{this['classList']['toggle']('uc-initialized','granted'===t);let _0x18c340=this['g']===P['VIDEO']&&this['cfg']['enableAudioRecording'],_0x55a41e=this['g']===P['PHOTO']?'camera-full':'video-camera-full';'granted'===t?(this['$r']=!0x1,this['at']=!0x1,this['Ce']=!this['Se']['includes'](P['PHOTO']),this['gt']=!this['Se']['includes'](P['VIDEO']),this['Dr']=!0x0,this['zt']=!0x0,this['Kt']=_0x55a41e,this['mt']=!_0x18c340,this['pt']=!_0x18c340):'prompt'===t?(this['Fs']='camera-permissions-prompt',this['$r']=!0x0,this['at']=!0x0,this['Ce']=!0x0,this['Dr']=!0x1,this['Bs']()):(this['Fs']='camera-permissions-denied',this['$r']=!0x0,this['Dr']=!0x1,this['Ce']=!this['Se']['includes'](P['PHOTO']),this['gt']=!this['Se']['includes'](P['VIDEO']),this['Ht']=!0x0,this['Fr']='uc-shot-btn\x20uc-camera-action',this['Bs']());},0x12c),this['Vp']=()=>{if(!this['ge'])return!0x1;let t=this['ge']?.['getAudioTracks'](),_0x3b0b71=this['ge']?.['getVideoTracks']();return t['forEach'](_0x2318f7=>{_0x2318f7['stop']();}),_0x3b0b71['forEach'](_0x2455fa=>{_0x2455fa['stop']();}),!0x0;},this['Bs']=()=>{this['Ds']&&(this['K']['value']&&(this['K']['value']['volume']=0x0),this['Ur']?.['getTracks']?.()?.[0x0]?.['stop'](),this['Vs'](this['K']['value']),this['Ii'](null),this['Vp'](),this['gc'](),this['Ds']=!0x1);},this['jt']=async()=>{let t={'video':{...Sd},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['Lr']&&(t['video']={'deviceId':{'exact':this['Lr']}}),this['Pr']&&this['cfg']['enableAudioRecording']&&(t['audio']={'deviceId':{'exact':this['Pr']}}),this['K']['value']&&(this['K']['value']['volume']=0x0);try{this['Pi']('prompt'),this['ge']=await navigator['mediaDevices']['getUserMedia'](t),this['ge']['addEventListener']('inactive',()=>{this['Pi']('denied');}),this['Ii'](this['ge']),this['Ds']=!0x0,this['Pi']('granted');}catch(_0x1b3791){this['Pi']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x1b3791),this['telemetryManager']['sendEventError'](_0x1b3791,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}},this['bc']=()=>{this['jt']();},this['_p']=async()=>{try{this['Nr']();for(let t of Ad){let _0x48a623=await navigator['permissions']['query']({'name':t});this['mp'][t]=_0x48a623,_0x48a623['addEventListener']('change',this['bc']),this['Rr']['push'](()=>{_0x48a623['removeEventListener']('change',this['bc']);});}this['Ir']=()=>{this['Nr']();};}catch(_0x305ec0){this['Nr'](),console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x305ec0),this['telemetryManager']['sendEventError'](_0x305ec0,'camera\x20permissions.\x20Failed\x20to\x20use\x20permissions\x20API'),this['jt']();}},this['Bp']=async()=>{try{await navigator['mediaDevices']['getUserMedia']({'video':!0x0,'audio':this['cfg']['enableAudioRecording']}),await this['zs'](),navigator['mediaDevices']['addEventListener']('devicechange',this['zs']);}catch(_0x1d7742){this['telemetryManager']['sendEventError'](_0x1d7742,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0x1d7742);}},this['zs']=async()=>{try{let t=await navigator['mediaDevices']['enumerateDevices']();this['_t']=t['filter'](_0x251e1a=>'videoinput'===_0x251e1a['kind'])['map']((_0x1b238c,_0x53a65e)=>({'text':_0x1b238c['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x53a65e+0x1),'value':_0x1b238c['deviceId']})),this['Bt']=this['cfg']['enableAudioRecording']?t['filter'](_0x164ab8=>'audioinput'===_0x164ab8['kind'])['map'](_0x4bcbd2=>({'text':_0x4bcbd2['label']['trim'](),'value':_0x4bcbd2['deviceId']})):[],this['cc']=this['_t'],this['ot']=this['_t']['length']<=0x1,this['Lr']=this['_t'][0x0]?.['value']??null,this['uc']=this['Bt'],this['pt']=!this['cfg']['enableAudioRecording']||this['Bt']['length']<=0x1,this['Pr']=this['Bt'][0x0]?.['value']??null;}catch(_0xf8321d){this['telemetryManager']['sendEventError'](_0xf8321d,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0xf8321d);}},this['zp']=async()=>{await this['_p'](),await this['Bp'](),await this['jt'](),this['wc'](this['Se']);},this['Hp']=async()=>{this['Ir']&&this['Ir'](),window['chrome']||this['Pi']('denied'),this['Bs']();},this['wc']=t=>{this['gt']=!t['includes'](P['VIDEO']),this['Ce']=!t['includes'](P['PHOTO']);let _0x4c84f8=t[0x0];_0x4c84f8&&(!this['g']||!t['includes'](this['g']))&&this['fc'](_0x4c84f8);};}['$p'](t){this['Vs'](t),t['addEventListener']('play',this['ic']),t['addEventListener']('pause',this['oc']);}['Vs'](t){t?.['removeEventListener']('play',this['ic']),t?.['removeEventListener']('pause',this['oc']);}['Ii'](t){this['Ur']!==t&&(this['Ur']=t,this['_s']());}['_s'](){let t=this['K']['value'];if(!t)return;let _0x772e2d=this['Ur']??null;t['srcObject']!==_0x772e2d&&(t['srcObject']=_0x772e2d);}['bp'](){if(this['Oi']('shot'),this['fe']=document['createElement']('canvas'),this['e']=this['fe']['getContext']('2d'),!this['e'])throw new Error('Failed\x20to\x20get\x20canvas\x20context');let t=this['K']['value'];if(!t)throw new Error('Video\x20element\x20not\x20found');this['fe']['height']=t['videoHeight'],this['fe']['width']=t['videoWidth'],this['cfg']['cameraMirror']&&(this['e']['translate'](this['fe']['width'],0x0),this['e']['scale'](-0x1,0x1)),this['e']['drawImage'](t,0x0,0x0),t['pause']();}['Dp'](t){let _0x533314={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===t)return'webm';if(t){let _0x5bb60e=t['split']('/');if('video'===_0x5bb60e?.[0x0]){let _0x32e7b5=_0x5bb60e['slice'](0x1)['join']('/')?.['split'](';')[0x0];if(_0x32e7b5&&_0x533314[_0x32e7b5])return _0x533314[_0x32e7b5];}}return'avi';}get['Se'](){return Z(this['cfg']['cameraModes'])['filter'](t=>t===P['PHOTO']||t===P['VIDEO']);}['Nr'](){if(0x0!==this['Rr']['length']){for(let t of this['Rr'])t();this['Rr']=[],this['Ir']=null;}}['initCallback'](){super['initCallback'](),this['subConfigValue']('cameraMirror',t=>{this['ac']=t?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',t=>{this['mt']=!t,this['Ns']=!t;}),this['subConfigValue']('cameraModes',t=>{if(!this['isConnected'])return;let _0x896fb3=K(t);this['wc'](_0x896fb3['filter'](_0x528565=>_0x528565===P['PHOTO']||_0x528565===P['VIDEO']));}),this['zp']();}['firstUpdated'](t){super['firstUpdated'](t),this['_s']();}['updated'](t){super['updated'](t),this['_s']();}['Kp'](){this['Nr'](),navigator['mediaDevices']?.['removeEventListener']('devicechange',this['zs']),this['Vs'](this['K']['value']),this['Ii'](null);}['disconnectedCallback'](){super['disconnectedCallback'](),this['Hp'](),this['Kp']();}['render'](){return v`<uc-activity-header><button type="button" class="uc-mini-btn" @click=${this['$']['*historyBack']} title=${this['l10n']('back')} ><uc-icon name="back"></uc-icon></button><div ?hidden=${!this['ot']}><uc-icon name="camera"></uc-icon><span>${this['l10n']('caption-camera')}</span></div><uc-select class="uc-camera-select" .options=${this['cc']} ?hidden=${this['ot']} @change=${this['Tp']} ></uc-select><button type="button" class="uc-mini-btn uc-close-btn" @click=${this['$']['*closeModal']} title=${this['l10n']('a11y-activity-header-button-close')} aria-label=${this['l10n']('a11y-activity-header-button-close')} ><uc-icon name="close"></uc-icon></button></uc-activity-header><div class="uc-content"><video muted autoplay playsinline style=${Ae({'transform':this['ac']})} ?hidden=${this['$r']} ${O(this['K'])} ></video><div class="uc-message-box" ?hidden=${this['Dr']}><span>${this['l10n'](this['Fs'])}</span><button type="button" @click=${this['xp']} ?hidden=${this['vp']} >${this['l10n']('camera-permissions-request')}</button></div></div><div class="uc-controls"><div class="uc-switcher" ?hidden=${!this['zt']}><button data-id="photo" type="button" class=${Pt({'uc-switch':!0x0,'uc-mini-btn':!0x0,'uc-active':this['g']===P['PHOTO']})} @click=${this['hc']} ?hidden=${this['Ce']} data-testid="tab-photo" ><uc-icon name="camera"></uc-icon></button><button data-id="video" type="button" class=${Pt({'uc-switch':!0x0,'uc-mini-btn':!0x0,'uc-active':this['g']===P['VIDEO']})} @click=${this['hc']} ?hidden=${this['gt']} data-testid="tab-video" ><uc-icon name="video-camera"></uc-icon></button></div><button class="uc-secondary-btn uc-recording-timer" @click=${this['Sp']} ?hidden=${this['zt']} data-testid="recording-timer" ><uc-icon name=${this['ki']}></uc-icon><span ${O(this['Mi'])}> 00:00 </span><span ${O(this['Xe'])} class="uc-line"></span></button><div class="uc-camera-actions uc-camera-action" ?hidden=${this['Ht']} ><button type="button" class="uc-secondary-btn" @click=${this['Op']}> Retake </button><button type="button" class="uc-primary-btn" @click=${this['Pp']} data-testid="accept" > Accept </button></div><button type="button" data-testid="shot" @click=${this['Cp']} class=${this['Fr']} ?hidden=${this['at']} ><uc-icon name=${this['Kt']}></uc-icon></button><div class="uc-select"><button type="button" class="uc-mini-btn uc-btn-microphone" @click=${this['kp']} ?hidden=${this['mt']} data-testid="toggle-microphone" ><uc-icon name=${this['dc']}></uc-icon></button><uc-select class="uc-audio-select" .options=${this['uc']} ?hidden=${this['pt']} ?disabled=${this['Ns']} @change=${this['Ep']} data-testid="audio-select" ></uc-select></div></div>`;}};p([m()],_['prototype'],'ac',0x2),p([m()],_['prototype'],'$r',0x2),p([m()],_['prototype'],'Dr',0x2),p([m()],_['prototype'],'vp',0x2),p([m()],_['prototype'],'cc',0x2),p([m()],_['prototype'],'ot',0x2),p([m()],_['prototype'],'Fs',0x2),p([m()],_['prototype'],'zt',0x2),p([m()],_['prototype'],'at',0x2),p([m()],_['prototype'],'Ht',0x2),p([m()],_['prototype'],'uc',0x2),p([m()],_['prototype'],'pt',0x2),p([m()],_['prototype'],'Ns',0x2),p([m()],_['prototype'],'mt',0x2),p([m()],_['prototype'],'Ce',0x2),p([m()],_['prototype'],'gt',0x2),p([m()],_['prototype'],'Kt',0x2),p([m()],_['prototype'],'ki',0x2),p([m()],_['prototype'],'dc',0x2),p([m()],_['prototype'],'Fr',0x2);var dl={'id':'camera','setup':async({pluginApi:_0x5beee5,uploaderApi:_0x3a5348})=>{mt({'CameraSource':_}),_0x5beee5['registry']['registerSource']({'id':'camera','label':'src-type-camera','icon':'camera','expand':()=>{if(!_n['htmlMediaCapture'])return['camera'];let t=K(_0x5beee5['config']['get']('cameraModes'));return t['length']?t['map'](_0x21e2e2=>'mobile-'+_0x21e2e2+'-camera'):['mobile-photo-camera'];},'onSelect':()=>{_0x3a5348['setCurrentActivity'](F['CAMERA']),_0x3a5348['setModalState'](!0x0);}}),_0x5beee5['registry']['registerSource']({'id':'mobile-photo-camera','label':'src-type-mobile-photo-camera','icon':'camera','onSelect':()=>{_0x3a5348['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'photo'});}}),_0x5beee5['registry']['registerSource']({'id':'mobile-video-camera','label':'src-type-mobile-video-camera','icon':'camera','onSelect':()=>{_0x3a5348['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'video'});}}),_0x5beee5['registry']['registerActivity']({'id':F['CAMERA'],'render':t=>{let _0x244ae9=document['createElement']('uc-camera-source');return t['append'](_0x244ae9),()=>{t['replaceChildren']();};}});}},Ls={};Ds(Ls,{'BtnUi':()=>xt,'CloudImageEditor':()=>io,'CloudImageEditorBlock':()=>et,'Config':()=>Xe,'CropFrame':()=>Pi,'EditorAspectRatioButtonControl':()=>Ri,'EditorCropButtonControl':()=>$i,'EditorFilterControl':()=>Yt,'EditorFreeformButtonControl':()=>eo,'EditorImageCropper':()=>Li,'EditorImageFader':()=>Qr,'EditorOperationControl':()=>Di,'EditorScroller':()=>Fi,'EditorSlider':()=>Ui,'EditorToolbar':()=>pt,'Icon':()=>ae,'LineLoaderUi':()=>Oi,'PresenceToggle':()=>Je,'SliderUi':()=>Vt,'defineComponents':()=>mt});var kd='cloud-image-editor',Md='<svg\x20viewBox=\x270\x200\x2024\x2024\x27\x20xmlns=\x27http://www.w3.org/2000/svg\x27><path\x20fill=\x27currentColor\x27\x20fill-rule=\x27evenodd\x27\x20d=\x27M18.558\x202.804a.78.78\x200\x200\x200-.557.235l-.008.007-2.472\x202.46\x203.847\x203.848\x202.46-2.473.004-.003a.78.78\x200\x200\x200\x200-1.108l-.004-.003-2.712-2.728a.78.78\x200\x200\x200-.558-.235Zm-.248\x207.613-3.852-3.852-8.93\x208.887-1.516\x205.41\x205.41-1.515\x208.888-8.93Zm-.636-8.934a2.28\x202.28\x200\x200\x201\x202.512.505l2.702\x202.717.002.002a2.278\x202.278\x200\x200\x201\x200\x203.234l-.002.002-12.541\x2012.602a.75.75\x200\x200\x201-.33.193l-6.884\x201.928a.75.75\x200\x200\x201-.925-.924l1.928-6.885a.75.75\x200\x200\x201\x20.193-.33l12.603-12.54a2.28\x202.28\x200\x200\x201\x20.742-.504Z\x27\x20clip-rule=\x27evenodd\x27/></svg>',pl={'id':kd,'setup':async({pluginApi:_0xfb5b8e,uploaderApi:_0x47a15d})=>(mt({...Ls,...Ps}),_0xfb5b8e['registry']['registerIcon']({'name':'edit-file','svg':Md}),_0xfb5b8e['registry']['registerFileAction']({'id':'edit-file','icon':'edit-file','label':'file-item-edit-button','shouldRender':_0x4378cd=>!(!_0x4378cd['isImage']||!_0x4378cd['cdnUrl']),'onClick':_0x315ec4=>{_0x47a15d['setCurrentActivity']?.(F['CLOUD_IMG_EDIT'],{'internalId':_0x315ec4['internalId']}),_0x47a15d['setModalState']?.(!0x0);}}),_0xfb5b8e['registry']['registerActivity']({'id':F['CLOUD_IMG_EDIT'],'render':_0xe3989e=>{let _0x32c57c=document['createElement']('uc-cloud-image-editor-activity');return _0xe3989e['append'](_0x32c57c),()=>{_0xe3989e['replaceChildren']();};}}),_0x47a15d['on'](k['FILE_UPLOAD_SUCCESS'],_0x861df2=>{if(!_0x861df2['isImage'])return;let _0x344efe=_0xfb5b8e['config']['get']('cropPreset'),_0x4be876=_0xfb5b8e['config']['get']('useCloudImageEditor'),_0x71d2aa=_0xfb5b8e['config']['get']('cloudImageEditorAutoOpen'),_0x3e5fd0=_0x47a15d['v']['size'];_0x4be876&&0x1===_0x3e5fd0&&(_0x344efe||_0x71d2aa)&&(_0x47a15d['setCurrentActivity']?.(F['CLOUD_IMG_EDIT'],{'internalId':_0x861df2['internalId']}),_0x47a15d['setModalState']?.(!0x0));}))},hl={'id':'external-sources','setup':async({pluginApi:_0xf0e60c,uploaderApi:_0x330d92})=>{mt({'ExternalSource':ht}),_0xf0e60c['registry']['registerActivity']({'id':F['EXTERNAL'],'render':t=>{let _0x39db1b=document['createElement']('uc-external-source');return t['append'](_0x39db1b),()=>{t['replaceChildren']();};}});for(let t of Object['values'](ut))_0xf0e60c['registry']['registerSource']({'id':t,'label':'src-type-'+t,'icon':t,'onSelect':()=>{_0x330d92['setCurrentActivity'](F['EXTERNAL'],{'externalSourceType':t}),_0x330d92['setModalState'](!0x0);}});}},no=()=>{let _0x32a336=[];return{'stack':_0x32a336,'promiseReadJpegChunks':t=>new Promise((_0x3cfdb4,_0x4d2fad)=>{let _0x60a030=0x2,_0x43d4a3=(_0x550cc3,_0x531289)=>{let _0x4be26e=new FileReader();_0x4be26e['addEventListener']('load',()=>{_0x531289(new DataView(_0x4be26e['result']));}),_0x4be26e['addEventListener']('error',_0x4a5bda=>{_0x4d2fad('Reader\x20error:\x20'+_0x4a5bda);}),_0x4be26e['readAsArrayBuffer'](_0x550cc3);},_0x35129d=()=>_0x43d4a3(t['slice'](_0x60a030,_0x60a030+0x80),_0x4065d9=>{let _0x2b6c1c,_0xbb3763,_0x59069f;for(_0x2b6c1c=_0xbb3763=0x0,_0x59069f=_0x4065d9['byteLength'];_0x59069f>=0x0?_0xbb3763<_0x59069f:_0xbb3763>_0x59069f;_0x2b6c1c=_0x59069f>=0x0?++_0xbb3763:--_0xbb3763)if(0xff===_0x4065d9['getUint8'](_0x2b6c1c)){_0x60a030+=_0x2b6c1c;break;}_0x56ae24();}),_0x56ae24=()=>{let _0x162781=_0x60a030;return _0x43d4a3(t['slice'](_0x60a030,_0x60a030+=0x4),_0x2fde69=>{if(0x4!==_0x2fde69['byteLength']||0xff!==_0x2fde69['getUint8'](0x0))return void _0x4d2fad('Corrupted');let _0x3ff6b5=_0x2fde69['getUint8'](0x1);if(0xda===_0x3ff6b5)return void _0x3cfdb4(!0x0);let _0x11bad2=_0x2fde69['getUint16'](0x2)-0x2;return _0x43d4a3(t['slice'](_0x60a030,_0x60a030+=_0x11bad2),_0x5729bc=>{_0x5729bc['byteLength']===_0x11bad2?(_0x32a336['push']({'startPos':_0x162781,'length':_0x11bad2,'marker':_0x3ff6b5,'view':_0x5729bc}),_0x35129d()):_0x4d2fad('Corrupted');});});};FileReader&&DataView||_0x4d2fad('Not\x20Support'),_0x43d4a3(t['slice'](0x0,0x2),_0x38efc1=>{0xffd8!==_0x38efc1['getUint16'](0x0)&&_0x4d2fad('Not\x20jpeg'),_0x35129d();});})};},Id=async _0xeefa38=>{let _0x113f58=[],{promiseReadJpegChunks:t,stack:_0x4aeaec}=no();return await t(_0xeefa38),_0x4aeaec['forEach'](({marker:_0x3d288d,view:_0x5e8f7b})=>{0xe2===_0x3d288d&&0x4943435f===_0x5e8f7b['getUint32'](0x0)&&0x50524f46===_0x5e8f7b['getUint32'](0x4)&&0x494c4500===_0x5e8f7b['getUint32'](0x8)&&_0x113f58['push'](_0x5e8f7b);}),_0x113f58;},ml=async(_0x2ece00,_0x3b6707,t)=>{{let _0x3ef87b=[],_0x4dab41=[],{promiseReadJpegChunks:_0x2c75fe,stack:_0x539c94}=no();await _0x2c75fe(_0x2ece00),_0x539c94['forEach'](_0x2a8a9d=>{if(_0x2a8a9d['marker']===_0x3b6707)return _0x3ef87b['push'](_0x2a8a9d['startPos']),_0x4dab41['push'](_0x2a8a9d['length']);});let _0x256e45=[_0x2ece00['slice'](0x0,0x2)];for(let _0x4429ec of t){let _0x5f40d0=new DataView(new ArrayBuffer(0x4));_0x5f40d0['setUint16'](0x0,0xff00+_0x3b6707),_0x5f40d0['setUint16'](0x2,_0x4429ec['byteLength']+0x2),_0x256e45['push'](_0x5f40d0['buffer']),_0x256e45['push'](_0x4429ec);}let _0x44be3b=0x2;for(let _0x136d65=0x0;_0x136d65<_0x3ef87b['length'];_0x136d65++)_0x3ef87b[_0x136d65]>_0x44be3b&&_0x256e45['push'](_0x2ece00['slice'](_0x44be3b,_0x3ef87b[_0x136d65])),_0x44be3b=_0x3ef87b[_0x136d65]+_0x4dab41[_0x136d65]+0x4;return _0x256e45['push'](_0x2ece00['slice'](_0x44be3b,_0x2ece00['size'])),new Blob(_0x256e45,{'type':_0x2ece00['type']});}},gl=(_0x2aca01,_0x2765a1)=>ml(_0x2aca01,0xe2,_0x2765a1['map'](t=>t['buffer'])),Od=async _0x12e62b=>{try{return await gl(_0x12e62b,[]);}catch(_0x2fc218){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x2fc218);}},Pd=(_0x14d63c,_0x343bb7,t)=>new Promise((_0xa1c7b4,_0x4efe7a)=>{_0x14d63c['toBlob'](_0x2b5e37=>{_0x2b5e37?_0xa1c7b4(_0x2b5e37):_0x4efe7a('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x343bb7,t),_0x14d63c['width']=_0x14d63c['height']=0x1;}),Ni=()=>{let _0x5dbbb4=document['createElement']('canvas'),_0x140f3d=_0x5dbbb4['getContext']('2d');return{'canvas':_0x5dbbb4,'ctx':_0x140f3d};},Ld=_0x414913=>{let {ctx:t,canvas:_0x5ae484}=Ni();_0x5ae484['width']=_0x5ae484['height']=0x32,t['drawImage'](_0x414913,0x0,0x0,0x32,0x32);let _0xff4bea=t['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x5ae484['width']=_0x5ae484['height']=0x1;for(let _0x4cead1=0x3;_0x4cead1<_0xff4bea['length'];_0x4cead1+=0x4)if(_0xff4bea[_0x4cead1]<0xfe)return!0x0;return!0x1;},Ud=async _0xa949e3=>{let _0x5510f5=null,{promiseReadJpegChunks:t,stack:_0x55c2bc}=no();return await t(_0xa949e3),_0x55c2bc['forEach'](({marker:_0x192bfe,view:_0x28a124})=>{!_0x5510f5&&0xe1===_0x192bfe&&_0x28a124['byteLength']>=0xe&&0x45786966===_0x28a124['getUint32'](0x0)&&0x0===_0x28a124['getUint16'](0x4)&&(_0x5510f5=_0x28a124);}),_0x5510f5;},Rd='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=',so,$d=()=>new Promise(_0x4a38a5=>{if(void 0x0!==so)_0x4a38a5(so);else{let _0x5b1a78=new Image();_0x5b1a78['addEventListener']('load',()=>{so=_0x5b1a78['naturalWidth']<_0x5b1a78['naturalHeight'],_0x5b1a78['src']='//:0',_0x4a38a5(so);}),_0x5b1a78['src']=Rd;}}),Dd=(_0x85fb50,_0x55173f)=>{let t,_0x102d2e,_0x4bc87b,_0x41935f;if(_0x85fb50&&!(_0x85fb50['byteLength']<0xe)&&0x45786966===_0x85fb50['getUint32'](0x0)&&0x0===_0x85fb50['getUint16'](0x4)){if(0x4949===_0x85fb50['getUint16'](0x6))_0x102d2e=!0x0;else{if(0x4d4d!==_0x85fb50['getUint16'](0x6))return;_0x102d2e=!0x1;}if(0x2a===_0x85fb50['getUint16'](0x8,_0x102d2e))for(_0x4bc87b=0x8+_0x85fb50['getUint32'](0xa,_0x102d2e),t=0x0,_0x41935f=_0x85fb50['getUint16'](_0x4bc87b-0x2,_0x102d2e);_0x41935f>=0x0?t<_0x41935f:t>_0x41935f;_0x41935f>=0x0?++t:--t){if(_0x85fb50['byteLength']<_0x4bc87b+0xa)return;0x112===_0x85fb50['getUint16'](_0x4bc87b,_0x102d2e)&&_0x55173f(_0x4bc87b+0x8,_0x102d2e),_0x4bc87b+=0xc;}}},Fd=(_0x2c4c6e,_0x1ecf52)=>{Dd(_0x2c4c6e,(t,_0x1e6409)=>_0x2c4c6e['setUint16'](t,_0x1ecf52,_0x1e6409));},Vd=async(_0x593fcc,_0x49ed23,t)=>(t&&Fd(_0x49ed23,0x1),ml(_0x593fcc,0xe1,[_0x49ed23['buffer']])),Nd=(_0xbbe00a,_0x3a624f)=>new Promise((t,_0xb07f19)=>{_0x3a624f&&(_0xbbe00a['src']=_0x3a624f),_0xbbe00a['complete']?t(_0xbbe00a):(_0xbbe00a['addEventListener']('load',()=>{t(_0xbbe00a);}),_0xbbe00a['addEventListener']('error',()=>{_0xb07f19(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),_d=_0x33bd40=>Nd(new Image(),_0x33bd40),zd=[0x1,0x3],Bd=[0xc0,0xc1,0xc2,0xc3,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcd,0xce,0xcf],fl={'squareSide':[Math['floor'](Math['sqrt'](0x4c4b40)),0x1000,0x2000,0x2bac,0x2a54,0x2c8a,0x376c,0x4000],'dimension':[0x1000,0x2000,0x4000,0x7fff,0xffff]},Hd=async _0x48fd08=>{let _0x3bbcf1=!0x1,{promiseReadJpegChunks:t,stack:_0x194aa1}=no();return await t(_0x48fd08)['then'](()=>(_0x194aa1['forEach'](({marker:_0x53de99,view:_0x44a6a5})=>{if(!_0x3bbcf1&&Bd['indexOf'](_0x53de99)>=0x0){let _0x29fd9f=_0x44a6a5['getUint8'](0x5);zd['indexOf'](_0x29fd9f)<0x0&&(_0x3bbcf1=!0x0);}}),_0x3bbcf1))['catch'](()=>_0x3bbcf1);},vl=(_0x265d87,_0x32423d)=>{let t={};return(..._0x4b21ed)=>{let _0x2a0bc6=_0x32423d(_0x4b21ed,t);return _0x2a0bc6 in t?t[_0x2a0bc6]:t[_0x2a0bc6]=_0x265d87(..._0x4b21ed);};},yl=(_0x4a258f,_0x57117b)=>{let [t]=_0x4a258f,_0x911be=Object['keys'](_0x57117b)['map'](_0x3cfc80=>parseInt(_0x3cfc80,0xa))['sort']((_0x2d99dc,_0x3ea523)=>_0x2d99dc-_0x3ea523);for(let _0x169692=0x0;_0x169692<_0x911be['length'];_0x169692++){let _0x286fb8=_0x911be[_0x169692],_0x1c22b9=!!_0x57117b[_0x286fb8];if(_0x286fb8>t&&_0x1c22b9||_0x286fb8<t&&!_0x1c22b9)return _0x286fb8;}return t;},ce={'R':0x37,'G':0x6e,'B':0xa5,'A':0xff},Kd='rgba('+ce['R']+',\x20'+ce['G']+',\x20'+ce['B']+',\x20'+ce['A']/0xff+')',bl=(_0x5f20ec,_0x315b4c)=>{try{let t=[_0x5f20ec-0x1,_0x315b4c-0x1,0x1,0x1],{canvas:_0x7eed87,ctx:_0x4ddef7}=Ni();_0x7eed87['width']=0x1,_0x7eed87['height']=0x1;let {canvas:_0x508120,ctx:_0x5492b}=Ni();_0x508120['width']=_0x5f20ec,_0x508120['height']=_0x315b4c,_0x5492b&&(_0x5492b['fillStyle']=Kd,_0x5492b['fillRect'](...t),_0x4ddef7['drawImage'](_0x508120,_0x5f20ec-0x1,_0x315b4c-0x1,0x1,0x1,0x0,0x0,0x1,0x1));let _0x13b148=_0x4ddef7&&_0x4ddef7['getImageData'](0x0,0x0,0x1,0x1)['data'],_0xa4fe28=!0x1;return _0x13b148&&(_0xa4fe28=_0x13b148[0x0]===ce['R']&&_0x13b148[0x1]===ce['G']&&_0x13b148[0x2]===ce['B']&&_0x13b148[0x3]===ce['A']),_0x508120['width']=_0x508120['height']=0x1,_0xa4fe28;}catch{return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x5f20ec+'x'+_0x315b4c+'.'),!0x1;}};function wl(_0x407731){return(..._0x3c0bc3)=>new Promise(t=>{setTimeout(()=>{let _0x90238=_0x407731(..._0x3c0bc3);t(_0x90238);},0x0);});}var jd=wl(vl(bl,yl)),Gd=wl(vl(bl,yl)),Tl=async(_0x3c42ba,_0x496943)=>{let t=fl['squareSide']['find'](_0x4f6ce9=>_0x4f6ce9*_0x4f6ce9>=_0x3c42ba*_0x496943),_0x162dd3=fl['dimension']['find'](_0x579eb7=>_0x579eb7>=_0x3c42ba&&_0x579eb7>=_0x496943);if(!t||!_0x162dd3)throw new Error('Not\x20supported');let [_0x305133,_0x3b098f]=await Promise['all']([jd(t,t),Gd(_0x162dd3,0x1)]);if(_0x305133&&_0x3b098f)return!0x0;throw new Error('Not\x20supported');},El=async(_0x5e535c,_0x3c691b,t)=>{try{let {ctx:_0x1aa55,canvas:_0x222f19}=Ni();return _0x222f19['width']=_0x3c691b,_0x222f19['height']=t,_0x1aa55['imageSmoothingQuality']='high',_0x1aa55['drawImage'](_0x5e535c,0x0,0x0,_0x3c691b,t),_0x5e535c instanceof HTMLImageElement&&(_0x5e535c['src']='//:0'),_0x5e535c instanceof HTMLCanvasElement&&(_0x5e535c['width']=_0x5e535c['height']=0x1),_0x222f19;}catch(_0x149492){throw new Error('Canvas\x20resize\x20error',{'cause':_0x149492});}},qd=({img:_0x91aa79,targetW:_0xc845b5,targetH:t})=>El(_0x91aa79,_0xc845b5,t),Wd=function({sourceW:_0x448389,targetW:_0x26e26a,targetH:t,step:_0x1efe09}){let _0x4665d8=[],_0x142e3d=_0x26e26a,_0x4098ba=t;do{_0x4665d8['push']([_0x142e3d,_0x4098ba]),_0x142e3d=Math['round'](_0x142e3d/_0x1efe09),_0x4098ba=Math['round'](_0x4098ba/_0x1efe09);}while(_0x142e3d<_0x448389*_0x1efe09);return _0x4665d8['reverse']();},Zd=({img:_0x3c3a46,sourceW:_0x4a905a,targetW:t,targetH:_0x21c1e5,step:_0x58d674})=>{let _0x2e4cde=Wd({'sourceW':_0x4a905a,'targetW':t,'targetH':_0x21c1e5,'step':_0x58d674});return _0x2e4cde['reduce']((_0x5d82a2,[_0x33ca08,_0x53d113],_0x290771)=>_0x5d82a2['then'](_0x409994=>Tl(_0x33ca08,_0x53d113)['then'](()=>El(_0x409994,_0x33ca08,_0x53d113))['catch'](()=>{if(_0x290771===_0x2e4cde['length']-0x1)throw new Error('Not\x20supported');return _0x409994;})),Promise['resolve'](_0x3c3a46));},Yd=()=>!!/iPad|iPhone|iPod/['test'](navigator['platform'])||navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),Xd=navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),Us=0.71,Qd=(_0x2f75b3,_0x5c7916)=>{if(_0x2f75b3['width']*Us*_0x2f75b3['height']*Us<_0x5c7916['size'])throw new Error('Not\x20required');let t=_0x2f75b3['width'],_0x5db5b8=_0x2f75b3['height'],_0x5949d4=t/_0x5db5b8,_0x15de5d=Math['floor'](Math['sqrt'](_0x5c7916['size']*_0x5949d4)),_0x4d52e0=Math['floor'](_0x5c7916['size']/Math['sqrt'](_0x5c7916['size']*_0x5949d4));return Tl(_0x15de5d,_0x4d52e0)['then'](()=>{let {ctx:_0x55516f}=Ni();return!('imageSmoothingQuality'in _0x55516f)||Yd()||Xd?Zd({'img':_0x2f75b3,'sourceW':t,'targetW':_0x15de5d,'targetH':_0x4d52e0,'step':Us}):qd({'img':_0x2f75b3,'targetW':_0x15de5d,'targetH':_0x4d52e0});})['catch'](()=>Promise['reject']('Not\x20supported'));},Cl=async(_0x26b74f,_0x12153c)=>{try{if(await Hd(_0x26b74f))throw new Error('Should\x20skipped');let _0x2a61e2=await Promise['allSettled']([Ud(_0x26b74f),$d(),Id(_0x26b74f)]),_0xe3fac1=!_0x2a61e2['some'](_0x595586=>'rejected'===_0x595586['status']),[_0x3f63af,_0x3a0308,_0x5b138b]=_0x2a61e2,_0x23ecef=await Od(_0x26b74f)['catch'](()=>_0x26b74f),_0x5e1ad3=await _d(URL['createObjectURL'](_0x23ecef));URL['revokeObjectURL'](_0x5e1ad3['src']);let _0x3e0df2=await Qd(_0x5e1ad3,_0x12153c),_0x31255a='image/jpeg',_0x1ba6cc=_0x12153c?.['quality']||0.8;!_0xe3fac1&&Ld(_0x3e0df2)&&(_0x31255a='image/png',_0x1ba6cc=void 0x0);let _0xab64e=await Pd(_0x3e0df2,_0x31255a,_0x1ba6cc);if(_0xe3fac1&&'fulfilled'===_0x3f63af['status']&&_0x3f63af['value']){let _0x17fefe=_0x3f63af['value'],_0x568db0='fulfilled'===_0x3a0308['status']&&_0x3a0308['value'];_0xab64e=await Vd(_0xab64e,_0x17fefe,_0x568db0);}return _0xe3fac1&&'fulfilled'===_0x5b138b['status']&&_0x5b138b['value']['length']>0x0&&(_0xab64e=await gl(_0xab64e,_0x5b138b['value'])),_0xab64e;}catch(_0x2184fe){let _0x2efc8b;throw _0x2184fe instanceof Error&&(_0x2efc8b=_0x2184fe['message']),'string'==typeof _0x2184fe&&(_0x2efc8b=_0x2184fe),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0x2efc8b?'Message:\x20\x22'+_0x2efc8b+'\x22.':''),{'cause':_0x2184fe});}},Jd=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i,xl=_0x34ba86=>{if('string'!=typeof _0x34ba86)return!0x1;let _0x11c37e=Jd['exec'](_0x34ba86['toLocaleLowerCase']())??[];if(0x0===_0x11c37e['length'])return!0x1;let t=Number(_0x11c37e[0x1])*Number(_0x11c37e[0x2]),_0x2f1912=0x10000000;return t>_0x2f1912?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](268.435456)+'MP.\x20You\x20have\x20set\x20'+_0x11c37e[0x1]+'x'+_0x11c37e[0x2]+'\x20('+Math['ceil'](t/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x11c37e[0x3]?Number(_0x11c37e[0x3])/0x64:void 0x0,'size':t};},Sl={'id':'image-shrink','setup'({pluginApi:_0x2abc81}){_0x2abc81['registry']['registerFileHook']({'type':'beforeUpload','handler':async({file:_0x44c30a})=>{let t=_0x2abc81['config']['get']('imageShrink');if(!t)return{'file':_0x44c30a};let _0x2dfdb9=xl(t);if(!_0x2dfdb9)return console['warn']('[ImageShrinkPlugin]\x20Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),{'file':_0x44c30a};try{return{'file':await Cl(_0x44c30a,_0x2dfdb9)};}catch{return{'file':_0x44c30a};}}});}},Al={'id':'instagram','setup'({pluginApi:_0x4d0e29}){_0x4d0e29['registry']['registerSource']({'id':'instagram','label':'src-type-instagram','icon':'instagram','expand':()=>(console['error']('Instagram\x20source\x20was\x20removed\x20because\x20the\x20Instagram\x20Basic\x20Display\x20API\x20hasn\x27t\x20been\x20available\x20since\x20December\x204,\x202024.\x20Official\x20statement,\x20see\x20here:\x20https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/?locale=en_US'),[]),'onSelect':()=>{}});}},kl={'id':N['LOCAL'],'setup':({pluginApi:_0x10e241,uploaderApi:_0x49d1dd})=>{_0x10e241['registry']['registerSource']({'id':N['LOCAL'],'label':'src-type-local','icon':'local','onSelect':()=>{_0x49d1dd['openSystemDialog']();}});}},Ml={'id':'url-source','setup':async({pluginApi:_0x1aeff4,uploaderApi:_0x4505bc})=>{mt({'UrlSource':ii}),_0x1aeff4['registry']['registerActivity']({'id':F['URL'],'render':t=>{let _0x2c5a52=document['createElement']('uc-url-source');return t['append'](_0x2c5a52),()=>{t['replaceChildren']();};}}),_0x1aeff4['registry']['registerSource']({'id':'url','label':'src-type-from-url','icon':'url','onSelect':()=>{_0x4505bc['setCurrentActivity'](F['URL']),_0x4505bc['setModalState'](!0x0);}});}},ri=[{'configDeps':['useCloudImageEditor'],'isEnabled':_0x3775a5=>!!_0x3775a5('useCloudImageEditor'),'load':()=>pl},{'configDeps':['imageShrink'],'isEnabled':_0x5cda23=>!!_0x5cda23('imageShrink'),'load':()=>Sl},{'configDeps':['sourceList'],'isEnabled':_0x4cbb00=>K(_0x4cbb00('sourceList'))['includes'](N['LOCAL']),'load':()=>kl},{'configDeps':['sourceList'],'isEnabled':_0x4934cc=>K(_0x4934cc('sourceList'))['includes'](N['CAMERA']),'load':()=>dl},{'configDeps':['sourceList'],'isEnabled':_0x1462be=>K(_0x1462be('sourceList'))['includes']('instagram'),'load':()=>Al},{'configDeps':['sourceList'],'isEnabled':_0x9a4678=>Object['values'](ut)['some'](_0x5bbdb0=>K(_0x9a4678('sourceList'))['includes'](_0x5bbdb0)),'load':()=>hl},{'configDeps':['sourceList'],'isEnabled':_0x2299f2=>K(_0x2299f2('sourceList'))['includes'](N['URL']),'load':()=>Ml}],ao=class extends Zt{constructor(){super(),this['headless']=!0x1,this['init$']={...this['init$']};}static{this['lazyPlugins']=ri;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-regular'];}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':D['INIT_SOLUTION']});}['render'](){return v` ${super['render']()}<uc-simple-btn ?hidden=${this['headless']}></uc-simple-btn><uc-modal id="start-from" strokes block-body-scrolling><uc-start-from><uc-drop-area with-icon clickable></uc-drop-area><uc-source-list role="list" wrap></uc-source-list><button type="button" class="uc-secondary-btn" @click=${this['$']['*historyBack']}>${this['l10n']('start-from-cancel')}</button><uc-copyright></uc-copyright></uc-start-from></uc-modal><uc-modal id="upload-list" strokes block-body-scrolling><uc-upload-list></uc-upload-list></uc-modal><uc-plugin-activity-renderer mode="modal"></uc-plugin-activity-renderer>`;}};p([y({'type':Boolean})],ao['prototype'],'headless',0x2);var lo=class extends Zt{constructor(){super(),this['Tc']=!0x1,this['Ee']=()=>{if(this['Ec']){let t=this['$']['*historyBack'];return void t?.();}this['xc']&&(this['$']['*currentActivity']=x['activities']['UPLOAD_LIST']);},this['init$']={...this['init$']};}static{this['lazyPlugins']=ri;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-inline'];}get['Ec'](){let t=this['$']['*history'];return!(!t||t['length']<=0x1)&&t[t['length']-0x1]!==x['activities']['START_FROM'];}get['xc'](){let t=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](t)&&t['length']>0x0;}['Hs'](){return this['getCssData']('--cfg-init-activity')||x['activities']['START_FROM'];}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':D['INIT_SOLUTION']});let t=this['Hs']();this['sub']('*currentActivity',_0x229c1c=>{_0x229c1c||(this['$']['*currentActivity']=t);}),this['sub']('*uploadList',_0x1b8ab4=>{Array['isArray'](_0x1b8ab4)&&_0x1b8ab4['length']>0x0&&this['$']['*currentActivity']===t&&(this['$']['*currentActivity']=x['activities']['UPLOAD_LIST']);}),this['sub']('*history',()=>{this['Tc']=this['Ec']||this['xc'];});}['render'](){return v` ${super['render']()}<uc-start-from><uc-drop-area with-icon clickable></uc-drop-area><uc-source-list role="list" wrap></uc-source-list><button type="button" class="uc-cancel-btn uc-secondary-btn" @click=${this['Ee']} ?hidden=${!this['Tc']} >${this['l10n']('start-from-cancel')}</button><uc-copyright></uc-copyright></uc-start-from><uc-upload-list></uc-upload-list><uc-plugin-activity-renderer mode="inline"></uc-plugin-activity-renderer>`;}};p([m()],lo['prototype'],'Tc',0x2);var Rs='active',co='',ue=class extends Zt{constructor(){super(),this['Ks']=!0x1,this['Vr']=!0x1,this['_r']=co,this['js']=co,this['ui']='choose-file',this['si']=t=>{t['id']===x['activities']['CLOUD_IMG_EDIT']&&(this['_r']=Rs),this['$']['*currentActivity']===x['activities']['UPLOAD_LIST']&&(this['_r']=Rs,this['Vr']=!0x0);let _0x16674a=this['$']['*uploadList'];(!_0x16674a||_0x16674a['length']<=0x0)&&(this['js']=Rs);},this['ni']=t=>{t['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=x['activities']['UPLOAD_LIST'],this['Vr']=!0x1),t['id']===x['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=x['activities']['UPLOAD_LIST']);},this['init$']={...this['init$']};}static{this['lazyPlugins']=ri;}static{this['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-minimal'];}['Hs'](){return this['getCssData']('--cfg-init-activity')||x['activities']['START_FROM'];}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':D['INIT_SOLUTION']});let t=this['Hs']();this['sub']('*currentActivity',_0x17f8ac=>{_0x17f8ac===x['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x17f8ac||(this['$']['*currentActivity']=t);}),this['sub']('*uploadList',_0x3bb7d8=>{Array['isArray'](_0x3bb7d8)&&_0x3bb7d8['length']>0x0?(this['$']['*currentActivity']=x['activities']['UPLOAD_LIST'],this['js']=co):(this['_r']=co,this['Vr']=!0x1,this['$']['*currentActivity']=t);}),this['subConfigValue']('confirmUpload',_0x2be55a=>{!0x1!==_0x2be55a&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x2964d2=>{this['setAttribute']('mode',_0x2964d2),this['subConfigValue']('multiple',_0x592e4b=>{'grid'===_0x2964d2?(_0x592e4b?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['Ks']=!_0x592e4b):(this['style']['removeProperty']('--uc-grid-col'),this['Ks']=!0x1);});}),this['subConfigValue']('multiple',_0x22b417=>{this['ui']=_0x22b417?'choose-files':'choose-file';}),this['modalManager']?.['subscribe'](Y['OPEN'],this['si']),this['modalManager']?.['subscribe'](Y['CLOSE'],this['ni']);}['disconnectedCallback'](){super['disconnectedCallback'](),this['modalManager']?.['unsubscribe'](Y['OPEN'],this['si']),this['modalManager']?.['unsubscribe'](Y['CLOSE'],this['ni']);}['render'](){return v` ${super['render']()}<uc-start-from ?hidden=${this['Vr']} class=${this['js']}><uc-drop-area ?single=${this['Ks']} initflow clickable tabindex="0" ><span>${this['l10n'](this['ui'])}</span></uc-drop-area><uc-copyright></uc-copyright></uc-start-from><uc-upload-list class=${this['_r']}></uc-upload-list><uc-modal id="start-from" strokes block-body-scrolling><uc-start-from><uc-drop-area with-icon clickable></uc-drop-area><uc-source-list role="list" wrap></uc-source-list><button type="button" class="uc-secondary-btn" @click=${this['$']['*historyBack']} >${this['l10n']('start-from-cancel')}</button></uc-start-from></uc-modal><uc-plugin-activity-renderer mode="modal"></uc-plugin-activity-renderer>`;}};p([m()],ue['prototype'],'Ks',0x2),p([m()],ue['prototype'],'Vr',0x2),p([m()],ue['prototype'],'_r',0x2),p([m()],ue['prototype'],'js',0x2),p([m()],ue['prototype'],'ui',0x2);var UC=Object['freeze']({'__proto__':null,'ActivityBlock':x,'ActivityHeader':ys,'BaseComponent':Co,'Block':C,'BtnUi':xt,'CameraSource':_,'CloudImageEditor':io,'CloudImageEditorActivity':Vi,'CloudImageEditorBlock':et,'Config':Xe,'Copyright':ms,'CropFrame':Pi,'Data':H,'DropArea':dt,'EditorAspectRatioButtonControl':Ri,'EditorCropButtonControl':$i,'EditorFilterControl':Yt,'EditorFreeformButtonControl':eo,'EditorImageCropper':Li,'EditorImageFader':Qr,'EditorOperationControl':Di,'EditorScroller':Fi,'EditorSlider':Ui,'EditorToolbar':pt,'ExternalSource':ht,'ExternalUploadSource':ut,'FileItem':Ts,'FileUploaderInline':lo,'FileUploaderMinimal':ue,'FileUploaderRegular':ao,'FormInput':qr,'Icon':ae,'Img':ds,'LineLoaderUi':Oi,'Modal':Ei,'ModalEvents':Y,'PACKAGE_NAME':Ut,'PACKAGE_VERSION':Rt,'PluginActivityHost':Mi,'PluginActivityRenderer':Qe,'PresenceToggle':Je,'ProgressBar':je,'ProgressBarCommon':Ci,'Select':Ge,'SimpleBtn':ki,'SliderUi':Vt,'SolutionBlock':Zt,'SourceBtn':qe,'SourceList':xi,'Spinner':gs,'StartFrom':bs,'Thumb':Ze,'UID':ft,'UploadCtxProvider':ws,'UploadList':Ot,'UploadSource':N,'UploaderBlock':R,'UrlSource':ii,'defineComponents':mt,'defineLocale':ln,'loadFileUploaderFrom':Xl,'toKebabCase':cr});class Uploadcare extends Plugin{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7e1371){super(_0x7e1371),_0x7e1371['config']['define']('uploadcare.uploader.sourceList',['local','url']),mt(UC),this['_defineLocale']();}['_defineLocale'](){const _0x20d2d8=this['editor']['config']['get']('uploadcare.locale'),_0x53968f=this['editor']['locale']['contentLanguage'];_0x20d2d8&&ln(_0x53968f,_0x20d2d8);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0x516635){super(_0x516635);const t=_0x516635['t'],_0xa03223=this['bindTemplate'],_0x437220=new SpinnerView();_0x437220['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x437220,{'text':_0xa03223['to']('imageUploadProgress',_0x359f67=>t('Loading\x20image...')+'\x20('+(_0x359f67||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class UploadcareImageEditFormErrorView extends View{constructor(_0x4b4452){super(_0x4b4452);const t=_0x4b4452['t'];this['set']('errorType',null);const _0x5076aa=new ButtonView(_0x4b4452);_0x5076aa['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5076aa['withText']=!0x0,_0x5076aa['class']='ck-button-action',_0x5076aa['on']('execute',()=>{this['fire']('retry');}),_0x5076aa['bind']('isVisible')['to'](this,'errorType',_0x5af7b7=>'NotFound'!==_0x5af7b7);const _0x1b3b80=new IconView();_0x1b3b80['content']=IconError,_0x1b3b80['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19735f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x1b3b80,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19735f['to']('errorType',_0x3cbb99=>t('NotFound'!==_0x3cbb99?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5076aa]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class UploadcareImageEditFormEditingView extends View{constructor(_0x79cf37,_0x4fc2e0){super(_0x79cf37);const _0x418419=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4fc2e0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x418419['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x18446b,_0x401d21,_0x377764){super(_0x18446b),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x18446b),this['_errorView']=new UploadcareImageEditFormErrorView(_0x18446b),this['_editingView']=new UploadcareImageEditFormEditingView(_0x18446b,_0x377764),this['_focusableView']=new View(_0x18446b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x401d21),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x540e7c=>{this['_addUploadcareImageEditorListeners'](_0x540e7c);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x1ee4e2,_0x44aff2){const _0x43e5a0='uc-cloud-image-editor',_0xe90a99=_0x1ee4e2['querySelector'](_0x43e5a0);if(_0xe90a99)return _0x44aff2(_0xe90a99);const _0x1c80ab=new MutationObserver(_0x4be5a2=>{const _0x4b11f3=_0x4be5a2['filter'](_0x1be75d=>_0x1be75d['target']===_0x1ee4e2&&_0x1be75d['addedNodes']['length']>0x0&&_0x1be75d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43e5a0);_0x4b11f3['length']&&(_0x1c80ab['disconnect'](),_0x44aff2(_0x4b11f3[0x0]['addedNodes'][0x0]));});_0x1c80ab['observe'](_0x1ee4e2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4523c0){_0x4523c0['addEventListener']('apply',_0x2519b5=>{this['fire']('apply',{'imageSrc':_0x2519b5['detail']['cdnUrl']});}),_0x4523c0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x73fb3e,_0x5cc44f,_0x3185cd){super(),this['_editor']=_0x73fb3e,this['_dialog']=_0x5cc44f,this['_imageElement']=_0x3185cd,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x493de6=this['_imageElement'],_0x17b30e=_0x493de6['getAttribute']('uploadcareImageId'),_0x12f990=_0x493de6['getAttribute']('src');if(_0x17b30e)await this['_loadImageInfo'](_0x17b30e,_0x12f990);else{if(this['_imageCache']['has'](_0x12f990)){const _0x436e41=this['_imageCache']['get'](_0x12f990);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x436e41['url'],this['imageDimension']=_0x436e41['dimension'],this['imageId']=_0x436e41['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4810dc}=this['_editor'],t=_0x4810dc['t'],_0x350db5=new UploadcareImageEditFormView(_0x4810dc,this['imageStatus'],this['_attributes']);_0x350db5['bind']('status')['to'](this,'imageStatus'),_0x350db5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x350db5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x350db5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x350db5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x350db5,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x350db5['focus']();},'onHide':()=>{_0x350db5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3bfdb5=>!isAncestor(_0x3bfdb5,_0x350db5['element'])}});}['_loadImageInfo'](_0x3e9ac7,_0x55e062){return UploadUtils['getInfo'](_0x3e9ac7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xfbb983=>{const {width:_0x640627,height:_0x5e3147}=_0xfbb983['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55e062,this['imageDimension']={'width':_0x640627,'height':_0x5e3147},this['imageId']=_0x3e9ac7;})['catch'](_0x1586a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1586a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x343f6a,_0x5afad2){return this['_getImageAsFile'](_0x343f6a)['then'](_0x16ebe2=>UploadUtils['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5afad2['signal'],'file':_0x16ebe2,'onProgress':_0x15e321=>{_0x15e321&&_0x15e321['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x15e321['value']));}}))['then'](_0x248fbe=>{const {width:_0xde850b,height:_0x2daa69}=_0x248fbe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x248fbe['cdnUrl'],this['imageDimension']={'width':_0xde850b,'height':_0x2daa69},this['imageId']=_0x248fbe['uuid'],this['imageUploadProgress']=null;const _0x4f93b4=_0x343f6a['getAttribute']('src');this['_imageCache']['set'](_0x4f93b4,{'id':_0x248fbe['uuid'],'url':_0x248fbe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1369c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1369c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1140c8,_0x134a8f){_0x1140c8['on']('apply',(_0x28d93d,_0x423b02)=>{this['_replaceImage'](_0x134a8f,_0x423b02['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1140c8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1140c8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ad0d4,_0x4279e9,_0x2c0544){const _0x1e742f=this['_editor'],{width:_0x701354,height:_0x4d2212}=getImageDimension(_0x4279e9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x32d758,imageSources:_0x49568b}=getImageUrls(_0x4279e9,_0x701354);_0x1e742f['model']['change'](_0x26b61f=>{if('$graveyard'===_0x2ad0d4['root']['rootName']){_0x1e742f['execute']('insertImage',{'imageType':_0x2ad0d4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ad0d4['getAttributes']()),'uploadcareImageId':_0x2c0544,'src':_0x32d758,'sources':_0x49568b,'width':_0x701354,'height':_0x4d2212}});const _0xcf35d1=_0x2ad0d4['getChildren']();_0x2ad0d4=_0x1e742f['model']['document']['selection']['getSelectedElement']();for(const _0x182556 of _0xcf35d1)_0x26b61f['append'](_0x26b61f['cloneElement'](_0x182556),_0x2ad0d4);}else _0x26b61f['setSelection'](_0x2ad0d4,'on'),_0x1e742f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ad0d4['getAttributes']()),'uploadcareImageId':_0x2c0544,'src':_0x32d758,'sources':_0x49568b,'width':_0x701354,'height':_0x4d2212},_0x2ad0d4);_0x26b61f['setSelection'](_0x2ad0d4,'on');});}async['_getImageAsFile'](_0x3f5fce){const _0x54f83e=_0x1a0b09['window'],_0x9ccf94=_0x1a0b09['document']['location']['href'],_0x1c4345=new _0x54f83e['URL'](_0x3f5fce['getAttribute']('src'),_0x9ccf94);if('data:'===_0x1c4345['protocol']){const _0x4f548e=_0x1c4345['href']['split'](','),_0x5a4e0d=_0x4f548e[0x0]['match'](/:(.*?);/)[0x1],_0x31b4c8=_0x5a4e0d['split']('/')[0x1],_0x365a73=_0x54f83e['atob'](_0x4f548e[_0x4f548e['length']-0x1]);let _0x3c8757=_0x365a73['length'];const _0x282ec9=new _0x54f83e['Uint8Array'](_0x3c8757);for(;_0x3c8757--;)_0x282ec9[_0x3c8757]=_0x365a73['charCodeAt'](_0x3c8757);return new _0x54f83e['File']([_0x282ec9],'image.'+_0x31b4c8,{'type':_0x5a4e0d});}const _0x2cf980=_0x1c4345['href']['split']('/'),_0x5bfa39=_0x2cf980[_0x2cf980['length']-0x1],_0x30bc62=_0x5bfa39['split']('.')[0x1];return _0x54f83e['fetch'](_0x1c4345['href'])['then'](_0x4a521d=>_0x4a521d['clone']()['blob']())['then'](_0x5f36ff=>new _0x54f83e['File']([_0x5f36ff],_0x5bfa39,{'type':'image/'+_0x30bc62}));}}class UploadcareImageEditCommand extends Command{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0x534d8f){super(_0x534d8f),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0x534d8f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x792143=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x792143);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x36858e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36858e&&(_0x36858e['is']('element','imageBlock')||_0x36858e['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x36858e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends Command{['refresh'](){const _0x30c9cc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x30c9cc&&(_0x30c9cc['is']('element','imageBlock')||_0x30c9cc['is']('element','imageInline')));}['execute'](_0x431e21){const _0x21221c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2087cc=>{_0x2087cc['setAttributes'](_0x431e21,_0x21221c),_0x2087cc['removeAttribute']('srcset',_0x21221c),_0x2087cc['removeAttribute']('sizes',_0x21221c);});}}class UploadcareImageEditEditing extends Plugin{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,Notification,ImageUtils,ImageEditing];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x421d4e}=this;_0x421d4e['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x421d4e)),_0x421d4e['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x421d4e));}}class UploadcareImageEditUI extends Plugin{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0xa89e49=this['editor'];_0xa89e49['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4b088b=>{const _0x5a5bb4=_0xa89e49['commands']['get']('uploadcareImageEdit'),_0x37eef0=new ButtonView(_0x4b088b),t=_0x4b088b['t'];return _0x37eef0['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x37eef0['bind']('isEnabled')['to'](_0x5a5bb4),_0x37eef0['bind']('isOn')['to'](_0x5a5bb4,'isActive'),this['listenTo'](_0x37eef0,'execute',()=>{_0xa89e49['execute']('uploadcareImageEdit'),_0xa89e49['editing']['view']['focus']();}),_0x37eef0;}),this['_initConfig']();}['_initConfig'](){const _0x58e28c=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x58e28c),this['listenTo'](this['editor'],'destroy',()=>{_0x58e28c['remove']();});}}class UploadcareImageEdit extends Plugin{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{AIActions,AIAdapter,AIAssistant,AIAssistantUI,AIBalloon,AIChat,AIChatController,AIChatFeedCustomElementView,AIChatHistory,AIChatHistoryController,AIChatHistoryUI,AIChatInteraction,AIChatShortcuts,AIChatUI,AIConnector,AIEditing,AIEditorIntegration,AIInteraction,AIQuickActions,AIQuickActionsUI,AIReply,AIRequestError,AIReviewCheck,AIReviewCheckResult,AIReviewCheckResultChange,AIReviewCheckRun,AIReviewMode,AIReviewCoreController as AIReviewModeController,AIReviewCoreEditing as AIReviewModeEditing,AIReviewModeUI,AITabs,AITabsMainView,AITabsView,AITextAdapter,AIToggleButtonUI,AITranslate,AITranslateController,AITranslateUI,AWSTextAdapter,AcceptSuggestionCommand,AddCommentThreadCommand,Annotation$1 as Annotation,AnnotationCollection,AnnotationCounterButtonView,AnnotationView,Annotations,AnnotationsSidebarItemView,AnnotationsSidebarView,AnnotationsUIs,AriaDescriptionView,BaseCommentThreadView,BaseCommentView,BaseSuggestionThreadView,CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI,CloudServicesCommentsAdapter,CloudServicesRevisionHistoryAdapter,CloudServicesTrackChangesAdapter,CollaborationUserColor,Comment$1 as Comment,CommentThread,CommentThreadController,CommentThreadInputView,CommentThreadView,CommentView,Comments,CommentsArchive,CommentsArchiveUI,CommentsEditing,CommentsListView,CommentsOnly,CommentsRepository,CommentsUI,ConfirmMixin,CopyFormatCommand,DATA_ID_MODEL_ATTRIBUTE,DATA_ID_VIEW_ATTRIBUTE,DiscardSuggestionCommand,DocumentCompare,DocumentDiff,DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,EditSourceCommand,EditorAnnotations,EmailConfigurationHelper,EmailConfigurationLogger,EmptyBlockEmailIntegration,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,ExportInlineStylesEmailIntegration,ExportPdf,ExportPdfCommand,ExportWord,ExportWordCommand,FOCUS_ANNOTATION_KEYSTROKE,FontEmailIntegration,Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,FormatPainter,FormatPainterEditing,FormatPainterUI,GeneralHtmlIntegrationSupport,HeadingId,HighlightEmailIntegration,ImageEmailIntegration,ImportWord,ImportWordCommand,ImportWordEditing,ImportWordUI,InlineAnnotations,InsertFootnoteCommand,InsertMergeFieldBlockCommand,InsertMergeFieldCommand,InsertMergeFieldImageCommand,LateFocusButtonView,LateFocusDropdownButtonView,LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI,LinkEmailIntegration,ListEmailIntegration,MarkdownEmailIntegration,MathTypeEmailIntegration,MediaEmbedEmailIntegration,MergeFields,MergeFieldsEditing,MergeFieldsEmailIntegration,MergeFieldsUI,MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListEmailIntegration,MultiLevelListUI,NarrowSidebar,OpenAITextAdapter,Pagination,PaginationRenderer,PasteFormatCommand,PasteFromOfficeEnhanced,Permissions,PresenceList,PresenceListUI,PreviewFinalContentCommand,PreviewMergeFieldsCommand,RealTimeCollaborationClient,RealTimeCollaborativeComments,RealTimeCollaborativeEditing,RealTimeCollaborativeRevisionHistory,RealTimeCollaborativeTrackChanges,ReplaceSourceCommand,RestoreRevisionCommand,Revision,RevisionHistory,RevisionHistoryUI,RevisionHistoryUtils,RevisionTracker,RevisionViewer,RevisionViewerEditor,RevisionViewerIntegration,RevisionViewerLoadingOverlay,RevisionViewerUI,RevisionsRepository,RevisionsSidebar,Sessions,ShowAIAssistantCommand,ShowChangeCommand,Sidebar,SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI,SourceEditingEmailIntegration,SourceEditingEnhanced,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,SuggestionsConversion,TableEmailIntegration,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI,Template,TemplateCommand,TemplateEditing,TemplateEmailIntegration,TemplateUI,TodoListEmailIntegration,ToggleAICommand,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI,UploadEmailIntegration,Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter,User$1 as User,UserView,Users,WebSocketGateway,WideSidebar,bindAnnotationCollections,createResizeButton,dropImportantStyleSuffix,fixElementSuggestionRange,getAllMarkersDomElementsSorted,getDateTimeFormatter,getDefaultAICommands,getEmailInlineStylesTransformations,getMarkerDomElement,hashObject,isUnsupportedEmailColorFormat,isUnsupportedEmailColorValue,sanitizeEditorConfig,setupThreadKeyboardNavigation,splitSuggestionMarkerName,surroundingMarkersDetector,transformEmailAlignToAttribute,transformEmailFigcaptionToDiv,transformEmailFigureToTable,transformEmailFloatToAlign,transformEmailImageWidthAttributes,transformEmailMarginToAlign,trimHtml};